Created
May 8, 2018 18:58
-
-
Save ZenithRogue/6b44d7f64774f76321f5b83d7f0a1027 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GUI = function(e) { | |
function t(n) { | |
if (o[n]) return o[n].exports; | |
var l = o[n] = { | |
i: n, | |
l: !1, | |
exports: {} | |
}; | |
return e[n].call(l.exports, l, l.exports, t), l.l = !0, l.exports | |
} | |
var n = window.webpackJsonpGUI; | |
window.webpackJsonpGUI = function(o, r, i) { | |
for (var A, a, s, u = 0, c = []; u < o.length; u++) a = o[u], l[a] && c.push(l[a][0]), l[a] = 0; | |
for (A in r) Object.prototype.hasOwnProperty.call(r, A) && (e[A] = r[A]); | |
for (n && n(o, r, i); c.length;) c.shift()(); | |
if (i) | |
for (u = 0; u < i.length; u++) s = t(t.s = i[u]); | |
return s | |
}; | |
var o = {}, | |
l = { | |
4: 0 | |
}; | |
return t.m = e, t.c = o, t.d = function(e, n, o) { | |
t.o(e, n) || Object.defineProperty(e, n, { | |
configurable: !1, | |
enumerable: !0, | |
get: o | |
}) | |
}, t.n = function(e) { | |
var n = e && e.__esModule ? function() { | |
return e.default | |
} : function() { | |
return e | |
}; | |
return t.d(n, "a", n), n | |
}, t.o = function(e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
}, t.p = "", t.oe = function(e) { | |
throw console.error(e), e | |
}, t(t.s = 143) | |
}([function(e, t, n) { | |
"use strict"; | |
e.exports = n(144) | |
}, function(e, t, n) { | |
e.exports = n(158)() | |
}, function(e, t) { | |
function n(e, t) { | |
var n = e[1] || "", | |
l = e[3]; | |
if (!l) return n; | |
if (t && "function" == typeof btoa) { | |
var r = o(l); | |
return [n].concat(l.sources.map(function(e) { | |
return "/*# sourceURL=" + l.sourceRoot + e + " */" | |
})).concat([r]).join("\n") | |
} | |
return [n].join("\n") | |
} | |
function o(e) { | |
return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(e)))) + " */" | |
} | |
e.exports = function(e) { | |
var t = []; | |
return t.toString = function() { | |
return this.map(function(t) { | |
var o = n(t, e); | |
return t[2] ? "@media " + t[2] + "{" + o + "}" : o | |
}).join("") | |
}, t.i = function(e, n) { | |
"string" == typeof e && (e = [ | |
[null, e, ""] | |
]); | |
for (var o = {}, l = 0; l < this.length; l++) { | |
var r = this[l][0]; | |
"number" == typeof r && (o[r] = !0) | |
} | |
for (l = 0; l < e.length; l++) { | |
var i = e[l]; | |
"number" == typeof i[0] && o[i[0]] || (n && !i[2] ? i[2] = n : n && (i[2] = "(" + i[2] + ") and (" + n + ")"), t.push(i)) | |
} | |
}, t | |
} | |
}, function(e, t, n) { | |
function o(e, t) { | |
for (var n = 0; n < e.length; n++) { | |
var o = e[n], | |
l = d[o.id]; | |
if (l) { | |
l.refs++; | |
for (var r = 0; r < l.parts.length; r++) l.parts[r](o.parts[r]); | |
for (; r < o.parts.length; r++) l.parts.push(u(o.parts[r], t)) | |
} else { | |
for (var i = [], r = 0; r < o.parts.length; r++) i.push(u(o.parts[r], t)); | |
d[o.id] = { | |
id: o.id, | |
refs: 1, | |
parts: i | |
} | |
} | |
} | |
} | |
function l(e, t) { | |
for (var n = [], o = {}, l = 0; l < e.length; l++) { | |
var r = e[l], | |
i = t.base ? r[0] + t.base : r[0], | |
A = r[1], | |
a = r[2], | |
s = r[3], | |
u = { | |
css: A, | |
media: a, | |
sourceMap: s | |
}; | |
o[i] ? o[i].parts.push(u) : n.push(o[i] = { | |
id: i, | |
parts: [u] | |
}) | |
} | |
return n | |
} | |
function r(e, t) { | |
var n = m(e.insertInto); | |
if (!n) throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid."); | |
var o = y[y.length - 1]; | |
if ("top" === e.insertAt) o ? o.nextSibling ? n.insertBefore(t, o.nextSibling) : n.appendChild(t) : n.insertBefore(t, n.firstChild), y.push(t); | |
else if ("bottom" === e.insertAt) n.appendChild(t); | |
else { | |
if ("object" != typeof e.insertAt || !e.insertAt.before) throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n"); | |
var l = m(e.insertInto + " " + e.insertAt.before); | |
n.insertBefore(t, l) | |
} | |
} | |
function i(e) { | |
if (null === e.parentNode) return !1; | |
e.parentNode.removeChild(e); | |
var t = y.indexOf(e); | |
t >= 0 && y.splice(t, 1) | |
} | |
function A(e) { | |
var t = document.createElement("style"); | |
return e.attrs.type = "text/css", s(t, e.attrs), r(e, t), t | |
} | |
function a(e) { | |
var t = document.createElement("link"); | |
return e.attrs.type = "text/css", e.attrs.rel = "stylesheet", s(t, e.attrs), r(e, t), t | |
} | |
function s(e, t) { | |
Object.keys(t).forEach(function(n) { | |
e.setAttribute(n, t[n]) | |
}) | |
} | |
function u(e, t) { | |
var n, o, l, r; | |
if (t.transform && e.css) { | |
if (!(r = t.transform(e.css))) return function() {}; | |
e.css = r | |
} | |
if (t.singleton) { | |
var s = E++; | |
n = B || (B = A(t)), o = c.bind(null, n, s, !1), l = c.bind(null, n, s, !0) | |
} else e.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (n = a(t), o = h.bind(null, n, t), l = function() { | |
i(n), n.href && URL.revokeObjectURL(n.href) | |
}) : (n = A(t), o = g.bind(null, n), l = function() { | |
i(n) | |
}); | |
return o(e), | |
function(t) { | |
if (t) { | |
if (t.css === e.css && t.media === e.media && t.sourceMap === e.sourceMap) return; | |
o(e = t) | |
} else l() | |
} | |
} | |
function c(e, t, n, o) { | |
var l = n ? "" : o.css; | |
if (e.styleSheet) e.styleSheet.cssText = w(t, l); | |
else { | |
var r = document.createTextNode(l), | |
i = e.childNodes; | |
i[t] && e.removeChild(i[t]), i.length ? e.insertBefore(r, i[t]) : e.appendChild(r) | |
} | |
} | |
function g(e, t) { | |
var n = t.css, | |
o = t.media; | |
if (o && e.setAttribute("media", o), e.styleSheet) e.styleSheet.cssText = n; | |
else { | |
for (; e.firstChild;) e.removeChild(e.firstChild); | |
e.appendChild(document.createTextNode(n)) | |
} | |
} | |
function h(e, t, n) { | |
var o = n.css, | |
l = n.sourceMap, | |
r = void 0 === t.convertToAbsoluteUrls && l; | |
(t.convertToAbsoluteUrls || r) && (o = C(o)), l && (o += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(l)))) + " */"); | |
var i = new Blob([o], { | |
type: "text/css" | |
}), | |
A = e.href; | |
e.href = URL.createObjectURL(i), A && URL.revokeObjectURL(A) | |
} | |
var d = {}, | |
f = function(e) { | |
var t; | |
return function() { | |
return void 0 === t && (t = e.apply(this, arguments)), t | |
} | |
}(function() { | |
return window && document && document.all && !window.atob | |
}), | |
p = function(e) { | |
return document.querySelector(e) | |
}, | |
m = function(e) { | |
var t = {}; | |
return function(e) { | |
if ("function" == typeof e) return e(); | |
if (void 0 === t[e]) { | |
var n = p.call(this, e); | |
if (window.HTMLIFrameElement && n instanceof window.HTMLIFrameElement) try { | |
n = n.contentDocument.head | |
} catch (e) { | |
n = null | |
} | |
t[e] = n | |
} | |
return t[e] | |
} | |
}(), | |
B = null, | |
E = 0, | |
y = [], | |
C = n(274); | |
e.exports = function(e, t) { | |
if ("undefined" != typeof DEBUG && DEBUG && "object" != typeof document) throw new Error("The style-loader cannot be used in a non-browser environment"); | |
t = t || {}, t.attrs = "object" == typeof t.attrs ? t.attrs : {}, t.singleton || "boolean" == typeof t.singleton || (t.singleton = f()), t.insertInto || (t.insertInto = "head"), t.insertAt || (t.insertAt = "bottom"); | |
var n = l(e, t); | |
return o(n, t), | |
function(e) { | |
for (var r = [], i = 0; i < n.length; i++) { | |
var A = n[i], | |
a = d[A.id]; | |
a.refs--, r.push(a) | |
} | |
if (e) { | |
o(l(e, t), t) | |
} | |
for (var i = 0; i < r.length; i++) { | |
var a = r[i]; | |
if (0 === a.refs) { | |
for (var s = 0; s < a.parts.length; s++) a.parts[s](); | |
delete d[a.id] | |
} | |
} | |
} | |
}; | |
var w = function() { | |
var e = []; | |
return function(t, n) { | |
return e[t] = n, e.filter(Boolean).join("\n") | |
} | |
}() | |
}, function(e, t, n) { | |
(function(t) { | |
function n(e, t, n) { | |
switch (n.length) { | |
case 0: | |
return e.call(t); | |
case 1: | |
return e.call(t, n[0]); | |
case 2: | |
return e.call(t, n[0], n[1]); | |
case 3: | |
return e.call(t, n[0], n[1], n[2]) | |
} | |
return e.apply(t, n) | |
} | |
function o(e, t) { | |
for (var n = -1, o = e ? e.length : 0; ++n < o && !1 !== t(e[n], n, e);); | |
return e | |
} | |
function l(e, t) { | |
return !!(e ? e.length : 0) && A(e, t, 0) > -1 | |
} | |
function r(e, t) { | |
for (var n = -1, o = t.length, l = e.length; ++n < o;) e[l + n] = t[n]; | |
return e | |
} | |
function i(e, t, n, o) { | |
for (var l = e.length, r = n + (o ? 1 : -1); o ? r-- : ++r < l;) | |
if (t(e[r], r, e)) return r; | |
return -1 | |
} | |
function A(e, t, n) { | |
if (t !== t) return i(e, a, n); | |
for (var o = n - 1, l = e.length; ++o < l;) | |
if (e[o] === t) return o; | |
return -1 | |
} | |
function a(e) { | |
return e !== e | |
} | |
function s(e, t) { | |
for (var n = e.length, o = 0; n--;) e[n] === t && o++; | |
return o | |
} | |
function u(e, t) { | |
return null == e ? void 0 : e[t] | |
} | |
function c(e) { | |
var t = !1; | |
if (null != e && "function" != typeof e.toString) try { | |
t = !!(e + "") | |
} catch (e) {} | |
return t | |
} | |
function g(e, t) { | |
for (var n = -1, o = e.length, l = 0, r = []; ++n < o;) { | |
var i = e[n]; | |
i !== t && i !== X || (e[n] = X, r[l++] = n) | |
} | |
return r | |
} | |
function h(e) { | |
return j(e) ? Oe(e) : {} | |
} | |
function d(e, t, n, o, l) { | |
var i = -1, | |
A = e.length; | |
for (n || (n = F), l || (l = []); ++i < A;) { | |
var a = e[i]; | |
t > 0 && n(a) ? t > 1 ? d(a, t - 1, n, o, l) : r(l, a) : o || (l[l.length] = a) | |
} | |
return l | |
} | |
function f(e) { | |
return !(!j(e) || x(e)) && (P(e) || c(e) ? Ge : be).test(T(e)) | |
} | |
function p(e, t) { | |
return t = je(void 0 === t ? e.length - 1 : t, 0), | |
function() { | |
for (var o = arguments, l = -1, r = je(o.length - t, 0), i = Array(r); ++l < r;) i[l] = o[t + l]; | |
l = -1; | |
for (var A = Array(t + 1); ++l < t;) A[l] = o[l]; | |
return A[t] = i, n(e, this, A) | |
} | |
} | |
function m(e, t, n, o) { | |
for (var l = -1, r = e.length, i = n.length, A = -1, a = t.length, s = je(r - i, 0), u = Array(a + s), c = !o; ++A < a;) u[A] = t[A]; | |
for (; ++l < i;)(c || l < r) && (u[n[l]] = e[l]); | |
for (; s--;) u[A++] = e[l++]; | |
return u | |
} | |
function B(e, t, n, o) { | |
for (var l = -1, r = e.length, i = -1, A = n.length, a = -1, s = t.length, u = je(r - A, 0), c = Array(u + s), g = !o; ++l < u;) c[l] = e[l]; | |
for (var h = l; ++a < s;) c[h + a] = t[a]; | |
for (; ++i < A;)(g || l < r) && (c[h + n[i]] = e[l++]); | |
return c | |
} | |
function E(e, t) { | |
var n = -1, | |
o = e.length; | |
for (t || (t = Array(o)); ++n < o;) t[n] = e[n]; | |
return t | |
} | |
function y(e, t, n) { | |
function o() { | |
return (this && this !== Se && this instanceof o ? r : e).apply(l ? n : this, arguments) | |
} | |
var l = t & $, | |
r = C(e); | |
return o | |
} | |
function C(e) { | |
return function() { | |
var t = arguments; | |
switch (t.length) { | |
case 0: | |
return new e; | |
case 1: | |
return new e(t[0]); | |
case 2: | |
return new e(t[0], t[1]); | |
case 3: | |
return new e(t[0], t[1], t[2]); | |
case 4: | |
return new e(t[0], t[1], t[2], t[3]); | |
case 5: | |
return new e(t[0], t[1], t[2], t[3], t[4]); | |
case 6: | |
return new e(t[0], t[1], t[2], t[3], t[4], t[5]); | |
case 7: | |
return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6]) | |
} | |
var n = h(e.prototype), | |
o = e.apply(n, t); | |
return j(o) ? o : n | |
} | |
} | |
function w(e, t, o) { | |
function l() { | |
for (var i = arguments.length, A = Array(i), a = i, s = Q(l); a--;) A[a] = arguments[a]; | |
var u = i < 3 && A[0] !== s && A[i - 1] !== s ? [] : g(A, s); | |
return (i -= u.length) < o ? v(e, t, I, l.placeholder, void 0, A, u, void 0, void 0, o - i) : n(this && this !== Se && this instanceof l ? r : e, this, A) | |
} | |
var r = C(e); | |
return l | |
} | |
function I(e, t, n, o, l, r, i, A, a, u) { | |
function c() { | |
for (var w = arguments.length, b = Array(w), M = w; M--;) b[M] = arguments[M]; | |
if (p) var D = Q(c), | |
k = s(b, D); | |
if (o && (b = m(b, o, l, p)), r && (b = B(b, r, i, p)), w -= k, p && w < u) { | |
var S = g(b, D); | |
return v(e, t, I, c.placeholder, n, b, S, A, a, u - w) | |
} | |
var F = d ? n : this, | |
Y = f ? F[e] : e; | |
return w = b.length, A ? b = R(b, A) : E && w > 1 && b.reverse(), h && a < w && (b.length = a), this && this !== Se && this instanceof c && (Y = y || C(Y)), Y.apply(F, b) | |
} | |
var h = t & ie, | |
d = t & $, | |
f = t & ee, | |
p = t & (ne | oe), | |
E = t & Ae, | |
y = f ? void 0 : C(e); | |
return c | |
} | |
function b(e, t, o, l) { | |
function r() { | |
for (var t = -1, a = arguments.length, s = -1, u = l.length, c = Array(u + a), g = this && this !== Se && this instanceof r ? A : e; ++s < u;) c[s] = l[s]; | |
for (; a--;) c[s++] = arguments[++t]; | |
return n(g, i ? o : this, c) | |
} | |
var i = t & $, | |
A = C(e); | |
return r | |
} | |
function v(e, t, n, o, l, r, i, A, a, s) { | |
var u = t & ne, | |
c = u ? i : void 0, | |
g = u ? void 0 : i, | |
h = u ? r : void 0, | |
d = u ? void 0 : r; | |
t |= u ? le : re, (t &= ~(u ? re : le)) & te || (t &= ~($ | ee)); | |
var f = n(e, t, l, h, c, d, g, A, a, s); | |
return f.placeholder = o, ze(f, e, t) | |
} | |
function M(e, t, n, o, l, r, i, A) { | |
var a = t & ee; | |
if (!a && "function" != typeof e) throw new TypeError(_); | |
var s = o ? o.length : 0; | |
if (s || (t &= ~(le | re), o = l = void 0), i = void 0 === i ? i : je(W(i), 0), A = void 0 === A ? A : W(A), s -= l ? l.length : 0, t & re) { | |
var u = o, | |
c = l; | |
o = l = void 0 | |
} | |
var g = [e, t, n, o, l, u, c, r, i, A]; | |
if (e = g[0], t = g[1], n = g[2], o = g[3], l = g[4], A = g[9] = null == g[9] ? a ? 0 : e.length : je(g[9] - s, 0), !A && t & (ne | oe) && (t &= ~(ne | oe)), t && t != $) h = t == ne || t == oe ? w(e, t, A) : t != le && t != ($ | le) || l.length ? I.apply(void 0, g) : b(e, t, n, o); | |
else var h = y(e, t, n); | |
return ze(h, e, t) | |
} | |
function Q(e) { | |
return e.placeholder | |
} | |
function D(e, t) { | |
var n = u(e, t); | |
return f(n) ? n : void 0 | |
} | |
function k(e) { | |
var t = e.match(ye); | |
return t ? t[1].split(Ce) : [] | |
} | |
function S(e, t) { | |
var n = t.length, | |
o = n - 1; | |
return t[o] = (n > 1 ? "& " : "") + t[o], t = t.join(n > 2 ? ", " : " "), e.replace(Ee, "{\n/* [wrapped with " + t + "] */\n") | |
} | |
function F(e) { | |
return Ke(e) || G(e) || !!(He && e && e[He]) | |
} | |
function Y(e, t) { | |
return !!(t = null == t ? se : t) && ("number" == typeof e || Me.test(e)) && e > -1 && e % 1 == 0 && e < t | |
} | |
function x(e) { | |
return !!Re && Re in e | |
} | |
function R(e, t) { | |
for (var n = e.length, o = Je(t.length, n), l = E(e); o--;) { | |
var r = t[o]; | |
e[o] = Y(r, n) ? l[r] : void 0 | |
} | |
return e | |
} | |
function U(e) { | |
if ("string" == typeof e || V(e)) return e; | |
var t = e + ""; | |
return "0" == t && 1 / e == -ae ? "-0" : t | |
} | |
function T(e) { | |
if (null != e) { | |
try { | |
return Ue.call(e) | |
} catch (e) {} | |
try { | |
return e + "" | |
} catch (e) {} | |
} | |
return "" | |
} | |
function N(e, t) { | |
return o(ge, function(n) { | |
var o = "_." + n[0]; | |
t & n[1] && !l(e, o) && e.push(o) | |
}), e.sort() | |
} | |
function G(e) { | |
return O(e) && Te.call(e, "callee") && (!Pe.call(e, "callee") || Ne.call(e) == he) | |
} | |
function L(e) { | |
return null != e && H(e.length) && !P(e) | |
} | |
function O(e) { | |
return J(e) && L(e) | |
} | |
function P(e) { | |
var t = j(e) ? Ne.call(e) : ""; | |
return t == de || t == fe | |
} | |
function H(e) { | |
return "number" == typeof e && e > -1 && e % 1 == 0 && e <= se | |
} | |
function j(e) { | |
var t = typeof e; | |
return !!e && ("object" == t || "function" == t) | |
} | |
function J(e) { | |
return !!e && "object" == typeof e | |
} | |
function V(e) { | |
return "symbol" == typeof e || J(e) && Ne.call(e) == pe | |
} | |
function z(e) { | |
if (!e) return 0 === e ? e : 0; | |
if ((e = K(e)) === ae || e === -ae) { | |
return (e < 0 ? -1 : 1) * ue | |
} | |
return e === e ? e : 0 | |
} | |
function W(e) { | |
var t = z(e), | |
n = t % 1; | |
return t === t ? n ? t - n : t : 0 | |
} | |
function K(e) { | |
if ("number" == typeof e) return e; | |
if (V(e)) return ce; | |
if (j(e)) { | |
var t = "function" == typeof e.valueOf ? e.valueOf() : e; | |
e = j(t) ? t + "" : t | |
} | |
if ("string" != typeof e) return 0 === e ? e : +e; | |
e = e.replace(Be, ""); | |
var n = Ie.test(e); | |
return n || ve.test(e) ? Qe(e.slice(2), n ? 2 : 8) : we.test(e) ? ce : +e | |
} | |
function q(e) { | |
return function() { | |
return e | |
} | |
} | |
function Z(e) { | |
return e | |
} | |
var _ = "Expected a function", | |
X = "__lodash_placeholder__", | |
$ = 1, | |
ee = 2, | |
te = 4, | |
ne = 8, | |
oe = 16, | |
le = 32, | |
re = 64, | |
ie = 128, | |
Ae = 512, | |
ae = 1 / 0, | |
se = 9007199254740991, | |
ue = 1.7976931348623157e308, | |
ce = NaN, | |
ge = [ | |
["ary", ie], | |
["bind", $], | |
["bindKey", ee], | |
["curry", ne], | |
["curryRight", oe], | |
["flip", Ae], | |
["partial", le], | |
["partialRight", re], | |
["rearg", 256] | |
], | |
he = "[object Arguments]", | |
de = "[object Function]", | |
fe = "[object GeneratorFunction]", | |
pe = "[object Symbol]", | |
me = /[\\^$.*+?()[\]{}|]/g, | |
Be = /^\s+|\s+$/g, | |
Ee = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, | |
ye = /\{\n\/\* \[wrapped with (.+)\] \*/, | |
Ce = /,? & /, | |
we = /^[-+]0x[0-9a-f]+$/i, | |
Ie = /^0b[01]+$/i, | |
be = /^\[object .+?Constructor\]$/, | |
ve = /^0o[0-7]+$/i, | |
Me = /^(?:0|[1-9]\d*)$/, | |
Qe = parseInt, | |
De = "object" == typeof t && t && t.Object === Object && t, | |
ke = "object" == typeof self && self && self.Object === Object && self, | |
Se = De || ke || Function("return this")(), | |
Fe = Function.prototype, | |
Ye = Object.prototype, | |
xe = Se["__core-js_shared__"], | |
Re = function() { | |
var e = /[^.]+$/.exec(xe && xe.keys && xe.keys.IE_PROTO || ""); | |
return e ? "Symbol(src)_1." + e : "" | |
}(), | |
Ue = Fe.toString, | |
Te = Ye.hasOwnProperty, | |
Ne = Ye.toString, | |
Ge = RegExp("^" + Ue.call(Te).replace(me, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), | |
Le = Se.Symbol, | |
Oe = Object.create, | |
Pe = Ye.propertyIsEnumerable, | |
He = Le ? Le.isConcatSpreadable : void 0, | |
je = Math.max, | |
Je = Math.min, | |
Ve = function() { | |
var e = D(Object, "defineProperty"), | |
t = D.name; | |
return t && t.length > 2 ? e : void 0 | |
}(), | |
ze = Ve ? function(e, t, n) { | |
var o = t + ""; | |
return Ve(e, "toString", { | |
configurable: !0, | |
enumerable: !1, | |
value: q(S(o, N(k(o), n))) | |
}) | |
} : Z, | |
We = p(function(e, t, n) { | |
var o = $; | |
if (n.length) { | |
var l = g(n, Q(We)); | |
o |= le | |
} | |
return M(e, o, t, n, l) | |
}), | |
Ke = Array.isArray, | |
qe = p(function(e, t) { | |
return o(d(t, 1), function(t) { | |
t = U(t), e[t] = We(e[t], e) | |
}), e | |
}); | |
We.placeholder = {}, e.exports = qe | |
}).call(t, n(13)) | |
}, function(e, t, n) { | |
var o, l; | |
/*! | |
Copyright (c) 2016 Jed Watson. | |
Licensed under the MIT License (MIT), see | |
http://jedwatson.github.io/classnames | |
*/ | |
! function() { | |
"use strict"; | |
function n() { | |
for (var e = [], t = 0; t < arguments.length; t++) { | |
var o = arguments[t]; | |
if (o) { | |
var l = typeof o; | |
if ("string" === l || "number" === l) e.push(o); | |
else if (Array.isArray(o)) e.push(n.apply(null, o)); | |
else if ("object" === l) | |
for (var i in o) r.call(o, i) && o[i] && e.push(i) | |
} | |
} | |
return e.join(" ") | |
} | |
var r = {}.hasOwnProperty; | |
void 0 !== e && e.exports ? e.exports = n : (o = [], void 0 !== (l = function() { | |
return n | |
}.apply(t, o)) && (e.exports = l)) | |
}() | |
}, function(e, t, n) { | |
"use strict"; | |
function o() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []; | |
(Array.isArray(e) ? e : [e]).forEach(function(e) { | |
e && e.locale && (F.a.__addLocaleData(e), x.a.__addLocaleData(e)) | |
}) | |
} | |
function l(e) { | |
for (var t = (e || "").split("-"); t.length > 0;) { | |
if (r(t.join("-"))) return !0; | |
t.pop() | |
} | |
return !1 | |
} | |
function r(e) { | |
var t = e && e.toLowerCase(); | |
return !(!F.a.__localeData__[t] || !x.a.__localeData__[t]) | |
} | |
function i(e) { | |
return ("" + e).replace(ye, function(e) { | |
return Ee[e] | |
}) | |
} | |
function A(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; | |
return t.reduce(function(t, o) { | |
return e.hasOwnProperty(o) ? t[o] = e[o] : n.hasOwnProperty(o) && (t[o] = n[o]), t | |
}, {}) | |
} | |
function a() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, | |
t = e.intl; | |
L()(t, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.") | |
} | |
function s(e, t) { | |
if (e === t) return !0; | |
if ("object" !== (void 0 === e ? "undefined" : j(e)) || null === e || "object" !== (void 0 === t ? "undefined" : j(t)) || null === t) return !1; | |
var n = Object.keys(e), | |
o = Object.keys(t); | |
if (n.length !== o.length) return !1; | |
for (var l = Object.prototype.hasOwnProperty.bind(t), r = 0; r < n.length; r++) | |
if (!l(n[r]) || e[n[r]] !== t[n[r]]) return !1; | |
return !0 | |
} | |
function u(e, t, n) { | |
var o = e.props, | |
l = e.state, | |
r = e.context, | |
i = void 0 === r ? {} : r, | |
a = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, | |
u = i.intl, | |
c = void 0 === u ? {} : u, | |
g = a.intl, | |
h = void 0 === g ? {} : g; | |
return !s(t, o) || !s(n, l) || !(h === c || s(A(h, Be), A(c, Be))) | |
} | |
function c(e) { | |
return e.displayName || e.name || "Component" | |
} | |
function g(e) { | |
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, | |
n = t.intlPropName, | |
o = void 0 === n ? "intl" : n, | |
l = t.withRef, | |
r = void 0 !== l && l, | |
i = function(t) { | |
function n(e, t) { | |
J(this, n); | |
var o = Z(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, e, t)); | |
return a(t), o | |
} | |
return K(n, t), V(n, [{ | |
key: "getWrappedInstance", | |
value: function() { | |
return L()(r, "[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"), this.refs.wrappedInstance | |
} | |
}, { | |
key: "render", | |
value: function() { | |
return N.a.createElement(e, W({}, this.props, z({}, o, this.context.intl), { | |
ref: r ? "wrappedInstance" : null | |
})) | |
} | |
}]), n | |
}(T.Component); | |
return i.displayName = "InjectIntl(" + c(e) + ")", i.contextTypes = { | |
intl: he | |
}, i.WrappedComponent = e, i | |
} | |
function h(e) { | |
return e | |
} | |
function d(e) { | |
return F.a.prototype._resolveLocale(e) | |
} | |
function f(e) { | |
return F.a.prototype._findPluralRuleFunction(e) | |
} | |
function p(e) { | |
var t = x.a.thresholds; | |
t.second = e.second, t.minute = e.minute, t.hour = e.hour, t.day = e.day, t.month = e.month | |
} | |
function m(e, t, n) { | |
var o = e && e[t] && e[t][n]; | |
if (o) return o | |
} | |
function B(e, t, n) { | |
var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, | |
l = e.locale, | |
r = e.formats, | |
i = o.format, | |
a = new Date(n), | |
s = i && m(r, "date", i), | |
u = A(o, we, s); | |
try { | |
return t.getDateTimeFormat(l, u).format(a) | |
} catch (e) {} | |
return String(a) | |
} | |
function E(e, t, n) { | |
var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, | |
l = e.locale, | |
r = e.formats, | |
i = o.format, | |
a = new Date(n), | |
s = i && m(r, "time", i), | |
u = A(o, we, s); | |
u.hour || u.minute || u.second || (u = W({}, u, { | |
hour: "numeric", | |
minute: "numeric" | |
})); | |
try { | |
return t.getDateTimeFormat(l, u).format(a) | |
} catch (e) {} | |
return String(a) | |
} | |
function y(e, t, n) { | |
var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, | |
l = e.locale, | |
r = e.formats, | |
i = o.format, | |
a = new Date(n), | |
s = new Date(o.now), | |
u = i && m(r, "relative", i), | |
c = A(o, be, u), | |
g = W({}, x.a.thresholds); | |
p(Me); | |
try { | |
return t.getRelativeFormat(l, c).format(a, { | |
now: isFinite(s) ? s : t.now() | |
}) | |
} catch (e) {} finally { | |
p(g) | |
} | |
return String(a) | |
} | |
function C(e, t, n) { | |
var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, | |
l = e.locale, | |
r = e.formats, | |
i = o.format, | |
a = i && m(r, "number", i), | |
s = A(o, Ie, a); | |
try { | |
return t.getNumberFormat(l, s).format(n) | |
} catch (e) {} | |
return String(n) | |
} | |
function w(e, t, n) { | |
var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, | |
l = e.locale, | |
r = A(o, ve); | |
try { | |
return t.getPluralFormat(l, r).format(n) | |
} catch (e) {} | |
return "other" | |
} | |
function I(e, t) { | |
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, | |
o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, | |
l = e.locale, | |
r = e.formats, | |
i = e.messages, | |
A = e.defaultLocale, | |
a = e.defaultFormats, | |
s = n.id, | |
u = n.defaultMessage; | |
L()(s, "[React Intl] An `id` must be provided to format a message."); | |
var c = i && i[s]; | |
if (!(Object.keys(o).length > 0)) return c || u || s; | |
var g = void 0; | |
if (c) try { | |
g = t.getMessageFormat(c, l, r).format(o) | |
} catch (e) {} | |
if (!g && u) try { | |
g = t.getMessageFormat(u, A, a).format(o) | |
} catch (e) {} | |
return g || c || u || s | |
} | |
function b(e, t, n) { | |
var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}; | |
return I(e, t, n, Object.keys(o).reduce(function(e, t) { | |
var n = o[t]; | |
return e[t] = "string" == typeof n ? i(n) : n, e | |
}, {})) | |
} | |
function v(e) { | |
var t = Math.abs(e); | |
return t < Ue ? "second" : t < Te ? "minute" : t < Ne ? "hour" : "day" | |
} | |
function M(e) { | |
switch (e) { | |
case "second": | |
return Re; | |
case "minute": | |
return Ue; | |
case "hour": | |
return Te; | |
case "day": | |
return Ne; | |
default: | |
return Ge | |
} | |
} | |
function Q(e, t) { | |
if (e === t) return !0; | |
var n = new Date(e).getTime(), | |
o = new Date(t).getTime(); | |
return isFinite(n) && isFinite(o) && n === o | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}), n.d(t, "addLocaleData", function() { | |
return o | |
}), n.d(t, "intlShape", function() { | |
return he | |
}), n.d(t, "injectIntl", function() { | |
return g | |
}), n.d(t, "defineMessages", function() { | |
return h | |
}), n.d(t, "IntlProvider", function() { | |
return Fe | |
}), n.d(t, "FormattedDate", function() { | |
return Ye | |
}), n.d(t, "FormattedTime", function() { | |
return xe | |
}), n.d(t, "FormattedRelative", function() { | |
return Le | |
}), n.d(t, "FormattedNumber", function() { | |
return Oe | |
}), n.d(t, "FormattedPlural", function() { | |
return Pe | |
}), n.d(t, "FormattedMessage", function() { | |
return He | |
}), n.d(t, "FormattedHTMLMessage", function() { | |
return je | |
}); | |
var D = n(195), | |
k = n.n(D), | |
S = n(72), | |
F = n.n(S), | |
Y = n(204), | |
x = n.n(Y), | |
R = n(1), | |
U = n.n(R), | |
T = n(0), | |
N = n.n(T), | |
G = n(64), | |
L = n.n(G), | |
O = n(211), | |
P = n.n(O), | |
H = { | |
locale: "en", | |
pluralRuleFunction: function(e, t) { | |
var n = String(e).split("."), | |
o = !n[1], | |
l = Number(n[0]) == e, | |
r = l && n[0].slice(-1), | |
i = l && n[0].slice(-2); | |
return t ? 1 == r && 11 != i ? "one" : 2 == r && 12 != i ? "two" : 3 == r && 13 != i ? "few" : "other" : 1 == e && o ? "one" : "other" | |
}, | |
fields: { | |
year: { | |
displayName: "year", | |
relative: { | |
0: "this year", | |
1: "next year", | |
"-1": "last year" | |
}, | |
relativeTime: { | |
future: { | |
one: "in {0} year", | |
other: "in {0} years" | |
}, | |
past: { | |
one: "{0} year ago", | |
other: "{0} years ago" | |
} | |
} | |
}, | |
month: { | |
displayName: "month", | |
relative: { | |
0: "this month", | |
1: "next month", | |
"-1": "last month" | |
}, | |
relativeTime: { | |
future: { | |
one: "in {0} month", | |
other: "in {0} months" | |
}, | |
past: { | |
one: "{0} month ago", | |
other: "{0} months ago" | |
} | |
} | |
}, | |
day: { | |
displayName: "day", | |
relative: { | |
0: "today", | |
1: "tomorrow", | |
"-1": "yesterday" | |
}, | |
relativeTime: { | |
future: { | |
one: "in {0} day", | |
other: "in {0} days" | |
}, | |
past: { | |
one: "{0} day ago", | |
other: "{0} days ago" | |
} | |
} | |
}, | |
hour: { | |
displayName: "hour", | |
relative: { | |
0: "this hour" | |
}, | |
relativeTime: { | |
future: { | |
one: "in {0} hour", | |
other: "in {0} hours" | |
}, | |
past: { | |
one: "{0} hour ago", | |
other: "{0} hours ago" | |
} | |
} | |
}, | |
minute: { | |
displayName: "minute", | |
relative: { | |
0: "this minute" | |
}, | |
relativeTime: { | |
future: { | |
one: "in {0} minute", | |
other: "in {0} minutes" | |
}, | |
past: { | |
one: "{0} minute ago", | |
other: "{0} minutes ago" | |
} | |
} | |
}, | |
second: { | |
displayName: "second", | |
relative: { | |
0: "now" | |
}, | |
relativeTime: { | |
future: { | |
one: "in {0} second", | |
other: "in {0} seconds" | |
}, | |
past: { | |
one: "{0} second ago", | |
other: "{0} seconds ago" | |
} | |
} | |
} | |
} | |
}, | |
j = "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 | |
}, | |
J = function(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
}, | |
V = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
z = function(e, t, n) { | |
return t in e ? Object.defineProperty(e, t, { | |
value: n, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0 | |
}) : e[t] = n, e | |
}, | |
W = Object.assign || function(e) { | |
for (var t = 1; t < arguments.length; t++) { | |
var n = arguments[t]; | |
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]) | |
} | |
return e | |
}, | |
K = function(e, t) { | |
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
e.prototype = Object.create(t && t.prototype, { | |
constructor: { | |
value: e, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
}, | |
q = function(e, t) { | |
var n = {}; | |
for (var o in e) t.indexOf(o) >= 0 || Object.prototype.hasOwnProperty.call(e, o) && (n[o] = e[o]); | |
return n | |
}, | |
Z = function(e, t) { | |
if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return !t || "object" != typeof t && "function" != typeof t ? e : t | |
}, | |
_ = function(e) { | |
if (Array.isArray(e)) { | |
for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t]; | |
return n | |
} | |
return Array.from(e) | |
}, | |
X = U.a.bool, | |
$ = U.a.number, | |
ee = U.a.string, | |
te = U.a.func, | |
ne = U.a.object, | |
oe = U.a.oneOf, | |
le = U.a.shape, | |
re = U.a.any, | |
ie = U.a.oneOfType, | |
Ae = oe(["best fit", "lookup"]), | |
ae = oe(["narrow", "short", "long"]), | |
se = oe(["numeric", "2-digit"]), | |
ue = te.isRequired, | |
ce = { | |
locale: ee, | |
formats: ne, | |
messages: ne, | |
textComponent: re, | |
defaultLocale: ee, | |
defaultFormats: ne | |
}, | |
ge = { | |
formatDate: ue, | |
formatTime: ue, | |
formatRelative: ue, | |
formatNumber: ue, | |
formatPlural: ue, | |
formatMessage: ue, | |
formatHTMLMessage: ue | |
}, | |
he = le(W({}, ce, ge, { | |
formatters: ne, | |
now: ue | |
})), | |
de = (ee.isRequired, ie([ee, ne]), { | |
localeMatcher: Ae, | |
formatMatcher: oe(["basic", "best fit"]), | |
timeZone: ee, | |
hour12: X, | |
weekday: ae, | |
era: ae, | |
year: se, | |
month: oe(["numeric", "2-digit", "narrow", "short", "long"]), | |
day: se, | |
hour: se, | |
minute: se, | |
second: se, | |
timeZoneName: oe(["short", "long"]) | |
}), | |
fe = { | |
localeMatcher: Ae, | |
style: oe(["decimal", "currency", "percent"]), | |
currency: ee, | |
currencyDisplay: oe(["symbol", "code", "name"]), | |
useGrouping: X, | |
minimumIntegerDigits: $, | |
minimumFractionDigits: $, | |
maximumFractionDigits: $, | |
minimumSignificantDigits: $, | |
maximumSignificantDigits: $ | |
}, | |
pe = { | |
style: oe(["best fit", "numeric"]), | |
units: oe(["second", "minute", "hour", "day", "month", "year"]) | |
}, | |
me = { | |
style: oe(["cardinal", "ordinal"]) | |
}, | |
Be = Object.keys(ce), | |
Ee = { | |
"&": "&", | |
">": ">", | |
"<": "<", | |
'"': """, | |
"'": "'" | |
}, | |
ye = /[&><"']/g, | |
Ce = function e(t) { | |
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; | |
J(this, e); | |
var o = "ordinal" === n.style, | |
l = f(d(t)); | |
this.format = function(e) { | |
return l(e, o) | |
} | |
}, | |
we = Object.keys(de), | |
Ie = Object.keys(fe), | |
be = Object.keys(pe), | |
ve = Object.keys(me), | |
Me = { | |
second: 60, | |
minute: 60, | |
hour: 24, | |
day: 30, | |
month: 12 | |
}, | |
Qe = Object.freeze({ | |
formatDate: B, | |
formatTime: E, | |
formatRelative: y, | |
formatNumber: C, | |
formatPlural: w, | |
formatMessage: I, | |
formatHTMLMessage: b | |
}), | |
De = Object.keys(ce), | |
ke = Object.keys(ge), | |
Se = { | |
formats: {}, | |
messages: {}, | |
textComponent: "span", | |
defaultLocale: "en", | |
defaultFormats: {} | |
}, | |
Fe = function(e) { | |
function t(e) { | |
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; | |
J(this, t); | |
var o = Z(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)); | |
L()("undefined" != typeof Intl, "[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/"); | |
var l = n.intl, | |
r = void 0; | |
r = isFinite(e.initialNow) ? Number(e.initialNow) : l ? l.now() : Date.now(); | |
var i = l || {}, | |
A = i.formatters, | |
a = void 0 === A ? { | |
getDateTimeFormat: P()(Intl.DateTimeFormat), | |
getNumberFormat: P()(Intl.NumberFormat), | |
getMessageFormat: P()(F.a), | |
getRelativeFormat: P()(x.a), | |
getPluralFormat: P()(Ce) | |
} : A; | |
return o.state = W({}, a, { | |
now: function() { | |
return o._didDisplay ? Date.now() : r | |
} | |
}), o | |
} | |
return K(t, e), V(t, [{ | |
key: "getConfig", | |
value: function() { | |
var e = this.context.intl, | |
t = A(this.props, De, e); | |
for (var n in Se) void 0 === t[n] && (t[n] = Se[n]); | |
if (!l(t.locale)) { | |
var o = t, | |
r = (o.locale, o.defaultLocale), | |
i = o.defaultFormats; | |
t = W({}, t, { | |
locale: r, | |
formats: i, | |
messages: Se.messages | |
}) | |
} | |
return t | |
} | |
}, { | |
key: "getBoundFormatFns", | |
value: function(e, t) { | |
return ke.reduce(function(n, o) { | |
return n[o] = Qe[o].bind(null, e, t), n | |
}, {}) | |
} | |
}, { | |
key: "getChildContext", | |
value: function() { | |
var e = this.getConfig(), | |
t = this.getBoundFormatFns(e, this.state), | |
n = this.state, | |
o = n.now, | |
l = q(n, ["now"]); | |
return { | |
intl: W({}, e, t, { | |
formatters: l, | |
now: o | |
}) | |
} | |
} | |
}, { | |
key: "shouldComponentUpdate", | |
value: function() { | |
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; | |
return u.apply(void 0, [this].concat(t)) | |
} | |
}, { | |
key: "componentDidMount", | |
value: function() { | |
this._didDisplay = !0 | |
} | |
}, { | |
key: "render", | |
value: function() { | |
return T.Children.only(this.props.children) | |
} | |
}]), t | |
}(T.Component); | |
Fe.displayName = "IntlProvider", Fe.contextTypes = { | |
intl: he | |
}, Fe.childContextTypes = { | |
intl: he.isRequired | |
}; | |
var Ye = function(e) { | |
function t(e, n) { | |
J(this, t); | |
var o = Z(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)); | |
return a(n), o | |
} | |
return K(t, e), V(t, [{ | |
key: "shouldComponentUpdate", | |
value: function() { | |
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; | |
return u.apply(void 0, [this].concat(t)) | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var e = this.context.intl, | |
t = e.formatDate, | |
n = e.textComponent, | |
o = this.props, | |
l = o.value, | |
r = o.children, | |
i = t(l, this.props); | |
return "function" == typeof r ? r(i) : N.a.createElement(n, null, i) | |
} | |
}]), t | |
}(T.Component); | |
Ye.displayName = "FormattedDate", Ye.contextTypes = { | |
intl: he | |
}; | |
var xe = function(e) { | |
function t(e, n) { | |
J(this, t); | |
var o = Z(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)); | |
return a(n), o | |
} | |
return K(t, e), V(t, [{ | |
key: "shouldComponentUpdate", | |
value: function() { | |
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; | |
return u.apply(void 0, [this].concat(t)) | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var e = this.context.intl, | |
t = e.formatTime, | |
n = e.textComponent, | |
o = this.props, | |
l = o.value, | |
r = o.children, | |
i = t(l, this.props); | |
return "function" == typeof r ? r(i) : N.a.createElement(n, null, i) | |
} | |
}]), t | |
}(T.Component); | |
xe.displayName = "FormattedTime", xe.contextTypes = { | |
intl: he | |
}; | |
var Re = 1e3, | |
Ue = 6e4, | |
Te = 36e5, | |
Ne = 864e5, | |
Ge = 2147483647, | |
Le = function(e) { | |
function t(e, n) { | |
J(this, t); | |
var o = Z(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)); | |
a(n); | |
var l = isFinite(e.initialNow) ? Number(e.initialNow) : n.intl.now(); | |
return o.state = { | |
now: l | |
}, o | |
} | |
return K(t, e), V(t, [{ | |
key: "scheduleNextUpdate", | |
value: function(e, t) { | |
var n = this; | |
clearTimeout(this._timer); | |
var o = e.value, | |
l = e.units, | |
r = e.updateInterval, | |
i = new Date(o).getTime(); | |
if (r && isFinite(i)) { | |
var A = i - t.now, | |
a = M(l || v(A)), | |
s = Math.abs(A % a), | |
u = A < 0 ? Math.max(r, a - s) : Math.max(r, s); | |
this._timer = setTimeout(function() { | |
n.setState({ | |
now: n.context.intl.now() | |
}) | |
}, u) | |
} | |
} | |
}, { | |
key: "componentDidMount", | |
value: function() { | |
this.scheduleNextUpdate(this.props, this.state) | |
} | |
}, { | |
key: "componentWillReceiveProps", | |
value: function(e) { | |
Q(e.value, this.props.value) || this.setState({ | |
now: this.context.intl.now() | |
}) | |
} | |
}, { | |
key: "shouldComponentUpdate", | |
value: function() { | |
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; | |
return u.apply(void 0, [this].concat(t)) | |
} | |
}, { | |
key: "componentWillUpdate", | |
value: function(e, t) { | |
this.scheduleNextUpdate(e, t) | |
} | |
}, { | |
key: "componentWillUnmount", | |
value: function() { | |
clearTimeout(this._timer) | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var e = this.context.intl, | |
t = e.formatRelative, | |
n = e.textComponent, | |
o = this.props, | |
l = o.value, | |
r = o.children, | |
i = t(l, W({}, this.props, this.state)); | |
return "function" == typeof r ? r(i) : N.a.createElement(n, null, i) | |
} | |
}]), t | |
}(T.Component); | |
Le.displayName = "FormattedRelative", Le.contextTypes = { | |
intl: he | |
}, Le.defaultProps = { | |
updateInterval: 1e4 | |
}; | |
var Oe = function(e) { | |
function t(e, n) { | |
J(this, t); | |
var o = Z(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)); | |
return a(n), o | |
} | |
return K(t, e), V(t, [{ | |
key: "shouldComponentUpdate", | |
value: function() { | |
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; | |
return u.apply(void 0, [this].concat(t)) | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var e = this.context.intl, | |
t = e.formatNumber, | |
n = e.textComponent, | |
o = this.props, | |
l = o.value, | |
r = o.children, | |
i = t(l, this.props); | |
return "function" == typeof r ? r(i) : N.a.createElement(n, null, i) | |
} | |
}]), t | |
}(T.Component); | |
Oe.displayName = "FormattedNumber", Oe.contextTypes = { | |
intl: he | |
}; | |
var Pe = function(e) { | |
function t(e, n) { | |
J(this, t); | |
var o = Z(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)); | |
return a(n), o | |
} | |
return K(t, e), V(t, [{ | |
key: "shouldComponentUpdate", | |
value: function() { | |
for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; | |
return u.apply(void 0, [this].concat(t)) | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var e = this.context.intl, | |
t = e.formatPlural, | |
n = e.textComponent, | |
o = this.props, | |
l = o.value, | |
r = o.other, | |
i = o.children, | |
A = t(l, this.props), | |
a = this.props[A] || r; | |
return "function" == typeof i ? i(a) : N.a.createElement(n, null, a) | |
} | |
}]), t | |
}(T.Component); | |
Pe.displayName = "FormattedPlural", Pe.contextTypes = { | |
intl: he | |
}, Pe.defaultProps = { | |
style: "cardinal" | |
}; | |
var He = function(e) { | |
function t(e, n) { | |
J(this, t); | |
var o = Z(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)); | |
return a(n), o | |
} | |
return K(t, e), V(t, [{ | |
key: "shouldComponentUpdate", | |
value: function(e) { | |
var t = this.props.values; | |
if (!s(e.values, t)) return !0; | |
for (var n = W({}, e, { | |
values: t | |
}), o = arguments.length, l = Array(o > 1 ? o - 1 : 0), r = 1; r < o; r++) l[r - 1] = arguments[r]; | |
return u.apply(void 0, [this, n].concat(l)) | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var e = this.context.intl, | |
t = e.formatMessage, | |
n = e.textComponent, | |
o = this.props, | |
l = o.id, | |
r = o.description, | |
i = o.defaultMessage, | |
A = o.values, | |
a = o.tagName, | |
s = void 0 === a ? n : a, | |
u = o.children, | |
c = void 0, | |
g = void 0, | |
h = void 0; | |
if (A && Object.keys(A).length > 0) { | |
var d = Math.floor(1099511627776 * Math.random()).toString(16), | |
f = function() { | |
var e = 0; | |
return function() { | |
return "ELEMENT-" + d + "-" + (e += 1) | |
} | |
}(); | |
c = "@__" + d + "__@", g = {}, h = {}, Object.keys(A).forEach(function(e) { | |
var t = A[e]; | |
if (Object(T.isValidElement)(t)) { | |
var n = f(); | |
g[e] = c + n + c, h[n] = t | |
} else g[e] = t | |
}) | |
} | |
var p = { | |
id: l, | |
description: r, | |
defaultMessage: i | |
}, | |
m = t(p, g || A), | |
B = void 0; | |
return B = h && Object.keys(h).length > 0 ? m.split(c).filter(function(e) { | |
return !!e | |
}).map(function(e) { | |
return h[e] || e | |
}) : [m], "function" == typeof u ? u.apply(void 0, _(B)) : T.createElement.apply(void 0, [s, null].concat(_(B))) | |
} | |
}]), t | |
}(T.Component); | |
He.displayName = "FormattedMessage", He.contextTypes = { | |
intl: he | |
}, He.defaultProps = { | |
values: {} | |
}; | |
var je = function(e) { | |
function t(e, n) { | |
J(this, t); | |
var o = Z(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e, n)); | |
return a(n), o | |
} | |
return K(t, e), V(t, [{ | |
key: "shouldComponentUpdate", | |
value: function(e) { | |
var t = this.props.values; | |
if (!s(e.values, t)) return !0; | |
for (var n = W({}, e, { | |
values: t | |
}), o = arguments.length, l = Array(o > 1 ? o - 1 : 0), r = 1; r < o; r++) l[r - 1] = arguments[r]; | |
return u.apply(void 0, [this, n].concat(l)) | |
} | |
}, { | |
key: "render", | |
value: function() { | |
var e = this.context.intl, | |
t = e.formatHTMLMessage, | |
n = e.textComponent, | |
o = this.props, | |
l = o.id, | |
r = o.description, | |
i = o.defaultMessage, | |
A = o.values, | |
a = o.tagName, | |
s = void 0 === a ? n : a, | |
u = o.children, | |
c = { | |
id: l, | |
description: r, | |
defaultMessage: i | |
}, | |
g = t(c, A); | |
if ("function" == typeof u) return u(g); | |
var h = { | |
__html: g | |
}; | |
return N.a.createElement(s, { | |
dangerouslySetInnerHTML: h | |
}) | |
} | |
}]), t | |
}(T.Component); | |
je.displayName = "FormattedHTMLMessage", je.contextTypes = { | |
intl: he | |
}, je.defaultProps = { | |
values: {} | |
}, o(H), o(k.a) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
return e && e.__esModule ? e : { | |
default: e | |
} | |
} | |
function l(e, t) { | |
var n = {}; | |
for (var o in e) t.indexOf(o) >= 0 || Object.prototype.hasOwnProperty.call(e, o) && (n[o] = e[o]); | |
return n | |
} | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var r = Object.assign || function(e) { | |
for (var t = 1; t < arguments.length; t++) { | |
var n = arguments[t]; | |
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]) | |
} | |
return e | |
}, | |
i = n(5), | |
A = o(i), | |
a = n(1), | |
s = o(a), | |
u = n(0), | |
c = o(u), | |
g = n(270), | |
h = o(g), | |
d = n(272), | |
f = o(d), | |
p = (function() { | |
var e = function(e) { | |
var t = 601, | |
n = 987654321, | |
o = 4294967295; | |
return function() { | |
n = 36969 * (65535 & n) + (n >> 16) & o, t = 18e3 * (65535 & t) + (t >> 16) & o; | |
var e = (n << 16) + t & o; | |
return (e /= 4294967296) + 1 | |
} | |
}() | |
}(), function(e) { | |
var t = e.alignContent, | |
n = e.alignItems, | |
o = e.alignSelf, | |
i = e.basis, | |
a = e.children, | |
s = e.className, | |
u = e.componentRef, | |
g = e.direction, | |
h = e.element, | |
d = e.grow, | |
p = e.height, | |
m = e.justifyContent, | |
B = e.width, | |
E = e.wrap, | |
y = e.shrink, | |
C = e.style, | |
w = l(e, ["alignContent", "alignItems", "alignSelf", "basis", "children", "className", "componentRef", "direction", "element", "grow", "height", "justifyContent", "width", "wrap", "shrink", "style"]); | |
return c.default.createElement(h, r({ | |
className: (0, A.default)(s, f.default.box), | |
ref: u, | |
style: Object.assign({ | |
alignContent: t, | |
alignItems: n, | |
alignSelf: o, | |
flexBasis: i, | |
flexDirection: g, | |
flexGrow: d, | |
flexShrink: y, | |
flexWrap: E, | |
justifyContent: m, | |
width: B, | |
height: p | |
}, {}, C) | |
}, w), a) | |
}); | |
p.propTypes = { | |
alignContent: s.default.oneOf(["flex-start", "flex-end", "center", "space-between", "space-around", "stretch"]), | |
alignItems: s.default.oneOf(["flex-start", "flex-end", "center", "baseline", "stretch"]), | |
alignSelf: s.default.oneOf(["auto", "flex-start", "flex-end", "center", "baseline", "stretch"]), | |
basis: s.default.oneOfType([s.default.number, s.default.oneOf(["auto"])]), | |
children: s.default.node, | |
className: s.default.string, | |
componentRef: s.default.func, | |
direction: s.default.oneOf(["row", "row-reverse", "column", "column-reverse"]), | |
element: s.default.string, | |
grow: s.default.number, | |
height: s.default.oneOfType([s.default.number, s.default.string]), | |
justifyContent: s.default.oneOf(["flex-start", "flex-end", "center", "space-between", "space-around"]), | |
shrink: s.default.number, | |
style: h.default, | |
width: s.default.oneOfType([s.default.number, s.default.string]), | |
wrap: s.default.oneOf(["nowrap", "wrap", "wrap-reverse"]) | |
}, p.defaultProps = { | |
element: "div", | |
style: {} | |
}, t.default = p | |
}, function(e, t, n) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { | |
value: !0 | |
}); | |
var o = n(168), | |
l = n(63), | |
r = n(171); | |
n.d(t, "Provider", function() { | |
return o.b | |
}), n.d(t, "createProvider", function() { | |
return o.a | |
}), n.d(t, "connectAdvanced", function() { | |
return l.a | |
}), n.d(t, "connect", function() { | |
return r.a | |
}) | |
}, function(e, t, n) { | |
! function(t, n) { | |
e.exports = n() | |
}("undefined" != typeof self && self, function() { | |
return function(e) { | |
function t(o) { | |
if (n[o]) return n[o].exports; | |
var l = n[o] = { | |
i: o, | |
l: !1, | |
exports: {} | |
}; | |
return e[o].call(l.exports, l, l.exports, t), l.l = !0, l.exports | |
} | |
var n = {}; | |
return t.m = e, t.c = n, t.d = function(e, n, o) { | |
t.o(e, n) || Object.defineProperty(e, n, { | |
configurable: !1, | |
enumerable: !0, | |
get: o | |
}) | |
}, t.n = function(e) { | |
var n = e && e.__esModule ? function() { | |
return e.default | |
} : function() { | |
return e | |
}; | |
return t.d(n, "a", n), n | |
}, t.o = function(e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
}, t.p = "", t(t.s = 111) | |
}([function(e, t, n) { | |
"use strict"; | |
(function(t) { | |
e.exports = function(e) { | |
for (var n = "undefined" != typeof window && "function" == typeof window.atob, o = n ? window.atob(e) : new t(e, "base64").toString("binary"), l = new Uint8Array(o.length), r = 0; r < o.length; ++r) l[r] = o.charCodeAt(r); | |
return l.buffer | |
} | |
}).call(t, n(6).Buffer) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
var t = null; | |
return t = a.uint8array ? new Uint8Array(e.length) : new Array(e.length), r(e, t) | |
} | |
function l(e) { | |
return e | |
} | |
function r(e, t) { | |
for (var n = 0; n < e.length; ++n) t[n] = 255 & e.charCodeAt(n); | |
return t | |
} | |
function i(e) { | |
var n = 65536, | |
o = t.getTypeOf(e), | |
l = !0; | |
if ("uint8array" === o ? l = h.applyCanBeUsed.uint8array : "nodebuffer" === o && (l = h.applyCanBeUsed.nodebuffer), l) | |
for (; n > 1;) try { | |
return h.stringifyByChunk(e, o, n) | |
} catch (e) { | |
n = Math.floor(n / 2) | |
} | |
return h.stringifyByChar(e) | |
} | |
function A(e, t) { | |
for (var n = 0; n < e.length; n++) t[n] = e[n]; | |
return t | |
} | |
var a = n(8), | |
s = n(62), | |
u = n(32), | |
c = n(130), | |
g = n(24); | |
t.newBlob = function(e, n) { | |
t.checkSupport("blob"); | |
try { | |
return new Blob([e], { | |
type: n | |
}) | |
} catch (t) { | |
try { | |
var o = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder, | |
l = new o; | |
return l.append(e), l.getBlob(n) | |
} catch (e) { | |
throw new Error("Bug : can't construct the Blob.") | |
} | |
} | |
}; | |
var h = { | |
stringifyByChunk: function(e, t, n) { | |
var o = [], | |
l = 0, | |
r = e.length; | |
if (r <= n) return String.fromCharCode.apply(null, e); | |
for (; l < r;) "array" === t || "nodebuffer" === t ? o.push(String.fromCharCode.apply(null, e.slice(l, Math.min(l + n, r)))) : o.push(String.fromCharCode.apply(null, e.subarray(l, Math.min(l + n, r)))), l += n; | |
return o.join("") | |
}, | |
stringifyByChar: function(e) { | |
for (var t = "", n = 0; n < e.length; n++) t += String.fromCharCode(e[n]); | |
return t | |
}, | |
applyCanBeUsed: { | |
uint8array: function() { | |
try { | |
return a.uint8array && 1 === String.fromCharCode.apply(null, new Uint8Array(1)).length | |
} catch (e) { | |
return !1 | |
} | |
}(), | |
nodebuffer: function() { | |
try { | |
return a.nodebuffer && 1 === String.fromCharCode.apply(null, u.allocBuffer(1)).length | |
} catch (e) { | |
return !1 | |
} | |
}() | |
} | |
}; | |
t.applyFromCharCode = i; | |
var d = {}; | |
d.string = { | |
string: l, | |
array: function(e) { | |
return r(e, new Array(e.length)) | |
}, | |
arraybuffer: function(e) { | |
return d.string.uint8array(e).buffer | |
}, | |
uint8array: function(e) { | |
return r(e, new Uint8Array(e.length)) | |
}, | |
nodebuffer: function(e) { | |
return r(e, u.allocBuffer(e.length)) | |
} | |
}, d.array = { | |
string: i, | |
array: l, | |
arraybuffer: function(e) { | |
return new Uint8Array(e).buffer | |
}, | |
uint8array: function(e) { | |
return new Uint8Array(e) | |
}, | |
nodebuffer: function(e) { | |
return u.newBufferFrom(e) | |
} | |
}, d.arraybuffer = { | |
string: function(e) { | |
return i(new Uint8Array(e)) | |
}, | |
array: function(e) { | |
return A(new Uint8Array(e), new Array(e.byteLength)) | |
}, | |
arraybuffer: l, | |
uint8array: function(e) { | |
return new Uint8Array(e) | |
}, | |
nodebuffer: function(e) { | |
return u.newBufferFrom(new Uint8Array(e)) | |
} | |
}, d.uint8array = { | |
string: i, | |
array: function(e) { | |
return A(e, new Array(e.length)) | |
}, | |
arraybuffer: function(e) { | |
return e.buffer | |
}, | |
uint8array: l, | |
nodebuffer: function(e) { | |
return u.newBufferFrom(e) | |
} | |
}, d.nodebuffer = { | |
string: i, | |
array: function(e) { | |
return A(e, new Array(e.length)) | |
}, | |
arraybuffer: function(e) { | |
return d.nodebuffer.uint8array(e).buffer | |
}, | |
uint8array: function(e) { | |
return A(e, new Uint8Array(e.length)) | |
}, | |
nodebuffer: l | |
}, t.transformTo = function(e, n) { | |
if (n || (n = ""), !e) return n; | |
t.checkSupport(e); | |
var o = t.getTypeOf(n); | |
return d[o][e](n) | |
}, t.getTypeOf = function(e) { | |
return "string" == typeof e ? "string" : "[object Array]" === Object.prototype.toString.call(e) ? "array" : a.nodebuffer && u.isBuffer(e) ? "nodebuffer" : a.uint8array && e instanceof Uint8Array ? "uint8array" : a.arraybuffer && e instanceof ArrayBuffer ? "arraybuffer" : void 0 | |
}, t.checkSupport = function(e) { | |
if (!a[e.toLowerCase()]) throw new Error(e + " is not supported by this platform") | |
}, t.MAX_VALUE_16BITS = 65535, t.MAX_VALUE_32BITS = -1, t.pretty = function(e) { | |
var t, n, o = ""; | |
for (n = 0; n < (e || "").length; n++) t = e.charCodeAt(n), o += "\\x" + (t < 16 ? "0" : "") + t.toString(16).toUpperCase(); | |
return o | |
}, t.delay = function(e, t, n) { | |
c(function() { | |
e.apply(n || null, t || []) | |
}) | |
}, t.inherits = function(e, t) { | |
var n = function() {}; | |
n.prototype = t.prototype, e.prototype = new n | |
}, t.extend = function() { | |
var e, t, n = {}; | |
for (e = 0; e < arguments.length; e++) | |
for (t in arguments[e]) arguments[e].hasOwnProperty(t) && void 0 === n[t] && (n[t] = arguments[e][t]); | |
return n | |
}, t.prepareContent = function(e, n, l, r, i) { | |
return g.Promise.resolve(n).then(function(e) { | |
return a.blob && (e instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(e))) && "undefined" != typeof FileReader ? new g.Promise(function(t, n) { | |
var o = new FileReader; | |
o.onload = function(e) { | |
t(e.target.result) | |
}, o.onerror = function(e) { | |
n(e.target.error) | |
}, o.readAsArrayBuffer(e) | |
}) : e | |
}).then(function(n) { | |
var A = t.getTypeOf(n); | |
return A ? ("arraybuffer" === A ? n = t.transformTo("uint8array", n) : "string" === A && (i ? n = s.decode(n) : l && !0 !== r && (n = o(n))), n) : g.Promise.reject(new Error("Can't read the data of '" + e + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?")) | |
}) | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
var o = n(168); | |
o.enable(), e.exports = o("vm") | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
r = n(34), | |
i = function() { | |
function e() { | |
o(this, e) | |
} | |
return l(e, null, [{ | |
key: "toNumber", | |
value: function(e) { | |
var t = Number(e); | |
return isNaN(t) ? 0 : t | |
} | |
}, { | |
key: "toBoolean", | |
value: function(e) { | |
return "boolean" == typeof e ? e : "string" == typeof e ? "" !== e && "0" !== e && "false" !== e.toLowerCase() : Boolean(e) | |
} | |
}, { | |
key: "toString", | |
value: function(e) { | |
return String(e) | |
} | |
}, { | |
key: "toRgbColorList", | |
value: function(t) { | |
var n = e.toRgbColorObject(t); | |
return [n.r, n.g, n.b] | |
} | |
}, { | |
key: "toRgbColorObject", | |
value: function(t) { | |
return "string" == typeof t && "#" === t.substring(0, 1) ? r.hexToRgb(t) : r.decimalToRgb(e.toNumber(t)) | |
} | |
}, { | |
key: "isWhiteSpace", | |
value: function(e) { | |
return null === e || "string" == typeof e && 0 === e.trim().length | |
} | |
}, { | |
key: "compare", | |
value: function(t, n) { | |
var o = Number(t), | |
l = Number(n); | |
if (0 === o && e.isWhiteSpace(t) ? o = NaN : 0 === l && e.isWhiteSpace(n) && (l = NaN), isNaN(o) || isNaN(l)) { | |
var r = String(t).toLowerCase(), | |
i = String(n).toLowerCase(); | |
return r.localeCompare(i) | |
} | |
return o - l | |
} | |
}, { | |
key: "isInt", | |
value: function(e) { | |
return "number" == typeof e ? !!isNaN(e) || e === parseInt(e, 10) : "boolean" == typeof e || "string" == typeof e && e.indexOf(".") < 0 | |
} | |
}, { | |
key: "toListIndex", | |
value: function(t, n) { | |
if ("number" != typeof t) { | |
if ("all" === t) return e.LIST_ALL; | |
if ("last" === t) return n > 0 ? n : e.LIST_INVALID; | |
if ("random" === t || "any" === t) return n > 0 ? 1 + Math.floor(Math.random() * n) : e.LIST_INVALID | |
} | |
return t = Math.floor(e.toNumber(t)), t < 1 || t > n ? e.LIST_INVALID : t | |
} | |
}, { | |
key: "LIST_INVALID", | |
get: function() { | |
return "INVALID" | |
} | |
}, { | |
key: "LIST_ALL", | |
get: function() { | |
return "ALL" | |
} | |
}]), e | |
}(); | |
e.exports = i | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
this.name = e || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { | |
data: [], | |
end: [], | |
error: [] | |
}, this.previous = null | |
} | |
o.prototype = { | |
push: function(e) { | |
this.emit("data", e) | |
}, | |
end: function() { | |
if (this.isFinished) return !1; | |
this.flush(); | |
try { | |
this.emit("end"), this.cleanUp(), this.isFinished = !0 | |
} catch (e) { | |
this.emit("error", e) | |
} | |
return !0 | |
}, | |
error: function(e) { | |
return !this.isFinished && (this.isPaused ? this.generatedError = e : (this.isFinished = !0, this.emit("error", e), this.previous && this.previous.error(e), this.cleanUp()), !0) | |
}, | |
on: function(e, t) { | |
return this._listeners[e].push(t), this | |
}, | |
cleanUp: function() { | |
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [] | |
}, | |
emit: function(e, t) { | |
if (this._listeners[e]) | |
for (var n = 0; n < this._listeners[e].length; n++) this._listeners[e][n].call(this, t) | |
}, | |
pipe: function(e) { | |
return e.registerPrevious(this) | |
}, | |
registerPrevious: function(e) { | |
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used."); | |
this.streamInfo = e.streamInfo, this.mergeStreamInfo(), this.previous = e; | |
var t = this; | |
return e.on("data", function(e) { | |
t.processChunk(e) | |
}), e.on("end", function() { | |
t.end() | |
}), e.on("error", function(e) { | |
t.error(e) | |
}), this | |
}, | |
pause: function() { | |
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0) | |
}, | |
resume: function() { | |
if (!this.isPaused || this.isFinished) return !1; | |
this.isPaused = !1; | |
var e = !1; | |
return this.generatedError && (this.error(this.generatedError), e = !0), this.previous && this.previous.resume(), !e | |
}, | |
flush: function() {}, | |
processChunk: function(e) { | |
this.push(e) | |
}, | |
withStreamInfo: function(e, t) { | |
return this.extraStreamInfo[e] = t, this.mergeStreamInfo(), this | |
}, | |
mergeStreamInfo: function() { | |
for (var e in this.extraStreamInfo) this.extraStreamInfo.hasOwnProperty(e) && (this.streamInfo[e] = this.extraStreamInfo[e]) | |
}, | |
lock: function() { | |
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used."); | |
this.isLocked = !0, this.previous && this.previous.lock() | |
}, | |
toString: function() { | |
var e = "Worker " + this.name; | |
return this.previous ? this.previous + " -> " + e : e | |
} | |
}, e.exports = o | |
}, function(e, t) { | |
var n; | |
n = function() { | |
return this | |
}(); | |
try { | |
n = n || Function("return this")() || (0, eval)("this") | |
} catch (e) { | |
"object" == typeof window && (n = window) | |
} | |
e.exports = n | |
}, function(e, t, n) { | |
"use strict"; | |
(function(e) { | |
function o() { | |
return r.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823 | |
} | |
function l(e, t) { | |
if (o() < t) throw new RangeError("Invalid typed array length"); | |
return r.TYPED_ARRAY_SUPPORT ? (e = new Uint8Array(t), e.__proto__ = r.prototype) : (null === e && (e = new r(t)), e.length = t), e | |
} | |
function r(e, t, n) { | |
if (!(r.TYPED_ARRAY_SUPPORT || this instanceof r)) return new r(e, t, n); | |
if ("number" == typeof e) { | |
if ("string" == typeof t) throw new Error("If encoding is specified then the first argument must be a string"); | |
return s(this, e) | |
} | |
return i(this, e, t, n) | |
} | |
function i(e, t, n, o) { | |
if ("number" == typeof t) throw new TypeError('"value" argument must not be a number'); | |
return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer ? g(e, t, n, o) : "string" == typeof t ? u(e, t, n) : h(e, t) | |
} | |
function A(e) { | |
if ("number" != typeof e) throw new TypeError('"size" argument must be a number'); | |
if (e < 0) throw new RangeError('"size" argument must not be negative') | |
} | |
function a(e, t, n, o) { | |
return A(t), t <= 0 ? l(e, t) : void 0 !== n ? "string" == typeof o ? l(e, t).fill(n, o) : l(e, t).fill(n) : l(e, t) | |
} | |
function s(e, t) { | |
if (A(t), e = l(e, t < 0 ? 0 : 0 | d(t)), !r.TYPED_ARRAY_SUPPORT) | |
for (var n = 0; n < t; ++n) e[n] = 0; | |
return e | |
} | |
function u(e, t, n) { | |
if ("string" == typeof n && "" !== n || (n = "utf8"), !r.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding'); | |
var o = 0 | p(t, n); | |
e = l(e, o); | |
var i = e.write(t, n); | |
return i !== o && (e = e.slice(0, i)), e | |
} | |
function c(e, t) { | |
var n = t.length < 0 ? 0 : 0 | d(t.length); | |
e = l(e, n); | |
for (var o = 0; o < n; o += 1) e[o] = 255 & t[o]; | |
return e | |
} | |
function g(e, t, n, o) { | |
if (t.byteLength, n < 0 || t.byteLength < n) throw new RangeError("'offset' is out of bounds"); | |
if (t.byteLength < n + (o || 0)) throw new RangeError("'length' is out of bounds"); | |
return t = void 0 === n && void 0 === o ? new Uint8Array(t) : void 0 === o ? new Uint8Array(t, n) : new Uint8Array(t, n, o), r.TYPED_ARRAY_SUPPORT ? (e = t, e.__proto__ = r.prototype) : e = c(e, t), e | |
} | |
function h(e, t) { | |
if (r.isBuffer(t)) { | |
var n = 0 | d(t.length); | |
return e = l(e, n), 0 === e.length ? e : (t.copy(e, 0, 0, n), e) | |
} | |
if (t) { | |
if ("undefined" != typeof ArrayBuffer && t.buffer instanceof ArrayBuffer || "length" in t) return "number" != typeof t.length || q(t.length) ? l(e, 0) : c(e, t); | |
if ("Buffer" === t.type && X(t.data)) return c(e, t.data) | |
} | |
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.") | |
} | |
function d(e) { | |
if (e >= o()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + o().toString(16) + " bytes"); | |
return 0 | e | |
} | |
function f(e) { | |
return +e != e && (e = 0), r.alloc(+e) | |
} | |
function p(e, t) { | |
if (r.isBuffer(e)) return e.length; | |
if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(e) || e instanceof ArrayBuffer)) return e.byteLength; | |
"string" != typeof e && (e = "" + e); | |
var n = e.length; | |
if (0 === n) return 0; | |
for (var o = !1;;) switch (t) { | |
case "ascii": | |
case "latin1": | |
case "binary": | |
return n; | |
case "utf8": | |
case "utf-8": | |
case void 0: | |
return J(e).length; | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
return 2 * n; | |
case "hex": | |
return n >>> 1; | |
case "base64": | |
return W(e).length; | |
default: | |
if (o) return J(e).length; | |
t = ("" + t).toLowerCase(), o = !0 | |
} | |
} | |
function m(e, t, n) { | |
var o = !1; | |
if ((void 0 === t || t < 0) && (t = 0), t > this.length) return ""; | |
if ((void 0 === n || n > this.length) && (n = this.length), n <= 0) return ""; | |
if (n >>>= 0, t >>>= 0, n <= t) return ""; | |
for (e || (e = "utf8");;) switch (e) { | |
case "hex": | |
return Y(this, t, n); | |
case "utf8": | |
case "utf-8": | |
return D(this, t, n); | |
case "ascii": | |
return S(this, t, n); | |
case "latin1": | |
case "binary": | |
return F(this, t, n); | |
case "base64": | |
return Q(this, t, n); | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
return x(this, t, n); | |
default: | |
if (o) throw new TypeError("Unknown encoding: " + e); | |
e = (e + "").toLowerCase(), o = !0 | |
} | |
} | |
function B(e, t, n) { | |
var o = e[t]; | |
e[t] = e[n], e[n] = o | |
} | |
function E(e, t, n, o, l) { | |
if (0 === e.length) return -1; | |
if ("string" == typeof n ? (o = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, isNaN(n) && (n = l ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) { | |
if (l) return -1; | |
n = e.length - 1 | |
} else if (n < 0) { | |
if (!l) return -1; | |
n = 0 | |
} | |
if ("string" == typeof t && (t = r.from(t, o)), r.isBuffer(t)) return 0 === t.length ? -1 : y(e, t, n, o, l); | |
if ("number" == typeof t) return t &= 255, r.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? l ? Uint8Array.prototype.indexOf.call(e, t, n) : Uint8Array.prototype.lastIndexOf.call(e, t, n) : y(e, [t], n, o, l); | |
throw new TypeError("val must be string, number or Buffer") | |
} | |
function y(e, t, n, o, l) { | |
function r(e, t) { | |
return 1 === i ? e[t] : e.readUInt16BE(t * i) | |
} | |
var i = 1, | |
A = e.length, | |
a = t.length; | |
if (void 0 !== o && ("ucs2" === (o = String(o).toLowerCase()) || "ucs-2" === o || "utf16le" === o || "utf-16le" === o)) { | |
if (e.length < 2 || t.length < 2) return -1; | |
i = 2, A /= 2, a /= 2, n /= 2 | |
} | |
var s; | |
if (l) { | |
var u = -1; | |
for (s = n; s < A; s++) | |
if (r(e, s) === r(t, -1 === u ? 0 : s - u)) { | |
if (-1 === u && (u = s), s - u + 1 === a) return u * i | |
} else -1 !== u && (s -= s - u), u = -1 | |
} else | |
for (n + a > A && (n = A - a), s = n; s >= 0; s--) { | |
for (var c = !0, g = 0; g < a; g++) | |
if (r(e, s + g) !== r(t, g)) { | |
c = !1; | |
break | |
} | |
if (c) return s | |
} | |
return -1 | |
} | |
function C(e, t, n, o) { | |
n = Number(n) || 0; | |
var l = e.length - n; | |
o ? (o = Number(o)) > l && (o = l) : o = l; | |
var r = t.length; | |
if (r % 2 != 0) throw new TypeError("Invalid hex string"); | |
o > r / 2 && (o = r / 2); | |
for (var i = 0; i < o; ++i) { | |
var A = parseInt(t.substr(2 * i, 2), 16); | |
if (isNaN(A)) return i; | |
e[n + i] = A | |
} | |
return i | |
} | |
function w(e, t, n, o) { | |
return K(J(t, e.length - n), e, n, o) | |
} | |
function I(e, t, n, o) { | |
return K(V(t), e, n, o) | |
} | |
function b(e, t, n, o) { | |
return I(e, t, n, o) | |
} | |
function v(e, t, n, o) { | |
return K(W(t), e, n, o) | |
} | |
function M(e, t, n, o) { | |
return K(z(t, e.length - n), e, n, o) | |
} | |
function Q(e, t, n) { | |
return 0 === t && n === e.length ? Z.fromByteArray(e) : Z.fromByteArray(e.slice(t, n)) | |
} | |
function D(e, t, n) { | |
n = Math.min(e.length, n); | |
for (var o = [], l = t; l < n;) { | |
var r = e[l], | |
i = null, | |
A = r > 239 ? 4 : r > 223 ? 3 : r > 191 ? 2 : 1; | |
if (l + A <= n) { | |
var a, s, u, c; | |
switch (A) { | |
case 1: | |
r < 128 && (i = r); | |
break; | |
case 2: | |
a = e[l + 1], 128 == (192 & a) && (c = (31 & r) << 6 | 63 & a) > 127 && (i = c); | |
break; | |
case 3: | |
a = e[l + 1], s = e[l + 2], 128 == (192 & a) && 128 == (192 & s) && (c = (15 & r) << 12 | (63 & a) << 6 | 63 & s) > 2047 && (c < 55296 || c > 57343) && (i = c); | |
break; | |
case 4: | |
a = e[l + 1], s = e[l + 2], u = e[l + 3], 128 == (192 & a) && 128 == (192 & s) && 128 == (192 & u) && (c = (15 & r) << 18 | (63 & a) << 12 | (63 & s) << 6 | 63 & u) > 65535 && c < 1114112 && (i = c) | |
} | |
} | |
null === i ? (i = 65533, A = 1) : i > 65535 && (i -= 65536, o.push(i >>> 10 & 1023 | 55296), i = 56320 | 1023 & i), o.push(i), l += A | |
} | |
return k(o) | |
} | |
function k(e) { | |
var t = e.length; | |
if (t <= $) return String.fromCharCode.apply(String, e); | |
for (var n = "", o = 0; o < t;) n += String.fromCharCode.apply(String, e.slice(o, o += $)); | |
return n | |
} | |
function S(e, t, n) { | |
var o = ""; | |
n = Math.min(e.length, n); | |
for (var l = t; l < n; ++l) o += String.fromCharCode(127 & e[l]); | |
return o | |
} | |
function F(e, t, n) { | |
var o = ""; | |
n = Math.min(e.length, n); | |
for (var l = t; l < n; ++l) o += String.fromCharCode(e[l]); | |
return o | |
} | |
function Y(e, t, n) { | |
var o = e.length; | |
(!t || t < 0) && (t = 0), (!n || n < 0 || n > o) && (n = o); | |
for (var l = "", r = t; r < n; ++r) l += j(e[r]); | |
return l | |
} | |
function x(e, t, n) { | |
for (var o = e.slice(t, n), l = "", r = 0; r < o.length; r += 2) l += String.fromCharCode(o[r] + 256 * o[r + 1]); | |
return l | |
} | |
function R(e, t, n) { | |
if (e % 1 != 0 || e < 0) throw new RangeError("offset is not uint"); | |
if (e + t > n) throw new RangeError("Trying to access beyond buffer length") | |
} | |
function U(e, t, n, o, l, i) { | |
if (!r.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance'); | |
if (t > l || t < i) throw new RangeError('"value" argument is out of bounds'); | |
if (n + o > e.length) throw new RangeError("Index out of range") | |
} | |
function T(e, t, n, o) { | |
t < 0 && (t = 65535 + t + 1); | |
for (var l = 0, r = Math.min(e.length - n, 2); l < r; ++l) e[n + l] = (t & 255 << 8 * (o ? l : 1 - l)) >>> 8 * (o ? l : 1 - l) | |
} | |
function N(e, t, n, o) { | |
t < 0 && (t = 4294967295 + t + 1); | |
for (var l = 0, r = Math.min(e.length - n, 4); l < r; ++l) e[n + l] = t >>> 8 * (o ? l : 3 - l) & 255 | |
} | |
function G(e, t, n, o, l, r) { | |
if (n + o > e.length) throw new RangeError("Index out of range"); | |
if (n < 0) throw new RangeError("Index out of range") | |
} | |
function L(e, t, n, o, l) { | |
return l || G(e, t, n, 4, 3.4028234663852886e38, -3.4028234663852886e38), _.write(e, t, n, o, 23, 4), n + 4 | |
} | |
function O(e, t, n, o, l) { | |
return l || G(e, t, n, 8, 1.7976931348623157e308, -1.7976931348623157e308), _.write(e, t, n, o, 52, 8), n + 8 | |
} | |
function P(e) { | |
if (e = H(e).replace(ee, ""), e.length < 2) return ""; | |
for (; e.length % 4 != 0;) e += "="; | |
return e | |
} | |
function H(e) { | |
return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "") | |
} | |
function j(e) { | |
return e < 16 ? "0" + e.toString(16) : e.toString(16) | |
} | |
function J(e, t) { | |
t = t || 1 / 0; | |
for (var n, o = e.length, l = null, r = [], i = 0; i < o; ++i) { | |
if ((n = e.charCodeAt(i)) > 55295 && n < 57344) { | |
if (!l) { | |
if (n > 56319) { | |
(t -= 3) > -1 && r.push(239, 191, 189); | |
continue | |
} | |
if (i + 1 === o) { | |
(t -= 3) > -1 && r.push(239, 191, 189); | |
continue | |
} | |
l = n; | |
continue | |
} | |
if (n < 56320) { | |
(t -= 3) > -1 && r.push(239, 191, 189), l = n; | |
continue | |
} | |
n = 65536 + (l - 55296 << 10 | n - 56320) | |
} else l && (t -= 3) > -1 && r.push(239, 191, 189); | |
if (l = null, n < 128) { | |
if ((t -= 1) < 0) break; | |
r.push(n) | |
} else if (n < 2048) { | |
if ((t -= 2) < 0) break; | |
r.push(n >> 6 | 192, 63 & n | 128) | |
} else if (n < 65536) { | |
if ((t -= 3) < 0) break; | |
r.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128) | |
} else { | |
if (!(n < 1114112)) throw new Error("Invalid code point"); | |
if ((t -= 4) < 0) break; | |
r.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128) | |
} | |
} | |
return r | |
} | |
function V(e) { | |
for (var t = [], n = 0; n < e.length; ++n) t.push(255 & e.charCodeAt(n)); | |
return t | |
} | |
function z(e, t) { | |
for (var n, o, l, r = [], i = 0; i < e.length && !((t -= 2) < 0); ++i) n = e.charCodeAt(i), o = n >> 8, l = n % 256, r.push(l), r.push(o); | |
return r | |
} | |
function W(e) { | |
return Z.toByteArray(P(e)) | |
} | |
function K(e, t, n, o) { | |
for (var l = 0; l < o && !(l + n >= t.length || l >= e.length); ++l) t[l + n] = e[l]; | |
return l | |
} | |
function q(e) { | |
return e !== e | |
} | |
/*! | |
* The buffer module from node.js, for the browser. | |
* | |
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> | |
* @license MIT | |
*/ | |
var Z = n(118), | |
_ = n(119), | |
X = n(54); | |
t.Buffer = r, t.SlowBuffer = f, t.INSPECT_MAX_BYTES = 50, r.TYPED_ARRAY_SUPPORT = void 0 !== e.TYPED_ARRAY_SUPPORT ? e.TYPED_ARRAY_SUPPORT : function() { | |
try { | |
var e = new Uint8Array(1); | |
return e.__proto__ = { | |
__proto__: Uint8Array.prototype, | |
foo: function() { | |
return 42 | |
} | |
}, 42 === e.foo() && "function" == typeof e.subarray && 0 === e.subarray(1, 1).byteLength | |
} catch (e) { | |
return !1 | |
} | |
}(), t.kMaxLength = o(), r.poolSize = 8192, r._augment = function(e) { | |
return e.__proto__ = r.prototype, e | |
}, r.from = function(e, t, n) { | |
return i(null, e, t, n) | |
}, r.TYPED_ARRAY_SUPPORT && (r.prototype.__proto__ = Uint8Array.prototype, r.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && r[Symbol.species] === r && Object.defineProperty(r, Symbol.species, { | |
value: null, | |
configurable: !0 | |
})), r.alloc = function(e, t, n) { | |
return a(null, e, t, n) | |
}, r.allocUnsafe = function(e) { | |
return s(null, e) | |
}, r.allocUnsafeSlow = function(e) { | |
return s(null, e) | |
}, r.isBuffer = function(e) { | |
return !(null == e || !e._isBuffer) | |
}, r.compare = function(e, t) { | |
if (!r.isBuffer(e) || !r.isBuffer(t)) throw new TypeError("Arguments must be Buffers"); | |
if (e === t) return 0; | |
for (var n = e.length, o = t.length, l = 0, i = Math.min(n, o); l < i; ++l) | |
if (e[l] !== t[l]) { | |
n = e[l], o = t[l]; | |
break | |
} | |
return n < o ? -1 : o < n ? 1 : 0 | |
}, r.isEncoding = function(e) { | |
switch (String(e).toLowerCase()) { | |
case "hex": | |
case "utf8": | |
case "utf-8": | |
case "ascii": | |
case "latin1": | |
case "binary": | |
case "base64": | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
return !0; | |
default: | |
return !1 | |
} | |
}, r.concat = function(e, t) { | |
if (!X(e)) throw new TypeError('"list" argument must be an Array of Buffers'); | |
if (0 === e.length) return r.alloc(0); | |
var n; | |
if (void 0 === t) | |
for (t = 0, n = 0; n < e.length; ++n) t += e[n].length; | |
var o = r.allocUnsafe(t), | |
l = 0; | |
for (n = 0; n < e.length; ++n) { | |
var i = e[n]; | |
if (!r.isBuffer(i)) throw new TypeError('"list" argument must be an Array of Buffers'); | |
i.copy(o, l), l += i.length | |
} | |
return o | |
}, r.byteLength = p, r.prototype._isBuffer = !0, r.prototype.swap16 = function() { | |
var e = this.length; | |
if (e % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits"); | |
for (var t = 0; t < e; t += 2) B(this, t, t + 1); | |
return this | |
}, r.prototype.swap32 = function() { | |
var e = this.length; | |
if (e % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits"); | |
for (var t = 0; t < e; t += 4) B(this, t, t + 3), B(this, t + 1, t + 2); | |
return this | |
}, r.prototype.swap64 = function() { | |
var e = this.length; | |
if (e % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits"); | |
for (var t = 0; t < e; t += 8) B(this, t, t + 7), B(this, t + 1, t + 6), B(this, t + 2, t + 5), B(this, t + 3, t + 4); | |
return this | |
}, r.prototype.toString = function() { | |
var e = 0 | this.length; | |
return 0 === e ? "" : 0 === arguments.length ? D(this, 0, e) : m.apply(this, arguments) | |
}, r.prototype.equals = function(e) { | |
if (!r.isBuffer(e)) throw new TypeError("Argument must be a Buffer"); | |
return this === e || 0 === r.compare(this, e) | |
}, r.prototype.inspect = function() { | |
var e = "", | |
n = t.INSPECT_MAX_BYTES; | |
return this.length > 0 && (e = this.toString("hex", 0, n).match(/.{2}/g).join(" "), this.length > n && (e += " ... ")), "<Buffer " + e + ">" | |
}, r.prototype.compare = function(e, t, n, o, l) { | |
if (!r.isBuffer(e)) throw new TypeError("Argument must be a Buffer"); | |
if (void 0 === t && (t = 0), void 0 === n && (n = e ? e.length : 0), void 0 === o && (o = 0), void 0 === l && (l = this.length), t < 0 || n > e.length || o < 0 || l > this.length) throw new RangeError("out of range index"); | |
if (o >= l && t >= n) return 0; | |
if (o >= l) return -1; | |
if (t >= n) return 1; | |
if (t >>>= 0, n >>>= 0, o >>>= 0, l >>>= 0, this === e) return 0; | |
for (var i = l - o, A = n - t, a = Math.min(i, A), s = this.slice(o, l), u = e.slice(t, n), c = 0; c < a; ++c) | |
if (s[c] !== u[c]) { | |
i = s[c], A = u[c]; | |
break | |
} | |
return i < A ? -1 : A < i ? 1 : 0 | |
}, r.prototype.includes = function(e, t, n) { | |
return -1 !== this.indexOf(e, t, n) | |
}, r.prototype.indexOf = function(e, t, n) { | |
return E(this, e, t, n, !0) | |
}, r.prototype.lastIndexOf = function(e, t, n) { | |
return E(this, e, t, n, !1) | |
}, r.prototype.write = function(e, t, n, o) { | |
if (void 0 === t) o = "utf8", n = this.length, t = 0; | |
else if (void 0 === n && "string" == typeof t) o = t, n = this.length, t = 0; | |
else { | |
if (!isFinite(t)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); | |
t |= 0, isFinite(n) ? (n |= 0, void 0 === o && (o = "utf8")) : (o = n, n = void 0) | |
} | |
var l = this.length - t; | |
if ((void 0 === n || n > l) && (n = l), e.length > 0 && (n < 0 || t < 0) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds"); | |
o || (o = "utf8"); | |
for (var r = !1;;) switch (o) { | |
case "hex": | |
return C(this, e, t, n); | |
case "utf8": | |
case "utf-8": | |
return w(this, e, t, n); | |
case "ascii": | |
return I(this, e, t, n); | |
case "latin1": | |
case "binary": | |
return b(this, e, t, n); | |
case "base64": | |
return v(this, e, t, n); | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
return M(this, e, t, n); | |
default: | |
if (r) throw new TypeError("Unknown encoding: " + o); | |
o = ("" + o).toLowerCase(), r = !0 | |
} | |
}, r.prototype.toJSON = function() { | |
return { | |
type: "Buffer", | |
data: Array.prototype.slice.call(this._arr || this, 0) | |
} | |
}; | |
var $ = 4096; | |
r.prototype.slice = function(e, t) { | |
var n = this.length; | |
e = ~~e, t = void 0 === t ? n : ~~t, e < 0 ? (e += n) < 0 && (e = 0) : e > n && (e = n), t < 0 ? (t += n) < 0 && (t = 0) : t > n && (t = n), t < e && (t = e); | |
var o; | |
if (r.TYPED_ARRAY_SUPPORT) o = this.subarray(e, t), o.__proto__ = r.prototype; | |
else { | |
var l = t - e; | |
o = new r(l, void 0); | |
for (var i = 0; i < l; ++i) o[i] = this[i + e] | |
} | |
return o | |
}, r.prototype.readUIntLE = function(e, t, n) { | |
e |= 0, t |= 0, n || R(e, t, this.length); | |
for (var o = this[e], l = 1, r = 0; ++r < t && (l *= 256);) o += this[e + r] * l; | |
return o | |
}, r.prototype.readUIntBE = function(e, t, n) { | |
e |= 0, t |= 0, n || R(e, t, this.length); | |
for (var o = this[e + --t], l = 1; t > 0 && (l *= 256);) o += this[e + --t] * l; | |
return o | |
}, r.prototype.readUInt8 = function(e, t) { | |
return t || R(e, 1, this.length), this[e] | |
}, r.prototype.readUInt16LE = function(e, t) { | |
return t || R(e, 2, this.length), this[e] | this[e + 1] << 8 | |
}, r.prototype.readUInt16BE = function(e, t) { | |
return t || R(e, 2, this.length), this[e] << 8 | this[e + 1] | |
}, r.prototype.readUInt32LE = function(e, t) { | |
return t || R(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3] | |
}, r.prototype.readUInt32BE = function(e, t) { | |
return t || R(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]) | |
}, r.prototype.readIntLE = function(e, t, n) { | |
e |= 0, t |= 0, n || R(e, t, this.length); | |
for (var o = this[e], l = 1, r = 0; ++r < t && (l *= 256);) o += this[e + r] * l; | |
return l *= 128, o >= l && (o -= Math.pow(2, 8 * t)), o | |
}, r.prototype.readIntBE = function(e, t, n) { | |
e |= 0, t |= 0, n || R(e, t, this.length); | |
for (var o = t, l = 1, r = this[e + --o]; o > 0 && (l *= 256);) r += this[e + --o] * l; | |
return l *= 128, r >= l && (r -= Math.pow(2, 8 * t)), r | |
}, r.prototype.readInt8 = function(e, t) { | |
return t || R(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e] | |
}, r.prototype.readInt16LE = function(e, t) { | |
t || R(e, 2, this.length); | |
var n = this[e] | this[e + 1] << 8; | |
return 32768 & n ? 4294901760 | n : n | |
}, r.prototype.readInt16BE = function(e, t) { | |
t || R(e, 2, this.length); | |
var n = this[e + 1] | this[e] << 8; | |
return 32768 & n ? 4294901760 | n : n | |
}, r.prototype.readInt32LE = function(e, t) { | |
return t || R(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24 | |
}, r.prototype.readInt32BE = function(e, t) { | |
return t || R(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3] | |
}, r.prototype.readFloatLE = function(e, t) { | |
return t || R(e, 4, this.length), _.read(this, e, !0, 23, 4) | |
}, r.prototype.readFloatBE = function(e, t) { | |
return t || R(e, 4, this.length), _.read(this, e, !1, 23, 4) | |
}, r.prototype.readDoubleLE = function(e, t) { | |
return t || R(e, 8, this.length), _.read(this, e, !0, 52, 8) | |
}, r.prototype.readDoubleBE = function(e, t) { | |
return t || R(e, 8, this.length), _.read(this, e, !1, 52, 8) | |
}, r.prototype.writeUIntLE = function(e, t, n, o) { | |
if (e = +e, t |= 0, n |= 0, !o) { | |
U(this, e, t, n, Math.pow(2, 8 * n) - 1, 0) | |
} | |
var l = 1, | |
r = 0; | |
for (this[t] = 255 & e; ++r < n && (l *= 256);) this[t + r] = e / l & 255; | |
return t + n | |
}, r.prototype.writeUIntBE = function(e, t, n, o) { | |
if (e = +e, t |= 0, n |= 0, !o) { | |
U(this, e, t, n, Math.pow(2, 8 * n) - 1, 0) | |
} | |
var l = n - 1, | |
r = 1; | |
for (this[t + l] = 255 & e; --l >= 0 && (r *= 256);) this[t + l] = e / r & 255; | |
return t + n | |
}, r.prototype.writeUInt8 = function(e, t, n) { | |
return e = +e, t |= 0, n || U(this, e, t, 1, 255, 0), r.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[t] = 255 & e, t + 1 | |
}, r.prototype.writeUInt16LE = function(e, t, n) { | |
return e = +e, t |= 0, n || U(this, e, t, 2, 65535, 0), r.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : T(this, e, t, !0), t + 2 | |
}, r.prototype.writeUInt16BE = function(e, t, n) { | |
return e = +e, t |= 0, n || U(this, e, t, 2, 65535, 0), r.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : T(this, e, t, !1), t + 2 | |
}, r.prototype.writeUInt32LE = function(e, t, n) { | |
return e = +e, t |= 0, n || U(this, e, t, 4, 4294967295, 0), r.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = 255 & e) : N(this, e, t, !0), t + 4 | |
}, r.prototype.writeUInt32BE = function(e, t, n) { | |
return e = +e, t |= 0, n || U(this, e, t, 4, 4294967295, 0), r.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : N(this, e, t, !1), t + 4 | |
}, r.prototype.writeIntLE = function(e, t, n, o) { | |
if (e = +e, t |= 0, !o) { | |
var l = Math.pow(2, 8 * n - 1); | |
U(this, e, t, n, l - 1, -l) | |
} | |
var r = 0, | |
i = 1, | |
A = 0; | |
for (this[t] = 255 & e; ++r < n && (i *= 256);) e < 0 && 0 === A && 0 !== this[t + r - 1] && (A = 1), this[t + r] = (e / i >> 0) - A & 255; | |
return t + n | |
}, r.prototype.writeIntBE = function(e, t, n, o) { | |
if (e = +e, t |= 0, !o) { | |
var l = Math.pow(2, 8 * n - 1); | |
U(this, e, t, n, l - 1, -l) | |
} | |
var r = n - 1, | |
i = 1, | |
A = 0; | |
for (this[t + r] = 255 & e; --r >= 0 && (i *= 256);) e < 0 && 0 === A && 0 !== this[t + r + 1] && (A = 1), this[t + r] = (e / i >> 0) - A & 255; | |
return t + n | |
}, r.prototype.writeInt8 = function(e, t, n) { | |
return e = +e, t |= 0, n || U(this, e, t, 1, 127, -128), r.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[t] = 255 & e, t + 1 | |
}, r.prototype.writeInt16LE = function(e, t, n) { | |
return e = +e, t |= 0, n || U(this, e, t, 2, 32767, -32768), r.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : T(this, e, t, !0), t + 2 | |
}, r.prototype.writeInt16BE = function(e, t, n) { | |
return e = +e, t |= 0, n || U(this, e, t, 2, 32767, -32768), r.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : T(this, e, t, !1), t + 2 | |
}, r.prototype.writeInt32LE = function(e, t, n) { | |
return e = +e, t |= 0, n || U(this, e, t, 4, 2147483647, -2147483648), r.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24) : N(this, e, t, !0), t + 4 | |
}, r.prototype.writeInt32BE = function(e, t, n) { | |
return e = +e, t |= 0, n || U(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), r.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : N(this, e, t, !1), t + 4 | |
}, r.prototype.writeFloatLE = function(e, t, n) { | |
return L(this, e, t, !0, n) | |
}, r.prototype.writeFloatBE = function(e, t, n) { | |
return L(this, e, t, !1, n) | |
}, r.prototype.writeDoubleLE = function(e, t, n) { | |
return O(this, e, t, !0, n) | |
}, r.prototype.writeDoubleBE = function(e, t, n) { | |
return O(this, e, t, !1, n) | |
}, r.prototype.copy = function(e, t, n, o) { | |
if (n || (n = 0), o || 0 === o || (o = this.length), t >= e.length && (t = e.length), t || (t = 0), o > 0 && o < n && (o = n), o === n) return 0; | |
if (0 === e.length || 0 === this.length) return 0; | |
if (t < 0) throw new RangeError("targetStart out of bounds"); | |
if (n < 0 || n >= this.length) throw new RangeError("sourceStart out of bounds"); | |
if (o < 0) throw new RangeError("sourceEnd out of bounds"); | |
o > this.length && (o = this.length), e.length - t < o - n && (o = e.length - t + n); | |
var l, i = o - n; | |
if (this === e && n < t && t < o) | |
for (l = i - 1; l >= 0; --l) e[l + t] = this[l + n]; | |
else if (i < 1e3 || !r.TYPED_ARRAY_SUPPORT) | |
for (l = 0; l < i; ++l) e[l + t] = this[l + n]; | |
else Uint8Array.prototype.set.call(e, this.subarray(n, n + i), t); | |
return i | |
}, r.prototype.fill = function(e, t, n, o) { | |
if ("string" == typeof e) { | |
if ("string" == typeof t ? (o = t, t = 0, n = this.length) : "string" == typeof n && (o = n, n = this.length), 1 === e.length) { | |
var l = e.charCodeAt(0); | |
l < 256 && (e = l) | |
} | |
if (void 0 !== o && "string" != typeof o) throw new TypeError("encoding must be a string"); | |
if ("string" == typeof o && !r.isEncoding(o)) throw new TypeError("Unknown encoding: " + o) | |
} else "number" == typeof e && (e &= 255); | |
if (t < 0 || this.length < t || this.length < n) throw new RangeError("Out of range index"); | |
if (n <= t) return this; | |
t >>>= 0, n = void 0 === n ? this.length : n >>> 0, e || (e = 0); | |
var i; | |
if ("number" == typeof e) | |
for (i = t; i < n; ++i) this[i] = e; | |
else { | |
var A = r.isBuffer(e) ? e : J(new r(e, o).toString()), | |
a = A.length; | |
for (i = 0; i < n - t; ++i) this[i + t] = A[i % a] | |
} | |
return this | |
}; | |
var ee = /[^+\/0-9A-Za-z-_]/g | |
}).call(t, n(5)) | |
}, function(e, t) { | |
"function" == typeof Object.create ? e.exports = function(e, t) { | |
e.super_ = t, e.prototype = Object.create(t.prototype, { | |
constructor: { | |
value: e, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}) | |
} : e.exports = function(e, t) { | |
e.super_ = t; | |
var n = function() {}; | |
n.prototype = t.prototype, e.prototype = new n, e.prototype.constructor = e | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
(function(e) { | |
if (t.base64 = !0, t.array = !0, t.string = !0, t.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array, t.nodebuffer = void 0 !== e, t.uint8array = "undefined" != typeof Uint8Array, "undefined" == typeof ArrayBuffer) t.blob = !1; | |
else { | |
var o = new ArrayBuffer(0); | |
try { | |
t.blob = 0 === new Blob([o], { | |
type: "application/zip" | |
}).size | |
} catch (e) { | |
try { | |
var l = self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder, | |
r = new l; | |
r.append(o), t.blob = 0 === r.getBlob("application/zip").size | |
} catch (e) { | |
t.blob = !1 | |
} | |
} | |
} | |
try { | |
t.nodestream = !!n(55).Readable | |
} catch (e) { | |
t.nodestream = !1 | |
} | |
}).call(t, n(6).Buffer) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
return Object.prototype.hasOwnProperty.call(e, t) | |
} | |
var l = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array; | |
t.assign = function(e) { | |
for (var t = Array.prototype.slice.call(arguments, 1); t.length;) { | |
var n = t.shift(); | |
if (n) { | |
if ("object" != typeof n) throw new TypeError(n + "must be non-object"); | |
for (var l in n) o(n, l) && (e[l] = n[l]) | |
} | |
} | |
return e | |
}, t.shrinkBuf = function(e, t) { | |
return e.length === t ? e : e.subarray ? e.subarray(0, t) : (e.length = t, e) | |
}; | |
var r = { | |
arraySet: function(e, t, n, o, l) { | |
if (t.subarray && e.subarray) return void e.set(t.subarray(n, n + o), l); | |
for (var r = 0; r < o; r++) e[l + r] = t[n + r] | |
}, | |
flattenChunks: function(e) { | |
var t, n, o, l, r, i; | |
for (o = 0, t = 0, n = e.length; t < n; t++) o += e[t].length; | |
for (i = new Uint8Array(o), l = 0, t = 0, n = e.length; t < n; t++) r = e[t], i.set(r, l), l += r.length; | |
return i | |
} | |
}, | |
i = { | |
arraySet: function(e, t, n, o, l) { | |
for (var r = 0; r < o; r++) e[l + r] = t[n + r] | |
}, | |
flattenChunks: function(e) { | |
return [].concat.apply([], e) | |
} | |
}; | |
t.setTyped = function(e) { | |
e ? (t.Buf8 = Uint8Array, t.Buf16 = Uint16Array, t.Buf32 = Int32Array, t.assign(t, r)) : (t.Buf8 = Array, t.Buf16 = Array, t.Buf32 = Array, t.assign(t, i)) | |
}, t.setTyped(l) | |
}, function(e, t, n) { | |
function o() {} | |
n(170).mixin(o), o.prototype.write = function(e, t, n) { | |
this.emit("item", e, t, n) | |
}, o.prototype.end = function() { | |
this.emit("end"), this.removeAllListeners() | |
}, o.prototype.pipe = function(e) { | |
function t() { | |
e.write.apply(e, Array.prototype.slice.call(arguments)) | |
} | |
function n() { | |
!e._isStdio && e.end() | |
} | |
var o = this; | |
return o.emit("unpipe", e), e.emit("pipe", o), o.on("item", t), o.on("end", n), o.when("unpipe", function(l) { | |
var r = l === e || void 0 === l; | |
return r && (o.removeListener("item", t), o.removeListener("end", n), e.emit("unpipe")), r | |
}), e | |
}, o.prototype.unpipe = function(e) { | |
return this.emit("unpipe", e), this | |
}, o.prototype.format = function(e) { | |
throw new Error(["Warning: .format() is deprecated in Minilog v2! Use .pipe() instead. For example:", "var Minilog = require('minilog');", "Minilog", " .pipe(Minilog.backends.console.formatClean)", " .pipe(Minilog.backends.console);"].join("\n")) | |
}, o.mixin = function(e) { | |
var t, n = o.prototype; | |
for (t in n) n.hasOwnProperty(t) && (e.prototype[t] = n[t]) | |
}, e.exports = o | |
}, function(e, t) { | |
function n() { | |
this._events = this._events || {}, this._maxListeners = this._maxListeners || void 0 | |
} | |
function o(e) { | |
return "function" == typeof e | |
} | |
function l(e) { | |
return "number" == typeof e | |
} | |
function r(e) { | |
return "object" == typeof e && null !== e | |
} | |
function i(e) { | |
return void 0 === e | |
} | |
e.exports = n, n.EventEmitter = n, n.prototype._events = void 0, n.prototype._maxListeners = void 0, n.defaultMaxListeners = 10, n.prototype.setMaxListeners = function(e) { | |
if (!l(e) || e < 0 || isNaN(e)) throw TypeError("n must be a positive number"); | |
return this._maxListeners = e, this | |
}, n.prototype.emit = function(e) { | |
var t, n, l, A, a, s; | |
if (this._events || (this._events = {}), "error" === e && (!this._events.error || r(this._events.error) && !this._events.error.length)) { | |
if ((t = arguments[1]) instanceof Error) throw t; | |
var u = new Error('Uncaught, unspecified "error" event. (' + t + ")"); | |
throw u.context = t, u | |
} | |
if (n = this._events[e], i(n)) return !1; | |
if (o(n)) switch (arguments.length) { | |
case 1: | |
n.call(this); | |
break; | |
case 2: | |
n.call(this, arguments[1]); | |
break; | |
case 3: | |
n.call(this, arguments[1], arguments[2]); | |
break; | |
default: | |
A = Array.prototype.slice.call(arguments, 1), n.apply(this, A) | |
} else if (r(n)) | |
for (A = Array.prototype.slice.call(arguments, 1), s = n.slice(), l = s.length, a = 0; a < l; a++) s[a].apply(this, A); | |
return !0 | |
}, n.prototype.addListener = function(e, t) { | |
var l; | |
if (!o(t)) throw TypeError("listener must be a function"); | |
return this._events || (this._events = {}), this._events.newListener && this.emit("newListener", e, o(t.listener) ? t.listener : t), this._events[e] ? r(this._events[e]) ? this._events[e].push(t) : this._events[e] = [this._events[e], t] : this._events[e] = t, r(this._events[e]) && !this._events[e].warned && (l = i(this._maxListeners) ? n.defaultMaxListeners : this._maxListeners) && l > 0 && this._events[e].length > l && (this._events[e].warned = !0, console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[e].length), "function" == typeof console.trace && console.trace()), this | |
}, n.prototype.on = n.prototype.addListener, n.prototype.once = function(e, t) { | |
function n() { | |
this.removeListener(e, n), l || (l = !0, t.apply(this, arguments)) | |
} | |
if (!o(t)) throw TypeError("listener must be a function"); | |
var l = !1; | |
return n.listener = t, this.on(e, n), this | |
}, n.prototype.removeListener = function(e, t) { | |
var n, l, i, A; | |
if (!o(t)) throw TypeError("listener must be a function"); | |
if (!this._events || !this._events[e]) return this; | |
if (n = this._events[e], i = n.length, l = -1, n === t || o(n.listener) && n.listener === t) delete this._events[e], this._events.removeListener && this.emit("removeListener", e, t); | |
else if (r(n)) { | |
for (A = i; A-- > 0;) | |
if (n[A] === t || n[A].listener && n[A].listener === t) { | |
l = A; | |
break | |
} | |
if (l < 0) return this; | |
1 === n.length ? (n.length = 0, delete this._events[e]) : n.splice(l, 1), this._events.removeListener && this.emit("removeListener", e, t) | |
} | |
return this | |
}, n.prototype.removeAllListeners = function(e) { | |
var t, n; | |
if (!this._events) return this; | |
if (!this._events.removeListener) return 0 === arguments.length ? this._events = {} : this._events[e] && delete this._events[e], this; | |
if (0 === arguments.length) { | |
for (t in this._events) "removeListener" !== t && this.removeAllListeners(t); | |
return this.removeAllListeners("removeListener"), this._events = {}, this | |
} | |
if (n = this._events[e], o(n)) this.removeListener(e, n); | |
else if (n) | |
for (; n.length;) this.removeListener(e, n[n.length - 1]); | |
return delete this._events[e], this | |
}, n.prototype.listeners = function(e) { | |
return this._events && this._events[e] ? o(this._events[e]) ? [this._events[e]] : this._events[e].slice() : [] | |
}, n.prototype.listenerCount = function(e) { | |
if (this._events) { | |
var t = this._events[e]; | |
if (o(t)) return 1; | |
if (t) return t.length | |
} | |
return 0 | |
}, n.listenerCount = function(e, t) { | |
return e.listenerCount(t) | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
if (!(this instanceof o)) return new o(e); | |
s.call(this, e), u.call(this, e), e && !1 === e.readable && (this.readable = !1), e && !1 === e.writable && (this.writable = !1), this.allowHalfOpen = !0, e && !1 === e.allowHalfOpen && (this.allowHalfOpen = !1), this.once("end", l) | |
} | |
function l() { | |
this.allowHalfOpen || this._writableState.ended || i.nextTick(r, this) | |
} | |
function r(e) { | |
e.end() | |
} | |
var i = n(30), | |
A = Object.keys || function(e) { | |
var t = []; | |
for (var n in e) t.push(n); | |
return t | |
}; | |
e.exports = o; | |
var a = n(23); | |
a.inherits = n(7); | |
var s = n(57), | |
u = n(41); | |
a.inherits(o, s); | |
for (var c = A(u.prototype), g = 0; g < c.length; g++) { | |
var h = c[g]; | |
o.prototype[h] || (o.prototype[h] = u.prototype[h]) | |
} | |
Object.defineProperty(o.prototype, "destroyed", { | |
get: function() { | |
return void 0 !== this._readableState && void 0 !== this._writableState && (this._readableState.destroyed && this._writableState.destroyed) | |
}, | |
set: function(e) { | |
void 0 !== this._readableState && void 0 !== this._writableState && (this._readableState.destroyed = e, this._writableState.destroyed = e) | |
} | |
}), o.prototype._destroy = function(e, t) { | |
this.push(null), this.end(), i.nextTick(t, e) | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
r = function() { | |
function e() { | |
o(this, e) | |
} | |
return l(e, null, [{ | |
key: "degToRad", | |
value: function(e) { | |
return e * Math.PI / 180 | |
} | |
}, { | |
key: "radToDeg", | |
value: function(e) { | |
return 180 * e / Math.PI | |
} | |
}, { | |
key: "clamp", | |
value: function(e, t, n) { | |
return Math.min(Math.max(e, t), n) | |
} | |
}, { | |
key: "wrapClamp", | |
value: function(e, t, n) { | |
var o = n - t + 1; | |
return e - Math.floor((e - t) / o) * o | |
} | |
}, { | |
key: "tan", | |
value: function(e) { | |
switch (e %= 360) { | |
case -270: | |
case 90: | |
return 1 / 0; | |
case -90: | |
case 270: | |
return -1 / 0; | |
default: | |
return parseFloat(Math.tan(Math.PI * e / 180).toFixed(10)) | |
} | |
} | |
}]), e | |
}(); | |
e.exports = r | |
}, function(e, t, n) { | |
"use strict"; | |
function o() { | |
a.call(this, "utf-8 decode"), this.leftOver = null | |
} | |
function l() { | |
a.call(this, "utf-8 encode") | |
} | |
for (var r = n(1), i = n(8), A = n(32), a = n(4), s = new Array(256), u = 0; u < 256; u++) s[u] = u >= 252 ? 6 : u >= 248 ? 5 : u >= 240 ? 4 : u >= 224 ? 3 : u >= 192 ? 2 : 1; | |
s[254] = s[254] = 1; | |
var c = function(e) { | |
var t, n, o, l, r, A = e.length, | |
a = 0; | |
for (l = 0; l < A; l++) n = e.charCodeAt(l), 55296 == (64512 & n) && l + 1 < A && 56320 == (64512 & (o = e.charCodeAt(l + 1))) && (n = 65536 + (n - 55296 << 10) + (o - 56320), l++), a += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4; | |
for (t = i.uint8array ? new Uint8Array(a) : new Array(a), r = 0, l = 0; r < a; l++) n = e.charCodeAt(l), 55296 == (64512 & n) && l + 1 < A && 56320 == (64512 & (o = e.charCodeAt(l + 1))) && (n = 65536 + (n - 55296 << 10) + (o - 56320), l++), n < 128 ? t[r++] = n : n < 2048 ? (t[r++] = 192 | n >>> 6, t[r++] = 128 | 63 & n) : n < 65536 ? (t[r++] = 224 | n >>> 12, t[r++] = 128 | n >>> 6 & 63, t[r++] = 128 | 63 & n) : (t[r++] = 240 | n >>> 18, t[r++] = 128 | n >>> 12 & 63, t[r++] = 128 | n >>> 6 & 63, t[r++] = 128 | 63 & n); | |
return t | |
}, | |
g = function(e, t) { | |
var n; | |
for (t = t || e.length, t > e.length && (t = e.length), n = t - 1; n >= 0 && 128 == (192 & e[n]);) n--; | |
return n < 0 ? t : 0 === n ? t : n + s[e[n]] > t ? n : t | |
}, | |
h = function(e) { | |
var t, n, o, l, i = e.length, | |
A = new Array(2 * i); | |
for (n = 0, t = 0; t < i;) | |
if ((o = e[t++]) < 128) A[n++] = o; | |
else if ((l = s[o]) > 4) A[n++] = 65533, t += l - 1; | |
else { | |
for (o &= 2 === l ? 31 : 3 === l ? 15 : 7; l > 1 && t < i;) o = o << 6 | 63 & e[t++], l--; | |
l > 1 ? A[n++] = 65533 : o < 65536 ? A[n++] = o : (o -= 65536, A[n++] = 55296 | o >> 10 & 1023, A[n++] = 56320 | 1023 & o) | |
} | |
return A.length !== n && (A.subarray ? A = A.subarray(0, n) : A.length = n), r.applyFromCharCode(A) | |
}; | |
t.utf8encode = function(e) { | |
return i.nodebuffer ? A.newBufferFrom(e, "utf-8") : c(e) | |
}, t.utf8decode = function(e) { | |
return i.nodebuffer ? r.transformTo("nodebuffer", e).toString("utf-8") : (e = r.transformTo(i.uint8array ? "uint8array" : "array", e), h(e)) | |
}, r.inherits(o, a), o.prototype.processChunk = function(e) { | |
var n = r.transformTo(i.uint8array ? "uint8array" : "array", e.data); | |
if (this.leftOver && this.leftOver.length) { | |
if (i.uint8array) { | |
var o = n; | |
n = new Uint8Array(o.length + this.leftOver.length), n.set(this.leftOver, 0), n.set(o, this.leftOver.length) | |
} else n = this.leftOver.concat(n); | |
this.leftOver = null | |
} | |
var l = g(n), | |
A = n; | |
l !== n.length && (i.uint8array ? (A = n.subarray(0, l), this.leftOver = n.subarray(l, n.length)) : (A = n.slice(0, l), this.leftOver = n.slice(l, n.length))), this.push({ | |
data: t.utf8decode(A), | |
meta: e.meta | |
}) | |
}, o.prototype.flush = function() { | |
this.leftOver && this.leftOver.length && (this.push({ | |
data: t.utf8decode(this.leftOver), | |
meta: {} | |
}), this.leftOver = null) | |
}, t.Utf8DecodeWorker = o, r.inherits(l, a), l.prototype.processChunk = function(e) { | |
this.push({ | |
data: t.utf8encode(e.data), | |
meta: e.meta | |
}) | |
}, t.Utf8EncodeWorker = l | |
}, function(e, t) { | |
function n() { | |
throw new Error("setTimeout has not been defined") | |
} | |
function o() { | |
throw new Error("clearTimeout has not been defined") | |
} | |
function l(e) { | |
if (u === setTimeout) return setTimeout(e, 0); | |
if ((u === n || !u) && setTimeout) return u = setTimeout, setTimeout(e, 0); | |
try { | |
return u(e, 0) | |
} catch (t) { | |
try { | |
return u.call(null, e, 0) | |
} catch (t) { | |
return u.call(this, e, 0) | |
} | |
} | |
} | |
function r(e) { | |
if (c === clearTimeout) return clearTimeout(e); | |
if ((c === o || !c) && clearTimeout) return c = clearTimeout, clearTimeout(e); | |
try { | |
return c(e) | |
} catch (t) { | |
try { | |
return c.call(null, e) | |
} catch (t) { | |
return c.call(this, e) | |
} | |
} | |
} | |
function i() { | |
f && h && (f = !1, h.length ? d = h.concat(d) : p = -1, d.length && A()) | |
} | |
function A() { | |
if (!f) { | |
var e = l(i); | |
f = !0; | |
for (var t = d.length; t;) { | |
for (h = d, d = []; ++p < t;) h && h[p].run(); | |
p = -1, t = d.length | |
} | |
h = null, f = !1, r(e) | |
} | |
} | |
function a(e, t) { | |
this.fun = e, this.array = t | |
} | |
function s() {} | |
var u, c, g = e.exports = {}; | |
! function() { | |
try { | |
u = "function" == typeof setTimeout ? setTimeout : n | |
} catch (e) { | |
u = n | |
} | |
try { | |
c = "function" == typeof clearTimeout ? clearTimeout : o | |
} catch (e) { | |
c = o | |
} | |
}(); | |
var h, d = [], | |
f = !1, | |
p = -1; | |
g.nextTick = function(e) { | |
var t = new Array(arguments.length - 1); | |
if (arguments.length > 1) | |
for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; | |
d.push(new a(e, t)), 1 !== d.length || f || l(A) | |
}, a.prototype.run = function() { | |
this.fun.apply(null, this.array) | |
}, g.title = "browser", g.browser = !0, g.env = {}, g.argv = [], g.version = "", g.versions = {}, g.on = s, g.addListener = s, g.once = s, g.off = s, g.removeListener = s, g.removeAllListeners = s, g.emit = s, g.prependListener = s, g.prependOnceListener = s, g.listeners = function(e) { | |
return [] | |
}, g.binding = function(e) { | |
throw new Error("process.binding is not supported") | |
}, g.cwd = function() { | |
return "/" | |
}, g.chdir = function(e) { | |
throw new Error("process.chdir is not supported") | |
}, g.umask = function() { | |
return 0 | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
var o = { | |
BOOLEAN: "Boolean", | |
COMMAND: "command", | |
CONDITIONAL: "conditional", | |
EVENT: "event", | |
HAT: "hat", | |
LOOP: "loop", | |
REPORTER: "reporter" | |
}; | |
e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
r = function() { | |
function e() { | |
o(this, e) | |
} | |
return l(e, null, [{ | |
key: "simple", | |
value: function(e) { | |
return JSON.parse(JSON.stringify(e)) | |
} | |
}]), e | |
}(); | |
e.exports = r | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
r = function() { | |
function e() { | |
o(this, e) | |
} | |
return l(e, null, [{ | |
key: "withoutTrailingDigits", | |
value: function(e) { | |
for (var t = e.length - 1; t >= 0 && "0123456789".indexOf(e.charAt(t)) > -1;) t--; | |
return e.slice(0, t + 1) | |
} | |
}, { | |
key: "unusedName", | |
value: function(t, n) { | |
if (n.indexOf(t) < 0) return t; | |
t = e.withoutTrailingDigits(t); | |
for (var o = 2; n.indexOf(t + o) >= 0;) o++; | |
return t + o | |
} | |
}, { | |
key: "splitFirst", | |
value: function(e, t) { | |
var n = e.indexOf(t); | |
return n >= 0 ? [e.substring(0, n), e.substring(n + 1)] : [e, null] | |
} | |
}]), e | |
}(); | |
e.exports = r | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = "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 = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
i = n(184), | |
A = n(89), | |
a = n(206), | |
s = n(207), | |
u = n(17), | |
c = n(27), | |
g = c.Map, | |
h = n(96), | |
d = function() { | |
function e() { | |
o(this, e), this._blocks = {}, this._scripts = [], this._cache = { | |
inputs: {}, | |
procedureParamNames: {}, | |
procedureDefinitions: {}, | |
_executeCached: {} | |
} | |
} | |
return r(e, [{ | |
key: "getBlock", | |
value: function(e) { | |
return this._blocks[e] | |
} | |
}, { | |
key: "getScripts", | |
value: function() { | |
return this._scripts | |
} | |
}, { | |
key: "getNextBlock", | |
value: function(e) { | |
var t = this._blocks[e]; | |
return void 0 === t ? null : t.next | |
} | |
}, { | |
key: "getBranch", | |
value: function(t, n) { | |
var o = this._blocks[t]; | |
if (void 0 === o) return null; | |
n || (n = 1); | |
var l = e.BRANCH_INPUT_PREFIX; | |
n > 1 && (l += n); | |
var r = o.inputs[l]; | |
return void 0 === r ? null : r.block | |
} | |
}, { | |
key: "getOpcode", | |
value: function(e) { | |
return void 0 === e ? null : e.opcode | |
} | |
}, { | |
key: "getFields", | |
value: function(e) { | |
return void 0 === e ? null : e.fields | |
} | |
}, { | |
key: "getInputs", | |
value: function(t) { | |
if (void 0 === t) return null; | |
var n = this._cache.inputs[t.id]; | |
if (void 0 !== n) return n; | |
n = {}; | |
for (var o in t.inputs) o.substring(0, e.BRANCH_INPUT_PREFIX.length) !== e.BRANCH_INPUT_PREFIX && (n[o] = t.inputs[o]); | |
return this._cache.inputs[t.id] = n, n | |
} | |
}, { | |
key: "getMutation", | |
value: function(e) { | |
return void 0 === e ? null : e.mutation | |
} | |
}, { | |
key: "getTopLevelScript", | |
value: function(e) { | |
var t = this._blocks[e]; | |
if (void 0 === t) return null; | |
for (; null !== t.parent;) t = this._blocks[t.parent]; | |
return t.id | |
} | |
}, { | |
key: "getProcedureDefinition", | |
value: function(e) { | |
var t = this._cache.procedureDefinitions[e]; | |
if (void 0 !== t) return t; | |
for (var n in this._blocks) | |
if (this._blocks.hasOwnProperty(n)) { | |
var o = this._blocks[n]; | |
if ("procedures_definition" === o.opcode) { | |
var l = this._getCustomBlockInternal(o); | |
if (l && l.mutation.proccode === e) return this._cache.procedureDefinitions[e] = n, n | |
} | |
} | |
return this._cache.procedureDefinitions[e] = null, null | |
} | |
}, { | |
key: "getProcedureParamNamesAndIds", | |
value: function(e) { | |
var t = this._cache.procedureParamNames[e]; | |
if (void 0 !== t) return t; | |
for (var n in this._blocks) | |
if (this._blocks.hasOwnProperty(n)) { | |
var o = this._blocks[n]; | |
if ("procedures_prototype" === o.opcode && o.mutation.proccode === e) { | |
var l = JSON.parse(o.mutation.argumentnames), | |
r = JSON.parse(o.mutation.argumentids); | |
return this._cache.procedureParamNames[e] = [l, r], this._cache.procedureParamNames[e] | |
} | |
} | |
return this._cache.procedureParamNames[e] = null, null | |
} | |
}, { | |
key: "duplicate", | |
value: function() { | |
var t = new e; | |
return t._blocks = u.simple(this._blocks), t._scripts = u.simple(this._scripts), t | |
} | |
}, { | |
key: "blocklyListen", | |
value: function(e, t) { | |
if ("object" === (void 0 === e ? "undefined" : l(e)) && ("string" == typeof e.blockId || "string" == typeof e.varId)) { | |
var n = t.getTargetForStage(); | |
if ("stackclick" === e.element) return void(t && t.toggleScript(e.blockId, { | |
stackClick: !0 | |
})); | |
switch (e.type) { | |
case "create": | |
for (var o = i(e), r = 0; r < o.length; r++) this.createBlock(o[r]); | |
break; | |
case "change": | |
this.changeBlock({ | |
id: e.blockId, | |
element: e.element, | |
name: e.name, | |
value: e.newValue | |
}, t); | |
break; | |
case "move": | |
this.moveBlock({ | |
id: e.blockId, | |
oldParent: e.oldParentId, | |
oldInput: e.oldInputName, | |
newParent: e.newParentId, | |
newInput: e.newInputName, | |
newCoordinate: e.newCoordinate | |
}); | |
break; | |
case "dragOutside": | |
t && t.emitBlockDragUpdate(e.isOutside); | |
break; | |
case "endDrag": | |
if (t && (t.emitBlockDragUpdate(!1), e.isOutside)) { | |
var A = i(e); | |
t.emitBlockEndDrag(A) | |
} | |
break; | |
case "delete": | |
if (!this._blocks.hasOwnProperty(e.blockId) || this._blocks[e.blockId].shadow) return; | |
t && this._blocks[e.blockId].topLevel && t.quietGlow(e.blockId), this.deleteBlock(e.blockId); | |
break; | |
case "var_create": | |
t.getEditingTarget() ? t.getEditingTarget().lookupVariableById(e.varId) || n.createVariable(e.varId, e.varName, e.varType) : n.lookupVariableById(e.varId) || n.createVariable(e.varId, e.varName, e.varType); | |
break; | |
case "var_rename": | |
if (n.renameVariable(e.varId, e.newName), t) | |
for (var a = t.targets, s = 0; s < a.length; s++) { | |
var u = a[s]; | |
u.blocks.updateBlocksAfterVarRename(e.varId, e.newName) | |
} | |
break; | |
case "var_delete": | |
n.deleteVariable(e.varId) | |
} | |
} | |
} | |
}, { | |
key: "resetCache", | |
value: function() { | |
this._cache.inputs = {}, this._cache.procedureParamNames = {}, this._cache.procedureDefinitions = {}, this._cache._executeCached = {} | |
} | |
}, { | |
key: "createBlock", | |
value: function(e) { | |
this._blocks.hasOwnProperty(e.id) || (this._blocks[e.id] = e, e.topLevel && this._addScript(e.id), this.resetCache()) | |
} | |
}, { | |
key: "changeBlock", | |
value: function(e, t) { | |
if (-1 !== ["field", "mutation", "checkbox"].indexOf(e.element)) { | |
var n = this._blocks[e.id]; | |
if (void 0 !== n) { | |
var o = n.isMonitored; | |
switch (e.element) { | |
case "field": | |
if (!n.fields[e.name]) return; | |
if ("VARIABLE" === e.name || "LIST" === e.name || "BROADCAST_OPTION" === e.name) { | |
var l = t.getEditingTarget().lookupVariableById(e.value); | |
l && (n.fields[e.name].value = l.name, n.fields[e.name].id = e.value) | |
} else { | |
if (n.fields[e.name].value = e.value, !t) break; | |
var r = n.shadow && n.parent ? this._blocks[n.parent] : n; | |
r.isMonitored && t.requestUpdateMonitor(g({ | |
id: r.id, | |
params: this._getBlockParams(r) | |
})) | |
} | |
break; | |
case "mutation": | |
n.mutation = A(e.value); | |
break; | |
case "checkbox": | |
if (n.isMonitored = e.value, !t) break; | |
var i = t.monitorBlockInfo.hasOwnProperty(n.opcode) && t.monitorBlockInfo[n.opcode].isSpriteSpecific; | |
n.targetId = i ? t.getEditingTarget().id : null, o && !n.isMonitored ? t.requestRemoveMonitor(n.id) : !o && n.isMonitored && t.requestAddMonitor(s({ | |
id: n.id, | |
targetId: n.targetId, | |
spriteName: n.targetId ? t.getTargetById(n.targetId).getName() : null, | |
opcode: n.opcode, | |
params: this._getBlockParams(n), | |
value: "" | |
})) | |
} | |
this.resetCache() | |
} | |
} | |
} | |
}, { | |
key: "moveBlock", | |
value: function(e) { | |
if (this._blocks.hasOwnProperty(e.id)) { | |
if (e.newCoordinate && (this._blocks[e.id].x = e.newCoordinate.x, this._blocks[e.id].y = e.newCoordinate.y), void 0 !== e.oldParent) { | |
var t = this._blocks[e.oldParent]; | |
void 0 !== e.oldInput && t.inputs[e.oldInput].block === e.id ? t.inputs[e.oldInput].block = null : t.next === e.id && (t.next = null), this._blocks[e.id].parent = null | |
} | |
if (void 0 === e.newParent) this._addScript(e.id); | |
else { | |
if (this._deleteScript(e.id), void 0 === e.newInput) this._blocks[e.newParent].next = e.id; | |
else { | |
var n = null; | |
this._blocks[e.newParent].inputs.hasOwnProperty(e.newInput) && (n = this._blocks[e.newParent].inputs[e.newInput].shadow), this._blocks[e.newParent].inputs[e.newInput] = { | |
name: e.newInput, | |
block: e.id, | |
shadow: n | |
} | |
} | |
this._blocks[e.id].parent = e.newParent | |
} | |
this.resetCache() | |
} | |
} | |
}, { | |
key: "runAllMonitored", | |
value: function(e) { | |
var t = this; | |
Object.keys(this._blocks).forEach(function(n) { | |
if (t.getBlock(n).isMonitored) { | |
var o = t.getBlock(n).targetId; | |
e.addMonitorScript(n, o ? e.getTargetById(o) : null) | |
} | |
}) | |
} | |
}, { | |
key: "deleteBlock", | |
value: function(e) { | |
var t = this._blocks[e]; | |
if (t) { | |
null !== t.next && this.deleteBlock(t.next); | |
for (var n in t.inputs) null !== t.inputs[n].block && this.deleteBlock(t.inputs[n].block), null !== t.inputs[n].shadow && t.inputs[n].shadow !== t.inputs[n].block && this.deleteBlock(t.inputs[n].shadow); | |
this._deleteScript(e), delete this._blocks[e], this.resetCache() | |
} | |
} | |
}, { | |
key: "updateBlocksAfterVarRename", | |
value: function(e, t) { | |
var n = this._blocks; | |
for (var o in n) { | |
var l = null; | |
if (n[o].fields.VARIABLE ? l = n[o].fields.VARIABLE : n[o].fields.LIST && (l = n[o].fields.LIST), l) { | |
e === l.id && (l.value = t) | |
} | |
} | |
} | |
}, { | |
key: "updateTargetSpecificBlocks", | |
value: function(e) { | |
var t = this._blocks; | |
for (var n in t) e && "event_whenthisspriteclicked" === t[n].opcode ? t[n].opcode = "event_whenstageclicked" : e || "event_whenstageclicked" !== t[n].opcode || (t[n].opcode = "event_whenthisspriteclicked") | |
} | |
}, { | |
key: "updateAssetName", | |
value: function(e, t, n) { | |
var o = void 0; | |
if ("costume" === n) o = this._getCostumeField.bind(this); | |
else if ("sound" === n) o = this._getSoundField.bind(this); | |
else if ("backdrop" === n) o = this._getBackdropField.bind(this); | |
else { | |
if ("sprite" !== n) return; | |
o = this._getSpriteField.bind(this) | |
} | |
var l = this._blocks; | |
for (var r in l) { | |
var i = o(r); | |
i && i.value === e && (i.value = t) | |
} | |
} | |
}, { | |
key: "_getCostumeField", | |
value: function(e) { | |
var t = this.getBlock(e); | |
return t && t.fields.hasOwnProperty("COSTUME") ? t.fields.COSTUME : null | |
} | |
}, { | |
key: "_getSoundField", | |
value: function(e) { | |
var t = this.getBlock(e); | |
return t && t.fields.hasOwnProperty("SOUND_MENU") ? t.fields.SOUND_MENU : null | |
} | |
}, { | |
key: "_getBackdropField", | |
value: function(e) { | |
var t = this.getBlock(e); | |
return t && t.fields.hasOwnProperty("BACKDROP") ? t.fields.BACKDROP : null | |
} | |
}, { | |
key: "_getSpriteField", | |
value: function(e) { | |
var t = this.getBlock(e); | |
if (!t) return null; | |
for (var n = ["TOWARDS", "TO", "OBJECT", "VIDEOONMENU2", "DISTANCETOMENU", "TOUCHINGOBJECTMENU", "CLONE_OPTION"], o = 0; o < n.length; o++) { | |
var l = n[o]; | |
if (t.fields.hasOwnProperty(l)) return t.fields[l] | |
} | |
return null | |
} | |
}, { | |
key: "toXML", | |
value: function() { | |
var e = this; | |
return this._scripts.map(function(t) { | |
return e.blockToXML(t) | |
}).join() | |
} | |
}, { | |
key: "blockToXML", | |
value: function(e) { | |
var t = this._blocks[e], | |
n = t.shadow ? "shadow" : "block", | |
o = "<" + n + '\n id="' + t.id + '"\n type="' + t.opcode + '"\n ' + (t.topLevel ? 'x="' + t.x + '" y="' + t.y + '"' : "") + "\n >"; | |
t.mutation && (o += this.mutationToXML(t.mutation)); | |
for (var l in t.inputs) | |
if (t.inputs.hasOwnProperty(l)) { | |
var r = t.inputs[l]; | |
(r.block || r.shadow) && (o += '<value name="' + r.name + '">', r.block && (o += this.blockToXML(r.block)), r.shadow && r.shadow !== r.block && (o += this.blockToXML(r.shadow)), o += "</value>") | |
} | |
for (var i in t.fields) | |
if (t.fields.hasOwnProperty(i)) { | |
var A = t.fields[i]; | |
o += '<field name="' + A.name + '"'; | |
var s = A.id; | |
s && (o += ' id="' + s + '"'); | |
var u = A.variableType; | |
"string" == typeof u && (o += ' variabletype="' + u + '"'); | |
var c = A.value; | |
"string" == typeof c && (c = a(A.value)), o += ">" + c + "</field>" | |
} | |
return t.next && (o += "<next>" + this.blockToXML(t.next) + "</next>"), o += "</" + n + ">" | |
} | |
}, { | |
key: "mutationToXML", | |
value: function(e) { | |
var t = "<" + e.tagName; | |
for (var n in e) | |
if ("children" !== n && "tagName" !== n) { | |
var o = "string" == typeof e[n] ? a(e[n]) : e[n]; | |
t += " " + n + '="' + o + '"' | |
} | |
t += ">"; | |
for (var l = 0; l < e.children.length; l++) t += this.mutationToXML(e.children[l]); | |
return t += "</" + e.tagName + ">" | |
} | |
}, { | |
key: "_getBlockParams", | |
value: function(e) { | |
var t = {}; | |
for (var n in e.fields) t[n] = e.fields[n].value; | |
for (var o in e.inputs) { | |
var l = this._blocks[e.inputs[o].block]; | |
for (var r in l.fields) t[r] = l.fields[r].value | |
} | |
return t | |
} | |
}, { | |
key: "_getCustomBlockInternal", | |
value: function(e) { | |
if (e.inputs && e.inputs.custom_block) return this._blocks[e.inputs.custom_block.block] | |
} | |
}, { | |
key: "_addScript", | |
value: function(e) { | |
this._scripts.indexOf(e) > -1 || (this._scripts.push(e), this._blocks[e].topLevel = !0) | |
} | |
}, { | |
key: "_deleteScript", | |
value: function(e) { | |
var t = this._scripts.indexOf(e); | |
t > -1 && this._scripts.splice(t, 1), this._blocks[e] && (this._blocks[e].topLevel = !1) | |
} | |
}], [{ | |
key: "BRANCH_INPUT_PREFIX", | |
get: function() { | |
return "SUBSTACK" | |
} | |
}]), e | |
}(); | |
h.getCached = function(e, t) { | |
var n = e.getBlock(t); | |
if (void 0 === n) return null; | |
var o = e._cache._executeCached[t]; | |
return void 0 !== o ? o : (o = { | |
_initialized: !1, | |
opcode: e.getOpcode(n), | |
fields: e.getFields(n), | |
inputs: e.getInputs(n), | |
mutation: e.getMutation(n) | |
}, e._cache._executeCached[t] = o, o) | |
}, e.exports = d | |
}, function(e, t, n) { | |
function o(t, n) { | |
return delete e.exports[t], e.exports[t] = n, n | |
} | |
var l = n(90), | |
r = n(186); | |
e.exports = { | |
Parser: l, | |
Tokenizer: n(91), | |
ElementType: n(26), | |
DomHandler: r, | |
get FeedHandler() { | |
return o("FeedHandler", n(188)) | |
}, | |
get Stream() { | |
return o("Stream", n(189)) | |
}, | |
get WritableStream() { | |
return o("WritableStream", n(95)) | |
}, | |
get ProxyHandler() { | |
return o("ProxyHandler", n(191)) | |
}, | |
get DomUtils() { | |
return o("DomUtils", n(192)) | |
}, | |
get CollectingHandler() { | |
return o("CollectingHandler", n(204)) | |
}, | |
DefaultHandler: r, | |
get RssHandler() { | |
return o("RssHandler", this.FeedHandler) | |
}, | |
parseDOM: function(e, t) { | |
var n = new r(t); | |
return new l(n, t).end(e), n.dom | |
}, | |
parseFeed: function(t, n) { | |
var o = new e.exports.FeedHandler(n); | |
return new l(o, n).end(t), o.dom | |
}, | |
createDomStream: function(e, t, n) { | |
var o = new r(e, t, n); | |
return new l(o, t) | |
}, | |
EVENTS: { | |
attribute: 2, | |
cdatastart: 0, | |
cdataend: 0, | |
text: 1, | |
processinginstruction: 2, | |
comment: 1, | |
commentend: 0, | |
closetag: 1, | |
opentag: 2, | |
opentagname: 1, | |
error: 1, | |
end: 0 | |
} | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
var o = "!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", | |
l = function() { | |
for (var e = o.length, t = [], n = 0; n < 20; n++) t[n] = o.charAt(Math.random() * e); | |
return t.join("") | |
}; | |
e.exports = l | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
t = t || {}; | |
for (var n in e) t[n] = e[n]; | |
return t | |
} | |
function l(e, t, n) { | |
var o = n ? " !== " : " === ", | |
l = n ? " || " : " && ", | |
r = n ? "!" : "", | |
i = n ? "" : "!"; | |
switch (e) { | |
case "null": | |
return t + o + "null"; | |
case "array": | |
return r + "Array.isArray(" + t + ")"; | |
case "object": | |
return "(" + r + t + l + "typeof " + t + o + '"object"' + l + i + "Array.isArray(" + t + "))"; | |
case "integer": | |
return "(typeof " + t + o + '"number"' + l + i + "(" + t + " % 1)" + l + t + o + t + ")"; | |
default: | |
return "typeof " + t + o + '"' + e + '"' | |
} | |
} | |
function r(e, t) { | |
switch (e.length) { | |
case 1: | |
return l(e[0], t, !0); | |
default: | |
var n = "", | |
o = A(e); | |
o.array && o.object && (n = o.null ? "(" : "(!" + t + " || ", n += "typeof " + t + ' !== "object")', delete o.null, delete o.array, delete o.object), o.number && delete o.integer; | |
for (var r in o) n += (n ? " && " : "") + l(r, t, !0); | |
return n | |
} | |
} | |
function i(e, t) { | |
if (Array.isArray(t)) { | |
for (var n = [], o = 0; o < t.length; o++) { | |
var l = t[o]; | |
v[l] ? n[n.length] = l : "array" === e && "array" === l && (n[n.length] = l) | |
} | |
if (n.length) return n | |
} else { | |
if (v[t]) return [t]; | |
if ("array" === e && "array" === t) return ["array"] | |
} | |
} | |
function A(e) { | |
for (var t = {}, n = 0; n < e.length; n++) t[e[n]] = !0; | |
return t | |
} | |
function a(e) { | |
return "number" == typeof e ? "[" + e + "]" : M.test(e) ? "." + e : "['" + s(e) + "']" | |
} | |
function s(e) { | |
return e.replace(Q, "\\$&").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\f/g, "\\f").replace(/\t/g, "\\t") | |
} | |
function u(e, t) { | |
t += "[^0-9]"; | |
var n = e.match(new RegExp(t, "g")); | |
return n ? n.length : 0 | |
} | |
function c(e, t, n) { | |
return t += "([^0-9])", n = n.replace(/\$/g, "$$$$"), e.replace(new RegExp(t, "g"), n + "$1") | |
} | |
function g(e) { | |
return e.replace(D, "").replace(k, "").replace(S, "if (!($1))") | |
} | |
function h(e, t) { | |
var n = e.match(F); | |
return n && 2 == n.length && (e = t ? e.replace(x, "").replace(T, N) : e.replace(Y, "").replace(R, U)), n = e.match(G), n && 3 === n.length ? e.replace(L, "") : e | |
} | |
function d(e, t) { | |
if ("boolean" == typeof e) return !e; | |
for (var n in e) | |
if (t[n]) return !0 | |
} | |
function f(e, t, n) { | |
if ("boolean" == typeof e) return !e && "not" != n; | |
for (var o in e) | |
if (o != n && t[o]) return !0 | |
} | |
function p(e) { | |
return "'" + s(e) + "'" | |
} | |
function m(e, t, n, o) { | |
return y(e, n ? "'/' + " + t + (o ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : o ? "'[' + " + t + " + ']'" : "'[\\'' + " + t + " + '\\']'") | |
} | |
function B(e, t, n) { | |
return y(e, p(n ? "/" + I(t) : a(t))) | |
} | |
function E(e, t, n) { | |
var o, l, r, i; | |
if ("" === e) return "rootData"; | |
if ("/" == e[0]) { | |
if (!O.test(e)) throw new Error("Invalid JSON-pointer: " + e); | |
l = e, r = "rootData" | |
} else { | |
if (!(i = e.match(P))) throw new Error("Invalid JSON-pointer: " + e); | |
if (o = +i[1], "#" == (l = i[2])) { | |
if (o >= t) throw new Error("Cannot access property/index " + o + " levels up, current level is " + t); | |
return n[t - o] | |
} | |
if (o > t) throw new Error("Cannot access data " + o + " levels up, current level is " + t); | |
if (r = "data" + (t - o || ""), !l) return r | |
} | |
for (var A = r, s = l.split("/"), u = 0; u < s.length; u++) { | |
var c = s[u]; | |
c && (r += a(b(c)), A += " && " + r) | |
} | |
return A | |
} | |
function y(e, t) { | |
return '""' == e ? t : (e + " + " + t).replace(/' \+ '/g, "") | |
} | |
function C(e) { | |
return b(decodeURIComponent(e)) | |
} | |
function w(e) { | |
return encodeURIComponent(I(e)) | |
} | |
function I(e) { | |
return e.replace(/~/g, "~0").replace(/\//g, "~1") | |
} | |
function b(e) { | |
return e.replace(/~1/g, "/").replace(/~0/g, "~") | |
} | |
e.exports = { | |
copy: o, | |
checkDataType: l, | |
checkDataTypes: r, | |
coerceToTypes: i, | |
toHash: A, | |
getProperty: a, | |
escapeQuotes: s, | |
equal: n(52), | |
ucs2length: n(327), | |
varOccurences: u, | |
varReplace: c, | |
cleanUpCode: g, | |
finalCleanUpCode: h, | |
schemaHasRules: d, | |
schemaHasRulesExcept: f, | |
toQuotedString: p, | |
getPathExpr: m, | |
getPath: B, | |
getData: E, | |
unescapeFragment: C, | |
unescapeJsonPointer: b, | |
escapeFragment: w, | |
escapeJsonPointer: I | |
}; | |
var v = A(["string", "number", "integer", "boolean", "null"]), | |
M = /^[a-z$_][a-z$_0-9]*$/i, | |
Q = /'|\\/g, | |
D = /else\s*{\s*}/g, | |
k = /if\s*\([^)]+\)\s*\{\s*\}(?!\s*else)/g, | |
S = /if\s*\(([^)]+)\)\s*\{\s*\}\s*else(?!\s*if)/g, | |
F = /[^v.]errors/g, | |
Y = /var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g, | |
x = /var errors = 0;|var vErrors = null;/g, | |
R = "return errors === 0;", | |
U = "validate.errors = null; return true;", | |
T = /if \(errors === 0\) return data;\s*else throw new ValidationError\(vErrors\);/, | |
N = "return data;", | |
G = /[^A-Za-z_$]rootData[^A-Za-z0-9_$]/g, | |
L = /if \(rootData === undefined\) rootData = data;/, | |
O = /^\/(?:[^~]|~0|~1)*$/, | |
P = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/ | |
}, function(e, t, n) { | |
(function(e) { | |
function n(e) { | |
return Array.isArray ? Array.isArray(e) : "[object Array]" === p(e) | |
} | |
function o(e) { | |
return "boolean" == typeof e | |
} | |
function l(e) { | |
return null === e | |
} | |
function r(e) { | |
return null == e | |
} | |
function i(e) { | |
return "number" == typeof e | |
} | |
function A(e) { | |
return "string" == typeof e | |
} | |
function a(e) { | |
return "symbol" == typeof e | |
} | |
function s(e) { | |
return void 0 === e | |
} | |
function u(e) { | |
return "[object RegExp]" === p(e) | |
} | |
function c(e) { | |
return "object" == typeof e && null !== e | |
} | |
function g(e) { | |
return "[object Date]" === p(e) | |
} | |
function h(e) { | |
return "[object Error]" === p(e) || e instanceof Error | |
} | |
function d(e) { | |
return "function" == typeof e | |
} | |
function f(e) { | |
return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" == typeof e || void 0 === e | |
} | |
function p(e) { | |
return Object.prototype.toString.call(e) | |
} | |
t.isArray = n, t.isBoolean = o, t.isNull = l, t.isNullOrUndefined = r, t.isNumber = i, t.isString = A, t.isSymbol = a, t.isUndefined = s, t.isRegExp = u, t.isObject = c, t.isDate = g, t.isError = h, t.isFunction = d, t.isPrimitive = f, t.isBuffer = e.isBuffer | |
}).call(t, n(6).Buffer) | |
}, function(e, t, n) { | |
"use strict"; | |
var o = null; | |
o = "undefined" != typeof Promise ? Promise : n(144), e.exports = { | |
Promise: o | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
var o = { | |
ANGLE: "angle", | |
BOOLEAN: "Boolean", | |
COLOR: "color", | |
NUMBER: "number", | |
STRING: "string" | |
}; | |
e.exports = o | |
}, function(e, t) { | |
e.exports = { | |
Text: "text", | |
Directive: "directive", | |
Comment: "comment", | |
Script: "script", | |
Style: "style", | |
Tag: "tag", | |
CDATA: "cdata", | |
Doctype: "doctype", | |
isTag: function(e) { | |
return "tag" === e.type || "script" === e.type || "style" === e.type | |
} | |
} | |
}, function(e, t, n) { | |
! function(t, n) { | |
e.exports = n() | |
}(0, function() { | |
"use strict"; | |
function e(e, t) { | |
t && (e.prototype = Object.create(t.prototype)), e.prototype.constructor = e | |
} | |
function t(e) { | |
return r(e) ? e : k(e) | |
} | |
function n(e) { | |
return i(e) ? e : S(e) | |
} | |
function o(e) { | |
return A(e) ? e : F(e) | |
} | |
function l(e) { | |
return r(e) && !a(e) ? e : Y(e) | |
} | |
function r(e) { | |
return !(!e || !e[sn]) | |
} | |
function i(e) { | |
return !(!e || !e[un]) | |
} | |
function A(e) { | |
return !(!e || !e[cn]) | |
} | |
function a(e) { | |
return i(e) || A(e) | |
} | |
function s(e) { | |
return !(!e || !e[gn]) | |
} | |
function u(e) { | |
return e.value = !1, e | |
} | |
function c(e) { | |
e && (e.value = !0) | |
} | |
function g() {} | |
function h(e, t) { | |
t = t || 0; | |
for (var n = Math.max(0, e.length - t), o = new Array(n), l = 0; l < n; l++) o[l] = e[l + t]; | |
return o | |
} | |
function d(e) { | |
return void 0 === e.size && (e.size = e.__iterate(p)), e.size | |
} | |
function f(e, t) { | |
if ("number" != typeof t) { | |
var n = t >>> 0; | |
if ("" + n !== t || 4294967295 === n) return NaN; | |
t = n | |
} | |
return t < 0 ? d(e) + t : t | |
} | |
function p() { | |
return !0 | |
} | |
function m(e, t, n) { | |
return (0 === e || void 0 !== n && e <= -n) && (void 0 === t || void 0 !== n && t >= n) | |
} | |
function B(e, t) { | |
return y(e, t, 0) | |
} | |
function E(e, t) { | |
return y(e, t, t) | |
} | |
function y(e, t, n) { | |
return void 0 === e ? n : e < 0 ? Math.max(0, t + e) : void 0 === t ? e : Math.min(t, e) | |
} | |
function C(e) { | |
this.next = e | |
} | |
function w(e, t, n, o) { | |
var l = 0 === e ? t : 1 === e ? n : [t, n]; | |
return o ? o.value = l : o = { | |
value: l, | |
done: !1 | |
}, o | |
} | |
function I() { | |
return { | |
value: void 0, | |
done: !0 | |
} | |
} | |
function b(e) { | |
return !!Q(e) | |
} | |
function v(e) { | |
return e && "function" == typeof e.next | |
} | |
function M(e) { | |
var t = Q(e); | |
return t && t.call(e) | |
} | |
function Q(e) { | |
var t = e && (wn && e[wn] || e[In]); | |
if ("function" == typeof t) return t | |
} | |
function D(e) { | |
return e && "number" == typeof e.length | |
} | |
function k(e) { | |
return null === e || void 0 === e ? G() : r(e) ? e.toSeq() : P(e) | |
} | |
function S(e) { | |
return null === e || void 0 === e ? G().toKeyedSeq() : r(e) ? i(e) ? e.toSeq() : e.fromEntrySeq() : L(e) | |
} | |
function F(e) { | |
return null === e || void 0 === e ? G() : r(e) ? i(e) ? e.entrySeq() : e.toIndexedSeq() : O(e) | |
} | |
function Y(e) { | |
return (null === e || void 0 === e ? G() : r(e) ? i(e) ? e.entrySeq() : e : O(e)).toSetSeq() | |
} | |
function x(e) { | |
this._array = e, this.size = e.length | |
} | |
function R(e) { | |
var t = Object.keys(e); | |
this._object = e, this._keys = t, this.size = t.length | |
} | |
function U(e) { | |
this._iterable = e, this.size = e.length || e.size | |
} | |
function T(e) { | |
this._iterator = e, this._iteratorCache = [] | |
} | |
function N(e) { | |
return !(!e || !e[vn]) | |
} | |
function G() { | |
return Mn || (Mn = new x([])) | |
} | |
function L(e) { | |
var t = Array.isArray(e) ? new x(e).fromEntrySeq() : v(e) ? new T(e).fromEntrySeq() : b(e) ? new U(e).fromEntrySeq() : "object" == typeof e ? new R(e) : void 0; | |
if (!t) throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: " + e); | |
return t | |
} | |
function O(e) { | |
var t = H(e); | |
if (!t) throw new TypeError("Expected Array or iterable object of values: " + e); | |
return t | |
} | |
function P(e) { | |
var t = H(e) || "object" == typeof e && new R(e); | |
if (!t) throw new TypeError("Expected Array or iterable object of values, or keyed object: " + e); | |
return t | |
} | |
function H(e) { | |
return D(e) ? new x(e) : v(e) ? new T(e) : b(e) ? new U(e) : void 0 | |
} | |
function j(e, t, n, o) { | |
var l = e._cache; | |
if (l) { | |
for (var r = l.length - 1, i = 0; i <= r; i++) { | |
var A = l[n ? r - i : i]; | |
if (!1 === t(A[1], o ? A[0] : i, e)) return i + 1 | |
} | |
return i | |
} | |
return e.__iterateUncached(t, n) | |
} | |
function J(e, t, n, o) { | |
var l = e._cache; | |
if (l) { | |
var r = l.length - 1, | |
i = 0; | |
return new C(function() { | |
var e = l[n ? r - i : i]; | |
return i++ > r ? I() : w(t, o ? e[0] : i - 1, e[1]) | |
}) | |
} | |
return e.__iteratorUncached(t, n) | |
} | |
function V(e, t) { | |
return t ? z(t, e, "", { | |
"": e | |
}) : W(e) | |
} | |
function z(e, t, n, o) { | |
return Array.isArray(t) ? e.call(o, n, F(t).map(function(n, o) { | |
return z(e, n, o, t) | |
})) : K(t) ? e.call(o, n, S(t).map(function(n, o) { | |
return z(e, n, o, t) | |
})) : t | |
} | |
function W(e) { | |
return Array.isArray(e) ? F(e).map(W).toList() : K(e) ? S(e).map(W).toMap() : e | |
} | |
function K(e) { | |
return e && (e.constructor === Object || void 0 === e.constructor) | |
} | |
function q(e, t) { | |
if (e === t || e !== e && t !== t) return !0; | |
if (!e || !t) return !1; | |
if ("function" == typeof e.valueOf && "function" == typeof t.valueOf) { | |
if (e = e.valueOf(), t = t.valueOf(), e === t || e !== e && t !== t) return !0; | |
if (!e || !t) return !1 | |
} | |
return !("function" != typeof e.equals || "function" != typeof t.equals || !e.equals(t)) | |
} | |
function Z(e, t) { | |
if (e === t) return !0; | |
if (!r(t) || void 0 !== e.size && void 0 !== t.size && e.size !== t.size || void 0 !== e.__hash && void 0 !== t.__hash && e.__hash !== t.__hash || i(e) !== i(t) || A(e) !== A(t) || s(e) !== s(t)) return !1; | |
if (0 === e.size && 0 === t.size) return !0; | |
var n = !a(e); | |
if (s(e)) { | |
var o = e.entries(); | |
return t.every(function(e, t) { | |
var l = o.next().value; | |
return l && q(l[1], e) && (n || q(l[0], t)) | |
}) && o.next().done | |
} | |
var l = !1; | |
if (void 0 === e.size) | |
if (void 0 === t.size) "function" == typeof e.cacheResult && e.cacheResult(); | |
else { | |
l = !0; | |
var u = e; | |
e = t, t = u | |
} | |
var c = !0, | |
g = t.__iterate(function(t, o) { | |
if (n ? !e.has(t) : l ? !q(t, e.get(o, pn)) : !q(e.get(o, pn), t)) return c = !1, !1 | |
}); | |
return c && e.size === g | |
} | |
function _(e, t) { | |
if (!(this instanceof _)) return new _(e, t); | |
if (this._value = e, this.size = void 0 === t ? 1 / 0 : Math.max(0, t), 0 === this.size) { | |
if (Qn) return Qn; | |
Qn = this | |
} | |
} | |
function X(e, t) { | |
if (!e) throw new Error(t) | |
} | |
function $(e, t, n) { | |
if (!(this instanceof $)) return new $(e, t, n); | |
if (X(0 !== n, "Cannot step a Range by 0"), e = e || 0, void 0 === t && (t = 1 / 0), n = void 0 === n ? 1 : Math.abs(n), t < e && (n = -n), this._start = e, this._end = t, this._step = n, this.size = Math.max(0, Math.ceil((t - e) / n - 1) + 1), 0 === this.size) { | |
if (Dn) return Dn; | |
Dn = this | |
} | |
} | |
function ee() { | |
throw TypeError("Abstract") | |
} | |
function te() {} | |
function ne() {} | |
function oe() {} | |
function le(e) { | |
return e >>> 1 & 1073741824 | 3221225471 & e | |
} | |
function re(e) { | |
if (!1 === e || null === e || void 0 === e) return 0; | |
if ("function" == typeof e.valueOf && (!1 === (e = e.valueOf()) || null === e || void 0 === e)) return 0; | |
if (!0 === e) return 1; | |
var t = typeof e; | |
if ("number" === t) { | |
if (e !== e || e === 1 / 0) return 0; | |
var n = 0 | e; | |
for (n !== e && (n ^= 4294967295 * e); e > 4294967295;) e /= 4294967295, n ^= e; | |
return le(n) | |
} | |
if ("string" === t) return e.length > Tn ? ie(e) : Ae(e); | |
if ("function" == typeof e.hashCode) return e.hashCode(); | |
if ("object" === t) return ae(e); | |
if ("function" == typeof e.toString) return Ae(e.toString()); | |
throw new Error("Value type " + t + " cannot be hashed.") | |
} | |
function ie(e) { | |
var t = Ln[e]; | |
return void 0 === t && (t = Ae(e), Gn === Nn && (Gn = 0, Ln = {}), Gn++, Ln[e] = t), t | |
} | |
function Ae(e) { | |
for (var t = 0, n = 0; n < e.length; n++) t = 31 * t + e.charCodeAt(n) | 0; | |
return le(t) | |
} | |
function ae(e) { | |
var t; | |
if (xn && void 0 !== (t = kn.get(e))) return t; | |
if (void 0 !== (t = e[Un])) return t; | |
if (!Yn) { | |
if (void 0 !== (t = e.propertyIsEnumerable && e.propertyIsEnumerable[Un])) return t; | |
if (void 0 !== (t = se(e))) return t | |
} | |
if (t = ++Rn, 1073741824 & Rn && (Rn = 0), xn) kn.set(e, t); | |
else { | |
if (void 0 !== Fn && !1 === Fn(e)) throw new Error("Non-extensible objects are not allowed as keys."); | |
if (Yn) Object.defineProperty(e, Un, { | |
enumerable: !1, | |
configurable: !1, | |
writable: !1, | |
value: t | |
}); | |
else if (void 0 !== e.propertyIsEnumerable && e.propertyIsEnumerable === e.constructor.prototype.propertyIsEnumerable) e.propertyIsEnumerable = function() { | |
return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments) | |
}, e.propertyIsEnumerable[Un] = t; | |
else { | |
if (void 0 === e.nodeType) throw new Error("Unable to set a non-enumerable property on object."); | |
e[Un] = t | |
} | |
} | |
return t | |
} | |
function se(e) { | |
if (e && e.nodeType > 0) switch (e.nodeType) { | |
case 1: | |
return e.uniqueID; | |
case 9: | |
return e.documentElement && e.documentElement.uniqueID | |
} | |
} | |
function ue(e) { | |
X(e !== 1 / 0, "Cannot perform this action with an infinite size.") | |
} | |
function ce(e) { | |
return null === e || void 0 === e ? we() : ge(e) && !s(e) ? e : we().withMutations(function(t) { | |
var o = n(e); | |
ue(o.size), o.forEach(function(e, n) { | |
return t.set(n, e) | |
}) | |
}) | |
} | |
function ge(e) { | |
return !(!e || !e[On]) | |
} | |
function he(e, t) { | |
this.ownerID = e, this.entries = t | |
} | |
function de(e, t, n) { | |
this.ownerID = e, this.bitmap = t, this.nodes = n | |
} | |
function fe(e, t, n) { | |
this.ownerID = e, this.count = t, this.nodes = n | |
} | |
function pe(e, t, n) { | |
this.ownerID = e, this.keyHash = t, this.entries = n | |
} | |
function me(e, t, n) { | |
this.ownerID = e, this.keyHash = t, this.entry = n | |
} | |
function Be(e, t, n) { | |
this._type = t, this._reverse = n, this._stack = e._root && ye(e._root) | |
} | |
function Ee(e, t) { | |
return w(e, t[0], t[1]) | |
} | |
function ye(e, t) { | |
return { | |
node: e, | |
index: 0, | |
__prev: t | |
} | |
} | |
function Ce(e, t, n, o) { | |
var l = Object.create(Pn); | |
return l.size = e, l._root = t, l.__ownerID = n, l.__hash = o, l.__altered = !1, l | |
} | |
function we() { | |
return Hn || (Hn = Ce(0)) | |
} | |
function Ie(e, t, n) { | |
var o, l; | |
if (e._root) { | |
var r = u(mn), | |
i = u(Bn); | |
if (o = be(e._root, e.__ownerID, 0, void 0, t, n, r, i), !i.value) return e; | |
l = e.size + (r.value ? n === pn ? -1 : 1 : 0) | |
} else { | |
if (n === pn) return e; | |
l = 1, o = new he(e.__ownerID, [ | |
[t, n] | |
]) | |
} | |
return e.__ownerID ? (e.size = l, e._root = o, e.__hash = void 0, e.__altered = !0, e) : o ? Ce(l, o) : we() | |
} | |
function be(e, t, n, o, l, r, i, A) { | |
return e ? e.update(t, n, o, l, r, i, A) : r === pn ? e : (c(A), c(i), new me(t, o, [l, r])) | |
} | |
function ve(e) { | |
return e.constructor === me || e.constructor === pe | |
} | |
function Me(e, t, n, o, l) { | |
if (e.keyHash === o) return new pe(t, o, [e.entry, l]); | |
var r, i = (0 === n ? e.keyHash : e.keyHash >>> n) & fn, | |
A = (0 === n ? o : o >>> n) & fn; | |
return new de(t, 1 << i | 1 << A, i === A ? [Me(e, t, n + hn, o, l)] : (r = new me(t, o, l), i < A ? [e, r] : [r, e])) | |
} | |
function Qe(e, t, n, o) { | |
e || (e = new g); | |
for (var l = new me(e, re(n), [n, o]), r = 0; r < t.length; r++) { | |
var i = t[r]; | |
l = l.update(e, 0, void 0, i[0], i[1]) | |
} | |
return l | |
} | |
function De(e, t, n, o) { | |
for (var l = 0, r = 0, i = new Array(n), A = 0, a = 1, s = t.length; A < s; A++, a <<= 1) { | |
var u = t[A]; | |
void 0 !== u && A !== o && (l |= a, i[r++] = u) | |
} | |
return new de(e, l, i) | |
} | |
function ke(e, t, n, o, l) { | |
for (var r = 0, i = new Array(dn), A = 0; 0 !== n; A++, n >>>= 1) i[A] = 1 & n ? t[r++] : void 0; | |
return i[o] = l, new fe(e, r + 1, i) | |
} | |
function Se(e, t, o) { | |
for (var l = [], i = 0; i < o.length; i++) { | |
var A = o[i], | |
a = n(A); | |
r(A) || (a = a.map(function(e) { | |
return V(e) | |
})), l.push(a) | |
} | |
return xe(e, t, l) | |
} | |
function Fe(e, t, n) { | |
return e && e.mergeDeep && r(t) ? e.mergeDeep(t) : q(e, t) ? e : t | |
} | |
function Ye(e) { | |
return function(t, n, o) { | |
if (t && t.mergeDeepWith && r(n)) return t.mergeDeepWith(e, n); | |
var l = e(t, n, o); | |
return q(t, l) ? t : l | |
} | |
} | |
function xe(e, t, n) { | |
return n = n.filter(function(e) { | |
return 0 !== e.size | |
}), 0 === n.length ? e : 0 !== e.size || e.__ownerID || 1 !== n.length ? e.withMutations(function(e) { | |
for (var o = t ? function(n, o) { | |
e.update(o, pn, function(e) { | |
return e === pn ? n : t(e, n, o) | |
}) | |
} : function(t, n) { | |
e.set(n, t) | |
}, l = 0; l < n.length; l++) n[l].forEach(o) | |
}) : e.constructor(n[0]) | |
} | |
function Re(e, t, n, o) { | |
var l = e === pn, | |
r = t.next(); | |
if (r.done) { | |
var i = l ? n : e, | |
A = o(i); | |
return A === i ? e : A | |
} | |
X(l || e && e.set, "invalid keyPath"); | |
var a = r.value, | |
s = l ? pn : e.get(a, pn), | |
u = Re(s, t, n, o); | |
return u === s ? e : u === pn ? e.remove(a) : (l ? we() : e).set(a, u) | |
} | |
function Ue(e) { | |
return e -= e >> 1 & 1431655765, e = (858993459 & e) + (e >> 2 & 858993459), e = e + (e >> 4) & 252645135, e += e >> 8, 127 & (e += e >> 16) | |
} | |
function Te(e, t, n, o) { | |
var l = o ? e : h(e); | |
return l[t] = n, l | |
} | |
function Ne(e, t, n, o) { | |
var l = e.length + 1; | |
if (o && t + 1 === l) return e[t] = n, e; | |
for (var r = new Array(l), i = 0, A = 0; A < l; A++) A === t ? (r[A] = n, i = -1) : r[A] = e[A + i]; | |
return r | |
} | |
function Ge(e, t, n) { | |
var o = e.length - 1; | |
if (n && t === o) return e.pop(), e; | |
for (var l = new Array(o), r = 0, i = 0; i < o; i++) i === t && (r = 1), l[i] = e[i + r]; | |
return l | |
} | |
function Le(e) { | |
var t = Je(); | |
if (null === e || void 0 === e) return t; | |
if (Oe(e)) return e; | |
var n = o(e), | |
l = n.size; | |
return 0 === l ? t : (ue(l), l > 0 && l < dn ? je(0, l, hn, null, new Pe(n.toArray())) : t.withMutations(function(e) { | |
e.setSize(l), n.forEach(function(t, n) { | |
return e.set(n, t) | |
}) | |
})) | |
} | |
function Oe(e) { | |
return !(!e || !e[zn]) | |
} | |
function Pe(e, t) { | |
this.array = e, this.ownerID = t | |
} | |
function He(e, t) { | |
function n(e, t, n) { | |
return 0 === t ? o(e, n) : l(e, t, n) | |
} | |
function o(e, n) { | |
var o = n === A ? a && a.array : e && e.array, | |
l = n > r ? 0 : r - n, | |
s = i - n; | |
return s > dn && (s = dn), | |
function() { | |
if (l === s) return qn; | |
var e = t ? --s : l++; | |
return o && o[e] | |
} | |
} | |
function l(e, o, l) { | |
var A, a = e && e.array, | |
s = l > r ? 0 : r - l >> o, | |
u = 1 + (i - l >> o); | |
return u > dn && (u = dn), | |
function() { | |
for (;;) { | |
if (A) { | |
var e = A(); | |
if (e !== qn) return e; | |
A = null | |
} | |
if (s === u) return qn; | |
var r = t ? --u : s++; | |
A = n(a && a[r], o - hn, l + (r << o)) | |
} | |
} | |
} | |
var r = e._origin, | |
i = e._capacity, | |
A = _e(i), | |
a = e._tail; | |
return n(e._root, e._level, 0) | |
} | |
function je(e, t, n, o, l, r, i) { | |
var A = Object.create(Wn); | |
return A.size = t - e, A._origin = e, A._capacity = t, A._level = n, A._root = o, A._tail = l, A.__ownerID = r, A.__hash = i, A.__altered = !1, A | |
} | |
function Je() { | |
return Kn || (Kn = je(0, 0, hn)) | |
} | |
function Ve(e, t, n) { | |
if ((t = f(e, t)) !== t) return e; | |
if (t >= e.size || t < 0) return e.withMutations(function(e) { | |
t < 0 ? qe(e, t).set(0, n) : qe(e, 0, t + 1).set(t, n) | |
}); | |
t += e._origin; | |
var o = e._tail, | |
l = e._root, | |
r = u(Bn); | |
return t >= _e(e._capacity) ? o = ze(o, e.__ownerID, 0, t, n, r) : l = ze(l, e.__ownerID, e._level, t, n, r), r.value ? e.__ownerID ? (e._root = l, e._tail = o, e.__hash = void 0, e.__altered = !0, e) : je(e._origin, e._capacity, e._level, l, o) : e | |
} | |
function ze(e, t, n, o, l, r) { | |
var i = o >>> n & fn, | |
A = e && i < e.array.length; | |
if (!A && void 0 === l) return e; | |
var a; | |
if (n > 0) { | |
var s = e && e.array[i], | |
u = ze(s, t, n - hn, o, l, r); | |
return u === s ? e : (a = We(e, t), a.array[i] = u, a) | |
} | |
return A && e.array[i] === l ? e : (c(r), a = We(e, t), void 0 === l && i === a.array.length - 1 ? a.array.pop() : a.array[i] = l, a) | |
} | |
function We(e, t) { | |
return t && e && t === e.ownerID ? e : new Pe(e ? e.array.slice() : [], t) | |
} | |
function Ke(e, t) { | |
if (t >= _e(e._capacity)) return e._tail; | |
if (t < 1 << e._level + hn) { | |
for (var n = e._root, o = e._level; n && o > 0;) n = n.array[t >>> o & fn], o -= hn; | |
return n | |
} | |
} | |
function qe(e, t, n) { | |
void 0 !== t && (t |= 0), void 0 !== n && (n |= 0); | |
var o = e.__ownerID || new g, | |
l = e._origin, | |
r = e._capacity, | |
i = l + t, | |
A = void 0 === n ? r : n < 0 ? r + n : l + n; | |
if (i === l && A === r) return e; | |
if (i >= A) return e.clear(); | |
for (var a = e._level, s = e._root, u = 0; i + u < 0;) s = new Pe(s && s.array.length ? [void 0, s] : [], o), a += hn, u += 1 << a; | |
u && (i += u, l += u, A += u, r += u); | |
for (var c = _e(r), h = _e(A); h >= 1 << a + hn;) s = new Pe(s && s.array.length ? [s] : [], o), a += hn; | |
var d = e._tail, | |
f = h < c ? Ke(e, A - 1) : h > c ? new Pe([], o) : d; | |
if (d && h > c && i < r && d.array.length) { | |
s = We(s, o); | |
for (var p = s, m = a; m > hn; m -= hn) { | |
var B = c >>> m & fn; | |
p = p.array[B] = We(p.array[B], o) | |
} | |
p.array[c >>> hn & fn] = d | |
} | |
if (A < r && (f = f && f.removeAfter(o, 0, A)), i >= h) i -= h, A -= h, a = hn, s = null, f = f && f.removeBefore(o, 0, i); | |
else if (i > l || h < c) { | |
for (u = 0; s;) { | |
var E = i >>> a & fn; | |
if (E !== h >>> a & fn) break; | |
E && (u += (1 << a) * E), a -= hn, s = s.array[E] | |
} | |
s && i > l && (s = s.removeBefore(o, a, i - u)), s && h < c && (s = s.removeAfter(o, a, h - u)), u && (i -= u, A -= u) | |
} | |
return e.__ownerID ? (e.size = A - i, e._origin = i, e._capacity = A, e._level = a, e._root = s, e._tail = f, e.__hash = void 0, e.__altered = !0, e) : je(i, A, a, s, f) | |
} | |
function Ze(e, t, n) { | |
for (var l = [], i = 0, A = 0; A < n.length; A++) { | |
var a = n[A], | |
s = o(a); | |
s.size > i && (i = s.size), r(a) || (s = s.map(function(e) { | |
return V(e) | |
})), l.push(s) | |
} | |
return i > e.size && (e = e.setSize(i)), xe(e, t, l) | |
} | |
function _e(e) { | |
return e < dn ? 0 : e - 1 >>> hn << hn | |
} | |
function Xe(e) { | |
return null === e || void 0 === e ? tt() : $e(e) ? e : tt().withMutations(function(t) { | |
var o = n(e); | |
ue(o.size), o.forEach(function(e, n) { | |
return t.set(n, e) | |
}) | |
}) | |
} | |
function $e(e) { | |
return ge(e) && s(e) | |
} | |
function et(e, t, n, o) { | |
var l = Object.create(Xe.prototype); | |
return l.size = e ? e.size : 0, l._map = e, l._list = t, l.__ownerID = n, l.__hash = o, l | |
} | |
function tt() { | |
return Zn || (Zn = et(we(), Je())) | |
} | |
function nt(e, t, n) { | |
var o, l, r = e._map, | |
i = e._list, | |
A = r.get(t), | |
a = void 0 !== A; | |
if (n === pn) { | |
if (!a) return e; | |
i.size >= dn && i.size >= 2 * r.size ? (l = i.filter(function(e, t) { | |
return void 0 !== e && A !== t | |
}), o = l.toKeyedSeq().map(function(e) { | |
return e[0] | |
}).flip().toMap(), e.__ownerID && (o.__ownerID = l.__ownerID = e.__ownerID)) : (o = r.remove(t), l = A === i.size - 1 ? i.pop() : i.set(A, void 0)) | |
} else if (a) { | |
if (n === i.get(A)[1]) return e; | |
o = r, l = i.set(A, [t, n]) | |
} else o = r.set(t, i.size), l = i.set(i.size, [t, n]); | |
return e.__ownerID ? (e.size = o.size, e._map = o, e._list = l, e.__hash = void 0, e) : et(o, l) | |
} | |
function ot(e, t) { | |
this._iter = e, this._useKeys = t, this.size = e.size | |
} | |
function lt(e) { | |
this._iter = e, this.size = e.size | |
} | |
function rt(e) { | |
this._iter = e, this.size = e.size | |
} | |
function it(e) { | |
this._iter = e, this.size = e.size | |
} | |
function At(e) { | |
var t = Dt(e); | |
return t._iter = e, t.size = e.size, t.flip = function() { | |
return e | |
}, t.reverse = function() { | |
var t = e.reverse.apply(this); | |
return t.flip = function() { | |
return e.reverse() | |
}, t | |
}, t.has = function(t) { | |
return e.includes(t) | |
}, t.includes = function(t) { | |
return e.has(t) | |
}, t.cacheResult = kt, t.__iterateUncached = function(t, n) { | |
var o = this; | |
return e.__iterate(function(e, n) { | |
return !1 !== t(n, e, o) | |
}, n) | |
}, t.__iteratorUncached = function(t, n) { | |
if (t === Cn) { | |
var o = e.__iterator(t, n); | |
return new C(function() { | |
var e = o.next(); | |
if (!e.done) { | |
var t = e.value[0]; | |
e.value[0] = e.value[1], e.value[1] = t | |
} | |
return e | |
}) | |
} | |
return e.__iterator(t === yn ? En : yn, n) | |
}, t | |
} | |
function at(e, t, n) { | |
var o = Dt(e); | |
return o.size = e.size, o.has = function(t) { | |
return e.has(t) | |
}, o.get = function(o, l) { | |
var r = e.get(o, pn); | |
return r === pn ? l : t.call(n, r, o, e) | |
}, o.__iterateUncached = function(o, l) { | |
var r = this; | |
return e.__iterate(function(e, l, i) { | |
return !1 !== o(t.call(n, e, l, i), l, r) | |
}, l) | |
}, o.__iteratorUncached = function(o, l) { | |
var r = e.__iterator(Cn, l); | |
return new C(function() { | |
var l = r.next(); | |
if (l.done) return l; | |
var i = l.value, | |
A = i[0]; | |
return w(o, A, t.call(n, i[1], A, e), l) | |
}) | |
}, o | |
} | |
function st(e, t) { | |
var n = Dt(e); | |
return n._iter = e, n.size = e.size, n.reverse = function() { | |
return e | |
}, e.flip && (n.flip = function() { | |
var t = At(e); | |
return t.reverse = function() { | |
return e.flip() | |
}, t | |
}), n.get = function(n, o) { | |
return e.get(t ? n : -1 - n, o) | |
}, n.has = function(n) { | |
return e.has(t ? n : -1 - n) | |
}, n.includes = function(t) { | |
return e.includes(t) | |
}, n.cacheResult = kt, n.__iterate = function(t, n) { | |
var o = this; | |
return e.__iterate(function(e, n) { | |
return t(e, n, o) | |
}, !n) | |
}, n.__iterator = function(t, n) { | |
return e.__iterator(t, !n) | |
}, n | |
} | |
function ut(e, t, n, o) { | |
var l = Dt(e); | |
return o && (l.has = function(o) { | |
var l = e.get(o, pn); | |
return l !== pn && !!t.call(n, l, o, e) | |
}, l.get = function(o, l) { | |
var r = e.get(o, pn); | |
return r !== pn && t.call(n, r, o, e) ? r : l | |
}), l.__iterateUncached = function(l, r) { | |
var i = this, | |
A = 0; | |
return e.__iterate(function(e, r, a) { | |
if (t.call(n, e, r, a)) return A++, l(e, o ? r : A - 1, i) | |
}, r), A | |
}, l.__iteratorUncached = function(l, r) { | |
var i = e.__iterator(Cn, r), | |
A = 0; | |
return new C(function() { | |
for (;;) { | |
var r = i.next(); | |
if (r.done) return r; | |
var a = r.value, | |
s = a[0], | |
u = a[1]; | |
if (t.call(n, u, s, e)) return w(l, o ? s : A++, u, r) | |
} | |
}) | |
}, l | |
} | |
function ct(e, t, n) { | |
var o = ce().asMutable(); | |
return e.__iterate(function(l, r) { | |
o.update(t.call(n, l, r, e), 0, function(e) { | |
return e + 1 | |
}) | |
}), o.asImmutable() | |
} | |
function gt(e, t, n) { | |
var o = i(e), | |
l = (s(e) ? Xe() : ce()).asMutable(); | |
e.__iterate(function(r, i) { | |
l.update(t.call(n, r, i, e), function(e) { | |
return e = e || [], e.push(o ? [i, r] : r), e | |
}) | |
}); | |
var r = Qt(e); | |
return l.map(function(t) { | |
return bt(e, r(t)) | |
}) | |
} | |
function ht(e, t, n, o) { | |
var l = e.size; | |
if (void 0 !== t && (t |= 0), void 0 !== n && (n === 1 / 0 ? n = l : n |= 0), m(t, n, l)) return e; | |
var r = B(t, l), | |
i = E(n, l); | |
if (r !== r || i !== i) return ht(e.toSeq().cacheResult(), t, n, o); | |
var A, a = i - r; | |
a === a && (A = a < 0 ? 0 : a); | |
var s = Dt(e); | |
return s.size = 0 === A ? A : e.size && A || void 0, !o && N(e) && A >= 0 && (s.get = function(t, n) { | |
return t = f(this, t), t >= 0 && t < A ? e.get(t + r, n) : n | |
}), s.__iterateUncached = function(t, n) { | |
var l = this; | |
if (0 === A) return 0; | |
if (n) return this.cacheResult().__iterate(t, n); | |
var i = 0, | |
a = !0, | |
s = 0; | |
return e.__iterate(function(e, n) { | |
if (!a || !(a = i++ < r)) return s++, !1 !== t(e, o ? n : s - 1, l) && s !== A | |
}), s | |
}, s.__iteratorUncached = function(t, n) { | |
if (0 !== A && n) return this.cacheResult().__iterator(t, n); | |
var l = 0 !== A && e.__iterator(t, n), | |
i = 0, | |
a = 0; | |
return new C(function() { | |
for (; i++ < r;) l.next(); | |
if (++a > A) return I(); | |
var e = l.next(); | |
return o || t === yn ? e : t === En ? w(t, a - 1, void 0, e) : w(t, a - 1, e.value[1], e) | |
}) | |
}, s | |
} | |
function dt(e, t, n) { | |
var o = Dt(e); | |
return o.__iterateUncached = function(o, l) { | |
var r = this; | |
if (l) return this.cacheResult().__iterate(o, l); | |
var i = 0; | |
return e.__iterate(function(e, l, A) { | |
return t.call(n, e, l, A) && ++i && o(e, l, r) | |
}), i | |
}, o.__iteratorUncached = function(o, l) { | |
var r = this; | |
if (l) return this.cacheResult().__iterator(o, l); | |
var i = e.__iterator(Cn, l), | |
A = !0; | |
return new C(function() { | |
if (!A) return I(); | |
var e = i.next(); | |
if (e.done) return e; | |
var l = e.value, | |
a = l[0], | |
s = l[1]; | |
return t.call(n, s, a, r) ? o === Cn ? e : w(o, a, s, e) : (A = !1, I()) | |
}) | |
}, o | |
} | |
function ft(e, t, n, o) { | |
var l = Dt(e); | |
return l.__iterateUncached = function(l, r) { | |
var i = this; | |
if (r) return this.cacheResult().__iterate(l, r); | |
var A = !0, | |
a = 0; | |
return e.__iterate(function(e, r, s) { | |
if (!A || !(A = t.call(n, e, r, s))) return a++, l(e, o ? r : a - 1, i) | |
}), a | |
}, l.__iteratorUncached = function(l, r) { | |
var i = this; | |
if (r) return this.cacheResult().__iterator(l, r); | |
var A = e.__iterator(Cn, r), | |
a = !0, | |
s = 0; | |
return new C(function() { | |
var e, r, u; | |
do { | |
if (e = A.next(), e.done) return o || l === yn ? e : l === En ? w(l, s++, void 0, e) : w(l, s++, e.value[1], e); | |
var c = e.value; | |
r = c[0], u = c[1], a && (a = t.call(n, u, r, i)) | |
} while (a); | |
return l === Cn ? e : w(l, r, u, e) | |
}) | |
}, l | |
} | |
function pt(e, t) { | |
var o = i(e), | |
l = [e].concat(t).map(function(e) { | |
return r(e) ? o && (e = n(e)) : e = o ? L(e) : O(Array.isArray(e) ? e : [e]), e | |
}).filter(function(e) { | |
return 0 !== e.size | |
}); | |
if (0 === l.length) return e; | |
if (1 === l.length) { | |
var a = l[0]; | |
if (a === e || o && i(a) || A(e) && A(a)) return a | |
} | |
var s = new x(l); | |
return o ? s = s.toKeyedSeq() : A(e) || (s = s.toSetSeq()), s = s.flatten(!0), s.size = l.reduce(function(e, t) { | |
if (void 0 !== e) { | |
var n = t.size; | |
if (void 0 !== n) return e + n | |
} | |
}, 0), s | |
} | |
function mt(e, t, n) { | |
var o = Dt(e); | |
return o.__iterateUncached = function(o, l) { | |
function i(e, s) { | |
var u = this; | |
e.__iterate(function(e, l) { | |
return (!t || s < t) && r(e) ? i(e, s + 1) : !1 === o(e, n ? l : A++, u) && (a = !0), !a | |
}, l) | |
} | |
var A = 0, | |
a = !1; | |
return i(e, 0), A | |
}, o.__iteratorUncached = function(o, l) { | |
var i = e.__iterator(o, l), | |
A = [], | |
a = 0; | |
return new C(function() { | |
for (; i;) { | |
var e = i.next(); | |
if (!1 === e.done) { | |
var s = e.value; | |
if (o === Cn && (s = s[1]), t && !(A.length < t) || !r(s)) return n ? e : w(o, a++, s, e); | |
A.push(i), i = s.__iterator(o, l) | |
} else i = A.pop() | |
} | |
return I() | |
}) | |
}, o | |
} | |
function Bt(e, t, n) { | |
var o = Qt(e); | |
return e.toSeq().map(function(l, r) { | |
return o(t.call(n, l, r, e)) | |
}).flatten(!0) | |
} | |
function Et(e, t) { | |
var n = Dt(e); | |
return n.size = e.size && 2 * e.size - 1, n.__iterateUncached = function(n, o) { | |
var l = this, | |
r = 0; | |
return e.__iterate(function(e, o) { | |
return (!r || !1 !== n(t, r++, l)) && !1 !== n(e, r++, l) | |
}, o), r | |
}, n.__iteratorUncached = function(n, o) { | |
var l, r = e.__iterator(yn, o), | |
i = 0; | |
return new C(function() { | |
return (!l || i % 2) && (l = r.next(), l.done) ? l : i % 2 ? w(n, i++, t) : w(n, i++, l.value, l) | |
}) | |
}, n | |
} | |
function yt(e, t, n) { | |
t || (t = St); | |
var o = i(e), | |
l = 0, | |
r = e.toSeq().map(function(t, o) { | |
return [o, t, l++, n ? n(t, o, e) : t] | |
}).toArray(); | |
return r.sort(function(e, n) { | |
return t(e[3], n[3]) || e[2] - n[2] | |
}).forEach(o ? function(e, t) { | |
r[t].length = 2 | |
} : function(e, t) { | |
r[t] = e[1] | |
}), o ? S(r) : A(e) ? F(r) : Y(r) | |
} | |
function Ct(e, t, n) { | |
if (t || (t = St), n) { | |
var o = e.toSeq().map(function(t, o) { | |
return [t, n(t, o, e)] | |
}).reduce(function(e, n) { | |
return wt(t, e[1], n[1]) ? n : e | |
}); | |
return o && o[0] | |
} | |
return e.reduce(function(e, n) { | |
return wt(t, e, n) ? n : e | |
}) | |
} | |
function wt(e, t, n) { | |
var o = e(n, t); | |
return 0 === o && n !== t && (void 0 === n || null === n || n !== n) || o > 0 | |
} | |
function It(e, n, o) { | |
var l = Dt(e); | |
return l.size = new x(o).map(function(e) { | |
return e.size | |
}).min(), l.__iterate = function(e, t) { | |
for (var n, o = this.__iterator(yn, t), l = 0; !(n = o.next()).done && !1 !== e(n.value, l++, this);); | |
return l | |
}, l.__iteratorUncached = function(e, l) { | |
var r = o.map(function(e) { | |
return e = t(e), M(l ? e.reverse() : e) | |
}), | |
i = 0, | |
A = !1; | |
return new C(function() { | |
var t; | |
return A || (t = r.map(function(e) { | |
return e.next() | |
}), A = t.some(function(e) { | |
return e.done | |
})), A ? I() : w(e, i++, n.apply(null, t.map(function(e) { | |
return e.value | |
}))) | |
}) | |
}, l | |
} | |
function bt(e, t) { | |
return N(e) ? t : e.constructor(t) | |
} | |
function vt(e) { | |
if (e !== Object(e)) throw new TypeError("Expected [K, V] tuple: " + e) | |
} | |
function Mt(e) { | |
return ue(e.size), d(e) | |
} | |
function Qt(e) { | |
return i(e) ? n : A(e) ? o : l | |
} | |
function Dt(e) { | |
return Object.create((i(e) ? S : A(e) ? F : Y).prototype) | |
} | |
function kt() { | |
return this._iter.cacheResult ? (this._iter.cacheResult(), this.size = this._iter.size, this) : k.prototype.cacheResult.call(this) | |
} | |
function St(e, t) { | |
return e > t ? 1 : e < t ? -1 : 0 | |
} | |
function Ft(e) { | |
var n = M(e); | |
if (!n) { | |
if (!D(e)) throw new TypeError("Expected iterable or array-like: " + e); | |
n = M(t(e)) | |
} | |
return n | |
} | |
function Yt(e, t) { | |
var n, o = function(r) { | |
if (r instanceof o) return r; | |
if (!(this instanceof o)) return new o(r); | |
if (!n) { | |
n = !0; | |
var i = Object.keys(e); | |
Ut(l, i), l.size = i.length, l._name = t, l._keys = i, l._defaultValues = e | |
} | |
this._map = ce(r) | |
}, | |
l = o.prototype = Object.create(_n); | |
return l.constructor = o, o | |
} | |
function xt(e, t, n) { | |
var o = Object.create(Object.getPrototypeOf(e)); | |
return o._map = t, o.__ownerID = n, o | |
} | |
function Rt(e) { | |
return e._name || e.constructor.name || "Record" | |
} | |
function Ut(e, t) { | |
try { | |
t.forEach(Tt.bind(void 0, e)) | |
} catch (e) {} | |
} | |
function Tt(e, t) { | |
Object.defineProperty(e, t, { | |
get: function() { | |
return this.get(t) | |
}, | |
set: function(e) { | |
X(this.__ownerID, "Cannot set on an immutable record."), this.set(t, e) | |
} | |
}) | |
} | |
function Nt(e) { | |
return null === e || void 0 === e ? Pt() : Gt(e) && !s(e) ? e : Pt().withMutations(function(t) { | |
var n = l(e); | |
ue(n.size), n.forEach(function(e) { | |
return t.add(e) | |
}) | |
}) | |
} | |
function Gt(e) { | |
return !(!e || !e[Xn]) | |
} | |
function Lt(e, t) { | |
return e.__ownerID ? (e.size = t.size, e._map = t, e) : t === e._map ? e : 0 === t.size ? e.__empty() : e.__make(t) | |
} | |
function Ot(e, t) { | |
var n = Object.create($n); | |
return n.size = e ? e.size : 0, n._map = e, n.__ownerID = t, n | |
} | |
function Pt() { | |
return eo || (eo = Ot(we())) | |
} | |
function Ht(e) { | |
return null === e || void 0 === e ? Vt() : jt(e) ? e : Vt().withMutations(function(t) { | |
var n = l(e); | |
ue(n.size), n.forEach(function(e) { | |
return t.add(e) | |
}) | |
}) | |
} | |
function jt(e) { | |
return Gt(e) && s(e) | |
} | |
function Jt(e, t) { | |
var n = Object.create(to); | |
return n.size = e ? e.size : 0, n._map = e, n.__ownerID = t, n | |
} | |
function Vt() { | |
return no || (no = Jt(tt())) | |
} | |
function zt(e) { | |
return null === e || void 0 === e ? qt() : Wt(e) ? e : qt().unshiftAll(e) | |
} | |
function Wt(e) { | |
return !(!e || !e[oo]) | |
} | |
function Kt(e, t, n, o) { | |
var l = Object.create(lo); | |
return l.size = e, l._head = t, l.__ownerID = n, l.__hash = o, l.__altered = !1, l | |
} | |
function qt() { | |
return ro || (ro = Kt(0)) | |
} | |
function Zt(e, t) { | |
var n = function(n) { | |
e.prototype[n] = t[n] | |
}; | |
return Object.keys(t).forEach(n), Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(t).forEach(n), e | |
} | |
function _t(e, t) { | |
return t | |
} | |
function Xt(e, t) { | |
return [t, e] | |
} | |
function $t(e) { | |
return function() { | |
return !e.apply(this, arguments) | |
} | |
} | |
function en(e) { | |
return function() { | |
return -e.apply(this, arguments) | |
} | |
} | |
function tn(e) { | |
return "string" == typeof e ? JSON.stringify(e) : String(e) | |
} | |
function nn() { | |
return h(arguments) | |
} | |
function on(e, t) { | |
return e < t ? 1 : e > t ? -1 : 0 | |
} | |
function ln(e) { | |
if (e.size === 1 / 0) return 0; | |
var t = s(e), | |
n = i(e), | |
o = t ? 1 : 0; | |
return rn(e.__iterate(n ? t ? function(e, t) { | |
o = 31 * o + An(re(e), re(t)) | 0 | |
} : function(e, t) { | |
o = o + An(re(e), re(t)) | 0 | |
} : t ? function(e) { | |
o = 31 * o + re(e) | 0 | |
} : function(e) { | |
o = o + re(e) | 0 | |
}), o) | |
} | |
function rn(e, t) { | |
return t = Sn(t, 3432918353), t = Sn(t << 15 | t >>> -15, 461845907), t = Sn(t << 13 | t >>> -13, 5), t = (t + 3864292196 | 0) ^ e, t = Sn(t ^ t >>> 16, 2246822507), t = Sn(t ^ t >>> 13, 3266489909), t = le(t ^ t >>> 16) | |
} | |
function An(e, t) { | |
return e ^ t + 2654435769 + (e << 6) + (e >> 2) | 0 | |
} | |
var an = Array.prototype.slice; | |
e(n, t), e(o, t), e(l, t), t.isIterable = r, t.isKeyed = i, t.isIndexed = A, t.isAssociative = a, t.isOrdered = s, t.Keyed = n, t.Indexed = o, t.Set = l; | |
var sn = "@@__IMMUTABLE_ITERABLE__@@", | |
un = "@@__IMMUTABLE_KEYED__@@", | |
cn = "@@__IMMUTABLE_INDEXED__@@", | |
gn = "@@__IMMUTABLE_ORDERED__@@", | |
hn = 5, | |
dn = 1 << hn, | |
fn = dn - 1, | |
pn = {}, | |
mn = { | |
value: !1 | |
}, | |
Bn = { | |
value: !1 | |
}, | |
En = 0, | |
yn = 1, | |
Cn = 2, | |
wn = "function" == typeof Symbol && Symbol.iterator, | |
In = "@@iterator", | |
bn = wn || In; | |
C.prototype.toString = function() { | |
return "[Iterator]" | |
}, C.KEYS = En, C.VALUES = yn, C.ENTRIES = Cn, C.prototype.inspect = C.prototype.toSource = function() { | |
return this.toString() | |
}, C.prototype[bn] = function() { | |
return this | |
}, e(k, t), k.of = function() { | |
return k(arguments) | |
}, k.prototype.toSeq = function() { | |
return this | |
}, k.prototype.toString = function() { | |
return this.__toString("Seq {", "}") | |
}, k.prototype.cacheResult = function() { | |
return !this._cache && this.__iterateUncached && (this._cache = this.entrySeq().toArray(), this.size = this._cache.length), this | |
}, k.prototype.__iterate = function(e, t) { | |
return j(this, e, t, !0) | |
}, k.prototype.__iterator = function(e, t) { | |
return J(this, e, t, !0) | |
}, e(S, k), S.prototype.toKeyedSeq = function() { | |
return this | |
}, e(F, k), F.of = function() { | |
return F(arguments) | |
}, F.prototype.toIndexedSeq = function() { | |
return this | |
}, F.prototype.toString = function() { | |
return this.__toString("Seq [", "]") | |
}, F.prototype.__iterate = function(e, t) { | |
return j(this, e, t, !1) | |
}, F.prototype.__iterator = function(e, t) { | |
return J(this, e, t, !1) | |
}, e(Y, k), Y.of = function() { | |
return Y(arguments) | |
}, Y.prototype.toSetSeq = function() { | |
return this | |
}, k.isSeq = N, k.Keyed = S, k.Set = Y, k.Indexed = F; | |
var vn = "@@__IMMUTABLE_SEQ__@@"; | |
k.prototype[vn] = !0, e(x, F), x.prototype.get = function(e, t) { | |
return this.has(e) ? this._array[f(this, e)] : t | |
}, x.prototype.__iterate = function(e, t) { | |
for (var n = this._array, o = n.length - 1, l = 0; l <= o; l++) | |
if (!1 === e(n[t ? o - l : l], l, this)) return l + 1; | |
return l | |
}, x.prototype.__iterator = function(e, t) { | |
var n = this._array, | |
o = n.length - 1, | |
l = 0; | |
return new C(function() { | |
return l > o ? I() : w(e, l, n[t ? o - l++ : l++]) | |
}) | |
}, e(R, S), R.prototype.get = function(e, t) { | |
return void 0 === t || this.has(e) ? this._object[e] : t | |
}, R.prototype.has = function(e) { | |
return this._object.hasOwnProperty(e) | |
}, R.prototype.__iterate = function(e, t) { | |
for (var n = this._object, o = this._keys, l = o.length - 1, r = 0; r <= l; r++) { | |
var i = o[t ? l - r : r]; | |
if (!1 === e(n[i], i, this)) return r + 1 | |
} | |
return r | |
}, R.prototype.__iterator = function(e, t) { | |
var n = this._object, | |
o = this._keys, | |
l = o.length - 1, | |
r = 0; | |
return new C(function() { | |
var i = o[t ? l - r : r]; | |
return r++ > l ? I() : w(e, i, n[i]) | |
}) | |
}, R.prototype[gn] = !0, e(U, F), U.prototype.__iterateUncached = function(e, t) { | |
if (t) return this.cacheResult().__iterate(e, t); | |
var n = this._iterable, | |
o = M(n), | |
l = 0; | |
if (v(o)) | |
for (var r; !(r = o.next()).done && !1 !== e(r.value, l++, this);); | |
return l | |
}, U.prototype.__iteratorUncached = function(e, t) { | |
if (t) return this.cacheResult().__iterator(e, t); | |
var n = this._iterable, | |
o = M(n); | |
if (!v(o)) return new C(I); | |
var l = 0; | |
return new C(function() { | |
var t = o.next(); | |
return t.done ? t : w(e, l++, t.value) | |
}) | |
}, e(T, F), T.prototype.__iterateUncached = function(e, t) { | |
if (t) return this.cacheResult().__iterate(e, t); | |
for (var n = this._iterator, o = this._iteratorCache, l = 0; l < o.length;) | |
if (!1 === e(o[l], l++, this)) return l; | |
for (var r; !(r = n.next()).done;) { | |
var i = r.value; | |
if (o[l] = i, !1 === e(i, l++, this)) break | |
} | |
return l | |
}, T.prototype.__iteratorUncached = function(e, t) { | |
if (t) return this.cacheResult().__iterator(e, t); | |
var n = this._iterator, | |
o = this._iteratorCache, | |
l = 0; | |
return new C(function() { | |
if (l >= o.length) { | |
var t = n.next(); | |
if (t.done) return t; | |
o[l] = t.value | |
} | |
return w(e, l, o[l++]) | |
}) | |
}; | |
var Mn; | |
e(_, F), _.prototype.toString = function() { | |
return 0 === this.size ? "Repeat []" : "Repeat [ " + this._value + " " + this.size + " times ]" | |
}, _.prototype.get = function(e, t) { | |
return this.has(e) ? this._value : t | |
}, _.prototype.includes = function(e) { | |
return q(this._value, e) | |
}, _.prototype.slice = function(e, t) { | |
var n = this.size; | |
return m(e, t, n) ? this : new _(this._value, E(t, n) - B(e, n)) | |
}, _.prototype.reverse = function() { | |
return this | |
}, _.prototype.indexOf = function(e) { | |
return q(this._value, e) ? 0 : -1 | |
}, _.prototype.lastIndexOf = function(e) { | |
return q(this._value, e) ? this.size : -1 | |
}, _.prototype.__iterate = function(e, t) { | |
for (var n = 0; n < this.size; n++) | |
if (!1 === e(this._value, n, this)) return n + 1; | |
return n | |
}, _.prototype.__iterator = function(e, t) { | |
var n = this, | |
o = 0; | |
return new C(function() { | |
return o < n.size ? w(e, o++, n._value) : I() | |
}) | |
}, _.prototype.equals = function(e) { | |
return e instanceof _ ? q(this._value, e._value) : Z(e) | |
}; | |
var Qn; | |
e($, F), $.prototype.toString = function() { | |
return 0 === this.size ? "Range []" : "Range [ " + this._start + "..." + this._end + (1 !== this._step ? " by " + this._step : "") + " ]" | |
}, $.prototype.get = function(e, t) { | |
return this.has(e) ? this._start + f(this, e) * this._step : t | |
}, $.prototype.includes = function(e) { | |
var t = (e - this._start) / this._step; | |
return t >= 0 && t < this.size && t === Math.floor(t) | |
}, $.prototype.slice = function(e, t) { | |
return m(e, t, this.size) ? this : (e = B(e, this.size), t = E(t, this.size), t <= e ? new $(0, 0) : new $(this.get(e, this._end), this.get(t, this._end), this._step)) | |
}, $.prototype.indexOf = function(e) { | |
var t = e - this._start; | |
if (t % this._step == 0) { | |
var n = t / this._step; | |
if (n >= 0 && n < this.size) return n | |
} | |
return -1 | |
}, $.prototype.lastIndexOf = function(e) { | |
return this.indexOf(e) | |
}, $.prototype.__iterate = function(e, t) { | |
for (var n = this.size - 1, o = this._step, l = t ? this._start + n * o : this._start, r = 0; r <= n; r++) { | |
if (!1 === e(l, r, this)) return r + 1; | |
l += t ? -o : o | |
} | |
return r | |
}, $.prototype.__iterator = function(e, t) { | |
var n = this.size - 1, | |
o = this._step, | |
l = t ? this._start + n * o : this._start, | |
r = 0; | |
return new C(function() { | |
var i = l; | |
return l += t ? -o : o, r > n ? I() : w(e, r++, i) | |
}) | |
}, $.prototype.equals = function(e) { | |
return e instanceof $ ? this._start === e._start && this._end === e._end && this._step === e._step : Z(this, e) | |
}; | |
var Dn; | |
e(ee, t), e(te, ee), e(ne, ee), e(oe, ee), ee.Keyed = te, ee.Indexed = ne, ee.Set = oe; | |
var kn, Sn = "function" == typeof Math.imul && -2 === Math.imul(4294967295, 2) ? Math.imul : function(e, t) { | |
e |= 0, t |= 0; | |
var n = 65535 & e, | |
o = 65535 & t; | |
return n * o + ((e >>> 16) * o + n * (t >>> 16) << 16 >>> 0) | 0 | |
}, | |
Fn = Object.isExtensible, | |
Yn = function() { | |
try { | |
return Object.defineProperty({}, "@", {}), !0 | |
} catch (e) { | |
return !1 | |
} | |
}(), | |
xn = "function" == typeof WeakMap; | |
xn && (kn = new WeakMap); | |
var Rn = 0, | |
Un = "__immutablehash__"; | |
"function" == typeof Symbol && (Un = Symbol(Un)); | |
var Tn = 16, | |
Nn = 255, | |
Gn = 0, | |
Ln = {}; | |
e(ce, te), ce.of = function() { | |
var e = an.call(arguments, 0); | |
return we().withMutations(function(t) { | |
for (var n = 0; n < e.length; n += 2) { | |
if (n + 1 >= e.length) throw new Error("Missing value for key: " + e[n]); | |
t.set(e[n], e[n + 1]) | |
} | |
}) | |
}, ce.prototype.toString = function() { | |
return this.__toString("Map {", "}") | |
}, ce.prototype.get = function(e, t) { | |
return this._root ? this._root.get(0, void 0, e, t) : t | |
}, ce.prototype.set = function(e, t) { | |
return Ie(this, e, t) | |
}, ce.prototype.setIn = function(e, t) { | |
return this.updateIn(e, pn, function() { | |
return t | |
}) | |
}, ce.prototype.remove = function(e) { | |
return Ie(this, e, pn) | |
}, ce.prototype.deleteIn = function(e) { | |
return this.updateIn(e, function() { | |
return pn | |
}) | |
}, ce.prototype.update = function(e, t, n) { | |
return 1 === arguments.length ? e(this) : this.updateIn([e], t, n) | |
}, ce.prototype.updateIn = function(e, t, n) { | |
n || (n = t, t = void 0); | |
var o = Re(this, Ft(e), t, n); | |
return o === pn ? void 0 : o | |
}, ce.prototype.clear = function() { | |
return 0 === this.size ? this : this.__ownerID ? (this.size = 0, this._root = null, this.__hash = void 0, this.__altered = !0, this) : we() | |
}, ce.prototype.merge = function() { | |
return Se(this, void 0, arguments) | |
}, ce.prototype.mergeWith = function(e) { | |
return Se(this, e, an.call(arguments, 1)) | |
}, ce.prototype.mergeIn = function(e) { | |
var t = an.call(arguments, 1); | |
return this.updateIn(e, we(), function(e) { | |
return "function" == typeof e.merge ? e.merge.apply(e, t) : t[t.length - 1] | |
}) | |
}, ce.prototype.mergeDeep = function() { | |
return Se(this, Fe, arguments) | |
}, ce.prototype.mergeDeepWith = function(e) { | |
var t = an.call(arguments, 1); | |
return Se(this, Ye(e), t) | |
}, ce.prototype.mergeDeepIn = function(e) { | |
var t = an.call(arguments, 1); | |
return this.updateIn(e, we(), function(e) { | |
return "function" == typeof e.mergeDeep ? e.mergeDeep.apply(e, t) : t[t.length - 1] | |
}) | |
}, ce.prototype.sort = function(e) { | |
return Xe(yt(this, e)) | |
}, ce.prototype.sortBy = function(e, t) { | |
return Xe(yt(this, t, e)) | |
}, ce.prototype.withMutations = function(e) { | |
var t = this.asMutable(); | |
return e(t), t.wasAltered() ? t.__ensureOwner(this.__ownerID) : this | |
}, ce.prototype.asMutable = function() { | |
return this.__ownerID ? this : this.__ensureOwner(new g) | |
}, ce.prototype.asImmutable = function() { | |
return this.__ensureOwner() | |
}, ce.prototype.wasAltered = function() { | |
return this.__altered | |
}, ce.prototype.__iterator = function(e, t) { | |
return new Be(this, e, t) | |
}, ce.prototype.__iterate = function(e, t) { | |
var n = this, | |
o = 0; | |
return this._root && this._root.iterate(function(t) { | |
return o++, e(t[1], t[0], n) | |
}, t), o | |
}, ce.prototype.__ensureOwner = function(e) { | |
return e === this.__ownerID ? this : e ? Ce(this.size, this._root, e, this.__hash) : (this.__ownerID = e, this.__altered = !1, this) | |
}, ce.isMap = ge; | |
var On = "@@__IMMUTABLE_MAP__@@", | |
Pn = ce.prototype; | |
Pn[On] = !0, Pn.delete = Pn.remove, Pn.removeIn = Pn.deleteIn, he.prototype.get = function(e, t, n, o) { | |
for (var l = this.entries, r = 0, i = l.length; r < i; r++) | |
if (q(n, l[r][0])) return l[r][1]; | |
return o | |
}, he.prototype.update = function(e, t, n, o, l, r, i) { | |
for (var A = l === pn, a = this.entries, s = 0, u = a.length; s < u && !q(o, a[s][0]); s++); | |
var g = s < u; | |
if (g ? a[s][1] === l : A) return this; | |
if (c(i), (A || !g) && c(r), !A || 1 !== a.length) { | |
if (!g && !A && a.length >= jn) return Qe(e, a, o, l); | |
var d = e && e === this.ownerID, | |
f = d ? a : h(a); | |
return g ? A ? s === u - 1 ? f.pop() : f[s] = f.pop() : f[s] = [o, l] : f.push([o, l]), d ? (this.entries = f, this) : new he(e, f) | |
} | |
}, de.prototype.get = function(e, t, n, o) { | |
void 0 === t && (t = re(n)); | |
var l = 1 << ((0 === e ? t : t >>> e) & fn), | |
r = this.bitmap; | |
return 0 == (r & l) ? o : this.nodes[Ue(r & l - 1)].get(e + hn, t, n, o) | |
}, de.prototype.update = function(e, t, n, o, l, r, i) { | |
void 0 === n && (n = re(o)); | |
var A = (0 === t ? n : n >>> t) & fn, | |
a = 1 << A, | |
s = this.bitmap, | |
u = 0 != (s & a); | |
if (!u && l === pn) return this; | |
var c = Ue(s & a - 1), | |
g = this.nodes, | |
h = u ? g[c] : void 0, | |
d = be(h, e, t + hn, n, o, l, r, i); | |
if (d === h) return this; | |
if (!u && d && g.length >= Jn) return ke(e, g, s, A, d); | |
if (u && !d && 2 === g.length && ve(g[1 ^ c])) return g[1 ^ c]; | |
if (u && d && 1 === g.length && ve(d)) return d; | |
var f = e && e === this.ownerID, | |
p = u ? d ? s : s ^ a : s | a, | |
m = u ? d ? Te(g, c, d, f) : Ge(g, c, f) : Ne(g, c, d, f); | |
return f ? (this.bitmap = p, this.nodes = m, this) : new de(e, p, m) | |
}, fe.prototype.get = function(e, t, n, o) { | |
void 0 === t && (t = re(n)); | |
var l = (0 === e ? t : t >>> e) & fn, | |
r = this.nodes[l]; | |
return r ? r.get(e + hn, t, n, o) : o | |
}, fe.prototype.update = function(e, t, n, o, l, r, i) { | |
void 0 === n && (n = re(o)); | |
var A = (0 === t ? n : n >>> t) & fn, | |
a = l === pn, | |
s = this.nodes, | |
u = s[A]; | |
if (a && !u) return this; | |
var c = be(u, e, t + hn, n, o, l, r, i); | |
if (c === u) return this; | |
var g = this.count; | |
if (u) { | |
if (!c && --g < Vn) return De(e, s, g, A) | |
} else g++; | |
var h = e && e === this.ownerID, | |
d = Te(s, A, c, h); | |
return h ? (this.count = g, this.nodes = d, this) : new fe(e, g, d) | |
}, pe.prototype.get = function(e, t, n, o) { | |
for (var l = this.entries, r = 0, i = l.length; r < i; r++) | |
if (q(n, l[r][0])) return l[r][1]; | |
return o | |
}, pe.prototype.update = function(e, t, n, o, l, r, i) { | |
void 0 === n && (n = re(o)); | |
var A = l === pn; | |
if (n !== this.keyHash) return A ? this : (c(i), c(r), Me(this, e, t, n, [o, l])); | |
for (var a = this.entries, s = 0, u = a.length; s < u && !q(o, a[s][0]); s++); | |
var g = s < u; | |
if (g ? a[s][1] === l : A) return this; | |
if (c(i), (A || !g) && c(r), A && 2 === u) return new me(e, this.keyHash, a[1 ^ s]); | |
var d = e && e === this.ownerID, | |
f = d ? a : h(a); | |
return g ? A ? s === u - 1 ? f.pop() : f[s] = f.pop() : f[s] = [o, l] : f.push([o, l]), d ? (this.entries = f, this) : new pe(e, this.keyHash, f) | |
}, me.prototype.get = function(e, t, n, o) { | |
return q(n, this.entry[0]) ? this.entry[1] : o | |
}, me.prototype.update = function(e, t, n, o, l, r, i) { | |
var A = l === pn, | |
a = q(o, this.entry[0]); | |
return (a ? l === this.entry[1] : A) ? this : (c(i), A ? void c(r) : a ? e && e === this.ownerID ? (this.entry[1] = l, this) : new me(e, this.keyHash, [o, l]) : (c(r), Me(this, e, t, re(o), [o, l]))) | |
}, he.prototype.iterate = pe.prototype.iterate = function(e, t) { | |
for (var n = this.entries, o = 0, l = n.length - 1; o <= l; o++) | |
if (!1 === e(n[t ? l - o : o])) return !1 | |
}, de.prototype.iterate = fe.prototype.iterate = function(e, t) { | |
for (var n = this.nodes, o = 0, l = n.length - 1; o <= l; o++) { | |
var r = n[t ? l - o : o]; | |
if (r && !1 === r.iterate(e, t)) return !1 | |
} | |
}, me.prototype.iterate = function(e, t) { | |
return e(this.entry) | |
}, e(Be, C), Be.prototype.next = function() { | |
for (var e = this._type, t = this._stack; t;) { | |
var n, o = t.node, | |
l = t.index++; | |
if (o.entry) { | |
if (0 === l) return Ee(e, o.entry) | |
} else if (o.entries) { | |
if (n = o.entries.length - 1, l <= n) return Ee(e, o.entries[this._reverse ? n - l : l]) | |
} else if (n = o.nodes.length - 1, l <= n) { | |
var r = o.nodes[this._reverse ? n - l : l]; | |
if (r) { | |
if (r.entry) return Ee(e, r.entry); | |
t = this._stack = ye(r, t) | |
} | |
continue | |
} | |
t = this._stack = this._stack.__prev | |
} | |
return I() | |
}; | |
var Hn, jn = dn / 4, | |
Jn = dn / 2, | |
Vn = dn / 4; | |
e(Le, ne), Le.of = function() { | |
return this(arguments) | |
}, Le.prototype.toString = function() { | |
return this.__toString("List [", "]") | |
}, Le.prototype.get = function(e, t) { | |
if ((e = f(this, e)) >= 0 && e < this.size) { | |
e += this._origin; | |
var n = Ke(this, e); | |
return n && n.array[e & fn] | |
} | |
return t | |
}, Le.prototype.set = function(e, t) { | |
return Ve(this, e, t) | |
}, Le.prototype.remove = function(e) { | |
return this.has(e) ? 0 === e ? this.shift() : e === this.size - 1 ? this.pop() : this.splice(e, 1) : this | |
}, Le.prototype.insert = function(e, t) { | |
return this.splice(e, 0, t) | |
}, Le.prototype.clear = function() { | |
return 0 === this.size ? this : this.__ownerID ? (this.size = this._origin = this._capacity = 0, this._level = hn, this._root = this._tail = null, this.__hash = void 0, this.__altered = !0, this) : Je() | |
}, Le.prototype.push = function() { | |
var e = arguments, | |
t = this.size; | |
return this.withMutations(function(n) { | |
qe(n, 0, t + e.length); | |
for (var o = 0; o < e.length; o++) n.set(t + o, e[o]) | |
}) | |
}, Le.prototype.pop = function() { | |
return qe(this, 0, -1) | |
}, Le.prototype.unshift = function() { | |
var e = arguments; | |
return this.withMutations(function(t) { | |
qe(t, -e.length); | |
for (var n = 0; n < e.length; n++) t.set(n, e[n]) | |
}) | |
}, Le.prototype.shift = function() { | |
return qe(this, 1) | |
}, Le.prototype.merge = function() { | |
return Ze(this, void 0, arguments) | |
}, Le.prototype.mergeWith = function(e) { | |
return Ze(this, e, an.call(arguments, 1)) | |
}, Le.prototype.mergeDeep = function() { | |
return Ze(this, Fe, arguments) | |
}, Le.prototype.mergeDeepWith = function(e) { | |
var t = an.call(arguments, 1); | |
return Ze(this, Ye(e), t) | |
}, Le.prototype.setSize = function(e) { | |
return qe(this, 0, e) | |
}, Le.prototype.slice = function(e, t) { | |
var n = this.size; | |
return m(e, t, n) ? this : qe(this, B(e, n), E(t, n)) | |
}, Le.prototype.__iterator = function(e, t) { | |
var n = 0, | |
o = He(this, t); | |
return new C(function() { | |
var t = o(); | |
return t === qn ? I() : w(e, n++, t) | |
}) | |
}, Le.prototype.__iterate = function(e, t) { | |
for (var n, o = 0, l = He(this, t); | |
(n = l()) !== qn && !1 !== e(n, o++, this);); | |
return o | |
}, Le.prototype.__ensureOwner = function(e) { | |
return e === this.__ownerID ? this : e ? je(this._origin, this._capacity, this._level, this._root, this._tail, e, this.__hash) : (this.__ownerID = e, this) | |
}, Le.isList = Oe; | |
var zn = "@@__IMMUTABLE_LIST__@@", | |
Wn = Le.prototype; | |
Wn[zn] = !0, Wn.delete = Wn.remove, Wn.setIn = Pn.setIn, Wn.deleteIn = Wn.removeIn = Pn.removeIn, Wn.update = Pn.update, Wn.updateIn = Pn.updateIn, Wn.mergeIn = Pn.mergeIn, Wn.mergeDeepIn = Pn.mergeDeepIn, Wn.withMutations = Pn.withMutations, Wn.asMutable = Pn.asMutable, Wn.asImmutable = Pn.asImmutable, Wn.wasAltered = Pn.wasAltered, Pe.prototype.removeBefore = function(e, t, n) { | |
if (n === t ? 1 << t : 0 === this.array.length) return this; | |
var o = n >>> t & fn; | |
if (o >= this.array.length) return new Pe([], e); | |
var l, r = 0 === o; | |
if (t > 0) { | |
var i = this.array[o]; | |
if ((l = i && i.removeBefore(e, t - hn, n)) === i && r) return this | |
} | |
if (r && !l) return this; | |
var A = We(this, e); | |
if (!r) | |
for (var a = 0; a < o; a++) A.array[a] = void 0; | |
return l && (A.array[o] = l), A | |
}, Pe.prototype.removeAfter = function(e, t, n) { | |
if (n === (t ? 1 << t : 0) || 0 === this.array.length) return this; | |
var o = n - 1 >>> t & fn; | |
if (o >= this.array.length) return this; | |
var l; | |
if (t > 0) { | |
var r = this.array[o]; | |
if ((l = r && r.removeAfter(e, t - hn, n)) === r && o === this.array.length - 1) return this | |
} | |
var i = We(this, e); | |
return i.array.splice(o + 1), l && (i.array[o] = l), i | |
}; | |
var Kn, qn = {}; | |
e(Xe, ce), Xe.of = function() { | |
return this(arguments) | |
}, Xe.prototype.toString = function() { | |
return this.__toString("OrderedMap {", "}") | |
}, Xe.prototype.get = function(e, t) { | |
var n = this._map.get(e); | |
return void 0 !== n ? this._list.get(n)[1] : t | |
}, Xe.prototype.clear = function() { | |
return 0 === this.size ? this : this.__ownerID ? (this.size = 0, this._map.clear(), this._list.clear(), this) : tt() | |
}, Xe.prototype.set = function(e, t) { | |
return nt(this, e, t) | |
}, Xe.prototype.remove = function(e) { | |
return nt(this, e, pn) | |
}, Xe.prototype.wasAltered = function() { | |
return this._map.wasAltered() || this._list.wasAltered() | |
}, Xe.prototype.__iterate = function(e, t) { | |
var n = this; | |
return this._list.__iterate(function(t) { | |
return t && e(t[1], t[0], n) | |
}, t) | |
}, Xe.prototype.__iterator = function(e, t) { | |
return this._list.fromEntrySeq().__iterator(e, t) | |
}, Xe.prototype.__ensureOwner = function(e) { | |
if (e === this.__ownerID) return this; | |
var t = this._map.__ensureOwner(e), | |
n = this._list.__ensureOwner(e); | |
return e ? et(t, n, e, this.__hash) : (this.__ownerID = e, this._map = t, this._list = n, this) | |
}, Xe.isOrderedMap = $e, Xe.prototype[gn] = !0, Xe.prototype.delete = Xe.prototype.remove; | |
var Zn; | |
e(ot, S), ot.prototype.get = function(e, t) { | |
return this._iter.get(e, t) | |
}, ot.prototype.has = function(e) { | |
return this._iter.has(e) | |
}, ot.prototype.valueSeq = function() { | |
return this._iter.valueSeq() | |
}, ot.prototype.reverse = function() { | |
var e = this, | |
t = st(this, !0); | |
return this._useKeys || (t.valueSeq = function() { | |
return e._iter.toSeq().reverse() | |
}), t | |
}, ot.prototype.map = function(e, t) { | |
var n = this, | |
o = at(this, e, t); | |
return this._useKeys || (o.valueSeq = function() { | |
return n._iter.toSeq().map(e, t) | |
}), o | |
}, ot.prototype.__iterate = function(e, t) { | |
var n, o = this; | |
return this._iter.__iterate(this._useKeys ? function(t, n) { | |
return e(t, n, o) | |
} : (n = t ? Mt(this) : 0, function(l) { | |
return e(l, t ? --n : n++, o) | |
}), t) | |
}, ot.prototype.__iterator = function(e, t) { | |
if (this._useKeys) return this._iter.__iterator(e, t); | |
var n = this._iter.__iterator(yn, t), | |
o = t ? Mt(this) : 0; | |
return new C(function() { | |
var l = n.next(); | |
return l.done ? l : w(e, t ? --o : o++, l.value, l) | |
}) | |
}, ot.prototype[gn] = !0, e(lt, F), lt.prototype.includes = function(e) { | |
return this._iter.includes(e) | |
}, lt.prototype.__iterate = function(e, t) { | |
var n = this, | |
o = 0; | |
return this._iter.__iterate(function(t) { | |
return e(t, o++, n) | |
}, t) | |
}, lt.prototype.__iterator = function(e, t) { | |
var n = this._iter.__iterator(yn, t), | |
o = 0; | |
return new C(function() { | |
var t = n.next(); | |
return t.done ? t : w(e, o++, t.value, t) | |
}) | |
}, e(rt, Y), rt.prototype.has = function(e) { | |
return this._iter.includes(e) | |
}, rt.prototype.__iterate = function(e, t) { | |
var n = this; | |
return this._iter.__iterate(function(t) { | |
return e(t, t, n) | |
}, t) | |
}, rt.prototype.__iterator = function(e, t) { | |
var n = this._iter.__iterator(yn, t); | |
return new C(function() { | |
var t = n.next(); | |
return t.done ? t : w(e, t.value, t.value, t) | |
}) | |
}, e(it, S), it.prototype.entrySeq = function() { | |
return this._iter.toSeq() | |
}, it.prototype.__iterate = function(e, t) { | |
var n = this; | |
return this._iter.__iterate(function(t) { | |
if (t) { | |
vt(t); | |
var o = r(t); | |
return e(o ? t.get(1) : t[1], o ? t.get(0) : t[0], n) | |
} | |
}, t) | |
}, it.prototype.__iterator = function(e, t) { | |
var n = this._iter.__iterator(yn, t); | |
return new C(function() { | |
for (;;) { | |
var t = n.next(); | |
if (t.done) return t; | |
var o = t.value; | |
if (o) { | |
vt(o); | |
var l = r(o); | |
return w(e, l ? o.get(0) : o[0], l ? o.get(1) : o[1], t) | |
} | |
} | |
}) | |
}, lt.prototype.cacheResult = ot.prototype.cacheResult = rt.prototype.cacheResult = it.prototype.cacheResult = kt, e(Yt, te), Yt.prototype.toString = function() { | |
return this.__toString(Rt(this) + " {", "}") | |
}, Yt.prototype.has = function(e) { | |
return this._defaultValues.hasOwnProperty(e) | |
}, Yt.prototype.get = function(e, t) { | |
if (!this.has(e)) return t; | |
var n = this._defaultValues[e]; | |
return this._map ? this._map.get(e, n) : n | |
}, Yt.prototype.clear = function() { | |
if (this.__ownerID) return this._map && this._map.clear(), this; | |
var e = this.constructor; | |
return e._empty || (e._empty = xt(this, we())) | |
}, Yt.prototype.set = function(e, t) { | |
if (!this.has(e)) throw new Error('Cannot set unknown key "' + e + '" on ' + Rt(this)); | |
if (this._map && !this._map.has(e)) { | |
if (t === this._defaultValues[e]) return this | |
} | |
var n = this._map && this._map.set(e, t); | |
return this.__ownerID || n === this._map ? this : xt(this, n) | |
}, Yt.prototype.remove = function(e) { | |
if (!this.has(e)) return this; | |
var t = this._map && this._map.remove(e); | |
return this.__ownerID || t === this._map ? this : xt(this, t) | |
}, Yt.prototype.wasAltered = function() { | |
return this._map.wasAltered() | |
}, Yt.prototype.__iterator = function(e, t) { | |
var o = this; | |
return n(this._defaultValues).map(function(e, t) { | |
return o.get(t) | |
}).__iterator(e, t) | |
}, Yt.prototype.__iterate = function(e, t) { | |
var o = this; | |
return n(this._defaultValues).map(function(e, t) { | |
return o.get(t) | |
}).__iterate(e, t) | |
}, Yt.prototype.__ensureOwner = function(e) { | |
if (e === this.__ownerID) return this; | |
var t = this._map && this._map.__ensureOwner(e); | |
return e ? xt(this, t, e) : (this.__ownerID = e, this._map = t, this) | |
}; | |
var _n = Yt.prototype; | |
_n.delete = _n.remove, _n.deleteIn = _n.removeIn = Pn.removeIn, _n.merge = Pn.merge, _n.mergeWith = Pn.mergeWith, _n.mergeIn = Pn.mergeIn, _n.mergeDeep = Pn.mergeDeep, _n.mergeDeepWith = Pn.mergeDeepWith, _n.mergeDeepIn = Pn.mergeDeepIn, _n.setIn = Pn.setIn, _n.update = Pn.update, _n.updateIn = Pn.updateIn, _n.withMutations = Pn.withMutations, _n.asMutable = Pn.asMutable, _n.asImmutable = Pn.asImmutable, e(Nt, oe), Nt.of = function() { | |
return this(arguments) | |
}, Nt.fromKeys = function(e) { | |
return this(n(e).keySeq()) | |
}, Nt.prototype.toString = function() { | |
return this.__toString("Set {", "}") | |
}, Nt.prototype.has = function(e) { | |
return this._map.has(e) | |
}, Nt.prototype.add = function(e) { | |
return Lt(this, this._map.set(e, !0)) | |
}, Nt.prototype.remove = function(e) { | |
return Lt(this, this._map.remove(e)) | |
}, Nt.prototype.clear = function() { | |
return Lt(this, this._map.clear()) | |
}, Nt.prototype.union = function() { | |
var e = an.call(arguments, 0); | |
return e = e.filter(function(e) { | |
return 0 !== e.size | |
}), 0 === e.length ? this : 0 !== this.size || this.__ownerID || 1 !== e.length ? this.withMutations(function(t) { | |
for (var n = 0; n < e.length; n++) l(e[n]).forEach(function(e) { | |
return t.add(e) | |
}) | |
}) : this.constructor(e[0]) | |
}, Nt.prototype.intersect = function() { | |
var e = an.call(arguments, 0); | |
if (0 === e.length) return this; | |
e = e.map(function(e) { | |
return l(e) | |
}); | |
var t = this; | |
return this.withMutations(function(n) { | |
t.forEach(function(t) { | |
e.every(function(e) { | |
return e.includes(t) | |
}) || n.remove(t) | |
}) | |
}) | |
}, Nt.prototype.subtract = function() { | |
var e = an.call(arguments, 0); | |
if (0 === e.length) return this; | |
e = e.map(function(e) { | |
return l(e) | |
}); | |
var t = this; | |
return this.withMutations(function(n) { | |
t.forEach(function(t) { | |
e.some(function(e) { | |
return e.includes(t) | |
}) && n.remove(t) | |
}) | |
}) | |
}, Nt.prototype.merge = function() { | |
return this.union.apply(this, arguments) | |
}, Nt.prototype.mergeWith = function(e) { | |
var t = an.call(arguments, 1); | |
return this.union.apply(this, t) | |
}, Nt.prototype.sort = function(e) { | |
return Ht(yt(this, e)) | |
}, Nt.prototype.sortBy = function(e, t) { | |
return Ht(yt(this, t, e)) | |
}, Nt.prototype.wasAltered = function() { | |
return this._map.wasAltered() | |
}, Nt.prototype.__iterate = function(e, t) { | |
var n = this; | |
return this._map.__iterate(function(t, o) { | |
return e(o, o, n) | |
}, t) | |
}, Nt.prototype.__iterator = function(e, t) { | |
return this._map.map(function(e, t) { | |
return t | |
}).__iterator(e, t) | |
}, Nt.prototype.__ensureOwner = function(e) { | |
if (e === this.__ownerID) return this; | |
var t = this._map.__ensureOwner(e); | |
return e ? this.__make(t, e) : (this.__ownerID = e, this._map = t, this) | |
}, Nt.isSet = Gt; | |
var Xn = "@@__IMMUTABLE_SET__@@", | |
$n = Nt.prototype; | |
$n[Xn] = !0, $n.delete = $n.remove, $n.mergeDeep = $n.merge, $n.mergeDeepWith = $n.mergeWith, $n.withMutations = Pn.withMutations, $n.asMutable = Pn.asMutable, $n.asImmutable = Pn.asImmutable, $n.__empty = Pt, $n.__make = Ot; | |
var eo; | |
e(Ht, Nt), Ht.of = function() { | |
return this(arguments) | |
}, Ht.fromKeys = function(e) { | |
return this(n(e).keySeq()) | |
}, Ht.prototype.toString = function() { | |
return this.__toString("OrderedSet {", "}") | |
}, Ht.isOrderedSet = jt; | |
var to = Ht.prototype; | |
to[gn] = !0, to.__empty = Vt, to.__make = Jt; | |
var no; | |
e(zt, ne), zt.of = function() { | |
return this(arguments) | |
}, zt.prototype.toString = function() { | |
return this.__toString("Stack [", "]") | |
}, zt.prototype.get = function(e, t) { | |
var n = this._head; | |
for (e = f(this, e); n && e--;) n = n.next; | |
return n ? n.value : t | |
}, zt.prototype.peek = function() { | |
return this._head && this._head.value | |
}, zt.prototype.push = function() { | |
if (0 === arguments.length) return this; | |
for (var e = this.size + arguments.length, t = this._head, n = arguments.length - 1; n >= 0; n--) t = { | |
value: arguments[n], | |
next: t | |
}; | |
return this.__ownerID ? (this.size = e, this._head = t, this.__hash = void 0, this.__altered = !0, this) : Kt(e, t) | |
}, zt.prototype.pushAll = function(e) { | |
if (e = o(e), 0 === e.size) return this; | |
ue(e.size); | |
var t = this.size, | |
n = this._head; | |
return e.reverse().forEach(function(e) { | |
t++, n = { | |
value: e, | |
next: n | |
} | |
}), this.__ownerID ? (this.size = t, this._head = n, this.__hash = void 0, this.__altered = !0, this) : Kt(t, n) | |
}, zt.prototype.pop = function() { | |
return this.slice(1) | |
}, zt.prototype.unshift = function() { | |
return this.push.apply(this, arguments) | |
}, zt.prototype.unshiftAll = function(e) { | |
return this.pushAll(e) | |
}, zt.prototype.shift = function() { | |
return this.pop.apply(this, arguments) | |
}, zt.prototype.clear = function() { | |
return 0 === this.size ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : qt() | |
}, zt.prototype.slice = function(e, t) { | |
if (m(e, t, this.size)) return this; | |
var n = B(e, this.size); | |
if (E(t, this.size) !== this.size) return ne.prototype.slice.call(this, e, t); | |
for (var o = this.size - n, l = this._head; n--;) l = l.next; | |
return this.__ownerID ? (this.size = o, this._head = l, this.__hash = void 0, this.__altered = !0, this) : Kt(o, l) | |
}, zt.prototype.__ensureOwner = function(e) { | |
return e === this.__ownerID ? this : e ? Kt(this.size, this._head, e, this.__hash) : (this.__ownerID = e, this.__altered = !1, this) | |
}, zt.prototype.__iterate = function(e, t) { | |
if (t) return this.reverse().__iterate(e); | |
for (var n = 0, o = this._head; o && !1 !== e(o.value, n++, this);) o = o.next; | |
return n | |
}, zt.prototype.__iterator = function(e, t) { | |
if (t) return this.reverse().__iterator(e); | |
var n = 0, | |
o = this._head; | |
return new C(function() { | |
if (o) { | |
var t = o.value; | |
return o = o.next, w(e, n++, t) | |
} | |
return I() | |
}) | |
}, zt.isStack = Wt; | |
var oo = "@@__IMMUTABLE_STACK__@@", | |
lo = zt.prototype; | |
lo[oo] = !0, lo.withMutations = Pn.withMutations, lo.asMutable = Pn.asMutable, lo.asImmutable = Pn.asImmutable, lo.wasAltered = Pn.wasAltered; | |
var ro; | |
t.Iterator = C, Zt(t, { | |
toArray: function() { | |
ue(this.size); | |
var e = new Array(this.size || 0); | |
return this.valueSeq().__iterate(function(t, n) { | |
e[n] = t | |
}), e | |
}, | |
toIndexedSeq: function() { | |
return new lt(this) | |
}, | |
toJS: function() { | |
return this.toSeq().map(function(e) { | |
return e && "function" == typeof e.toJS ? e.toJS() : e | |
}).__toJS() | |
}, | |
toJSON: function() { | |
return this.toSeq().map(function(e) { | |
return e && "function" == typeof e.toJSON ? e.toJSON() : e | |
}).__toJS() | |
}, | |
toKeyedSeq: function() { | |
return new ot(this, !0) | |
}, | |
toMap: function() { | |
return ce(this.toKeyedSeq()) | |
}, | |
toObject: function() { | |
ue(this.size); | |
var e = {}; | |
return this.__iterate(function(t, n) { | |
e[n] = t | |
}), e | |
}, | |
toOrderedMap: function() { | |
return Xe(this.toKeyedSeq()) | |
}, | |
toOrderedSet: function() { | |
return Ht(i(this) ? this.valueSeq() : this) | |
}, | |
toSet: function() { | |
return Nt(i(this) ? this.valueSeq() : this) | |
}, | |
toSetSeq: function() { | |
return new rt(this) | |
}, | |
toSeq: function() { | |
return A(this) ? this.toIndexedSeq() : i(this) ? this.toKeyedSeq() : this.toSetSeq() | |
}, | |
toStack: function() { | |
return zt(i(this) ? this.valueSeq() : this) | |
}, | |
toList: function() { | |
return Le(i(this) ? this.valueSeq() : this) | |
}, | |
toString: function() { | |
return "[Iterable]" | |
}, | |
__toString: function(e, t) { | |
return 0 === this.size ? e + t : e + " " + this.toSeq().map(this.__toStringMapper).join(", ") + " " + t | |
}, | |
concat: function() { | |
return bt(this, pt(this, an.call(arguments, 0))) | |
}, | |
includes: function(e) { | |
return this.some(function(t) { | |
return q(t, e) | |
}) | |
}, | |
entries: function() { | |
return this.__iterator(Cn) | |
}, | |
every: function(e, t) { | |
ue(this.size); | |
var n = !0; | |
return this.__iterate(function(o, l, r) { | |
if (!e.call(t, o, l, r)) return n = !1, !1 | |
}), n | |
}, | |
filter: function(e, t) { | |
return bt(this, ut(this, e, t, !0)) | |
}, | |
find: function(e, t, n) { | |
var o = this.findEntry(e, t); | |
return o ? o[1] : n | |
}, | |
forEach: function(e, t) { | |
return ue(this.size), this.__iterate(t ? e.bind(t) : e) | |
}, | |
join: function(e) { | |
ue(this.size), e = void 0 !== e ? "" + e : ","; | |
var t = "", | |
n = !0; | |
return this.__iterate(function(o) { | |
n ? n = !1 : t += e, t += null !== o && void 0 !== o ? o.toString() : "" | |
}), t | |
}, | |
keys: function() { | |
return this.__iterator(En) | |
}, | |
map: function(e, t) { | |
return bt(this, at(this, e, t)) | |
}, | |
reduce: function(e, t, n) { | |
ue(this.size); | |
var o, l; | |
return arguments.length < 2 ? l = !0 : o = t, this.__iterate(function(t, r, i) { | |
l ? (l = !1, o = t) : o = e.call(n, o, t, r, i) | |
}), o | |
}, | |
reduceRight: function(e, t, n) { | |
var o = this.toKeyedSeq().reverse(); | |
return o.reduce.apply(o, arguments) | |
}, | |
reverse: function() { | |
return bt(this, st(this, !0)) | |
}, | |
slice: function(e, t) { | |
return bt(this, ht(this, e, t, !0)) | |
}, | |
some: function(e, t) { | |
return !this.every($t(e), t) | |
}, | |
sort: function(e) { | |
return bt(this, yt(this, e)) | |
}, | |
values: function() { | |
return this.__iterator(yn) | |
}, | |
butLast: function() { | |
return this.slice(0, -1) | |
}, | |
isEmpty: function() { | |
return void 0 !== this.size ? 0 === this.size : !this.some(function() { | |
return !0 | |
}) | |
}, | |
count: function(e, t) { | |
return d(e ? this.toSeq().filter(e, t) : this) | |
}, | |
countBy: function(e, t) { | |
return ct(this, e, t) | |
}, | |
equals: function(e) { | |
return Z(this, e) | |
}, | |
entrySeq: function() { | |
var e = this; | |
if (e._cache) return new x(e._cache); | |
var t = e.toSeq().map(Xt).toIndexedSeq(); | |
return t.fromEntrySeq = function() { | |
return e.toSeq() | |
}, t | |
}, | |
filterNot: function(e, t) { | |
return this.filter($t(e), t) | |
}, | |
findEntry: function(e, t, n) { | |
var o = n; | |
return this.__iterate(function(n, l, r) { | |
if (e.call(t, n, l, r)) return o = [l, n], !1 | |
}), o | |
}, | |
findKey: function(e, t) { | |
var n = this.findEntry(e, t); | |
return n && n[0] | |
}, | |
findLast: function(e, t, n) { | |
return this.toKeyedSeq().reverse().find(e, t, n) | |
}, | |
findLastEntry: function(e, t, n) { | |
return this.toKeyedSeq().reverse().findEntry(e, t, n) | |
}, | |
findLastKey: function(e, t) { | |
return this.toKeyedSeq().reverse().findKey(e, t) | |
}, | |
first: function() { | |
return this.find(p) | |
}, | |
flatMap: function(e, t) { | |
return bt(this, Bt(this, e, t)) | |
}, | |
flatten: function(e) { | |
return bt(this, mt(this, e, !0)) | |
}, | |
fromEntrySeq: function() { | |
return new it(this) | |
}, | |
get: function(e, t) { | |
return this.find(function(t, n) { | |
return q(n, e) | |
}, void 0, t) | |
}, | |
getIn: function(e, t) { | |
for (var n, o = this, l = Ft(e); !(n = l.next()).done;) { | |
var r = n.value; | |
if ((o = o && o.get ? o.get(r, pn) : pn) === pn) return t | |
} | |
return o | |
}, | |
groupBy: function(e, t) { | |
return gt(this, e, t) | |
}, | |
has: function(e) { | |
return this.get(e, pn) !== pn | |
}, | |
hasIn: function(e) { | |
return this.getIn(e, pn) !== pn | |
}, | |
isSubset: function(e) { | |
return e = "function" == typeof e.includes ? e : t(e), this.every(function(t) { | |
return e.includes(t) | |
}) | |
}, | |
isSuperset: function(e) { | |
return e = "function" == typeof e.isSubset ? e : t(e), e.isSubset(this) | |
}, | |
keyOf: function(e) { | |
return this.findKey(function(t) { | |
return q(t, e) | |
}) | |
}, | |
keySeq: function() { | |
return this.toSeq().map(_t).toIndexedSeq() | |
}, | |
last: function() { | |
return this.toSeq().reverse().first() | |
}, | |
lastKeyOf: function(e) { | |
return this.toKeyedSeq().reverse().keyOf(e) | |
}, | |
max: function(e) { | |
return Ct(this, e) | |
}, | |
maxBy: function(e, t) { | |
return Ct(this, t, e) | |
}, | |
min: function(e) { | |
return Ct(this, e ? en(e) : on) | |
}, | |
minBy: function(e, t) { | |
return Ct(this, t ? en(t) : on, e) | |
}, | |
rest: function() { | |
return this.slice(1) | |
}, | |
skip: function(e) { | |
return this.slice(Math.max(0, e)) | |
}, | |
skipLast: function(e) { | |
return bt(this, this.toSeq().reverse().skip(e).reverse()) | |
}, | |
skipWhile: function(e, t) { | |
return bt(this, ft(this, e, t, !0)) | |
}, | |
skipUntil: function(e, t) { | |
return this.skipWhile($t(e), t) | |
}, | |
sortBy: function(e, t) { | |
return bt(this, yt(this, t, e)) | |
}, | |
take: function(e) { | |
return this.slice(0, Math.max(0, e)) | |
}, | |
takeLast: function(e) { | |
return bt(this, this.toSeq().reverse().take(e).reverse()) | |
}, | |
takeWhile: function(e, t) { | |
return bt(this, dt(this, e, t)) | |
}, | |
takeUntil: function(e, t) { | |
return this.takeWhile($t(e), t) | |
}, | |
valueSeq: function() { | |
return this.toIndexedSeq() | |
}, | |
hashCode: function() { | |
return this.__hash || (this.__hash = ln(this)) | |
} | |
}); | |
var io = t.prototype; | |
io[sn] = !0, io[bn] = io.values, io.__toJS = io.toArray, io.__toStringMapper = tn, io.inspect = io.toSource = function() { | |
return this.toString() | |
}, io.chain = io.flatMap, io.contains = io.includes, Zt(n, { | |
flip: function() { | |
return bt(this, At(this)) | |
}, | |
mapEntries: function(e, t) { | |
var n = this, | |
o = 0; | |
return bt(this, this.toSeq().map(function(l, r) { | |
return e.call(t, [r, l], o++, n) | |
}).fromEntrySeq()) | |
}, | |
mapKeys: function(e, t) { | |
var n = this; | |
return bt(this, this.toSeq().flip().map(function(o, l) { | |
return e.call(t, o, l, n) | |
}).flip()) | |
} | |
}); | |
var Ao = n.prototype; | |
return Ao[un] = !0, Ao[bn] = io.entries, Ao.__toJS = io.toObject, Ao.__toStringMapper = function(e, t) { | |
return JSON.stringify(t) + ": " + tn(e) | |
}, Zt(o, { | |
toKeyedSeq: function() { | |
return new ot(this, !1) | |
}, | |
filter: function(e, t) { | |
return bt(this, ut(this, e, t, !1)) | |
}, | |
findIndex: function(e, t) { | |
var n = this.findEntry(e, t); | |
return n ? n[0] : -1 | |
}, | |
indexOf: function(e) { | |
var t = this.keyOf(e); | |
return void 0 === t ? -1 : t | |
}, | |
lastIndexOf: function(e) { | |
var t = this.lastKeyOf(e); | |
return void 0 === t ? -1 : t | |
}, | |
reverse: function() { | |
return bt(this, st(this, !1)) | |
}, | |
slice: function(e, t) { | |
return bt(this, ht(this, e, t, !1)) | |
}, | |
splice: function(e, t) { | |
var n = arguments.length; | |
if (t = Math.max(0 | t, 0), 0 === n || 2 === n && !t) return this; | |
e = B(e, e < 0 ? this.count() : this.size); | |
var o = this.slice(0, e); | |
return bt(this, 1 === n ? o : o.concat(h(arguments, 2), this.slice(e + t))) | |
}, | |
findLastIndex: function(e, t) { | |
var n = this.findLastEntry(e, t); | |
return n ? n[0] : -1 | |
}, | |
first: function() { | |
return this.get(0) | |
}, | |
flatten: function(e) { | |
return bt(this, mt(this, e, !1)) | |
}, | |
get: function(e, t) { | |
return e = f(this, e), e < 0 || this.size === 1 / 0 || void 0 !== this.size && e > this.size ? t : this.find(function(t, n) { | |
return n === e | |
}, void 0, t) | |
}, | |
has: function(e) { | |
return (e = f(this, e)) >= 0 && (void 0 !== this.size ? this.size === 1 / 0 || e < this.size : -1 !== this.indexOf(e)) | |
}, | |
interpose: function(e) { | |
return bt(this, Et(this, e)) | |
}, | |
interleave: function() { | |
var e = [this].concat(h(arguments)), | |
t = It(this.toSeq(), F.of, e), | |
n = t.flatten(!0); | |
return t.size && (n.size = t.size * e.length), bt(this, n) | |
}, | |
keySeq: function() { | |
return $(0, this.size) | |
}, | |
last: function() { | |
return this.get(-1) | |
}, | |
skipWhile: function(e, t) { | |
return bt(this, ft(this, e, t, !1)) | |
}, | |
zip: function() { | |
return bt(this, It(this, nn, [this].concat(h(arguments)))) | |
}, | |
zipWith: function(e) { | |
var t = h(arguments); | |
return t[0] = this, bt(this, It(this, e, t)) | |
} | |
}), o.prototype[cn] = !0, o.prototype[gn] = !0, Zt(l, { | |
get: function(e, t) { | |
return this.has(e) ? e : t | |
}, | |
includes: function(e) { | |
return this.has(e) | |
}, | |
keySeq: function() { | |
return this.valueSeq() | |
} | |
}), l.prototype.has = io.includes, l.prototype.contains = l.prototype.includes, Zt(S, n.prototype), Zt(F, o.prototype), Zt(Y, l.prototype), Zt(te, n.prototype), Zt(ne, o.prototype), Zt(oe, l.prototype), { | |
Iterable: t, | |
Seq: k, | |
Collection: ee, | |
Map: ce, | |
OrderedMap: Xe, | |
List: Le, | |
Stack: zt, | |
Set: Nt, | |
OrderedSet: Ht, | |
Record: Yt, | |
Range: $, | |
Repeat: _, | |
is: q, | |
fromJS: V | |
} | |
}) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
r = n(21), | |
i = function() { | |
function e(t, n, l, i) { | |
switch (o(this, e), this.id = t || r(), this.name = n, this.type = l, this.isCloud = i, this.type) { | |
case e.SCALAR_TYPE: | |
this.value = 0; | |
break; | |
case e.LIST_TYPE: | |
this.value = []; | |
break; | |
case e.BROADCAST_MESSAGE_TYPE: | |
this.value = this.name; | |
break; | |
default: | |
throw new Error("Invalid variable type: " + this.type) | |
} | |
} | |
return l(e, [{ | |
key: "toXML", | |
value: function() { | |
return '<variable type="' + this.type + '" id="' + this.id + '">' + this.name + "</variable>" | |
} | |
}], [{ | |
key: "SCALAR_TYPE", | |
get: function() { | |
return "" | |
} | |
}, { | |
key: "LIST_TYPE", | |
get: function() { | |
return "list" | |
} | |
}, { | |
key: "BROADCAST_MESSAGE_TYPE", | |
get: function() { | |
return "broadcast_msg" | |
} | |
}]), e | |
}(); | |
e.exports = i | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
r = function() { | |
function e() { | |
o(this, e), this.startTime = 0 | |
} | |
return l(e, [{ | |
key: "time", | |
value: function() { | |
return e.nowObj.now() | |
} | |
}, { | |
key: "relativeTime", | |
value: function() { | |
return e.nowObj.now() | |
} | |
}, { | |
key: "start", | |
value: function() { | |
this.startTime = e.nowObj.now() | |
} | |
}, { | |
key: "timeElapsed", | |
value: function() { | |
return e.nowObj.now() - this.startTime | |
} | |
}], [{ | |
key: "USE_PERFORMANCE", | |
get: function() { | |
return !1 | |
} | |
}, { | |
key: "legacyDateCode", | |
get: function() { | |
return { | |
now: function() { | |
return (new Date).getTime() | |
} | |
} | |
} | |
}, { | |
key: "nowObj", | |
get: function() { | |
return e.USE_PERFORMANCE && "undefined" != typeof self && self.performance && "now" in self.performance ? self.performance : Date.now ? Date : e.legacyDateCode | |
} | |
}]), e | |
}(); | |
e.exports = r | |
}, function(e, t, n) { | |
"use strict"; | |
(function(t) { | |
function n(e, n, o, l) { | |
if ("function" != typeof e) throw new TypeError('"callback" argument must be a function'); | |
var r, i, A = arguments.length; | |
switch (A) { | |
case 0: | |
case 1: | |
return t.nextTick(e); | |
case 2: | |
return t.nextTick(function() { | |
e.call(null, n) | |
}); | |
case 3: | |
return t.nextTick(function() { | |
e.call(null, n, o) | |
}); | |
case 4: | |
return t.nextTick(function() { | |
e.call(null, n, o, l) | |
}); | |
default: | |
for (r = new Array(A - 1), i = 0; i < r.length;) r[i++] = arguments[i]; | |
return t.nextTick(function() { | |
e.apply(null, r) | |
}) | |
} | |
}!t.version || 0 === t.version.indexOf("v0.") || 0 === t.version.indexOf("v1.") && 0 !== t.version.indexOf("v1.8.") ? e.exports = { | |
nextTick: n | |
} : e.exports = t | |
}).call(t, n(15)) | |
}, function(e, t, n) { | |
function o(e, t) { | |
for (var n in e) t[n] = e[n] | |
} | |
function l(e, t, n) { | |
return i(e, t, n) | |
} | |
var r = n(6), | |
i = r.Buffer; | |
i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow ? e.exports = r : (o(r, t), t.Buffer = l), o(i, l), l.from = function(e, t, n) { | |
if ("number" == typeof e) throw new TypeError("Argument must not be a number"); | |
return i(e, t, n) | |
}, l.alloc = function(e, t, n) { | |
if ("number" != typeof e) throw new TypeError("Argument must be a number"); | |
var o = i(e); | |
return void 0 !== t ? "string" == typeof n ? o.fill(t, n) : o.fill(t) : o.fill(0), o | |
}, l.allocUnsafe = function(e) { | |
if ("number" != typeof e) throw new TypeError("Argument must be a number"); | |
return i(e) | |
}, l.allocUnsafeSlow = function(e) { | |
if ("number" != typeof e) throw new TypeError("Argument must be a number"); | |
return r.SlowBuffer(e) | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
(function(t) { | |
e.exports = { | |
isNode: void 0 !== t, | |
newBufferFrom: function(e, n) { | |
return new t(e, n) | |
}, | |
allocBuffer: function(e) { | |
return t.alloc ? t.alloc(e) : new t(e) | |
}, | |
isBuffer: function(e) { | |
return t.isBuffer(e) | |
}, | |
isStream: function(e) { | |
return e && "function" == typeof e.on && "function" == typeof e.pause && "function" == typeof e.resume | |
} | |
} | |
}).call(t, n(6).Buffer) | |
}, function(e, t) { | |
var n = e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); | |
"number" == typeof __g && (__g = n) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
r = function() { | |
function e() { | |
o(this, e) | |
} | |
return l(e, null, [{ | |
key: "decimalToHex", | |
value: function(e) { | |
e < 0 && (e += 16777216); | |
var t = Number(e).toString(16); | |
return t = "#" + "000000".substr(0, 6 - t.length) + t | |
} | |
}, { | |
key: "decimalToRgb", | |
value: function(e) { | |
var t = e >> 24 & 255; | |
return { | |
r: e >> 16 & 255, | |
g: e >> 8 & 255, | |
b: 255 & e, | |
a: t > 0 ? t : 255 | |
} | |
} | |
}, { | |
key: "hexToRgb", | |
value: function(e) { | |
var t = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; | |
e = e.replace(t, function(e, t, n, o) { | |
return t + t + n + n + o + o | |
}); | |
var n = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e); | |
return n ? { | |
r: parseInt(n[1], 16), | |
g: parseInt(n[2], 16), | |
b: parseInt(n[3], 16) | |
} : null | |
} | |
}, { | |
key: "rgbToHex", | |
value: function(t) { | |
return e.decimalToHex(e.rgbToDecimal(t)) | |
} | |
}, { | |
key: "rgbToDecimal", | |
value: function(e) { | |
return (e.r << 16) + (e.g << 8) + e.b | |
} | |
}, { | |
key: "hexToDecimal", | |
value: function(t) { | |
return e.rgbToDecimal(e.hexToRgb(t)) | |
} | |
}, { | |
key: "hsvToRgb", | |
value: function(e) { | |
var t = e.h % 360; | |
t < 0 && (t += 360); | |
var n = Math.max(0, Math.min(e.s, 1)), | |
o = Math.max(0, Math.min(e.v, 1)), | |
l = Math.floor(t / 60), | |
r = t / 60 - l, | |
i = o * (1 - n), | |
A = o * (1 - n * r), | |
a = o * (1 - n * (1 - r)), | |
s = void 0, | |
u = void 0, | |
c = void 0; | |
switch (l) { | |
default: | |
case 0: | |
s = o, | |
u = a, | |
c = i; | |
break; | |
case 1: | |
s = A, | |
u = o, | |
c = i; | |
break; | |
case 2: | |
s = i, | |
u = o, | |
c = a; | |
break; | |
case 3: | |
s = i, | |
u = A, | |
c = o; | |
break; | |
case 4: | |
s = a, | |
u = i, | |
c = o; | |
break; | |
case 5: | |
s = o, | |
u = i, | |
c = A | |
} | |
return { | |
r: Math.floor(255 * s), | |
g: Math.floor(255 * u), | |
b: Math.floor(255 * c) | |
} | |
} | |
}, { | |
key: "rgbToHsv", | |
value: function(e) { | |
var t = e.r / 255, | |
n = e.g / 255, | |
o = e.b / 255, | |
l = Math.min(Math.min(t, n), o), | |
r = Math.max(Math.max(t, n), o), | |
i = 0, | |
A = 0; | |
if (l !== r) { | |
var a = t === l ? n - o : n === l ? o - t : t - n; | |
i = 60 * ((t === l ? 3 : n === l ? 5 : 1) - a / (r - l)) % 360, A = (r - l) / r | |
} | |
return { | |
h: i, | |
s: A, | |
v: r | |
} | |
} | |
}, { | |
key: "mixRgb", | |
value: function(e, t, n) { | |
if (n <= 0) return e; | |
if (n >= 1) return t; | |
var o = 1 - n; | |
return { | |
r: o * e.r + n * t.r, | |
g: o * e.g + n * t.g, | |
b: o * e.b + n * t.b | |
} | |
} | |
}, { | |
key: "RGB_BLACK", | |
get: function() { | |
return { | |
r: 0, | |
g: 0, | |
b: 0 | |
} | |
} | |
}, { | |
key: "RGB_WHITE", | |
get: function() { | |
return { | |
r: 255, | |
g: 255, | |
b: 255 | |
} | |
} | |
}]), e | |
}(); | |
e.exports = r | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
function l(e, t) { | |
if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return !t || "object" != typeof t && "function" != typeof t ? e : t | |
} | |
function r(e, t) { | |
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
e.prototype = Object.create(t && t.prototype, { | |
constructor: { | |
value: e, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
} | |
var i = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
A = n(2), | |
a = n(13), | |
s = n(18), | |
u = n(183), | |
c = function(e) { | |
function t(e, n) { | |
o(this, t); | |
var r = l(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, n, e.blocks)); | |
return r.sprite = e, r.renderer = null, r.runtime && (r.renderer = r.runtime.renderer), r.drawableID = null, r.dragging = !1, r.effects = { | |
color: 0, | |
fisheye: 0, | |
whirl: 0, | |
pixelate: 0, | |
mosaic: 0, | |
brightness: 0, | |
ghost: 0 | |
}, r.isOriginal = !0, r.isStage = !1, r.x = 0, r.y = 0, r.direction = 90, r.draggable = !1, r.visible = !0, r.size = 100, r.currentCostume = 0, r.rotationStyle = t.ROTATION_STYLE_ALL_AROUND, r.volume = 100, r.tempo = 60, r.videoTransparency = 50, r.videoState = t.VIDEO_STATE.ON, r | |
} | |
return r(t, e), i(t, [{ | |
key: "initDrawable", | |
value: function() { | |
this.renderer && (this.drawableID = this.renderer.createDrawable()), this.isOriginal || this.runtime.startHats("control_start_as_clone", null, this) | |
} | |
}, { | |
key: "initAudio", | |
value: function() { | |
if (this.audioPlayer = null, this.runtime && this.runtime.audioEngine && (this.audioPlayer = this.runtime.audioEngine.createPlayer(), !this.isOriginal)) { | |
var e = this.sprite.clones[0]; | |
e && e.audioPlayer && (this.audioPlayer.activeSoundPlayers = e.audioPlayer.activeSoundPlayers) | |
} | |
} | |
}, { | |
key: "setXY", | |
value: function(e, n, o) { | |
if (!this.isStage && (!this.dragging || o)) { | |
var l = this.x, | |
r = this.y; | |
if (this.renderer) { | |
var i = this.renderer.getFencedPositionOfDrawable(this.drawableID, [e, n]); | |
this.x = i[0], this.y = i[1], this.renderer.updateDrawableProperties(this.drawableID, { | |
position: i | |
}), this.visible && (this.emit(t.EVENT_TARGET_VISUAL_CHANGE, this), this.runtime.requestRedraw()) | |
} else this.x = e, this.y = n; | |
this.emit(t.EVENT_TARGET_MOVED, this, l, r, o), this.runtime.requestTargetsUpdate(this) | |
} | |
} | |
}, { | |
key: "_getRenderedDirectionAndScale", | |
value: function() { | |
var e = this.direction, | |
n = [this.size, this.size]; | |
if (this.rotationStyle === t.ROTATION_STYLE_NONE) e = 90; | |
else if (this.rotationStyle === t.ROTATION_STYLE_LEFT_RIGHT) { | |
e = 90; | |
var o = this.direction < 0 ? -1 : 1; | |
n = [o * this.size, this.size] | |
} | |
return { | |
direction: e, | |
scale: n | |
} | |
} | |
}, { | |
key: "setDirection", | |
value: function(e) { | |
if (!this.isStage && isFinite(e)) { | |
if (this.direction = a.wrapClamp(e, -179, 180), this.renderer) { | |
var n = this._getRenderedDirectionAndScale(); | |
this.renderer.updateDrawableProperties(this.drawableID, { | |
direction: n.direction, | |
scale: n.scale | |
}), this.visible && (this.emit(t.EVENT_TARGET_VISUAL_CHANGE, this), this.runtime.requestRedraw()) | |
} | |
this.runtime.requestTargetsUpdate(this) | |
} | |
} | |
}, { | |
key: "setDraggable", | |
value: function(e) { | |
this.isStage || (this.draggable = !!e, this.runtime.requestTargetsUpdate(this)) | |
} | |
}, { | |
key: "setSay", | |
value: function(e, t) { | |
if (!this.isStage) return e && t ? void A.info("Setting say bubble:", e, t) : void A.info("Clearing say bubble") | |
} | |
}, { | |
key: "setVisible", | |
value: function(e) { | |
this.isStage || (this.visible = !!e, this.renderer && (this.renderer.updateDrawableProperties(this.drawableID, { | |
visible: this.visible | |
}), this.visible && (this.emit(t.EVENT_TARGET_VISUAL_CHANGE, this), this.runtime.requestRedraw())), this.runtime.requestTargetsUpdate(this)) | |
} | |
}, { | |
key: "setSize", | |
value: function(e) { | |
if (!this.isStage) { | |
if (this.renderer) { | |
var n = this.renderer.getCurrentSkinSize(this.drawableID), | |
o = n[0], | |
l = n[1], | |
r = Math.min(1, Math.max(5 / o, 5 / l)), | |
i = Math.min(1.5 * this.runtime.constructor.STAGE_WIDTH / o, 1.5 * this.runtime.constructor.STAGE_HEIGHT / l); | |
this.size = 100 * a.clamp(e / 100, r, i); | |
var A = this._getRenderedDirectionAndScale(); | |
this.renderer.updateDrawableProperties(this.drawableID, { | |
direction: A.direction, | |
scale: A.scale | |
}), this.visible && (this.emit(t.EVENT_TARGET_VISUAL_CHANGE, this), this.runtime.requestRedraw()) | |
} | |
this.runtime.requestTargetsUpdate(this) | |
} | |
} | |
}, { | |
key: "setEffect", | |
value: function(e, n) { | |
if (this.effects.hasOwnProperty(e) && (this.effects[e] = n, this.renderer)) { | |
var o = {}; | |
o[e] = this.effects[e], this.renderer.updateDrawableProperties(this.drawableID, o), this.visible && (this.emit(t.EVENT_TARGET_VISUAL_CHANGE, this), this.runtime.requestRedraw()) | |
} | |
} | |
}, { | |
key: "clearEffects", | |
value: function() { | |
for (var e in this.effects) this.effects.hasOwnProperty(e) && (this.effects[e] = 0); | |
this.renderer && (this.renderer.updateDrawableProperties(this.drawableID, this.effects), this.visible && (this.emit(t.EVENT_TARGET_VISUAL_CHANGE, this), this.runtime.requestRedraw())) | |
} | |
}, { | |
key: "setCostume", | |
value: function(e) { | |
if (e = Math.round(e), this.currentCostume = a.wrapClamp(e, 0, this.sprite.costumes.length - 1), this.renderer) { | |
var n = this.getCostumes()[this.currentCostume], | |
o = { | |
skinId: n.skinId, | |
costumeResolution: n.bitmapResolution | |
}; | |
if (void 0 !== n.rotationCenterX && void 0 !== n.rotationCenterY) { | |
var l = n.bitmapResolution || 2; | |
o.rotationCenter = [n.rotationCenterX / l, n.rotationCenterY / l] | |
} | |
this.renderer.updateDrawableProperties(this.drawableID, o), this.visible && (this.emit(t.EVENT_TARGET_VISUAL_CHANGE, this), this.runtime.requestRedraw()) | |
} | |
this.runtime.requestTargetsUpdate(this) | |
} | |
}, { | |
key: "addCostume", | |
value: function(e, t) { | |
t ? this.sprite.addCostumeAt(e, t) : this.sprite.addCostumeAt(e, this.sprite.costumes.length) | |
} | |
}, { | |
key: "renameCostume", | |
value: function(e, t) { | |
var n = this.sprite.costumes.filter(function(t, n) { | |
return e !== n | |
}).map(function(e) { | |
return e.name | |
}), | |
o = this.getCostumes()[e].name, | |
l = s.unusedName(t, n); | |
if (this.getCostumes()[e].name = l, this.isStage) | |
for (var r = this.runtime.targets, i = 0; i < r.length; i++) { | |
var A = r[i]; | |
A.blocks.updateAssetName(o, l, "backdrop") | |
} else this.blocks.updateAssetName(o, l, "costume") | |
} | |
}, { | |
key: "deleteCostume", | |
value: function(e) { | |
var t = this.sprite.costumes.length; | |
1 !== t && (this.sprite.deleteCostumeAt(e), e === this.currentCostume && e === t - 1 ? this.setCostume(e - 1) : e < this.currentCostume ? this.setCostume(this.currentCostume - 1) : this.setCostume(this.currentCostume), this.runtime.requestTargetsUpdate(this)) | |
} | |
}, { | |
key: "addSound", | |
value: function(e, t) { | |
var n = this.sprite.sounds.map(function(e) { | |
return e.name | |
}); | |
e.name = s.unusedName(e.name, n), t ? this.sprite.sounds.splice(t, 0, e) : this.sprite.sounds.push(e) | |
} | |
}, { | |
key: "renameSound", | |
value: function(e, t) { | |
var n = this.sprite.sounds.filter(function(t, n) { | |
return e !== n | |
}).map(function(e) { | |
return e.name | |
}), | |
o = this.sprite.sounds[e].name, | |
l = s.unusedName(t, n); | |
this.sprite.sounds[e].name = l, this.blocks.updateAssetName(o, l, "sound") | |
} | |
}, { | |
key: "deleteSound", | |
value: function(e) { | |
this.sprite.sounds = this.sprite.sounds.slice(0, e).concat(this.sprite.sounds.slice(e + 1)), this.runtime.requestTargetsUpdate(this) | |
} | |
}, { | |
key: "setRotationStyle", | |
value: function(e) { | |
if (e === t.ROTATION_STYLE_NONE ? this.rotationStyle = t.ROTATION_STYLE_NONE : e === t.ROTATION_STYLE_ALL_AROUND ? this.rotationStyle = t.ROTATION_STYLE_ALL_AROUND : e === t.ROTATION_STYLE_LEFT_RIGHT && (this.rotationStyle = t.ROTATION_STYLE_LEFT_RIGHT), this.renderer) { | |
var n = this._getRenderedDirectionAndScale(); | |
this.renderer.updateDrawableProperties(this.drawableID, { | |
direction: n.direction, | |
scale: n.scale | |
}), this.visible && (this.emit(t.EVENT_TARGET_VISUAL_CHANGE, this), this.runtime.requestRedraw()) | |
} | |
this.runtime.requestTargetsUpdate(this) | |
} | |
}, { | |
key: "getCostumeIndexByName", | |
value: function(e) { | |
for (var t = 0; t < this.sprite.costumes.length; t++) | |
if (this.getCostumes()[t].name === e) return t; | |
return -1 | |
} | |
}, { | |
key: "getCurrentCostume", | |
value: function() { | |
return this.getCostumes()[this.currentCostume] | |
} | |
}, { | |
key: "getCostumes", | |
value: function() { | |
return this.sprite.costumes | |
} | |
}, { | |
key: "getSounds", | |
value: function() { | |
return this.sprite.sounds | |
} | |
}, { | |
key: "updateAllDrawableProperties", | |
value: function() { | |
if (this.renderer) { | |
var e = this._getRenderedDirectionAndScale(), | |
n = this.getCostumes()[this.currentCostume], | |
o = n.bitmapResolution || 2, | |
l = { | |
position: [this.x, this.y], | |
direction: e.direction, | |
draggable: this.draggable, | |
scale: e.scale, | |
visible: this.visible, | |
skinId: n.skinId, | |
costumeResolution: o, | |
rotationCenter: [n.rotationCenterX / o, n.rotationCenterY / o] | |
}; | |
for (var r in this.effects) this.effects.hasOwnProperty(r) && (l[r] = this.effects[r]); | |
this.renderer.updateDrawableProperties(this.drawableID, l), this.visible && (this.emit(t.EVENT_TARGET_VISUAL_CHANGE, this), this.runtime.requestRedraw()) | |
} | |
this.runtime.requestTargetsUpdate(this) | |
} | |
}, { | |
key: "getName", | |
value: function() { | |
return this.sprite.name | |
} | |
}, { | |
key: "isSprite", | |
value: function() { | |
return !this.isStage && this.isOriginal | |
} | |
}, { | |
key: "getBounds", | |
value: function() { | |
return this.renderer ? this.runtime.renderer.getBounds(this.drawableID) : null | |
} | |
}, { | |
key: "getBoundsForBubble", | |
value: function() { | |
return this.renderer ? this.runtime.renderer.getBoundsForBubble(this.drawableID) : null | |
} | |
}, { | |
key: "isTouchingPoint", | |
value: function(e, t) { | |
if (this.renderer) { | |
return this.runtime.renderer.pick(e, t, null, null, [this.drawableID]) === this.drawableID | |
} | |
return !1 | |
} | |
}, { | |
key: "isTouchingEdge", | |
value: function() { | |
if (this.renderer) { | |
var e = this.runtime.constructor.STAGE_WIDTH, | |
t = this.runtime.constructor.STAGE_HEIGHT, | |
n = this.getBounds(); | |
if (n.left < -e / 2 || n.right > e / 2 || n.top > t / 2 || n.bottom < -t / 2) return !0 | |
} | |
return !1 | |
} | |
}, { | |
key: "isTouchingSprite", | |
value: function(e) { | |
var t = this.runtime.getSpriteTargetByName(e); | |
if (!t || !this.renderer) return !1; | |
var n = t.sprite.clones.filter(function(e) { | |
return !e.dragging | |
}).map(function(e) { | |
return e.drawableID | |
}); | |
return this.renderer.isTouchingDrawables(this.drawableID, n) | |
} | |
}, { | |
key: "isTouchingColor", | |
value: function(e) { | |
return !!this.renderer && this.renderer.isTouchingColor(this.drawableID, e) | |
} | |
}, { | |
key: "colorIsTouchingColor", | |
value: function(e, t) { | |
return !!this.renderer && this.renderer.isTouchingColor(this.drawableID, e, t) | |
} | |
}, { | |
key: "goToFront", | |
value: function() { | |
this.renderer && this.renderer.setDrawableOrder(this.drawableID, 1 / 0) | |
} | |
}, { | |
key: "goToBack", | |
value: function() { | |
this.renderer && this.renderer.setDrawableOrder(this.drawableID, -1 / 0, !1, 1) | |
} | |
}, { | |
key: "goForwardLayers", | |
value: function(e) { | |
this.renderer && this.renderer.setDrawableOrder(this.drawableID, e, !0, 1) | |
} | |
}, { | |
key: "goBackwardLayers", | |
value: function(e) { | |
this.renderer && this.renderer.setDrawableOrder(this.drawableID, -e, !0, 1) | |
} | |
}, { | |
key: "goBehindOther", | |
value: function(e) { | |
if (this.renderer) { | |
var t = this.renderer.setDrawableOrder(e.drawableID, 0, !0); | |
this.renderer.setDrawableOrder(this.drawableID, t) | |
} | |
} | |
}, { | |
key: "keepInFence", | |
value: function(e, t, n) { | |
var o = n; | |
o || (o = { | |
left: -this.runtime.constructor.STAGE_WIDTH / 2, | |
right: this.runtime.constructor.STAGE_WIDTH / 2, | |
top: this.runtime.constructor.STAGE_HEIGHT / 2, | |
bottom: -this.runtime.constructor.STAGE_HEIGHT / 2 | |
}); | |
var l = this.getBounds(); | |
if (l) { | |
l.left += e - this.x, l.right += e - this.x, l.top += t - this.y, l.bottom += t - this.y; | |
var r = 0, | |
i = 0; | |
return l.left < o.left && (r += o.left - l.left), l.right > o.right && (r += o.right - l.right), l.top > o.top && (i += o.top - l.top), l.bottom < o.bottom && (i += o.bottom - l.bottom), [e + r, t + i] | |
} | |
} | |
}, { | |
key: "makeClone", | |
value: function() { | |
if (!this.runtime.clonesAvailable() || this.isStage) return null; | |
this.runtime.changeCloneCounter(1); | |
var e = this.sprite.createClone(); | |
return e.x = this.x, e.y = this.y, e.direction = this.direction, e.draggable = this.draggable, e.visible = this.visible, e.size = this.size, e.currentCostume = this.currentCostume, e.rotationStyle = this.rotationStyle, e.effects = JSON.parse(JSON.stringify(this.effects)), e.variables = JSON.parse(JSON.stringify(this.variables)), e.lists = JSON.parse(JSON.stringify(this.lists)), e.initDrawable(), e.updateAllDrawableProperties(), e.goBehindOther(this), e | |
} | |
}, { | |
key: "duplicate", | |
value: function() { | |
var e = this; | |
return this.sprite.duplicate().then(function(t) { | |
var n = t.createClone(); | |
return n.x = 400 * Math.random() / 2, n.y = 300 * Math.random() / 2, n.direction = e.direction, n.draggable = e.draggable, n.visible = e.visible, n.size = e.size, n.currentCostume = e.currentCostume, n.rotationStyle = e.rotationStyle, n.effects = JSON.parse(JSON.stringify(e.effects)), n.variables = JSON.parse(JSON.stringify(e.variables)), n.lists = JSON.parse(JSON.stringify(e.lists)), n.updateAllDrawableProperties(), n.goBehindOther(e), n | |
}) | |
} | |
}, { | |
key: "onGreenFlag", | |
value: function() { | |
this.clearEffects() | |
} | |
}, { | |
key: "onStopAll", | |
value: function() { | |
this.clearEffects(), this.audioPlayer && (this.audioPlayer.stopAllSounds(), this.audioPlayer.clearEffects()) | |
} | |
}, { | |
key: "postSpriteInfo", | |
value: function(e) { | |
var t = e.hasOwnProperty("force") ? e.force : null, | |
n = e.hasOwnProperty("x"), | |
o = e.hasOwnProperty("y"); | |
(n || o) && this.setXY(n ? e.x : this.x, o ? e.y : this.y, t), e.hasOwnProperty("direction") && this.setDirection(e.direction), e.hasOwnProperty("draggable") && this.setDraggable(e.draggable), e.hasOwnProperty("rotationStyle") && this.setRotationStyle(e.rotationStyle), e.hasOwnProperty("visible") && this.setVisible(e.visible), e.hasOwnProperty("size") && this.setSize(e.size) | |
} | |
}, { | |
key: "startDrag", | |
value: function() { | |
this.dragging = !0 | |
} | |
}, { | |
key: "stopDrag", | |
value: function() { | |
this.dragging = !1 | |
} | |
}, { | |
key: "toJSON", | |
value: function() { | |
var e = this.getCostumes(); | |
return { | |
id: this.id, | |
name: this.getName(), | |
isStage: this.isStage, | |
x: this.x, | |
y: this.y, | |
size: this.size, | |
direction: this.direction, | |
draggable: this.draggable, | |
currentCostume: this.currentCostume, | |
costume: e[this.currentCostume], | |
costumeCount: e.length, | |
visible: this.visible, | |
rotationStyle: this.rotationStyle, | |
blocks: this.blocks._blocks, | |
variables: this.variables, | |
lists: this.lists, | |
costumes: e, | |
sounds: this.getSounds(), | |
tempo: this.tempo, | |
volume: this.volume, | |
videoTransparency: this.videoTransparency, | |
videoState: this.videoState | |
} | |
} | |
}, { | |
key: "dispose", | |
value: function() { | |
this.runtime.changeCloneCounter(-1), this.runtime.stopForTarget(this), this.sprite.removeClone(this), this.renderer && null !== this.drawableID && (this.renderer.destroyDrawable(this.drawableID), this.visible && (this.emit(t.EVENT_TARGET_VISUAL_CHANGE, this), this.runtime.requestRedraw())), this.audioPlayer && (this.audioPlayer.stopAllSounds(), this.audioPlayer.dispose()) | |
} | |
}], [{ | |
key: "EVENT_TARGET_MOVED", | |
get: function() { | |
return "TARGET_MOVED" | |
} | |
}, { | |
key: "EVENT_TARGET_VISUAL_CHANGE", | |
get: function() { | |
return "EVENT_TARGET_VISUAL_CHANGE" | |
} | |
}, { | |
key: "ROTATION_STYLE_ALL_AROUND", | |
get: function() { | |
return "all around" | |
} | |
}, { | |
key: "ROTATION_STYLE_LEFT_RIGHT", | |
get: function() { | |
return "left-right" | |
} | |
}, { | |
key: "ROTATION_STYLE_NONE", | |
get: function() { | |
return "don't rotate" | |
} | |
}, { | |
key: "VIDEO_STATE", | |
get: function() { | |
return { | |
OFF: "off", | |
ON: "on", | |
ON_FLIPPED: "on-flipped" | |
} | |
} | |
}]), t | |
}(u); | |
e.exports = c | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
r = function() { | |
function e(t) { | |
o(this, e), this.topBlock = t, this.stack = [], this.stackFrames = [], this.status = 0, this.isKilled = !1, this.target = null, this.blockContainer = null, this.requestScriptGlowInFrame = !1, this.blockGlowInFrame = null, this.warpTimer = null | |
} | |
return l(e, [{ | |
key: "pushStack", | |
value: function(e) { | |
if (this.stack.push(e), this.stack.length > this.stackFrames.length) { | |
var t = !1; | |
this.stackFrames.length > 0 && this.stackFrames[this.stackFrames.length - 1] && (t = this.stackFrames[this.stackFrames.length - 1].warpMode), this.stackFrames.push({ | |
isLoop: !1, | |
warpMode: t, | |
justReported: null, | |
reported: {}, | |
waitingReporter: null, | |
params: {}, | |
executionContext: {} | |
}) | |
} | |
} | |
}, { | |
key: "reuseStackForNextBlock", | |
value: function(e) { | |
this.stack[this.stack.length - 1] = e; | |
var t = this.stackFrames[this.stackFrames.length - 1]; | |
t.isLoop = !1, t.reported = {}, t.waitingReporter = null, t.params = {}, t.executionContext = {} | |
} | |
}, { | |
key: "popStack", | |
value: function() { | |
return this.stackFrames.pop(), this.stack.pop() | |
} | |
}, { | |
key: "stopThisScript", | |
value: function() { | |
for (var t = this.peekStack(); null !== t;) { | |
var n = this.target.blocks.getBlock(t); | |
if (void 0 !== n && "procedures_call" === n.opcode) break; | |
this.popStack(), t = this.peekStack() | |
} | |
0 === this.stack.length && (this.requestScriptGlowInFrame = !1, this.status = e.STATUS_DONE) | |
} | |
}, { | |
key: "peekStack", | |
value: function() { | |
return this.stack.length > 0 ? this.stack[this.stack.length - 1] : null | |
} | |
}, { | |
key: "peekStackFrame", | |
value: function() { | |
return this.stackFrames.length > 0 ? this.stackFrames[this.stackFrames.length - 1] : null | |
} | |
}, { | |
key: "peekParentStackFrame", | |
value: function() { | |
return this.stackFrames.length > 1 ? this.stackFrames[this.stackFrames.length - 2] : null | |
} | |
}, { | |
key: "pushReportedValue", | |
value: function(e) { | |
var t = this.peekParentStackFrame(); | |
null !== t && (t.justReported = void 0 === e ? null : e) | |
} | |
}, { | |
key: "pushParam", | |
value: function(e, t) { | |
this.peekStackFrame().params[e] = t | |
} | |
}, { | |
key: "getParam", | |
value: function(e) { | |
for (var t = this.stackFrames.length - 1; t >= 0; t--) { | |
var n = this.stackFrames[t]; | |
if (n.params.hasOwnProperty(e)) return n.params[e] | |
} | |
return null | |
} | |
}, { | |
key: "atStackTop", | |
value: function() { | |
return this.peekStack() === this.topBlock | |
} | |
}, { | |
key: "goToNextBlock", | |
value: function() { | |
var e = this.target.blocks.getNextBlock(this.peekStack()); | |
this.reuseStackForNextBlock(e) | |
} | |
}, { | |
key: "isRecursiveCall", | |
value: function(e) { | |
for (var t = 5, n = this.stack.length - 1, o = n - 1; o >= 0; o--) { | |
var l = this.target.blocks.getBlock(this.stack[o]); | |
if ("procedures_call" === l.opcode && l.mutation.proccode === e) return !0; | |
if (--t < 0) return !1 | |
} | |
return !1 | |
} | |
}], [{ | |
key: "STATUS_RUNNING", | |
get: function() { | |
return 0 | |
} | |
}, { | |
key: "STATUS_PROMISE_WAIT", | |
get: function() { | |
return 1 | |
} | |
}, { | |
key: "STATUS_YIELD", | |
get: function() { | |
return 2 | |
} | |
}, { | |
key: "STATUS_YIELD_TICK", | |
get: function() { | |
return 3 | |
} | |
}, { | |
key: "STATUS_DONE", | |
get: function() { | |
return 4 | |
} | |
}]), e | |
}(); | |
e.exports = r | |
}, function(e, t, n) { | |
"use strict"; | |
var o = n(18), | |
l = n(2), | |
r = function(e, t, n) { | |
return e.assetId = t.assetId, n.audioEngine ? n.audioEngine.decodeSound(Object.assign({}, e, { | |
data: t.data | |
})).then(function(t) { | |
e.soundId = t; | |
var o = n.audioEngine.getSoundBuffer(t); | |
return e.rate = o.sampleRate, e.sampleCount = o.length, e | |
}) : (l.error("No audio engine present; cannot load sound asset: ", e.md5), Promise.resolve(e)) | |
}, | |
i = function(e, t) { | |
if (!t.storage) return l.error("No storage module present; cannot load sound asset: ", e.md5), Promise.resolve(e); | |
var n = o.splitFirst(e.md5, "."), | |
i = n[0], | |
A = n[1].toLowerCase(); | |
return t.storage.load(t.storage.AssetType.Sound, i, A).then(function(n) { | |
return e.dataFormat = A, r(e, n, t) | |
}) | |
}; | |
e.exports = { | |
loadSound: i, | |
loadSoundFromAsset: r | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
var o = n(18), | |
l = n(2), | |
r = function(e, t, n) { | |
e.assetId = t.assetId; | |
var o = n.renderer; | |
if (!o) return l.error("No rendering module present; cannot load costume: ", e.name), e; | |
var r = n.storage.AssetType, | |
i = void 0; | |
return e.rotationCenterX && e.rotationCenterY && e.bitmapResolution && (i = [e.rotationCenterX / e.bitmapResolution, e.rotationCenterY / e.bitmapResolution]), t.assetType === r.ImageVector ? (e.skinId = o.createSVGSkin(t.decodeText(), i), e.size = o.getSkinSize(e.skinId), i || (i = o.getSkinRotationCenter(e.skinId), e.rotationCenterX = i[0], e.rotationCenterY = i[1]), e) : new Promise(function(e, n) { | |
var o = new Image, | |
l = function() { | |
i(), n() | |
}, | |
r = function() { | |
i(), e(o) | |
}, | |
i = function() { | |
o.removeEventListener("error", l), o.removeEventListener("load", r) | |
}; | |
o.addEventListener("error", l), o.addEventListener("load", r), o.src = t.encodeDataURI() | |
}).then(function(t) { | |
return e.skinId = o.createBitmapSkin(t, e.bitmapResolution, i), e.size = o.getSkinSize(e.skinId), i || (i = o.getSkinRotationCenter(e.skinId), e.rotationCenterX = 2 * i[0], e.rotationCenterY = 2 * i[1]), e | |
}) | |
}, | |
i = function(e, t, n) { | |
if (!n.storage) return l.error("No storage module present; cannot load costume asset: ", e), Promise.resolve(t); | |
var i = n.storage.AssetType, | |
A = o.splitFirst(e, "."), | |
a = A[0], | |
s = A[1].toLowerCase(), | |
u = "svg" === s ? i.ImageVector : i.ImageBitmap; | |
return n.storage.load(u, a, s).then(function(e) { | |
return t.dataFormat = s, r(t, e, n) | |
}) | |
}; | |
e.exports = { | |
loadCostume: i, | |
loadCostumeFromAsset: r | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
function o() { | |
if (!(this instanceof o)) return new o; | |
if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide."); | |
this.files = {}, this.comment = null, this.root = "", this.clone = function() { | |
var e = new o; | |
for (var t in this) "function" != typeof this[t] && (e[t] = this[t]); | |
return e | |
} | |
} | |
o.prototype = n(117), o.prototype.loadAsync = n(162), o.support = n(8), o.defaults = n(68), o.version = "3.1.5", o.loadAsync = function(e, t) { | |
return (new o).loadAsync(e, t) | |
}, o.external = n(24), e.exports = o | |
}, function(e, t, n) { | |
t = e.exports = n(57), t.Stream = t, t.Readable = t, t.Writable = n(41), t.Duplex = n(12), t.Transform = n(61), t.PassThrough = n(125) | |
}, function(e, t, n) { | |
"use strict"; | |
(function(t, o, l) { | |
function r(e) { | |
var t = this; | |
this.next = null, this.entry = null, this.finish = function() { | |
Q(t, e) | |
} | |
} | |
function i(e) { | |
return R.from(e) | |
} | |
function A(e) { | |
return R.isBuffer(e) || e instanceof U | |
} | |
function a() {} | |
function s(e, t) { | |
k = k || n(12), e = e || {}; | |
var o = t instanceof k; | |
this.objectMode = !!e.objectMode, o && (this.objectMode = this.objectMode || !!e.writableObjectMode); | |
var l = e.highWaterMark, | |
i = e.writableHighWaterMark, | |
A = this.objectMode ? 16 : 16384; | |
this.highWaterMark = l || 0 === l ? l : o && (i || 0 === i) ? i : A, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; | |
var a = !1 === e.decodeStrings; | |
this.decodeStrings = !a, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(e) { | |
B(t, e) | |
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new r(this) | |
} | |
function u(e) { | |
if (k = k || n(12), !(N.call(u, this) || this instanceof k)) return new u(e); | |
this._writableState = new s(e, this), this.writable = !0, e && ("function" == typeof e.write && (this._write = e.write), "function" == typeof e.writev && (this._writev = e.writev), "function" == typeof e.destroy && (this._destroy = e.destroy), "function" == typeof e.final && (this._final = e.final)), x.call(this) | |
} | |
function c(e, t) { | |
var n = new Error("write after end"); | |
e.emit("error", n), D.nextTick(t, n) | |
} | |
function g(e, t, n, o) { | |
var l = !0, | |
r = !1; | |
return null === n ? r = new TypeError("May not write null values to stream") : "string" == typeof n || void 0 === n || t.objectMode || (r = new TypeError("Invalid non-string/buffer chunk")), r && (e.emit("error", r), D.nextTick(o, r), l = !1), l | |
} | |
function h(e, t, n) { | |
return e.objectMode || !1 === e.decodeStrings || "string" != typeof t || (t = R.from(t, n)), t | |
} | |
function d(e, t, n, o, l, r) { | |
if (!n) { | |
var i = h(t, o, l); | |
o !== i && (n = !0, l = "buffer", o = i) | |
} | |
var A = t.objectMode ? 1 : o.length; | |
t.length += A; | |
var a = t.length < t.highWaterMark; | |
if (a || (t.needDrain = !0), t.writing || t.corked) { | |
var s = t.lastBufferedRequest; | |
t.lastBufferedRequest = { | |
chunk: o, | |
encoding: l, | |
isBuf: n, | |
callback: r, | |
next: null | |
}, s ? s.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1 | |
} else f(e, t, !1, A, o, l, r); | |
return a | |
} | |
function f(e, t, n, o, l, r, i) { | |
t.writelen = o, t.writecb = i, t.writing = !0, t.sync = !0, n ? e._writev(l, t.onwrite) : e._write(l, r, t.onwrite), t.sync = !1 | |
} | |
function p(e, t, n, o, l) { | |
--t.pendingcb, n ? (D.nextTick(l, o), D.nextTick(v, e, t), e._writableState.errorEmitted = !0, e.emit("error", o)) : (l(o), e._writableState.errorEmitted = !0, e.emit("error", o), v(e, t)) | |
} | |
function m(e) { | |
e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0 | |
} | |
function B(e, t) { | |
var n = e._writableState, | |
o = n.sync, | |
l = n.writecb; | |
if (m(n), t) p(e, n, o, t, l); | |
else { | |
var r = w(n); | |
r || n.corked || n.bufferProcessing || !n.bufferedRequest || C(e, n), o ? S(E, e, n, r, l) : E(e, n, r, l) | |
} | |
} | |
function E(e, t, n, o) { | |
n || y(e, t), t.pendingcb--, o(), v(e, t) | |
} | |
function y(e, t) { | |
0 === t.length && t.needDrain && (t.needDrain = !1, e.emit("drain")) | |
} | |
function C(e, t) { | |
t.bufferProcessing = !0; | |
var n = t.bufferedRequest; | |
if (e._writev && n && n.next) { | |
var o = t.bufferedRequestCount, | |
l = new Array(o), | |
i = t.corkedRequestsFree; | |
i.entry = n; | |
for (var A = 0, a = !0; n;) l[A] = n, n.isBuf || (a = !1), n = n.next, A += 1; | |
l.allBuffers = a, f(e, t, !0, t.length, l, "", i.finish), t.pendingcb++, t.lastBufferedRequest = null, i.next ? (t.corkedRequestsFree = i.next, i.next = null) : t.corkedRequestsFree = new r(t), t.bufferedRequestCount = 0 | |
} else { | |
for (; n;) { | |
var s = n.chunk, | |
u = n.encoding, | |
c = n.callback; | |
if (f(e, t, !1, t.objectMode ? 1 : s.length, s, u, c), n = n.next, t.bufferedRequestCount--, t.writing) break | |
} | |
null === n && (t.lastBufferedRequest = null) | |
} | |
t.bufferedRequest = n, t.bufferProcessing = !1 | |
} | |
function w(e) { | |
return e.ending && 0 === e.length && null === e.bufferedRequest && !e.finished && !e.writing | |
} | |
function I(e, t) { | |
e._final(function(n) { | |
t.pendingcb--, n && e.emit("error", n), t.prefinished = !0, e.emit("prefinish"), v(e, t) | |
}) | |
} | |
function b(e, t) { | |
t.prefinished || t.finalCalled || ("function" == typeof e._final ? (t.pendingcb++, t.finalCalled = !0, D.nextTick(I, e, t)) : (t.prefinished = !0, e.emit("prefinish"))) | |
} | |
function v(e, t) { | |
var n = w(t); | |
return n && (b(e, t), 0 === t.pendingcb && (t.finished = !0, e.emit("finish"))), n | |
} | |
function M(e, t, n) { | |
t.ending = !0, v(e, t), n && (t.finished ? D.nextTick(n) : e.once("finish", n)), t.ended = !0, e.writable = !1 | |
} | |
function Q(e, t, n) { | |
var o = e.entry; | |
for (e.entry = null; o;) { | |
var l = o.callback; | |
t.pendingcb--, l(n), o = o.next | |
} | |
t.corkedRequestsFree ? t.corkedRequestsFree.next = e : t.corkedRequestsFree = e | |
} | |
var D = n(30); | |
e.exports = u; | |
var k, S = !t.browser && ["v0.10", "v0.9."].indexOf(t.version.slice(0, 5)) > -1 ? o : D.nextTick; | |
u.WritableState = s; | |
var F = n(23); | |
F.inherits = n(7); | |
var Y = { | |
deprecate: n(124) | |
}, | |
x = n(58), | |
R = n(31).Buffer, | |
U = l.Uint8Array || function() {}, | |
T = n(59); | |
F.inherits(u, x), s.prototype.getBuffer = function() { | |
for (var e = this.bufferedRequest, t = []; e;) t.push(e), e = e.next; | |
return t | |
}, | |
function() { | |
try { | |
Object.defineProperty(s.prototype, "buffer", { | |
get: Y.deprecate(function() { | |
return this.getBuffer() | |
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") | |
}) | |
} catch (e) {} | |
}(); | |
var N; | |
"function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (N = Function.prototype[Symbol.hasInstance], Object.defineProperty(u, Symbol.hasInstance, { | |
value: function(e) { | |
return !!N.call(this, e) || this === u && (e && e._writableState instanceof s) | |
} | |
})) : N = function(e) { | |
return e instanceof this | |
}, u.prototype.pipe = function() { | |
this.emit("error", new Error("Cannot pipe, not readable")) | |
}, u.prototype.write = function(e, t, n) { | |
var o = this._writableState, | |
l = !1, | |
r = !o.objectMode && A(e); | |
return r && !R.isBuffer(e) && (e = i(e)), "function" == typeof t && (n = t, t = null), r ? t = "buffer" : t || (t = o.defaultEncoding), "function" != typeof n && (n = a), o.ended ? c(this, n) : (r || g(this, o, e, n)) && (o.pendingcb++, l = d(this, o, r, e, t, n)), l | |
}, u.prototype.cork = function() { | |
this._writableState.corked++ | |
}, u.prototype.uncork = function() { | |
var e = this._writableState; | |
e.corked && (e.corked--, e.writing || e.corked || e.finished || e.bufferProcessing || !e.bufferedRequest || C(this, e)) | |
}, u.prototype.setDefaultEncoding = function(e) { | |
if ("string" == typeof e && (e = e.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + e); | |
return this._writableState.defaultEncoding = e, this | |
}, u.prototype._write = function(e, t, n) { | |
n(new Error("_write() is not implemented")) | |
}, u.prototype._writev = null, u.prototype.end = function(e, t, n) { | |
var o = this._writableState; | |
"function" == typeof e ? (n = e, e = null, t = null) : "function" == typeof t && (n = t, t = null), null !== e && void 0 !== e && this.write(e, t), o.corked && (o.corked = 1, this.uncork()), o.ending || o.finished || M(this, o, n) | |
}, Object.defineProperty(u.prototype, "destroyed", { | |
get: function() { | |
return void 0 !== this._writableState && this._writableState.destroyed | |
}, | |
set: function(e) { | |
this._writableState && (this._writableState.destroyed = e) | |
} | |
}), u.prototype.destroy = T.destroy, u.prototype._undestroy = T.undestroy, u.prototype._destroy = function(e, t) { | |
this.end(), t(e) | |
} | |
}).call(t, n(15), n(60).setImmediate, n(5)) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
if (!e) return "utf8"; | |
for (var t;;) switch (e) { | |
case "utf8": | |
case "utf-8": | |
return "utf8"; | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
return "utf16le"; | |
case "latin1": | |
case "binary": | |
return "latin1"; | |
case "base64": | |
case "ascii": | |
case "hex": | |
return e; | |
default: | |
if (t) return; | |
e = ("" + e).toLowerCase(), t = !0 | |
} | |
} | |
function l(e) { | |
var t = o(e); | |
if ("string" != typeof t && (B.isEncoding === E || !E(e))) throw new Error("Unknown encoding: " + e); | |
return t || e | |
} | |
function r(e) { | |
this.encoding = l(e); | |
var t; | |
switch (this.encoding) { | |
case "utf16le": | |
this.text = g, this.end = h, t = 4; | |
break; | |
case "utf8": | |
this.fillLast = s, t = 4; | |
break; | |
case "base64": | |
this.text = d, this.end = f, t = 3; | |
break; | |
default: | |
return this.write = p, void(this.end = m) | |
} | |
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = B.allocUnsafe(t) | |
} | |
function i(e) { | |
return e <= 127 ? 0 : e >> 5 == 6 ? 2 : e >> 4 == 14 ? 3 : e >> 3 == 30 ? 4 : -1 | |
} | |
function A(e, t, n) { | |
var o = t.length - 1; | |
if (o < n) return 0; | |
var l = i(t[o]); | |
return l >= 0 ? (l > 0 && (e.lastNeed = l - 1), l) : --o < n ? 0 : (l = i(t[o])) >= 0 ? (l > 0 && (e.lastNeed = l - 2), l) : --o < n ? 0 : (l = i(t[o]), l >= 0 ? (l > 0 && (2 === l ? l = 0 : e.lastNeed = l - 3), l) : 0) | |
} | |
function a(e, t, n) { | |
if (128 != (192 & t[0])) return e.lastNeed = 0, "�".repeat(n); | |
if (e.lastNeed > 1 && t.length > 1) { | |
if (128 != (192 & t[1])) return e.lastNeed = 1, "�".repeat(n + 1); | |
if (e.lastNeed > 2 && t.length > 2 && 128 != (192 & t[2])) return e.lastNeed = 2, "�".repeat(n + 2) | |
} | |
} | |
function s(e) { | |
var t = this.lastTotal - this.lastNeed, | |
n = a(this, e, t); | |
return void 0 !== n ? n : this.lastNeed <= e.length ? (e.copy(this.lastChar, t, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (e.copy(this.lastChar, t, 0, e.length), void(this.lastNeed -= e.length)) | |
} | |
function u(e, t) { | |
var n = A(this, e, t); | |
if (!this.lastNeed) return e.toString("utf8", t); | |
this.lastTotal = n; | |
var o = e.length - (n - this.lastNeed); | |
return e.copy(this.lastChar, 0, o), e.toString("utf8", t, o) | |
} | |
function c(e) { | |
var t = e && e.length ? this.write(e) : ""; | |
return this.lastNeed ? t + "�".repeat(this.lastTotal - this.lastNeed) : t | |
} | |
function g(e, t) { | |
if ((e.length - t) % 2 == 0) { | |
var n = e.toString("utf16le", t); | |
if (n) { | |
var o = n.charCodeAt(n.length - 1); | |
if (o >= 55296 && o <= 56319) return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = e[e.length - 2], this.lastChar[1] = e[e.length - 1], n.slice(0, -1) | |
} | |
return n | |
} | |
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = e[e.length - 1], e.toString("utf16le", t, e.length - 1) | |
} | |
function h(e) { | |
var t = e && e.length ? this.write(e) : ""; | |
if (this.lastNeed) { | |
var n = this.lastTotal - this.lastNeed; | |
return t + this.lastChar.toString("utf16le", 0, n) | |
} | |
return t | |
} | |
function d(e, t) { | |
var n = (e.length - t) % 3; | |
return 0 === n ? e.toString("base64", t) : (this.lastNeed = 3 - n, this.lastTotal = 3, 1 === n ? this.lastChar[0] = e[e.length - 1] : (this.lastChar[0] = e[e.length - 2], this.lastChar[1] = e[e.length - 1]), e.toString("base64", t, e.length - n)) | |
} | |
function f(e) { | |
var t = e && e.length ? this.write(e) : ""; | |
return this.lastNeed ? t + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t | |
} | |
function p(e) { | |
return e.toString(this.encoding) | |
} | |
function m(e) { | |
return e && e.length ? this.write(e) : "" | |
} | |
var B = n(31).Buffer, | |
E = B.isEncoding || function(e) { | |
switch ((e = "" + e) && e.toLowerCase()) { | |
case "hex": | |
case "utf8": | |
case "utf-8": | |
case "ascii": | |
case "binary": | |
case "base64": | |
case "ucs2": | |
case "ucs-2": | |
case "utf16le": | |
case "utf-16le": | |
case "raw": | |
return !0; | |
default: | |
return !1 | |
} | |
}; | |
t.StringDecoder = r, r.prototype.write = function(e) { | |
if (0 === e.length) return ""; | |
var t, n; | |
if (this.lastNeed) { | |
if (void 0 === (t = this.fillLast(e))) return ""; | |
n = this.lastNeed, this.lastNeed = 0 | |
} else n = 0; | |
return n < e.length ? t ? t + this.text(e, n) : this.text(e, n) : t || "" | |
}, r.prototype.end = c, r.prototype.text = u, r.prototype.fillLast = function(e) { | |
if (this.lastNeed <= e.length) return e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal); | |
e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length), this.lastNeed -= e.length | |
} | |
}, function(e, t) { | |
e.exports = function(e) { | |
return "object" == typeof e ? null !== e : "function" == typeof e | |
} | |
}, function(e, t, n) { | |
e.exports = !n(65)(function() { | |
return 7 != Object.defineProperty({}, "a", { | |
get: function() { | |
return 7 | |
} | |
}).a | |
}) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t, n, o, l) { | |
this.compressedSize = e, this.uncompressedSize = t, this.crc32 = n, this.compression = o, this.compressedContent = l | |
} | |
var l = n(24), | |
r = n(69), | |
i = n(70), | |
A = n(71), | |
i = n(70); | |
o.prototype = { | |
getContentWorker: function() { | |
var e = new r(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")), | |
t = this; | |
return e.on("end", function() { | |
if (this.streamInfo.data_length !== t.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch") | |
}), e | |
}, | |
getCompressedWorker: function() { | |
return new r(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression) | |
} | |
}, o.createWorkerFrom = function(e, t, n) { | |
return e.pipe(new A).pipe(new i("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new i("compressedSize")).withStreamInfo("compression", t) | |
}, e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t, n, o) { | |
var l = i, | |
r = o + n; | |
e ^= -1; | |
for (var A = o; A < r; A++) e = e >>> 8 ^ l[255 & (e ^ t[A])]; | |
return -1 ^ e | |
} | |
function l(e, t, n, o) { | |
var l = i, | |
r = o + n; | |
e ^= -1; | |
for (var A = o; A < r; A++) e = e >>> 8 ^ l[255 & (e ^ t.charCodeAt(A))]; | |
return -1 ^ e | |
} | |
var r = n(1), | |
i = function() { | |
for (var e, t = [], n = 0; n < 256; n++) { | |
e = n; | |
for (var o = 0; o < 8; o++) e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1; | |
t[n] = e | |
} | |
return t | |
}(); | |
e.exports = function(e, t) { | |
return void 0 !== e && e.length ? "string" !== r.getTypeOf(e) ? o(0 | t, e, e.length, 0) : l(0 | t, e, e.length, 0) : 0 | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
e.exports = { | |
2: "need dictionary", | |
1: "stream end", | |
0: "", | |
"-1": "file error", | |
"-2": "stream error", | |
"-3": "data error", | |
"-4": "insufficient memory", | |
"-5": "buffer error", | |
"-6": "incompatible version" | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
function o() { | |
function e(e, n, o) { | |
o = o || h; | |
var l = "string" == typeof e ? e : e.default, | |
r = "object" == typeof e && e.id || f(l), | |
i = o + ":" + r, | |
A = c[i] || (c[i] = t(l, r, o)); | |
return "string" == typeof A ? A : A(n) | |
} | |
function t(e, t, o) { | |
return e = n(e, t, o), i(o, r(e)) | |
} | |
function n(e, t, n) { | |
if (!d) return e; | |
n = a(n, d); | |
var o = d[n] && d[n][t]; | |
if (o && o.message && (o = o.message), null != o) return o; | |
var l = p || e; | |
"function" == typeof l && (l = l(e, t, n) || e); | |
var r = 'Translation for "' + t + '" in "' + n + '" is missing'; | |
if ("ignore" === m); | |
else { | |
if ("warning" !== m) throw new Error(r); | |
"undefined" != typeof console && console.warn(r) | |
} | |
return l | |
} | |
function o(e, t, n, o) { | |
o = o || h; | |
var l = g[e][n] || g[e].default, | |
r = l.cache || (l.cache = {}); | |
return (r[o] || (r[o] = "number" === e ? Intl.NumberFormat(o, l).format : Intl.DateTimeFormat(o, l).format))(t) | |
} | |
function u(e, t, n, o, l) { | |
"object" == typeof n && (l = o, o = n, n = 0); | |
var r = a(l || h, A), | |
i = A[r][e]; | |
return i ? o["=" + +t] || o[i(t - n)] || o.other : o.other | |
} | |
var c = {}, | |
g = l({}, s), | |
h = "en", | |
d = null, | |
f = function(e) { | |
return e | |
}, | |
p = null, | |
m = "warning"; | |
return e.setup = function(e) { | |
return e = e || {}, e.locale && (h = e.locale), "translations" in e && (d = e.translations), e.generateId && (f = e.generateId), "missingReplacement" in e && (p = e.missingReplacement), e.missingTranslation && (m = e.missingTranslation), e.formats && (e.formats.number && l(g.number, e.formats.number), e.formats.date && l(g.date, e.formats.date), e.formats.time && l(g.time, e.formats.time)), { | |
locale: h, | |
translations: d, | |
generateId: f, | |
missingReplacement: p, | |
missingTranslation: m, | |
formats: g | |
} | |
}, e.number = o.bind(null, "number"), e.date = o.bind(null, "date"), e.time = o.bind(null, "time"), e.select = function(e, t) { | |
return t[e] || t.other | |
}, e.plural = u.bind(null, "cardinal"), e.selectordinal = u.bind(null, "ordinal"), e | |
} | |
var l = n(179), | |
r = n(180), | |
i = n(181), | |
A = n(88), | |
a = n(87), | |
s = n(86); | |
e.exports = t = o(), t.namespace = o | |
}, function(e, t) { | |
e.exports = { | |
Aacute: "Á", | |
aacute: "á", | |
Abreve: "Ă", | |
abreve: "ă", | |
ac: "∾", | |
acd: "∿", | |
acE: "∾̳", | |
Acirc: "Â", | |
acirc: "â", | |
acute: "´", | |
Acy: "А", | |
acy: "а", | |
AElig: "Æ", | |
aelig: "æ", | |
af: "", | |
Afr: "𝔄", | |
afr: "𝔞", | |
Agrave: "À", | |
agrave: "à", | |
alefsym: "ℵ", | |
aleph: "ℵ", | |
Alpha: "Α", | |
alpha: "α", | |
Amacr: "Ā", | |
amacr: "ā", | |
amalg: "⨿", | |
amp: "&", | |
AMP: "&", | |
andand: "⩕", | |
And: "⩓", | |
and: "∧", | |
andd: "⩜", | |
andslope: "⩘", | |
andv: "⩚", | |
ang: "∠", | |
ange: "⦤", | |
angle: "∠", | |
angmsdaa: "⦨", | |
angmsdab: "⦩", | |
angmsdac: "⦪", | |
angmsdad: "⦫", | |
angmsdae: "⦬", | |
angmsdaf: "⦭", | |
angmsdag: "⦮", | |
angmsdah: "⦯", | |
angmsd: "∡", | |
angrt: "∟", | |
angrtvb: "⊾", | |
angrtvbd: "⦝", | |
angsph: "∢", | |
angst: "Å", | |
angzarr: "⍼", | |
Aogon: "Ą", | |
aogon: "ą", | |
Aopf: "𝔸", | |
aopf: "𝕒", | |
apacir: "⩯", | |
ap: "≈", | |
apE: "⩰", | |
ape: "≊", | |
apid: "≋", | |
apos: "'", | |
ApplyFunction: "", | |
approx: "≈", | |
approxeq: "≊", | |
Aring: "Å", | |
aring: "å", | |
Ascr: "𝒜", | |
ascr: "𝒶", | |
Assign: "≔", | |
ast: "*", | |
asymp: "≈", | |
asympeq: "≍", | |
Atilde: "Ã", | |
atilde: "ã", | |
Auml: "Ä", | |
auml: "ä", | |
awconint: "∳", | |
awint: "⨑", | |
backcong: "≌", | |
backepsilon: "϶", | |
backprime: "‵", | |
backsim: "∽", | |
backsimeq: "⋍", | |
Backslash: "∖", | |
Barv: "⫧", | |
barvee: "⊽", | |
barwed: "⌅", | |
Barwed: "⌆", | |
barwedge: "⌅", | |
bbrk: "⎵", | |
bbrktbrk: "⎶", | |
bcong: "≌", | |
Bcy: "Б", | |
bcy: "б", | |
bdquo: "„", | |
becaus: "∵", | |
because: "∵", | |
Because: "∵", | |
bemptyv: "⦰", | |
bepsi: "϶", | |
bernou: "ℬ", | |
Bernoullis: "ℬ", | |
Beta: "Β", | |
beta: "β", | |
beth: "ℶ", | |
between: "≬", | |
Bfr: "𝔅", | |
bfr: "𝔟", | |
bigcap: "⋂", | |
bigcirc: "◯", | |
bigcup: "⋃", | |
bigodot: "⨀", | |
bigoplus: "⨁", | |
bigotimes: "⨂", | |
bigsqcup: "⨆", | |
bigstar: "★", | |
bigtriangledown: "▽", | |
bigtriangleup: "△", | |
biguplus: "⨄", | |
bigvee: "⋁", | |
bigwedge: "⋀", | |
bkarow: "⤍", | |
blacklozenge: "⧫", | |
blacksquare: "▪", | |
blacktriangle: "▴", | |
blacktriangledown: "▾", | |
blacktriangleleft: "◂", | |
blacktriangleright: "▸", | |
blank: "␣", | |
blk12: "▒", | |
blk14: "░", | |
blk34: "▓", | |
block: "█", | |
bne: "=⃥", | |
bnequiv: "≡⃥", | |
bNot: "⫭", | |
bnot: "⌐", | |
Bopf: "𝔹", | |
bopf: "𝕓", | |
bot: "⊥", | |
bottom: "⊥", | |
bowtie: "⋈", | |
boxbox: "⧉", | |
boxdl: "┐", | |
boxdL: "╕", | |
boxDl: "╖", | |
boxDL: "╗", | |
boxdr: "┌", | |
boxdR: "╒", | |
boxDr: "╓", | |
boxDR: "╔", | |
boxh: "─", | |
boxH: "═", | |
boxhd: "┬", | |
boxHd: "╤", | |
boxhD: "╥", | |
boxHD: "╦", | |
boxhu: "┴", | |
boxHu: "╧", | |
boxhU: "╨", | |
boxHU: "╩", | |
boxminus: "⊟", | |
boxplus: "⊞", | |
boxtimes: "⊠", | |
boxul: "┘", | |
boxuL: "╛", | |
boxUl: "╜", | |
boxUL: "╝", | |
boxur: "└", | |
boxuR: "╘", | |
boxUr: "╙", | |
boxUR: "╚", | |
boxv: "│", | |
boxV: "║", | |
boxvh: "┼", | |
boxvH: "╪", | |
boxVh: "╫", | |
boxVH: "╬", | |
boxvl: "┤", | |
boxvL: "╡", | |
boxVl: "╢", | |
boxVL: "╣", | |
boxvr: "├", | |
boxvR: "╞", | |
boxVr: "╟", | |
boxVR: "╠", | |
bprime: "‵", | |
breve: "˘", | |
Breve: "˘", | |
brvbar: "¦", | |
bscr: "𝒷", | |
Bscr: "ℬ", | |
bsemi: "⁏", | |
bsim: "∽", | |
bsime: "⋍", | |
bsolb: "⧅", | |
bsol: "\\", | |
bsolhsub: "⟈", | |
bull: "•", | |
bullet: "•", | |
bump: "≎", | |
bumpE: "⪮", | |
bumpe: "≏", | |
Bumpeq: "≎", | |
bumpeq: "≏", | |
Cacute: "Ć", | |
cacute: "ć", | |
capand: "⩄", | |
capbrcup: "⩉", | |
capcap: "⩋", | |
cap: "∩", | |
Cap: "⋒", | |
capcup: "⩇", | |
capdot: "⩀", | |
CapitalDifferentialD: "ⅅ", | |
caps: "∩︀", | |
caret: "⁁", | |
caron: "ˇ", | |
Cayleys: "ℭ", | |
ccaps: "⩍", | |
Ccaron: "Č", | |
ccaron: "č", | |
Ccedil: "Ç", | |
ccedil: "ç", | |
Ccirc: "Ĉ", | |
ccirc: "ĉ", | |
Cconint: "∰", | |
ccups: "⩌", | |
ccupssm: "⩐", | |
Cdot: "Ċ", | |
cdot: "ċ", | |
cedil: "¸", | |
Cedilla: "¸", | |
cemptyv: "⦲", | |
cent: "¢", | |
centerdot: "·", | |
CenterDot: "·", | |
cfr: "𝔠", | |
Cfr: "ℭ", | |
CHcy: "Ч", | |
chcy: "ч", | |
check: "✓", | |
checkmark: "✓", | |
Chi: "Χ", | |
chi: "χ", | |
circ: "ˆ", | |
circeq: "≗", | |
circlearrowleft: "↺", | |
circlearrowright: "↻", | |
circledast: "⊛", | |
circledcirc: "⊚", | |
circleddash: "⊝", | |
CircleDot: "⊙", | |
circledR: "®", | |
circledS: "Ⓢ", | |
CircleMinus: "⊖", | |
CirclePlus: "⊕", | |
CircleTimes: "⊗", | |
cir: "○", | |
cirE: "⧃", | |
cire: "≗", | |
cirfnint: "⨐", | |
cirmid: "⫯", | |
cirscir: "⧂", | |
ClockwiseContourIntegral: "∲", | |
CloseCurlyDoubleQuote: "”", | |
CloseCurlyQuote: "’", | |
clubs: "♣", | |
clubsuit: "♣", | |
colon: ":", | |
Colon: "∷", | |
Colone: "⩴", | |
colone: "≔", | |
coloneq: "≔", | |
comma: ",", | |
commat: "@", | |
comp: "∁", | |
compfn: "∘", | |
complement: "∁", | |
complexes: "ℂ", | |
cong: "≅", | |
congdot: "⩭", | |
Congruent: "≡", | |
conint: "∮", | |
Conint: "∯", | |
ContourIntegral: "∮", | |
copf: "𝕔", | |
Copf: "ℂ", | |
coprod: "∐", | |
Coproduct: "∐", | |
copy: "©", | |
COPY: "©", | |
copysr: "℗", | |
CounterClockwiseContourIntegral: "∳", | |
crarr: "↵", | |
cross: "✗", | |
Cross: "⨯", | |
Cscr: "𝒞", | |
cscr: "𝒸", | |
csub: "⫏", | |
csube: "⫑", | |
csup: "⫐", | |
csupe: "⫒", | |
ctdot: "⋯", | |
cudarrl: "⤸", | |
cudarrr: "⤵", | |
cuepr: "⋞", | |
cuesc: "⋟", | |
cularr: "↶", | |
cularrp: "⤽", | |
cupbrcap: "⩈", | |
cupcap: "⩆", | |
CupCap: "≍", | |
cup: "∪", | |
Cup: "⋓", | |
cupcup: "⩊", | |
cupdot: "⊍", | |
cupor: "⩅", | |
cups: "∪︀", | |
curarr: "↷", | |
curarrm: "⤼", | |
curlyeqprec: "⋞", | |
curlyeqsucc: "⋟", | |
curlyvee: "⋎", | |
curlywedge: "⋏", | |
curren: "¤", | |
curvearrowleft: "↶", | |
curvearrowright: "↷", | |
cuvee: "⋎", | |
cuwed: "⋏", | |
cwconint: "∲", | |
cwint: "∱", | |
cylcty: "⌭", | |
dagger: "†", | |
Dagger: "‡", | |
daleth: "ℸ", | |
darr: "↓", | |
Darr: "↡", | |
dArr: "⇓", | |
dash: "‐", | |
Dashv: "⫤", | |
dashv: "⊣", | |
dbkarow: "⤏", | |
dblac: "˝", | |
Dcaron: "Ď", | |
dcaron: "ď", | |
Dcy: "Д", | |
dcy: "д", | |
ddagger: "‡", | |
ddarr: "⇊", | |
DD: "ⅅ", | |
dd: "ⅆ", | |
DDotrahd: "⤑", | |
ddotseq: "⩷", | |
deg: "°", | |
Del: "∇", | |
Delta: "Δ", | |
delta: "δ", | |
demptyv: "⦱", | |
dfisht: "⥿", | |
Dfr: "𝔇", | |
dfr: "𝔡", | |
dHar: "⥥", | |
dharl: "⇃", | |
dharr: "⇂", | |
DiacriticalAcute: "´", | |
DiacriticalDot: "˙", | |
DiacriticalDoubleAcute: "˝", | |
DiacriticalGrave: "`", | |
DiacriticalTilde: "˜", | |
diam: "⋄", | |
diamond: "⋄", | |
Diamond: "⋄", | |
diamondsuit: "♦", | |
diams: "♦", | |
die: "¨", | |
DifferentialD: "ⅆ", | |
digamma: "ϝ", | |
disin: "⋲", | |
div: "÷", | |
divide: "÷", | |
divideontimes: "⋇", | |
divonx: "⋇", | |
DJcy: "Ђ", | |
djcy: "ђ", | |
dlcorn: "⌞", | |
dlcrop: "⌍", | |
dollar: "$", | |
Dopf: "𝔻", | |
dopf: "𝕕", | |
Dot: "¨", | |
dot: "˙", | |
DotDot: "⃜", | |
doteq: "≐", | |
doteqdot: "≑", | |
DotEqual: "≐", | |
dotminus: "∸", | |
dotplus: "∔", | |
dotsquare: "⊡", | |
doublebarwedge: "⌆", | |
DoubleContourIntegral: "∯", | |
DoubleDot: "¨", | |
DoubleDownArrow: "⇓", | |
DoubleLeftArrow: "⇐", | |
DoubleLeftRightArrow: "⇔", | |
DoubleLeftTee: "⫤", | |
DoubleLongLeftArrow: "⟸", | |
DoubleLongLeftRightArrow: "⟺", | |
DoubleLongRightArrow: "⟹", | |
DoubleRightArrow: "⇒", | |
DoubleRightTee: "⊨", | |
DoubleUpArrow: "⇑", | |
DoubleUpDownArrow: "⇕", | |
DoubleVerticalBar: "∥", | |
DownArrowBar: "⤓", | |
downarrow: "↓", | |
DownArrow: "↓", | |
Downarrow: "⇓", | |
DownArrowUpArrow: "⇵", | |
DownBreve: "̑", | |
downdownarrows: "⇊", | |
downharpoonleft: "⇃", | |
downharpoonright: "⇂", | |
DownLeftRightVector: "⥐", | |
DownLeftTeeVector: "⥞", | |
DownLeftVectorBar: "⥖", | |
DownLeftVector: "↽", | |
DownRightTeeVector: "⥟", | |
DownRightVectorBar: "⥗", | |
DownRightVector: "⇁", | |
DownTeeArrow: "↧", | |
DownTee: "⊤", | |
drbkarow: "⤐", | |
drcorn: "⌟", | |
drcrop: "⌌", | |
Dscr: "𝒟", | |
dscr: "𝒹", | |
DScy: "Ѕ", | |
dscy: "ѕ", | |
dsol: "⧶", | |
Dstrok: "Đ", | |
dstrok: "đ", | |
dtdot: "⋱", | |
dtri: "▿", | |
dtrif: "▾", | |
duarr: "⇵", | |
duhar: "⥯", | |
dwangle: "⦦", | |
DZcy: "Џ", | |
dzcy: "џ", | |
dzigrarr: "⟿", | |
Eacute: "É", | |
eacute: "é", | |
easter: "⩮", | |
Ecaron: "Ě", | |
ecaron: "ě", | |
Ecirc: "Ê", | |
ecirc: "ê", | |
ecir: "≖", | |
ecolon: "≕", | |
Ecy: "Э", | |
ecy: "э", | |
eDDot: "⩷", | |
Edot: "Ė", | |
edot: "ė", | |
eDot: "≑", | |
ee: "ⅇ", | |
efDot: "≒", | |
Efr: "𝔈", | |
efr: "𝔢", | |
eg: "⪚", | |
Egrave: "È", | |
egrave: "è", | |
egs: "⪖", | |
egsdot: "⪘", | |
el: "⪙", | |
Element: "∈", | |
elinters: "⏧", | |
ell: "ℓ", | |
els: "⪕", | |
elsdot: "⪗", | |
Emacr: "Ē", | |
emacr: "ē", | |
empty: "∅", | |
emptyset: "∅", | |
EmptySmallSquare: "◻", | |
emptyv: "∅", | |
EmptyVerySmallSquare: "▫", | |
emsp13: " ", | |
emsp14: " ", | |
emsp: " ", | |
ENG: "Ŋ", | |
eng: "ŋ", | |
ensp: " ", | |
Eogon: "Ę", | |
eogon: "ę", | |
Eopf: "𝔼", | |
eopf: "𝕖", | |
epar: "⋕", | |
eparsl: "⧣", | |
eplus: "⩱", | |
epsi: "ε", | |
Epsilon: "Ε", | |
epsilon: "ε", | |
epsiv: "ϵ", | |
eqcirc: "≖", | |
eqcolon: "≕", | |
eqsim: "≂", | |
eqslantgtr: "⪖", | |
eqslantless: "⪕", | |
Equal: "⩵", | |
equals: "=", | |
EqualTilde: "≂", | |
equest: "≟", | |
Equilibrium: "⇌", | |
equiv: "≡", | |
equivDD: "⩸", | |
eqvparsl: "⧥", | |
erarr: "⥱", | |
erDot: "≓", | |
escr: "ℯ", | |
Escr: "ℰ", | |
esdot: "≐", | |
Esim: "⩳", | |
esim: "≂", | |
Eta: "Η", | |
eta: "η", | |
ETH: "Ð", | |
eth: "ð", | |
Euml: "Ë", | |
euml: "ë", | |
euro: "€", | |
excl: "!", | |
exist: "∃", | |
Exists: "∃", | |
expectation: "ℰ", | |
exponentiale: "ⅇ", | |
ExponentialE: "ⅇ", | |
fallingdotseq: "≒", | |
Fcy: "Ф", | |
fcy: "ф", | |
female: "♀", | |
ffilig: "ffi", | |
fflig: "ff", | |
ffllig: "ffl", | |
Ffr: "𝔉", | |
ffr: "𝔣", | |
filig: "fi", | |
FilledSmallSquare: "◼", | |
FilledVerySmallSquare: "▪", | |
fjlig: "fj", | |
flat: "♭", | |
fllig: "fl", | |
fltns: "▱", | |
fnof: "ƒ", | |
Fopf: "𝔽", | |
fopf: "𝕗", | |
forall: "∀", | |
ForAll: "∀", | |
fork: "⋔", | |
forkv: "⫙", | |
Fouriertrf: "ℱ", | |
fpartint: "⨍", | |
frac12: "½", | |
frac13: "⅓", | |
frac14: "¼", | |
frac15: "⅕", | |
frac16: "⅙", | |
frac18: "⅛", | |
frac23: "⅔", | |
frac25: "⅖", | |
frac34: "¾", | |
frac35: "⅗", | |
frac38: "⅜", | |
frac45: "⅘", | |
frac56: "⅚", | |
frac58: "⅝", | |
frac78: "⅞", | |
frasl: "⁄", | |
frown: "⌢", | |
fscr: "𝒻", | |
Fscr: "ℱ", | |
gacute: "ǵ", | |
Gamma: "Γ", | |
gamma: "γ", | |
Gammad: "Ϝ", | |
gammad: "ϝ", | |
gap: "⪆", | |
Gbreve: "Ğ", | |
gbreve: "ğ", | |
Gcedil: "Ģ", | |
Gcirc: "Ĝ", | |
gcirc: "ĝ", | |
Gcy: "Г", | |
gcy: "г", | |
Gdot: "Ġ", | |
gdot: "ġ", | |
ge: "≥", | |
gE: "≧", | |
gEl: "⪌", | |
gel: "⋛", | |
geq: "≥", | |
geqq: "≧", | |
geqslant: "⩾", | |
gescc: "⪩", | |
ges: "⩾", | |
gesdot: "⪀", | |
gesdoto: "⪂", | |
gesdotol: "⪄", | |
gesl: "⋛︀", | |
gesles: "⪔", | |
Gfr: "𝔊", | |
gfr: "𝔤", | |
gg: "≫", | |
Gg: "⋙", | |
ggg: "⋙", | |
gimel: "ℷ", | |
GJcy: "Ѓ", | |
gjcy: "ѓ", | |
gla: "⪥", | |
gl: "≷", | |
glE: "⪒", | |
glj: "⪤", | |
gnap: "⪊", | |
gnapprox: "⪊", | |
gne: "⪈", | |
gnE: "≩", | |
gneq: "⪈", | |
gneqq: "≩", | |
gnsim: "⋧", | |
Gopf: "𝔾", | |
gopf: "𝕘", | |
grave: "`", | |
GreaterEqual: "≥", | |
GreaterEqualLess: "⋛", | |
GreaterFullEqual: "≧", | |
GreaterGreater: "⪢", | |
GreaterLess: "≷", | |
GreaterSlantEqual: "⩾", | |
GreaterTilde: "≳", | |
Gscr: "𝒢", | |
gscr: "ℊ", | |
gsim: "≳", | |
gsime: "⪎", | |
gsiml: "⪐", | |
gtcc: "⪧", | |
gtcir: "⩺", | |
gt: ">", | |
GT: ">", | |
Gt: "≫", | |
gtdot: "⋗", | |
gtlPar: "⦕", | |
gtquest: "⩼", | |
gtrapprox: "⪆", | |
gtrarr: "⥸", | |
gtrdot: "⋗", | |
gtreqless: "⋛", | |
gtreqqless: "⪌", | |
gtrless: "≷", | |
gtrsim: "≳", | |
gvertneqq: "≩︀", | |
gvnE: "≩︀", | |
Hacek: "ˇ", | |
hairsp: " ", | |
half: "½", | |
hamilt: "ℋ", | |
HARDcy: "Ъ", | |
hardcy: "ъ", | |
harrcir: "⥈", | |
harr: "↔", | |
hArr: "⇔", | |
harrw: "↭", | |
Hat: "^", | |
hbar: "ℏ", | |
Hcirc: "Ĥ", | |
hcirc: "ĥ", | |
hearts: "♥", | |
heartsuit: "♥", | |
hellip: "…", | |
hercon: "⊹", | |
hfr: "𝔥", | |
Hfr: "ℌ", | |
HilbertSpace: "ℋ", | |
hksearow: "⤥", | |
hkswarow: "⤦", | |
hoarr: "⇿", | |
homtht: "∻", | |
hookleftarrow: "↩", | |
hookrightarrow: "↪", | |
hopf: "𝕙", | |
Hopf: "ℍ", | |
horbar: "―", | |
HorizontalLine: "─", | |
hscr: "𝒽", | |
Hscr: "ℋ", | |
hslash: "ℏ", | |
Hstrok: "Ħ", | |
hstrok: "ħ", | |
HumpDownHump: "≎", | |
HumpEqual: "≏", | |
hybull: "⁃", | |
hyphen: "‐", | |
Iacute: "Í", | |
iacute: "í", | |
ic: "", | |
Icirc: "Î", | |
icirc: "î", | |
Icy: "И", | |
icy: "и", | |
Idot: "İ", | |
IEcy: "Е", | |
iecy: "е", | |
iexcl: "¡", | |
iff: "⇔", | |
ifr: "𝔦", | |
Ifr: "ℑ", | |
Igrave: "Ì", | |
igrave: "ì", | |
ii: "ⅈ", | |
iiiint: "⨌", | |
iiint: "∭", | |
iinfin: "⧜", | |
iiota: "℩", | |
IJlig: "IJ", | |
ijlig: "ij", | |
Imacr: "Ī", | |
imacr: "ī", | |
image: "ℑ", | |
ImaginaryI: "ⅈ", | |
imagline: "ℐ", | |
imagpart: "ℑ", | |
imath: "ı", | |
Im: "ℑ", | |
imof: "⊷", | |
imped: "Ƶ", | |
Implies: "⇒", | |
incare: "℅", | |
in : "∈", | |
infin: "∞", | |
infintie: "⧝", | |
inodot: "ı", | |
intcal: "⊺", | |
int: "∫", | |
Int: "∬", | |
integers: "ℤ", | |
Integral: "∫", | |
intercal: "⊺", | |
Intersection: "⋂", | |
intlarhk: "⨗", | |
intprod: "⨼", | |
InvisibleComma: "", | |
InvisibleTimes: "", | |
IOcy: "Ё", | |
iocy: "ё", | |
Iogon: "Į", | |
iogon: "į", | |
Iopf: "𝕀", | |
iopf: "𝕚", | |
Iota: "Ι", | |
iota: "ι", | |
iprod: "⨼", | |
iquest: "¿", | |
iscr: "𝒾", | |
Iscr: "ℐ", | |
isin: "∈", | |
isindot: "⋵", | |
isinE: "⋹", | |
isins: "⋴", | |
isinsv: "⋳", | |
isinv: "∈", | |
it: "", | |
Itilde: "Ĩ", | |
itilde: "ĩ", | |
Iukcy: "І", | |
iukcy: "і", | |
Iuml: "Ï", | |
iuml: "ï", | |
Jcirc: "Ĵ", | |
jcirc: "ĵ", | |
Jcy: "Й", | |
jcy: "й", | |
Jfr: "𝔍", | |
jfr: "𝔧", | |
jmath: "ȷ", | |
Jopf: "𝕁", | |
jopf: "𝕛", | |
Jscr: "𝒥", | |
jscr: "𝒿", | |
Jsercy: "Ј", | |
jsercy: "ј", | |
Jukcy: "Є", | |
jukcy: "є", | |
Kappa: "Κ", | |
kappa: "κ", | |
kappav: "ϰ", | |
Kcedil: "Ķ", | |
kcedil: "ķ", | |
Kcy: "К", | |
kcy: "к", | |
Kfr: "𝔎", | |
kfr: "𝔨", | |
kgreen: "ĸ", | |
KHcy: "Х", | |
khcy: "х", | |
KJcy: "Ќ", | |
kjcy: "ќ", | |
Kopf: "𝕂", | |
kopf: "𝕜", | |
Kscr: "𝒦", | |
kscr: "𝓀", | |
lAarr: "⇚", | |
Lacute: "Ĺ", | |
lacute: "ĺ", | |
laemptyv: "⦴", | |
lagran: "ℒ", | |
Lambda: "Λ", | |
lambda: "λ", | |
lang: "⟨", | |
Lang: "⟪", | |
langd: "⦑", | |
langle: "⟨", | |
lap: "⪅", | |
Laplacetrf: "ℒ", | |
laquo: "«", | |
larrb: "⇤", | |
larrbfs: "⤟", | |
larr: "←", | |
Larr: "↞", | |
lArr: "⇐", | |
larrfs: "⤝", | |
larrhk: "↩", | |
larrlp: "↫", | |
larrpl: "⤹", | |
larrsim: "⥳", | |
larrtl: "↢", | |
latail: "⤙", | |
lAtail: "⤛", | |
lat: "⪫", | |
late: "⪭", | |
lates: "⪭︀", | |
lbarr: "⤌", | |
lBarr: "⤎", | |
lbbrk: "❲", | |
lbrace: "{", | |
lbrack: "[", | |
lbrke: "⦋", | |
lbrksld: "⦏", | |
lbrkslu: "⦍", | |
Lcaron: "Ľ", | |
lcaron: "ľ", | |
Lcedil: "Ļ", | |
lcedil: "ļ", | |
lceil: "⌈", | |
lcub: "{", | |
Lcy: "Л", | |
lcy: "л", | |
ldca: "⤶", | |
ldquo: "“", | |
ldquor: "„", | |
ldrdhar: "⥧", | |
ldrushar: "⥋", | |
ldsh: "↲", | |
le: "≤", | |
lE: "≦", | |
LeftAngleBracket: "⟨", | |
LeftArrowBar: "⇤", | |
leftarrow: "←", | |
LeftArrow: "←", | |
Leftarrow: "⇐", | |
LeftArrowRightArrow: "⇆", | |
leftarrowtail: "↢", | |
LeftCeiling: "⌈", | |
LeftDoubleBracket: "⟦", | |
LeftDownTeeVector: "⥡", | |
LeftDownVectorBar: "⥙", | |
LeftDownVector: "⇃", | |
LeftFloor: "⌊", | |
leftharpoondown: "↽", | |
leftharpoonup: "↼", | |
leftleftarrows: "⇇", | |
leftrightarrow: "↔", | |
LeftRightArrow: "↔", | |
Leftrightarrow: "⇔", | |
leftrightarrows: "⇆", | |
leftrightharpoons: "⇋", | |
leftrightsquigarrow: "↭", | |
LeftRightVector: "⥎", | |
LeftTeeArrow: "↤", | |
LeftTee: "⊣", | |
LeftTeeVector: "⥚", | |
leftthreetimes: "⋋", | |
LeftTriangleBar: "⧏", | |
LeftTriangle: "⊲", | |
LeftTriangleEqual: "⊴", | |
LeftUpDownVector: "⥑", | |
LeftUpTeeVector: "⥠", | |
LeftUpVectorBar: "⥘", | |
LeftUpVector: "↿", | |
LeftVectorBar: "⥒", | |
LeftVector: "↼", | |
lEg: "⪋", | |
leg: "⋚", | |
leq: "≤", | |
leqq: "≦", | |
leqslant: "⩽", | |
lescc: "⪨", | |
les: "⩽", | |
lesdot: "⩿", | |
lesdoto: "⪁", | |
lesdotor: "⪃", | |
lesg: "⋚︀", | |
lesges: "⪓", | |
lessapprox: "⪅", | |
lessdot: "⋖", | |
lesseqgtr: "⋚", | |
lesseqqgtr: "⪋", | |
LessEqualGreater: "⋚", | |
LessFullEqual: "≦", | |
LessGreater: "≶", | |
lessgtr: "≶", | |
LessLess: "⪡", | |
lesssim: "≲", | |
LessSlantEqual: "⩽", | |
LessTilde: "≲", | |
lfisht: "⥼", | |
lfloor: "⌊", | |
Lfr: "𝔏", | |
lfr: "𝔩", | |
lg: "≶", | |
lgE: "⪑", | |
lHar: "⥢", | |
lhard: "↽", | |
lharu: "↼", | |
lharul: "⥪", | |
lhblk: "▄", | |
LJcy: "Љ", | |
ljcy: "љ", | |
llarr: "⇇", | |
ll: "≪", | |
Ll: "⋘", | |
llcorner: "⌞", | |
Lleftarrow: "⇚", | |
llhard: "⥫", | |
lltri: "◺", | |
Lmidot: "Ŀ", | |
lmidot: "ŀ", | |
lmoustache: "⎰", | |
lmoust: "⎰", | |
lnap: "⪉", | |
lnapprox: "⪉", | |
lne: "⪇", | |
lnE: "≨", | |
lneq: "⪇", | |
lneqq: "≨", | |
lnsim: "⋦", | |
loang: "⟬", | |
loarr: "⇽", | |
lobrk: "⟦", | |
longleftarrow: "⟵", | |
LongLeftArrow: "⟵", | |
Longleftarrow: "⟸", | |
longleftrightarrow: "⟷", | |
LongLeftRightArrow: "⟷", | |
Longleftrightarrow: "⟺", | |
longmapsto: "⟼", | |
longrightarrow: "⟶", | |
LongRightArrow: "⟶", | |
Longrightarrow: "⟹", | |
looparrowleft: "↫", | |
looparrowright: "↬", | |
lopar: "⦅", | |
Lopf: "𝕃", | |
lopf: "𝕝", | |
loplus: "⨭", | |
lotimes: "⨴", | |
lowast: "∗", | |
lowbar: "_", | |
LowerLeftArrow: "↙", | |
LowerRightArrow: "↘", | |
loz: "◊", | |
lozenge: "◊", | |
lozf: "⧫", | |
lpar: "(", | |
lparlt: "⦓", | |
lrarr: "⇆", | |
lrcorner: "⌟", | |
lrhar: "⇋", | |
lrhard: "⥭", | |
lrm: "", | |
lrtri: "⊿", | |
lsaquo: "‹", | |
lscr: "𝓁", | |
Lscr: "ℒ", | |
lsh: "↰", | |
Lsh: "↰", | |
lsim: "≲", | |
lsime: "⪍", | |
lsimg: "⪏", | |
lsqb: "[", | |
lsquo: "‘", | |
lsquor: "‚", | |
Lstrok: "Ł", | |
lstrok: "ł", | |
ltcc: "⪦", | |
ltcir: "⩹", | |
lt: "<", | |
LT: "<", | |
Lt: "≪", | |
ltdot: "⋖", | |
lthree: "⋋", | |
ltimes: "⋉", | |
ltlarr: "⥶", | |
ltquest: "⩻", | |
ltri: "◃", | |
ltrie: "⊴", | |
ltrif: "◂", | |
ltrPar: "⦖", | |
lurdshar: "⥊", | |
luruhar: "⥦", | |
lvertneqq: "≨︀", | |
lvnE: "≨︀", | |
macr: "¯", | |
male: "♂", | |
malt: "✠", | |
maltese: "✠", | |
Map: "⤅", | |
map: "↦", | |
mapsto: "↦", | |
mapstodown: "↧", | |
mapstoleft: "↤", | |
mapstoup: "↥", | |
marker: "▮", | |
mcomma: "⨩", | |
Mcy: "М", | |
mcy: "м", | |
mdash: "—", | |
mDDot: "∺", | |
measuredangle: "∡", | |
MediumSpace: " ", | |
Mellintrf: "ℳ", | |
Mfr: "𝔐", | |
mfr: "𝔪", | |
mho: "℧", | |
micro: "µ", | |
midast: "*", | |
midcir: "⫰", | |
mid: "∣", | |
middot: "·", | |
minusb: "⊟", | |
minus: "−", | |
minusd: "∸", | |
minusdu: "⨪", | |
MinusPlus: "∓", | |
mlcp: "⫛", | |
mldr: "…", | |
mnplus: "∓", | |
models: "⊧", | |
Mopf: "𝕄", | |
mopf: "𝕞", | |
mp: "∓", | |
mscr: "𝓂", | |
Mscr: "ℳ", | |
mstpos: "∾", | |
Mu: "Μ", | |
mu: "μ", | |
multimap: "⊸", | |
mumap: "⊸", | |
nabla: "∇", | |
Nacute: "Ń", | |
nacute: "ń", | |
nang: "∠⃒", | |
nap: "≉", | |
napE: "⩰̸", | |
napid: "≋̸", | |
napos: "ʼn", | |
napprox: "≉", | |
natural: "♮", | |
naturals: "ℕ", | |
natur: "♮", | |
nbsp: " ", | |
nbump: "≎̸", | |
nbumpe: "≏̸", | |
ncap: "⩃", | |
Ncaron: "Ň", | |
ncaron: "ň", | |
Ncedil: "Ņ", | |
ncedil: "ņ", | |
ncong: "≇", | |
ncongdot: "⩭̸", | |
ncup: "⩂", | |
Ncy: "Н", | |
ncy: "н", | |
ndash: "–", | |
nearhk: "⤤", | |
nearr: "↗", | |
neArr: "⇗", | |
nearrow: "↗", | |
ne: "≠", | |
nedot: "≐̸", | |
NegativeMediumSpace: "", | |
NegativeThickSpace: "", | |
NegativeThinSpace: "", | |
NegativeVeryThinSpace: "", | |
nequiv: "≢", | |
nesear: "⤨", | |
nesim: "≂̸", | |
NestedGreaterGreater: "≫", | |
NestedLessLess: "≪", | |
NewLine: "\n", | |
nexist: "∄", | |
nexists: "∄", | |
Nfr: "𝔑", | |
nfr: "𝔫", | |
ngE: "≧̸", | |
nge: "≱", | |
ngeq: "≱", | |
ngeqq: "≧̸", | |
ngeqslant: "⩾̸", | |
nges: "⩾̸", | |
nGg: "⋙̸", | |
ngsim: "≵", | |
nGt: "≫⃒", | |
ngt: "≯", | |
ngtr: "≯", | |
nGtv: "≫̸", | |
nharr: "↮", | |
nhArr: "⇎", | |
nhpar: "⫲", | |
ni: "∋", | |
nis: "⋼", | |
nisd: "⋺", | |
niv: "∋", | |
NJcy: "Њ", | |
njcy: "њ", | |
nlarr: "↚", | |
nlArr: "⇍", | |
nldr: "‥", | |
nlE: "≦̸", | |
nle: "≰", | |
nleftarrow: "↚", | |
nLeftarrow: "⇍", | |
nleftrightarrow: "↮", | |
nLeftrightarrow: "⇎", | |
nleq: "≰", | |
nleqq: "≦̸", | |
nleqslant: "⩽̸", | |
nles: "⩽̸", | |
nless: "≮", | |
nLl: "⋘̸", | |
nlsim: "≴", | |
nLt: "≪⃒", | |
nlt: "≮", | |
nltri: "⋪", | |
nltrie: "⋬", | |
nLtv: "≪̸", | |
nmid: "∤", | |
NoBreak: "", | |
NonBreakingSpace: " ", | |
nopf: "𝕟", | |
Nopf: "ℕ", | |
Not: "⫬", | |
not: "¬", | |
NotCongruent: "≢", | |
NotCupCap: "≭", | |
NotDoubleVerticalBar: "∦", | |
NotElement: "∉", | |
NotEqual: "≠", | |
NotEqualTilde: "≂̸", | |
NotExists: "∄", | |
NotGreater: "≯", | |
NotGreaterEqual: "≱", | |
NotGreaterFullEqual: "≧̸", | |
NotGreaterGreater: "≫̸", | |
NotGreaterLess: "≹", | |
NotGreaterSlantEqual: "⩾̸", | |
NotGreaterTilde: "≵", | |
NotHumpDownHump: "≎̸", | |
NotHumpEqual: "≏̸", | |
notin: "∉", | |
notindot: "⋵̸", | |
notinE: "⋹̸", | |
notinva: "∉", | |
notinvb: "⋷", | |
notinvc: "⋶", | |
NotLeftTriangleBar: "⧏̸", | |
NotLeftTriangle: "⋪", | |
NotLeftTriangleEqual: "⋬", | |
NotLess: "≮", | |
NotLessEqual: "≰", | |
NotLessGreater: "≸", | |
NotLessLess: "≪̸", | |
NotLessSlantEqual: "⩽̸", | |
NotLessTilde: "≴", | |
NotNestedGreaterGreater: "⪢̸", | |
NotNestedLessLess: "⪡̸", | |
notni: "∌", | |
notniva: "∌", | |
notnivb: "⋾", | |
notnivc: "⋽", | |
NotPrecedes: "⊀", | |
NotPrecedesEqual: "⪯̸", | |
NotPrecedesSlantEqual: "⋠", | |
NotReverseElement: "∌", | |
NotRightTriangleBar: "⧐̸", | |
NotRightTriangle: "⋫", | |
NotRightTriangleEqual: "⋭", | |
NotSquareSubset: "⊏̸", | |
NotSquareSubsetEqual: "⋢", | |
NotSquareSuperset: "⊐̸", | |
NotSquareSupersetEqual: "⋣", | |
NotSubset: "⊂⃒", | |
NotSubsetEqual: "⊈", | |
NotSucceeds: "⊁", | |
NotSucceedsEqual: "⪰̸", | |
NotSucceedsSlantEqual: "⋡", | |
NotSucceedsTilde: "≿̸", | |
NotSuperset: "⊃⃒", | |
NotSupersetEqual: "⊉", | |
NotTilde: "≁", | |
NotTildeEqual: "≄", | |
NotTildeFullEqual: "≇", | |
NotTildeTilde: "≉", | |
NotVerticalBar: "∤", | |
nparallel: "∦", | |
npar: "∦", | |
nparsl: "⫽⃥", | |
npart: "∂̸", | |
npolint: "⨔", | |
npr: "⊀", | |
nprcue: "⋠", | |
nprec: "⊀", | |
npreceq: "⪯̸", | |
npre: "⪯̸", | |
nrarrc: "⤳̸", | |
nrarr: "↛", | |
nrArr: "⇏", | |
nrarrw: "↝̸", | |
nrightarrow: "↛", | |
nRightarrow: "⇏", | |
nrtri: "⋫", | |
nrtrie: "⋭", | |
nsc: "⊁", | |
nsccue: "⋡", | |
nsce: "⪰̸", | |
Nscr: "𝒩", | |
nscr: "𝓃", | |
nshortmid: "∤", | |
nshortparallel: "∦", | |
nsim: "≁", | |
nsime: "≄", | |
nsimeq: "≄", | |
nsmid: "∤", | |
nspar: "∦", | |
nsqsube: "⋢", | |
nsqsupe: "⋣", | |
nsub: "⊄", | |
nsubE: "⫅̸", | |
nsube: "⊈", | |
nsubset: "⊂⃒", | |
nsubseteq: "⊈", | |
nsubseteqq: "⫅̸", | |
nsucc: "⊁", | |
nsucceq: "⪰̸", | |
nsup: "⊅", | |
nsupE: "⫆̸", | |
nsupe: "⊉", | |
nsupset: "⊃⃒", | |
nsupseteq: "⊉", | |
nsupseteqq: "⫆̸", | |
ntgl: "≹", | |
Ntilde: "Ñ", | |
ntilde: "ñ", | |
ntlg: "≸", | |
ntriangleleft: "⋪", | |
ntrianglelefteq: "⋬", | |
ntriangleright: "⋫", | |
ntrianglerighteq: "⋭", | |
Nu: "Ν", | |
nu: "ν", | |
num: "#", | |
numero: "№", | |
numsp: " ", | |
nvap: "≍⃒", | |
nvdash: "⊬", | |
nvDash: "⊭", | |
nVdash: "⊮", | |
nVDash: "⊯", | |
nvge: "≥⃒", | |
nvgt: ">⃒", | |
nvHarr: "⤄", | |
nvinfin: "⧞", | |
nvlArr: "⤂", | |
nvle: "≤⃒", | |
nvlt: "<⃒", | |
nvltrie: "⊴⃒", | |
nvrArr: "⤃", | |
nvrtrie: "⊵⃒", | |
nvsim: "∼⃒", | |
nwarhk: "⤣", | |
nwarr: "↖", | |
nwArr: "⇖", | |
nwarrow: "↖", | |
nwnear: "⤧", | |
Oacute: "Ó", | |
oacute: "ó", | |
oast: "⊛", | |
Ocirc: "Ô", | |
ocirc: "ô", | |
ocir: "⊚", | |
Ocy: "О", | |
ocy: "о", | |
odash: "⊝", | |
Odblac: "Ő", | |
odblac: "ő", | |
odiv: "⨸", | |
odot: "⊙", | |
odsold: "⦼", | |
OElig: "Œ", | |
oelig: "œ", | |
ofcir: "⦿", | |
Ofr: "𝔒", | |
ofr: "𝔬", | |
ogon: "˛", | |
Ograve: "Ò", | |
ograve: "ò", | |
ogt: "⧁", | |
ohbar: "⦵", | |
ohm: "Ω", | |
oint: "∮", | |
olarr: "↺", | |
olcir: "⦾", | |
olcross: "⦻", | |
oline: "‾", | |
olt: "⧀", | |
Omacr: "Ō", | |
omacr: "ō", | |
Omega: "Ω", | |
omega: "ω", | |
Omicron: "Ο", | |
omicron: "ο", | |
omid: "⦶", | |
ominus: "⊖", | |
Oopf: "𝕆", | |
oopf: "𝕠", | |
opar: "⦷", | |
OpenCurlyDoubleQuote: "“", | |
OpenCurlyQuote: "‘", | |
operp: "⦹", | |
oplus: "⊕", | |
orarr: "↻", | |
Or: "⩔", | |
or: "∨", | |
ord: "⩝", | |
order: "ℴ", | |
orderof: "ℴ", | |
ordf: "ª", | |
ordm: "º", | |
origof: "⊶", | |
oror: "⩖", | |
orslope: "⩗", | |
orv: "⩛", | |
oS: "Ⓢ", | |
Oscr: "𝒪", | |
oscr: "ℴ", | |
Oslash: "Ø", | |
oslash: "ø", | |
osol: "⊘", | |
Otilde: "Õ", | |
otilde: "õ", | |
otimesas: "⨶", | |
Otimes: "⨷", | |
otimes: "⊗", | |
Ouml: "Ö", | |
ouml: "ö", | |
ovbar: "⌽", | |
OverBar: "‾", | |
OverBrace: "⏞", | |
OverBracket: "⎴", | |
OverParenthesis: "⏜", | |
para: "¶", | |
parallel: "∥", | |
par: "∥", | |
parsim: "⫳", | |
parsl: "⫽", | |
part: "∂", | |
PartialD: "∂", | |
Pcy: "П", | |
pcy: "п", | |
percnt: "%", | |
period: ".", | |
permil: "‰", | |
perp: "⊥", | |
pertenk: "‱", | |
Pfr: "𝔓", | |
pfr: "𝔭", | |
Phi: "Φ", | |
phi: "φ", | |
phiv: "ϕ", | |
phmmat: "ℳ", | |
phone: "☎", | |
Pi: "Π", | |
pi: "π", | |
pitchfork: "⋔", | |
piv: "ϖ", | |
planck: "ℏ", | |
planckh: "ℎ", | |
plankv: "ℏ", | |
plusacir: "⨣", | |
plusb: "⊞", | |
pluscir: "⨢", | |
plus: "+", | |
plusdo: "∔", | |
plusdu: "⨥", | |
pluse: "⩲", | |
PlusMinus: "±", | |
plusmn: "±", | |
plussim: "⨦", | |
plustwo: "⨧", | |
pm: "±", | |
Poincareplane: "ℌ", | |
pointint: "⨕", | |
popf: "𝕡", | |
Popf: "ℙ", | |
pound: "£", | |
prap: "⪷", | |
Pr: "⪻", | |
pr: "≺", | |
prcue: "≼", | |
precapprox: "⪷", | |
prec: "≺", | |
preccurlyeq: "≼", | |
Precedes: "≺", | |
PrecedesEqual: "⪯", | |
PrecedesSlantEqual: "≼", | |
PrecedesTilde: "≾", | |
preceq: "⪯", | |
precnapprox: "⪹", | |
precneqq: "⪵", | |
precnsim: "⋨", | |
pre: "⪯", | |
prE: "⪳", | |
precsim: "≾", | |
prime: "′", | |
Prime: "″", | |
primes: "ℙ", | |
prnap: "⪹", | |
prnE: "⪵", | |
prnsim: "⋨", | |
prod: "∏", | |
Product: "∏", | |
profalar: "⌮", | |
profline: "⌒", | |
profsurf: "⌓", | |
prop: "∝", | |
Proportional: "∝", | |
Proportion: "∷", | |
propto: "∝", | |
prsim: "≾", | |
prurel: "⊰", | |
Pscr: "𝒫", | |
pscr: "𝓅", | |
Psi: "Ψ", | |
psi: "ψ", | |
puncsp: " ", | |
Qfr: "𝔔", | |
qfr: "𝔮", | |
qint: "⨌", | |
qopf: "𝕢", | |
Qopf: "ℚ", | |
qprime: "⁗", | |
Qscr: "𝒬", | |
qscr: "𝓆", | |
quaternions: "ℍ", | |
quatint: "⨖", | |
quest: "?", | |
questeq: "≟", | |
quot: '"', | |
QUOT: '"', | |
rAarr: "⇛", | |
race: "∽̱", | |
Racute: "Ŕ", | |
racute: "ŕ", | |
radic: "√", | |
raemptyv: "⦳", | |
rang: "⟩", | |
Rang: "⟫", | |
rangd: "⦒", | |
range: "⦥", | |
rangle: "⟩", | |
raquo: "»", | |
rarrap: "⥵", | |
rarrb: "⇥", | |
rarrbfs: "⤠", | |
rarrc: "⤳", | |
rarr: "→", | |
Rarr: "↠", | |
rArr: "⇒", | |
rarrfs: "⤞", | |
rarrhk: "↪", | |
rarrlp: "↬", | |
rarrpl: "⥅", | |
rarrsim: "⥴", | |
Rarrtl: "⤖", | |
rarrtl: "↣", | |
rarrw: "↝", | |
ratail: "⤚", | |
rAtail: "⤜", | |
ratio: "∶", | |
rationals: "ℚ", | |
rbarr: "⤍", | |
rBarr: "⤏", | |
RBarr: "⤐", | |
rbbrk: "❳", | |
rbrace: "}", | |
rbrack: "]", | |
rbrke: "⦌", | |
rbrksld: "⦎", | |
rbrkslu: "⦐", | |
Rcaron: "Ř", | |
rcaron: "ř", | |
Rcedil: "Ŗ", | |
rcedil: "ŗ", | |
rceil: "⌉", | |
rcub: "}", | |
Rcy: "Р", | |
rcy: "р", | |
rdca: "⤷", | |
rdldhar: "⥩", | |
rdquo: "”", | |
rdquor: "”", | |
rdsh: "↳", | |
real: "ℜ", | |
realine: "ℛ", | |
realpart: "ℜ", | |
reals: "ℝ", | |
Re: "ℜ", | |
rect: "▭", | |
reg: "®", | |
REG: "®", | |
ReverseElement: "∋", | |
ReverseEquilibrium: "⇋", | |
ReverseUpEquilibrium: "⥯", | |
rfisht: "⥽", | |
rfloor: "⌋", | |
rfr: "𝔯", | |
Rfr: "ℜ", | |
rHar: "⥤", | |
rhard: "⇁", | |
rharu: "⇀", | |
rharul: "⥬", | |
Rho: "Ρ", | |
rho: "ρ", | |
rhov: "ϱ", | |
RightAngleBracket: "⟩", | |
RightArrowBar: "⇥", | |
rightarrow: "→", | |
RightArrow: "→", | |
Rightarrow: "⇒", | |
RightArrowLeftArrow: "⇄", | |
rightarrowtail: "↣", | |
RightCeiling: "⌉", | |
RightDoubleBracket: "⟧", | |
RightDownTeeVector: "⥝", | |
RightDownVectorBar: "⥕", | |
RightDownVector: "⇂", | |
RightFloor: "⌋", | |
rightharpoondown: "⇁", | |
rightharpoonup: "⇀", | |
rightleftarrows: "⇄", | |
rightleftharpoons: "⇌", | |
rightrightarrows: "⇉", | |
rightsquigarrow: "↝", | |
RightTeeArrow: "↦", | |
RightTee: "⊢", | |
RightTeeVector: "⥛", | |
rightthreetimes: "⋌", | |
RightTriangleBar: "⧐", | |
RightTriangle: "⊳", | |
RightTriangleEqual: "⊵", | |
RightUpDownVector: "⥏", | |
RightUpTeeVector: "⥜", | |
RightUpVectorBar: "⥔", | |
RightUpVector: "↾", | |
RightVectorBar: "⥓", | |
RightVector: "⇀", | |
ring: "˚", | |
risingdotseq: "≓", | |
rlarr: "⇄", | |
rlhar: "⇌", | |
rlm: "", | |
rmoustache: "⎱", | |
rmoust: "⎱", | |
rnmid: "⫮", | |
roang: "⟭", | |
roarr: "⇾", | |
robrk: "⟧", | |
ropar: "⦆", | |
ropf: "𝕣", | |
Ropf: "ℝ", | |
roplus: "⨮", | |
rotimes: "⨵", | |
RoundImplies: "⥰", | |
rpar: ")", | |
rpargt: "⦔", | |
rppolint: "⨒", | |
rrarr: "⇉", | |
Rrightarrow: "⇛", | |
rsaquo: "›", | |
rscr: "𝓇", | |
Rscr: "ℛ", | |
rsh: "↱", | |
Rsh: "↱", | |
rsqb: "]", | |
rsquo: "’", | |
rsquor: "’", | |
rthree: "⋌", | |
rtimes: "⋊", | |
rtri: "▹", | |
rtrie: "⊵", | |
rtrif: "▸", | |
rtriltri: "⧎", | |
RuleDelayed: "⧴", | |
ruluhar: "⥨", | |
rx: "℞", | |
Sacute: "Ś", | |
sacute: "ś", | |
sbquo: "‚", | |
scap: "⪸", | |
Scaron: "Š", | |
scaron: "š", | |
Sc: "⪼", | |
sc: "≻", | |
sccue: "≽", | |
sce: "⪰", | |
scE: "⪴", | |
Scedil: "Ş", | |
scedil: "ş", | |
Scirc: "Ŝ", | |
scirc: "ŝ", | |
scnap: "⪺", | |
scnE: "⪶", | |
scnsim: "⋩", | |
scpolint: "⨓", | |
scsim: "≿", | |
Scy: "С", | |
scy: "с", | |
sdotb: "⊡", | |
sdot: "⋅", | |
sdote: "⩦", | |
searhk: "⤥", | |
searr: "↘", | |
seArr: "⇘", | |
searrow: "↘", | |
sect: "§", | |
semi: ";", | |
seswar: "⤩", | |
setminus: "∖", | |
setmn: "∖", | |
sext: "✶", | |
Sfr: "𝔖", | |
sfr: "𝔰", | |
sfrown: "⌢", | |
sharp: "♯", | |
SHCHcy: "Щ", | |
shchcy: "щ", | |
SHcy: "Ш", | |
shcy: "ш", | |
ShortDownArrow: "↓", | |
ShortLeftArrow: "←", | |
shortmid: "∣", | |
shortparallel: "∥", | |
ShortRightArrow: "→", | |
ShortUpArrow: "↑", | |
shy: "", | |
Sigma: "Σ", | |
sigma: "σ", | |
sigmaf: "ς", | |
sigmav: "ς", | |
sim: "∼", | |
simdot: "⩪", | |
sime: "≃", | |
simeq: "≃", | |
simg: "⪞", | |
simgE: "⪠", | |
siml: "⪝", | |
simlE: "⪟", | |
simne: "≆", | |
simplus: "⨤", | |
simrarr: "⥲", | |
slarr: "←", | |
SmallCircle: "∘", | |
smallsetminus: "∖", | |
smashp: "⨳", | |
smeparsl: "⧤", | |
smid: "∣", | |
smile: "⌣", | |
smt: "⪪", | |
smte: "⪬", | |
smtes: "⪬︀", | |
SOFTcy: "Ь", | |
softcy: "ь", | |
solbar: "⌿", | |
solb: "⧄", | |
sol: "/", | |
Sopf: "𝕊", | |
sopf: "𝕤", | |
spades: "♠", | |
spadesuit: "♠", | |
spar: "∥", | |
sqcap: "⊓", | |
sqcaps: "⊓︀", | |
sqcup: "⊔", | |
sqcups: "⊔︀", | |
Sqrt: "√", | |
sqsub: "⊏", | |
sqsube: "⊑", | |
sqsubset: "⊏", | |
sqsubseteq: "⊑", | |
sqsup: "⊐", | |
sqsupe: "⊒", | |
sqsupset: "⊐", | |
sqsupseteq: "⊒", | |
square: "□", | |
Square: "□", | |
SquareIntersection: "⊓", | |
SquareSubset: "⊏", | |
SquareSubsetEqual: "⊑", | |
SquareSuperset: "⊐", | |
SquareSupersetEqual: "⊒", | |
SquareUnion: "⊔", | |
squarf: "▪", | |
squ: "□", | |
squf: "▪", | |
srarr: "→", | |
Sscr: "𝒮", | |
sscr: "𝓈", | |
ssetmn: "∖", | |
ssmile: "⌣", | |
sstarf: "⋆", | |
Star: "⋆", | |
star: "☆", | |
starf: "★", | |
straightepsilon: "ϵ", | |
straightphi: "ϕ", | |
strns: "¯", | |
sub: "⊂", | |
Sub: "⋐", | |
subdot: "⪽", | |
subE: "⫅", | |
sube: "⊆", | |
subedot: "⫃", | |
submult: "⫁", | |
subnE: "⫋", | |
subne: "⊊", | |
subplus: "⪿", | |
subrarr: "⥹", | |
subset: "⊂", | |
Subset: "⋐", | |
subseteq: "⊆", | |
subseteqq: "⫅", | |
SubsetEqual: "⊆", | |
subsetneq: "⊊", | |
subsetneqq: "⫋", | |
subsim: "⫇", | |
subsub: "⫕", | |
subsup: "⫓", | |
succapprox: "⪸", | |
succ: "≻", | |
succcurlyeq: "≽", | |
Succeeds: "≻", | |
SucceedsEqual: "⪰", | |
SucceedsSlantEqual: "≽", | |
SucceedsTilde: "≿", | |
succeq: "⪰", | |
succnapprox: "⪺", | |
succneqq: "⪶", | |
succnsim: "⋩", | |
succsim: "≿", | |
SuchThat: "∋", | |
sum: "∑", | |
Sum: "∑", | |
sung: "♪", | |
sup1: "¹", | |
sup2: "²", | |
sup3: "³", | |
sup: "⊃", | |
Sup: "⋑", | |
supdot: "⪾", | |
supdsub: "⫘", | |
supE: "⫆", | |
supe: "⊇", | |
supedot: "⫄", | |
Superset: "⊃", | |
SupersetEqual: "⊇", | |
suphsol: "⟉", | |
suphsub: "⫗", | |
suplarr: "⥻", | |
supmult: "⫂", | |
supnE: "⫌", | |
supne: "⊋", | |
supplus: "⫀", | |
supset: "⊃", | |
Supset: "⋑", | |
supseteq: "⊇", | |
supseteqq: "⫆", | |
supsetneq: "⊋", | |
supsetneqq: "⫌", | |
supsim: "⫈", | |
supsub: "⫔", | |
supsup: "⫖", | |
swarhk: "⤦", | |
swarr: "↙", | |
swArr: "⇙", | |
swarrow: "↙", | |
swnwar: "⤪", | |
szlig: "ß", | |
Tab: "\t", | |
target: "⌖", | |
Tau: "Τ", | |
tau: "τ", | |
tbrk: "⎴", | |
Tcaron: "Ť", | |
tcaron: "ť", | |
Tcedil: "Ţ", | |
tcedil: "ţ", | |
Tcy: "Т", | |
tcy: "т", | |
tdot: "⃛", | |
telrec: "⌕", | |
Tfr: "𝔗", | |
tfr: "𝔱", | |
there4: "∴", | |
therefore: "∴", | |
Therefore: "∴", | |
Theta: "Θ", | |
theta: "θ", | |
thetasym: "ϑ", | |
thetav: "ϑ", | |
thickapprox: "≈", | |
thicksim: "∼", | |
ThickSpace: " ", | |
ThinSpace: " ", | |
thinsp: " ", | |
thkap: "≈", | |
thksim: "∼", | |
THORN: "Þ", | |
thorn: "þ", | |
tilde: "˜", | |
Tilde: "∼", | |
TildeEqual: "≃", | |
TildeFullEqual: "≅", | |
TildeTilde: "≈", | |
timesbar: "⨱", | |
timesb: "⊠", | |
times: "×", | |
timesd: "⨰", | |
tint: "∭", | |
toea: "⤨", | |
topbot: "⌶", | |
topcir: "⫱", | |
top: "⊤", | |
Topf: "𝕋", | |
topf: "𝕥", | |
topfork: "⫚", | |
tosa: "⤩", | |
tprime: "‴", | |
trade: "™", | |
TRADE: "™", | |
triangle: "▵", | |
triangledown: "▿", | |
triangleleft: "◃", | |
trianglelefteq: "⊴", | |
triangleq: "≜", | |
triangleright: "▹", | |
trianglerighteq: "⊵", | |
tridot: "◬", | |
trie: "≜", | |
triminus: "⨺", | |
TripleDot: "⃛", | |
triplus: "⨹", | |
trisb: "⧍", | |
tritime: "⨻", | |
trpezium: "⏢", | |
Tscr: "𝒯", | |
tscr: "𝓉", | |
TScy: "Ц", | |
tscy: "ц", | |
TSHcy: "Ћ", | |
tshcy: "ћ", | |
Tstrok: "Ŧ", | |
tstrok: "ŧ", | |
twixt: "≬", | |
twoheadleftarrow: "↞", | |
twoheadrightarrow: "↠", | |
Uacute: "Ú", | |
uacute: "ú", | |
uarr: "↑", | |
Uarr: "↟", | |
uArr: "⇑", | |
Uarrocir: "⥉", | |
Ubrcy: "Ў", | |
ubrcy: "ў", | |
Ubreve: "Ŭ", | |
ubreve: "ŭ", | |
Ucirc: "Û", | |
ucirc: "û", | |
Ucy: "У", | |
ucy: "у", | |
udarr: "⇅", | |
Udblac: "Ű", | |
udblac: "ű", | |
udhar: "⥮", | |
ufisht: "⥾", | |
Ufr: "𝔘", | |
ufr: "𝔲", | |
Ugrave: "Ù", | |
ugrave: "ù", | |
uHar: "⥣", | |
uharl: "↿", | |
uharr: "↾", | |
uhblk: "▀", | |
ulcorn: "⌜", | |
ulcorner: "⌜", | |
ulcrop: "⌏", | |
ultri: "◸", | |
Umacr: "Ū", | |
umacr: "ū", | |
uml: "¨", | |
UnderBar: "_", | |
UnderBrace: "⏟", | |
UnderBracket: "⎵", | |
UnderParenthesis: "⏝", | |
Union: "⋃", | |
UnionPlus: "⊎", | |
Uogon: "Ų", | |
uogon: "ų", | |
Uopf: "𝕌", | |
uopf: "𝕦", | |
UpArrowBar: "⤒", | |
uparrow: "↑", | |
UpArrow: "↑", | |
Uparrow: "⇑", | |
UpArrowDownArrow: "⇅", | |
updownarrow: "↕", | |
UpDownArrow: "↕", | |
Updownarrow: "⇕", | |
UpEquilibrium: "⥮", | |
upharpoonleft: "↿", | |
upharpoonright: "↾", | |
uplus: "⊎", | |
UpperLeftArrow: "↖", | |
UpperRightArrow: "↗", | |
upsi: "υ", | |
Upsi: "ϒ", | |
upsih: "ϒ", | |
Upsilon: "Υ", | |
upsilon: "υ", | |
UpTeeArrow: "↥", | |
UpTee: "⊥", | |
upuparrows: "⇈", | |
urcorn: "⌝", | |
urcorner: "⌝", | |
urcrop: "⌎", | |
Uring: "Ů", | |
uring: "ů", | |
urtri: "◹", | |
Uscr: "𝒰", | |
uscr: "𝓊", | |
utdot: "⋰", | |
Utilde: "Ũ", | |
utilde: "ũ", | |
utri: "▵", | |
utrif: "▴", | |
uuarr: "⇈", | |
Uuml: "Ü", | |
uuml: "ü", | |
uwangle: "⦧", | |
vangrt: "⦜", | |
varepsilon: "ϵ", | |
varkappa: "ϰ", | |
varnothing: "∅", | |
varphi: "ϕ", | |
varpi: "ϖ", | |
varpropto: "∝", | |
varr: "↕", | |
vArr: "⇕", | |
varrho: "ϱ", | |
varsigma: "ς", | |
varsubsetneq: "⊊︀", | |
varsubsetneqq: "⫋︀", | |
varsupsetneq: "⊋︀", | |
varsupsetneqq: "⫌︀", | |
vartheta: "ϑ", | |
vartriangleleft: "⊲", | |
vartriangleright: "⊳", | |
vBar: "⫨", | |
Vbar: "⫫", | |
vBarv: "⫩", | |
Vcy: "В", | |
vcy: "в", | |
vdash: "⊢", | |
vDash: "⊨", | |
Vdash: "⊩", | |
VDash: "⊫", | |
Vdashl: "⫦", | |
veebar: "⊻", | |
vee: "∨", | |
Vee: "⋁", | |
veeeq: "≚", | |
vellip: "⋮", | |
verbar: "|", | |
Verbar: "‖", | |
vert: "|", | |
Vert: "‖", | |
VerticalBar: "∣", | |
VerticalLine: "|", | |
VerticalSeparator: "❘", | |
VerticalTilde: "≀", | |
VeryThinSpace: " ", | |
Vfr: "𝔙", | |
vfr: "𝔳", | |
vltri: "⊲", | |
vnsub: "⊂⃒", | |
vnsup: "⊃⃒", | |
Vopf: "𝕍", | |
vopf: "𝕧", | |
vprop: "∝", | |
vrtri: "⊳", | |
Vscr: "𝒱", | |
vscr: "𝓋", | |
vsubnE: "⫋︀", | |
vsubne: "⊊︀", | |
vsupnE: "⫌︀", | |
vsupne: "⊋︀", | |
Vvdash: "⊪", | |
vzigzag: "⦚", | |
Wcirc: "Ŵ", | |
wcirc: "ŵ", | |
wedbar: "⩟", | |
wedge: "∧", | |
Wedge: "⋀", | |
wedgeq: "≙", | |
weierp: "℘", | |
Wfr: "𝔚", | |
wfr: "𝔴", | |
Wopf: "𝕎", | |
wopf: "𝕨", | |
wp: "℘", | |
wr: "≀", | |
wreath: "≀", | |
Wscr: "𝒲", | |
wscr: "𝓌", | |
xcap: "⋂", | |
xcirc: "◯", | |
xcup: "⋃", | |
xdtri: "▽", | |
Xfr: "𝔛", | |
xfr: "𝔵", | |
xharr: "⟷", | |
xhArr: "⟺", | |
Xi: "Ξ", | |
xi: "ξ", | |
xlarr: "⟵", | |
xlArr: "⟸", | |
xmap: "⟼", | |
xnis: "⋻", | |
xodot: "⨀", | |
Xopf: "𝕏", | |
xopf: "𝕩", | |
xoplus: "⨁", | |
xotime: "⨂", | |
xrarr: "⟶", | |
xrArr: "⟹", | |
Xscr: "𝒳", | |
xscr: "𝓍", | |
xsqcup: "⨆", | |
xuplus: "⨄", | |
xutri: "△", | |
xvee: "⋁", | |
xwedge: "⋀", | |
Yacute: "Ý", | |
yacute: "ý", | |
YAcy: "Я", | |
yacy: "я", | |
Ycirc: "Ŷ", | |
ycirc: "ŷ", | |
Ycy: "Ы", | |
ycy: "ы", | |
yen: "¥", | |
Yfr: "𝔜", | |
yfr: "𝔶", | |
YIcy: "Ї", | |
yicy: "ї", | |
Yopf: "𝕐", | |
yopf: "𝕪", | |
Yscr: "𝒴", | |
yscr: "𝓎", | |
YUcy: "Ю", | |
yucy: "ю", | |
yuml: "ÿ", | |
Yuml: "Ÿ", | |
Zacute: "Ź", | |
zacute: "ź", | |
Zcaron: "Ž", | |
zcaron: "ž", | |
Zcy: "З", | |
zcy: "з", | |
Zdot: "Ż", | |
zdot: "ż", | |
zeetrf: "ℨ", | |
ZeroWidthSpace: "", | |
Zeta: "Ζ", | |
zeta: "ζ", | |
zfr: "𝔷", | |
Zfr: "ℨ", | |
ZHcy: "Ж", | |
zhcy: "ж", | |
zigrarr: "⇝", | |
zopf: "𝕫", | |
Zopf: "ℤ", | |
Zscr: "𝒵", | |
zscr: "𝓏", | |
zwj: "", | |
zwnj: "" | |
} | |
}, function(e, t) { | |
e.exports = { | |
amp: "&", | |
apos: "'", | |
gt: ">", | |
lt: "<", | |
quot: '"' | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t, n) { | |
var r = this._refs[n]; | |
if ("string" == typeof r) { | |
if (!this._refs[r]) return o.call(this, e, t, r); | |
r = this._refs[r] | |
} | |
if ((r = r || this._schemas[n]) instanceof B) return A(r.schema, this._opts.inlineRefs) ? r.schema : r.validate || this._compile(r); | |
var i, a, s, u = l.call(this, t, n); | |
return u && (i = u.schema, t = u.root, s = u.baseId), i instanceof B ? a = i.validate || e.call(this, i.schema, t, void 0, s) : void 0 !== i && (a = A(i, this._opts.inlineRefs) ? i : e.call(this, i, t, void 0, s)), a | |
} | |
function l(e, t) { | |
var n = f.parse(t, !1, !0), | |
o = c(n), | |
l = u(this._getId(e.schema)); | |
if (o !== l) { | |
var A = g(o), | |
a = this._refs[A]; | |
if ("string" == typeof a) return r.call(this, e, a, n); | |
if (a instanceof B) a.validate || this._compile(a), e = a; | |
else { | |
if (!((a = this._schemas[A]) instanceof B)) return; | |
if (a.validate || this._compile(a), A == g(t)) return { | |
schema: a, | |
root: e, | |
baseId: l | |
}; | |
e = a | |
} | |
if (!e.schema) return; | |
l = u(this._getId(e.schema)) | |
} | |
return i.call(this, n, l, e.schema, e) | |
} | |
function r(e, t, n) { | |
var o = l.call(this, e, t); | |
if (o) { | |
var r = o.schema, | |
A = o.baseId; | |
e = o.root; | |
var a = this._getId(r); | |
return a && (A = h(A, a)), i.call(this, n, A, r, e) | |
} | |
} | |
function i(e, t, n, o) { | |
if (e.hash = e.hash || "", "#/" == e.hash.slice(0, 2)) { | |
for (var r = e.hash.split("/"), i = 1; i < r.length; i++) { | |
var A = r[i]; | |
if (A) { | |
if (A = m.unescapeFragment(A), void 0 === (n = n[A])) break; | |
var a; | |
if (!y[A] && (a = this._getId(n), a && (t = h(t, a)), n.$ref)) { | |
var s = h(t, n.$ref), | |
u = l.call(this, o, s); | |
u && (n = u.schema, o = u.root, t = u.baseId) | |
} | |
} | |
} | |
return void 0 !== n && n !== o.schema ? { | |
schema: n, | |
root: o, | |
baseId: t | |
} : void 0 | |
} | |
} | |
function A(e, t) { | |
return !1 !== t && (void 0 === t || !0 === t ? a(e) : t ? s(e) <= t : void 0) | |
} | |
function a(e) { | |
var t; | |
if (Array.isArray(e)) { | |
for (var n = 0; n < e.length; n++) | |
if ("object" == typeof(t = e[n]) && !a(t)) return !1 | |
} else | |
for (var o in e) { | |
if ("$ref" == o) return !1; | |
if ("object" == typeof(t = e[o]) && !a(t)) return !1 | |
} | |
return !0 | |
} | |
function s(e) { | |
var t, n = 0; | |
if (Array.isArray(e)) { | |
for (var o = 0; o < e.length; o++) | |
if (t = e[o], "object" == typeof t && (n += s(t)), n == 1 / 0) return 1 / 0 | |
} else | |
for (var l in e) { | |
if ("$ref" == l) return 1 / 0; | |
if (C[l]) n++; | |
else if (t = e[l], "object" == typeof t && (n += s(t) + 1), n == 1 / 0) return 1 / 0 | |
} | |
return n | |
} | |
function u(e, t) { | |
return !1 !== t && (e = g(e)), c(f.parse(e, !1, !0)) | |
} | |
function c(e) { | |
var t = e.protocol || "//" == e.href.slice(0, 2) ? "//" : ""; | |
return (e.protocol || "") + t + (e.host || "") + (e.path || "") + "#" | |
} | |
function g(e) { | |
return e ? e.replace(w, "") : "" | |
} | |
function h(e, t) { | |
return t = g(t), f.resolve(e, t) | |
} | |
function d(e) { | |
var t = g(this._getId(e)), | |
n = { | |
"": t | |
}, | |
o = { | |
"": u(t, !1) | |
}, | |
l = {}, | |
r = this; | |
return E(e, { | |
allKeys: !0 | |
}, function(e, t, i, A, a, s, u) { | |
if ("" !== t) { | |
var c = r._getId(e), | |
h = n[A], | |
d = o[A] + "/" + a; | |
if (void 0 !== u && (d += "/" + ("number" == typeof u ? u : m.escapeFragment(u))), "string" == typeof c) { | |
c = h = g(h ? f.resolve(h, c) : c); | |
var B = r._refs[c]; | |
if ("string" == typeof B && (B = r._refs[B]), B && B.schema) { | |
if (!p(e, B.schema)) throw new Error('id "' + c + '" resolves to more than one schema') | |
} else if (c != g(d)) | |
if ("#" == c[0]) { | |
if (l[c] && !p(e, l[c])) throw new Error('id "' + c + '" resolves to more than one schema'); | |
l[c] = e | |
} else r._refs[c] = d | |
} | |
n[t] = h, o[t] = d | |
} | |
}), l | |
} | |
var f = n(324), | |
p = n(52), | |
m = n(22), | |
B = n(104), | |
E = n(328); | |
e.exports = o, o.normalizeId = g, o.fullPath = u, o.url = h, o.ids = d, o.inlineRef = A, o.schema = l; | |
var y = m.toHash(["properties", "patternProperties", "enum", "dependencies", "definitions"]), | |
C = m.toHash(["type", "format", "pattern", "maxLength", "minLength", "maxProperties", "minProperties", "maxItems", "minItems", "maximum", "minimum", "uniqueItems", "multipleOf", "required", "enum"]), | |
w = /#\/?$/ | |
}, function(e, t, n) { | |
"use strict"; | |
var o = Array.isArray, | |
l = Object.keys, | |
r = Object.prototype.hasOwnProperty; | |
e.exports = function e(t, n) { | |
if (t === n) return !0; | |
var i, A, a, s = o(t), | |
u = o(n); | |
if (s && u) { | |
if ((A = t.length) != n.length) return !1; | |
for (i = 0; i < A; i++) | |
if (!e(t[i], n[i])) return !1; | |
return !0 | |
} | |
if (s != u) return !1; | |
var c = t instanceof Date, | |
g = n instanceof Date; | |
if (c != g) return !1; | |
if (c && g) return t.getTime() == n.getTime(); | |
var h = t instanceof RegExp, | |
d = n instanceof RegExp; | |
if (h != d) return !1; | |
if (h && d) return t.toString() == n.toString(); | |
if (t instanceof Object && n instanceof Object) { | |
var f = l(t); | |
if ((A = f.length) !== l(n).length) return !1; | |
for (i = 0; i < A; i++) | |
if (!r.call(n, f[i])) return !1; | |
for (i = 0; i < A; i++) | |
if (a = f[i], !e(t[a], n[a])) return !1; | |
return !0 | |
} | |
return !1 | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
this.message = "validation failed", this.errors = e, this.ajv = this.validation = !0 | |
} | |
function l(e, t, n) { | |
this.message = n || l.message(e, t), this.missingRef = i.url(e, t), this.missingSchema = i.normalizeId(i.fullPath(this.missingRef)) | |
} | |
function r(e) { | |
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e | |
} | |
var i = n(51); | |
e.exports = { | |
Validation: r(o), | |
MissingRef: r(l) | |
}, l.message = function(e, t) { | |
return "can't resolve reference " + t + " from id " + e | |
} | |
}, function(e, t) { | |
var n = {}.toString; | |
e.exports = Array.isArray || function(e) { | |
return "[object Array]" == n.call(e) | |
} | |
}, function(e, t, n) { | |
e.exports = n(56) | |
}, function(e, t, n) { | |
function o() { | |
l.call(this) | |
} | |
e.exports = o; | |
var l = n(11).EventEmitter; | |
n(7)(o, l), o.Readable = n(40), o.Writable = n(126), o.Duplex = n(127), o.Transform = n(128), o.PassThrough = n(129), o.Stream = o, o.prototype.pipe = function(e, t) { | |
function n(t) { | |
e.writable && !1 === e.write(t) && s.pause && s.pause() | |
} | |
function o() { | |
s.readable && s.resume && s.resume() | |
} | |
function r() { | |
u || (u = !0, e.end()) | |
} | |
function i() { | |
u || (u = !0, "function" == typeof e.destroy && e.destroy()) | |
} | |
function A(e) { | |
if (a(), 0 === l.listenerCount(this, "error")) throw e | |
} | |
function a() { | |
s.removeListener("data", n), e.removeListener("drain", o), s.removeListener("end", r), s.removeListener("close", i), s.removeListener("error", A), e.removeListener("error", A), s.removeListener("end", a), s.removeListener("close", a), e.removeListener("close", a) | |
} | |
var s = this; | |
s.on("data", n), e.on("drain", o), e._isStdio || t && !1 === t.end || (s.on("end", r), s.on("close", i)); | |
var u = !1; | |
return s.on("error", A), e.on("error", A), s.on("end", a), s.on("close", a), e.on("close", a), e.emit("pipe", s), e | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
(function(t, o) { | |
function l(e) { | |
return N.from(e) | |
} | |
function r(e) { | |
return N.isBuffer(e) || e instanceof G | |
} | |
function i(e, t, n) { | |
if ("function" == typeof e.prependListener) return e.prependListener(t, n); | |
e._events && e._events[t] ? R(e._events[t]) ? e._events[t].unshift(n) : e._events[t] = [n, e._events[t]] : e.on(t, n) | |
} | |
function A(e, t) { | |
x = x || n(12), e = e || {}; | |
var o = t instanceof x; | |
this.objectMode = !!e.objectMode, o && (this.objectMode = this.objectMode || !!e.readableObjectMode); | |
var l = e.highWaterMark, | |
r = e.readableHighWaterMark, | |
i = this.objectMode ? 16 : 16384; | |
this.highWaterMark = l || 0 === l ? l : o && (r || 0 === r) ? r : i, this.highWaterMark = Math.floor(this.highWaterMark), this.buffer = new j, this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (H || (H = n(42).StringDecoder), this.decoder = new H(e.encoding), this.encoding = e.encoding) | |
} | |
function a(e) { | |
if (x = x || n(12), !(this instanceof a)) return new a(e); | |
this._readableState = new A(e, this), this.readable = !0, e && ("function" == typeof e.read && (this._read = e.read), "function" == typeof e.destroy && (this._destroy = e.destroy)), T.call(this) | |
} | |
function s(e, t, n, o, r) { | |
var i = e._readableState; | |
if (null === t) i.reading = !1, f(e, i); | |
else { | |
var A; | |
r || (A = c(i, t)), A ? e.emit("error", A) : i.objectMode || t && t.length > 0 ? ("string" == typeof t || i.objectMode || Object.getPrototypeOf(t) === N.prototype || (t = l(t)), o ? i.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : u(e, i, t, !0) : i.ended ? e.emit("error", new Error("stream.push() after EOF")) : (i.reading = !1, i.decoder && !n ? (t = i.decoder.write(t), i.objectMode || 0 !== t.length ? u(e, i, t, !1) : B(e, i)) : u(e, i, t, !1))) : o || (i.reading = !1) | |
} | |
return g(i) | |
} | |
function u(e, t, n, o) { | |
t.flowing && 0 === t.length && !t.sync ? (e.emit("data", n), e.read(0)) : (t.length += t.objectMode ? 1 : n.length, o ? t.buffer.unshift(n) : t.buffer.push(n), t.needReadable && p(e)), B(e, t) | |
} | |
function c(e, t) { | |
var n; | |
return r(t) || "string" == typeof t || void 0 === t || e.objectMode || (n = new TypeError("Invalid non-string/buffer chunk")), n | |
} | |
function g(e) { | |
return !e.ended && (e.needReadable || e.length < e.highWaterMark || 0 === e.length) | |
} | |
function h(e) { | |
return e >= z ? e = z : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e | |
} | |
function d(e, t) { | |
return e <= 0 || 0 === t.length && t.ended ? 0 : t.objectMode ? 1 : e !== e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = h(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)) | |
} | |
function f(e, t) { | |
if (!t.ended) { | |
if (t.decoder) { | |
var n = t.decoder.end(); | |
n && n.length && (t.buffer.push(n), t.length += t.objectMode ? 1 : n.length) | |
} | |
t.ended = !0, p(e) | |
} | |
} | |
function p(e) { | |
var t = e._readableState; | |
t.needReadable = !1, t.emittedReadable || (P("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? Y.nextTick(m, e) : m(e)) | |
} | |
function m(e) { | |
P("emit readable"), e.emit("readable"), b(e) | |
} | |
function B(e, t) { | |
t.readingMore || (t.readingMore = !0, Y.nextTick(E, e, t)) | |
} | |
function E(e, t) { | |
for (var n = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (P("maybeReadMore read 0"), e.read(0), n !== t.length);) n = t.length; | |
t.readingMore = !1 | |
} | |
function y(e) { | |
return function() { | |
var t = e._readableState; | |
P("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, 0 === t.awaitDrain && U(e, "data") && (t.flowing = !0, b(e)) | |
} | |
} | |
function C(e) { | |
P("readable nexttick read 0"), e.read(0) | |
} | |
function w(e, t) { | |
t.resumeScheduled || (t.resumeScheduled = !0, Y.nextTick(I, e, t)) | |
} | |
function I(e, t) { | |
t.reading || (P("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), b(e), t.flowing && !t.reading && e.read(0) | |
} | |
function b(e) { | |
var t = e._readableState; | |
for (P("flow", t.flowing); t.flowing && null !== e.read();); | |
} | |
function v(e, t) { | |
if (0 === t.length) return null; | |
var n; | |
return t.objectMode ? n = t.buffer.shift() : !e || e >= t.length ? (n = t.decoder ? t.buffer.join("") : 1 === t.buffer.length ? t.buffer.head.data : t.buffer.concat(t.length), t.buffer.clear()) : n = M(e, t.buffer, t.decoder), n | |
} | |
function M(e, t, n) { | |
var o; | |
return e < t.head.data.length ? (o = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : o = e === t.head.data.length ? t.shift() : n ? Q(e, t) : D(e, t), o | |
} | |
function Q(e, t) { | |
var n = t.head, | |
o = 1, | |
l = n.data; | |
for (e -= l.length; n = n.next;) { | |
var r = n.data, | |
i = e > r.length ? r.length : e; | |
if (i === r.length ? l += r : l += r.slice(0, e), 0 === (e -= i)) { | |
i === r.length ? (++o, n.next ? t.head = n.next : t.head = t.tail = null) : (t.head = n, n.data = r.slice(i)); | |
break | |
}++o | |
} | |
return t.length -= o, l | |
} | |
function D(e, t) { | |
var n = N.allocUnsafe(e), | |
o = t.head, | |
l = 1; | |
for (o.data.copy(n), e -= o.data.length; o = o.next;) { | |
var r = o.data, | |
i = e > r.length ? r.length : e; | |
if (r.copy(n, n.length - e, 0, i), 0 === (e -= i)) { | |
i === r.length ? (++l, o.next ? t.head = o.next : t.head = t.tail = null) : (t.head = o, o.data = r.slice(i)); | |
break | |
}++l | |
} | |
return t.length -= l, n | |
} | |
function k(e) { | |
var t = e._readableState; | |
if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream'); | |
t.endEmitted || (t.ended = !0, Y.nextTick(S, t, e)) | |
} | |
function S(e, t) { | |
e.endEmitted || 0 !== e.length || (e.endEmitted = !0, t.readable = !1, t.emit("end")) | |
} | |
function F(e, t) { | |
for (var n = 0, o = e.length; n < o; n++) | |
if (e[n] === t) return n; | |
return -1 | |
} | |
var Y = n(30); | |
e.exports = a; | |
var x, R = n(54); | |
a.ReadableState = A; | |
var U = (n(11).EventEmitter, function(e, t) { | |
return e.listeners(t).length | |
}), | |
T = n(58), | |
N = n(31).Buffer, | |
G = t.Uint8Array || function() {}, | |
L = n(23); | |
L.inherits = n(7); | |
var O = n(120), | |
P = void 0; | |
P = O && O.debuglog ? O.debuglog("stream") : function() {}; | |
var H, j = n(121), | |
J = n(59); | |
L.inherits(a, T); | |
var V = ["error", "close", "destroy", "pause", "resume"]; | |
Object.defineProperty(a.prototype, "destroyed", { | |
get: function() { | |
return void 0 !== this._readableState && this._readableState.destroyed | |
}, | |
set: function(e) { | |
this._readableState && (this._readableState.destroyed = e) | |
} | |
}), a.prototype.destroy = J.destroy, a.prototype._undestroy = J.undestroy, a.prototype._destroy = function(e, t) { | |
this.push(null), t(e) | |
}, a.prototype.push = function(e, t) { | |
var n, o = this._readableState; | |
return o.objectMode ? n = !0 : "string" == typeof e && (t = t || o.defaultEncoding, t !== o.encoding && (e = N.from(e, t), t = ""), n = !0), s(this, e, t, !1, n) | |
}, a.prototype.unshift = function(e) { | |
return s(this, e, null, !0, !1) | |
}, a.prototype.isPaused = function() { | |
return !1 === this._readableState.flowing | |
}, a.prototype.setEncoding = function(e) { | |
return H || (H = n(42).StringDecoder), this._readableState.decoder = new H(e), this._readableState.encoding = e, this | |
}; | |
var z = 8388608; | |
a.prototype.read = function(e) { | |
P("read", e), e = parseInt(e, 10); | |
var t = this._readableState, | |
n = e; | |
if (0 !== e && (t.emittedReadable = !1), 0 === e && t.needReadable && (t.length >= t.highWaterMark || t.ended)) return P("read: emitReadable", t.length, t.ended), 0 === t.length && t.ended ? k(this) : p(this), null; | |
if (0 === (e = d(e, t)) && t.ended) return 0 === t.length && k(this), null; | |
var o = t.needReadable; | |
P("need readable", o), (0 === t.length || t.length - e < t.highWaterMark) && (o = !0, P("length less than watermark", o)), t.ended || t.reading ? (o = !1, P("reading or ended", o)) : o && (P("do read"), t.reading = !0, t.sync = !0, 0 === t.length && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = d(n, t))); | |
var l; | |
return l = e > 0 ? v(e, t) : null, null === l ? (t.needReadable = !0, e = 0) : t.length -= e, 0 === t.length && (t.ended || (t.needReadable = !0), n !== e && t.ended && k(this)), null !== l && this.emit("data", l), l | |
}, a.prototype._read = function(e) { | |
this.emit("error", new Error("_read() is not implemented")) | |
}, a.prototype.pipe = function(e, t) { | |
function n(e, t) { | |
P("onunpipe"), e === g && t && !1 === t.hasUnpiped && (t.hasUnpiped = !0, r()) | |
} | |
function l() { | |
P("onend"), e.end() | |
} | |
function r() { | |
P("cleanup"), e.removeListener("close", s), e.removeListener("finish", u), e.removeListener("drain", p), e.removeListener("error", a), e.removeListener("unpipe", n), g.removeListener("end", l), g.removeListener("end", c), g.removeListener("data", A), m = !0, !h.awaitDrain || e._writableState && !e._writableState.needDrain || p() | |
} | |
function A(t) { | |
P("ondata"), B = !1, !1 !== e.write(t) || B || ((1 === h.pipesCount && h.pipes === e || h.pipesCount > 1 && -1 !== F(h.pipes, e)) && !m && (P("false write response, pause", g._readableState.awaitDrain), g._readableState.awaitDrain++, B = !0), g.pause()) | |
} | |
function a(t) { | |
P("onerror", t), c(), e.removeListener("error", a), 0 === U(e, "error") && e.emit("error", t) | |
} | |
function s() { | |
e.removeListener("finish", u), c() | |
} | |
function u() { | |
P("onfinish"), e.removeListener("close", s), c() | |
} | |
function c() { | |
P("unpipe"), g.unpipe(e) | |
} | |
var g = this, | |
h = this._readableState; | |
switch (h.pipesCount) { | |
case 0: | |
h.pipes = e; | |
break; | |
case 1: | |
h.pipes = [h.pipes, e]; | |
break; | |
default: | |
h.pipes.push(e) | |
} | |
h.pipesCount += 1, P("pipe count=%d opts=%j", h.pipesCount, t); | |
var d = (!t || !1 !== t.end) && e !== o.stdout && e !== o.stderr, | |
f = d ? l : c; | |
h.endEmitted ? Y.nextTick(f) : g.once("end", f), e.on("unpipe", n); | |
var p = y(g); | |
e.on("drain", p); | |
var m = !1, | |
B = !1; | |
return g.on("data", A), i(e, "error", a), e.once("close", s), e.once("finish", u), e.emit("pipe", g), h.flowing || (P("pipe resume"), g.resume()), e | |
}, a.prototype.unpipe = function(e) { | |
var t = this._readableState, | |
n = { | |
hasUnpiped: !1 | |
}; | |
if (0 === t.pipesCount) return this; | |
if (1 === t.pipesCount) return e && e !== t.pipes ? this : (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, n), this); | |
if (!e) { | |
var o = t.pipes, | |
l = t.pipesCount; | |
t.pipes = null, t.pipesCount = 0, t.flowing = !1; | |
for (var r = 0; r < l; r++) o[r].emit("unpipe", this, n); | |
return this | |
} | |
var i = F(t.pipes, e); | |
return -1 === i ? this : (t.pipes.splice(i, 1), t.pipesCount -= 1, 1 === t.pipesCount && (t.pipes = t.pipes[0]), e.emit("unpipe", this, n), this) | |
}, a.prototype.on = function(e, t) { | |
var n = T.prototype.on.call(this, e, t); | |
if ("data" === e) !1 !== this._readableState.flowing && this.resume(); | |
else if ("readable" === e) { | |
var o = this._readableState; | |
o.endEmitted || o.readableListening || (o.readableListening = o.needReadable = !0, o.emittedReadable = !1, o.reading ? o.length && p(this) : Y.nextTick(C, this)) | |
} | |
return n | |
}, a.prototype.addListener = a.prototype.on, a.prototype.resume = function() { | |
var e = this._readableState; | |
return e.flowing || (P("resume"), e.flowing = !0, w(this, e)), this | |
}, a.prototype.pause = function() { | |
return P("call pause flowing=%j", this._readableState.flowing), !1 !== this._readableState.flowing && (P("pause"), this._readableState.flowing = !1, this.emit("pause")), this | |
}, a.prototype.wrap = function(e) { | |
var t = this, | |
n = this._readableState, | |
o = !1; | |
e.on("end", function() { | |
if (P("wrapped end"), n.decoder && !n.ended) { | |
var e = n.decoder.end(); | |
e && e.length && t.push(e) | |
} | |
t.push(null) | |
}), e.on("data", function(l) { | |
if (P("wrapped data"), n.decoder && (l = n.decoder.write(l)), (!n.objectMode || null !== l && void 0 !== l) && (n.objectMode || l && l.length)) { | |
t.push(l) || (o = !0, e.pause()) | |
} | |
}); | |
for (var l in e) void 0 === this[l] && "function" == typeof e[l] && (this[l] = function(t) { | |
return function() { | |
return e[t].apply(e, arguments) | |
} | |
}(l)); | |
for (var r = 0; r < V.length; r++) e.on(V[r], this.emit.bind(this, V[r])); | |
return this._read = function(t) { | |
P("wrapped _read", t), o && (o = !1, e.resume()) | |
}, this | |
}, a._fromList = v | |
}).call(t, n(5), n(15)) | |
}, function(e, t, n) { | |
e.exports = n(11).EventEmitter | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
var n = this, | |
o = this._readableState && this._readableState.destroyed, | |
l = this._writableState && this._writableState.destroyed; | |
return o || l ? (t ? t(e) : !e || this._writableState && this._writableState.errorEmitted || i.nextTick(r, this, e), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(e) { | |
!t && e ? (i.nextTick(r, n, e), n._writableState && (n._writableState.errorEmitted = !0)) : t && t(e) | |
}), this) | |
} | |
function l() { | |
this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1) | |
} | |
function r(e, t) { | |
e.emit("error", t) | |
} | |
var i = n(30); | |
e.exports = { | |
destroy: o, | |
undestroy: l | |
} | |
}, function(e, t, n) { | |
(function(e) { | |
function o(e, t) { | |
this._id = e, this._clearFn = t | |
} | |
var l = Function.prototype.apply; | |
t.setTimeout = function() { | |
return new o(l.call(setTimeout, window, arguments), clearTimeout) | |
}, t.setInterval = function() { | |
return new o(l.call(setInterval, window, arguments), clearInterval) | |
}, t.clearTimeout = t.clearInterval = function(e) { | |
e && e.close() | |
}, o.prototype.unref = o.prototype.ref = function() {}, o.prototype.close = function() { | |
this._clearFn.call(window, this._id) | |
}, t.enroll = function(e, t) { | |
clearTimeout(e._idleTimeoutId), e._idleTimeout = t | |
}, t.unenroll = function(e) { | |
clearTimeout(e._idleTimeoutId), e._idleTimeout = -1 | |
}, t._unrefActive = t.active = function(e) { | |
clearTimeout(e._idleTimeoutId); | |
var t = e._idleTimeout; | |
t >= 0 && (e._idleTimeoutId = setTimeout(function() { | |
e._onTimeout && e._onTimeout() | |
}, t)) | |
}, n(123), t.setImmediate = "undefined" != typeof self && self.setImmediate || void 0 !== e && e.setImmediate || this && this.setImmediate, t.clearImmediate = "undefined" != typeof self && self.clearImmediate || void 0 !== e && e.clearImmediate || this && this.clearImmediate | |
}).call(t, n(5)) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
var n = this._transformState; | |
n.transforming = !1; | |
var o = n.writecb; | |
if (!o) return this.emit("error", new Error("write callback called multiple times")); | |
n.writechunk = null, n.writecb = null, null != t && this.push(t), o(e); | |
var l = this._readableState; | |
l.reading = !1, (l.needReadable || l.length < l.highWaterMark) && this._read(l.highWaterMark) | |
} | |
function l(e) { | |
if (!(this instanceof l)) return new l(e); | |
A.call(this, e), this._transformState = { | |
afterTransform: o.bind(this), | |
needTransform: !1, | |
transforming: !1, | |
writecb: null, | |
writechunk: null, | |
writeencoding: null | |
}, this._readableState.needReadable = !0, this._readableState.sync = !1, e && ("function" == typeof e.transform && (this._transform = e.transform), "function" == typeof e.flush && (this._flush = e.flush)), this.on("prefinish", r) | |
} | |
function r() { | |
var e = this; | |
"function" == typeof this._flush ? this._flush(function(t, n) { | |
i(e, t, n) | |
}) : i(this, null, null) | |
} | |
function i(e, t, n) { | |
if (t) return e.emit("error", t); | |
if (null != n && e.push(n), e._writableState.length) throw new Error("Calling transform done when ws.length != 0"); | |
if (e._transformState.transforming) throw new Error("Calling transform done when still transforming"); | |
return e.push(null) | |
} | |
e.exports = l; | |
var A = n(12), | |
a = n(23); | |
a.inherits = n(7), a.inherits(l, A), l.prototype.push = function(e, t) { | |
return this._transformState.needTransform = !1, A.prototype.push.call(this, e, t) | |
}, l.prototype._transform = function(e, t, n) { | |
throw new Error("_transform() is not implemented") | |
}, l.prototype._write = function(e, t, n) { | |
var o = this._transformState; | |
if (o.writecb = n, o.writechunk = e, o.writeencoding = t, !o.transforming) { | |
var l = this._readableState; | |
(o.needTransform || l.needReadable || l.length < l.highWaterMark) && this._read(l.highWaterMark) | |
} | |
}, l.prototype._read = function(e) { | |
var t = this._transformState; | |
null !== t.writechunk && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0 | |
}, l.prototype._destroy = function(e, t) { | |
var n = this; | |
A.prototype._destroy.call(this, e, function(e) { | |
t(e), n.emit("close") | |
}) | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
var o = n(1), | |
l = n(8), | |
r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
t.encode = function(e) { | |
for (var t, n, l, i, A, a, s, u = [], c = 0, g = e.length, h = g, d = "string" !== o.getTypeOf(e); c < e.length;) h = g - c, d ? (t = e[c++], n = c < g ? e[c++] : 0, l = c < g ? e[c++] : 0) : (t = e.charCodeAt(c++), n = c < g ? e.charCodeAt(c++) : 0, l = c < g ? e.charCodeAt(c++) : 0), i = t >> 2, A = (3 & t) << 4 | n >> 4, a = h > 1 ? (15 & n) << 2 | l >> 6 : 64, s = h > 2 ? 63 & l : 64, u.push(r.charAt(i) + r.charAt(A) + r.charAt(a) + r.charAt(s)); | |
return u.join("") | |
}, t.decode = function(e) { | |
var t, n, o, i, A, a, s, u = 0, | |
c = 0; | |
if ("data:" === e.substr(0, "data:".length)) throw new Error("Invalid base64 input, it looks like a data url."); | |
e = e.replace(/[^A-Za-z0-9\+\/\=]/g, ""); | |
var g = 3 * e.length / 4; | |
if (e.charAt(e.length - 1) === r.charAt(64) && g--, e.charAt(e.length - 2) === r.charAt(64) && g--, g % 1 != 0) throw new Error("Invalid base64 input, bad content length."); | |
var h; | |
for (h = l.uint8array ? new Uint8Array(0 | g) : new Array(0 | g); u < e.length;) i = r.indexOf(e.charAt(u++)), A = r.indexOf(e.charAt(u++)), a = r.indexOf(e.charAt(u++)), s = r.indexOf(e.charAt(u++)), t = i << 2 | A >> 4, n = (15 & A) << 4 | a >> 2, o = (3 & a) << 6 | s, h[c++] = t, 64 !== a && (h[c++] = n), 64 !== s && (h[c++] = o); | |
return h | |
} | |
}, function(e, t) { | |
var n = e.exports = { | |
version: "2.3.0" | |
}; | |
"number" == typeof __e && (__e = n) | |
}, function(e, t, n) { | |
var o = n(133); | |
e.exports = function(e, t, n) { | |
if (o(e), void 0 === t) return e; | |
switch (n) { | |
case 1: | |
return function(n) { | |
return e.call(t, n) | |
}; | |
case 2: | |
return function(n, o) { | |
return e.call(t, n, o) | |
}; | |
case 3: | |
return function(n, o, l) { | |
return e.call(t, n, o, l) | |
} | |
} | |
return function() { | |
return e.apply(t, arguments) | |
} | |
} | |
}, function(e, t) { | |
e.exports = function(e) { | |
try { | |
return !!e() | |
} catch (e) { | |
return !0 | |
} | |
} | |
}, function(e, t, n) { | |
var o = n(43), | |
l = n(33).document, | |
r = o(l) && o(l.createElement); | |
e.exports = function(e) { | |
return r ? l.createElement(e) : {} | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
(function(t) { | |
function o(e, t, n) { | |
switch (e) { | |
case "blob": | |
return A.newBlob(A.transformTo("arraybuffer", t), n); | |
case "base64": | |
return u.encode(t); | |
default: | |
return A.transformTo(e, t) | |
} | |
} | |
function l(e, n) { | |
var o, l = 0, | |
r = null, | |
i = 0; | |
for (o = 0; o < n.length; o++) i += n[o].length; | |
switch (e) { | |
case "string": | |
return n.join(""); | |
case "array": | |
return Array.prototype.concat.apply([], n); | |
case "uint8array": | |
for (r = new Uint8Array(i), o = 0; o < n.length; o++) r.set(n[o], l), l += n[o].length; | |
return r; | |
case "nodebuffer": | |
return t.concat(n); | |
default: | |
throw new Error("concat : unsupported type '" + e + "'") | |
} | |
} | |
function r(e, t) { | |
return new g.Promise(function(n, r) { | |
var i = [], | |
A = e._internalType, | |
a = e._outputType, | |
s = e._mimeType; | |
e.on("data", function(e, n) { | |
i.push(e), t && t(n) | |
}).on("error", function(e) { | |
i = [], r(e) | |
}).on("end", function() { | |
try { | |
var e = o(a, l(A, i), s); | |
n(e) | |
} catch (e) { | |
r(e) | |
} | |
i = [] | |
}).resume() | |
}) | |
} | |
function i(e, t, n) { | |
var o = t; | |
switch (t) { | |
case "blob": | |
case "arraybuffer": | |
o = "uint8array"; | |
break; | |
case "base64": | |
o = "string" | |
} | |
try { | |
this._internalType = o, this._outputType = t, this._mimeType = n, A.checkSupport(o), this._worker = e.pipe(new a(o)), e.lock() | |
} catch (e) { | |
this._worker = new s("error"), this._worker.error(e) | |
} | |
} | |
var A = n(1), | |
a = n(146), | |
s = n(4), | |
u = n(62), | |
c = n(8), | |
g = n(24), | |
h = null; | |
if (c.nodestream) try { | |
h = n(147) | |
} catch (e) {} | |
i.prototype = { | |
accumulate: function(e) { | |
return r(this, e) | |
}, | |
on: function(e, t) { | |
var n = this; | |
return "data" === e ? this._worker.on(e, function(e) { | |
t.call(n, e.data, e.meta) | |
}) : this._worker.on(e, function() { | |
A.delay(t, arguments, n) | |
}), this | |
}, | |
resume: function() { | |
return A.delay(this._worker.resume, [], this._worker), this | |
}, | |
pause: function() { | |
return this._worker.pause(), this | |
}, | |
toNodejsStream: function(e) { | |
if (A.checkSupport("nodestream"), "nodebuffer" !== this._outputType) throw new Error(this._outputType + " is not supported by this method"); | |
return new h(this, { | |
objectMode: "nodebuffer" !== this._outputType | |
}, e) | |
} | |
}, e.exports = i | |
}).call(t, n(6).Buffer) | |
}, function(e, t, n) { | |
"use strict"; | |
t.base64 = !1, t.binary = !1, t.dir = !1, t.createFolders = !0, t.date = null, t.compression = null, t.compressionOptions = null, t.comment = null, t.unixPermissions = null, t.dosPermissions = null | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
r.call(this, "DataWorker"); | |
var t = this; | |
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, e.then(function(e) { | |
t.dataIsReady = !0, t.data = e, t.max = e && e.length || 0, t.type = l.getTypeOf(e), t.isPaused || t._tickAndRepeat() | |
}, function(e) { | |
t.error(e) | |
}) | |
} | |
var l = n(1), | |
r = n(4); | |
l.inherits(o, r), o.prototype.cleanUp = function() { | |
r.prototype.cleanUp.call(this), this.data = null | |
}, o.prototype.resume = function() { | |
return !!r.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, l.delay(this._tickAndRepeat, [], this)), !0) | |
}, o.prototype._tickAndRepeat = function() { | |
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (l.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0)) | |
}, o.prototype._tick = function() { | |
if (this.isPaused || this.isFinished) return !1; | |
var e = null, | |
t = Math.min(this.max, this.index + 16384); | |
if (this.index >= this.max) return this.end(); | |
switch (this.type) { | |
case "string": | |
e = this.data.substring(this.index, t); | |
break; | |
case "uint8array": | |
e = this.data.subarray(this.index, t); | |
break; | |
case "array": | |
case "nodebuffer": | |
e = this.data.slice(this.index, t) | |
} | |
return this.index = t, this.push({ | |
data: e, | |
meta: { | |
percent: this.max ? this.index / this.max * 100 : 0 | |
} | |
}) | |
}, e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
r.call(this, "DataLengthProbe for " + e), this.propName = e, this.withStreamInfo(e, 0) | |
} | |
var l = n(1), | |
r = n(4); | |
l.inherits(o, r), o.prototype.processChunk = function(e) { | |
if (e) { | |
var t = this.streamInfo[this.propName] || 0; | |
this.streamInfo[this.propName] = t + e.data.length | |
} | |
r.prototype.processChunk.call(this, e) | |
}, e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
function o() { | |
l.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0) | |
} | |
var l = n(4), | |
r = n(46); | |
n(1).inherits(o, l), o.prototype.processChunk = function(e) { | |
this.streamInfo.crc32 = r(e.data, this.streamInfo.crc32 || 0), this.push(e) | |
}, e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
var o = n(4); | |
t.STORE = { | |
magic: "\0\0", | |
compressWorker: function(e) { | |
return new o("STORE compression") | |
}, | |
uncompressWorker: function() { | |
return new o("STORE decompression") | |
} | |
}, t.DEFLATE = n(150) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t, n, o) { | |
for (var l = 65535 & e | 0, r = e >>> 16 & 65535 | 0, i = 0; 0 !== n;) { | |
i = n > 2e3 ? 2e3 : n, n -= i; | |
do { | |
l = l + t[o++] | 0, r = r + l | 0 | |
} while (--i); | |
l %= 65521, r %= 65521 | |
} | |
return l | r << 16 | 0 | |
} | |
e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t, n, o) { | |
var r = l, | |
i = o + n; | |
e ^= -1; | |
for (var A = o; A < i; A++) e = e >>> 8 ^ r[255 & (e ^ t[A])]; | |
return -1 ^ e | |
} | |
var l = function() { | |
for (var e, t = [], n = 0; n < 256; n++) { | |
e = n; | |
for (var o = 0; o < 8; o++) e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1; | |
t[n] = e | |
} | |
return t | |
}(); | |
e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (t < 65537 && (e.subarray && i || !e.subarray && r)) return String.fromCharCode.apply(null, l.shrinkBuf(e, t)); | |
for (var n = "", o = 0; o < t; o++) n += String.fromCharCode(e[o]); | |
return n | |
} | |
var l = n(9), | |
r = !0, | |
i = !0; | |
try { | |
String.fromCharCode.apply(null, [0]) | |
} catch (e) { | |
r = !1 | |
} | |
try { | |
String.fromCharCode.apply(null, new Uint8Array(1)) | |
} catch (e) { | |
i = !1 | |
} | |
for (var A = new l.Buf8(256), a = 0; a < 256; a++) A[a] = a >= 252 ? 6 : a >= 248 ? 5 : a >= 240 ? 4 : a >= 224 ? 3 : a >= 192 ? 2 : 1; | |
A[254] = A[254] = 1, t.string2buf = function(e) { | |
var t, n, o, r, i, A = e.length, | |
a = 0; | |
for (r = 0; r < A; r++) n = e.charCodeAt(r), 55296 == (64512 & n) && r + 1 < A && 56320 == (64512 & (o = e.charCodeAt(r + 1))) && (n = 65536 + (n - 55296 << 10) + (o - 56320), r++), a += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4; | |
for (t = new l.Buf8(a), i = 0, r = 0; i < a; r++) n = e.charCodeAt(r), 55296 == (64512 & n) && r + 1 < A && 56320 == (64512 & (o = e.charCodeAt(r + 1))) && (n = 65536 + (n - 55296 << 10) + (o - 56320), r++), n < 128 ? t[i++] = n : n < 2048 ? (t[i++] = 192 | n >>> 6, t[i++] = 128 | 63 & n) : n < 65536 ? (t[i++] = 224 | n >>> 12, t[i++] = 128 | n >>> 6 & 63, t[i++] = 128 | 63 & n) : (t[i++] = 240 | n >>> 18, t[i++] = 128 | n >>> 12 & 63, t[i++] = 128 | n >>> 6 & 63, t[i++] = 128 | 63 & n); | |
return t | |
}, t.buf2binstring = function(e) { | |
return o(e, e.length) | |
}, t.binstring2buf = function(e) { | |
for (var t = new l.Buf8(e.length), n = 0, o = t.length; n < o; n++) t[n] = e.charCodeAt(n); | |
return t | |
}, t.buf2string = function(e, t) { | |
var n, l, r, i, a = t || e.length, | |
s = new Array(2 * a); | |
for (l = 0, n = 0; n < a;) | |
if ((r = e[n++]) < 128) s[l++] = r; | |
else if ((i = A[r]) > 4) s[l++] = 65533, n += i - 1; | |
else { | |
for (r &= 2 === i ? 31 : 3 === i ? 15 : 7; i > 1 && n < a;) r = r << 6 | 63 & e[n++], i--; | |
i > 1 ? s[l++] = 65533 : r < 65536 ? s[l++] = r : (r -= 65536, s[l++] = 55296 | r >> 10 & 1023, s[l++] = 56320 | 1023 & r) | |
} | |
return o(s, l) | |
}, t.utf8border = function(e, t) { | |
var n; | |
for (t = t || e.length, t > e.length && (t = e.length), n = t - 1; n >= 0 && 128 == (192 & e[n]);) n--; | |
return n < 0 ? t : 0 === n ? t : n + A[e[n]] > t ? n : t | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
function o() { | |
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0 | |
} | |
e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
e.exports = { | |
Z_NO_FLUSH: 0, | |
Z_PARTIAL_FLUSH: 1, | |
Z_SYNC_FLUSH: 2, | |
Z_FULL_FLUSH: 3, | |
Z_FINISH: 4, | |
Z_BLOCK: 5, | |
Z_TREES: 6, | |
Z_OK: 0, | |
Z_STREAM_END: 1, | |
Z_NEED_DICT: 2, | |
Z_ERRNO: -1, | |
Z_STREAM_ERROR: -2, | |
Z_DATA_ERROR: -3, | |
Z_BUF_ERROR: -5, | |
Z_NO_COMPRESSION: 0, | |
Z_BEST_SPEED: 1, | |
Z_BEST_COMPRESSION: 9, | |
Z_DEFAULT_COMPRESSION: -1, | |
Z_FILTERED: 1, | |
Z_HUFFMAN_ONLY: 2, | |
Z_RLE: 3, | |
Z_FIXED: 4, | |
Z_DEFAULT_STRATEGY: 0, | |
Z_BINARY: 0, | |
Z_TEXT: 1, | |
Z_UNKNOWN: 2, | |
Z_DEFLATED: 8 | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
t.LOCAL_FILE_HEADER = "PK", t.CENTRAL_FILE_HEADER = "PK", t.CENTRAL_DIRECTORY_END = "PK", t.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK", t.ZIP64_CENTRAL_DIRECTORY_END = "PK", t.DATA_DESCRIPTOR = "PK\b" | |
}, function(e, t, n) { | |
"use strict"; | |
var o = n(1), | |
l = n(8), | |
r = n(80), | |
i = n(164), | |
A = n(165), | |
a = n(82); | |
e.exports = function(e) { | |
var t = o.getTypeOf(e); | |
return o.checkSupport(t), "string" !== t || l.uint8array ? "nodebuffer" === t ? new A(e) : l.uint8array ? new a(o.transformTo("uint8array", e)) : new r(o.transformTo("array", e)) : new i(e) | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
l.call(this, e); | |
for (var t = 0; t < this.data.length; t++) e[t] = 255 & e[t] | |
} | |
var l = n(81); | |
n(1).inherits(o, l), o.prototype.byteAt = function(e) { | |
return this.data[this.zero + e] | |
}, o.prototype.lastIndexOfSignature = function(e) { | |
for (var t = e.charCodeAt(0), n = e.charCodeAt(1), o = e.charCodeAt(2), l = e.charCodeAt(3), r = this.length - 4; r >= 0; --r) | |
if (this.data[r] === t && this.data[r + 1] === n && this.data[r + 2] === o && this.data[r + 3] === l) return r - this.zero; | |
return -1 | |
}, o.prototype.readAndCheckSignature = function(e) { | |
var t = e.charCodeAt(0), | |
n = e.charCodeAt(1), | |
o = e.charCodeAt(2), | |
l = e.charCodeAt(3), | |
r = this.readData(4); | |
return t === r[0] && n === r[1] && o === r[2] && l === r[3] | |
}, o.prototype.readData = function(e) { | |
if (this.checkOffset(e), 0 === e) return []; | |
var t = this.data.slice(this.zero + this.index, this.zero + this.index + e); | |
return this.index += e, t | |
}, e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
this.data = e, this.length = e.length, this.index = 0, this.zero = 0 | |
} | |
var l = n(1); | |
o.prototype = { | |
checkOffset: function(e) { | |
this.checkIndex(this.index + e) | |
}, | |
checkIndex: function(e) { | |
if (this.length < this.zero + e || e < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + e + "). Corrupted zip ?") | |
}, | |
setIndex: function(e) { | |
this.checkIndex(e), this.index = e | |
}, | |
skip: function(e) { | |
this.setIndex(this.index + e) | |
}, | |
byteAt: function(e) {}, | |
readInt: function(e) { | |
var t, n = 0; | |
for (this.checkOffset(e), t = this.index + e - 1; t >= this.index; t--) n = (n << 8) + this.byteAt(t); | |
return this.index += e, n | |
}, | |
readString: function(e) { | |
return l.transformTo("string", this.readData(e)) | |
}, | |
readData: function(e) {}, | |
lastIndexOfSignature: function(e) {}, | |
readAndCheckSignature: function(e) {}, | |
readDate: function() { | |
var e = this.readInt(4); | |
return new Date(Date.UTC(1980 + (e >> 25 & 127), (e >> 21 & 15) - 1, e >> 16 & 31, e >> 11 & 31, e >> 5 & 63, (31 & e) << 1)) | |
} | |
}, e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
l.call(this, e) | |
} | |
var l = n(80); | |
n(1).inherits(o, l), o.prototype.readData = function(e) { | |
if (this.checkOffset(e), 0 === e) return new Uint8Array(0); | |
var t = this.data.subarray(this.zero + this.index, this.zero + this.index + e); | |
return this.index += e, t | |
}, e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
function l(e, t) { | |
if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return !t || "object" != typeof t && "function" != typeof t ? e : t | |
} | |
function r(e, t) { | |
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
e.prototype = Object.create(t && t.prototype, { | |
constructor: { | |
value: e, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
} | |
var i = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
A = n(167), | |
a = n(2), | |
s = function(e) { | |
function t() { | |
o(this, t); | |
var e = l(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
return e.services = {}, e.workerClass = "undefined" == typeof Worker ? null : Worker, e.workers = [], e | |
} | |
return r(t, e), i(t, [{ | |
key: "setService", | |
value: function(e, t) { | |
try { | |
return this.services.hasOwnProperty(e) && a.warn("Central dispatch replacing existing service provider for " + e), this.services[e] = t, Promise.resolve() | |
} catch (e) { | |
return Promise.reject(e) | |
} | |
} | |
}, { | |
key: "addWorker", | |
value: function(e) { | |
-1 === this.workers.indexOf(e) ? (this.workers.push(e), e.onmessage = this._onMessage.bind(this, e), this._remoteCall(e, "dispatch", "handshake").catch(function(e) { | |
a.error("Could not handshake with worker: " + JSON.stringify(e)) | |
})) : a.warn("Central dispatch ignoring attempt to add duplicate worker") | |
} | |
}, { | |
key: "_getServiceProvider", | |
value: function(e) { | |
var t = this.services[e]; | |
return t && { | |
provider: t, | |
isRemote: Boolean(this.workerClass && t instanceof this.workerClass) | |
} | |
} | |
}, { | |
key: "_onDispatchMessage", | |
value: function(e, t) { | |
var n = void 0; | |
switch (t.method) { | |
case "setService": | |
n = this.setService(t.args[0], e); | |
break; | |
default: | |
a.error("Central dispatch received message for unknown method: " + t.method) | |
} | |
return n | |
} | |
}]), t | |
}(A); | |
e.exports = new s | |
}, function(e, t) { | |
function n(e, t) { | |
return t ? "color: #fff; background: " + o[e] + ";" : "color: " + o[e] + ";" | |
} | |
var o = { | |
black: "#000", | |
red: "#c23621", | |
green: "#25bc26", | |
yellow: "#bbbb00", | |
blue: "#492ee1", | |
magenta: "#d338d3", | |
cyan: "#33bbc8", | |
gray: "#808080", | |
purple: "#708" | |
}; | |
e.exports = n | |
}, function(e, t, n) { | |
"use strict"; | |
var o = n(48), | |
l = function(e, t, n) { | |
return e && e.id && e.default ? o(e, t, n) : e | |
}; | |
e.exports = l | |
}, function(e, t) { | |
e.exports = { | |
number: { | |
decimal: { | |
style: "decimal" | |
}, | |
integer: { | |
style: "decimal", | |
maximumFractionDigits: 0 | |
}, | |
currency: { | |
style: "currency", | |
currency: "USD" | |
}, | |
percent: { | |
style: "percent" | |
}, | |
default: { | |
style: "decimal" | |
} | |
}, | |
date: { | |
short: { | |
month: "numeric", | |
day: "numeric", | |
year: "2-digit" | |
}, | |
medium: { | |
month: "short", | |
day: "numeric", | |
year: "numeric" | |
}, | |
long: { | |
month: "long", | |
day: "numeric", | |
year: "numeric" | |
}, | |
full: { | |
month: "long", | |
day: "numeric", | |
year: "numeric", | |
weekday: "long" | |
}, | |
default: { | |
month: "short", | |
day: "numeric", | |
year: "numeric" | |
} | |
}, | |
time: { | |
short: { | |
hour: "numeric", | |
minute: "numeric" | |
}, | |
medium: { | |
hour: "numeric", | |
minute: "numeric", | |
second: "numeric" | |
}, | |
long: { | |
hour: "numeric", | |
minute: "numeric", | |
second: "numeric", | |
timeZoneName: "short" | |
}, | |
full: { | |
hour: "numeric", | |
minute: "numeric", | |
second: "numeric", | |
timeZoneName: "short" | |
}, | |
default: { | |
hour: "numeric", | |
minute: "numeric", | |
second: "numeric" | |
} | |
} | |
} | |
}, function(e, t) { | |
e.exports = function(e, t) { | |
if (t[e]) return e; | |
for (var n = [].concat(e || []), o = 0, l = n.length; o < l; ++o) | |
for (var r = n[o].split("-"); r.length;) { | |
if (r.join("-") in t) return r.join("-"); | |
r.pop() | |
} | |
return "en" | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
var o = [function(e) { | |
return 1 == +e ? "one" : "other" | |
}, function(e) { | |
var t = +e; | |
return 0 <= t && t <= 1 ? "one" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = +e; | |
return 0 === t || 1 === n ? "one" : "other" | |
}, function(e) { | |
var t = +e; | |
return 0 === t ? "zero" : 1 === t ? "one" : 2 === t ? "two" : 3 <= t % 100 && t % 100 <= 10 ? "few" : 11 <= t % 100 && t % 100 <= 99 ? "many" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length; | |
return 1 === t && 0 === n ? "one" : "other" | |
}, function(e) { | |
var t = +e; | |
return t % 10 == 1 && t % 100 != 11 ? "one" : 2 <= t % 10 && t % 10 <= 4 && (t % 100 < 12 || 14 < t % 100) ? "few" : t % 10 == 0 || 5 <= t % 10 && t % 10 <= 9 || 11 <= t % 100 && t % 100 <= 14 ? "many" : "other" | |
}, function(e) { | |
var t = +e; | |
return t % 10 == 1 && t % 100 != 11 && t % 100 != 71 && t % 100 != 91 ? "one" : t % 10 == 2 && t % 100 != 12 && t % 100 != 72 && t % 100 != 92 ? "two" : (3 <= t % 10 && t % 10 <= 4 || t % 10 == 9) && (t % 100 < 10 || 19 < t % 100) && (t % 100 < 70 || 79 < t % 100) && (t % 100 < 90 || 99 < t % 100) ? "few" : 0 !== t && t % 1e6 == 0 ? "many" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length, | |
o = +(e + ".").split(".")[1]; | |
return 0 === n && t % 10 == 1 && t % 100 != 11 || o % 10 == 1 && o % 100 != 11 ? "one" : 0 === n && 2 <= t % 10 && t % 10 <= 4 && (t % 100 < 12 || 14 < t % 100) || 2 <= o % 10 && o % 10 <= 4 && (o % 100 < 12 || 14 < o % 100) ? "few" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length; | |
return 1 === t && 0 === n ? "one" : 2 <= t && t <= 4 && 0 === n ? "few" : 0 !== n ? "many" : "other" | |
}, function(e) { | |
var t = +e; | |
return 0 === t ? "zero" : 1 === t ? "one" : 2 === t ? "two" : 3 === t ? "few" : 6 === t ? "many" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = +("" + e).replace(/^[^.]*.?|0+$/g, ""); | |
return 1 == +e || 0 !== n && (0 === t || 1 === t) ? "one" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length, | |
o = +(e + ".").split(".")[1]; | |
return 0 === n && t % 100 == 1 || o % 100 == 1 ? "one" : 0 === n && t % 100 == 2 || o % 100 == 2 ? "two" : 0 === n && 3 <= t % 100 && t % 100 <= 4 || 3 <= o % 100 && o % 100 <= 4 ? "few" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)); | |
return 0 === t || 1 === t ? "one" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length, | |
o = +(e + ".").split(".")[1]; | |
return 0 === n && (1 === t || 2 === t || 3 === t) || 0 === n && t % 10 != 4 && t % 10 != 6 && t % 10 != 9 || 0 !== n && o % 10 != 4 && o % 10 != 6 && o % 10 != 9 ? "one" : "other" | |
}, function(e) { | |
var t = +e; | |
return 1 === t ? "one" : 2 === t ? "two" : 3 <= t && t <= 6 ? "few" : 7 <= t && t <= 10 ? "many" : "other" | |
}, function(e) { | |
var t = +e; | |
return 1 === t || 11 === t ? "one" : 2 === t || 12 === t ? "two" : 3 <= t && t <= 10 || 13 <= t && t <= 19 ? "few" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length; | |
return 0 === n && t % 10 == 1 ? "one" : 0 === n && t % 10 == 2 ? "two" : 0 !== n || t % 100 != 0 && t % 100 != 20 && t % 100 != 40 && t % 100 != 60 && t % 100 != 80 ? 0 !== n ? "many" : "other" : "few" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length, | |
o = +e; | |
return 1 === t && 0 === n ? "one" : 2 === t && 0 === n ? "two" : 0 === n && (o < 0 || 10 < o) && o % 10 == 0 ? "many" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = +("" + e).replace(/^[^.]*.?|0+$/g, ""); | |
return 0 === n && t % 10 == 1 && t % 100 != 11 || 0 !== n ? "one" : "other" | |
}, function(e) { | |
var t = +e; | |
return 1 === t ? "one" : 2 === t ? "two" : "other" | |
}, function(e) { | |
var t = +e; | |
return 0 === t ? "zero" : 1 === t ? "one" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = +e; | |
return 0 === n ? "zero" : 0 !== t && 1 !== t || 0 === n ? "other" : "one" | |
}, function(e) { | |
var t = +(e + ".").split(".")[1], | |
n = +e; | |
return n % 10 == 1 && (n % 100 < 11 || 19 < n % 100) ? "one" : 2 <= n % 10 && n % 10 <= 9 && (n % 100 < 11 || 19 < n % 100) ? "few" : 0 !== t ? "many" : "other" | |
}, function(e) { | |
var t = (e + ".").split(".")[1].length, | |
n = +(e + ".").split(".")[1], | |
o = +e; | |
return o % 10 == 0 || 11 <= o % 100 && o % 100 <= 19 || 2 === t && 11 <= n % 100 && n % 100 <= 19 ? "zero" : o % 10 == 1 && o % 100 != 11 || 2 === t && n % 10 == 1 && n % 100 != 11 || 2 !== t && n % 10 == 1 ? "one" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length, | |
o = +(e + ".").split(".")[1]; | |
return 0 === n && t % 10 == 1 || o % 10 == 1 ? "one" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length, | |
o = +e; | |
return 1 === t && 0 === n ? "one" : 0 !== n || 0 === o || 1 !== o && 1 <= o % 100 && o % 100 <= 19 ? "few" : "other" | |
}, function(e) { | |
var t = +e; | |
return 1 === t ? "one" : 0 === t || 2 <= t % 100 && t % 100 <= 10 ? "few" : 11 <= t % 100 && t % 100 <= 19 ? "many" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length; | |
return 1 === t && 0 === n ? "one" : 0 === n && 2 <= t % 10 && t % 10 <= 4 && (t % 100 < 12 || 14 < t % 100) ? "few" : 0 === n && 1 !== t && 0 <= t % 10 && t % 10 <= 1 || 0 === n && 5 <= t % 10 && t % 10 <= 9 || 0 === n && 12 <= t % 100 && t % 100 <= 14 ? "many" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)); | |
return 0 <= t && t <= 1 ? "one" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length; | |
return 0 === n && t % 10 == 1 && t % 100 != 11 ? "one" : 0 === n && 2 <= t % 10 && t % 10 <= 4 && (t % 100 < 12 || 14 < t % 100) ? "few" : 0 === n && t % 10 == 0 || 0 === n && 5 <= t % 10 && t % 10 <= 9 || 0 === n && 11 <= t % 100 && t % 100 <= 14 ? "many" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = +e; | |
return 0 === t || 1 === n ? "one" : 2 <= n && n <= 10 ? "few" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = +(e + ".").split(".")[1], | |
o = +e; | |
return 0 === o || 1 === o || 0 === t && 1 === n ? "one" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)), | |
n = (e + ".").split(".")[1].length; | |
return 0 === n && t % 100 == 1 ? "one" : 0 === n && t % 100 == 2 ? "two" : 0 === n && 3 <= t % 100 && t % 100 <= 4 || 0 !== n ? "few" : "other" | |
}, function(e) { | |
var t = +e; | |
return 0 <= t && t <= 1 || 11 <= t && t <= 99 ? "one" : "other" | |
}, function(e) { | |
var t = +e; | |
return 1 === t || 5 === t || 7 === t || 8 === t || 9 === t || 10 === t ? "one" : 2 === t || 3 === t ? "two" : 4 === t ? "few" : 6 === t ? "many" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)); | |
return t % 10 == 1 || t % 10 == 2 || t % 10 == 5 || t % 10 == 7 || t % 10 == 8 || t % 100 == 20 || t % 100 == 50 || t % 100 == 70 || t % 100 == 80 ? "one" : t % 10 == 3 || t % 10 == 4 || t % 1e3 == 100 || t % 1e3 == 200 || t % 1e3 == 300 || t % 1e3 == 400 || t % 1e3 == 500 || t % 1e3 == 600 || t % 1e3 == 700 || t % 1e3 == 800 || t % 1e3 == 900 ? "few" : 0 === t || t % 10 == 6 || t % 100 == 40 || t % 100 == 60 || t % 100 == 90 ? "many" : "other" | |
}, function(e) { | |
var t = +e; | |
return t % 10 != 2 && t % 10 != 3 || t % 100 == 12 || t % 100 == 13 ? "other" : "few" | |
}, function(e) { | |
var t = +e; | |
return 1 === t || 3 === t ? "one" : 2 === t ? "two" : 4 === t ? "few" : "other" | |
}, function(e) { | |
var t = +e; | |
return 0 === t || 7 === t || 8 === t || 9 === t ? "zero" : 1 === t ? "one" : 2 === t ? "two" : 3 === t || 4 === t ? "few" : 5 === t || 6 === t ? "many" : "other" | |
}, function(e) { | |
var t = +e; | |
return t % 10 == 1 && t % 100 != 11 ? "one" : t % 10 == 2 && t % 100 != 12 ? "two" : t % 10 == 3 && t % 100 != 13 ? "few" : "other" | |
}, function(e) { | |
var t = +e; | |
return 1 === t ? "one" : 2 === t || 3 === t ? "two" : 4 === t ? "few" : 6 === t ? "many" : "other" | |
}, function(e) { | |
var t = +e; | |
return 1 === t || 5 === t ? "one" : "other" | |
}, function(e) { | |
var t = +e; | |
return 11 === t || 8 === t || 80 === t || 800 === t ? "many" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)); | |
return 1 === t ? "one" : 0 === t || 2 <= t % 100 && t % 100 <= 20 || t % 100 == 40 || t % 100 == 60 || t % 100 == 80 ? "many" : "other" | |
}, function(e) { | |
var t = +e; | |
return t % 10 == 6 || t % 10 == 9 || t % 10 == 0 && 0 !== t ? "many" : "other" | |
}, function(e) { | |
var t = Math.floor(Math.abs(+e)); | |
return t % 10 == 1 && t % 100 != 11 ? "one" : t % 10 == 2 && t % 100 != 12 ? "two" : t % 10 != 7 && t % 10 != 8 || t % 100 == 17 || t % 100 == 18 ? "other" : "many" | |
}, function(e) { | |
var t = +e; | |
return 1 === t ? "one" : 2 === t || 3 === t ? "two" : 4 === t ? "few" : "other" | |
}, function(e) { | |
var t = +e; | |
return 1 <= t && t <= 4 ? "one" : "other" | |
}, function(e) { | |
var t = +e; | |
return 1 === t || 5 === t || 7 <= t && t <= 9 ? "one" : 2 === t || 3 === t ? "two" : 4 === t ? "few" : 6 === t ? "many" : "other" | |
}, function(e) { | |
var t = +e; | |
return 1 === t ? "one" : t % 10 == 4 && t % 100 != 14 ? "many" : "other" | |
}, function(e) { | |
var t = +e; | |
return t % 10 != 1 && t % 10 != 2 || t % 100 == 11 || t % 100 == 12 ? "other" : "one" | |
}, function(e) { | |
var t = +e; | |
return t % 10 == 6 || t % 10 == 9 || 10 === t ? "few" : "other" | |
}, function(e) { | |
var t = +e; | |
return t % 10 == 3 && t % 100 != 13 ? "few" : "other" | |
}]; | |
e.exports = { | |
af: { | |
cardinal: o[0] | |
}, | |
ak: { | |
cardinal: o[1] | |
}, | |
am: { | |
cardinal: o[2] | |
}, | |
ar: { | |
cardinal: o[3] | |
}, | |
ars: { | |
cardinal: o[3] | |
}, | |
as: { | |
cardinal: o[2], | |
ordinal: o[34] | |
}, | |
asa: { | |
cardinal: o[0] | |
}, | |
ast: { | |
cardinal: o[4] | |
}, | |
az: { | |
cardinal: o[0], | |
ordinal: o[35] | |
}, | |
be: { | |
cardinal: o[5], | |
ordinal: o[36] | |
}, | |
bem: { | |
cardinal: o[0] | |
}, | |
bez: { | |
cardinal: o[0] | |
}, | |
bg: { | |
cardinal: o[0] | |
}, | |
bh: { | |
cardinal: o[1] | |
}, | |
bn: { | |
cardinal: o[2], | |
ordinal: o[34] | |
}, | |
br: { | |
cardinal: o[6] | |
}, | |
brx: { | |
cardinal: o[0] | |
}, | |
bs: { | |
cardinal: o[7] | |
}, | |
ca: { | |
cardinal: o[4], | |
ordinal: o[37] | |
}, | |
ce: { | |
cardinal: o[0] | |
}, | |
cgg: { | |
cardinal: o[0] | |
}, | |
chr: { | |
cardinal: o[0] | |
}, | |
ckb: { | |
cardinal: o[0] | |
}, | |
cs: { | |
cardinal: o[8] | |
}, | |
cy: { | |
cardinal: o[9], | |
ordinal: o[38] | |
}, | |
da: { | |
cardinal: o[10] | |
}, | |
de: { | |
cardinal: o[4] | |
}, | |
dsb: { | |
cardinal: o[11] | |
}, | |
dv: { | |
cardinal: o[0] | |
}, | |
ee: { | |
cardinal: o[0] | |
}, | |
el: { | |
cardinal: o[0] | |
}, | |
en: { | |
cardinal: o[4], | |
ordinal: o[39] | |
}, | |
eo: { | |
cardinal: o[0] | |
}, | |
es: { | |
cardinal: o[0] | |
}, | |
et: { | |
cardinal: o[4] | |
}, | |
eu: { | |
cardinal: o[0] | |
}, | |
fa: { | |
cardinal: o[2] | |
}, | |
ff: { | |
cardinal: o[12] | |
}, | |
fi: { | |
cardinal: o[4] | |
}, | |
fil: { | |
cardinal: o[13], | |
ordinal: o[0] | |
}, | |
fo: { | |
cardinal: o[0] | |
}, | |
fr: { | |
cardinal: o[12], | |
ordinal: o[0] | |
}, | |
fur: { | |
cardinal: o[0] | |
}, | |
fy: { | |
cardinal: o[4] | |
}, | |
ga: { | |
cardinal: o[14], | |
ordinal: o[0] | |
}, | |
gd: { | |
cardinal: o[15] | |
}, | |
gl: { | |
cardinal: o[4] | |
}, | |
gsw: { | |
cardinal: o[0] | |
}, | |
gu: { | |
cardinal: o[2], | |
ordinal: o[40] | |
}, | |
guw: { | |
cardinal: o[1] | |
}, | |
gv: { | |
cardinal: o[16] | |
}, | |
ha: { | |
cardinal: o[0] | |
}, | |
haw: { | |
cardinal: o[0] | |
}, | |
he: { | |
cardinal: o[17] | |
}, | |
hi: { | |
cardinal: o[2], | |
ordinal: o[40] | |
}, | |
hr: { | |
cardinal: o[7] | |
}, | |
hsb: { | |
cardinal: o[11] | |
}, | |
hu: { | |
cardinal: o[0], | |
ordinal: o[41] | |
}, | |
hy: { | |
cardinal: o[12], | |
ordinal: o[0] | |
}, | |
io: { | |
cardinal: o[4] | |
}, | |
is: { | |
cardinal: o[18] | |
}, | |
it: { | |
cardinal: o[4], | |
ordinal: o[42] | |
}, | |
iu: { | |
cardinal: o[19] | |
}, | |
iw: { | |
cardinal: o[17] | |
}, | |
jgo: { | |
cardinal: o[0] | |
}, | |
ji: { | |
cardinal: o[4] | |
}, | |
jmc: { | |
cardinal: o[0] | |
}, | |
ka: { | |
cardinal: o[0], | |
ordinal: o[43] | |
}, | |
kab: { | |
cardinal: o[12] | |
}, | |
kaj: { | |
cardinal: o[0] | |
}, | |
kcg: { | |
cardinal: o[0] | |
}, | |
kk: { | |
cardinal: o[0], | |
ordinal: o[44] | |
}, | |
kkj: { | |
cardinal: o[0] | |
}, | |
kl: { | |
cardinal: o[0] | |
}, | |
kn: { | |
cardinal: o[2] | |
}, | |
ks: { | |
cardinal: o[0] | |
}, | |
ksb: { | |
cardinal: o[0] | |
}, | |
ksh: { | |
cardinal: o[20] | |
}, | |
ku: { | |
cardinal: o[0] | |
}, | |
kw: { | |
cardinal: o[19] | |
}, | |
ky: { | |
cardinal: o[0] | |
}, | |
lag: { | |
cardinal: o[21] | |
}, | |
lb: { | |
cardinal: o[0] | |
}, | |
lg: { | |
cardinal: o[0] | |
}, | |
ln: { | |
cardinal: o[1] | |
}, | |
lt: { | |
cardinal: o[22] | |
}, | |
lv: { | |
cardinal: o[23] | |
}, | |
mas: { | |
cardinal: o[0] | |
}, | |
mg: { | |
cardinal: o[1] | |
}, | |
mgo: { | |
cardinal: o[0] | |
}, | |
mk: { | |
cardinal: o[24], | |
ordinal: o[45] | |
}, | |
ml: { | |
cardinal: o[0] | |
}, | |
mn: { | |
cardinal: o[0] | |
}, | |
mo: { | |
cardinal: o[25], | |
ordinal: o[0] | |
}, | |
mr: { | |
cardinal: o[2], | |
ordinal: o[46] | |
}, | |
mt: { | |
cardinal: o[26] | |
}, | |
nah: { | |
cardinal: o[0] | |
}, | |
naq: { | |
cardinal: o[19] | |
}, | |
nb: { | |
cardinal: o[0] | |
}, | |
nd: { | |
cardinal: o[0] | |
}, | |
ne: { | |
cardinal: o[0], | |
ordinal: o[47] | |
}, | |
nl: { | |
cardinal: o[4] | |
}, | |
nn: { | |
cardinal: o[0] | |
}, | |
nnh: { | |
cardinal: o[0] | |
}, | |
no: { | |
cardinal: o[0] | |
}, | |
nr: { | |
cardinal: o[0] | |
}, | |
nso: { | |
cardinal: o[1] | |
}, | |
ny: { | |
cardinal: o[0] | |
}, | |
nyn: { | |
cardinal: o[0] | |
}, | |
om: { | |
cardinal: o[0] | |
}, | |
or: { | |
cardinal: o[0], | |
ordinal: o[48] | |
}, | |
os: { | |
cardinal: o[0] | |
}, | |
pa: { | |
cardinal: o[1] | |
}, | |
pap: { | |
cardinal: o[0] | |
}, | |
pl: { | |
cardinal: o[27] | |
}, | |
prg: { | |
cardinal: o[23] | |
}, | |
ps: { | |
cardinal: o[0] | |
}, | |
pt: { | |
cardinal: o[28] | |
}, | |
"pt-PT": { | |
cardinal: o[4] | |
}, | |
rm: { | |
cardinal: o[0] | |
}, | |
ro: { | |
cardinal: o[25], | |
ordinal: o[0] | |
}, | |
rof: { | |
cardinal: o[0] | |
}, | |
ru: { | |
cardinal: o[29] | |
}, | |
rwk: { | |
cardinal: o[0] | |
}, | |
saq: { | |
cardinal: o[0] | |
}, | |
sd: { | |
cardinal: o[0] | |
}, | |
sdh: { | |
cardinal: o[0] | |
}, | |
se: { | |
cardinal: o[19] | |
}, | |
seh: { | |
cardinal: o[0] | |
}, | |
sh: { | |
cardinal: o[7] | |
}, | |
shi: { | |
cardinal: o[30] | |
}, | |
si: { | |
cardinal: o[31] | |
}, | |
sk: { | |
cardinal: o[8] | |
}, | |
sl: { | |
cardinal: o[32] | |
}, | |
sma: { | |
cardinal: o[19] | |
}, | |
smi: { | |
cardinal: o[19] | |
}, | |
smj: { | |
cardinal: o[19] | |
}, | |
smn: { | |
cardinal: o[19] | |
}, | |
sms: { | |
cardinal: o[19] | |
}, | |
sn: { | |
cardinal: o[0] | |
}, | |
so: { | |
cardinal: o[0] | |
}, | |
sq: { | |
cardinal: o[0], | |
ordinal: o[49] | |
}, | |
sr: { | |
cardinal: o[7] | |
}, | |
ss: { | |
cardinal: o[0] | |
}, | |
ssy: { | |
cardinal: o[0] | |
}, | |
st: { | |
cardinal: o[0] | |
}, | |
sv: { | |
cardinal: o[4], | |
ordinal: o[50] | |
}, | |
sw: { | |
cardinal: o[4] | |
}, | |
syr: { | |
cardinal: o[0] | |
}, | |
ta: { | |
cardinal: o[0] | |
}, | |
te: { | |
cardinal: o[0] | |
}, | |
teo: { | |
cardinal: o[0] | |
}, | |
ti: { | |
cardinal: o[1] | |
}, | |
tig: { | |
cardinal: o[0] | |
}, | |
tk: { | |
cardinal: o[0], | |
ordinal: o[51] | |
}, | |
tl: { | |
cardinal: o[13], | |
ordinal: o[0] | |
}, | |
tn: { | |
cardinal: o[0] | |
}, | |
tr: { | |
cardinal: o[0] | |
}, | |
ts: { | |
cardinal: o[0] | |
}, | |
tzm: { | |
cardinal: o[33] | |
}, | |
ug: { | |
cardinal: o[0] | |
}, | |
uk: { | |
cardinal: o[29], | |
ordinal: o[52] | |
}, | |
ur: { | |
cardinal: o[4] | |
}, | |
uz: { | |
cardinal: o[0] | |
}, | |
ve: { | |
cardinal: o[0] | |
}, | |
vo: { | |
cardinal: o[0] | |
}, | |
vun: { | |
cardinal: o[0] | |
}, | |
wa: { | |
cardinal: o[1] | |
}, | |
wae: { | |
cardinal: o[0] | |
}, | |
xh: { | |
cardinal: o[0] | |
}, | |
xog: { | |
cardinal: o[0] | |
}, | |
yi: { | |
cardinal: o[4] | |
}, | |
zu: { | |
cardinal: o[2] | |
}, | |
lo: { | |
ordinal: o[0] | |
}, | |
ms: { | |
ordinal: o[0] | |
}, | |
vi: { | |
ordinal: o[0] | |
} | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
var o = "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 | |
}, | |
l = n(20), | |
r = n(205), | |
i = function e(t) { | |
var n = Object.create(null); | |
n.tagName = t.name, n.children = []; | |
for (var o in t.attribs) "xmlns" !== o && (n[o] = r(t.attribs[o])); | |
for (var l = 0; l < t.children.length; l++) n.children.push(e(t.children[l])); | |
return n | |
}, | |
A = function(e) { | |
var t = void 0; | |
return t = "object" === (void 0 === e ? "undefined" : o(e)) ? e : l.parseDOM(e)[0], i(t) | |
}; | |
e.exports = A | |
}, function(e, t, n) { | |
function o(e, t) { | |
this._options = t || {}, this._cbs = e || {}, this._tagname = "", this._attribname = "", this._attribvalue = "", this._attribs = null, this._stack = [], this.startIndex = 0, this.endIndex = null, this._lowerCaseTagNames = "lowerCaseTags" in this._options ? !!this._options.lowerCaseTags : !this._options.xmlMode, this._lowerCaseAttributeNames = "lowerCaseAttributeNames" in this._options ? !!this._options.lowerCaseAttributeNames : !this._options.xmlMode, this._options.Tokenizer && (l = this._options.Tokenizer), this._tokenizer = new l(this._options, this), this._cbs.onparserinit && this._cbs.onparserinit(this) | |
} | |
var l = n(91), | |
r = { | |
input: !0, | |
option: !0, | |
optgroup: !0, | |
select: !0, | |
button: !0, | |
datalist: !0, | |
textarea: !0 | |
}, | |
i = { | |
tr: { | |
tr: !0, | |
th: !0, | |
td: !0 | |
}, | |
th: { | |
th: !0 | |
}, | |
td: { | |
thead: !0, | |
th: !0, | |
td: !0 | |
}, | |
body: { | |
head: !0, | |
link: !0, | |
script: !0 | |
}, | |
li: { | |
li: !0 | |
}, | |
p: { | |
p: !0 | |
}, | |
h1: { | |
p: !0 | |
}, | |
h2: { | |
p: !0 | |
}, | |
h3: { | |
p: !0 | |
}, | |
h4: { | |
p: !0 | |
}, | |
h5: { | |
p: !0 | |
}, | |
h6: { | |
p: !0 | |
}, | |
select: r, | |
input: r, | |
output: r, | |
button: r, | |
datalist: r, | |
textarea: r, | |
option: { | |
option: !0 | |
}, | |
optgroup: { | |
optgroup: !0 | |
} | |
}, | |
A = { | |
__proto__: null, | |
area: !0, | |
base: !0, | |
basefont: !0, | |
br: !0, | |
col: !0, | |
command: !0, | |
embed: !0, | |
frame: !0, | |
hr: !0, | |
img: !0, | |
input: !0, | |
isindex: !0, | |
keygen: !0, | |
link: !0, | |
meta: !0, | |
param: !0, | |
source: !0, | |
track: !0, | |
wbr: !0, | |
path: !0, | |
circle: !0, | |
ellipse: !0, | |
line: !0, | |
rect: !0, | |
use: !0, | |
stop: !0, | |
polyline: !0, | |
polygon: !0 | |
}, | |
a = /\s|\//; | |
n(7)(o, n(11).EventEmitter), o.prototype._updatePosition = function(e) { | |
null === this.endIndex ? this._tokenizer._sectionStart <= e ? this.startIndex = 0 : this.startIndex = this._tokenizer._sectionStart - e : this.startIndex = this.endIndex + 1, this.endIndex = this._tokenizer.getAbsoluteIndex() | |
}, o.prototype.ontext = function(e) { | |
this._updatePosition(1), this.endIndex--, this._cbs.ontext && this._cbs.ontext(e) | |
}, o.prototype.onopentagname = function(e) { | |
if (this._lowerCaseTagNames && (e = e.toLowerCase()), this._tagname = e, !this._options.xmlMode && e in i) | |
for (var t; | |
(t = this._stack[this._stack.length - 1]) in i[e]; this.onclosetag(t)); | |
!this._options.xmlMode && e in A || this._stack.push(e), this._cbs.onopentagname && this._cbs.onopentagname(e), this._cbs.onopentag && (this._attribs = {}) | |
}, o.prototype.onopentagend = function() { | |
this._updatePosition(1), this._attribs && (this._cbs.onopentag && this._cbs.onopentag(this._tagname, this._attribs), this._attribs = null), !this._options.xmlMode && this._cbs.onclosetag && this._tagname in A && this._cbs.onclosetag(this._tagname), this._tagname = "" | |
}, o.prototype.onclosetag = function(e) { | |
if (this._updatePosition(1), this._lowerCaseTagNames && (e = e.toLowerCase()), !this._stack.length || e in A && !this._options.xmlMode) this._options.xmlMode || "br" !== e && "p" !== e || (this.onopentagname(e), this._closeCurrentTag()); | |
else { | |
var t = this._stack.lastIndexOf(e); | |
if (-1 !== t) | |
if (this._cbs.onclosetag) | |
for (t = this._stack.length - t; t--;) this._cbs.onclosetag(this._stack.pop()); | |
else this._stack.length = t; | |
else "p" !== e || this._options.xmlMode || (this.onopentagname(e), this._closeCurrentTag()) | |
} | |
}, o.prototype.onselfclosingtag = function() { | |
this._options.xmlMode || this._options.recognizeSelfClosing ? this._closeCurrentTag() : this.onopentagend() | |
}, o.prototype._closeCurrentTag = function() { | |
var e = this._tagname; | |
this.onopentagend(), this._stack[this._stack.length - 1] === e && (this._cbs.onclosetag && this._cbs.onclosetag(e), this._stack.pop()) | |
}, o.prototype.onattribname = function(e) { | |
this._lowerCaseAttributeNames && (e = e.toLowerCase()), this._attribname = e | |
}, o.prototype.onattribdata = function(e) { | |
this._attribvalue += e | |
}, o.prototype.onattribend = function() { | |
this._cbs.onattribute && this._cbs.onattribute(this._attribname, this._attribvalue), this._attribs && !Object.prototype.hasOwnProperty.call(this._attribs, this._attribname) && (this._attribs[this._attribname] = this._attribvalue), this._attribname = "", this._attribvalue = "" | |
}, o.prototype._getInstructionName = function(e) { | |
var t = e.search(a), | |
n = t < 0 ? e : e.substr(0, t); | |
return this._lowerCaseTagNames && (n = n.toLowerCase()), n | |
}, o.prototype.ondeclaration = function(e) { | |
if (this._cbs.onprocessinginstruction) { | |
var t = this._getInstructionName(e); | |
this._cbs.onprocessinginstruction("!" + t, "!" + e) | |
} | |
}, o.prototype.onprocessinginstruction = function(e) { | |
if (this._cbs.onprocessinginstruction) { | |
var t = this._getInstructionName(e); | |
this._cbs.onprocessinginstruction("?" + t, "?" + e) | |
} | |
}, o.prototype.oncomment = function(e) { | |
this._updatePosition(4), this._cbs.oncomment && this._cbs.oncomment(e), this._cbs.oncommentend && this._cbs.oncommentend() | |
}, o.prototype.oncdata = function(e) { | |
this._updatePosition(1), this._options.xmlMode || this._options.recognizeCDATA ? (this._cbs.oncdatastart && this._cbs.oncdatastart(), this._cbs.ontext && this._cbs.ontext(e), this._cbs.oncdataend && this._cbs.oncdataend()) : this.oncomment("[CDATA[" + e + "]]") | |
}, o.prototype.onerror = function(e) { | |
this._cbs.onerror && this._cbs.onerror(e) | |
}, o.prototype.onend = function() { | |
if (this._cbs.onclosetag) | |
for (var e = this._stack.length; e > 0; this._cbs.onclosetag(this._stack[--e])); | |
this._cbs.onend && this._cbs.onend() | |
}, o.prototype.reset = function() { | |
this._cbs.onreset && this._cbs.onreset(), this._tokenizer.reset(), this._tagname = "", this._attribname = "", this._attribs = null, this._stack = [], this._cbs.onparserinit && this._cbs.onparserinit(this) | |
}, o.prototype.parseComplete = function(e) { | |
this.reset(), this.end(e) | |
}, o.prototype.write = function(e) { | |
this._tokenizer.write(e) | |
}, o.prototype.end = function(e) { | |
this._tokenizer.end(e) | |
}, o.prototype.pause = function() { | |
this._tokenizer.pause() | |
}, o.prototype.resume = function() { | |
this._tokenizer.resume() | |
}, o.prototype.parseChunk = o.prototype.write, o.prototype.done = o.prototype.end, e.exports = o | |
}, function(e, t, n) { | |
function o(e) { | |
return " " === e || "\n" === e || "\t" === e || "\f" === e || "\r" === e | |
} | |
function l(e, t, n) { | |
var o = e.toLowerCase(); | |
return e === o ? function(e) { | |
e === o ? this._state = t : (this._state = n, this._index--) | |
} : function(l) { | |
l === o || l === e ? this._state = t : (this._state = n, this._index--) | |
} | |
} | |
function r(e, t) { | |
var n = e.toLowerCase(); | |
return function(o) { | |
o === n || o === e ? this._state = t : (this._state = d, this._index--) | |
} | |
} | |
function i(e, t) { | |
this._state = g, this._buffer = "", this._sectionStart = 0, this._index = 0, this._bufferOffset = 0, this._baseState = g, this._special = de, this._cbs = t, this._running = !0, this._ended = !1, this._xmlMode = !(!e || !e.xmlMode), this._decodeEntities = !(!e || !e.decodeEntities) | |
} | |
e.exports = i; | |
var A = n(92), | |
a = n(49), | |
s = n(93), | |
u = n(50), | |
c = 0, | |
g = c++, | |
h = c++, | |
d = c++, | |
f = c++, | |
p = c++, | |
m = c++, | |
B = c++, | |
E = c++, | |
y = c++, | |
C = c++, | |
w = c++, | |
I = c++, | |
b = c++, | |
v = c++, | |
M = c++, | |
Q = c++, | |
D = c++, | |
k = c++, | |
S = c++, | |
F = c++, | |
Y = c++, | |
x = c++, | |
R = c++, | |
U = c++, | |
T = c++, | |
N = c++, | |
G = c++, | |
L = c++, | |
O = c++, | |
P = c++, | |
H = c++, | |
j = c++, | |
J = c++, | |
V = c++, | |
z = c++, | |
W = c++, | |
K = c++, | |
q = c++, | |
Z = c++, | |
_ = c++, | |
X = c++, | |
$ = c++, | |
ee = c++, | |
te = c++, | |
ne = c++, | |
oe = c++, | |
le = c++, | |
re = c++, | |
ie = c++, | |
Ae = c++, | |
ae = c++, | |
se = c++, | |
ue = c++, | |
ce = c++, | |
ge = c++, | |
he = 0, | |
de = he++, | |
fe = he++, | |
pe = he++; | |
i.prototype._stateText = function(e) { | |
"<" === e ? (this._index > this._sectionStart && this._cbs.ontext(this._getSection()), this._state = h, this._sectionStart = this._index) : this._decodeEntities && this._special === de && "&" === e && (this._index > this._sectionStart && this._cbs.ontext(this._getSection()), this._baseState = g, this._state = ae, this._sectionStart = this._index) | |
}, i.prototype._stateBeforeTagName = function(e) { | |
"/" === e ? this._state = p : "<" === e ? (this._cbs.ontext(this._getSection()), this._sectionStart = this._index) : ">" === e || this._special !== de || o(e) ? this._state = g : "!" === e ? (this._state = M, this._sectionStart = this._index + 1) : "?" === e ? (this._state = D, this._sectionStart = this._index + 1) : (this._state = this._xmlMode || "s" !== e && "S" !== e ? d : H, this._sectionStart = this._index) | |
}, i.prototype._stateInTagName = function(e) { | |
("/" === e || ">" === e || o(e)) && (this._emitToken("onopentagname"), this._state = E, this._index--) | |
}, i.prototype._stateBeforeCloseingTagName = function(e) { | |
o(e) || (">" === e ? this._state = g : this._special !== de ? "s" === e || "S" === e ? this._state = j : (this._state = g, this._index--) : (this._state = m, this._sectionStart = this._index)) | |
}, i.prototype._stateInCloseingTagName = function(e) { | |
(">" === e || o(e)) && (this._emitToken("onclosetag"), this._state = B, this._index--) | |
}, i.prototype._stateAfterCloseingTagName = function(e) { | |
">" === e && (this._state = g, this._sectionStart = this._index + 1) | |
}, i.prototype._stateBeforeAttributeName = function(e) { | |
">" === e ? (this._cbs.onopentagend(), this._state = g, this._sectionStart = this._index + 1) : "/" === e ? this._state = f : o(e) || (this._state = y, this._sectionStart = this._index) | |
}, i.prototype._stateInSelfClosingTag = function(e) { | |
">" === e ? (this._cbs.onselfclosingtag(), this._state = g, this._sectionStart = this._index + 1) : o(e) || (this._state = E, this._index--) | |
}, i.prototype._stateInAttributeName = function(e) { | |
("=" === e || "/" === e || ">" === e || o(e)) && (this._cbs.onattribname(this._getSection()), this._sectionStart = -1, this._state = C, this._index--) | |
}, i.prototype._stateAfterAttributeName = function(e) { | |
"=" === e ? this._state = w : "/" === e || ">" === e ? (this._cbs.onattribend(), this._state = E, this._index--) : o(e) || (this._cbs.onattribend(), this._state = y, this._sectionStart = this._index) | |
}, i.prototype._stateBeforeAttributeValue = function(e) { | |
'"' === e ? (this._state = I, this._sectionStart = this._index + 1) : "'" === e ? (this._state = b, this._sectionStart = this._index + 1) : o(e) || (this._state = v, this._sectionStart = this._index, this._index--) | |
}, i.prototype._stateInAttributeValueDoubleQuotes = function(e) { | |
'"' === e ? (this._emitToken("onattribdata"), this._cbs.onattribend(), this._state = E) : this._decodeEntities && "&" === e && (this._emitToken("onattribdata"), this._baseState = this._state, this._state = ae, this._sectionStart = this._index) | |
}, i.prototype._stateInAttributeValueSingleQuotes = function(e) { | |
"'" === e ? (this._emitToken("onattribdata"), this._cbs.onattribend(), this._state = E) : this._decodeEntities && "&" === e && (this._emitToken("onattribdata"), this._baseState = this._state, this._state = ae, this._sectionStart = this._index) | |
}, i.prototype._stateInAttributeValueNoQuotes = function(e) { | |
o(e) || ">" === e ? (this._emitToken("onattribdata"), this._cbs.onattribend(), this._state = E, this._index--) : this._decodeEntities && "&" === e && (this._emitToken("onattribdata"), this._baseState = this._state, this._state = ae, this._sectionStart = this._index) | |
}, i.prototype._stateBeforeDeclaration = function(e) { | |
this._state = "[" === e ? x : "-" === e ? k : Q | |
}, i.prototype._stateInDeclaration = function(e) { | |
">" === e && (this._cbs.ondeclaration(this._getSection()), this._state = g, this._sectionStart = this._index + 1) | |
}, i.prototype._stateInProcessingInstruction = function(e) { | |
">" === e && (this._cbs.onprocessinginstruction(this._getSection()), this._state = g, this._sectionStart = this._index + 1) | |
}, i.prototype._stateBeforeComment = function(e) { | |
"-" === e ? (this._state = S, this._sectionStart = this._index + 1) : this._state = Q | |
}, i.prototype._stateInComment = function(e) { | |
"-" === e && (this._state = F) | |
}, i.prototype._stateAfterComment1 = function(e) { | |
this._state = "-" === e ? Y : S | |
}, i.prototype._stateAfterComment2 = function(e) { | |
">" === e ? (this._cbs.oncomment(this._buffer.substring(this._sectionStart, this._index - 2)), this._state = g, this._sectionStart = this._index + 1) : "-" !== e && (this._state = S) | |
}, i.prototype._stateBeforeCdata1 = l("C", R, Q), i.prototype._stateBeforeCdata2 = l("D", U, Q), i.prototype._stateBeforeCdata3 = l("A", T, Q), i.prototype._stateBeforeCdata4 = l("T", N, Q), i.prototype._stateBeforeCdata5 = l("A", G, Q), i.prototype._stateBeforeCdata6 = function(e) { | |
"[" === e ? (this._state = L, this._sectionStart = this._index + 1) : (this._state = Q, this._index--) | |
}, i.prototype._stateInCdata = function(e) { | |
"]" === e && (this._state = O) | |
}, i.prototype._stateAfterCdata1 = function(e, t) { | |
return function(n) { | |
n === e && (this._state = t) | |
} | |
}("]", P), i.prototype._stateAfterCdata2 = function(e) { | |
">" === e ? (this._cbs.oncdata(this._buffer.substring(this._sectionStart, this._index - 2)), this._state = g, this._sectionStart = this._index + 1) : "]" !== e && (this._state = L) | |
}, i.prototype._stateBeforeSpecial = function(e) { | |
"c" === e || "C" === e ? this._state = J : "t" === e || "T" === e ? this._state = ee : (this._state = d, this._index--) | |
}, i.prototype._stateBeforeSpecialEnd = function(e) { | |
this._special !== fe || "c" !== e && "C" !== e ? this._special !== pe || "t" !== e && "T" !== e ? this._state = g : this._state = le : this._state = q | |
}, i.prototype._stateBeforeScript1 = r("R", V), i.prototype._stateBeforeScript2 = r("I", z), i.prototype._stateBeforeScript3 = r("P", W), i.prototype._stateBeforeScript4 = r("T", K), i.prototype._stateBeforeScript5 = function(e) { | |
("/" === e || ">" === e || o(e)) && (this._special = fe), this._state = d, this._index-- | |
}, i.prototype._stateAfterScript1 = l("R", Z, g), i.prototype._stateAfterScript2 = l("I", _, g), i.prototype._stateAfterScript3 = l("P", X, g), i.prototype._stateAfterScript4 = l("T", $, g), i.prototype._stateAfterScript5 = function(e) { | |
">" === e || o(e) ? (this._special = de, this._state = m, this._sectionStart = this._index - 6, this._index--) : this._state = g | |
}, i.prototype._stateBeforeStyle1 = r("Y", te), i.prototype._stateBeforeStyle2 = r("L", ne), i.prototype._stateBeforeStyle3 = r("E", oe), i.prototype._stateBeforeStyle4 = function(e) { | |
("/" === e || ">" === e || o(e)) && (this._special = pe), this._state = d, this._index-- | |
}, i.prototype._stateAfterStyle1 = l("Y", re, g), i.prototype._stateAfterStyle2 = l("L", ie, g), i.prototype._stateAfterStyle3 = l("E", Ae, g), i.prototype._stateAfterStyle4 = function(e) { | |
">" === e || o(e) ? (this._special = de, this._state = m, this._sectionStart = this._index - 5, this._index--) : this._state = g | |
}, i.prototype._stateBeforeEntity = l("#", se, ue), i.prototype._stateBeforeNumericEntity = l("X", ge, ce), i.prototype._parseNamedEntityStrict = function() { | |
if (this._sectionStart + 1 < this._index) { | |
var e = this._buffer.substring(this._sectionStart + 1, this._index), | |
t = this._xmlMode ? u : a; | |
t.hasOwnProperty(e) && (this._emitPartial(t[e]), this._sectionStart = this._index + 1) | |
} | |
}, i.prototype._parseLegacyEntity = function() { | |
var e = this._sectionStart + 1, | |
t = this._index - e; | |
for (t > 6 && (t = 6); t >= 2;) { | |
var n = this._buffer.substr(e, t); | |
if (s.hasOwnProperty(n)) return this._emitPartial(s[n]), void(this._sectionStart += t + 1); | |
t-- | |
} | |
}, i.prototype._stateInNamedEntity = function(e) { | |
";" === e ? (this._parseNamedEntityStrict(), this._sectionStart + 1 < this._index && !this._xmlMode && this._parseLegacyEntity(), this._state = this._baseState) : (e < "a" || e > "z") && (e < "A" || e > "Z") && (e < "0" || e > "9") && (this._xmlMode || this._sectionStart + 1 === this._index || (this._baseState !== g ? "=" !== e && this._parseNamedEntityStrict() : this._parseLegacyEntity()), this._state = this._baseState, this._index--) | |
}, i.prototype._decodeNumericEntity = function(e, t) { | |
var n = this._sectionStart + e; | |
if (n !== this._index) { | |
var o = this._buffer.substring(n, this._index), | |
l = parseInt(o, t); | |
this._emitPartial(A(l)), this._sectionStart = this._index | |
} else this._sectionStart--; | |
this._state = this._baseState | |
}, i.prototype._stateInNumericEntity = function(e) { | |
";" === e ? (this._decodeNumericEntity(2, 10), this._sectionStart++) : (e < "0" || e > "9") && (this._xmlMode ? this._state = this._baseState : this._decodeNumericEntity(2, 10), this._index--) | |
}, i.prototype._stateInHexEntity = function(e) { | |
";" === e ? (this._decodeNumericEntity(3, 16), this._sectionStart++) : (e < "a" || e > "f") && (e < "A" || e > "F") && (e < "0" || e > "9") && (this._xmlMode ? this._state = this._baseState : this._decodeNumericEntity(3, 16), this._index--) | |
}, i.prototype._cleanup = function() { | |
this._sectionStart < 0 ? (this._buffer = "", this._bufferOffset += this._index, this._index = 0) : this._running && (this._state === g ? (this._sectionStart !== this._index && this._cbs.ontext(this._buffer.substr(this._sectionStart)), this._buffer = "", this._bufferOffset += this._index, this._index = 0) : this._sectionStart === this._index ? (this._buffer = "", this._bufferOffset += this._index, this._index = 0) : (this._buffer = this._buffer.substr(this._sectionStart), this._index -= this._sectionStart, this._bufferOffset += this._sectionStart), this._sectionStart = 0) | |
}, i.prototype.write = function(e) { | |
this._ended && this._cbs.onerror(Error(".write() after done!")), this._buffer += e, this._parse() | |
}, i.prototype._parse = function() { | |
for (; this._index < this._buffer.length && this._running;) { | |
var e = this._buffer.charAt(this._index); | |
this._state === g ? this._stateText(e) : this._state === h ? this._stateBeforeTagName(e) : this._state === d ? this._stateInTagName(e) : this._state === p ? this._stateBeforeCloseingTagName(e) : this._state === m ? this._stateInCloseingTagName(e) : this._state === B ? this._stateAfterCloseingTagName(e) : this._state === f ? this._stateInSelfClosingTag(e) : this._state === E ? this._stateBeforeAttributeName(e) : this._state === y ? this._stateInAttributeName(e) : this._state === C ? this._stateAfterAttributeName(e) : this._state === w ? this._stateBeforeAttributeValue(e) : this._state === I ? this._stateInAttributeValueDoubleQuotes(e) : this._state === b ? this._stateInAttributeValueSingleQuotes(e) : this._state === v ? this._stateInAttributeValueNoQuotes(e) : this._state === M ? this._stateBeforeDeclaration(e) : this._state === Q ? this._stateInDeclaration(e) : this._state === D ? this._stateInProcessingInstruction(e) : this._state === k ? this._stateBeforeComment(e) : this._state === S ? this._stateInComment(e) : this._state === F ? this._stateAfterComment1(e) : this._state === Y ? this._stateAfterComment2(e) : this._state === x ? this._stateBeforeCdata1(e) : this._state === R ? this._stateBeforeCdata2(e) : this._state === U ? this._stateBeforeCdata3(e) : this._state === T ? this._stateBeforeCdata4(e) : this._state === N ? this._stateBeforeCdata5(e) : this._state === G ? this._stateBeforeCdata6(e) : this._state === L ? this._stateInCdata(e) : this._state === O ? this._stateAfterCdata1(e) : this._state === P ? this._stateAfterCdata2(e) : this._state === H ? this._stateBeforeSpecial(e) : this._state === j ? this._stateBeforeSpecialEnd(e) : this._state === J ? this._stateBeforeScript1(e) : this._state === V ? this._stateBeforeScript2(e) : this._state === z ? this._stateBeforeScript3(e) : this._state === W ? this._stateBeforeScript4(e) : this._state === K ? this._stateBeforeScript5(e) : this._state === q ? this._stateAfterScript1(e) : this._state === Z ? this._stateAfterScript2(e) : this._state === _ ? this._stateAfterScript3(e) : this._state === X ? this._stateAfterScript4(e) : this._state === $ ? this._stateAfterScript5(e) : this._state === ee ? this._stateBeforeStyle1(e) : this._state === te ? this._stateBeforeStyle2(e) : this._state === ne ? this._stateBeforeStyle3(e) : this._state === oe ? this._stateBeforeStyle4(e) : this._state === le ? this._stateAfterStyle1(e) : this._state === re ? this._stateAfterStyle2(e) : this._state === ie ? this._stateAfterStyle3(e) : this._state === Ae ? this._stateAfterStyle4(e) : this._state === ae ? this._stateBeforeEntity(e) : this._state === se ? this._stateBeforeNumericEntity(e) : this._state === ue ? this._stateInNamedEntity(e) : this._state === ce ? this._stateInNumericEntity(e) : this._state === ge ? this._stateInHexEntity(e) : this._cbs.onerror(Error("unknown _state"), this._state), this._index++ | |
} | |
this._cleanup() | |
}, i.prototype.pause = function() { | |
this._running = !1 | |
}, i.prototype.resume = function() { | |
this._running = !0, this._index < this._buffer.length && this._parse(), this._ended && this._finish() | |
}, i.prototype.end = function(e) { | |
this._ended && this._cbs.onerror(Error(".end() after done!")), e && this.write(e), this._ended = !0, this._running && this._finish() | |
}, i.prototype._finish = function() { | |
this._sectionStart < this._index && this._handleTrailingData(), this._cbs.onend() | |
}, i.prototype._handleTrailingData = function() { | |
var e = this._buffer.substr(this._sectionStart); | |
this._state === L || this._state === O || this._state === P ? this._cbs.oncdata(e) : this._state === S || this._state === F || this._state === Y ? this._cbs.oncomment(e) : this._state !== ue || this._xmlMode ? this._state !== ce || this._xmlMode ? this._state !== ge || this._xmlMode ? this._state !== d && this._state !== E && this._state !== w && this._state !== C && this._state !== y && this._state !== b && this._state !== I && this._state !== v && this._state !== m && this._cbs.ontext(e) : (this._decodeNumericEntity(3, 16), this._sectionStart < this._index && (this._state = this._baseState, this._handleTrailingData())) : (this._decodeNumericEntity(2, 10), this._sectionStart < this._index && (this._state = this._baseState, this._handleTrailingData())) : (this._parseLegacyEntity(), this._sectionStart < this._index && (this._state = this._baseState, this._handleTrailingData())) | |
}, i.prototype.reset = function() { | |
i.call(this, { | |
xmlMode: this._xmlMode, | |
decodeEntities: this._decodeEntities | |
}, this._cbs) | |
}, i.prototype.getAbsoluteIndex = function() { | |
return this._bufferOffset + this._index | |
}, i.prototype._getSection = function() { | |
return this._buffer.substring(this._sectionStart, this._index) | |
}, i.prototype._emitToken = function(e) { | |
this._cbs[e](this._getSection()), this._sectionStart = -1 | |
}, i.prototype._emitPartial = function(e) { | |
this._baseState !== g ? this._cbs.onattribdata(e) : this._cbs.ontext(e) | |
} | |
}, function(e, t, n) { | |
function o(e) { | |
if (e >= 55296 && e <= 57343 || e > 1114111) return "�"; | |
e in l && (e = l[e]); | |
var t = ""; | |
return e > 65535 && (e -= 65536, t += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | 1023 & e), t += String.fromCharCode(e) | |
} | |
var l = n(185); | |
e.exports = o | |
}, function(e, t) { | |
e.exports = { | |
Aacute: "Á", | |
aacute: "á", | |
Acirc: "Â", | |
acirc: "â", | |
acute: "´", | |
AElig: "Æ", | |
aelig: "æ", | |
Agrave: "À", | |
agrave: "à", | |
amp: "&", | |
AMP: "&", | |
Aring: "Å", | |
aring: "å", | |
Atilde: "Ã", | |
atilde: "ã", | |
Auml: "Ä", | |
auml: "ä", | |
brvbar: "¦", | |
Ccedil: "Ç", | |
ccedil: "ç", | |
cedil: "¸", | |
cent: "¢", | |
copy: "©", | |
COPY: "©", | |
curren: "¤", | |
deg: "°", | |
divide: "÷", | |
Eacute: "É", | |
eacute: "é", | |
Ecirc: "Ê", | |
ecirc: "ê", | |
Egrave: "È", | |
egrave: "è", | |
ETH: "Ð", | |
eth: "ð", | |
Euml: "Ë", | |
euml: "ë", | |
frac12: "½", | |
frac14: "¼", | |
frac34: "¾", | |
gt: ">", | |
GT: ">", | |
Iacute: "Í", | |
iacute: "í", | |
Icirc: "Î", | |
icirc: "î", | |
iexcl: "¡", | |
Igrave: "Ì", | |
igrave: "ì", | |
iquest: "¿", | |
Iuml: "Ï", | |
iuml: "ï", | |
laquo: "«", | |
lt: "<", | |
LT: "<", | |
macr: "¯", | |
micro: "µ", | |
middot: "·", | |
nbsp: " ", | |
not: "¬", | |
Ntilde: "Ñ", | |
ntilde: "ñ", | |
Oacute: "Ó", | |
oacute: "ó", | |
Ocirc: "Ô", | |
ocirc: "ô", | |
Ograve: "Ò", | |
ograve: "ò", | |
ordf: "ª", | |
ordm: "º", | |
Oslash: "Ø", | |
oslash: "ø", | |
Otilde: "Õ", | |
otilde: "õ", | |
Ouml: "Ö", | |
ouml: "ö", | |
para: "¶", | |
plusmn: "±", | |
pound: "£", | |
quot: '"', | |
QUOT: '"', | |
raquo: "»", | |
reg: "®", | |
REG: "®", | |
sect: "§", | |
shy: "", | |
sup1: "¹", | |
sup2: "²", | |
sup3: "³", | |
szlig: "ß", | |
THORN: "Þ", | |
thorn: "þ", | |
times: "×", | |
Uacute: "Ú", | |
uacute: "ú", | |
Ucirc: "Û", | |
ucirc: "û", | |
Ugrave: "Ù", | |
ugrave: "ù", | |
uml: "¨", | |
Uuml: "Ü", | |
uuml: "ü", | |
Yacute: "Ý", | |
yacute: "ý", | |
yen: "¥", | |
yuml: "ÿ" | |
} | |
}, function(e, t) { | |
var n = e.exports = {get firstChild() { | |
var e = this.children; | |
return e && e[0] || null | |
}, | |
get lastChild() { | |
var e = this.children; | |
return e && e[e.length - 1] || null | |
}, | |
get nodeType() { | |
return l[this.type] || l.element | |
} | |
}, | |
o = { | |
tagName: "name", | |
childNodes: "children", | |
parentNode: "parent", | |
previousSibling: "prev", | |
nextSibling: "next", | |
nodeValue: "data" | |
}, | |
l = { | |
element: 1, | |
text: 3, | |
cdata: 4, | |
comment: 8 | |
}; | |
Object.keys(o).forEach(function(e) { | |
var t = o[e]; | |
Object.defineProperty(n, e, { | |
get: function() { | |
return this[t] || null | |
}, | |
set: function(e) { | |
return this[t] = e, e | |
} | |
}) | |
}) | |
}, function(e, t, n) { | |
function o(e, t) { | |
var n = this._parser = new l(e, t), | |
o = this._decoder = new i; | |
r.call(this, { | |
decodeStrings: !1 | |
}), this.once("finish", function() { | |
n.end(o.end()) | |
}) | |
} | |
e.exports = o; | |
var l = n(90), | |
r = n(56).Writable || n(190).Writable, | |
i = n(42).StringDecoder, | |
A = n(6).Buffer; | |
n(7)(o, r), r.prototype._write = function(e, t, n) { | |
e instanceof A && (e = this._decoder.write(e)), this._parser.write(e), n() | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
t.getCached = function() { | |
throw new Error("blocks.js has not initialized BlocksExecuteCache") | |
}, n(19) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
if (Array.isArray(e)) { | |
for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t]; | |
return n | |
} | |
return Array.from(e) | |
} | |
function l(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
function r(e, t) { | |
if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return !t || "object" != typeof t && "function" != typeof t ? e : t | |
} | |
function i(e, t) { | |
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
e.prototype = Object.create(t && t.prototype, { | |
constructor: { | |
value: e, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
} | |
var A = "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 | |
}, | |
a = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
s = n(11), | |
u = n(27), | |
c = u.OrderedMap, | |
g = n(273), | |
h = n(25), | |
d = n(19), | |
f = n(16), | |
p = n(274), | |
m = n(275), | |
B = n(278), | |
E = n(279), | |
y = n(36), | |
C = n(2), | |
w = n(85), | |
I = n(280), | |
b = n(281), | |
v = n(292), | |
M = n(293), | |
Q = n(294), | |
D = n(100), | |
k = { | |
scratch3_control: n(295), | |
scratch3_event: n(296), | |
scratch3_looks: n(297), | |
scratch3_motion: n(298), | |
scratch3_operators: n(299), | |
scratch3_sound: n(300), | |
scratch3_sensing: n(301), | |
scratch3_data: n(302), | |
scratch3_procedures: n(303) | |
}, | |
S = function() { | |
var e = {}; | |
return e[h.ANGLE] = { | |
shadowType: "math_angle", | |
fieldType: "NUM" | |
}, e[h.COLOR] = { | |
shadowType: "colour_picker" | |
}, e[h.NUMBER] = { | |
shadowType: "math_number", | |
fieldType: "NUM" | |
}, e[h.STRING] = { | |
shadowType: "text", | |
fieldType: "TEXT" | |
}, e[h.BOOLEAN] = { | |
check: "Boolean" | |
}, e | |
}(), | |
F = { | |
info: {}, | |
json: null, | |
xml: '<sep gap="36"/>' | |
}, | |
Y = -1, | |
x = -1, | |
R = -1, | |
U = function(e) { | |
function t() { | |
l(this, t); | |
var e = r(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
return e.targets = [], e.threads = [], e.sequencer = new m(e), e.flyoutBlocks = new d, e.monitorBlocks = new d, e._editingTarget = null, e._primitives = {}, e._blockInfo = [], e._hats = {}, e._edgeActivatedHatValues = {}, e._scriptGlowsPreviousFrame = [], e._nonMonitorThreadCount = 0, e._cloneCounter = 0, e._refreshTargets = !1, e.monitorBlockInfo = {}, e._monitorState = c({}), e._prevMonitorState = c({}), e.turboMode = !1, e.compatibilityMode = !1, e._steppingInterval = null, e.currentStepTime = null, e.redrawRequested = !1, e._registerBlockPackages(), e.ioDevices = { | |
clock: new I, | |
deviceManager: new b, | |
keyboard: new v(e), | |
mouse: new M(e), | |
mouseWheel: new Q(e), | |
video: new D(e) | |
}, e.profiler = null, e | |
} | |
return i(t, e), a(t, [{ | |
key: "_registerBlockPackages", | |
value: function() { | |
for (var e in k) | |
if (k.hasOwnProperty(e)) { | |
var t = new k[e](this); | |
if (t.getPrimitives) { | |
var n = t.getPrimitives(); | |
for (var o in n) n.hasOwnProperty(o) && (this._primitives[o] = n[o].bind(t)) | |
} | |
if (t.getHats) { | |
var l = t.getHats(); | |
for (var r in l) l.hasOwnProperty(r) && (this._hats[r] = l[r]) | |
} | |
t.getMonitored && (this.monitorBlockInfo = Object.assign({}, this.monitorBlockInfo, t.getMonitored())) | |
} | |
} | |
}, { | |
key: "_makeExtensionMenuId", | |
value: function(e, t) { | |
return t + "_menu_" + g(e) | |
} | |
}, { | |
key: "makeMessageContextForTarget", | |
value: function(e) { | |
var t = {}; | |
(e = e || this.getEditingTarget() || this.getTargetForStage()) && (t.targetType = e.isStage ? E.STAGE : E.SPRITE) | |
} | |
}, { | |
key: "_registerExtensionPrimitives", | |
value: function(e) { | |
var n = { | |
id: e.id, | |
name: w(e.name), | |
blockIconURI: e.blockIconURI, | |
menuIconURI: e.menuIconURI, | |
color1: "#FF6680", | |
color2: "#FF4D6A", | |
color3: "#FF3355", | |
blocks: [], | |
menus: [] | |
}; | |
this._blockInfo.push(n), this._fillExtensionCategory(n, e), this.emit(t.EXTENSION_ADDED, n.blocks.concat(n.menus)) | |
} | |
}, { | |
key: "_refreshExtensionPrimitives", | |
value: function(e) { | |
var n = [], | |
o = !0, | |
l = !1, | |
r = void 0; | |
try { | |
for (var i, A = this._blockInfo[Symbol.iterator](); !(o = (i = A.next()).done); o = !0) { | |
var a = i.value; | |
e.id === a.id && (a.blocks = [], a.menus = [], this._fillExtensionCategory(a, e), n = n.concat(a.blocks, a.menus)) | |
} | |
} catch (e) { | |
l = !0, r = e | |
} finally { | |
try { | |
!o && A.return && A.return() | |
} finally { | |
if (l) throw r | |
} | |
} | |
this.emit(t.BLOCKSINFO_UPDATE, n) | |
} | |
}, { | |
key: "_fillExtensionCategory", | |
value: function(e, t) { | |
for (var n in t.menus) | |
if (t.menus.hasOwnProperty(n)) { | |
var o = t.menus[n], | |
l = this._buildMenuForScratchBlocks(n, o, e); | |
e.menus.push(l) | |
} | |
var r = !0, | |
i = !1, | |
A = void 0; | |
try { | |
for (var a, s = t.blocks[Symbol.iterator](); !(r = (a = s.next()).done); r = !0) { | |
var u = a.value; | |
if ("---" !== u) try { | |
var c = this._convertForScratchBlocks(u, e), | |
g = c.json.type; | |
e.blocks.push(c), u.blockType !== f.EVENT && (this._primitives[g] = c.info.func), u.blockType !== f.EVENT && u.blockType !== f.HAT || (this._hats[g] = { | |
edgeActivated: u.isEdgeActivated, | |
restartExistingThreads: u.shouldRestartExistingThreads | |
}) | |
} catch (e) { | |
C.error("Error parsing block: ", { | |
block: u, | |
error: e | |
}) | |
} else e.blocks.push(F) | |
} | |
} catch (e) { | |
i = !0, A = e | |
} finally { | |
try { | |
!r && s.return && s.return() | |
} finally { | |
if (i) throw A | |
} | |
} | |
} | |
}, { | |
key: "_buildMenuForScratchBlocks", | |
value: function(e, t, n) { | |
var o = this._makeExtensionMenuId(e, n.id), | |
l = null; | |
if ("function" == typeof t) l = t; | |
else { | |
var r = this.makeMessageContextForTarget(); | |
l = t.map(function(e) { | |
var t = w(e, r); | |
switch (void 0 === t ? "undefined" : A(t)) { | |
case "string": | |
return [t, t]; | |
case "object": | |
return [w(e.text, r), e.value]; | |
default: | |
throw new Error("Can't interpret menu item: " + JSON.stringify(e)) | |
} | |
}) | |
} | |
return { | |
json: { | |
message0: "%1", | |
type: o, | |
inputsInline: !0, | |
output: "String", | |
colour: n.color1, | |
colourSecondary: n.color2, | |
colourTertiary: n.color3, | |
outputShape: B.OUTPUT_SHAPE_ROUND, | |
args0: [{ | |
type: "field_dropdown", | |
name: e, | |
options: l | |
}] | |
} | |
} | |
} | |
}, { | |
key: "_convertForScratchBlocks", | |
value: function(e, t) { | |
var n = t.id + "_" + e.opcode, | |
o = { | |
type: n, | |
inputsInline: !0, | |
category: t.name, | |
colour: t.color1, | |
colourSecondary: t.color2, | |
colourTertiary: t.color3, | |
extensions: ["scratch_extension"] | |
}, | |
l = { | |
argsMap: {}, | |
blockJSON: o, | |
categoryInfo: t, | |
blockInfo: e, | |
inputList: [] | |
}; | |
if (t.blockIconURI) { | |
o.message0 = "%1 %2"; | |
var r = { | |
type: "field_image", | |
src: t.blockIconURI, | |
width: 40, | |
height: 40 | |
}, | |
i = { | |
type: "field_vertical_separator" | |
}; | |
o.args0 = [r, i] | |
} | |
switch (e.blockType) { | |
case f.COMMAND: | |
o.outputShape = B.OUTPUT_SHAPE_SQUARE, o.previousStatement = null, e.isTerminal || (o.nextStatement = null); | |
break; | |
case f.REPORTER: | |
o.output = "String", o.outputShape = B.OUTPUT_SHAPE_ROUND; | |
break; | |
case f.BOOLEAN: | |
o.output = "Boolean", o.outputShape = B.OUTPUT_SHAPE_HEXAGONAL; | |
break; | |
case f.HAT: | |
case f.EVENT: | |
e.hasOwnProperty("isEdgeActivated") || (e.isEdgeActivated = !0), o.outputShape = B.OUTPUT_SHAPE_SQUARE, o.nextStatement = null; | |
break; | |
case f.CONDITIONAL: | |
case f.LOOP: | |
e.branchCount = e.branchCount || 1, o.outputShape = B.OUTPUT_SHAPE_SQUARE, o.previousStatement = null, e.isTerminal || (o.nextStatement = null) | |
} | |
for (var A = Array.isArray(e.text) ? e.text : [e.text], a = 0, s = 0, u = 0, c = this._convertPlaceholders.bind(this, l), g = this.makeMessageContextForTarget(); a < A.length || s < e.branchCount;) { | |
if (a < A.length) { | |
l.outLineNum = u; | |
var h = w(A[a], g), | |
d = h.replace(/\[(.+?)]/g, c); | |
o["message" + u] ? o["message" + u] += d : o["message" + u] = d, ++a, ++u | |
} | |
s < e.branchCount && (o["message" + u] = "%1", o["args" + u] = [{ | |
type: "input_statement", | |
name: "SUBSTACK" + (s > 0 ? s + 1 : "") | |
}], ++s, ++u) | |
} | |
e.blockType === f.LOOP && (o["lastDummyAlign" + u] = "RIGHT", o["message" + u] = "%1", o["args" + u] = [{ | |
type: "field_image", | |
src: "./static/blocks-media/repeat.svg", | |
width: 24, | |
height: 24, | |
alt: "*", | |
flip_rtl: !0 | |
}], ++u); | |
var p = '<block type="' + n + '">' + l.inputList.join("") + "</block>"; | |
return { | |
info: l.blockInfo, | |
json: l.blockJSON, | |
xml: p | |
} | |
} | |
}, { | |
key: "_convertPlaceholders", | |
value: function(e, t, n) { | |
n = n.replace(/[<"&]/, "_"); | |
var o = { | |
type: "input_value", | |
name: n | |
}, | |
l = e.blockInfo.arguments[n] || {}, | |
r = S[l.type] || {}, | |
i = void 0 === l.defaultValue ? "" : g(w(l.defaultValue, this.makeMessageContextForTarget()).toString()); | |
r.check && (o.check = r.check); | |
var A = l.menu ? this._makeExtensionMenuId(l.menu, e.categoryInfo.id) : r.shadowType, | |
a = l.menu || r.fieldType; | |
e.inputList.push('<value name="' + n + '">'), A && (e.inputList.push('<shadow type="' + A + '">'), a && e.inputList.push('<field name="' + a + '">' + i + "</field>"), e.inputList.push("</shadow>")), e.inputList.push("</value>"); | |
var s = "args" + e.outLineNum, | |
u = e.blockJSON[s] = e.blockJSON[s] || []; | |
u.push(o); | |
var c = u.length; | |
return e.argsMap[n] = c, "%" + c | |
} | |
}, { | |
key: "getBlocksXML", | |
value: function() { | |
var e = [], | |
t = !0, | |
n = !1, | |
o = void 0; | |
try { | |
for (var l, r = this._blockInfo[Symbol.iterator](); !(t = (l = r.next()).done); t = !0) { | |
var i = l.value, | |
A = i.name, | |
a = i.color1, | |
s = i.color2, | |
u = i.blocks.filter(function(e) { | |
return !e.info.hideFromPalette | |
}), | |
c = 'colour="' + a + '" secondaryColour="' + s + '"', | |
g = ""; | |
i.menuIconURI ? g = i.menuIconURI : i.blockIconURI && (g = i.blockIconURI); | |
var h = g ? 'iconURI="' + g + '"' : ""; | |
e.push('<category name="' + A + '" ' + c + " " + h + ">"), e.push.apply(e, u.map(function(e) { | |
return e.xml | |
})), e.push("</category>") | |
} | |
} catch (e) { | |
n = !0, o = e | |
} finally { | |
try { | |
!t && r.return && r.return() | |
} finally { | |
if (n) throw o | |
} | |
} | |
return e.join("\n") | |
} | |
}, { | |
key: "getBlocksJSON", | |
value: function() { | |
return this._blockInfo.reduce(function(e, t) { | |
return e.concat(t.blocks.map(function(e) { | |
return e.json | |
})) | |
}, []) | |
} | |
}, { | |
key: "getOpcodeFunction", | |
value: function(e) { | |
return this._primitives[e] | |
} | |
}, { | |
key: "getIsHat", | |
value: function(e) { | |
return this._hats.hasOwnProperty(e) | |
} | |
}, { | |
key: "getIsEdgeActivatedHat", | |
value: function(e) { | |
return this._hats.hasOwnProperty(e) && this._hats[e].edgeActivated | |
} | |
}, { | |
key: "updateEdgeActivatedValue", | |
value: function(e, t) { | |
var n = this._edgeActivatedHatValues[e]; | |
return this._edgeActivatedHatValues[e] = t, n | |
} | |
}, { | |
key: "clearEdgeActivatedValues", | |
value: function() { | |
this._edgeActivatedHatValues = {} | |
} | |
}, { | |
key: "attachAudioEngine", | |
value: function(e) { | |
this.audioEngine = e | |
} | |
}, { | |
key: "attachRenderer", | |
value: function(e) { | |
this.renderer = e | |
} | |
}, { | |
key: "attachStorage", | |
value: function(e) { | |
this.storage = e | |
} | |
}, { | |
key: "_pushThread", | |
value: function(e, t, n) { | |
n = Object.assign({ | |
stackClick: !1, | |
updateMonitor: !1 | |
}, n); | |
var o = new y(e); | |
return o.target = t, o.stackClick = n.stackClick, o.updateMonitor = n.updateMonitor, o.blockContainer = n.updateMonitor ? this.monitorBlocks : t.blocks, o.pushStack(e), this.threads.push(o), o | |
} | |
}, { | |
key: "_stopThread", | |
value: function(e) { | |
e.isKilled = !0, this.sequencer.retireThread(e) | |
} | |
}, { | |
key: "_restartThread", | |
value: function(e) { | |
var t = new y(e.topBlock); | |
t.target = e.target, t.stackClick = e.stackClick, t.updateMonitor = e.updateMonitor, t.blockContainer = e.blockContainer, t.pushStack(e.topBlock); | |
var n = this.threads.indexOf(e); | |
return n > -1 ? (this.threads[n] = t, t) : (this.threads.push(e), e) | |
} | |
}, { | |
key: "isActiveThread", | |
value: function(e) { | |
return e.stack.length > 0 && e.status !== y.STATUS_DONE && this.threads.indexOf(e) > -1 | |
} | |
}, { | |
key: "toggleScript", | |
value: function(e, t) { | |
t = Object.assign({ | |
target: this._editingTarget, | |
stackClick: !1 | |
}, t); | |
for (var n = 0; n < this.threads.length; n++) | |
if (this.threads[n].topBlock === e && this.threads[n].status !== y.STATUS_DONE) { | |
var o = t.target.blocks, | |
l = o.getOpcode(o.getBlock(e)); | |
if (this.getIsEdgeActivatedHat(l) && this.threads[n].stackClick !== t.stackClick) continue; | |
return void this._stopThread(this.threads[n]) | |
} | |
this._pushThread(e, t.target, t) | |
} | |
}, { | |
key: "addMonitorScript", | |
value: function(e, t) { | |
t || (t = this._editingTarget); | |
for (var n = 0; n < this.threads.length; n++) | |
if (this.threads[n].topBlock === e && this.threads[n].status !== y.STATUS_DONE && this.threads[n].updateMonitor) return; | |
this._pushThread(e, t, { | |
updateMonitor: !0 | |
}) | |
} | |
}, { | |
key: "allScriptsDo", | |
value: function(e, t) { | |
var n = this.targets; | |
t && (n = [t]); | |
for (var o = n.length - 1; o >= 0; o--) | |
for (var l = n[o], r = l.blocks.getScripts(), i = 0; i < r.length; i++) { | |
var A = r[i]; | |
e(A, l) | |
} | |
} | |
}, { | |
key: "startHats", | |
value: function(e, t, n) { | |
if (this._hats.hasOwnProperty(e)) { | |
var o = this, | |
l = []; | |
for (var r in t) t.hasOwnProperty(r) && (t[r] = t[r].toUpperCase()); | |
return this.allScriptsDo(function(n, r) { | |
var i = r.blocks, | |
A = i.getBlock(n); | |
if (A.opcode === e) { | |
var a = i.getFields(A); | |
if (0 === Object.keys(a).length) { | |
a = {}; | |
var s = i.getInputs(A); | |
for (var u in s) | |
if (s.hasOwnProperty(u)) { | |
var c = s[u].block, | |
g = i.getBlock(c), | |
h = i.getFields(g); | |
Object.assign(a, h) | |
} | |
} | |
if (t) | |
for (var d in t) | |
if (a[d].value.toUpperCase() !== t[d]) return; | |
if (o._hats[e].restartExistingThreads) { | |
for (var f = 0; f < o.threads.length; f++) | |
if (o.threads[f].topBlock === n && !o.threads[f].stackClick && o.threads[f].target === r) return void l.push(o._restartThread(o.threads[f])) | |
} else | |
for (var p = 0; p < o.threads.length; p++) | |
if (o.threads[p].topBlock === n && o.threads[p].target === r && !o.threads[p].stackClick && o.threads[p].status !== y.STATUS_DONE) return; | |
l.push(o._pushThread(n, r)) | |
} | |
}, n), l | |
} | |
} | |
}, { | |
key: "dispose", | |
value: function() { | |
this.stopAll(), this.targets.map(this.disposeTarget, this) | |
} | |
}, { | |
key: "disposeTarget", | |
value: function(e) { | |
this.targets = this.targets.filter(function(t) { | |
return e !== t || (t.dispose(), !1) | |
}) | |
} | |
}, { | |
key: "stopForTarget", | |
value: function(e, t) { | |
for (var n = 0; n < this.threads.length; n++) this.threads[n] !== t && this.threads[n].target === e && this._stopThread(this.threads[n]) | |
} | |
}, { | |
key: "greenFlag", | |
value: function() { | |
this.stopAll(), this.emit(t.PROJECT_START), this.ioDevices.clock.resetProjectTimer(), this.clearEdgeActivatedValues(); | |
for (var e = 0; e < this.targets.length; e++) this.targets[e].onGreenFlag(); | |
this.startHats("event_whenflagclicked") | |
} | |
}, { | |
key: "stopAll", | |
value: function() { | |
var e = this; | |
this.emit(t.PROJECT_STOP_ALL); | |
for (var n = [], o = 0; o < this.targets.length; o++) this.targets[o].onStopAll(), this.targets[o].hasOwnProperty("isOriginal") && !this.targets[o].isOriginal ? this.targets[o].dispose() : n.push(this.targets[o]); | |
this.targets = n, this.threads.forEach(function(t) { | |
return e._stopThread(t) | |
}) | |
} | |
}, { | |
key: "_step", | |
value: function() { | |
null !== this.profiler && (-1 === Y && (Y = this.profiler.idByName("Runtime._step")), this.profiler.start(Y)), this.threads = this.threads.filter(function(e) { | |
return !e.isKilled | |
}); | |
for (var e in this._hats) | |
if (this._hats.hasOwnProperty(e)) { | |
var n = this._hats[e]; | |
n.edgeActivated && this.startHats(e) | |
} | |
this.redrawRequested = !1, this._pushMonitors(), null !== this.profiler && (-1 === x && (x = this.profiler.idByName("Sequencer.stepThreads")), this.profiler.start(x)); | |
var l = this.sequencer.stepThreads(); | |
null !== this.profiler && this.profiler.stop(), this._updateGlows(l), this._emitProjectRunStatus(this.threads.length + l.length - this._getMonitorThreadCount([].concat(o(this.threads), o(l)))), this.renderer && (null !== this.profiler && (-1 === R && (R = this.profiler.idByName("RenderWebGL.draw")), this.profiler.start(R)), this.renderer.draw(), null !== this.profiler && this.profiler.stop()), this._refreshTargets && (this.emit(t.TARGETS_UPDATE), this._refreshTargets = !1), this._prevMonitorState.equals(this._monitorState) || (this.emit(t.MONITORS_UPDATE, this._monitorState), this._prevMonitorState = this._monitorState), null !== this.profiler && (this.profiler.stop(), this.profiler.reportFrames()) | |
} | |
}, { | |
key: "_getMonitorThreadCount", | |
value: function(e) { | |
var t = 0; | |
return e.forEach(function(e) { | |
e.updateMonitor && t++ | |
}), t | |
} | |
}, { | |
key: "_pushMonitors", | |
value: function() { | |
this.monitorBlocks.runAllMonitored(this) | |
} | |
}, { | |
key: "setEditingTarget", | |
value: function(e) { | |
this._editingTarget = e, this._scriptGlowsPreviousFrame = [], this._updateGlows(), this.requestTargetsUpdate(e) | |
} | |
}, { | |
key: "setCompatibilityMode", | |
value: function(e) { | |
this.compatibilityMode = e, this._steppingInterval && (clearInterval(this._steppingInterval), this.start()) | |
} | |
}, { | |
key: "_updateGlows", | |
value: function(e) { | |
var t = []; | |
t.push.apply(t, this.threads), e && t.push.apply(t, e); | |
for (var n = [], o = [], l = 0; l < t.length; l++) { | |
var r = t[l], | |
i = r.target; | |
if (i === this._editingTarget) { | |
var A = r.blockGlowInFrame; | |
if (r.requestScriptGlowInFrame) { | |
var a = i.blocks.getTopLevelScript(A); | |
a || (a = this.flyoutBlocks.getTopLevelScript(A)), a && n.push(a) | |
} | |
} | |
} | |
for (var s = 0; s < this._scriptGlowsPreviousFrame.length; s++) { | |
var u = this._scriptGlowsPreviousFrame[s]; | |
n.indexOf(u) < 0 ? this.glowScript(u, !1) : o.push(u) | |
} | |
for (var c = 0; c < n.length; c++) { | |
var g = n[c]; | |
this._scriptGlowsPreviousFrame.indexOf(g) < 0 && (this.glowScript(g, !0), o.push(g)) | |
} | |
this._scriptGlowsPreviousFrame = o | |
} | |
}, { | |
key: "_emitProjectRunStatus", | |
value: function(e) { | |
0 === this._nonMonitorThreadCount && e > 0 && this.emit(t.PROJECT_RUN_START), this._nonMonitorThreadCount > 0 && 0 === e && this.emit(t.PROJECT_RUN_STOP), this._nonMonitorThreadCount = e | |
} | |
}, { | |
key: "quietGlow", | |
value: function(e) { | |
var t = this._scriptGlowsPreviousFrame.indexOf(e); | |
t > -1 && this._scriptGlowsPreviousFrame.splice(t, 1) | |
} | |
}, { | |
key: "glowBlock", | |
value: function(e, n) { | |
n ? this.emit(t.BLOCK_GLOW_ON, { | |
id: e | |
}) : this.emit(t.BLOCK_GLOW_OFF, { | |
id: e | |
}) | |
} | |
}, { | |
key: "glowScript", | |
value: function(e, n) { | |
n ? this.emit(t.SCRIPT_GLOW_ON, { | |
id: e | |
}) : this.emit(t.SCRIPT_GLOW_OFF, { | |
id: e | |
}) | |
} | |
}, { | |
key: "emitBlockDragUpdate", | |
value: function(e) { | |
this.emit(t.BLOCK_DRAG_UPDATE, e) | |
} | |
}, { | |
key: "emitBlockEndDrag", | |
value: function(e) { | |
this.emit(t.BLOCK_DRAG_END, e) | |
} | |
}, { | |
key: "visualReport", | |
value: function(e, n) { | |
this.emit(t.VISUAL_REPORT, { | |
id: e, | |
value: String(n) | |
}) | |
} | |
}, { | |
key: "requestAddMonitor", | |
value: function(e) { | |
this._monitorState = this._monitorState.set(e.get("id"), e) | |
} | |
}, { | |
key: "requestUpdateMonitor", | |
value: function(e) { | |
var t = e.get("id"); | |
this._monitorState.has(t) && (this._monitorState = this._monitorState.set(t, this._monitorState.get(t).merge(e))) | |
} | |
}, { | |
key: "requestRemoveMonitor", | |
value: function(e) { | |
this._monitorState = this._monitorState.delete(e) | |
} | |
}, { | |
key: "requestRemoveMonitorByTargetId", | |
value: function(e) { | |
this._monitorState = this._monitorState.filterNot(function(t) { | |
return t.targetId === e | |
}) | |
} | |
}, { | |
key: "getTargetById", | |
value: function(e) { | |
for (var t = 0; t < this.targets.length; t++) { | |
var n = this.targets[t]; | |
if (n.id === e) return n | |
} | |
} | |
}, { | |
key: "getSpriteTargetByName", | |
value: function(e) { | |
for (var t = 0; t < this.targets.length; t++) { | |
var n = this.targets[t]; | |
if (!n.isStage && (n.sprite && n.sprite.name === e)) return n | |
} | |
} | |
}, { | |
key: "getTargetByDrawableId", | |
value: function(e) { | |
for (var t = 0; t < this.targets.length; t++) { | |
var n = this.targets[t]; | |
if (n.drawableID === e) return n | |
} | |
} | |
}, { | |
key: "changeCloneCounter", | |
value: function(e) { | |
this._cloneCounter += e | |
} | |
}, { | |
key: "clonesAvailable", | |
value: function() { | |
return this._cloneCounter < t.MAX_CLONES | |
} | |
}, { | |
key: "fireTargetWasCreated", | |
value: function(e, t) { | |
this.emit("targetWasCreated", e, t) | |
} | |
}, { | |
key: "fireTargetWasRemoved", | |
value: function(e) { | |
this.emit("targetWasRemoved", e) | |
} | |
}, { | |
key: "getTargetForStage", | |
value: function() { | |
for (var e = 0; e < this.targets.length; e++) { | |
var t = this.targets[e]; | |
if (t.isStage) return t | |
} | |
} | |
}, { | |
key: "getEditingTarget", | |
value: function() { | |
return this._editingTarget | |
} | |
}, { | |
key: "requestRedraw", | |
value: function() { | |
this.redrawRequested = !0 | |
} | |
}, { | |
key: "requestTargetsUpdate", | |
value: function(e) { | |
e.isOriginal && (this._refreshTargets = !0) | |
} | |
}, { | |
key: "start", | |
value: function() { | |
var e = this, | |
n = t.THREAD_STEP_INTERVAL; | |
this.compatibilityMode && (n = t.THREAD_STEP_INTERVAL_COMPATIBILITY), this.currentStepTime = n, this._steppingInterval = setInterval(function() { | |
e._step() | |
}, n) | |
} | |
}, { | |
key: "enableProfiling", | |
value: function(e) { | |
p.available() && (this.profiler = new p(e)) | |
} | |
}, { | |
key: "disableProfiling", | |
value: function() { | |
this.profiler = null | |
} | |
}], [{ | |
key: "STAGE_WIDTH", | |
get: function() { | |
return 480 | |
} | |
}, { | |
key: "STAGE_HEIGHT", | |
get: function() { | |
return 360 | |
} | |
}, { | |
key: "SCRIPT_GLOW_ON", | |
get: function() { | |
return "SCRIPT_GLOW_ON" | |
} | |
}, { | |
key: "SCRIPT_GLOW_OFF", | |
get: function() { | |
return "SCRIPT_GLOW_OFF" | |
} | |
}, { | |
key: "BLOCK_GLOW_ON", | |
get: function() { | |
return "BLOCK_GLOW_ON" | |
} | |
}, { | |
key: "BLOCK_GLOW_OFF", | |
get: function() { | |
return "BLOCK_GLOW_OFF" | |
} | |
}, { | |
key: "PROJECT_START", | |
get: function() { | |
return "PROJECT_START" | |
} | |
}, { | |
key: "PROJECT_RUN_START", | |
get: function() { | |
return "PROJECT_RUN_START" | |
} | |
}, { | |
key: "PROJECT_RUN_STOP", | |
get: function() { | |
return "PROJECT_RUN_STOP" | |
} | |
}, { | |
key: "PROJECT_STOP_ALL", | |
get: function() { | |
return "PROJECT_STOP_ALL" | |
} | |
}, { | |
key: "VISUAL_REPORT", | |
get: function() { | |
return "VISUAL_REPORT" | |
} | |
}, { | |
key: "TARGETS_UPDATE", | |
get: function() { | |
return "TARGETS_UPDATE" | |
} | |
}, { | |
key: "MONITORS_UPDATE", | |
get: function() { | |
return "MONITORS_UPDATE" | |
} | |
}, { | |
key: "BLOCK_DRAG_UPDATE", | |
get: function() { | |
return "BLOCK_DRAG_UPDATE" | |
} | |
}, { | |
key: "BLOCK_DRAG_END", | |
get: function() { | |
return "BLOCK_DRAG_END" | |
} | |
}, { | |
key: "EXTENSION_ADDED", | |
get: function() { | |
return "EXTENSION_ADDED" | |
} | |
}, { | |
key: "BLOCKSINFO_UPDATE", | |
get: function() { | |
return "BLOCKSINFO_UPDATE" | |
} | |
}, { | |
key: "THREAD_STEP_INTERVAL", | |
get: function() { | |
return 1e3 / 60 | |
} | |
}, { | |
key: "THREAD_STEP_INTERVAL_COMPATIBILITY", | |
get: function() { | |
return 1e3 / 30 | |
} | |
}, { | |
key: "MAX_CLONES", | |
get: function() { | |
return 300 | |
} | |
}]), t | |
}(s); | |
e.exports = U | |
}, function(e, t) { | |
function n(e) { | |
var t = o.call(e); | |
return "[object Function]" === t || "function" == typeof e && "[object RegExp]" !== t || "undefined" != typeof window && (e === window.setTimeout || e === window.alert || e === window.confirm || e === window.prompt) | |
} | |
e.exports = n; | |
var o = Object.prototype.toString | |
}, function(e, t, n) { | |
"use strict"; | |
t.decode = t.parse = n(290), t.encode = t.stringify = n(291) | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
r = function() { | |
function e(t) { | |
o(this, e), this.runtime = t, this.provider = null, this._skinId = -1, this._skin = null, this._drawable = -1, this._ghost = 0 | |
} | |
return l(e, [{ | |
key: "setProvider", | |
value: function(e) { | |
this.provider = e | |
} | |
}, { | |
key: "enableVideo", | |
value: function() { | |
var e = this; | |
return this.provider ? this.provider.enableVideo().then(function() { | |
return e._setupPreview() | |
}) : null | |
} | |
}, { | |
key: "disableVideo", | |
value: function() { | |
if (this._disablePreview(), !this.provider) return null; | |
this.provider.disableVideo() | |
} | |
}, { | |
key: "getFrame", | |
value: function(t) { | |
var n = t.dimensions, | |
o = void 0 === n ? e.DIMENSIONS : n, | |
l = t.mirror, | |
r = void 0 === l ? this.mirror : l, | |
i = t.format, | |
A = void 0 === i ? e.FORMAT_IMAGE_DATA : i, | |
a = t.cacheTimeout, | |
s = void 0 === a ? this._frameCacheTimeout : a; | |
return this.provider ? this.provider.getFrame({ | |
dimensions: o, | |
mirror: r, | |
format: A, | |
cacheTimeout: s | |
}) : null | |
} | |
}, { | |
key: "setPreviewGhost", | |
value: function(e) { | |
this._ghost = e, this._drawable && this.runtime.renderer.updateDrawableProperties(this._drawable, { | |
ghost: e | |
}) | |
} | |
}, { | |
key: "_disablePreview", | |
value: function() { | |
this._skin && (this._skin.clear(), this.runtime.renderer.updateDrawableProperties(this._drawable, { | |
visible: !1 | |
})), this._renderPreviewFrame = null | |
} | |
}, { | |
key: "_setupPreview", | |
value: function() { | |
var t = this, | |
n = this.runtime.renderer; | |
n && (-1 === this._skinId && null === this._skin && -1 === this._drawable && (this._skinId = n.createPenSkin(), this._skin = n._allSkins[this._skinId], this._drawable = n.createDrawable(), n.setDrawableOrder(this._drawable, e.ORDER), n.updateDrawableProperties(this._drawable, { | |
skinId: this._skinId | |
})), this._renderPreviewFrame || (n.updateDrawableProperties(this._drawable, { | |
ghost: this._ghost, | |
visible: !0 | |
}), this._renderPreviewFrame = function() { | |
if (clearTimeout(t._renderPreviewTimeout), t._renderPreviewFrame) { | |
t._renderPreviewTimeout = setTimeout(t._renderPreviewFrame, t.runtime.currentStepTime); | |
var n = t.getFrame({ | |
format: e.FORMAT_CANVAS | |
}); | |
if (!n) return void t._skin.clear(); | |
var o = e.DIMENSIONS[0] / -2, | |
l = e.DIMENSIONS[1] / 2; | |
t._skin.drawStamp(n, o, l), t.runtime.requestRedraw() | |
} | |
}, this._renderPreviewFrame())) | |
} | |
}, { | |
key: "videoReady", | |
get: function() { | |
return !!this.provider && this.provider.videoReady | |
} | |
}], [{ | |
key: "FORMAT_IMAGE_DATA", | |
get: function() { | |
return "image-data" | |
} | |
}, { | |
key: "FORMAT_CANVAS", | |
get: function() { | |
return "canvas" | |
} | |
}, { | |
key: "DIMENSIONS", | |
get: function() { | |
return [480, 360] | |
} | |
}, { | |
key: "ORDER", | |
get: function() { | |
return 1 | |
} | |
}]), e | |
}(); | |
e.exports = r | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
var l = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
r = n(35), | |
i = n(19), | |
A = n(37), | |
a = A.loadSoundFromAsset, | |
s = n(38), | |
u = s.loadCostumeFromAsset, | |
c = n(18), | |
g = function() { | |
function e(t, n) { | |
o(this, e), this.runtime = n, t || (t = new i), this.blocks = t, this.name = "", this.costumes_ = [], this.sounds = [], this.clones = [] | |
} | |
return l(e, [{ | |
key: "addCostumeAt", | |
value: function(e, t) { | |
e.name || (e.name = ""); | |
var n = this.costumes_.map(function(e) { | |
return e.name | |
}); | |
e.name = c.unusedName(e.name, n), this.costumes_.splice(t, 0, e) | |
} | |
}, { | |
key: "deleteCostumeAt", | |
value: function(e) { | |
this.costumes_ = this.costumes_.slice(0, e).concat(this.costumes_.slice(e + 1)) | |
} | |
}, { | |
key: "createClone", | |
value: function() { | |
var e = new r(this, this.runtime); | |
return e.isOriginal = 0 === this.clones.length, this.clones.push(e), e.initAudio(), e.isOriginal ? (e.initDrawable(), this.runtime.fireTargetWasCreated(e)) : this.runtime.fireTargetWasCreated(e, this.clones[0]), e | |
} | |
}, { | |
key: "removeClone", | |
value: function(e) { | |
this.runtime.fireTargetWasRemoved(e); | |
var t = this.clones.indexOf(e); | |
t >= 0 && this.clones.splice(t, 1) | |
} | |
}, { | |
key: "duplicate", | |
value: function() { | |
var t = this, | |
n = new e(null, this.runtime); | |
n.blocks = this.blocks.duplicate(); | |
var o = this.runtime.targets.map(function(e) { | |
return e.sprite.name | |
}); | |
n.name = c.unusedName(this.name, o); | |
var l = []; | |
return n.costumes = this.costumes_.map(function(e) { | |
var n = Object.assign({}, e), | |
o = t.runtime.storage.get(e.assetId); | |
return l.push(u(n, o, t.runtime)), n | |
}), n.sounds = this.sounds.map(function(e) { | |
var n = Object.assign({}, e), | |
o = t.runtime.storage.get(e.assetId); | |
return l.push(a(n, o, t.runtime)), n | |
}), Promise.all(l).then(function() { | |
return n | |
}) | |
} | |
}, { | |
key: "costumes", | |
set: function(e) { | |
this.costumes_ = []; | |
var t = !0, | |
n = !1, | |
o = void 0; | |
try { | |
for (var l, r = e[Symbol.iterator](); !(t = (l = r.next()).done); t = !0) { | |
var i = l.value; | |
this.addCostumeAt(i, this.costumes_.length) | |
} | |
} catch (e) { | |
n = !0, o = e | |
} finally { | |
try { | |
!t && r.return && r.return() | |
} finally { | |
if (n) throw o | |
} | |
} | |
}, | |
get: function() { | |
return this.costumes_ | |
} | |
}]), e | |
}(); | |
e.exports = g | |
}, function(e, t, n) { | |
"use strict"; | |
var o = n(39), | |
l = n(2), | |
r = function(e, t, n, r) { | |
var i = r || e.md5, | |
A = t.storage; | |
if (!A) return l.error("No storage module present; cannot load sound asset: ", i), Promise.resolve(null); | |
var a = e.assetId; | |
if (A.get(a)) return Promise.resolve(null); | |
if (!n) return Promise.resolve(null); | |
var s = n.file(i); | |
if (!s) return l.error("Could not find sound file associated with the " + e.name + " sound."), Promise.resolve(null); | |
var u = "mp3" === e.dataFormat.toLowerCase() ? A.DataFormat.MP3 : A.DataFormat.WAV; | |
return o.support.uint8array ? s.async("uint8array").then(function(e) { | |
A.builtinHelper.cache(A.AssetType.Sound, u, e, a) | |
}) : (l.error("JSZip uint8array is not supported in this browser."), Promise.resolve(null)) | |
}, | |
i = function(e, t, n, r) { | |
var i = t.storage, | |
A = e.assetId, | |
a = r || A + "." + e.dataFormat; | |
if (!i) return l.error("No storage module present; cannot load costume asset: ", a), Promise.resolve(null); | |
if (i.get(A)) return Promise.resolve(null); | |
if (!n) return Promise.resolve(null); | |
var s = n.file(a); | |
if (!s) return l.error("Could not find costume file associated with the " + e.name + " costume."), Promise.resolve(null); | |
var u = null, | |
c = e.dataFormat.toLowerCase(); | |
return "svg" === c ? u = i.AssetType.ImageVector : ["png", "bmp", "jpeg", "jpg", "gif"].indexOf(c) >= 0 ? u = i.AssetType.ImageBitmap : l.error("Unexpected file format for costume: " + c), o.support.uint8array ? s.async("uint8array").then(function(e) { | |
i.builtinHelper.cache(u, c, e, A) | |
}) : (l.error("JSZip uint8array is not supported in this browser."), Promise.resolve(null)) | |
}; | |
e.exports = { | |
deserializeSound: r, | |
deserializeCostume: i | |
} | |
}, function(e, t) { | |
e.exports = function(e) { | |
return e.webpackPolyfill || (e.deprecate = function() {}, e.paths = [], e.children || (e.children = []), Object.defineProperty(e, "loaded", { | |
enumerable: !0, | |
get: function() { | |
return e.l | |
} | |
}), Object.defineProperty(e, "id", { | |
enumerable: !0, | |
get: function() { | |
return e.i | |
} | |
}), e.webpackPolyfill = 1), e | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e) { | |
l.copy(e, this) | |
} | |
var l = n(22); | |
e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
e.exports = function(e, t) { | |
t || (t = {}), "function" == typeof t && (t = { | |
cmp: t | |
}); | |
var n = "boolean" == typeof t.cycles && t.cycles, | |
o = t.cmp && function(e) { | |
return function(t) { | |
return function(n, o) { | |
var l = { | |
key: n, | |
value: t[n] | |
}, | |
r = { | |
key: o, | |
value: t[o] | |
}; | |
return e(l, r) | |
} | |
} | |
}(t.cmp), | |
l = []; | |
return function e(t) { | |
if (t && t.toJSON && "function" == typeof t.toJSON && (t = t.toJSON()), void 0 !== t) { | |
if ("number" == typeof t) return isFinite(t) ? "" + t : "null"; | |
if ("object" != typeof t) return JSON.stringify(t); | |
var r, i; | |
if (Array.isArray(t)) { | |
for (i = "[", r = 0; r < t.length; r++) r && (i += ","), i += e(t[r]) || "null"; | |
return i + "]" | |
} | |
if (null === t) return "null"; | |
if (-1 !== l.indexOf(t)) { | |
if (n) return JSON.stringify("__cycle__"); | |
throw new TypeError("Converting circular structure to JSON") | |
} | |
var A = l.push(t) - 1, | |
a = Object.keys(t).sort(o && o(t)); | |
for (i = "", r = 0; r < a.length; r++) { | |
var s = a[r], | |
u = e(t[s]); | |
u && (i && (i += ","), i += JSON.stringify(s) + ":" + u) | |
} | |
return l.splice(A, 1), "{" + i + "}" | |
} | |
}(e) | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
e.exports = function(e, t, n) { | |
function o(e) { | |
for (var t = e.rules, n = 0; n < t.length; n++) | |
if (l(t[n])) return !0 | |
} | |
function l(t) { | |
return void 0 !== e.schema[t.keyword] || t.implements && r(t) | |
} | |
function r(t) { | |
for (var n = t.implements, o = 0; o < n.length; o++) | |
if (void 0 !== e.schema[n[o]]) return !0 | |
} | |
var i = "", | |
A = !0 === e.schema.$async, | |
a = e.util.schemaHasRulesExcept(e.schema, e.RULES.all, "$ref"), | |
s = e.self._getId(e.schema); | |
if (e.isTop && (i += " var validate = ", A && (e.async = !0, i += "async "), i += "function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ", s && (e.opts.sourceCode || e.opts.processCode) && (i += " /*# sourceURL=" + s + " */ ")), "boolean" == typeof e.schema || !a && !e.schema.$ref) { | |
var u, c = e.level, | |
g = e.dataLevel, | |
h = e.schema["false schema"], | |
d = e.schemaPath + e.util.getProperty("false schema"), | |
f = e.errSchemaPath + "/false schema", | |
p = !e.opts.allErrors, | |
m = "data" + (g || ""), | |
B = "valid" + c; | |
if (!1 === e.schema) { | |
e.isTop ? p = !0 : i += " var " + B + " = false; "; | |
var E = E || []; | |
E.push(i), i = "", !1 !== e.createErrors ? (i += " { keyword: '" + (u || "false schema") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(f) + " , params: {} ", !1 !== e.opts.messages && (i += " , message: 'boolean schema is false' "), e.opts.verbose && (i += " , schema: false , parentSchema: validate.schema" + e.schemaPath + " , data: " + m + " "), i += " } ") : i += " {} "; | |
var y = i; | |
i = E.pop(), !e.compositeRule && p ? e.async ? i += " throw new ValidationError([" + y + "]); " : i += " validate.errors = [" + y + "]; return false; " : i += " var err = " + y + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; " | |
} else e.isTop ? i += A ? " return data; " : " validate.errors = null; return true; " : i += " var " + B + " = true; "; | |
return e.isTop && (i += " }; return validate; "), i | |
} | |
if (e.isTop) { | |
var C = e.isTop, | |
c = e.level = 0, | |
g = e.dataLevel = 0, | |
m = "data"; | |
e.rootId = e.resolve.fullPath(e.self._getId(e.root.schema)), e.baseId = e.baseId || e.rootId, delete e.isTop, e.dataPathArr = [void 0], i += " var vErrors = null; ", i += " var errors = 0; ", i += " if (rootData === undefined) rootData = data; " | |
} else { | |
var c = e.level, | |
g = e.dataLevel, | |
m = "data" + (g || ""); | |
if (s && (e.baseId = e.resolve.url(e.baseId, s)), A && !e.async) throw new Error("async schema in sync schema"); | |
i += " var errs_" + c + " = errors;" | |
} | |
var u, B = "valid" + c, | |
p = !e.opts.allErrors, | |
w = "", | |
I = "", | |
b = e.schema.type, | |
v = Array.isArray(b); | |
if (v && 1 == b.length && (b = b[0], v = !1), e.schema.$ref && a) { | |
if ("fail" == e.opts.extendRefs) throw new Error('$ref: validation keywords used in schema at path "' + e.errSchemaPath + '" (see option extendRefs)'); | |
!0 !== e.opts.extendRefs && (a = !1, e.logger.warn('$ref: keywords ignored in schema at path "' + e.errSchemaPath + '"')) | |
} | |
if (e.schema.$comment && e.opts.$comment && (i += " " + e.RULES.all.$comment.code(e, "$comment")), b) { | |
if (e.opts.coerceTypes) var M = e.util.coerceToTypes(e.opts.coerceTypes, b); | |
var Q = e.RULES.types[b]; | |
if (M || v || !0 === Q || Q && !o(Q)) { | |
var d = e.schemaPath + ".type", | |
f = e.errSchemaPath + "/type", | |
d = e.schemaPath + ".type", | |
f = e.errSchemaPath + "/type", | |
D = v ? "checkDataTypes" : "checkDataType"; | |
if (i += " if (" + e.util[D](b, m, !0) + ") { ", M) { | |
var k = "dataType" + c, | |
S = "coerced" + c; | |
i += " var " + k + " = typeof " + m + "; ", "array" == e.opts.coerceTypes && (i += " if (" + k + " == 'object' && Array.isArray(" + m + ")) " + k + " = 'array'; "), i += " var " + S + " = undefined; "; | |
var F = "", | |
Y = M; | |
if (Y) | |
for (var x, R = -1, U = Y.length - 1; R < U;) x = Y[R += 1], R && (i += " if (" + S + " === undefined) { ", F += "}"), "array" == e.opts.coerceTypes && "array" != x && (i += " if (" + k + " == 'array' && " + m + ".length == 1) { " + S + " = " + m + " = " + m + "[0]; " + k + " = typeof " + m + "; } "), "string" == x ? i += " if (" + k + " == 'number' || " + k + " == 'boolean') " + S + " = '' + " + m + "; else if (" + m + " === null) " + S + " = ''; " : "number" == x || "integer" == x ? (i += " if (" + k + " == 'boolean' || " + m + " === null || (" + k + " == 'string' && " + m + " && " + m + " == +" + m + " ", "integer" == x && (i += " && !(" + m + " % 1)"), i += ")) " + S + " = +" + m + "; ") : "boolean" == x ? i += " if (" + m + " === 'false' || " + m + " === 0 || " + m + " === null) " + S + " = false; else if (" + m + " === 'true' || " + m + " === 1) " + S + " = true; " : "null" == x ? i += " if (" + m + " === '' || " + m + " === 0 || " + m + " === false) " + S + " = null; " : "array" == e.opts.coerceTypes && "array" == x && (i += " if (" + k + " == 'string' || " + k + " == 'number' || " + k + " == 'boolean' || " + m + " == null) " + S + " = [" + m + "]; "); | |
i += " " + F + " if (" + S + " === undefined) { "; | |
var E = E || []; | |
E.push(i), i = "", !1 !== e.createErrors ? (i += " { keyword: '" + (u || "type") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(f) + " , params: { type: '", i += v ? "" + b.join(",") : "" + b, i += "' } ", !1 !== e.opts.messages && (i += " , message: 'should be ", i += v ? "" + b.join(",") : "" + b, i += "' "), e.opts.verbose && (i += " , schema: validate.schema" + d + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + m + " "), i += " } ") : i += " {} "; | |
var y = i; | |
i = E.pop(), !e.compositeRule && p ? e.async ? i += " throw new ValidationError([" + y + "]); " : i += " validate.errors = [" + y + "]; return false; " : i += " var err = " + y + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", i += " } else { "; | |
var T = g ? "data" + (g - 1 || "") : "parentData", | |
N = g ? e.dataPathArr[g] : "parentDataProperty"; | |
i += " " + m + " = " + S + "; ", g || (i += "if (" + T + " !== undefined)"), i += " " + T + "[" + N + "] = " + S + "; } " | |
} else { | |
var E = E || []; | |
E.push(i), i = "", !1 !== e.createErrors ? (i += " { keyword: '" + (u || "type") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(f) + " , params: { type: '", i += v ? "" + b.join(",") : "" + b, i += "' } ", !1 !== e.opts.messages && (i += " , message: 'should be ", i += v ? "" + b.join(",") : "" + b, i += "' "), e.opts.verbose && (i += " , schema: validate.schema" + d + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + m + " "), i += " } ") : i += " {} "; | |
var y = i; | |
i = E.pop(), !e.compositeRule && p ? e.async ? i += " throw new ValidationError([" + y + "]); " : i += " validate.errors = [" + y + "]; return false; " : i += " var err = " + y + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; " | |
} | |
i += " } " | |
} | |
} | |
if (e.schema.$ref && !a) i += " " + e.RULES.all.$ref.code(e, "$ref") + " ", p && (i += " } if (errors === ", i += C ? "0" : "errs_" + c, i += ") { ", I += "}"); | |
else { | |
var G = e.RULES; | |
if (G) | |
for (var Q, L = -1, O = G.length - 1; L < O;) | |
if (Q = G[L += 1], o(Q)) { | |
if (Q.type && (i += " if (" + e.util.checkDataType(Q.type, m) + ") { "), e.opts.useDefaults && !e.compositeRule) | |
if ("object" == Q.type && e.schema.properties) { | |
var h = e.schema.properties, | |
P = Object.keys(h), | |
H = P; | |
if (H) | |
for (var j, J = -1, V = H.length - 1; J < V;) { | |
j = H[J += 1]; | |
var z = h[j]; | |
if (void 0 !== z.default) { | |
var W = m + e.util.getProperty(j); | |
i += " if (" + W + " === undefined) " + W + " = ", "shared" == e.opts.useDefaults ? i += " " + e.useDefault(z.default) + " " : i += " " + JSON.stringify(z.default) + " ", i += "; " | |
} | |
} | |
} else if ("array" == Q.type && Array.isArray(e.schema.items)) { | |
var K = e.schema.items; | |
if (K) | |
for (var z, R = -1, q = K.length - 1; R < q;) | |
if (z = K[R += 1], void 0 !== z.default) { | |
var W = m + "[" + R + "]"; | |
i += " if (" + W + " === undefined) " + W + " = ", "shared" == e.opts.useDefaults ? i += " " + e.useDefault(z.default) + " " : i += " " + JSON.stringify(z.default) + " ", i += "; " | |
} | |
} | |
var Z = Q.rules; | |
if (Z) | |
for (var _, X = -1, $ = Z.length - 1; X < $;) | |
if (_ = Z[X += 1], l(_)) { | |
var ee = _.code(e, _.keyword, Q.type); | |
ee && (i += " " + ee + " ", p && (w += "}")) | |
} | |
if (p && (i += " " + w + " ", w = ""), Q.type && (i += " } ", b && b === Q.type && !M)) { | |
i += " else { "; | |
var d = e.schemaPath + ".type", | |
f = e.errSchemaPath + "/type", | |
E = E || []; | |
E.push(i), i = "", !1 !== e.createErrors ? (i += " { keyword: '" + (u || "type") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(f) + " , params: { type: '", i += v ? "" + b.join(",") : "" + b, i += "' } ", !1 !== e.opts.messages && (i += " , message: 'should be ", i += v ? "" + b.join(",") : "" + b, i += "' "), e.opts.verbose && (i += " , schema: validate.schema" + d + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + m + " "), i += " } ") : i += " {} "; | |
var y = i; | |
i = E.pop(), !e.compositeRule && p ? e.async ? i += " throw new ValidationError([" + y + "]); " : i += " validate.errors = [" + y + "]; return false; " : i += " var err = " + y + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", i += " } " | |
} | |
p && (i += " if (errors === ", i += C ? "0" : "errs_" + c, i += ") { ", I += "}") | |
} | |
} | |
return p && (i += " " + I + " "), C ? (A ? (i += " if (errors === 0) return data; ", i += " else throw new ValidationError(vErrors); ") : (i += " validate.errors = vErrors; ", i += " return errors === 0; "), i += " }; return validate;") : i += " var " + B + " = errors === errs_" + c + ";", i = e.util.cleanUpCode(i), C && (i = e.util.finalCleanUpCode(i, A)), i | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
e.exports = function(e, t, n) { | |
var o, l, r = " ", | |
i = e.level, | |
A = e.dataLevel, | |
a = e.schema[t], | |
s = e.schemaPath + e.util.getProperty(t), | |
u = e.errSchemaPath + "/" + t, | |
c = !e.opts.allErrors, | |
g = "data" + (A || ""), | |
h = e.opts.$data && a && a.$data; | |
h ? (r += " var schema" + i + " = " + e.util.getData(a.$data, A, e.dataPathArr) + "; ", l = "schema" + i) : l = a; | |
var d = "maximum" == t, | |
f = d ? "exclusiveMaximum" : "exclusiveMinimum", | |
p = e.schema[f], | |
m = e.opts.$data && p && p.$data, | |
B = d ? "<" : ">", | |
E = d ? ">" : "<", | |
o = void 0; | |
if (m) { | |
var y = e.util.getData(p.$data, A, e.dataPathArr), | |
C = "exclusive" + i, | |
w = "exclType" + i, | |
I = "exclIsNumber" + i, | |
b = "op" + i, | |
v = "' + " + b + " + '"; | |
r += " var schemaExcl" + i + " = " + y + "; ", y = "schemaExcl" + i, r += " var " + C + "; var " + w + " = typeof " + y + "; if (" + w + " != 'boolean' && " + w + " != 'undefined' && " + w + " != 'number') { "; | |
var o = f, | |
M = M || []; | |
M.push(r), r = "", !1 !== e.createErrors ? (r += " { keyword: '" + (o || "_exclusiveLimit") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(u) + " , params: {} ", !1 !== e.opts.messages && (r += " , message: '" + f + " should be boolean' "), e.opts.verbose && (r += " , schema: validate.schema" + s + " , parentSchema: validate.schema" + e.schemaPath + " , data: " + g + " "), r += " } ") : r += " {} "; | |
var Q = r; | |
r = M.pop(), !e.compositeRule && c ? e.async ? r += " throw new ValidationError([" + Q + "]); " : r += " validate.errors = [" + Q + "]; return false; " : r += " var err = " + Q + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " } else if ( ", h && (r += " (" + l + " !== undefined && typeof " + l + " != 'number') || "), r += " " + w + " == 'number' ? ( (" + C + " = " + l + " === undefined || " + y + " " + B + "= " + l + ") ? " + g + " " + E + "= " + y + " : " + g + " " + E + " " + l + " ) : ( (" + C + " = " + y + " === true) ? " + g + " " + E + "= " + l + " : " + g + " " + E + " " + l + " ) || " + g + " !== " + g + ") { var op" + i + " = " + C + " ? '" + B + "' : '" + B + "='; ", void 0 === a && (o = f, u = e.errSchemaPath + "/" + f, l = y, h = m) | |
} else { | |
var I = "number" == typeof p, | |
v = B; | |
if (I && h) { | |
var b = "'" + v + "'"; | |
r += " if ( ", h && (r += " (" + l + " !== undefined && typeof " + l + " != 'number') || "), r += " ( " + l + " === undefined || " + p + " " + B + "= " + l + " ? " + g + " " + E + "= " + p + " : " + g + " " + E + " " + l + " ) || " + g + " !== " + g + ") { " | |
} else { | |
I && void 0 === a ? (C = !0, o = f, u = e.errSchemaPath + "/" + f, l = p, E += "=") : (I && (l = Math[d ? "min" : "max"](p, a)), p === (!I || l) ? (C = !0, o = f, u = e.errSchemaPath + "/" + f, E += "=") : (C = !1, v += "=")); | |
var b = "'" + v + "'"; | |
r += " if ( ", h && (r += " (" + l + " !== undefined && typeof " + l + " != 'number') || "), r += " " + g + " " + E + " " + l + " || " + g + " !== " + g + ") { " | |
} | |
} | |
o = o || t; | |
var M = M || []; | |
M.push(r), r = "", !1 !== e.createErrors ? (r += " { keyword: '" + (o || "_limit") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(u) + " , params: { comparison: " + b + ", limit: " + l + ", exclusive: " + C + " } ", !1 !== e.opts.messages && (r += " , message: 'should be " + v + " ", r += h ? "' + " + l : l + "'"), e.opts.verbose && (r += " , schema: ", r += h ? "validate.schema" + s : "" + a, r += " , parentSchema: validate.schema" + e.schemaPath + " , data: " + g + " "), r += " } ") : r += " {} "; | |
var Q = r; | |
return r = M.pop(), !e.compositeRule && c ? e.async ? r += " throw new ValidationError([" + Q + "]); " : r += " validate.errors = [" + Q + "]; return false; " : r += " var err = " + Q + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += " } ", c && (r += " else { "), r | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
e.exports = function(e, t, n) { | |
var o, l, r = " ", | |
i = e.level, | |
A = e.dataLevel, | |
a = e.schema[t], | |
s = e.schemaPath + e.util.getProperty(t), | |
u = e.errSchemaPath + "/" + t, | |
c = !e.opts.allErrors, | |
g = "data" + (A || ""), | |
h = e.opts.$data && a && a.$data; | |
h ? (r += " var schema" + i + " = " + e.util.getData(a.$data, A, e.dataPathArr) + "; ", l = "schema" + i) : l = a; | |
var d = "maxItems" == t ? ">" : "<"; | |
r += "if ( ", h && (r += " (" + l + " !== undefined && typeof " + l + " != 'number') || "), r += " " + g + ".length " + d + " " + l + ") { "; | |
var o = t, | |
f = f || []; | |
f.push(r), r = "", !1 !== e.createErrors ? (r += " { keyword: '" + (o || "_limitItems") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(u) + " , params: { limit: " + l + " } ", !1 !== e.opts.messages && (r += " , message: 'should NOT have ", r += "maxItems" == t ? "more" : "less", r += " than ", r += h ? "' + " + l + " + '" : "" + a, r += " items' "), e.opts.verbose && (r += " , schema: ", r += h ? "validate.schema" + s : "" + a, r += " , parentSchema: validate.schema" + e.schemaPath + " , data: " + g + " "), r += " } ") : r += " {} "; | |
var p = r; | |
return r = f.pop(), !e.compositeRule && c ? e.async ? r += " throw new ValidationError([" + p + "]); " : r += " validate.errors = [" + p + "]; return false; " : r += " var err = " + p + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += "} ", c && (r += " else { "), r | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
e.exports = function(e, t, n) { | |
var o, l, r = " ", | |
i = e.level, | |
A = e.dataLevel, | |
a = e.schema[t], | |
s = e.schemaPath + e.util.getProperty(t), | |
u = e.errSchemaPath + "/" + t, | |
c = !e.opts.allErrors, | |
g = "data" + (A || ""), | |
h = e.opts.$data && a && a.$data; | |
h ? (r += " var schema" + i + " = " + e.util.getData(a.$data, A, e.dataPathArr) + "; ", l = "schema" + i) : l = a; | |
var d = "maxLength" == t ? ">" : "<"; | |
r += "if ( ", h && (r += " (" + l + " !== undefined && typeof " + l + " != 'number') || "), !1 === e.opts.unicode ? r += " " + g + ".length " : r += " ucs2length(" + g + ") ", r += " " + d + " " + l + ") { "; | |
var o = t, | |
f = f || []; | |
f.push(r), r = "", !1 !== e.createErrors ? (r += " { keyword: '" + (o || "_limitLength") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(u) + " , params: { limit: " + l + " } ", !1 !== e.opts.messages && (r += " , message: 'should NOT be ", r += "maxLength" == t ? "longer" : "shorter", r += " than ", r += h ? "' + " + l + " + '" : "" + a, r += " characters' "), e.opts.verbose && (r += " , schema: ", r += h ? "validate.schema" + s : "" + a, r += " , parentSchema: validate.schema" + e.schemaPath + " , data: " + g + " "), r += " } ") : r += " {} "; | |
var p = r; | |
return r = f.pop(), !e.compositeRule && c ? e.async ? r += " throw new ValidationError([" + p + "]); " : r += " validate.errors = [" + p + "]; return false; " : r += " var err = " + p + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += "} ", c && (r += " else { "), r | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
e.exports = function(e, t, n) { | |
var o, l, r = " ", | |
i = e.level, | |
A = e.dataLevel, | |
a = e.schema[t], | |
s = e.schemaPath + e.util.getProperty(t), | |
u = e.errSchemaPath + "/" + t, | |
c = !e.opts.allErrors, | |
g = "data" + (A || ""), | |
h = e.opts.$data && a && a.$data; | |
h ? (r += " var schema" + i + " = " + e.util.getData(a.$data, A, e.dataPathArr) + "; ", l = "schema" + i) : l = a; | |
var d = "maxProperties" == t ? ">" : "<"; | |
r += "if ( ", h && (r += " (" + l + " !== undefined && typeof " + l + " != 'number') || "), r += " Object.keys(" + g + ").length " + d + " " + l + ") { "; | |
var o = t, | |
f = f || []; | |
f.push(r), r = "", !1 !== e.createErrors ? (r += " { keyword: '" + (o || "_limitProperties") + "' , dataPath: (dataPath || '') + " + e.errorPath + " , schemaPath: " + e.util.toQuotedString(u) + " , params: { limit: " + l + " } ", !1 !== e.opts.messages && (r += " , message: 'should NOT have ", r += "maxProperties" == t ? "more" : "less", r += " than ", r += h ? "' + " + l + " + '" : "" + a, r += " properties' "), e.opts.verbose && (r += " , schema: ", r += h ? "validate.schema" + s : "" + a, r += " , parentSchema: validate.schema" + e.schemaPath + " , data: " + g + " "), r += " } ") : r += " {} "; | |
var p = r; | |
return r = f.pop(), !e.compositeRule && c ? e.async ? r += " throw new ValidationError([" + p + "]); " : r += " validate.errors = [" + p + "]; return false; " : r += " var err = " + p + "; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ", r += "} ", c && (r += " else { "), r | |
} | |
}, function(e, t, n) { | |
"use strict"; | |
(function(t) { | |
e.exports = t.VirtualMachine = n(112) | |
}).call(t, n(5)) | |
}, function(e, t, n) { | |
const o = n(113); | |
e.exports = o | |
}, function(e, t, n) { | |
"use strict"; | |
function o(e, t, n) { | |
return t in e ? Object.defineProperty(e, t, { | |
value: n, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0 | |
}) : e[t] = n, e | |
} | |
function l(e, t) { | |
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") | |
} | |
function r(e, t) { | |
if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return !t || "object" != typeof t && "function" != typeof t ? e : t | |
} | |
function i(e, t) { | |
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); | |
e.prototype = Object.create(t && t.prototype, { | |
constructor: { | |
value: e, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0 | |
} | |
}), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t) | |
} | |
var A = "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 | |
}, | |
a = function() { | |
function e(e, t) { | |
for (var n = 0; n < t.length; n++) { | |
var o = t[n]; | |
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) | |
} | |
} | |
return function(t, n, o) { | |
return n && e(t.prototype, n), o && e(t, o), t | |
} | |
}(), | |
s = n(114).TextEncoder, | |
u = n(11), | |
c = n(39), | |
g = n(6).Buffer, | |
h = n(83), | |
d = n(178), | |
f = n(2), | |
p = n(97), | |
m = n(307), | |
B = n(309), | |
E = n(18), | |
y = n(48), | |
C = n(311), | |
w = n(28), | |
I = n(38), | |
b = I.loadCostume, | |
v = n(37), | |
M = v.loadSound, | |
Q = n(364), | |
D = Q.serializeSounds, | |
k = Q.serializeCostumes; | |
n(365); | |
var S = ["_mouse_", "_stage_", "_edge_", "_myself_", "_random_"], | |
F = [], | |
Y = function(e) { | |
function t() { | |
l(this, t); | |
var e = r(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this)); | |
return e.runtime = new p, h.setService("runtime", e.runtime).catch(function(e) { | |
f.error("Failed to register runtime service: " + JSON.stringify(e)) | |
}), e.editingTarget = null, e._dragTarget = null, e.runtime.on(p.SCRIPT_GLOW_ON, function(t) { | |
e.emit(p.SCRIPT_GLOW_ON, t) | |
}), e.runtime.on(p.SCRIPT_GLOW_OFF, function(t) { | |
e.emit(p.SCRIPT_GLOW_OFF, t) | |
}), e.runtime.on(p.BLOCK_GLOW_ON, function(t) { | |
e.emit(p.BLOCK_GLOW_ON, t) | |
}), e.runtime.on(p.BLOCK_GLOW_OFF, function(t) { | |
e.emit(p.BLOCK_GLOW_OFF, t) | |
}), e.runtime.on(p.PROJECT_RUN_START, function() { | |
e.emit(p.PROJECT_RUN_START) | |
}), e.runtime.on(p.PROJECT_RUN_STOP, function() { | |
e.emit(p.PROJECT_RUN_STOP) | |
}), e.runtime.on(p.VISUAL_REPORT, function(t) { | |
e.emit(p.VISUAL_REPORT, t) | |
}), e.runtime.on(p.TARGETS_UPDATE, function() { | |
e.emitTargetsUpdate() | |
}), e.runtime.on(p.MONITORS_UPDATE, function(t) { | |
e.emit(p.MONITORS_UPDATE, t) | |
}), e.runtime.on(p.BLOCK_DRAG_UPDATE, function(t) { | |
e.emit(p.BLOCK_DRAG_UPDATE, t) | |
}), e.runtime.on(p.BLOCK_DRAG_END, function(t) { | |
e.emit(p.BLOCK_DRAG_END, t) | |
}), e.runtime.on(p.EXTENSION_ADDED, function(t) { | |
e.emit(p.EXTENSION_ADDED, t) | |
}), e.runtime.on(p.BLOCKSINFO_UPDATE, function(t) { | |
e.emit(p.BLOCKSINFO_UPDATE, t) | |
}), e.extensionManager = new d(e.runtime), e.blockListener = e.blockListener.bind(e), e.flyoutBlockListener = e.flyoutBlockListener.bind(e), e.monitorBlockListener = e.monitorBlockListener.bind(e), e.variableListener = e.variableListener.bind(e), e | |
} | |
return i(t, e), a(t, [{ | |
key: "start", | |
value: function() { | |
this.runtime.start() | |
} | |
}, { | |
key: "greenFlag", | |
value: function() { | |
this.runtime.greenFlag() | |
} | |
}, { | |
key: "setTurboMode", | |
value: function(e) { | |
this.runtime.turboMode = !!e | |
} | |
}, { | |
key: "setCompatibilityMode", | |
value: function(e) { | |
this.runtime.setCompatibilityMode(!!e) | |
} | |
}, { | |
key: "stopAll", | |
value: function() { | |
this.runtime.stopAll() | |
} | |
}, { | |
key: "clear", | |
value: function() { | |
this.runtime.dispose(), this.editingTarget = null, this.emitTargetsUpdate() | |
} | |
}, { | |
key: "getPlaygroundData", | |
value: function() { | |
var e = this, | |
t = this.runtime.threads.filter(function(t) { | |
return t.target === e.editingTarget | |
}), | |
n = JSON.stringify(t, function(e, t) { | |
if ("target" !== e) return t | |
}, 2); | |
this.emit("playgroundData", { | |
blocks: this.editingTarget.blocks, | |
threads: n | |
}) | |
} | |
}, { | |
key: "postIOData", | |
value: function(e, t) { | |
this.runtime.ioDevices[e] && this.runtime.ioDevices[e].postData(t) | |
} | |
}, { | |
key: "setVideoProvider", | |
value: function(e) { | |
this.runtime.ioDevices.video.setProvider(e) | |
} | |
}, { | |
key: "loadProject", | |
value: function(e) { | |
var t = this; | |
return "object" !== (void 0 === e ? "undefined" : A(e)) || e instanceof ArrayBuffer || ArrayBuffer.isView(e) || (e = JSON.stringify(e)), new Promise(function(t, n) { | |
C(e, !1, function(e, o) { | |
if (e) return n(e); | |
t(o) | |
}) | |
}).then(function(e) { | |
return t.deserializeProject(e[0], e[1]) | |
}).catch(function(e) { | |
return e.hasOwnProperty("validationError") ? Promise.reject(JSON.stringify(e)) : Promise.reject(e) | |
}) | |
} | |
}, { | |
key: "downloadProjectId", | |
value: function(e) { | |
var t = this.runtime.storage; | |
if (!t) return void f.error("No storage module present; cannot load project: ", e); | |
var n = this; | |
t.load(t.AssetType.Project, e).then(function(e) { | |
n.loadProject(e.data) | |
}) | |
} | |
}, { | |
key: "saveProjectSb3", | |
value: function() { | |
var e = D(this.runtime), | |
t = k(this.runtime), | |
n = this.toJSON(), | |
o = new c; | |
o.file("project.json", n); | |
for (var l = 0; l < e.length; l++) { | |
var r = e[l]; | |
o.file(r.fileName, r.fileContent) | |
} | |
for (var i = 0; i < t.length; i++) { | |
var A = t[i]; | |
o.file(A.fileName, A.fileContent) | |
} | |
return o.generateAsync({ | |
type: "blob", | |
compression: "DEFLATE", | |
compressionOptions: { | |
level: 6 | |
} | |
}) | |
} | |
}, { | |
key: "toJSON", | |
value: function() { | |
return JSON.stringify(B.serialize(this.runtime)) | |
} | |
}, { | |
key: "fromJSON", | |
value: function(e) { | |
return f.warning("fromJSON is now just a wrapper around loadProject, please use that function instead."), this.loadProject(e) | |
} | |
}, { | |
key: "deserializeProject", | |
value: function(e, t) { | |
var n = this; | |
this.clear(); | |
var o = this.runtime; | |
return function() { | |
var n = e.projectVersion; | |
return 2 === n ? m.deserialize(e, o, !1, t) : 3 === n ? B.deserialize(e, o, t) : Promise.reject("Unable to verify Scratch Project version.") | |
}().then(function(e) { | |
var t = e.targets, | |
o = e.extensions; | |
return n.installTargets(t, o, !0) | |
}) | |
} | |
}, { | |
key: "installTargets", | |
value: function(e, t, n) { | |
var o = this, | |
l = []; | |
return n && (this.clear(), F.forEach(function(e) { | |
o.extensionManager.isExtensionLoaded(e) || l.push(o.extensionManager.loadExtensionURL(e)) | |
})), t.extensionIDs.forEach(function(e) { | |
if (!o.extensionManager.isExtensionLoaded(e)) { | |
var n = t.extensionURLs.get(e) || e; | |
l.push(o.extensionManager.loadExtensionURL(n)) | |
} | |
}), e = e.filter(function(e) { | |
return !!e | |
}), Promise.all(l).then(function() { | |
e.forEach(function(e) { | |
o.runtime.targets.push(e), e.updateAllDrawableProperties(), e.isSprite() && o.renameSprite(e.id, e.getName()) | |
}), n && e.length > 1 ? o.editingTarget = e[1] : o.editingTarget = e[0], o.emitTargetsUpdate(), o.emitWorkspaceUpdate(), o.runtime.setEditingTarget(o.editingTarget) | |
}) | |
} | |
}, { | |
key: "addSprite", | |
value: function(e) { | |
var t = this; | |
return "object" !== (void 0 === e ? "undefined" : A(e)) || e instanceof ArrayBuffer || ArrayBuffer.isView(e) || (e = JSON.stringify(e)), new Promise(function(t, n) { | |
C(e, !0, function(e, o) { | |
if (e) return n(e); | |
t(o) | |
}) | |
}).then(function(e) { | |
var n = e[0].projectVersion; | |
return 2 === n ? t._addSprite2(e[0], e[1]) : 3 === n ? t._addSprite3(e[0], e[1]) : Promise.reject("Sprite Upload Error: Unable to verify sprite version.") | |
}).catch(function(e) { | |
return e.hasOwnProperty("validationError") ? Promise.reject(JSON.stringify(e)) : Promise.reject("Sprite Upload Error: " + e) | |
}) | |
} | |
}, { | |
key: "_addSprite2", | |
value: function(e, t) { | |
var n = this; | |
return m.deserialize(e, this.runtime, !0, t).then(function(e) { | |
var t = e.targets, | |
o = e.extensions; | |
return n.installTargets(t, o, !1) | |
}) | |
} | |
}, { | |
key: "_addSprite3", | |
value: function(e, t) { | |
var n = this; | |
return B.deserialize(e, this.runtime, t, !0).then(function(e) { | |
var t = e.targets, | |
o = e.extensions; | |
return n.installTargets(t, o, !1) | |
}) | |
} | |
}, { | |
key: "addCostume", | |
value: function(e, t) { | |
var n = this; | |
return b(e, t, this.runtime).then(function() { | |
n.editingTarget.addCostume(t), n.editingTarget.setCostume(n.editingTarget.getCostumes().length - 1) | |
}) | |
} | |
}, { | |
key: "duplicateCostume", | |
value: function(e) { | |
var t = this, | |
n = this.editingTarget.getCostumes()[e], | |
o = Object.assign({}, n), | |
l = o.assetId + "." + o.dataFormat; | |
return b(l, o, this.runtime).then(function() { | |
t.editingTarget.addCostume(o, e + 1), t.editingTarget.setCostume(e + 1), t.emitTargetsUpdate() | |
}) | |
} | |
}, { | |
key: "duplicateSound", | |
value: function(e) { | |
var t = this, | |
n = this.editingTarget.getSounds()[e], | |
o = Object.assign({}, n); | |
return M(o, this.runtime).then(function() { | |
t.editingTarget.addSound(o, e + 1), t.emitTargetsUpdate() | |
}) | |
} | |
}, { | |
key: "renameCostume", | |
value: function(e, t) { | |
this.editingTarget.renameCostume(e, t), this.emitTargetsUpdate() | |
} | |
}, { | |
key: "deleteCostume", | |
value: function(e) { | |
this.editingTarget.deleteCostume(e) | |
} | |
}, { | |
key: "addSound", | |
value: function(e) { | |
var t = this; | |
return M(e, this.runtime).then(function() { | |
t.editingTarget.addSound(e), t.emitTargetsUpdate() | |
}) | |
} | |
}, { | |
key: "renameSound", | |
value: function(e, t) { | |
this.editingTarget.renameSound(e, t), this.emitTargetsUpdate() | |
} | |
}, { | |
key: "getSoundBuffer", | |
value: function(e) { | |
var t = this.editingTarget.sprite.sounds[e].soundId; | |
return t && this.runtime && this.runtime.audioEngine ? this.runtime.audioEngine.getSoundBuffer(t) : null | |
} | |
}, { | |
key: "updateSoundBuffer", | |
value: function(e, t, n) { | |
var o = this.editingTarget.sprite.sounds[e], | |
l = o ? o.soundId : null; | |
if (l && this.runtime && this.runtime.audioEngine && this.runtime.audioEngine.updateSoundBuffer(l, t), n) { | |
o.format = ""; | |
var r = this.runtime.storage; | |
o.assetId = r.builtinHelper.cache(r.AssetType.Sound, r.DataFormat.WAV, n), o.dataFormat = r.DataFormat.WAV, o.md5 = o.assetId + "." + o.dataFormat | |
} | |
this.emitTargetsUpdate() | |
} | |
}, { | |
key: "deleteSound", | |
value: function(e) { | |
this.editingTarget.deleteSound(e) | |
} | |
}, { | |
key: "getCostume", | |
value: function(e) { | |
var t = this.editingTarget.getCostumes()[e].assetId; | |
if (!t || !this.runtime || !this.runtime.storage) return null; | |
var n = this.runtime.storage.get(t).dataFormat; | |
return n === this.runtime.storage.DataFormat.SVG ? this.runtime.storage.get(t).decodeText() : n === this.runtime.storage.DataFormat.PNG || n === this.runtime.storage.DataFormat.JPG ? this.runtime.storage.get(t).encodeDataURI() : (f.error("Unhandled format: " + this.runtime.storage.get(t).dataFormat), null) | |
} | |
}, { | |
key: "updateBitmap", | |
value: function(e, t, n, o, l) { | |
var r = this, | |
i = this.editingTarget.getCostumes()[e]; | |
if (i && this.runtime && this.runtime.renderer) { | |
i.rotationCenterX = n, i.rotationCenterY = o; | |
var A = document.createElement("canvas"); | |
A.width = t.width, A.height = t.height; | |
A.getContext("2d").putImageData(t, 0, 0), this.runtime.renderer.updateBitmapSkin(i.skinId, A, l, [n / l, o / l]), A.toBlob(function(e) { | |
var n = new FileReader; | |
n.addEventListener("loadend", function() { | |
var e = r.runtime.storage; | |
i.assetId = e.builtinHelper.cache(e.AssetType.ImageBitmap, e.DataFormat.PNG, g.from(n.result)), i.dataFormat = e.DataFormat.PNG, i.bitmapResolution = l, i.size = [t.width, t.height], i.md5 = i.assetId + "." + i.dataFormat, r.emitTargetsUpdate() | |
}), n.readAsArrayBuffer(e) | |
}) | |
} | |
} | |
}, { | |
key: "updateSvg", | |
value: function(e, t, n, o) { | |
var l = this.editingTarget.getCostumes()[e]; | |
l && this.runtime && this.runtime.renderer && (l.rotationCenterX = n, l.rotationCenterY = o, this.runtime.renderer.updateSVGSkin(l.skinId, t, [n, o]), l.size = this.runtime.renderer.getSkinSize(l.skinId)); | |
var r = this.runtime.storage; | |
l.assetId = r.builtinHelper.cache(r.AssetType.ImageVector, r.DataFormat.SVG, (new s).encode(t)), l.dataFormat = r.DataFormat.SVG, l.md5 = l.assetId + "." + l.dataFormat, l.bitmapResolution = 1, this.emitTargetsUpdate() | |
} | |
}, { | |
key: "addBackdrop", | |
value: function(e, t) { | |
var n = this; | |
return b(e, t, this.runtime).then(function() { | |
var e = n.runtime.getTargetForStage(); | |
e.addCostume(t), e.setCostume(e.getCostumes().length - 1) | |
}) | |
} | |
}, { | |
key: "renameSprite", | |
value: function(e, t) { | |
var n = this.runtime.getTargetById(e); | |
if (!n) throw new Error("No target with the provided id."); | |
if (!n.isSprite()) throw new Error("Cannot rename non-sprite targets."); | |
var o = n.sprite; | |
if (!o) throw new Error("No sprite associated with this target."); | |
if (t && -1 === S.indexOf(t)) { | |
var l = this.runtime.targets.filter(function(e) { | |
return e.isSprite() && e.id !== n.id | |
}).map(function(e) { | |
return e.sprite.name | |
}), | |
r = o.name, | |
i = E.unusedName(t, l); | |
o.name = i; | |
for (var A = this.runtime.targets, a = 0; a < A.length; a++) { | |
A[a].blocks.updateAssetName(r, t, "sprite") | |
} | |
} | |
this.emitTargetsUpdate() | |
} | |
}, { | |
key: "deleteSprite", | |
value: function(e) { | |
var t = this.runtime.getTargetById(e); | |
if (!t) throw new Error("No target with the provided id."); | |
var n = this.runtime.targets.map(function(e) { | |
return e.id | |
}).indexOf(t.id); | |
if (!t.isSprite()) throw new Error("Cannot delete non-sprite targets."); | |
var o = t.sprite; | |
if (!o) throw new Error("No sprite associated with this target."); | |
this.runtime.requestRemoveMonitorByTargetId(e); | |
for (var l = this.editingTarget, r = 0; r < o.clones.length; r++) { | |
var i = o.clones[r]; | |
if (this.runtime.stopForTarget(o.clones[r]), this.runtime.disposeTarget(o.clones[r]), i === l) { | |
var A = Math.min(this.runtime.targets.length - 1, n); | |
this.runtime.targets.length > 0 ? this.setEditingTarget(this.runtime.targets[A].id) : this.editingTarget = null | |
} | |
} | |
this.emitTargetsUpdate() | |
} | |
}, { | |
key: "duplicateSprite", | |
value: function(e) { | |
var t = this, | |
n = this.runtime.getTargetById(e); | |
if (!n) throw new Error("No target with the provided id."); | |
if (!n.isSprite()) throw new Error("Cannot duplicate non-sprite targets."); | |
if (!n.sprite) throw new Error("No sprite associated with this target."); | |
return n.duplicate().then(function(e) { | |
t.runtime.targets.push(e), t.setEditingTarget(e.id) | |
}) | |
} | |
}, { | |
key: "attachAudioEngine", | |
value: function(e) { | |
this.runtime.attachAudioEngine(e) | |
} | |
}, { | |
key: "attachRenderer", | |
value: function(e) { | |
this.runtime.attachRenderer(e) | |
} | |
}, { | |
key: "attachStorage", | |
value: function(e) { | |
this.runtime.attachStorage(e) | |
} | |
}, { | |
key: "setLocale", | |
value: function(e, t) { | |
e !== y.setup().locale && (y.setup({ | |
locale: e, | |
translations: o({}, e, t) | |
}), this.extensionManager.refreshBlocks()) | |
} | |
}, { | |
key: "blockListener", | |
value: function(e) { | |
this.editingTarget && this.editingTarget.blocks.blocklyListen(e, this.runtime) | |
} | |
}, { | |
key: "flyoutBlockListener", | |
value: function(e) { | |
this.runtime.flyoutBlocks.blocklyListen(e, this.runtime) | |
} | |
}, { | |
key: "monitorBlockListener", | |
value: function(e) { | |
-1 !== ["create", "change"].indexOf(e.type) && this.runtime.monitorBlocks.blocklyListen(e, this.runtime) | |
} | |
}, { | |
key: "variableListener", | |
value: function(e) { | |
-1 !== ["var_create", "var_rename", "var_delete"].indexOf(e.type) && this.runtime.getTargetForStage().blocks.blocklyListen(e, this.runtime) | |
} | |
}, { | |
key: "setEditingTarget", | |
value: function(e) { | |
if (!this.editingTarget || e !== this.editingTarget.id) { | |
var t = this.runtime.getTargetById(e); | |
t && (this.editingTarget = t, this.emitTargetsUpdate(), this.emitWorkspaceUpdate(), this.runtime.setEditingTarget(t)) | |
} | |
} | |
}, { | |
key: "shareBlocksToTarget", | |
value: function(e, t) { | |
for (var n = this.runtime.getTargetById(t), o = 0; o < e.length; o++) n.blocks.createBlock(e[o]); | |
n.blocks.updateTargetSpecificBlocks(n.isStage) | |
} | |
}, { | |
key: "refreshWorkspace", | |
value: function() { | |
this.editingTarget && (this.emitWorkspaceUpdate(), this.runtime.setEditingTarget(this.editingTarget)) | |
} | |
}, { | |
key: "emitTargetsUpdate", | |
value: function() { | |
this.emit("targetsUpdate", { | |
targetList: this.runtime.targets.filter(function(e) { | |
return !e.hasOwnProperty("isOriginal") || e.isOriginal | |
}).map(function(e) { | |
return e.toJSON() | |
}), | |
editingTarget: this.editingTarget ? this.editingTarget.id : null | |
}) | |
} | |
}, { | |
key: "emitWorkspaceUpdate", | |
value: function() { | |
var e = this.runtime.getTargetForStage().variables, | |
t = []; | |
for (var n in e) e[n].type === w.BROADCAST_MESSAGE_TYPE && t.push(n); | |
for (var o = 0; o < this.runtime.targets.length; o++) { | |
var l = this.runtime.targets[o], | |
r = l.blocks._blocks; | |
for (var i in r) | |
if (r[i].fields.BROADCAST_OPTION) { | |
var A = r[i].fields.BROADCAST_OPTION.id, | |
a = t.indexOf(A); - 1 !== a && (t = t.slice(0, a).concat(t.slice(a + 1))) | |
} | |
} | |
for (var s = 0; s < t.length; s++) { | |
var u = t[s]; | |
delete this.runtime.getTargetForStage().variables[u] | |
} | |
var c = Object.assign({}, this.runtime.getTargetForStage().variables, this.editingTarget.variables), | |
g = Object.keys(c).map(function(e) { | |
return c[e] | |
}), | |
h = '<xml xmlns="http://www.w3.org/1999/xhtml">\n <variables>\n ' + g.map(function(e) { | |
return e.toXML() | |
}).join() + "\n </variables>\n " + this.editingTarget.blocks.toXML() + "\n </xml>"; | |
this.emit("workspaceUpdate", { | |
xml: h | |
}) | |
} | |
}, { | |
key: "getTargetIdForDrawableId", | |
value: function(e) { | |
var t = this.runtime.getTargetByDrawableId(e); | |
return t && t.hasOwnProperty("id") && t.hasOwnProperty("isStage") && !t.isStage ? t.id : null | |
} | |
}, { | |
key: "startDrag", | |
value: function(e) { | |
var t = this.runtime.getTargetById(e); | |
t && (this._dragTarget = t, t.startDrag()) | |
} | |
}, { | |
key: "stopDrag", | |
value: function(e) { | |
var t = this.runtime.getTargetById(e); | |
t && (this._dragTarget = null, t.stopDrag(), this.setEditingTarget(t.sprite && t.sprite.clones[0] ? t.sprite.clones[0].id : t.id)) | |
} | |
}, { | |
key: "postSpriteInfo", | |
value: function(e) { | |
this._dragTarget ? this._dragTarget.postSpriteInfo(e) : this.editingTarget.postSpriteInfo(e) | |
} | |
}]), t | |
}(u); | |
e.exports = Y | |
}, function(e, t, n) { | |
var o = n(115); | |
e.exports = { | |
TextEncoder: o.TextEncoder, | |
TextDecoder: o.TextDecoder | |
} | |
}, function(e, t, n) { | |
! function(t) { | |
"use strict"; | |
function o(e, t, n) { | |
return t <= e && e <= n | |
} | |
function l(e, t) { | |
return -1 !== e.indexOf(t) | |
} | |
function r(e) { | |
if (void 0 === e) return {}; | |
if (e === Object(e)) return e; | |
throw TypeError("Could not convert argument to dictionary") | |
} | |
function i(e) { | |
for (var t = String(e), n = t.length, o = 0, l = []; o < n;) { | |
var r = t.charCodeAt(o); | |
if (r < 55296 || r > 57343) l.push(r); | |
else if (56320 <= r && r <= 57343) l.push(65533); | |
else if (55296 <= r && r <= 56319) | |
if (o === n - 1) l.push(65533); | |
else { | |
var i = t.charCodeAt(o + 1); | |
if (56320 <= i && i <= 57343) { | |
var A = 1023 & r, | |
a = 1023 & i; | |
l.push(65536 + (A << 10) + a), o += 1 | |
} else l.push(65533) | |
} | |
o += 1 | |
} | |
return l | |
} | |
function A(e) { | |
for (var t = "", n = 0; n < e.length; ++n) { | |
var o = e[n]; | |
o <= 65535 ? t += String.fromCharCode(o) : (o -= 65536, t += String.fromCharCode(55296 + (o >> 10), 56320 + (1023 & o))) | |
} | |
return t | |
} | |
function a(e) { | |
return 0 <= e && e <= 127 | |
} | |
function s(e) { | |
this.tokens = [].slice.call(e), this.tokens.reverse() | |
} | |
function u(e, t) { | |
if (e) throw TypeError("Decoder error"); | |
return t || 65533 | |
} | |
function c(e) { | |
throw TypeError("The code point " + e + " could not be encoded.") | |
} | |
function g() {} | |
function h() {} | |
function d(e) { | |
return e = String(e).trim().toLowerCase(), Object.prototype.hasOwnProperty.call(Z, e) ? Z[e] : null | |
} | |
function f(e, t) { | |
return t ? t[e] || null : null | |
} | |
function p(e, t) { | |
var n = t.indexOf(e); | |
return -1 === n ? null : n | |
} | |
function m(e) { | |
if (!("encoding-indexes" in t)) throw Error("Indexes missing. Did you forget to include encoding-indexes.js first?"); | |
return t["encoding-indexes"][e] | |
} | |
function B(e) { | |
if (e > 39419 && e < 189e3 || e > 1237575) return null; | |
if (7457 === e) return 59335; | |
var t, n = 0, | |
o = 0, | |
l = m("gb18030-ranges"); | |
for (t = 0; t < l.length; ++t) { | |
var r = l[t]; | |
if (!(r[0] <= e)) break; | |
n = r[0], o = r[1] | |
} | |
return o + e - n | |
} | |
function E(e) { | |
if (59335 === e) return 7457; | |
var t, n = 0, | |
o = 0, | |
l = m("gb18030-ranges"); | |
for (t = 0; t < l.length; ++t) { | |
var r = l[t]; | |
if (!(r[1] <= e)) break; | |
n = r[1], o = r[0] | |
} | |
return o + e - n | |
} | |
function y(e) { | |
return _ = _ || m("jis0208").map(function(e, t) { | |
return o(t, 8272, 8835) ? null : e | |
}), _.indexOf(e) | |
} | |
function C(e) { | |
X = X || m("big5").map(function(e, t) { | |
return t < 5024 ? null : e | |
}); | |
var t = X; | |
return 9552 === e || 9566 === e || 9569 === e || 9578 === e || 21313 === e || 21317 === e ? t.lastIndexOf(e) : p(e, t) | |
} | |
function w(e, t) { | |
if (!(this instanceof w)) throw TypeError("Called as a function. Did you forget 'new'?"); | |
e = void 0 !== e ? String(e) : te, t = r(t), this._encoding = null, this._decoder = null, this._ignoreBOM = !1, this._BOMseen = !1, this._error_mode = "replacement", this._do_not_flush = !1; | |
var n = d(e); | |
if (null === n || "replacement" === n.name) throw RangeError("Unknown encoding: " + e); | |
if (!ee[n.name]) throw Error("Decoder not present. Did you forget to include encoding-indexes.js first?"); | |
var o = this; | |
return o._encoding = n, Boolean(t.fatal) && (o._error_mode = "fatal"), Boolean(t.ignoreBOM) && (o._ignoreBOM = !0), Object.defineProperty || (this.encoding = o._encoding.name.toLowerCase(), this.fatal = "fatal" === o._error_mode, this.ignoreBOM = o._ignoreBOM), o | |
} | |
function I(e, n) { | |
if (!(this instanceof I)) throw TypeError("Called as a function. Did you forget 'new'?"); | |
n = r(n), this._encoding = null, this._encoder = null, this._do_not_flush = !1, this._fatal = Boolean(n.fatal) ? "fatal" : "replacement"; | |
var o = this; | |
if (Boolean(n.NONSTANDARD_allowLegacyEncoding)) { | |
e = void 0 !== e ? String(e) : te; | |
var l = d(e); | |
if (null === l || "replacement" === l.name) throw RangeError("Unknown encoding: " + e); | |
if (!$[l.name]) throw Error("Encoder not present. Did you forget to include encoding-indexes.js first?"); | |
o._encoding = l | |
} else o._encoding = d("utf-8"), void 0 !== e && "console" in t && console.warn("TextEncoder constructor called with encoding label, which is ignored."); | |
return Object.defineProperty || (this.encoding = o._encoding.name.toLowerCase()), o | |
} | |
function b(e) { | |
var t = e.fatal, | |
n = 0, | |
l = 0, | |
r = 0, | |
i = 128, | |
A = 191; | |
this.handler = function(e, a) { | |
if (a === W && 0 !== r) return r = 0, u(t); | |
if (a === W) return K; | |
if (0 === r) { | |
if (o(a, 0, 127)) return a; | |
if (o(a, 194, 223)) r = 1, n = 31 & a; | |
else if (o(a, 224, 239)) 224 === a && (i = 160), 237 === a && (A = 159), r = 2, n = 15 & a; | |
else { | |
if (!o(a, 240, 244)) return u(t); | |
240 === a && (i = 144), 244 === a && (A = 143), r = 3, n = 7 & a | |
} | |
return null | |
} | |
if (!o(a, i, A)) return n = r = l = 0, i = 128, A = 191, e.prepend(a), u(t); | |
if (i = 128, A = 191, n = n << 6 | 63 & a, (l += 1) !== r) return null; | |
var s = n; | |
return n = r = l = 0, s | |
} | |
} | |
function v(e) { | |
e.fatal; | |
this.handler = function(e, t) { | |
if (t === W) return K; | |
if (z(t)) return t; | |
var n, l; | |
o(t, 128, 2047) ? (n = 1, l = 192) : o(t, 2048, 65535) ? (n = 2, l = 224) : o(t, 65536, 1114111) && (n = 3, l = 240); | |
for (var r = [(t >> 6 * n) + l]; n > 0;) { | |
var i = t >> 6 * (n - 1); | |
r.push(128 | 63 & i), n -= 1 | |
} | |
return r | |
} | |
} | |
function M(e, t) { | |
var n = t.fatal; | |
this.handler = function(t, o) { | |
if (o === W) return K; | |
if (a(o)) return o; | |
var l = e[o - 128]; | |
return null === l ? u(n) : l | |
} | |
} | |
function Q(e, t) { | |
t.fatal; | |
this.handler = function(t, n) { | |
if (n === W) return K; | |
if (z(n)) return n; | |
var o = p(n, e); | |
return null === o && c(n), o + 128 | |
} | |
} | |
function D(e) { | |
var t = e.fatal, | |
n = 0, | |
l = 0, | |
r = 0; | |
this.handler = function(e, i) { | |
if (i === W && 0 === n && 0 === l && 0 === r) return K; | |
i !== W || 0 === n && 0 === l && 0 === r || (n = 0, l = 0, r = 0, u(t)); | |
var A; | |
if (0 !== r) { | |
A = null, o(i, 48, 57) && (A = B(10 * (126 * (10 * (n - 129) + l - 48) + r - 129) + i - 48)); | |
var s = [l, r, i]; | |
return n = 0, l = 0, r = 0, null === A ? (e.prepend(s), u(t)) : A | |
} | |
if (0 !== l) return o(i, 129, 254) ? (r = i, null) : (e.prepend([l, i]), n = 0, l = 0, u(t)); | |
if (0 !== n) { | |
if (o(i, 48, 57)) return l = i, null; | |
var c = n, | |
g = null; | |
n = 0; | |
var h = i < 127 ? 64 : 65; | |
return (o(i, 64, 126) || o(i, 128, 254)) && (g = 190 * (c - 129) + (i - h)), A = null === g ? null : f(g, m("gb18030")), null === A && a(i) && e.prepend(i), null === A ? u(t) : A | |
} | |
return a(i) ? i : 128 === i ? 8364 : o(i, 129, 254) ? (n = i, null) : u(t) | |
} | |
} | |
function k(e, t) { | |
e.fatal; | |
this.handler = function(e, n) { | |
if (n === W) return K; | |
if (z(n)) return n; | |
if (58853 === n) return c(n); | |
if (t && 8364 === n) return 128; | |
var o = p(n, m("gb18030")); | |
if (null !== o) { | |
var l = V(o / 190) + 129, | |
r = o % 190; | |
return [l, r + (r < 63 ? 64 : 65)] | |
} | |
if (t) return c(n); | |
o = E(n); | |
var i = V(o / 10 / 126 / 10); | |
o -= 10 * i * 126 * 10; | |
var A = V(o / 10 / 126); | |
o -= 10 * A * 126; | |
var a = V(o / 10); | |
return [i + 129, A + 48, a + 129, o - 10 * a + 48] | |
} | |
} | |
function S(e) { | |
var t = e.fatal, | |
n = 0; | |
this.handler = function(e, l) { | |
if (l === W && 0 !== n) return n = 0, u(t); | |
if (l === W && 0 === n) return K; | |
if (0 !== n) { | |
var r = n, | |
i = null; | |
n = 0; | |
var A = l < 127 ? 64 : 98; | |
switch ((o(l, 64, 126) || o(l, 161, 254)) && (i = 157 * (r - 129) + (l - A)), i) { | |
case 1133: | |
return [202, 772]; | |
case 1135: | |
return [202, 780]; | |
case 1164: | |
return [234, 772]; | |
case 1166: | |
return [234, 780] | |
} | |
var s = null === i ? null : f(i, m("big5")); | |
return null === s && a(l) && e.prepend(l), null === s ? u(t) : s | |
} | |
return a(l) ? l : o(l, 129, 254) ? (n = l, null) : u(t) | |
} | |
} | |
function F(e) { | |
e.fatal; | |
this.handler = function(e, t) { | |
if (t === W) return K; | |
if (z(t)) return t; | |
var n = C(t); | |
if (null === n) return c(t); | |
var o = V(n / 157) + 129; | |
if (o < 161) return c(t); | |
var l = n % 157; | |
return [o, l + (l < 63 ? 64 : 98)] | |
} | |
} | |
function Y(e) { | |
var t = e.fatal, | |
n = !1, | |
l = 0; | |
this.handler = function(e, r) { | |
if (r === W && 0 !== l) return l = 0, u(t); | |
if (r === W && 0 === l) return K; | |
if (142 === l && o(r, 161, 223)) return l = 0, 65216 + r; | |
if (143 === l && o(r, 161, 254)) return n = !0, l = r, null; | |
if (0 !== l) { | |
var i = l; | |
l = 0; | |
var A = null; | |
return o(i, 161, 254) && o(r, 161, 254) && (A = f(94 * (i - 161) + (r - 161), m(n ? "jis0212" : "jis0208"))), n = !1, o(r, 161, 254) || e.prepend(r), null === A ? u(t) : A | |
} | |
return a(r) ? r : 142 === r || 143 === r || o(r, 161, 254) ? (l = r, null) : u(t) | |
} | |
} | |
function x(e) { | |
e.fatal; | |
this.handler = function(e, t) { | |
if (t === W) return K; | |
if (z(t)) return t; | |
if (165 === t) return 92; | |
if (8254 === t) return 126; | |
if (o(t, 65377, 65439)) return [142, t - 65377 + 161]; | |
8722 === t && (t = 65293); | |
var n = p(t, m("jis0208")); | |
return null === n ? c(t) : [V(n / 94) + 161, n % 94 + 161] | |
} | |
} | |
function R(e) { | |
var t = e.fatal, | |
n = { | |
ASCII: 0, | |
Roman: 1, | |
Katakana: 2, | |
LeadByte: 3, | |
TrailByte: 4, | |
EscapeStart: 5, | |
Escape: 6 | |
}, | |
l = n.ASCII, | |
r = n.ASCII, | |
i = 0, | |
A = !1; | |
this.handler = function(e, a) { | |
switch (l) { | |
default: | |
case n.ASCII: | |
return 27 === a ? (l = n.EscapeStart, null) : o(a, 0, 127) && 14 !== a && 15 !== a && 27 !== a ? (A = !1, a) : a === W ? K : (A = !1, u(t)); | |
case n.Roman: | |
return 27 === a ? (l = n.EscapeStart, null) : 92 === a ? (A = !1, 165) : 126 === a ? (A = !1, 8254) : o(a, 0, 127) && 14 !== a && 15 !== a && 27 !== a && 92 !== a && 126 !== a ? (A = !1, a) : a === W ? K : (A = !1, u(t)); | |
case n.Katakana: | |
return 27 === a ? (l = n.EscapeStart, null) : o(a, 33, 95) ? (A = !1, 65344 + a) : a === W ? K : (A = !1, u(t)); | |
case n.LeadByte: | |
return 27 === a ? (l = n.EscapeStart, null) : o(a, 33, 126) ? (A = !1, i = a, l = n.TrailByte, null) : a === W ? K : (A = !1, u(t)); | |
case n.TrailByte: | |
if (27 === a) return l = n.EscapeStart, u(t);if (o(a, 33, 126)) { | |
l = n.LeadByte; | |
var s = 94 * (i - 33) + a - 33, | |
c = f(s, m("jis0208")); | |
return null === c ? u(t) : c | |
} | |
return a === W ? (l = n.LeadByte, e.prepend(a), u(t)) : (l = n.LeadByte, u(t)); | |
case n.EscapeStart: | |
return 36 === a || 40 === a ? (i = a, l = n.Escape, null) : (e.prepend(a), A = !1, l = r, u(t)); | |
case n.Escape: | |
var g = i;i = 0; | |
var h = null; | |
if (40 === g && 66 === a && (h = n.ASCII), 40 === g && 74 === a && (h = n.Roman), 40 === g && 73 === a && (h = n.Katakana), 36 !== g || 64 !== a && 66 !== a || (h = n.LeadByte), null !== h) { | |
l = l = h; | |
var d = A; | |
return A = !0, d ? u(t) : null | |
} | |
return e.prepend([g, a]), | |
A = !1, | |
l = r, | |
u(t) | |
} | |
} | |
} | |
function U(e) { | |
var t = (e.fatal, { | |
ASCII: 0, | |
Roman: 1, | |
jis0208: 2 | |
}), | |
n = t.ASCII; | |
this.handler = function(e, o) { | |
if (o === W && n !== t.ASCII) return e.prepend(o), n = t.ASCII, [27, 40, 66]; | |
if (o === W && n === t.ASCII) return K; | |
if (!(n !== t.ASCII && n !== t.Roman || 14 !== o && 15 !== o && 27 !== o)) return c(65533); | |
if (n === t.ASCII && z(o)) return o; | |
if (n === t.Roman && (z(o) && 92 !== o && 126 !== o || 165 == o || 8254 == o)) { | |
if (z(o)) return o; | |
if (165 === o) return 92; | |
if (8254 === o) return 126 | |
} | |
if (z(o) && n !== t.ASCII) return e.prepend(o), n = t.ASCII, [27, 40, 66]; | |
if ((165 === o || 8254 === o) && n !== t.Roman) return e.prepend(o), n = t.Roman, [27, 40, 74]; | |
8722 === o && (o = 65293); | |
var l = p(o, m("jis0208")); | |
return null === l ? c(o) : n !== t.jis0208 ? (e.prepend(o), n = t.jis0208, [27, 36, 66]) : [V(l / 94) + 33, l % 94 + 33] | |
} | |
} | |
function T(e) { | |
var t = e.fatal, | |
n = 0; | |
this.handler = function(e, l) { | |
if (l === W && 0 !== n) return n = 0, u(t); | |
if (l === W && 0 === n) return K; | |
if (0 !== n) { | |
var r = n, | |
i = null; | |
n = 0; | |
var A = l < 127 ? 64 : 65, | |
s = r < 160 ? 129 : 193; | |
if ((o(l, 64, 126) || o(l, 128, 252)) && (i = 188 * (r - s) + l - A), o(i, 8836, 10715)) return 48508 + i; | |
var c = null === i ? null : f(i, m("jis0208")); | |
return null === c && a(l) && e.prepend(l), null === c ? u(t) : c | |
} | |
return a(l) || 128 === l ? l : o(l, 161, 223) ? 65216 + l : o(l, 129, 159) || o(l, 224, 252) ? (n = l, null) : u(t) | |
} | |
} | |
function N(e) { | |
e.fatal; | |
this.handler = function(e, t) { | |
if (t === W) return K; | |
if (z(t) || 128 === t) return t; | |
if (165 === t) return 92; | |
if (8254 === t) return 126; | |
if (o(t, 65377, 65439)) return t - 65377 + 161; | |
8722 === t && (t = 65293); | |
var n = y(t); | |
if (null === n) return c(t); | |
var l = V(n / 188), | |
r = l < 31 ? 129 : 193, | |
i = n % 188; | |
return [l + r, i + (i < 63 ? 64 : 65)] | |
} | |
} | |
function G(e) { | |
var t = e.fatal, | |
n = 0; | |
this.handler = function(e, l) { | |
if (l === W && 0 !== n) return n = 0, u(t); | |
if (l === W && 0 === n) return K; | |
if (0 !== n) { | |
var r = n, | |
i = null; | |
n = 0, o(l, 65, 254) && (i = 190 * (r - 129) + (l - 65)); | |
var A = null === i ? null : f(i, m("euc-kr")); | |
return null === i && a(l) && e.prepend(l), null === A ? u(t) : A | |
} | |
return a(l) ? l : o(l, 129, 254) ? (n = l, null) : u(t) | |
} | |
} | |
function L(e) { | |
e.fatal; | |
this.handler = function(e, t) { | |
if (t === W) return K; | |
if (z(t)) return t; | |
var n = p(t, m("euc-kr")); | |
return null === n ? c(t) : [V(n / 190) + 129, n % 190 + 65] | |
} | |
} | |
function O(e, t) { | |
var n = e >> 8, | |
o = 255 & e; | |
return t ? [n, o] : [o, n] | |
} | |
function P(e, t) { | |
var n = t.fatal, | |
l = null, | |
r = null; | |
this.handler = function(t, i) { | |
if (i === W && (null !== l || null !== r)) return u(n); | |
if (i === W && null === l && null === r) return K; | |
if (null === l) return l = i, null; | |
var A; | |
if (A = e ? (l << 8) + i : (i << 8) + l, l = null, null !== r) { | |
var a = r; | |
return r = null, o(A, 56320, 57343) ? 65536 + 1024 * (a - 55296) + (A - 56320) : (t.prepend(O(A, e)), u(n)) | |
} | |
return o(A, 55296, 56319) ? (r = A, null) : o(A, 56320, 57343) ? u(n) : A | |
} | |
} | |
function H(e, t) { | |
t.fatal; | |
this.handler = function(t, n) { | |
if (n === W) return K; | |
if (o(n, 0, 65535)) return O(n, e); | |
var l = O(55296 + (n - 65536 >> 10), e), | |
r = O(56320 + (n - 65536 & 1023), e); | |
return l.concat(r) | |
} | |
} | |
function j(e) { | |
e.fatal; | |
this.handler = function(e, t) { | |
return t === W ? K : a(t) ? t : 63360 + t - 128 | |
} | |
} | |
function J(e) { | |
e.fatal; | |
this.handler = function(e, t) { | |
return t === W ? K : z(t) ? t : o(t, 63360, 63487) ? t - 63360 + 128 : c(t) | |
} | |
} | |
void 0 !== e && e.exports && !t["encoding-indexes"] && (t["encoding-indexes"] = n(116)["encoding-indexes"]); | |
var V = Math.floor, | |
z = a, | |
W = -1; | |
s.prototype = { | |
endOfStream: function() { | |
return !this.tokens.length | |
}, | |
read: function() { | |
return this.tokens.length ? this.tokens.pop() : W | |
}, | |
prepend: function(e) { | |
if (Array.isArray(e)) | |
for (var t = e; t.length;) this.tokens.push(t.pop()); | |
else this.tokens.push(e) | |
}, | |
push: function(e) { | |
if (Array.isArray(e)) | |
for (var t = e; t.length;) this.tokens.unshift(t.shift()); | |
else this.tokens.unshift(e) | |
} | |
}; | |
var K = -1; | |
g.prototype = { | |
handler: function(e, t) {} | |
}, h.prototype = { | |
handler: function(e, t) {} | |
}; | |
var q = [{ | |
encodings: [{ | |
labels: ["unicode-1-1-utf-8", "utf-8", "utf8"], | |
name: "UTF-8" | |
}], | |
heading: "The Encoding" | |
}, { | |
encodings: [{ | |
labels: ["866", "cp866", "csibm866", "ibm866"], | |
name: "IBM866" | |
}, { | |
labels: ["csisolatin2", "iso-8859-2", "iso-ir-101", "iso8859-2", "iso88592", "iso_8859-2", "iso_8859-2:1987", "l2", "latin2"], | |
name: "ISO-8859-2" | |
}, { | |
labels: ["csisolatin3", "iso-8859-3", "iso-ir-109", "iso8859-3", "iso88593", "iso_8859-3", "iso_8859-3:1988", "l3", "latin3"], | |
name: "ISO-8859-3" | |
}, { | |
labels: ["csisolatin4", "iso-8859-4", "iso-ir-110", "iso8859-4", "iso88594", "iso_8859-4", "iso_8859-4:1988", "l4", "latin4"], | |
name: "ISO-8859-4" | |
}, { | |
labels: ["csisolatincyrillic", "cyrillic", "iso-8859-5", "iso-ir-144", "iso8859-5", "iso88595", "iso_8859-5", "iso_8859-5:1988"], | |
name: "ISO-8859-5" | |
}, { | |
labels: ["arabic", "asmo-708", "csiso88596e", "csiso88596i", "csisolatinarabic", "ecma-114", "iso-8859-6", "iso-8859-6-e", "iso-8859-6-i", "iso-ir-127", "iso8859-6", "iso88596", "iso_8859-6", "iso_8859-6:1987"], | |
name: "ISO-8859-6" | |
}, { | |
labels: ["csisolatingreek", "ecma-118", "elot_928", "greek", "greek8", "iso-8859-7", "iso-ir-126", "iso8859-7", "iso88597", "iso_8859-7", "iso_8859-7:1987", "sun_eu_greek"], | |
name: "ISO-8859-7" | |
}, { | |
labels: ["csiso88598e", "csisolatinhebrew", "hebrew", "iso-8859-8", "iso-8859-8-e", "iso-ir-138", "iso8859-8", "iso88598", "iso_8859-8", "iso_8859-8:1988", "visual"], | |
name: "ISO-8859-8" | |
}, { | |
labels: ["csiso88598i", "iso-8859-8-i", "logical"], | |
name: "ISO-8859-8-I" | |
}, { | |
labels: ["csisolatin6", "iso-8859-10", "iso-ir-157", "iso8859-10", "iso885910", "l6", "latin6"], | |
name: "ISO-8859-10" | |
}, { | |
labels: ["iso-8859-13", "iso8859-13", "iso885913"], | |
name: "ISO-8859-13" | |
}, { | |
labels: ["iso-8859-14", "iso8859-14", "iso885914"], | |
name: "ISO-8859-14" | |
}, { | |
labels: ["csisolatin9", "iso-8859-15", "iso8859-15", "iso885915", "iso_8859-15", "l9"], | |
name: "ISO-8859-15" | |
}, { | |
labels: ["iso-8859-16"], | |
name: "ISO-8859-16" | |
}, { | |
labels: ["cskoi8r", "koi", "koi8", "koi8-r", "koi8_r"], | |
name: "KOI8-R" | |
}, { | |
labels: ["koi8-ru", "koi8-u"], | |
name: "KOI8-U" | |
}, { | |
labels: ["csmacintosh", "mac", "macintosh", "x-mac-roman"], | |
name: "macintosh" | |
}, { | |
labels: ["dos-874", "iso-8859-11", "iso8859-11", "iso885911", "tis-620", "windows-874"], | |
name: "windows-874" | |
}, { | |
labels: ["cp1250", "windows-1250", "x-cp1250"], | |
name: "windows-1250" | |
}, { | |
labels: ["cp1251", "windows-1251", "x-cp1251"], | |
name: "windows-1251" | |
}, { | |
labels: ["ansi_x3.4-1968", "ascii", "cp1252", "cp819", "csisolatin1", "ibm819", "iso-8859-1", "iso-ir-100", "iso8859-1", "iso88591", "iso_8859-1", "iso_8859-1:1987", "l1", "latin1", "us-ascii", "windows-1252", "x-cp1252"], | |
name: "windows-1252" | |
}, { | |
labels: ["cp1253", "windows-1253", "x-cp1253"], | |
name: "windows-1253" | |
}, { | |
labels: ["cp1254", "csisolatin5", "iso-8859-9", "iso-ir-148", "iso8859-9", "iso88599", "iso_8859-9", "iso_8859-9:1989", "l5", "latin5", "windows-1254", "x-cp1254"], | |
name: "windows-1254" | |
}, { | |
labels: ["cp1255", "windows-1255", "x-cp1255"], | |
name: "windows-1255" | |
}, { | |
labels: ["cp1256", "windows-1256", "x-cp1256"], | |
name: "windows-125 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment