Skip to content

Instantly share code, notes, and snippets.

@louanfontenele
Created June 3, 2018 06:33
Show Gist options
  • Save louanfontenele/4b0a945194acc353a37ef3b56d79995e to your computer and use it in GitHub Desktop.
Save louanfontenele/4b0a945194acc353a37ef3b56d79995e to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
! function(e) {
var t = {};
function n(r) {
if (t[r]) return t[r].exports;
var a = t[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(a.exports, a, a.exports, n), a.l = !0, a.exports
}
n.m = e, n.c = t, n.d = function(e, t, r) {
n.o(e, t) || Object.defineProperty(e, t, {
configurable: !1,
enumerable: !0,
get: r
})
}, n.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
} : function() {
return e
};
return n.d(t, "a", t), t
}, n.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, n.p = "/", n(n.s = 52)
}([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";
e.exports = n(60)
}, function(e, t, n) {
"use strict";
var r = n(116),
a = n(119),
i = [].slice,
o = ["keyword", "gray", "hex"],
s = {};
Object.keys(a).forEach(function(e) {
s[i.call(a[e].labels).sort().join("")] = e
});
var l = {};
function c(e, t) {
if (!(this instanceof c)) return new c(e, t);
if (t && t in o && (t = null), t && !(t in a)) throw new Error("Unknown model: " + t);
var n, u;
if (e)
if (e instanceof c) this.model = e.model, this.color = e.color.slice(), this.valpha = e.valpha;
else if ("string" == typeof e) {
var d = r.get(e);
if (null === d) throw new Error("Unable to parse color from string: " + e);
this.model = d.model, u = a[this.model].channels, this.color = d.value.slice(0, u), this.valpha = "number" == typeof d.value[u] ? d.value[u] : 1
} else if (e.length) {
this.model = t || "rgb", u = a[this.model].channels;
var m = i.call(e, 0, u);
this.color = p(m, u), this.valpha = "number" == typeof e[u] ? e[u] : 1
} else if ("number" == typeof e) e &= 16777215, this.model = "rgb", this.color = [e >> 16 & 255, e >> 8 & 255, 255 & e], this.valpha = 1;
else {
this.valpha = 1;
var g = Object.keys(e);
"alpha" in e && (g.splice(g.indexOf("alpha"), 1), this.valpha = "number" == typeof e.alpha ? e.alpha : 0);
var f = g.sort().join("");
if (!(f in s)) throw new Error("Unable to parse color from object: " + JSON.stringify(e));
this.model = s[f];
var h = a[this.model].labels,
b = [];
for (n = 0; n < h.length; n++) b.push(e[h[n]]);
this.color = p(b)
} else this.model = "rgb", this.color = [0, 0, 0], this.valpha = 1;
if (l[this.model])
for (u = a[this.model].channels, n = 0; n < u; n++) {
var _ = l[this.model][n];
_ && (this.color[n] = _(this.color[n]))
}
this.valpha = Math.max(0, Math.min(1, this.valpha)), Object.freeze && Object.freeze(this)
}
function u(e, t, n) {
return (e = Array.isArray(e) ? e : [e]).forEach(function(e) {
(l[e] || (l[e] = []))[t] = n
}), e = e[0],
function(r) {
var a;
return arguments.length ? (n && (r = n(r)), (a = this[e]()).color[t] = r, a) : (a = this[e]().color[t], n && (a = n(a)), a)
}
}
function d(e) {
return function(t) {
return Math.max(0, Math.min(e, t))
}
}
function p(e, t) {
for (var n = 0; n < t; n++) "number" != typeof e[n] && (e[n] = 0);
return e
}
c.prototype = {
toString: function() {
return this.string()
},
toJSON: function() {
return this[this.model]()
},
string: function(e) {
var t = this.model in r.to ? this : this.rgb(),
n = 1 === (t = t.round("number" == typeof e ? e : 1)).valpha ? t.color : t.color.concat(this.valpha);
return r.to[t.model](n)
},
percentString: function(e) {
var t = this.rgb().round("number" == typeof e ? e : 1),
n = 1 === t.valpha ? t.color : t.color.concat(this.valpha);
return r.to.rgb.percent(n)
},
array: function() {
return 1 === this.valpha ? this.color.slice() : this.color.concat(this.valpha)
},
object: function() {
for (var e = {}, t = a[this.model].channels, n = a[this.model].labels, r = 0; r < t; r++) e[n[r]] = this.color[r];
return 1 !== this.valpha && (e.alpha = this.valpha), e
},
unitArray: function() {
var e = this.rgb().color;
return e[0] /= 255, e[1] /= 255, e[2] /= 255, 1 !== this.valpha && e.push(this.valpha), e
},
unitObject: function() {
var e = this.rgb().object();
return e.r /= 255, e.g /= 255, e.b /= 255, 1 !== this.valpha && (e.alpha = this.valpha), e
},
round: function(e) {
return e = Math.max(e || 0, 0), new c(this.color.map((t = e, function(e) {
return n = t, Number(e.toFixed(n));
var n
})).concat(this.valpha), this.model);
var t
},
alpha: function(e) {
return arguments.length ? new c(this.color.concat(Math.max(0, Math.min(1, e))), this.model) : this.valpha
},
red: u("rgb", 0, d(255)),
green: u("rgb", 1, d(255)),
blue: u("rgb", 2, d(255)),
hue: u(["hsl", "hsv", "hsl", "hwb", "hcg"], 0, function(e) {
return (e % 360 + 360) % 360
}),
saturationl: u("hsl", 1, d(100)),
lightness: u("hsl", 2, d(100)),
saturationv: u("hsv", 1, d(100)),
value: u("hsv", 2, d(100)),
chroma: u("hcg", 1, d(100)),
gray: u("hcg", 2, d(100)),
white: u("hwb", 1, d(100)),
wblack: u("hwb", 2, d(100)),
cyan: u("cmyk", 0, d(100)),
magenta: u("cmyk", 1, d(100)),
yellow: u("cmyk", 2, d(100)),
black: u("cmyk", 3, d(100)),
x: u("xyz", 0, d(100)),
y: u("xyz", 1, d(100)),
z: u("xyz", 2, d(100)),
l: u("lab", 0, d(100)),
a: u("lab", 1),
b: u("lab", 2),
keyword: function(e) {
return arguments.length ? new c(e) : a[this.model].keyword(this.color)
},
hex: function(e) {
return arguments.length ? new c(e) : r.to.hex(this.rgb().round().color)
},
rgbNumber: function() {
var e = this.rgb().color;
return (255 & e[0]) << 16 | (255 & e[1]) << 8 | 255 & e[2]
},
luminosity: function() {
for (var e = this.rgb().color, t = [], n = 0; n < e.length; n++) {
var r = e[n] / 255;
t[n] = r <= .03928 ? r / 12.92 : Math.pow((r + .055) / 1.055, 2.4)
}
return .2126 * t[0] + .7152 * t[1] + .0722 * t[2]
},
contrast: function(e) {
var t = this.luminosity(),
n = e.luminosity();
return t > n ? (t + .05) / (n + .05) : (n + .05) / (t + .05)
},
level: function(e) {
var t = this.contrast(e);
return t >= 7.1 ? "AAA" : t >= 4.5 ? "AA" : ""
},
dark: function() {
var e = this.rgb().color;
return (299 * e[0] + 587 * e[1] + 114 * e[2]) / 1e3 < 128
},
light: function() {
return !this.dark()
},
negate: function() {
for (var e = this.rgb(), t = 0; t < 3; t++) e.color[t] = 255 - e.color[t];
return e
},
lighten: function(e) {
var t = this.hsl();
return t.color[2] += t.color[2] * e, t
},
darken: function(e) {
var t = this.hsl();
return t.color[2] -= t.color[2] * e, t
},
saturate: function(e) {
var t = this.hsl();
return t.color[1] += t.color[1] * e, t
},
desaturate: function(e) {
var t = this.hsl();
return t.color[1] -= t.color[1] * e, t
},
whiten: function(e) {
var t = this.hwb();
return t.color[1] += t.color[1] * e, t
},
blacken: function(e) {
var t = this.hwb();
return t.color[2] += t.color[2] * e, t
},
grayscale: function() {
var e = this.rgb().color,
t = .3 * e[0] + .59 * e[1] + .11 * e[2];
return c.rgb(t, t, t)
},
fade: function(e) {
return this.alpha(this.valpha - this.valpha * e)
},
opaquer: function(e) {
return this.alpha(this.valpha + this.valpha * e)
},
rotate: function(e) {
var t = this.hsl(),
n = t.color[0];
return n = (n = (n + e) % 360) < 0 ? 360 + n : n, t.color[0] = n, t
},
mix: function(e, t) {
var n = e.rgb(),
r = this.rgb(),
a = void 0 === t ? .5 : t,
i = 2 * a - 1,
o = n.alpha() - r.alpha(),
s = ((i * o == -1 ? i : (i + o) / (1 + i * o)) + 1) / 2,
l = 1 - s;
return c.rgb(s * n.red() + l * r.red(), s * n.green() + l * r.green(), s * n.blue() + l * r.blue(), n.alpha() * a + r.alpha() * (1 - a))
}
}, Object.keys(a).forEach(function(e) {
if (-1 === o.indexOf(e)) {
var t = a[e].channels;
c.prototype[e] = function() {
if (this.model === e) return new c(this);
if (arguments.length) return new c(arguments, e);
var n, r = "number" == typeof arguments[t] ? t : this.valpha;
return new c((n = a[this.model][e].raw(this.color), Array.isArray(n) ? n : [n]).concat(r), e)
}, c[e] = function(n) {
return "number" == typeof n && (n = p(i.call(arguments), t)), new c(n, e)
}
}
}), e.exports = c
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.create = t.createGenerateClassName = t.sheets = t.RuleList = t.SheetsManager = t.SheetsRegistry = t.toCssValue = t.getDynamicStyles = void 0;
var r = n(94);
Object.defineProperty(t, "getDynamicStyles", {
enumerable: !0,
get: function() {
return d(r).default
}
});
var a = n(18);
Object.defineProperty(t, "toCssValue", {
enumerable: !0,
get: function() {
return d(a).default
}
});
var i = n(42);
Object.defineProperty(t, "SheetsRegistry", {
enumerable: !0,
get: function() {
return d(i).default
}
});
var o = n(95);
Object.defineProperty(t, "SheetsManager", {
enumerable: !0,
get: function() {
return d(o).default
}
});
var s = n(14);
Object.defineProperty(t, "RuleList", {
enumerable: !0,
get: function() {
return d(s).default
}
});
var l = n(23);
Object.defineProperty(t, "sheets", {
enumerable: !0,
get: function() {
return d(l).default
}
});
var c = n(45);
Object.defineProperty(t, "createGenerateClassName", {
enumerable: !0,
get: function() {
return d(c).default
}
});
var u = d(n(102));
function d(e) {
return e && e.__esModule ? e : {
default: e
}
}
var p = t.create = function(e) {
return new u.default(e)
};
t.default = p()
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function() {
return {
onProcessStyle: function(e) {
if (Array.isArray(e)) {
for (var t = 0; t < e.length; t++) e[t] = i(e[t]);
return e
}
return i(e)
}
}
};
var r = /([A-Z])/g;
function a(e) {
return "-" + e.toLowerCase()
}
function i(e) {
var t = {};
for (var n in e) t[n.replace(r, a)] = e[n];
return e.fallbacks && (Array.isArray(e.fallbacks) ? t.fallbacks = e.fallbacks.map(i) : t.fallbacks = i(e.fallbacks)), t
}
}, function(e, t, n) {
"use strict";
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 r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
};
t.default = function() {
function e(e) {
return function(t, n) {
var r = e.getRule(n);
return r ? r.selector : ((0, o.default)(!1, "[JSS] Could not find the referenced rule %s in %s.", n, e.options.meta || e), n)
}
}
var t = function(e) {
return -1 !== e.indexOf("&")
};
function n(e, n) {
for (var r = n.split(s), a = e.split(s), i = "", o = 0; o < r.length; o++)
for (var c = r[o], u = 0; u < a.length; u++) {
var d = a[u];
i && (i += ", "), i += t(d) ? d.replace(l, c) : c + " " + d
}
return i
}
function a(e, t, n) {
if (n) return r({}, n, {
index: n.index + 1
});
var a = e.options.nestingLevel;
return a = void 0 === a ? 1 : a + 1, r({}, e.options, {
nestingLevel: a,
index: t.indexOf(e) + 1
})
}
return {
onProcessStyle: function(i, o) {
if ("style" !== o.type) return i;
var s = o.options.parent,
l = void 0,
u = void 0;
for (var d in i) {
var p = t(d),
m = "@" === d[0];
if (p || m) {
if (l = a(o, s, l), p) {
var g = n(d, o.selector);
u || (u = e(s)), g = g.replace(c, u), s.addRule(g, i[d], r({}, l, {
selector: g
}))
} else m && s.addRule(d, null, l).addRule(o.key, i[d], {
selector: o.selector
});
delete i[d]
}
}
return i
}
}
};
var a, i = n(8),
o = (a = i) && a.__esModule ? a : {
default: a
};
var s = /\s*,\s*/g,
l = /&/g,
c = /\$([\w-]+)/g
}, function(e, t) {
var n, r, a = e.exports = {};
function i() {
throw new Error("setTimeout has not been defined")
}
function o() {
throw new Error("clearTimeout has not been defined")
}
function s(e) {
if (n === setTimeout) return setTimeout(e, 0);
if ((n === i || !n) && setTimeout) return n = setTimeout, setTimeout(e, 0);
try {
return n(e, 0)
} catch (t) {
try {
return n.call(null, e, 0)
} catch (t) {
return n.call(this, e, 0)
}
}
}! function() {
try {
n = "function" == typeof setTimeout ? setTimeout : i
} catch (e) {
n = i
}
try {
r = "function" == typeof clearTimeout ? clearTimeout : o
} catch (e) {
r = o
}
}();
var l, c = [],
u = !1,
d = -1;
function p() {
u && l && (u = !1, l.length ? c = l.concat(c) : d = -1, c.length && m())
}
function m() {
if (!u) {
var e = s(p);
u = !0;
for (var t = c.length; t;) {
for (l = c, c = []; ++d < t;) l && l[d].run();
d = -1, t = c.length
}
l = null, u = !1,
function(e) {
if (r === clearTimeout) return clearTimeout(e);
if ((r === o || !r) && clearTimeout) return r = clearTimeout, clearTimeout(e);
try {
r(e)
} catch (t) {
try {
return r.call(null, e)
} catch (t) {
return r.call(this, e)
}
}
}(e)
}
}
function g(e, t) {
this.fun = e, this.array = t
}
function f() {}
a.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];
c.push(new g(e, t)), 1 !== c.length || u || s(m)
}, g.prototype.run = function() {
this.fun.apply(null, this.array)
}, a.title = "browser", a.browser = !0, a.env = {}, a.argv = [], a.version = "", a.versions = {}, a.on = f, a.addListener = f, a.once = f, a.off = f, a.removeListener = f, a.removeAllListeners = f, a.emit = f, a.prependListener = f, a.prependOnceListener = f, a.listeners = function(e) {
return []
}, a.binding = function(e) {
throw new Error("process.binding is not supported")
}, a.cwd = function() {
return "/"
}, a.chdir = function(e) {
throw new Error("process.chdir is not supported")
}, a.umask = function() {
return 0
}
}, 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";
var r = function() {};
e.exports = r
}, function(e, t, n) {
"use strict";
var r = n(16),
a = Object.keys || function(e) {
var t = [];
for (var n in e) t.push(n);
return t
};
e.exports = d;
var i = n(13);
i.inherits = n(7);
var o = n(34),
s = n(37);
i.inherits(d, o);
for (var l = a(s.prototype), c = 0; c < l.length; c++) {
var u = l[c];
d.prototype[u] || (d.prototype[u] = s.prototype[u])
}
function d(e) {
if (!(this instanceof d)) return new d(e);
o.call(this, e), s.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", p)
}
function p() {
this.allowHalfOpen || this._writableState.ended || r(m, this)
}
function m(e) {
e.end()
}
Object.defineProperty(d.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)
}
}), d.prototype._destroy = function(e, t) {
this.push(null), this.end(), r(t, e)
}
}, function(e, t, n) {
"use strict";
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 r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
},
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
},
i = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
o = c(n(8)),
s = c(n(22)),
l = c(n(18));
function c(e) {
return e && e.__esModule ? e : {
default: e
}
}
var u = function() {
function e(t, n, r) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.type = "style", this.isProcessed = !1;
var a = r.sheet,
i = r.Renderer,
o = r.selector;
this.key = t, this.options = r, this.style = n, o && (this.selectorText = o), this.renderer = a ? a.renderer : new i
}
return i(e, [{
key: "prop",
value: function(e, t) {
if (null != t) {
if (this.style[e] !== t)
if (t = this.options.jss.plugins.onChangeValue(t, e, this), this.style[e] = t, this.renderable) this.renderer.setStyle(this.renderable, e, t);
else {
var n = this.options.sheet;
n && n.attached && (0, o.default)(!1, 'Rule is not linked. Missing sheet option "link: true".')
}
return this
}
return this.style[e]
}
}, {
key: "applyTo",
value: function(e) {
var t = this.toJSON();
for (var n in t) this.renderer.setStyle(e, n, t[n]);
return this
}
}, {
key: "toJSON",
value: function() {
var e = {};
for (var t in this.style) {
var n = this.style[t];
"object" !== (void 0 === n ? "undefined" : a(n)) ? e[t] = n: Array.isArray(n) && (e[t] = (0, l.default)(n))
}
return e
}
}, {
key: "toString",
value: function(e) {
var t = this.options.sheet,
n = !!t && t.options.link ? r({}, e, {
allowEmpty: !0
}) : e;
return (0, s.default)(this.selector, this.style, n)
}
}, {
key: "selector",
set: function(e) {
if (e !== this.selectorText && (this.selectorText = e, this.renderable && !this.renderer.setSelector(this.renderable, e) && this.renderable)) {
var t = this.renderer.replaceRule(this.renderable, this);
t && (this.renderable = t)
}
},
get: function() {
return this.selectorText
}
}]), e
}();
t.default = u
}, function(e, t) {
var n = {
repeat: 3
};
e.exports = function(e) {
var t = Object.assign({}, n, e),
r = Array(t.repeat + 1).join(":not(#\\20)");
return {
onProcessRule: function(e, t) {
var n = e.options.parent;
!1 === t.options.increaseSpecificity || "style" !== e.type || n && "keyframes" === n.type || (e.selectorText = r + e.selectorText)
}
}
}
}, function(e, t, n) {
"use strict";
(function(e) {
var r = n(77),
a = n(78),
i = n(31);
function o() {
return l.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823
}
function s(e, t) {
if (o() < t) throw new RangeError("Invalid typed array length");
return l.TYPED_ARRAY_SUPPORT ? (e = new Uint8Array(t)).__proto__ = l.prototype : (null === e && (e = new l(t)), e.length = t), e
}
function l(e, t, n) {
if (!(l.TYPED_ARRAY_SUPPORT || this instanceof l)) return new l(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 d(this, e)
}
return c(this, e, t, n)
}
function c(e, t, n, r) {
if ("number" == typeof t) throw new TypeError('"value" argument must not be a number');
return "undefined" != typeof ArrayBuffer && t instanceof ArrayBuffer ? function(e, t, n, r) {
if (t.byteLength, n < 0 || t.byteLength < n) throw new RangeError("'offset' is out of bounds");
if (t.byteLength < n + (r || 0)) throw new RangeError("'length' is out of bounds");
t = void 0 === n && void 0 === r ? new Uint8Array(t) : void 0 === r ? new Uint8Array(t, n) : new Uint8Array(t, n, r);
l.TYPED_ARRAY_SUPPORT ? (e = t).__proto__ = l.prototype : e = p(e, t);
return e
}(e, t, n, r) : "string" == typeof t ? function(e, t, n) {
"string" == typeof n && "" !== n || (n = "utf8");
if (!l.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding');
var r = 0 | g(t, n),
a = (e = s(e, r)).write(t, n);
a !== r && (e = e.slice(0, a));
return e
}(e, t, n) : function(e, t) {
if (l.isBuffer(t)) {
var n = 0 | m(t.length);
return 0 === (e = s(e, n)).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 || (r = t.length) != r ? s(e, 0) : p(e, t);
if ("Buffer" === t.type && i(t.data)) return p(e, t.data)
}
var r;
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")
}(e, t)
}
function u(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 d(e, t) {
if (u(t), e = s(e, t < 0 ? 0 : 0 | m(t)), !l.TYPED_ARRAY_SUPPORT)
for (var n = 0; n < t; ++n) e[n] = 0;
return e
}
function p(e, t) {
var n = t.length < 0 ? 0 : 0 | m(t.length);
e = s(e, n);
for (var r = 0; r < n; r += 1) e[r] = 255 & t[r];
return e
}
function m(e) {
if (e >= o()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + o().toString(16) + " bytes");
return 0 | e
}
function g(e, t) {
if (l.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 r = !1;;) switch (t) {
case "ascii":
case "latin1":
case "binary":
return n;
case "utf8":
case "utf-8":
case void 0:
return P(e).length;
case "ucs2":
case "ucs-2":
case "utf16le":
case "utf-16le":
return 2 * n;
case "hex":
return n >>> 1;
case "base64":
return F(e).length;
default:
if (r) return P(e).length;
t = ("" + t).toLowerCase(), r = !0
}
}
function f(e, t, n) {
var r = e[t];
e[t] = e[n], e[n] = r
}
function h(e, t, n, r, a) {
if (0 === e.length) return -1;
if ("string" == typeof n ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, isNaN(n) && (n = a ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
if (a) return -1;
n = e.length - 1
} else if (n < 0) {
if (!a) return -1;
n = 0
}
if ("string" == typeof t && (t = l.from(t, r)), l.isBuffer(t)) return 0 === t.length ? -1 : b(e, t, n, r, a);
if ("number" == typeof t) return t &= 255, l.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? a ? Uint8Array.prototype.indexOf.call(e, t, n) : Uint8Array.prototype.lastIndexOf.call(e, t, n) : b(e, [t], n, r, a);
throw new TypeError("val must be string, number or Buffer")
}
function b(e, t, n, r, a) {
var i, o = 1,
s = e.length,
l = t.length;
if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) {
if (e.length < 2 || t.length < 2) return -1;
o = 2, s /= 2, l /= 2, n /= 2
}
function c(e, t) {
return 1 === o ? e[t] : e.readUInt16BE(t * o)
}
if (a) {
var u = -1;
for (i = n; i < s; i++)
if (c(e, i) === c(t, -1 === u ? 0 : i - u)) {
if (-1 === u && (u = i), i - u + 1 === l) return u * o
} else -1 !== u && (i -= i - u), u = -1
} else
for (n + l > s && (n = s - l), i = n; i >= 0; i--) {
for (var d = !0, p = 0; p < l; p++)
if (c(e, i + p) !== c(t, p)) {
d = !1;
break
}
if (d) return i
}
return -1
}
function _(e, t, n, r) {
n = Number(n) || 0;
var a = e.length - n;
r ? (r = Number(r)) > a && (r = a) : r = a;
var i = t.length;
if (i % 2 != 0) throw new TypeError("Invalid hex string");
r > i / 2 && (r = i / 2);
for (var o = 0; o < r; ++o) {
var s = parseInt(t.substr(2 * o, 2), 16);
if (isNaN(s)) return o;
e[n + o] = s
}
return o
}
function v(e, t, n, r) {
return B(function(e) {
for (var t = [], n = 0; n < e.length; ++n) t.push(255 & e.charCodeAt(n));
return t
}(t), e, n, r)
}
function y(e, t, n) {
return 0 === t && n === e.length ? r.fromByteArray(e) : r.fromByteArray(e.slice(t, n))
}
function E(e, t, n) {
n = Math.min(e.length, n);
for (var r = [], a = t; a < n;) {
var i, o, s, l, c = e[a],
u = null,
d = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
if (a + d <= n) switch (d) {
case 1:
c < 128 && (u = c);
break;
case 2:
128 == (192 & (i = e[a + 1])) && (l = (31 & c) << 6 | 63 & i) > 127 && (u = l);
break;
case 3:
i = e[a + 1], o = e[a + 2], 128 == (192 & i) && 128 == (192 & o) && (l = (15 & c) << 12 | (63 & i) << 6 | 63 & o) > 2047 && (l < 55296 || l > 57343) && (u = l);
break;
case 4:
i = e[a + 1], o = e[a + 2], s = e[a + 3], 128 == (192 & i) && 128 == (192 & o) && 128 == (192 & s) && (l = (15 & c) << 18 | (63 & i) << 12 | (63 & o) << 6 | 63 & s) > 65535 && l < 1114112 && (u = l)
}
null === u ? (u = 65533, d = 1) : u > 65535 && (u -= 65536, r.push(u >>> 10 & 1023 | 55296), u = 56320 | 1023 & u), r.push(u), a += d
}
return function(e) {
var t = e.length;
if (t <= S) return String.fromCharCode.apply(String, e);
var n = "",
r = 0;
for (; r < t;) n += String.fromCharCode.apply(String, e.slice(r, r += S));
return n
}(r)
}
t.Buffer = l, t.SlowBuffer = function(e) {
+e != e && (e = 0);
return l.alloc(+e)
}, t.INSPECT_MAX_BYTES = 50, l.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(), l.poolSize = 8192, l._augment = function(e) {
return e.__proto__ = l.prototype, e
}, l.from = function(e, t, n) {
return c(null, e, t, n)
}, l.TYPED_ARRAY_SUPPORT && (l.prototype.__proto__ = Uint8Array.prototype, l.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && l[Symbol.species] === l && Object.defineProperty(l, Symbol.species, {
value: null,
configurable: !0
})), l.alloc = function(e, t, n) {
return r = null, i = t, o = n, u(a = e), a <= 0 ? s(r, a) : void 0 !== i ? "string" == typeof o ? s(r, a).fill(i, o) : s(r, a).fill(i) : s(r, a);
var r, a, i, o
}, l.allocUnsafe = function(e) {
return d(null, e)
}, l.allocUnsafeSlow = function(e) {
return d(null, e)
}, l.isBuffer = function(e) {
return !(null == e || !e._isBuffer)
}, l.compare = function(e, t) {
if (!l.isBuffer(e) || !l.isBuffer(t)) throw new TypeError("Arguments must be Buffers");
if (e === t) return 0;
for (var n = e.length, r = t.length, a = 0, i = Math.min(n, r); a < i; ++a)
if (e[a] !== t[a]) {
n = e[a], r = t[a];
break
}
return n < r ? -1 : r < n ? 1 : 0
}, l.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
}
}, l.concat = function(e, t) {
if (!i(e)) throw new TypeError('"list" argument must be an Array of Buffers');
if (0 === e.length) return l.alloc(0);
var n;
if (void 0 === t)
for (t = 0, n = 0; n < e.length; ++n) t += e[n].length;
var r = l.allocUnsafe(t),
a = 0;
for (n = 0; n < e.length; ++n) {
var o = e[n];
if (!l.isBuffer(o)) throw new TypeError('"list" argument must be an Array of Buffers');
o.copy(r, a), a += o.length
}
return r
}, l.byteLength = g, l.prototype._isBuffer = !0, l.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) f(this, t, t + 1);
return this
}, l.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) f(this, t, t + 3), f(this, t + 1, t + 2);
return this
}, l.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) f(this, t, t + 7), f(this, t + 1, t + 6), f(this, t + 2, t + 5), f(this, t + 3, t + 4);
return this
}, l.prototype.toString = function() {
var e = 0 | this.length;
return 0 === e ? "" : 0 === arguments.length ? E(this, 0, e) : function(e, t, n) {
var r = !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)) return "";
for (e || (e = "utf8");;) switch (e) {
case "hex":
return C(this, t, n);
case "utf8":
case "utf-8":
return E(this, t, n);
case "ascii":
return x(this, t, n);
case "latin1":
case "binary":
return w(this, t, n);
case "base64":
return y(this, t, n);
case "ucs2":
case "ucs-2":
case "utf16le":
case "utf-16le":
return T(this, t, n);
default:
if (r) throw new TypeError("Unknown encoding: " + e);
e = (e + "").toLowerCase(), r = !0
}
}.apply(this, arguments)
}, l.prototype.equals = function(e) {
if (!l.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
return this === e || 0 === l.compare(this, e)
}, l.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 + ">"
}, l.prototype.compare = function(e, t, n, r, a) {
if (!l.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 === r && (r = 0), void 0 === a && (a = this.length), t < 0 || n > e.length || r < 0 || a > this.length) throw new RangeError("out of range index");
if (r >= a && t >= n) return 0;
if (r >= a) return -1;
if (t >= n) return 1;
if (t >>>= 0, n >>>= 0, r >>>= 0, a >>>= 0, this === e) return 0;
for (var i = a - r, o = n - t, s = Math.min(i, o), c = this.slice(r, a), u = e.slice(t, n), d = 0; d < s; ++d)
if (c[d] !== u[d]) {
i = c[d], o = u[d];
break
}
return i < o ? -1 : o < i ? 1 : 0
}, l.prototype.includes = function(e, t, n) {
return -1 !== this.indexOf(e, t, n)
}, l.prototype.indexOf = function(e, t, n) {
return h(this, e, t, n, !0)
}, l.prototype.lastIndexOf = function(e, t, n) {
return h(this, e, t, n, !1)
}, l.prototype.write = function(e, t, n, r) {
if (void 0 === t) r = "utf8", n = this.length, t = 0;
else if (void 0 === n && "string" == typeof t) r = 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 === r && (r = "utf8")) : (r = n, n = void 0)
}
var a = this.length - t;
if ((void 0 === n || n > a) && (n = a), e.length > 0 && (n < 0 || t < 0) || t > this.length) throw new RangeError("Attempt to write outside buffer bounds");
r || (r = "utf8");
for (var i, o, s, l, c, u, d, p, m, g = !1;;) switch (r) {
case "hex":
return _(this, e, t, n);
case "utf8":
case "utf-8":
return p = t, m = n, B(P(e, (d = this).length - p), d, p, m);
case "ascii":
return v(this, e, t, n);
case "latin1":
case "binary":
return v(this, e, t, n);
case "base64":
return l = this, c = t, u = n, B(F(e), l, c, u);
case "ucs2":
case "ucs-2":
case "utf16le":
case "utf-16le":
return o = t, s = n, B(function(e, t) {
for (var n, r, a, i = [], o = 0; o < e.length && !((t -= 2) < 0); ++o) n = e.charCodeAt(o), r = n >> 8, a = n % 256, i.push(a), i.push(r);
return i
}(e, (i = this).length - o), i, o, s);
default:
if (g) throw new TypeError("Unknown encoding: " + r);
r = ("" + r).toLowerCase(), g = !0
}
}, l.prototype.toJSON = function() {
return {
type: "Buffer",
data: Array.prototype.slice.call(this._arr || this, 0)
}
};
var S = 4096;
function x(e, t, n) {
var r = "";
n = Math.min(e.length, n);
for (var a = t; a < n; ++a) r += String.fromCharCode(127 & e[a]);
return r
}
function w(e, t, n) {
var r = "";
n = Math.min(e.length, n);
for (var a = t; a < n; ++a) r += String.fromCharCode(e[a]);
return r
}
function C(e, t, n) {
var r = e.length;
(!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r);
for (var a = "", i = t; i < n; ++i) a += L(e[i]);
return a
}
function T(e, t, n) {
for (var r = e.slice(t, n), a = "", i = 0; i < r.length; i += 2) a += String.fromCharCode(r[i] + 256 * r[i + 1]);
return a
}
function N(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 O(e, t, n, r, a, i) {
if (!l.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance');
if (t > a || t < i) throw new RangeError('"value" argument is out of bounds');
if (n + r > e.length) throw new RangeError("Index out of range")
}
function M(e, t, n, r) {
t < 0 && (t = 65535 + t + 1);
for (var a = 0, i = Math.min(e.length - n, 2); a < i; ++a) e[n + a] = (t & 255 << 8 * (r ? a : 1 - a)) >>> 8 * (r ? a : 1 - a)
}
function D(e, t, n, r) {
t < 0 && (t = 4294967295 + t + 1);
for (var a = 0, i = Math.min(e.length - n, 4); a < i; ++a) e[n + a] = t >>> 8 * (r ? a : 3 - a) & 255
}
function A(e, t, n, r, a, i) {
if (n + r > e.length) throw new RangeError("Index out of range");
if (n < 0) throw new RangeError("Index out of range")
}
function k(e, t, n, r, i) {
return i || A(e, 0, n, 4), a.write(e, t, n, r, 23, 4), n + 4
}
function R(e, t, n, r, i) {
return i || A(e, 0, n, 8), a.write(e, t, n, r, 52, 8), n + 8
}
l.prototype.slice = function(e, t) {
var n, r = this.length;
if (e = ~~e, t = void 0 === t ? r : ~~t, e < 0 ? (e += r) < 0 && (e = 0) : e > r && (e = r), t < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r), t < e && (t = e), l.TYPED_ARRAY_SUPPORT)(n = this.subarray(e, t)).__proto__ = l.prototype;
else {
var a = t - e;
n = new l(a, void 0);
for (var i = 0; i < a; ++i) n[i] = this[i + e]
}
return n
}, l.prototype.readUIntLE = function(e, t, n) {
e |= 0, t |= 0, n || N(e, t, this.length);
for (var r = this[e], a = 1, i = 0; ++i < t && (a *= 256);) r += this[e + i] * a;
return r
}, l.prototype.readUIntBE = function(e, t, n) {
e |= 0, t |= 0, n || N(e, t, this.length);
for (var r = this[e + --t], a = 1; t > 0 && (a *= 256);) r += this[e + --t] * a;
return r
}, l.prototype.readUInt8 = function(e, t) {
return t || N(e, 1, this.length), this[e]
}, l.prototype.readUInt16LE = function(e, t) {
return t || N(e, 2, this.length), this[e] | this[e + 1] << 8
}, l.prototype.readUInt16BE = function(e, t) {
return t || N(e, 2, this.length), this[e] << 8 | this[e + 1]
}, l.prototype.readUInt32LE = function(e, t) {
return t || N(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + 16777216 * this[e + 3]
}, l.prototype.readUInt32BE = function(e, t) {
return t || N(e, 4, this.length), 16777216 * this[e] + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3])
}, l.prototype.readIntLE = function(e, t, n) {
e |= 0, t |= 0, n || N(e, t, this.length);
for (var r = this[e], a = 1, i = 0; ++i < t && (a *= 256);) r += this[e + i] * a;
return r >= (a *= 128) && (r -= Math.pow(2, 8 * t)), r
}, l.prototype.readIntBE = function(e, t, n) {
e |= 0, t |= 0, n || N(e, t, this.length);
for (var r = t, a = 1, i = this[e + --r]; r > 0 && (a *= 256);) i += this[e + --r] * a;
return i >= (a *= 128) && (i -= Math.pow(2, 8 * t)), i
}, l.prototype.readInt8 = function(e, t) {
return t || N(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e]
}, l.prototype.readInt16LE = function(e, t) {
t || N(e, 2, this.length);
var n = this[e] | this[e + 1] << 8;
return 32768 & n ? 4294901760 | n : n
}, l.prototype.readInt16BE = function(e, t) {
t || N(e, 2, this.length);
var n = this[e + 1] | this[e] << 8;
return 32768 & n ? 4294901760 | n : n
}, l.prototype.readInt32LE = function(e, t) {
return t || N(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24
}, l.prototype.readInt32BE = function(e, t) {
return t || N(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]
}, l.prototype.readFloatLE = function(e, t) {
return t || N(e, 4, this.length), a.read(this, e, !0, 23, 4)
}, l.prototype.readFloatBE = function(e, t) {
return t || N(e, 4, this.length), a.read(this, e, !1, 23, 4)
}, l.prototype.readDoubleLE = function(e, t) {
return t || N(e, 8, this.length), a.read(this, e, !0, 52, 8)
}, l.prototype.readDoubleBE = function(e, t) {
return t || N(e, 8, this.length), a.read(this, e, !1, 52, 8)
}, l.prototype.writeUIntLE = function(e, t, n, r) {
(e = +e, t |= 0, n |= 0, r) || O(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
var a = 1,
i = 0;
for (this[t] = 255 & e; ++i < n && (a *= 256);) this[t + i] = e / a & 255;
return t + n
}, l.prototype.writeUIntBE = function(e, t, n, r) {
(e = +e, t |= 0, n |= 0, r) || O(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
var a = n - 1,
i = 1;
for (this[t + a] = 255 & e; --a >= 0 && (i *= 256);) this[t + a] = e / i & 255;
return t + n
}, l.prototype.writeUInt8 = function(e, t, n) {
return e = +e, t |= 0, n || O(this, e, t, 1, 255, 0), l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[t] = 255 & e, t + 1
}, l.prototype.writeUInt16LE = function(e, t, n) {
return e = +e, t |= 0, n || O(this, e, t, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : M(this, e, t, !0), t + 2
}, l.prototype.writeUInt16BE = function(e, t, n) {
return e = +e, t |= 0, n || O(this, e, t, 2, 65535, 0), l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : M(this, e, t, !1), t + 2
}, l.prototype.writeUInt32LE = function(e, t, n) {
return e = +e, t |= 0, n || O(this, e, t, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t + 3] = e >>> 24, this[t + 2] = e >>> 16, this[t + 1] = e >>> 8, this[t] = 255 & e) : D(this, e, t, !0), t + 4
}, l.prototype.writeUInt32BE = function(e, t, n) {
return e = +e, t |= 0, n || O(this, e, t, 4, 4294967295, 0), l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : D(this, e, t, !1), t + 4
}, l.prototype.writeIntLE = function(e, t, n, r) {
if (e = +e, t |= 0, !r) {
var a = Math.pow(2, 8 * n - 1);
O(this, e, t, n, a - 1, -a)
}
var i = 0,
o = 1,
s = 0;
for (this[t] = 255 & e; ++i < n && (o *= 256);) e < 0 && 0 === s && 0 !== this[t + i - 1] && (s = 1), this[t + i] = (e / o >> 0) - s & 255;
return t + n
}, l.prototype.writeIntBE = function(e, t, n, r) {
if (e = +e, t |= 0, !r) {
var a = Math.pow(2, 8 * n - 1);
O(this, e, t, n, a - 1, -a)
}
var i = n - 1,
o = 1,
s = 0;
for (this[t + i] = 255 & e; --i >= 0 && (o *= 256);) e < 0 && 0 === s && 0 !== this[t + i + 1] && (s = 1), this[t + i] = (e / o >> 0) - s & 255;
return t + n
}, l.prototype.writeInt8 = function(e, t, n) {
return e = +e, t |= 0, n || O(this, e, t, 1, 127, -128), l.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[t] = 255 & e, t + 1
}, l.prototype.writeInt16LE = function(e, t, n) {
return e = +e, t |= 0, n || O(this, e, t, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8) : M(this, e, t, !0), t + 2
}, l.prototype.writeInt16BE = function(e, t, n) {
return e = +e, t |= 0, n || O(this, e, t, 2, 32767, -32768), l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 8, this[t + 1] = 255 & e) : M(this, e, t, !1), t + 2
}, l.prototype.writeInt32LE = function(e, t, n) {
return e = +e, t |= 0, n || O(this, e, t, 4, 2147483647, -2147483648), l.TYPED_ARRAY_SUPPORT ? (this[t] = 255 & e, this[t + 1] = e >>> 8, this[t + 2] = e >>> 16, this[t + 3] = e >>> 24) : D(this, e, t, !0), t + 4
}, l.prototype.writeInt32BE = function(e, t, n) {
return e = +e, t |= 0, n || O(this, e, t, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), l.TYPED_ARRAY_SUPPORT ? (this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = 255 & e) : D(this, e, t, !1), t + 4
}, l.prototype.writeFloatLE = function(e, t, n) {
return k(this, e, t, !0, n)
}, l.prototype.writeFloatBE = function(e, t, n) {
return k(this, e, t, !1, n)
}, l.prototype.writeDoubleLE = function(e, t, n) {
return R(this, e, t, !0, n)
}, l.prototype.writeDoubleBE = function(e, t, n) {
return R(this, e, t, !1, n)
}, l.prototype.copy = function(e, t, n, r) {
if (n || (n = 0), r || 0 === r || (r = this.length), t >= e.length && (t = e.length), t || (t = 0), r > 0 && r < n && (r = n), r === 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 (r < 0) throw new RangeError("sourceEnd out of bounds");
r > this.length && (r = this.length), e.length - t < r - n && (r = e.length - t + n);
var a, i = r - n;
if (this === e && n < t && t < r)
for (a = i - 1; a >= 0; --a) e[a + t] = this[a + n];
else if (i < 1e3 || !l.TYPED_ARRAY_SUPPORT)
for (a = 0; a < i; ++a) e[a + t] = this[a + n];
else Uint8Array.prototype.set.call(e, this.subarray(n, n + i), t);
return i
}, l.prototype.fill = function(e, t, n, r) {
if ("string" == typeof e) {
if ("string" == typeof t ? (r = t, t = 0, n = this.length) : "string" == typeof n && (r = n, n = this.length), 1 === e.length) {
var a = e.charCodeAt(0);
a < 256 && (e = a)
}
if (void 0 !== r && "string" != typeof r) throw new TypeError("encoding must be a string");
if ("string" == typeof r && !l.isEncoding(r)) throw new TypeError("Unknown encoding: " + r)
} 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;
var i;
if (t >>>= 0, n = void 0 === n ? this.length : n >>> 0, e || (e = 0), "number" == typeof e)
for (i = t; i < n; ++i) this[i] = e;
else {
var o = l.isBuffer(e) ? e : P(new l(e, r).toString()),
s = o.length;
for (i = 0; i < n - t; ++i) this[i + t] = o[i % s]
}
return this
};
var I = /[^+\/0-9A-Za-z-_]/g;
function L(e) {
return e < 16 ? "0" + e.toString(16) : e.toString(16)
}
function P(e, t) {
var n;
t = t || 1 / 0;
for (var r = e.length, a = null, i = [], o = 0; o < r; ++o) {
if ((n = e.charCodeAt(o)) > 55295 && n < 57344) {
if (!a) {
if (n > 56319) {
(t -= 3) > -1 && i.push(239, 191, 189);
continue
}
if (o + 1 === r) {
(t -= 3) > -1 && i.push(239, 191, 189);
continue
}
a = n;
continue
}
if (n < 56320) {
(t -= 3) > -1 && i.push(239, 191, 189), a = n;
continue
}
n = 65536 + (a - 55296 << 10 | n - 56320)
} else a && (t -= 3) > -1 && i.push(239, 191, 189);
if (a = null, n < 128) {
if ((t -= 1) < 0) break;
i.push(n)
} else if (n < 2048) {
if ((t -= 2) < 0) break;
i.push(n >> 6 | 192, 63 & n | 128)
} else if (n < 65536) {
if ((t -= 3) < 0) break;
i.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;
i.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128)
}
}
return i
}
function F(e) {
return r.toByteArray(function(e) {
var t;
if ((e = (t = e, t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "")).replace(I, "")).length < 2) return "";
for (; e.length % 4 != 0;) e += "=";
return e
}(e))
}
function B(e, t, n, r) {
for (var a = 0; a < r && !(a + n >= t.length || a >= e.length); ++a) t[a + n] = e[a];
return a
}
}).call(t, n(0))
}, function(e, t, n) {
(function(e) {
function n(e) {
return Object.prototype.toString.call(e)
}
t.isArray = function(e) {
return Array.isArray ? Array.isArray(e) : "[object Array]" === n(e)
}, t.isBoolean = function(e) {
return "boolean" == typeof e
}, t.isNull = function(e) {
return null === e
}, t.isNullOrUndefined = function(e) {
return null == e
}, t.isNumber = function(e) {
return "number" == typeof e
}, t.isString = function(e) {
return "string" == typeof e
}, t.isSymbol = function(e) {
return "symbol" == typeof e
}, t.isUndefined = function(e) {
return void 0 === e
}, t.isRegExp = function(e) {
return "[object RegExp]" === n(e)
}, t.isObject = function(e) {
return "object" == typeof e && null !== e
}, t.isDate = function(e) {
return "[object Date]" === n(e)
}, t.isError = function(e) {
return "[object Error]" === n(e) || e instanceof Error
}, t.isFunction = function(e) {
return "function" == typeof e
}, t.isPrimitive = function(e) {
return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" == typeof e || void 0 === e
}, t.isBuffer = e.isBuffer
}).call(t, n(12).Buffer)
}, function(e, t, n) {
"use strict";
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 r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
},
a = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
i = c(n(19)),
o = c(n(44)),
s = c(n(10)),
l = c(n(100));
function c(e) {
return e && e.__esModule ? e : {
default: e
}
}
var u = function() {
function e(t) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.map = {}, this.raw = {}, this.index = [], this.options = t, this.classes = t.classes
}
return a(e, [{
key: "add",
value: function(e, t, n) {
var a = this.options,
o = a.parent,
c = a.sheet,
u = a.jss,
d = a.Renderer,
p = a.generateClassName;
!(n = r({
classes: this.classes,
parent: o,
sheet: c,
jss: u,
Renderer: d,
generateClassName: p
}, n)).selector && this.classes[e] && (n.selector = "." + (0, l.default)(this.classes[e])), this.raw[e] = t;
var m = (0, i.default)(e, t, n),
g = void 0;
!n.selector && m instanceof s.default && (g = p(m, c), m.selector = "." + (0, l.default)(g)), this.register(m, g);
var f = void 0 === n.index ? this.index.length : n.index;
return this.index.splice(f, 0, m), m
}
}, {
key: "get",
value: function(e) {
return this.map[e]
}
}, {
key: "remove",
value: function(e) {
this.unregister(e), this.index.splice(this.indexOf(e), 1)
}
}, {
key: "indexOf",
value: function(e) {
return this.index.indexOf(e)
}
}, {
key: "process",
value: function() {
var e = this.options.jss.plugins;
this.index.slice(0).forEach(e.onProcessRule, e)
}
}, {
key: "register",
value: function(e, t) {
this.map[e.key] = e, e instanceof s.default && (this.map[e.selector] = e, t && (this.classes[e.key] = t))
}
}, {
key: "unregister",
value: function(e) {
delete this.map[e.key], e instanceof s.default && (delete this.map[e.selector], delete this.classes[e.key])
}
}, {
key: "update",
value: function(e, t) {
var n = this.options,
r = n.jss.plugins,
a = n.sheet;
if ("string" != typeof e)
for (var i = 0; i < this.index.length; i++) r.onUpdate(e, this.index[i], a);
else r.onUpdate(t, this.get(e), a)
}
}, {
key: "link",
value: function(e) {
for (var t = this.options.sheet.renderer.getUnescapedKeysMap(this.index), n = 0; n < e.length; n++) {
var r = e[n],
a = this.options.sheet.renderer.getKey(r);
t[a] && (a = t[a]);
var i = this.map[a];
i && (0, o.default)(i, r)
}
}
}, {
key: "toString",
value: function(e) {
for (var t = "", n = this.options.sheet, r = !!n && n.options.link, a = 0; a < this.index.length; a++) {
var i = this.index[a].toString(e);
(i || r) && (t && (t += "\n"), t += i)
}
return t
}
}]), e
}();
t.default = u
}, function(e, t, n) {
"use strict";
function r(e) {
return function() {
return e
}
}
var a = function() {};
a.thatReturns = r, a.thatReturnsFalse = r(!1), a.thatReturnsTrue = r(!0), a.thatReturnsNull = r(null), a.thatReturnsThis = function() {
return this
}, a.thatReturnsArgument = function(e) {
return e
}, e.exports = a
}, function(e, t, n) {
"use strict";
(function(t) {
!t.version || 0 === t.version.indexOf("v0.") || 0 === t.version.indexOf("v1.") && 0 !== t.version.indexOf("v1.8.") ? e.exports = function(e, n, r, a) {
if ("function" != typeof e) throw new TypeError('"callback" argument must be a function');
var i, o, s = arguments.length;
switch (s) {
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, r)
});
case 4:
return t.nextTick(function() {
e.call(null, n, r, a)
});
default:
for (i = new Array(s - 1), o = 0; o < i.length;) i[o++] = arguments[o];
return t.nextTick(function() {
e.apply(null, i)
})
}
} : e.exports = t.nextTick
}).call(t, n(6))
}, function(e, t, n) {
var r = n(12),
a = r.Buffer;
function i(e, t) {
for (var n in e) t[n] = e[n]
}
function o(e, t, n) {
return a(e, t, n)
}
a.from && a.alloc && a.allocUnsafe && a.allocUnsafeSlow ? e.exports = r : (i(r, t), t.Buffer = o), i(a, o), o.from = function(e, t, n) {
if ("number" == typeof e) throw new TypeError("Argument must not be a number");
return a(e, t, n)
}, o.alloc = function(e, t, n) {
if ("number" != typeof e) throw new TypeError("Argument must be a number");
var r = a(e);
return void 0 !== t ? "string" == typeof n ? r.fill(t, n) : r.fill(t) : r.fill(0), r
}, o.allocUnsafe = function(e) {
if ("number" != typeof e) throw new TypeError("Argument must be a number");
return a(e)
}, o.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";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
if (!Array.isArray(e)) return e;
var n = "";
if (Array.isArray(e[0]))
for (var a = 0; a < e.length && "!important" !== e[a]; a++) n && (n += ", "), n += r(e[a], " ");
else n = r(e, ", ");
t || "!important" !== e[e.length - 1] || (n += " !important");
return n
};
var r = function(e, t) {
for (var n = "", r = 0; r < e.length && "!important" !== e[r]; r++) n && (n += t), n += e[r];
return n
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "unnamed",
t = arguments[1],
n = arguments[2],
o = n.jss,
s = (0, i.default)(t),
l = o.plugins.onCreateRule(e, s, n);
if (l) return l;
"@" === e[0] && (0, r.default)(!1, "[JSS] Unknown at-rule %s", e);
return new a.default(e, s, n)
};
var r = o(n(8)),
a = o(n(10)),
i = o(n(96));
function o(e) {
return e && e.__esModule ? e : {
default: e
}
}
}, function(e, t, n) {
(function(t) {
var n = "undefined" != typeof window ? window : void 0 !== t ? t : "undefined" != typeof self ? self : {};
function r(e) {
return void 0 === e
}
function a(e) {
return "[object Object]" === Object.prototype.toString.call(e)
}
function i(e) {
return "[object String]" === Object.prototype.toString.call(e)
}
function o(e) {
return "[object Array]" === Object.prototype.toString.call(e)
}
function s() {
try {
return new ErrorEvent(""), !0
} catch (e) {
return !1
}
}
function l(e, t) {
var n, a;
if (r(e.length))
for (n in e) c(e, n) && t.call(null, n, e[n]);
else if (a = e.length)
for (n = 0; n < a; n++) t.call(null, n, e[n])
}
function c(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}
function u(e) {
var t, n, r, a, o, s = [];
if (!e || !e.tagName) return "";
if (s.push(e.tagName.toLowerCase()), e.id && s.push("#" + e.id), (t = e.className) && i(t))
for (n = t.split(/\s+/), o = 0; o < n.length; o++) s.push("." + n[o]);
var l = ["type", "name", "title", "alt"];
for (o = 0; o < l.length; o++) r = l[o], (a = e.getAttribute(r)) && s.push("[" + r + '="' + a + '"]');
return s.join("")
}
function d(e, t) {
return !!(!!e ^ !!t)
}
function p(e, t) {
if (d(e, t)) return !1;
var n, r, a = e.frames,
i = t.frames;
if (a.length !== i.length) return !1;
for (var o = 0; o < a.length; o++)
if (n = a[o], r = i[o], n.filename !== r.filename || n.lineno !== r.lineno || n.colno !== r.colno || n.function !== r.function) return !1;
return !0
}
e.exports = {
isObject: function(e) {
return "object" == typeof e && null !== e
},
isError: function(e) {
switch ({}.toString.call(e)) {
case "[object Error]":
case "[object Exception]":
case "[object DOMException]":
return !0;
default:
return e instanceof Error
}
},
isErrorEvent: function(e) {
return s() && "[object ErrorEvent]" === {}.toString.call(e)
},
isUndefined: r,
isFunction: function(e) {
return "function" == typeof e
},
isPlainObject: a,
isString: i,
isArray: o,
isEmptyObject: function(e) {
if (!a(e)) return !1;
for (var t in e)
if (e.hasOwnProperty(t)) return !1;
return !0
},
supportsErrorEvent: s,
supportsFetch: function() {
if (!("fetch" in n)) return !1;
try {
return new Headers, new Request(""), new Response, !0
} catch (e) {
return !1
}
},
wrappedCallback: function(e) {
return function(t, n) {
var r = e(t) || t;
return n ? n(r) || r : r
}
},
each: l,
objectMerge: function(e, t) {
return t ? (l(t, function(t, n) {
e[t] = n
}), e) : e
},
truncate: function(e, t) {
return !t || e.length <= t ? e : e.substr(0, t) + "…"
},
objectFrozen: function(e) {
return !!Object.isFrozen && Object.isFrozen(e)
},
hasKey: c,
joinRegExp: function(e) {
for (var t, n = [], r = 0, a = e.length; r < a; r++) i(t = e[r]) ? n.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1")) : t && t.source && n.push(t.source);
return new RegExp(n.join("|"), "i")
},
urlencode: function(e) {
var t = [];
return l(e, function(e, n) {
t.push(encodeURIComponent(e) + "=" + encodeURIComponent(n))
}), t.join("&")
},
uuid4: function() {
var e = n.crypto || n.msCrypto;
if (!r(e) && e.getRandomValues) {
var t = new Uint16Array(8);
e.getRandomValues(t), t[3] = 4095 & t[3] | 16384, t[4] = 16383 & t[4] | 32768;
var a = function(e) {
for (var t = e.toString(16); t.length < 4;) t = "0" + t;
return t
};
return a(t[0]) + a(t[1]) + a(t[2]) + a(t[3]) + a(t[4]) + a(t[5]) + a(t[6]) + a(t[7])
}
return "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, function(e) {
var t = 16 * Math.random() | 0;
return ("x" === e ? t : 3 & t | 8).toString(16)
})
},
htmlTreeAsString: function(e) {
for (var t, n = [], r = 0, a = 0, i = " > ".length; e && r++ < 5 && !("html" === (t = u(e)) || r > 1 && a + n.length * i + t.length >= 80);) n.push(t), a += t.length, e = e.parentNode;
return n.reverse().join(" > ")
},
htmlElementAsString: u,
isSameException: function(e, t) {
return !d(e, t) && (e = e.values[0], t = t.values[0], e.type === t.type && e.value === t.value && (n = e.stacktrace, a = t.stacktrace, (!r(n) || !r(a)) && p(e.stacktrace, t.stacktrace)));
var n, a
},
isSameStacktrace: p,
parseUrl: function(e) {
if ("string" != typeof e) return {};
var t = e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),
n = t[6] || "",
r = t[8] || "";
return {
protocol: t[2],
host: t[4],
path: t[5],
relative: t[5] + n + r
}
},
fill: function(e, t, n, r) {
var a = e[t];
e[t] = n(a), e[t].__raven__ = !0, e[t].__orig__ = a, r && r.push([e, t, a])
},
safeJoin: function(e, t) {
if (!o(e)) return "";
for (var n = [], r = 0; r < e.length; r++) try {
n.push(String(e[r]))
} catch (e) {
n.push("[value cannot be serialized]")
}
return n.join(t)
}
}
}).call(t, n(0))
}, function(e, t) {
function n() {
this._events = this._events || {}, this._maxListeners = this._maxListeners || void 0
}
function r(e) {
return "function" == typeof e
}
function a(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 ("number" != typeof 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, o, s, l, c;
if (this._events || (this._events = {}), "error" === e && (!this._events.error || a(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 (i(n = this._events[e])) return !1;
if (r(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:
s = Array.prototype.slice.call(arguments, 1), n.apply(this, s)
} else if (a(n))
for (s = Array.prototype.slice.call(arguments, 1), o = (c = n.slice()).length, l = 0; l < o; l++) c[l].apply(this, s);
return !0
}, n.prototype.addListener = function(e, t) {
var o;
if (!r(t)) throw TypeError("listener must be a function");
return this._events || (this._events = {}), this._events.newListener && this.emit("newListener", e, r(t.listener) ? t.listener : t), this._events[e] ? a(this._events[e]) ? this._events[e].push(t) : this._events[e] = [this._events[e], t] : this._events[e] = t, a(this._events[e]) && !this._events[e].warned && (o = i(this._maxListeners) ? n.defaultMaxListeners : this._maxListeners) && o > 0 && this._events[e].length > o && (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) {
if (!r(t)) throw TypeError("listener must be a function");
var n = !1;
function a() {
this.removeListener(e, a), n || (n = !0, t.apply(this, arguments))
}
return a.listener = t, this.on(e, a), this
}, n.prototype.removeListener = function(e, t) {
var n, i, o, s;
if (!r(t)) throw TypeError("listener must be a function");
if (!this._events || !this._events[e]) return this;
if (o = (n = this._events[e]).length, i = -1, n === t || r(n.listener) && n.listener === t) delete this._events[e], this._events.removeListener && this.emit("removeListener", e, t);
else if (a(n)) {
for (s = o; s-- > 0;)
if (n[s] === t || n[s].listener && n[s].listener === t) {
i = s;
break
}
if (i < 0) return this;
1 === n.length ? (n.length = 0, delete this._events[e]) : n.splice(i, 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 (r(n = this._events[e])) 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] ? r(this._events[e]) ? [this._events[e]] : this._events[e].slice() : []
}, n.prototype.listenerCount = function(e) {
if (this._events) {
var t = this._events[e];
if (r(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";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
r = "";
if (!t) return r;
var a = n.indent,
s = void 0 === a ? 0 : a,
l = t.fallbacks;
if (s++, l)
if (Array.isArray(l))
for (var c = 0; c < l.length; c++) {
var u = l[c];
for (var d in u) {
var p = u[d];
null != p && (r += "\n" + o(d + ": " + (0, i.default)(p) + ";", s))
}
} else
for (var m in l) {
var g = l[m];
null != g && (r += "\n" + o(m + ": " + (0, i.default)(g) + ";", s))
}
for (var f in t) {
var h = t[f];
null != h && "fallbacks" !== f && (r += "\n" + o(f + ": " + (0, i.default)(h) + ";", s))
}
return r || n.allowEmpty ? r = o(e + " {" + r + "\n", --s) + o("}", s) : r
};
var r, a = n(18),
i = (r = a) && r.__esModule ? r : {
default: r
};
function o(e, t) {
for (var n = "", r = 0; r < t; r++) n += " ";
return n + e
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r, a = n(42),
i = (r = a) && r.__esModule ? r : {
default: r
};
t.default = new i.default
}, function(e, t, n) {
e.exports = n(123)()
}, function(e, t, n) {
"use strict";
! function e() {
if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE) try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)
} catch (e) {
console.error(e)
}
}(), e.exports = n(59)
}, function(e, t, n) {
"use strict";
var r = Object.getOwnPropertySymbols,
a = Object.prototype.hasOwnProperty,
i = Object.prototype.propertyIsEnumerable;
e.exports = function() {
try {
if (!Object.assign) return !1;
var e = new String("abc");
if (e[5] = "de", "5" === Object.getOwnPropertyNames(e)[0]) return !1;
for (var t = {}, n = 0; n < 10; n++) t["_" + String.fromCharCode(n)] = n;
if ("0123456789" !== Object.getOwnPropertyNames(t).map(function(e) {
return t[e]
}).join("")) return !1;
var r = {};
return "abcdefghijklmnopqrst".split("").forEach(function(e) {
r[e] = e
}), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, r)).join("")
} catch (e) {
return !1
}
}() ? Object.assign : function(e, t) {
for (var n, o, s = function(e) {
if (null === e || void 0 === e) throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(e)
}(e), l = 1; l < arguments.length; l++) {
n = Object(arguments[l]);
for (var c in n) a.call(n, c) && (s[c] = n[c]);
if (r) {
o = r(n);
for (var u = 0; u < o.length; u++) i.call(n, o[u]) && (s[o[u]] = n[o[u]])
}
}
return s
}
}, function(e, t, n) {
"use strict";
var r = {};
e.exports = r
}, function(e, t, n) {
(function(e, r) {
var a = /%[sdj%]/g;
t.format = function(e) {
if (!b(e)) {
for (var t = [], n = 0; n < arguments.length; n++) t.push(s(arguments[n]));
return t.join(" ")
}
n = 1;
for (var r = arguments, i = r.length, o = String(e).replace(a, function(e) {
if ("%%" === e) return "%";
if (n >= i) return e;
switch (e) {
case "%s":
return String(r[n++]);
case "%d":
return Number(r[n++]);
case "%j":
try {
return JSON.stringify(r[n++])
} catch (e) {
return "[Circular]"
}
default:
return e
}
}), l = r[n]; n < i; l = r[++n]) f(l) || !y(l) ? o += " " + l : o += " " + s(l);
return o
}, t.deprecate = function(n, a) {
if (_(e.process)) return function() {
return t.deprecate(n, a).apply(this, arguments)
};
if (!0 === r.noDeprecation) return n;
var i = !1;
return function() {
if (!i) {
if (r.throwDeprecation) throw new Error(a);
r.traceDeprecation ? console.trace(a) : console.error(a), i = !0
}
return n.apply(this, arguments)
}
};
var i, o = {};
function s(e, n) {
var r = {
seen: [],
stylize: c
};
return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), g(n) ? r.showHidden = n : n && t._extend(r, n), _(r.showHidden) && (r.showHidden = !1), _(r.depth) && (r.depth = 2), _(r.colors) && (r.colors = !1), _(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = l), u(r, e, r.depth)
}
function l(e, t) {
var n = s.styles[t];
return n ? "[" + s.colors[n][0] + "m" + e + "[" + s.colors[n][1] + "m" : e
}
function c(e, t) {
return e
}
function u(e, n, r) {
if (e.customInspect && n && x(n.inspect) && n.inspect !== t.inspect && (!n.constructor || n.constructor.prototype !== n)) {
var a = n.inspect(r, e);
return b(a) || (a = u(e, a, r)), a
}
var i = function(e, t) {
if (_(t)) return e.stylize("undefined", "undefined");
if (b(t)) {
var n = "'" + JSON.stringify(t).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
return e.stylize(n, "string")
}
if (h(t)) return e.stylize("" + t, "number");
if (g(t)) return e.stylize("" + t, "boolean");
if (f(t)) return e.stylize("null", "null")
}(e, n);
if (i) return i;
var o, s = Object.keys(n),
l = (o = {}, s.forEach(function(e, t) {
o[e] = !0
}), o);
if (e.showHidden && (s = Object.getOwnPropertyNames(n)), S(n) && (s.indexOf("message") >= 0 || s.indexOf("description") >= 0)) return d(n);
if (0 === s.length) {
if (x(n)) {
var c = n.name ? ": " + n.name : "";
return e.stylize("[Function" + c + "]", "special")
}
if (v(n)) return e.stylize(RegExp.prototype.toString.call(n), "regexp");
if (E(n)) return e.stylize(Date.prototype.toString.call(n), "date");
if (S(n)) return d(n)
}
var y, w = "",
C = !1,
T = ["{", "}"];
(m(n) && (C = !0, T = ["[", "]"]), x(n)) && (w = " [Function" + (n.name ? ": " + n.name : "") + "]");
return v(n) && (w = " " + RegExp.prototype.toString.call(n)), E(n) && (w = " " + Date.prototype.toUTCString.call(n)), S(n) && (w = " " + d(n)), 0 !== s.length || C && 0 != n.length ? r < 0 ? v(n) ? e.stylize(RegExp.prototype.toString.call(n), "regexp") : e.stylize("[Object]", "special") : (e.seen.push(n), y = C ? function(e, t, n, r, a) {
for (var i = [], o = 0, s = t.length; o < s; ++o) N(t, String(o)) ? i.push(p(e, t, n, r, String(o), !0)) : i.push("");
return a.forEach(function(a) {
a.match(/^\d+$/) || i.push(p(e, t, n, r, a, !0))
}), i
}(e, n, r, l, s) : s.map(function(t) {
return p(e, n, r, l, t, C)
}), e.seen.pop(), function(e, t, n) {
if (e.reduce(function(e, t) {
return 0, t.indexOf("\n") >= 0 && 0, e + t.replace(/\u001b\[\d\d?m/g, "").length + 1
}, 0) > 60) return n[0] + ("" === t ? "" : t + "\n ") + " " + e.join(",\n ") + " " + n[1];
return n[0] + t + " " + e.join(", ") + " " + n[1]
}(y, w, T)) : T[0] + w + T[1]
}
function d(e) {
return "[" + Error.prototype.toString.call(e) + "]"
}
function p(e, t, n, r, a, i) {
var o, s, l;
if ((l = Object.getOwnPropertyDescriptor(t, a) || {
value: t[a]
}).get ? s = l.set ? e.stylize("[Getter/Setter]", "special") : e.stylize("[Getter]", "special") : l.set && (s = e.stylize("[Setter]", "special")), N(r, a) || (o = "[" + a + "]"), s || (e.seen.indexOf(l.value) < 0 ? (s = f(n) ? u(e, l.value, null) : u(e, l.value, n - 1)).indexOf("\n") > -1 && (s = i ? s.split("\n").map(function(e) {
return " " + e
}).join("\n").substr(2) : "\n" + s.split("\n").map(function(e) {
return " " + e
}).join("\n")) : s = e.stylize("[Circular]", "special")), _(o)) {
if (i && a.match(/^\d+$/)) return s;
(o = JSON.stringify("" + a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (o = o.substr(1, o.length - 2), o = e.stylize(o, "name")) : (o = o.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), o = e.stylize(o, "string"))
}
return o + ": " + s
}
function m(e) {
return Array.isArray(e)
}
function g(e) {
return "boolean" == typeof e
}
function f(e) {
return null === e
}
function h(e) {
return "number" == typeof e
}
function b(e) {
return "string" == typeof e
}
function _(e) {
return void 0 === e
}
function v(e) {
return y(e) && "[object RegExp]" === w(e)
}
function y(e) {
return "object" == typeof e && null !== e
}
function E(e) {
return y(e) && "[object Date]" === w(e)
}
function S(e) {
return y(e) && ("[object Error]" === w(e) || e instanceof Error)
}
function x(e) {
return "function" == typeof e
}
function w(e) {
return Object.prototype.toString.call(e)
}
function C(e) {
return e < 10 ? "0" + e.toString(10) : e.toString(10)
}
t.debuglog = function(e) {
if (_(i) && (i = r.env.NODE_DEBUG || ""), e = e.toUpperCase(), !o[e])
if (new RegExp("\\b" + e + "\\b", "i").test(i)) {
var n = r.pid;
o[e] = function() {
var r = t.format.apply(t, arguments);
console.error("%s %d: %s", e, n, r)
}
} else o[e] = function() {};
return o[e]
}, t.inspect = s, s.colors = {
bold: [1, 22],
italic: [3, 23],
underline: [4, 24],
inverse: [7, 27],
white: [37, 39],
grey: [90, 39],
black: [30, 39],
blue: [34, 39],
cyan: [36, 39],
green: [32, 39],
magenta: [35, 39],
red: [31, 39],
yellow: [33, 39]
}, s.styles = {
special: "cyan",
number: "yellow",
boolean: "yellow",
undefined: "grey",
null: "bold",
string: "green",
date: "magenta",
regexp: "red"
}, t.isArray = m, t.isBoolean = g, t.isNull = f, t.isNullOrUndefined = function(e) {
return null == e
}, t.isNumber = h, t.isString = b, t.isSymbol = function(e) {
return "symbol" == typeof e
}, t.isUndefined = _, t.isRegExp = v, t.isObject = y, t.isDate = E, t.isError = S, t.isFunction = x, t.isPrimitive = function(e) {
return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" == typeof e || void 0 === e
}, t.isBuffer = n(71);
var T = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
function N(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}
t.log = function() {
var e, n;
console.log("%s - %s", (e = new Date, n = [C(e.getHours()), C(e.getMinutes()), C(e.getSeconds())].join(":"), [e.getDate(), T[e.getMonth()], n].join(" ")), t.format.apply(t, arguments))
}, t.inherits = n(72), t._extend = function(e, t) {
if (!t || !y(t)) return e;
for (var n = Object.keys(t), r = n.length; r--;) e[n[r]] = t[n[r]];
return e
}
}).call(t, n(0), n(6))
}, function(e, t, n) {
"use strict";
t.decode = t.parse = n(73), t.encode = t.stringify = n(74)
}, function(e, t, n) {
(function(e) {
var r = n(76),
a = n(87),
i = n(88),
o = n(40),
s = t;
s.request = function(t, n) {
t = "string" == typeof t ? o.parse(t) : a(t);
var i = -1 === e.location.protocol.search(/^https?:$/) ? "http:" : "",
s = t.protocol || i,
l = t.hostname || t.host,
c = t.port,
u = t.path || "/";
l && -1 !== l.indexOf(":") && (l = "[" + l + "]"), t.url = (l ? s + "//" + l : "") + (c ? ":" + c : "") + u, t.method = (t.method || "GET").toUpperCase(), t.headers = t.headers || {};
var d = new r(t);
return n && d.on("response", n), d
}, s.get = function(e, t) {
var n = s.request(e, t);
return n.end(), n
}, s.Agent = function() {}, s.Agent.defaultMaxSockets = 4, s.STATUS_CODES = i, s.METHODS = ["CHECKOUT", "CONNECT", "COPY", "DELETE", "GET", "HEAD", "LOCK", "M-SEARCH", "MERGE", "MKACTIVITY", "MKCOL", "MOVE", "NOTIFY", "OPTIONS", "PATCH", "POST", "PROPFIND", "PROPPATCH", "PURGE", "PUT", "REPORT", "SEARCH", "SUBSCRIBE", "TRACE", "UNLOCK", "UNSUBSCRIBE"]
}).call(t, n(0))
}, function(e, t) {
var n = {}.toString;
e.exports = Array.isArray || function(e) {
return "[object Array]" == n.call(e)
}
}, function(e, t, n) {
(function(e) {
t.fetch = s(e.fetch) && s(e.ReadableStream), t.blobConstructor = !1;
try {
new Blob([new ArrayBuffer(1)]), t.blobConstructor = !0
} catch (e) {}
var n;
function r() {
if (void 0 !== n) return n;
if (e.XMLHttpRequest) {
n = new e.XMLHttpRequest;
try {
n.open("GET", e.XDomainRequest ? "/" : "https://example.com")
} catch (e) {
n = null
}
} else n = null;
return n
}
function a(e) {
var t = r();
if (!t) return !1;
try {
return t.responseType = e, t.responseType === e
} catch (e) {}
return !1
}
var i = void 0 !== e.ArrayBuffer,
o = i && s(e.ArrayBuffer.prototype.slice);
function s(e) {
return "function" == typeof e
}
t.arraybuffer = t.fetch || i && a("arraybuffer"), t.msstream = !t.fetch && o && a("ms-stream"), t.mozchunkedarraybuffer = !t.fetch && i && a("moz-chunked-arraybuffer"), t.overrideMimeType = t.fetch || !!r() && s(r().overrideMimeType), t.vbArray = s(e.VBArray), n = null
}).call(t, n(0))
}, function(e, t, n) {
(t = e.exports = n(34)).Stream = t, t.Readable = t, t.Writable = n(37), t.Duplex = n(9), t.Transform = n(39), t.PassThrough = n(85)
}, function(e, t, n) {
"use strict";
(function(t, r) {
var a = n(16);
e.exports = v;
var i, o = n(31);
v.ReadableState = _;
n(21).EventEmitter;
var s = function(e, t) {
return e.listeners(t).length
},
l = n(35),
c = n(17).Buffer,
u = t.Uint8Array || function() {};
var d = n(13);
d.inherits = n(7);
var p = n(80),
m = void 0;
m = p && p.debuglog ? p.debuglog("stream") : function() {};
var g, f = n(81),
h = n(36);
d.inherits(v, l);
var b = ["error", "close", "destroy", "pause", "resume"];
function _(e, t) {
i = i || n(9), e = e || {}, this.objectMode = !!e.objectMode, t instanceof i && (this.objectMode = this.objectMode || !!e.readableObjectMode);
var r = e.highWaterMark,
a = this.objectMode ? 16 : 16384;
this.highWaterMark = r || 0 === r ? r : a, this.highWaterMark = Math.floor(this.highWaterMark), this.buffer = new f, 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 && (g || (g = n(38).StringDecoder), this.decoder = new g(e.encoding), this.encoding = e.encoding)
}
function v(e) {
if (i = i || n(9), !(this instanceof v)) return new v(e);
this._readableState = new _(e, this), this.readable = !0, e && ("function" == typeof e.read && (this._read = e.read), "function" == typeof e.destroy && (this._destroy = e.destroy)), l.call(this)
}
function y(e, t, n, r, a) {
var i, o, s, l = e._readableState;
null === t ? (l.reading = !1, function(e, t) {
if (t.ended) return;
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, w(e)
}(e, l)) : (a || (i = function(e, t) {
var n;
r = t, c.isBuffer(r) || r instanceof u || "string" == typeof t || void 0 === t || e.objectMode || (n = new TypeError("Invalid non-string/buffer chunk"));
var r;
return n
}(l, t)), i ? e.emit("error", i) : l.objectMode || t && t.length > 0 ? ("string" == typeof t || l.objectMode || Object.getPrototypeOf(t) === c.prototype || (o = t, t = c.from(o)), r ? l.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : E(e, l, t, !0) : l.ended ? e.emit("error", new Error("stream.push() after EOF")) : (l.reading = !1, l.decoder && !n ? (t = l.decoder.write(t), l.objectMode || 0 !== t.length ? E(e, l, t, !1) : T(e, l)) : E(e, l, t, !1))) : r || (l.reading = !1));
return !(s = l).ended && (s.needReadable || s.length < s.highWaterMark || 0 === s.length)
}
function E(e, t, n, r) {
t.flowing && 0 === t.length && !t.sync ? (e.emit("data", n), e.read(0)) : (t.length += t.objectMode ? 1 : n.length, r ? t.buffer.unshift(n) : t.buffer.push(n), t.needReadable && w(e)), T(e, t)
}
Object.defineProperty(v.prototype, "destroyed", {
get: function() {
return void 0 !== this._readableState && this._readableState.destroyed
},
set: function(e) {
this._readableState && (this._readableState.destroyed = e)
}
}), v.prototype.destroy = h.destroy, v.prototype._undestroy = h.undestroy, v.prototype._destroy = function(e, t) {
this.push(null), t(e)
}, v.prototype.push = function(e, t) {
var n, r = this._readableState;
return r.objectMode ? n = !0 : "string" == typeof e && ((t = t || r.defaultEncoding) !== r.encoding && (e = c.from(e, t), t = ""), n = !0), y(this, e, t, !1, n)
}, v.prototype.unshift = function(e) {
return y(this, e, null, !0, !1)
}, v.prototype.isPaused = function() {
return !1 === this._readableState.flowing
}, v.prototype.setEncoding = function(e) {
return g || (g = n(38).StringDecoder), this._readableState.decoder = new g(e), this._readableState.encoding = e, this
};
var S = 8388608;
function x(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 = ((n = e) >= S ? n = S : (n--, n |= n >>> 1, n |= n >>> 2, n |= n >>> 4, n |= n >>> 8, n |= n >>> 16, n++), n)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0));
var n
}
function w(e) {
var t = e._readableState;
t.needReadable = !1, t.emittedReadable || (m("emitReadable", t.flowing), t.emittedReadable = !0, t.sync ? a(C, e) : C(e))
}
function C(e) {
m("emit readable"), e.emit("readable"), D(e)
}
function T(e, t) {
t.readingMore || (t.readingMore = !0, a(N, e, t))
}
function N(e, t) {
for (var n = t.length; !t.reading && !t.flowing && !t.ended && t.length < t.highWaterMark && (m("maybeReadMore read 0"), e.read(0), n !== t.length);) n = t.length;
t.readingMore = !1
}
function O(e) {
m("readable nexttick read 0"), e.read(0)
}
function M(e, t) {
t.reading || (m("resume read 0"), e.read(0)), t.resumeScheduled = !1, t.awaitDrain = 0, e.emit("resume"), D(e), t.flowing && !t.reading && e.read(0)
}
function D(e) {
var t = e._readableState;
for (m("flow", t.flowing); t.flowing && null !== e.read(););
}
function A(e, t) {
return 0 === t.length ? null : (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 = function(e, t, n) {
var r;
e < t.head.data.length ? (r = t.head.data.slice(0, e), t.head.data = t.head.data.slice(e)) : r = e === t.head.data.length ? t.shift() : n ? function(e, t) {
var n = t.head,
r = 1,
a = n.data;
e -= a.length;
for (; n = n.next;) {
var i = n.data,
o = e > i.length ? i.length : e;
if (o === i.length ? a += i : a += i.slice(0, e), 0 === (e -= o)) {
o === i.length ? (++r, n.next ? t.head = n.next : t.head = t.tail = null) : (t.head = n, n.data = i.slice(o));
break
}++r
}
return t.length -= r, a
}(e, t) : function(e, t) {
var n = c.allocUnsafe(e),
r = t.head,
a = 1;
r.data.copy(n), e -= r.data.length;
for (; r = r.next;) {
var i = r.data,
o = e > i.length ? i.length : e;
if (i.copy(n, n.length - e, 0, o), 0 === (e -= o)) {
o === i.length ? (++a, r.next ? t.head = r.next : t.head = t.tail = null) : (t.head = r, r.data = i.slice(o));
break
}++a
}
return t.length -= a, n
}(e, t);
return r
}(e, t.buffer, t.decoder), n);
var 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, a(R, t, e))
}
function R(e, t) {
e.endEmitted || 0 !== e.length || (e.endEmitted = !0, t.readable = !1, t.emit("end"))
}
function I(e, t) {
for (var n = 0, r = e.length; n < r; n++)
if (e[n] === t) return n;
return -1
}
v.prototype.read = function(e) {
m("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 m("read: emitReadable", t.length, t.ended), 0 === t.length && t.ended ? k(this) : w(this), null;
if (0 === (e = x(e, t)) && t.ended) return 0 === t.length && k(this), null;
var r, a = t.needReadable;
return m("need readable", a), (0 === t.length || t.length - e < t.highWaterMark) && m("length less than watermark", a = !0), t.ended || t.reading ? m("reading or ended", a = !1) : a && (m("do read"), t.reading = !0, t.sync = !0, 0 === t.length && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = x(n, t))), null === (r = e > 0 ? A(e, t) : null) ? (t.needReadable = !0, e = 0) : t.length -= e, 0 === t.length && (t.ended || (t.needReadable = !0), n !== e && t.ended && k(this)), null !== r && this.emit("data", r), r
}, v.prototype._read = function(e) {
this.emit("error", new Error("_read() is not implemented"))
}, v.prototype.pipe = function(e, t) {
var n = this,
i = this._readableState;
switch (i.pipesCount) {
case 0:
i.pipes = e;
break;
case 1:
i.pipes = [i.pipes, e];
break;
default:
i.pipes.push(e)
}
i.pipesCount += 1, m("pipe count=%d opts=%j", i.pipesCount, t);
var l = (!t || !1 !== t.end) && e !== r.stdout && e !== r.stderr ? u : y;
function c(t, r) {
m("onunpipe"), t === n && r && !1 === r.hasUnpiped && (r.hasUnpiped = !0, m("cleanup"), e.removeListener("close", _), e.removeListener("finish", v), e.removeListener("drain", p), e.removeListener("error", b), e.removeListener("unpipe", c), n.removeListener("end", u), n.removeListener("end", y), n.removeListener("data", h), g = !0, !i.awaitDrain || e._writableState && !e._writableState.needDrain || p())
}
function u() {
m("onend"), e.end()
}
i.endEmitted ? a(l) : n.once("end", l), e.on("unpipe", c);
var d, p = (d = n, function() {
var e = d._readableState;
m("pipeOnDrain", e.awaitDrain), e.awaitDrain && e.awaitDrain--, 0 === e.awaitDrain && s(d, "data") && (e.flowing = !0, D(d))
});
e.on("drain", p);
var g = !1;
var f = !1;
function h(t) {
m("ondata"), f = !1, !1 !== e.write(t) || f || ((1 === i.pipesCount && i.pipes === e || i.pipesCount > 1 && -1 !== I(i.pipes, e)) && !g && (m("false write response, pause", n._readableState.awaitDrain), n._readableState.awaitDrain++, f = !0), n.pause())
}
function b(t) {
m("onerror", t), y(), e.removeListener("error", b), 0 === s(e, "error") && e.emit("error", t)
}
function _() {
e.removeListener("finish", v), y()
}
function v() {
m("onfinish"), e.removeListener("close", _), y()
}
function y() {
m("unpipe"), n.unpipe(e)
}
return n.on("data", h),
function(e, t, n) {
if ("function" == typeof e.prependListener) return e.prependListener(t, n);
e._events && e._events[t] ? o(e._events[t]) ? e._events[t].unshift(n) : e._events[t] = [n, e._events[t]] : e.on(t, n)
}(e, "error", b), e.once("close", _), e.once("finish", v), e.emit("pipe", n), i.flowing || (m("pipe resume"), n.resume()), e
}, v.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 r = t.pipes,
a = t.pipesCount;
t.pipes = null, t.pipesCount = 0, t.flowing = !1;
for (var i = 0; i < a; i++) r[i].emit("unpipe", this, n);
return this
}
var o = I(t.pipes, e);
return -1 === o ? this : (t.pipes.splice(o, 1), t.pipesCount -= 1, 1 === t.pipesCount && (t.pipes = t.pipes[0]), e.emit("unpipe", this, n), this)
}, v.prototype.on = function(e, t) {
var n = l.prototype.on.call(this, e, t);
if ("data" === e) !1 !== this._readableState.flowing && this.resume();
else if ("readable" === e) {
var r = this._readableState;
r.endEmitted || r.readableListening || (r.readableListening = r.needReadable = !0, r.emittedReadable = !1, r.reading ? r.length && w(this) : a(O, this))
}
return n
}, v.prototype.addListener = v.prototype.on, v.prototype.resume = function() {
var e, t, n = this._readableState;
return n.flowing || (m("resume"), n.flowing = !0, e = this, (t = n).resumeScheduled || (t.resumeScheduled = !0, a(M, e, t))), this
}, v.prototype.pause = function() {
return m("call pause flowing=%j", this._readableState.flowing), !1 !== this._readableState.flowing && (m("pause"), this._readableState.flowing = !1, this.emit("pause")), this
}, v.prototype.wrap = function(e) {
var t = this._readableState,
n = !1,
r = this;
e.on("end", function() {
if (m("wrapped end"), t.decoder && !t.ended) {
var e = t.decoder.end();
e && e.length && r.push(e)
}
r.push(null)
}), e.on("data", function(a) {
(m("wrapped data"), t.decoder && (a = t.decoder.write(a)), !t.objectMode || null !== a && void 0 !== a) && ((t.objectMode || a && a.length) && (r.push(a) || (n = !0, e.pause())))
});
for (var a in e) void 0 === this[a] && "function" == typeof e[a] && (this[a] = function(t) {
return function() {
return e[t].apply(e, arguments)
}
}(a));
for (var i = 0; i < b.length; i++) e.on(b[i], r.emit.bind(r, b[i]));
return r._read = function(t) {
m("wrapped _read", t), n && (n = !1, e.resume())
}, r
}, v._fromList = A
}).call(t, n(0), n(6))
}, function(e, t, n) {
e.exports = n(21).EventEmitter
}, function(e, t, n) {
"use strict";
var r = n(16);
function a(e, t) {
e.emit("error", t)
}
e.exports = {
destroy: function(e, t) {
var n = this,
i = this._readableState && this._readableState.destroyed,
o = this._writableState && this._writableState.destroyed;
i || o ? t ? t(e) : !e || this._writableState && this._writableState.errorEmitted || r(a, this, e) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(e) {
!t && e ? (r(a, n, e), n._writableState && (n._writableState.errorEmitted = !0)) : t && t(e)
}))
},
undestroy: function() {
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(e, t, n) {
"use strict";
(function(t, r, a) {
var i = n(16);
function o(e) {
var t = this;
this.next = null, this.entry = null, this.finish = function() {
! function(e, t, n) {
var r = e.entry;
e.entry = null;
for (; r;) {
var a = r.callback;
t.pendingcb--, a(n), r = r.next
}
t.corkedRequestsFree ? t.corkedRequestsFree.next = e : t.corkedRequestsFree = e
}(t, e)
}
}
e.exports = _;
var s, l = !t.browser && ["v0.10", "v0.9."].indexOf(t.version.slice(0, 5)) > -1 ? r : i;
_.WritableState = b;
var c = n(13);
c.inherits = n(7);
var u = {
deprecate: n(84)
},
d = n(35),
p = n(17).Buffer,
m = a.Uint8Array || function() {};
var g, f = n(36);
function h() {}
function b(e, t) {
s = s || n(9), e = e || {}, this.objectMode = !!e.objectMode, t instanceof s && (this.objectMode = this.objectMode || !!e.writableObjectMode);
var r = e.highWaterMark,
a = this.objectMode ? 16 : 16384;
this.highWaterMark = r || 0 === r ? r : 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 c = !1 === e.decodeStrings;
this.decodeStrings = !c, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(e) {
! function(e, t) {
var n = e._writableState,
r = n.sync,
a = n.writecb;
if (m = n, m.writing = !1, m.writecb = null, m.length -= m.writelen, m.writelen = 0, t) s = e, c = n, u = r, d = t, p = a, --c.pendingcb, u ? (i(p, d), i(w, s, c), s._writableState.errorEmitted = !0, s.emit("error", d)) : (p(d), s._writableState.errorEmitted = !0, s.emit("error", d), w(s, c));
else {
var o = S(n);
o || n.corked || n.bufferProcessing || !n.bufferedRequest || E(e, n), r ? l(y, e, n, o, a) : y(e, n, o, a)
}
var s, c, u, d, p;
var m
}(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 o(this)
}
function _(e) {
if (s = s || n(9), !(g.call(_, this) || this instanceof s)) return new _(e);
this._writableState = new b(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)), d.call(this)
}
function v(e, t, n, r, a, i, o) {
t.writelen = r, t.writecb = o, t.writing = !0, t.sync = !0, n ? e._writev(a, t.onwrite) : e._write(a, i, t.onwrite), t.sync = !1
}
function y(e, t, n, r) {
var a, i;
n || (a = e, 0 === (i = t).length && i.needDrain && (i.needDrain = !1, a.emit("drain"))), t.pendingcb--, r(), w(e, t)
}
function E(e, t) {
t.bufferProcessing = !0;
var n = t.bufferedRequest;
if (e._writev && n && n.next) {
var r = t.bufferedRequestCount,
a = new Array(r),
i = t.corkedRequestsFree;
i.entry = n;
for (var s = 0, l = !0; n;) a[s] = n, n.isBuf || (l = !1), n = n.next, s += 1;
a.allBuffers = l, v(e, t, !0, t.length, a, "", i.finish), t.pendingcb++, t.lastBufferedRequest = null, i.next ? (t.corkedRequestsFree = i.next, i.next = null) : t.corkedRequestsFree = new o(t)
} else {
for (; n;) {
var c = n.chunk,
u = n.encoding,
d = n.callback;
if (v(e, t, !1, t.objectMode ? 1 : c.length, c, u, d), n = n.next, t.writing) break
}
null === n && (t.lastBufferedRequest = null)
}
t.bufferedRequestCount = 0, t.bufferedRequest = n, t.bufferProcessing = !1
}
function S(e) {
return e.ending && 0 === e.length && null === e.bufferedRequest && !e.finished && !e.writing
}
function x(e, t) {
e._final(function(n) {
t.pendingcb--, n && e.emit("error", n), t.prefinished = !0, e.emit("prefinish"), w(e, t)
})
}
function w(e, t) {
var n, r, a = S(t);
return a && (n = e, (r = t).prefinished || r.finalCalled || ("function" == typeof n._final ? (r.pendingcb++, r.finalCalled = !0, i(x, n, r)) : (r.prefinished = !0, n.emit("prefinish"))), 0 === t.pendingcb && (t.finished = !0, e.emit("finish"))), a
}
c.inherits(_, d), b.prototype.getBuffer = function() {
for (var e = this.bufferedRequest, t = []; e;) t.push(e), e = e.next;
return t
},
function() {
try {
Object.defineProperty(b.prototype, "buffer", {
get: u.deprecate(function() {
return this.getBuffer()
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
})
} catch (e) {}
}(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (g = Function.prototype[Symbol.hasInstance], Object.defineProperty(_, Symbol.hasInstance, {
value: function(e) {
return !!g.call(this, e) || e && e._writableState instanceof b
}
})) : g = function(e) {
return e instanceof this
}, _.prototype.pipe = function() {
this.emit("error", new Error("Cannot pipe, not readable"))
}, _.prototype.write = function(e, t, n) {
var r, a, o, s, l, c, u, d, g, f, b, _ = this._writableState,
y = !1,
E = (r = e, (p.isBuffer(r) || r instanceof m) && !_.objectMode);
return E && !p.isBuffer(e) && (a = e, e = p.from(a)), "function" == typeof t && (n = t, t = null), E ? t = "buffer" : t || (t = _.defaultEncoding), "function" != typeof n && (n = h), _.ended ? (g = this, f = n, b = new Error("write after end"), g.emit("error", b), i(f, b)) : (E || (o = this, s = _, c = n, u = !0, d = !1, null === (l = e) ? d = new TypeError("May not write null values to stream") : "string" == typeof l || void 0 === l || s.objectMode || (d = new TypeError("Invalid non-string/buffer chunk")), d && (o.emit("error", d), i(c, d), u = !1), u)) && (_.pendingcb++, y = function(e, t, n, r, a, i) {
if (!n) {
var o = function(e, t, n) {
e.objectMode || !1 === e.decodeStrings || "string" != typeof t || (t = p.from(t, n));
return t
}(t, r, a);
r !== o && (n = !0, a = "buffer", r = o)
}
var s = t.objectMode ? 1 : r.length;
t.length += s;
var l = t.length < t.highWaterMark;
l || (t.needDrain = !0);
if (t.writing || t.corked) {
var c = t.lastBufferedRequest;
t.lastBufferedRequest = {
chunk: r,
encoding: a,
isBuf: n,
callback: i,
next: null
}, c ? c.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1
} else v(e, t, !1, s, r, a, i);
return l
}(this, _, E, e, t, n)), y
}, _.prototype.cork = function() {
this._writableState.corked++
}, _.prototype.uncork = function() {
var e = this._writableState;
e.corked && (e.corked--, e.writing || e.corked || e.finished || e.bufferProcessing || !e.bufferedRequest || E(this, e))
}, _.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
}, _.prototype._write = function(e, t, n) {
n(new Error("_write() is not implemented"))
}, _.prototype._writev = null, _.prototype.end = function(e, t, n) {
var r = 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), r.corked && (r.corked = 1, this.uncork()), r.ending || r.finished || function(e, t, n) {
t.ending = !0, w(e, t), n && (t.finished ? i(n) : e.once("finish", n));
t.ended = !0, e.writable = !1
}(this, r, n)
}, Object.defineProperty(_.prototype, "destroyed", {
get: function() {
return void 0 !== this._writableState && this._writableState.destroyed
},
set: function(e) {
this._writableState && (this._writableState.destroyed = e)
}
}), _.prototype.destroy = f.destroy, _.prototype._undestroy = f.undestroy, _.prototype._destroy = function(e, t) {
this.end(), t(e)
}
}).call(t, n(6), n(82).setImmediate, n(0))
}, function(e, t, n) {
"use strict";
var r = n(17).Buffer,
a = r.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
}
};
function i(e) {
var t;
switch (this.encoding = function(e) {
var t = function(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
}
}(e);
if ("string" != typeof t && (r.isEncoding === a || !a(e))) throw new Error("Unknown encoding: " + e);
return t || e
}(e), this.encoding) {
case "utf16le":
this.text = l, this.end = c, t = 4;
break;
case "utf8":
this.fillLast = s, t = 4;
break;
case "base64":
this.text = u, this.end = d, t = 3;
break;
default:
return this.write = p, void(this.end = m)
}
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = r.allocUnsafe(t)
}
function o(e) {
return e <= 127 ? 0 : e >> 5 == 6 ? 2 : e >> 4 == 14 ? 3 : e >> 3 == 30 ? 4 : -1
}
function s(e) {
var t = this.lastTotal - this.lastNeed,
n = function(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)
}
}(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 l(e, t) {
if ((e.length - t) % 2 == 0) {
var n = e.toString("utf16le", t);
if (n) {
var r = n.charCodeAt(n.length - 1);
if (r >= 55296 && r <= 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 c(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 u(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 d(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) : ""
}
t.StringDecoder = i, i.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 || ""
}, i.prototype.end = function(e) {
var t = e && e.length ? this.write(e) : "";
return this.lastNeed ? t + "�".repeat(this.lastTotal - this.lastNeed) : t
}, i.prototype.text = function(e, t) {
var n = function(e, t, n) {
var r = t.length - 1;
if (r < n) return 0;
var a = o(t[r]);
if (a >= 0) return a > 0 && (e.lastNeed = a - 1), a;
if (--r < n) return 0;
if ((a = o(t[r])) >= 0) return a > 0 && (e.lastNeed = a - 2), a;
if (--r < n) return 0;
if ((a = o(t[r])) >= 0) return a > 0 && (2 === a ? a = 0 : e.lastNeed = a - 3), a;
return 0
}(this, e, t);
if (!this.lastNeed) return e.toString("utf8", t);
this.lastTotal = n;
var r = e.length - (n - this.lastNeed);
return e.copy(this.lastChar, 0, r), e.toString("utf8", t, r)
}, i.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, n) {
"use strict";
e.exports = o;
var r = n(9),
a = n(13);
function i(e) {
this.afterTransform = function(t, n) {
return function(e, t, n) {
var r = e._transformState;
r.transforming = !1;
var a = r.writecb;
if (!a) return e.emit("error", new Error("write callback called multiple times"));
r.writechunk = null, r.writecb = null, null !== n && void 0 !== n && e.push(n);
a(t);
var i = e._readableState;
i.reading = !1, (i.needReadable || i.length < i.highWaterMark) && e._read(i.highWaterMark)
}(e, t, n)
}, this.needTransform = !1, this.transforming = !1, this.writecb = null, this.writechunk = null, this.writeencoding = null
}
function o(e) {
if (!(this instanceof o)) return new o(e);
r.call(this, e), this._transformState = new i(this);
var t = this;
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.once("prefinish", function() {
"function" == typeof this._flush ? this._flush(function(e, n) {
s(t, e, n)
}) : s(t)
})
}
function s(e, t, n) {
if (t) return e.emit("error", t);
null !== n && void 0 !== n && e.push(n);
var r = e._writableState,
a = e._transformState;
if (r.length) throw new Error("Calling transform done when ws.length != 0");
if (a.transforming) throw new Error("Calling transform done when still transforming");
return e.push(null)
}
a.inherits = n(7), a.inherits(o, r), o.prototype.push = function(e, t) {
return this._transformState.needTransform = !1, r.prototype.push.call(this, e, t)
}, o.prototype._transform = function(e, t, n) {
throw new Error("_transform() is not implemented")
}, o.prototype._write = function(e, t, n) {
var r = this._transformState;
if (r.writecb = n, r.writechunk = e, r.writeencoding = t, !r.transforming) {
var a = this._readableState;
(r.needTransform || a.needReadable || a.length < a.highWaterMark) && this._read(a.highWaterMark)
}
}, o.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
}, o.prototype._destroy = function(e, t) {
var n = this;
r.prototype._destroy.call(this, e, function(e) {
t(e), n.emit("close")
})
}
}, function(e, t, n) {
"use strict";
var r = n(89),
a = n(90);
function i() {
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null
}
t.parse = v, t.resolve = function(e, t) {
return v(e, !1, !0).resolve(t)
}, t.resolveObject = function(e, t) {
return e ? v(e, !1, !0).resolveObject(t) : t
}, t.format = function(e) {
a.isString(e) && (e = v(e));
return e instanceof i ? e.format() : i.prototype.format.call(e)
}, t.Url = i;
var o = /^([a-z0-9.+-]+:)/i,
s = /:[0-9]*$/,
l = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
c = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", "\n", "\t"]),
u = ["'"].concat(c),
d = ["%", "/", "?", ";", "#"].concat(u),
p = ["/", "?", "#"],
m = /^[+a-z0-9A-Z_-]{0,63}$/,
g = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
f = {
javascript: !0,
"javascript:": !0
},
h = {
javascript: !0,
"javascript:": !0
},
b = {
http: !0,
https: !0,
ftp: !0,
gopher: !0,
file: !0,
"http:": !0,
"https:": !0,
"ftp:": !0,
"gopher:": !0,
"file:": !0
},
_ = n(29);
function v(e, t, n) {
if (e && a.isObject(e) && e instanceof i) return e;
var r = new i;
return r.parse(e, t, n), r
}
i.prototype.parse = function(e, t, n) {
if (!a.isString(e)) throw new TypeError("Parameter 'url' must be a string, not " + typeof e);
var i = e.indexOf("?"),
s = -1 !== i && i < e.indexOf("#") ? "?" : "#",
c = e.split(s);
c[0] = c[0].replace(/\\/g, "/");
var v = e = c.join(s);
if (v = v.trim(), !n && 1 === e.split("#").length) {
var y = l.exec(v);
if (y) return this.path = v, this.href = v, this.pathname = y[1], y[2] ? (this.search = y[2], this.query = t ? _.parse(this.search.substr(1)) : this.search.substr(1)) : t && (this.search = "", this.query = {}), this
}
var E = o.exec(v);
if (E) {
var S = (E = E[0]).toLowerCase();
this.protocol = S, v = v.substr(E.length)
}
if (n || E || v.match(/^\/\/[^@\/]+@[^@\/]+/)) {
var x = "//" === v.substr(0, 2);
!x || E && h[E] || (v = v.substr(2), this.slashes = !0)
}
if (!h[E] && (x || E && !b[E])) {
for (var w, C, T = -1, N = 0; N < p.length; N++) {
-1 !== (O = v.indexOf(p[N])) && (-1 === T || O < T) && (T = O)
} - 1 !== (C = -1 === T ? v.lastIndexOf("@") : v.lastIndexOf("@", T)) && (w = v.slice(0, C), v = v.slice(C + 1), this.auth = decodeURIComponent(w)), T = -1;
for (N = 0; N < d.length; N++) {
var O; - 1 !== (O = v.indexOf(d[N])) && (-1 === T || O < T) && (T = O)
} - 1 === T && (T = v.length), this.host = v.slice(0, T), v = v.slice(T), this.parseHost(), this.hostname = this.hostname || "";
var M = "[" === this.hostname[0] && "]" === this.hostname[this.hostname.length - 1];
if (!M)
for (var D = this.hostname.split(/\./), A = (N = 0, D.length); N < A; N++) {
var k = D[N];
if (k && !k.match(m)) {
for (var R = "", I = 0, L = k.length; I < L; I++) k.charCodeAt(I) > 127 ? R += "x" : R += k[I];
if (!R.match(m)) {
var P = D.slice(0, N),
F = D.slice(N + 1),
B = k.match(g);
B && (P.push(B[1]), F.unshift(B[2])), F.length && (v = "/" + F.join(".") + v), this.hostname = P.join(".");
break
}
}
}
this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), M || (this.hostname = r.toASCII(this.hostname));
var U = this.port ? ":" + this.port : "",
G = this.hostname || "";
this.host = G + U, this.href += this.host, M && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), "/" !== v[0] && (v = "/" + v))
}
if (!f[S])
for (N = 0, A = u.length; N < A; N++) {
var q = u[N];
if (-1 !== v.indexOf(q)) {
var z = encodeURIComponent(q);
z === q && (z = escape(q)), v = v.split(q).join(z)
}
}
var j = v.indexOf("#"); - 1 !== j && (this.hash = v.substr(j), v = v.slice(0, j));
var H = v.indexOf("?");
if (-1 !== H ? (this.search = v.substr(H), this.query = v.substr(H + 1), t && (this.query = _.parse(this.query)), v = v.slice(0, H)) : t && (this.search = "", this.query = {}), v && (this.pathname = v), b[S] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
U = this.pathname || "";
var $ = this.search || "";
this.path = U + $
}
return this.href = this.format(), this
}, i.prototype.format = function() {
var e = this.auth || "";
e && (e = (e = encodeURIComponent(e)).replace(/%3A/i, ":"), e += "@");
var t = this.protocol || "",
n = this.pathname || "",
r = this.hash || "",
i = !1,
o = "";
this.host ? i = e + this.host : this.hostname && (i = e + (-1 === this.hostname.indexOf(":") ? this.hostname : "[" + this.hostname + "]"), this.port && (i += ":" + this.port)), this.query && a.isObject(this.query) && Object.keys(this.query).length && (o = _.stringify(this.query));
var s = this.search || o && "?" + o || "";
return t && ":" !== t.substr(-1) && (t += ":"), this.slashes || (!t || b[t]) && !1 !== i ? (i = "//" + (i || ""), n && "/" !== n.charAt(0) && (n = "/" + n)) : i || (i = ""), r && "#" !== r.charAt(0) && (r = "#" + r), s && "?" !== s.charAt(0) && (s = "?" + s), t + i + (n = n.replace(/[?#]/g, function(e) {
return encodeURIComponent(e)
})) + (s = s.replace("#", "%23")) + r
}, i.prototype.resolve = function(e) {
return this.resolveObject(v(e, !1, !0)).format()
}, i.prototype.resolveObject = function(e) {
if (a.isString(e)) {
var t = new i;
t.parse(e, !1, !0), e = t
}
for (var n = new i, r = Object.keys(this), o = 0; o < r.length; o++) {
var s = r[o];
n[s] = this[s]
}
if (n.hash = e.hash, "" === e.href) return n.href = n.format(), n;
if (e.slashes && !e.protocol) {
for (var l = Object.keys(e), c = 0; c < l.length; c++) {
var u = l[c];
"protocol" !== u && (n[u] = e[u])
}
return b[n.protocol] && n.hostname && !n.pathname && (n.path = n.pathname = "/"), n.href = n.format(), n
}
if (e.protocol && e.protocol !== n.protocol) {
if (!b[e.protocol]) {
for (var d = Object.keys(e), p = 0; p < d.length; p++) {
var m = d[p];
n[m] = e[m]
}
return n.href = n.format(), n
}
if (n.protocol = e.protocol, e.host || h[e.protocol]) n.pathname = e.pathname;
else {
for (var g = (e.pathname || "").split("/"); g.length && !(e.host = g.shift()););
e.host || (e.host = ""), e.hostname || (e.hostname = ""), "" !== g[0] && g.unshift(""), g.length < 2 && g.unshift(""), n.pathname = g.join("/")
}
if (n.search = e.search, n.query = e.query, n.host = e.host || "", n.auth = e.auth, n.hostname = e.hostname || e.host, n.port = e.port, n.pathname || n.search) {
var f = n.pathname || "",
_ = n.search || "";
n.path = f + _
}
return n.slashes = n.slashes || e.slashes, n.href = n.format(), n
}
var v = n.pathname && "/" === n.pathname.charAt(0),
y = e.host || e.pathname && "/" === e.pathname.charAt(0),
E = y || v || n.host && e.pathname,
S = E,
x = n.pathname && n.pathname.split("/") || [],
w = (g = e.pathname && e.pathname.split("/") || [], n.protocol && !b[n.protocol]);
if (w && (n.hostname = "", n.port = null, n.host && ("" === x[0] ? x[0] = n.host : x.unshift(n.host)), n.host = "", e.protocol && (e.hostname = null, e.port = null, e.host && ("" === g[0] ? g[0] = e.host : g.unshift(e.host)), e.host = null), E = E && ("" === g[0] || "" === x[0])), y) n.host = e.host || "" === e.host ? e.host : n.host, n.hostname = e.hostname || "" === e.hostname ? e.hostname : n.hostname, n.search = e.search, n.query = e.query, x = g;
else if (g.length) x || (x = []), x.pop(), x = x.concat(g), n.search = e.search, n.query = e.query;
else if (!a.isNullOrUndefined(e.search)) {
if (w) n.hostname = n.host = x.shift(), (M = !!(n.host && n.host.indexOf("@") > 0) && n.host.split("@")) && (n.auth = M.shift(), n.host = n.hostname = M.shift());
return n.search = e.search, n.query = e.query, a.isNull(n.pathname) && a.isNull(n.search) || (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.href = n.format(), n
}
if (!x.length) return n.pathname = null, n.search ? n.path = "/" + n.search : n.path = null, n.href = n.format(), n;
for (var C = x.slice(-1)[0], T = (n.host || e.host || x.length > 1) && ("." === C || ".." === C) || "" === C, N = 0, O = x.length; O >= 0; O--) "." === (C = x[O]) ? x.splice(O, 1) : ".." === C ? (x.splice(O, 1), N++) : N && (x.splice(O, 1), N--);
if (!E && !S)
for (; N--; N) x.unshift("..");
!E || "" === x[0] || x[0] && "/" === x[0].charAt(0) || x.unshift(""), T && "/" !== x.join("/").substr(-1) && x.push("");
var M, D = "" === x[0] || x[0] && "/" === x[0].charAt(0);
w && (n.hostname = n.host = D ? "" : x.length ? x.shift() : "", (M = !!(n.host && n.host.indexOf("@") > 0) && n.host.split("@")) && (n.auth = M.shift(), n.host = n.hostname = M.shift()));
return (E = E || n.host && x.length) && !D && x.unshift(""), x.length ? n.pathname = x.join("/") : (n.pathname = null, n.path = null), a.isNull(n.pathname) && a.isNull(n.search) || (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.auth = e.auth || n.auth, n.slashes = n.slashes || e.slashes, n.href = n.format(), n
}, i.prototype.parseHost = function() {
var e = this.host,
t = s.exec(e);
t && (":" !== (t = t[0]) && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e)
}
}, 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";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}();
var a = function() {
function e() {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.registry = []
}
return r(e, [{
key: "add",
value: function(e) {
var t = this.registry,
n = e.options.index;
if (-1 === t.indexOf(e))
if (0 === t.length || n >= this.index) t.push(e);
else
for (var r = 0; r < t.length; r++)
if (t[r].options.index > n) return void t.splice(r, 0, e)
}
}, {
key: "reset",
value: function() {
this.registry = []
}
}, {
key: "remove",
value: function(e) {
var t = this.registry.indexOf(e);
this.registry.splice(t, 1)
}
}, {
key: "toString",
value: function(e) {
return this.registry.filter(function(e) {
return e.attached
}).map(function(t) {
return t.toString(e)
}).join("\n")
}
}, {
key: "index",
get: function() {
return 0 === this.registry.length ? 0 : this.registry[this.registry.length - 1].options.index
}
}]), e
}();
t.default = a
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r, a = n(97),
i = (r = a) && r.__esModule ? r : {
default: r
};
t.default = function(e) {
return e && e[i.default] && e === e[i.default]()
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e, t) {
e.renderable = t, e.rules && t.cssRules && e.rules.link(t.cssRules)
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = i(n(8)),
a = (i(n(46)), i(n(101)));
function i(e) {
return e && e.__esModule ? e : {
default: e
}
}
t.default = function() {
var e = 0;
return function(t, n) {
(e += 1) > 1e10 && (0, r.default)(!1, "[JSS] You might have a memory leak. Rule counter is at %s.", e);
var i = "c",
o = "";
return n && (i = n.options.classNamePrefix || "c", null != n.options.jss.id && (o += n.options.jss.id)), "" + i + a.default+o + e
}
}
}, function(e, t, n) {
"use strict";
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 r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
},
a = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
i = s(n(44)),
o = s(n(14));
function s(e) {
return e && e.__esModule ? e : {
default: e
}
}
var l = function() {
function e(t, n) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.attached = !1, this.deployed = !1, this.linked = !1, this.classes = {}, this.options = r({}, n, {
sheet: this,
parent: this,
classes: this.classes
}), this.renderer = new n.Renderer(this), this.rules = new o.default(this.options);
for (var a in t) this.rules.add(a, t[a]);
this.rules.process()
}
return a(e, [{
key: "attach",
value: function() {
return this.attached ? this : (this.deployed || this.deploy(), this.renderer.attach(), !this.linked && this.options.link && this.link(), this.attached = !0, this)
}
}, {
key: "detach",
value: function() {
return this.attached ? (this.renderer.detach(), this.attached = !1, this) : this
}
}, {
key: "addRule",
value: function(e, t, n) {
var r = this.queue;
this.attached && !r && (this.queue = []);
var a = this.rules.add(e, t, n);
return this.options.jss.plugins.onProcessRule(a), this.attached ? this.deployed ? (r ? r.push(a) : (this.insertRule(a), this.queue && (this.queue.forEach(this.insertRule, this), this.queue = void 0)), a) : a : (this.deployed = !1, a)
}
}, {
key: "insertRule",
value: function(e) {
var t = this.renderer.insertRule(e);
t && this.options.link && (0, i.default)(e, t)
}
}, {
key: "addRules",
value: function(e, t) {
var n = [];
for (var r in e) n.push(this.addRule(r, e[r], t));
return n
}
}, {
key: "getRule",
value: function(e) {
return this.rules.get(e)
}
}, {
key: "deleteRule",
value: function(e) {
var t = this.rules.get(e);
return !!t && (this.rules.remove(t), !this.attached || !t.renderable || this.renderer.deleteRule(t.renderable))
}
}, {
key: "indexOf",
value: function(e) {
return this.rules.indexOf(e)
}
}, {
key: "deploy",
value: function() {
return this.renderer.deploy(), this.deployed = !0, this
}
}, {
key: "link",
value: function() {
var e = this.renderer.getRules();
return e && this.rules.link(e), this.linked = !0, this
}
}, {
key: "update",
value: function(e, t) {
return this.rules.update(e, t), this
}
}, {
key: "toString",
value: function(e) {
return this.rules.toString(e)
}
}]), e
}();
t.default = l
}, function(e, t, n) {
"use strict";
e.exports = {
aliceblue: [240, 248, 255],
antiquewhite: [250, 235, 215],
aqua: [0, 255, 255],
aquamarine: [127, 255, 212],
azure: [240, 255, 255],
beige: [245, 245, 220],
bisque: [255, 228, 196],
black: [0, 0, 0],
blanchedalmond: [255, 235, 205],
blue: [0, 0, 255],
blueviolet: [138, 43, 226],
brown: [165, 42, 42],
burlywood: [222, 184, 135],
cadetblue: [95, 158, 160],
chartreuse: [127, 255, 0],
chocolate: [210, 105, 30],
coral: [255, 127, 80],
cornflowerblue: [100, 149, 237],
cornsilk: [255, 248, 220],
crimson: [220, 20, 60],
cyan: [0, 255, 255],
darkblue: [0, 0, 139],
darkcyan: [0, 139, 139],
darkgoldenrod: [184, 134, 11],
darkgray: [169, 169, 169],
darkgreen: [0, 100, 0],
darkgrey: [169, 169, 169],
darkkhaki: [189, 183, 107],
darkmagenta: [139, 0, 139],
darkolivegreen: [85, 107, 47],
darkorange: [255, 140, 0],
darkorchid: [153, 50, 204],
darkred: [139, 0, 0],
darksalmon: [233, 150, 122],
darkseagreen: [143, 188, 143],
darkslateblue: [72, 61, 139],
darkslategray: [47, 79, 79],
darkslategrey: [47, 79, 79],
darkturquoise: [0, 206, 209],
darkviolet: [148, 0, 211],
deeppink: [255, 20, 147],
deepskyblue: [0, 191, 255],
dimgray: [105, 105, 105],
dimgrey: [105, 105, 105],
dodgerblue: [30, 144, 255],
firebrick: [178, 34, 34],
floralwhite: [255, 250, 240],
forestgreen: [34, 139, 34],
fuchsia: [255, 0, 255],
gainsboro: [220, 220, 220],
ghostwhite: [248, 248, 255],
gold: [255, 215, 0],
goldenrod: [218, 165, 32],
gray: [128, 128, 128],
green: [0, 128, 0],
greenyellow: [173, 255, 47],
grey: [128, 128, 128],
honeydew: [240, 255, 240],
hotpink: [255, 105, 180],
indianred: [205, 92, 92],
indigo: [75, 0, 130],
ivory: [255, 255, 240],
khaki: [240, 230, 140],
lavender: [230, 230, 250],
lavenderblush: [255, 240, 245],
lawngreen: [124, 252, 0],
lemonchiffon: [255, 250, 205],
lightblue: [173, 216, 230],
lightcoral: [240, 128, 128],
lightcyan: [224, 255, 255],
lightgoldenrodyellow: [250, 250, 210],
lightgray: [211, 211, 211],
lightgreen: [144, 238, 144],
lightgrey: [211, 211, 211],
lightpink: [255, 182, 193],
lightsalmon: [255, 160, 122],
lightseagreen: [32, 178, 170],
lightskyblue: [135, 206, 250],
lightslategray: [119, 136, 153],
lightslategrey: [119, 136, 153],
lightsteelblue: [176, 196, 222],
lightyellow: [255, 255, 224],
lime: [0, 255, 0],
limegreen: [50, 205, 50],
linen: [250, 240, 230],
magenta: [255, 0, 255],
maroon: [128, 0, 0],
mediumaquamarine: [102, 205, 170],
mediumblue: [0, 0, 205],
mediumorchid: [186, 85, 211],
mediumpurple: [147, 112, 219],
mediumseagreen: [60, 179, 113],
mediumslateblue: [123, 104, 238],
mediumspringgreen: [0, 250, 154],
mediumturquoise: [72, 209, 204],
mediumvioletred: [199, 21, 133],
midnightblue: [25, 25, 112],
mintcream: [245, 255, 250],
mistyrose: [255, 228, 225],
moccasin: [255, 228, 181],
navajowhite: [255, 222, 173],
navy: [0, 0, 128],
oldlace: [253, 245, 230],
olive: [128, 128, 0],
olivedrab: [107, 142, 35],
orange: [255, 165, 0],
orangered: [255, 69, 0],
orchid: [218, 112, 214],
palegoldenrod: [238, 232, 170],
palegreen: [152, 251, 152],
paleturquoise: [175, 238, 238],
palevioletred: [219, 112, 147],
papayawhip: [255, 239, 213],
peachpuff: [255, 218, 185],
peru: [205, 133, 63],
pink: [255, 192, 203],
plum: [221, 160, 221],
powderblue: [176, 224, 230],
purple: [128, 0, 128],
rebeccapurple: [102, 51, 153],
red: [255, 0, 0],
rosybrown: [188, 143, 143],
royalblue: [65, 105, 225],
saddlebrown: [139, 69, 19],
salmon: [250, 128, 114],
sandybrown: [244, 164, 96],
seagreen: [46, 139, 87],
seashell: [255, 245, 238],
sienna: [160, 82, 45],
silver: [192, 192, 192],
skyblue: [135, 206, 235],
slateblue: [106, 90, 205],
slategray: [112, 128, 144],
slategrey: [112, 128, 144],
snow: [255, 250, 250],
springgreen: [0, 255, 127],
steelblue: [70, 130, 180],
tan: [210, 180, 140],
teal: [0, 128, 128],
thistle: [216, 191, 216],
tomato: [255, 99, 71],
turquoise: [64, 224, 208],
violet: [238, 130, 238],
wheat: [245, 222, 179],
white: [255, 255, 255],
whitesmoke: [245, 245, 245],
yellow: [255, 255, 0],
yellowgreen: [154, 205, 50]
}
}, function(e, t, n) {
var r = n(47),
a = {};
for (var i in r) r.hasOwnProperty(i) && (a[r[i]] = i);
var o = e.exports = {
rgb: {
channels: 3,
labels: "rgb"
},
hsl: {
channels: 3,
labels: "hsl"
},
hsv: {
channels: 3,
labels: "hsv"
},
hwb: {
channels: 3,
labels: "hwb"
},
cmyk: {
channels: 4,
labels: "cmyk"
},
xyz: {
channels: 3,
labels: "xyz"
},
lab: {
channels: 3,
labels: "lab"
},
lch: {
channels: 3,
labels: "lch"
},
hex: {
channels: 1,
labels: ["hex"]
},
keyword: {
channels: 1,
labels: ["keyword"]
},
ansi16: {
channels: 1,
labels: ["ansi16"]
},
ansi256: {
channels: 1,
labels: ["ansi256"]
},
hcg: {
channels: 3,
labels: ["h", "c", "g"]
},
apple: {
channels: 3,
labels: ["r16", "g16", "b16"]
},
gray: {
channels: 1,
labels: ["gray"]
}
};
for (var s in o)
if (o.hasOwnProperty(s)) {
if (!("channels" in o[s])) throw new Error("missing channels property: " + s);
if (!("labels" in o[s])) throw new Error("missing channel labels property: " + s);
if (o[s].labels.length !== o[s].channels) throw new Error("channel and label counts mismatch: " + s);
var l = o[s].channels,
c = o[s].labels;
delete o[s].channels, delete o[s].labels, Object.defineProperty(o[s], "channels", {
value: l
}), Object.defineProperty(o[s], "labels", {
value: c
})
}
o.rgb.hsl = function(e) {
var t, n, r = e[0] / 255,
a = e[1] / 255,
i = e[2] / 255,
o = Math.min(r, a, i),
s = Math.max(r, a, i),
l = s - o;
return s === o ? t = 0 : r === s ? t = (a - i) / l : a === s ? t = 2 + (i - r) / l : i === s && (t = 4 + (r - a) / l), (t = Math.min(60 * t, 360)) < 0 && (t += 360), n = (o + s) / 2, [t, 100 * (s === o ? 0 : n <= .5 ? l / (s + o) : l / (2 - s - o)), 100 * n]
}, o.rgb.hsv = function(e) {
var t, n, r = e[0],
a = e[1],
i = e[2],
o = Math.min(r, a, i),
s = Math.max(r, a, i),
l = s - o;
return n = 0 === s ? 0 : l / s * 1e3 / 10, s === o ? t = 0 : r === s ? t = (a - i) / l : a === s ? t = 2 + (i - r) / l : i === s && (t = 4 + (r - a) / l), (t = Math.min(60 * t, 360)) < 0 && (t += 360), [t, n, s / 255 * 1e3 / 10]
}, o.rgb.hwb = function(e) {
var t = e[0],
n = e[1],
r = e[2];
return [o.rgb.hsl(e)[0], 100 * (1 / 255 * Math.min(t, Math.min(n, r))), 100 * (r = 1 - 1 / 255 * Math.max(t, Math.max(n, r)))]
}, o.rgb.cmyk = function(e) {
var t, n = e[0] / 255,
r = e[1] / 255,
a = e[2] / 255;
return [100 * ((1 - n - (t = Math.min(1 - n, 1 - r, 1 - a))) / (1 - t) || 0), 100 * ((1 - r - t) / (1 - t) || 0), 100 * ((1 - a - t) / (1 - t) || 0), 100 * t]
}, o.rgb.keyword = function(e) {
var t = a[e];
if (t) return t;
var n, i, o, s = 1 / 0;
for (var l in r)
if (r.hasOwnProperty(l)) {
var c = r[l],
u = (i = e, o = c, Math.pow(i[0] - o[0], 2) + Math.pow(i[1] - o[1], 2) + Math.pow(i[2] - o[2], 2));
u < s && (s = u, n = l)
}
return n
}, o.keyword.rgb = function(e) {
return r[e]
}, o.rgb.xyz = function(e) {
var t = e[0] / 255,
n = e[1] / 255,
r = e[2] / 255;
return [100 * (.4124 * (t = t > .04045 ? Math.pow((t + .055) / 1.055, 2.4) : t / 12.92) + .3576 * (n = n > .04045 ? Math.pow((n + .055) / 1.055, 2.4) : n / 12.92) + .1805 * (r = r > .04045 ? Math.pow((r + .055) / 1.055, 2.4) : r / 12.92)), 100 * (.2126 * t + .7152 * n + .0722 * r), 100 * (.0193 * t + .1192 * n + .9505 * r)]
}, o.rgb.lab = function(e) {
var t = o.rgb.xyz(e),
n = t[0],
r = t[1],
a = t[2];
return r /= 100, a /= 108.883, n = (n /= 95.047) > .008856 ? Math.pow(n, 1 / 3) : 7.787 * n + 16 / 116, [116 * (r = r > .008856 ? Math.pow(r, 1 / 3) : 7.787 * r + 16 / 116) - 16, 500 * (n - r), 200 * (r - (a = a > .008856 ? Math.pow(a, 1 / 3) : 7.787 * a + 16 / 116))]
}, o.hsl.rgb = function(e) {
var t, n, r, a, i, o = e[0] / 360,
s = e[1] / 100,
l = e[2] / 100;
if (0 === s) return [i = 255 * l, i, i];
t = 2 * l - (n = l < .5 ? l * (1 + s) : l + s - l * s), a = [0, 0, 0];
for (var c = 0; c < 3; c++)(r = o + 1 / 3 * -(c - 1)) < 0 && r++, r > 1 && r--, i = 6 * r < 1 ? t + 6 * (n - t) * r : 2 * r < 1 ? n : 3 * r < 2 ? t + (n - t) * (2 / 3 - r) * 6 : t, a[c] = 255 * i;
return a
}, o.hsl.hsv = function(e) {
var t = e[0],
n = e[1] / 100,
r = e[2] / 100,
a = n,
i = Math.max(r, .01);
return n *= (r *= 2) <= 1 ? r : 2 - r, a *= i <= 1 ? i : 2 - i, [t, 100 * (0 === r ? 2 * a / (i + a) : 2 * n / (r + n)), 100 * ((r + n) / 2)]
}, o.hsv.rgb = function(e) {
var t = e[0] / 60,
n = e[1] / 100,
r = e[2] / 100,
a = Math.floor(t) % 6,
i = t - Math.floor(t),
o = 255 * r * (1 - n),
s = 255 * r * (1 - n * i),
l = 255 * r * (1 - n * (1 - i));
switch (r *= 255, a) {
case 0:
return [r, l, o];
case 1:
return [s, r, o];
case 2:
return [o, r, l];
case 3:
return [o, s, r];
case 4:
return [l, o, r];
case 5:
return [r, o, s]
}
}, o.hsv.hsl = function(e) {
var t, n, r, a = e[0],
i = e[1] / 100,
o = e[2] / 100,
s = Math.max(o, .01);
return r = (2 - i) * o, n = i * s, [a, 100 * (n = (n /= (t = (2 - i) * s) <= 1 ? t : 2 - t) || 0), 100 * (r /= 2)]
}, o.hwb.rgb = function(e) {
var t, n, r, a, i, o, s, l = e[0] / 360,
c = e[1] / 100,
u = e[2] / 100,
d = c + u;
switch (d > 1 && (c /= d, u /= d), n = 1 - u, r = 6 * l - (t = Math.floor(6 * l)), 0 != (1 & t) && (r = 1 - r), a = c + r * (n - c), t) {
default:
case 6:
case 0:
i = n,
o = a,
s = c;
break;
case 1:
i = a,
o = n,
s = c;
break;
case 2:
i = c,
o = n,
s = a;
break;
case 3:
i = c,
o = a,
s = n;
break;
case 4:
i = a,
o = c,
s = n;
break;
case 5:
i = n,
o = c,
s = a
}
return [255 * i, 255 * o, 255 * s]
}, o.cmyk.rgb = function(e) {
var t = e[0] / 100,
n = e[1] / 100,
r = e[2] / 100,
a = e[3] / 100;
return [255 * (1 - Math.min(1, t * (1 - a) + a)), 255 * (1 - Math.min(1, n * (1 - a) + a)), 255 * (1 - Math.min(1, r * (1 - a) + a))]
}, o.xyz.rgb = function(e) {
var t, n, r, a = e[0] / 100,
i = e[1] / 100,
o = e[2] / 100;
return n = -.9689 * a + 1.8758 * i + .0415 * o, r = .0557 * a + -.204 * i + 1.057 * o, t = (t = 3.2406 * a + -1.5372 * i + -.4986 * o) > .0031308 ? 1.055 * Math.pow(t, 1 / 2.4) - .055 : 12.92 * t, n = n > .0031308 ? 1.055 * Math.pow(n, 1 / 2.4) - .055 : 12.92 * n, r = r > .0031308 ? 1.055 * Math.pow(r, 1 / 2.4) - .055 : 12.92 * r, [255 * (t = Math.min(Math.max(0, t), 1)), 255 * (n = Math.min(Math.max(0, n), 1)), 255 * (r = Math.min(Math.max(0, r), 1))]
}, o.xyz.lab = function(e) {
var t = e[0],
n = e[1],
r = e[2];
return n /= 100, r /= 108.883, t = (t /= 95.047) > .008856 ? Math.pow(t, 1 / 3) : 7.787 * t + 16 / 116, [116 * (n = n > .008856 ? Math.pow(n, 1 / 3) : 7.787 * n + 16 / 116) - 16, 500 * (t - n), 200 * (n - (r = r > .008856 ? Math.pow(r, 1 / 3) : 7.787 * r + 16 / 116))]
}, o.lab.xyz = function(e) {
var t, n, r, a = e[0],
i = e[1],
o = e[2];
t = i / 500 + (n = (a + 16) / 116), r = n - o / 200;
var s = Math.pow(n, 3),
l = Math.pow(t, 3),
c = Math.pow(r, 3);
return n = s > .008856 ? s : (n - 16 / 116) / 7.787, t = l > .008856 ? l : (t - 16 / 116) / 7.787, r = c > .008856 ? c : (r - 16 / 116) / 7.787, [t *= 95.047, n *= 100, r *= 108.883]
}, o.lab.lch = function(e) {
var t, n = e[0],
r = e[1],
a = e[2];
return (t = 360 * Math.atan2(a, r) / 2 / Math.PI) < 0 && (t += 360), [n, Math.sqrt(r * r + a * a), t]
}, o.lch.lab = function(e) {
var t, n = e[0],
r = e[1];
return t = e[2] / 360 * 2 * Math.PI, [n, r * Math.cos(t), r * Math.sin(t)]
}, o.rgb.ansi16 = function(e) {
var t = e[0],
n = e[1],
r = e[2],
a = 1 in arguments ? arguments[1] : o.rgb.hsv(e)[2];
if (0 === (a = Math.round(a / 50))) return 30;
var i = 30 + (Math.round(r / 255) << 2 | Math.round(n / 255) << 1 | Math.round(t / 255));
return 2 === a && (i += 60), i
}, o.hsv.ansi16 = function(e) {
return o.rgb.ansi16(o.hsv.rgb(e), e[2])
}, o.rgb.ansi256 = function(e) {
var t = e[0],
n = e[1],
r = e[2];
return t === n && n === r ? t < 8 ? 16 : t > 248 ? 231 : Math.round((t - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(t / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(r / 255 * 5)
}, o.ansi16.rgb = function(e) {
var t = e % 10;
if (0 === t || 7 === t) return e > 50 && (t += 3.5), [t = t / 10.5 * 255, t, t];
var n = .5 * (1 + ~~(e > 50));
return [(1 & t) * n * 255, (t >> 1 & 1) * n * 255, (t >> 2 & 1) * n * 255]
}, o.ansi256.rgb = function(e) {
if (e >= 232) {
var t = 10 * (e - 232) + 8;
return [t, t, t]
}
var n;
return e -= 16, [Math.floor(e / 36) / 5 * 255, Math.floor((n = e % 36) / 6) / 5 * 255, n % 6 / 5 * 255]
}, o.rgb.hex = function(e) {
var t = (((255 & Math.round(e[0])) << 16) + ((255 & Math.round(e[1])) << 8) + (255 & Math.round(e[2]))).toString(16).toUpperCase();
return "000000".substring(t.length) + t
}, o.hex.rgb = function(e) {
var t = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
if (!t) return [0, 0, 0];
var n = t[0];
3 === t[0].length && (n = n.split("").map(function(e) {
return e + e
}).join(""));
var r = parseInt(n, 16);
return [r >> 16 & 255, r >> 8 & 255, 255 & r]
}, o.rgb.hcg = function(e) {
var t, n, r = e[0] / 255,
a = e[1] / 255,
i = e[2] / 255,
o = Math.max(Math.max(r, a), i),
s = Math.min(Math.min(r, a), i),
l = o - s;
return t = l < 1 ? s / (1 - l) : 0, n = l <= 0 ? 0 : o === r ? (a - i) / l % 6 : o === a ? 2 + (i - r) / l : 4 + (r - a) / l + 4, n /= 6, [360 * (n %= 1), 100 * l, 100 * t]
}, o.hsl.hcg = function(e) {
var t = e[1] / 100,
n = e[2] / 100,
r = 1,
a = 0;
return (r = n < .5 ? 2 * t * n : 2 * t * (1 - n)) < 1 && (a = (n - .5 * r) / (1 - r)), [e[0], 100 * r, 100 * a]
}, o.hsv.hcg = function(e) {
var t = e[1] / 100,
n = e[2] / 100,
r = t * n,
a = 0;
return r < 1 && (a = (n - r) / (1 - r)), [e[0], 100 * r, 100 * a]
}, o.hcg.rgb = function(e) {
var t = e[0] / 360,
n = e[1] / 100,
r = e[2] / 100;
if (0 === n) return [255 * r, 255 * r, 255 * r];
var a, i = [0, 0, 0],
o = t % 1 * 6,
s = o % 1,
l = 1 - s;
switch (Math.floor(o)) {
case 0:
i[0] = 1, i[1] = s, i[2] = 0;
break;
case 1:
i[0] = l, i[1] = 1, i[2] = 0;
break;
case 2:
i[0] = 0, i[1] = 1, i[2] = s;
break;
case 3:
i[0] = 0, i[1] = l, i[2] = 1;
break;
case 4:
i[0] = s, i[1] = 0, i[2] = 1;
break;
default:
i[0] = 1, i[1] = 0, i[2] = l
}
return a = (1 - n) * r, [255 * (n * i[0] + a), 255 * (n * i[1] + a), 255 * (n * i[2] + a)]
}, o.hcg.hsv = function(e) {
var t = e[1] / 100,
n = t + e[2] / 100 * (1 - t),
r = 0;
return n > 0 && (r = t / n), [e[0], 100 * r, 100 * n]
}, o.hcg.hsl = function(e) {
var t = e[1] / 100,
n = e[2] / 100 * (1 - t) + .5 * t,
r = 0;
return n > 0 && n < .5 ? r = t / (2 * n) : n >= .5 && n < 1 && (r = t / (2 * (1 - n))), [e[0], 100 * r, 100 * n]
}, o.hcg.hwb = function(e) {
var t = e[1] / 100,
n = t + e[2] / 100 * (1 - t);
return [e[0], 100 * (n - t), 100 * (1 - n)]
}, o.hwb.hcg = function(e) {
var t = e[1] / 100,
n = 1 - e[2] / 100,
r = n - t,
a = 0;
return r < 1 && (a = (n - r) / (1 - r)), [e[0], 100 * r, 100 * a]
}, o.apple.rgb = function(e) {
return [e[0] / 65535 * 255, e[1] / 65535 * 255, e[2] / 65535 * 255]
}, o.rgb.apple = function(e) {
return [e[0] / 255 * 65535, e[1] / 255 * 65535, e[2] / 255 * 65535]
}, o.gray.rgb = function(e) {
return [e[0] / 100 * 255, e[0] / 100 * 255, e[0] / 100 * 255]
}, o.gray.hsl = o.gray.hsv = function(e) {
return [0, 0, e[0]]
}, o.gray.hwb = function(e) {
return [0, 100, e[0]]
}, o.gray.cmyk = function(e) {
return [0, 0, 0, e[0]]
}, o.gray.lab = function(e) {
return [e[0], 0, 0]
}, o.gray.hex = function(e) {
var t = 255 & Math.round(e[0] / 100 * 255),
n = ((t << 16) + (t << 8) + t).toString(16).toUpperCase();
return "000000".substring(n.length) + n
}, o.rgb.gray = function(e) {
return [(e[0] + e[1] + e[2]) / 3 / 255 * 100]
}
}, function(e, t, n) {
"use strict";
t.__esModule = !0, t.EXITING = t.ENTERED = t.ENTERING = t.EXITED = t.UNMOUNTED = void 0;
var r = function(e) {
if (e && e.__esModule) return e;
var t = {};
if (null != e)
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
return t.default = e, t
}(n(24)),
a = o(n(1)),
i = o(n(25));
n(126);
function o(e) {
return e && e.__esModule ? e : {
default: e
}
}
var s = t.UNMOUNTED = "unmounted",
l = t.EXITED = "exited",
c = t.ENTERING = "entering",
u = t.ENTERED = "entered",
d = t.EXITING = "exiting",
p = function(e) {
function t(n, r) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, t);
var a = 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
}(this, e.call(this, n, r)),
i = r.transitionGroup,
o = i && !i.isMounting ? n.enter : n.appear,
d = void 0;
return a.nextStatus = null, n.in ? o ? (d = l, a.nextStatus = c) : d = u : d = n.unmountOnExit || n.mountOnEnter ? s : l, a.state = {
status: d
}, a.nextCallback = null, a
}
return 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)
}(t, e), t.prototype.getChildContext = function() {
return {
transitionGroup: null
}
}, t.prototype.componentDidMount = function() {
this.updateStatus(!0)
}, t.prototype.componentWillReceiveProps = function(e) {
var t = (this.pendingState || this.state).status;
e.in ? (t === s && this.setState({
status: l
}), t !== c && t !== u && (this.nextStatus = c)) : t !== c && t !== u || (this.nextStatus = d)
}, t.prototype.componentDidUpdate = function() {
this.updateStatus()
}, t.prototype.componentWillUnmount = function() {
this.cancelNextCallback()
}, t.prototype.getTimeouts = function() {
var e = this.props.timeout,
t = void 0,
n = void 0,
r = void 0;
return t = n = r = e, null != e && "number" != typeof e && (t = e.exit, n = e.enter, r = e.appear), {
exit: t,
enter: n,
appear: r
}
}, t.prototype.updateStatus = function() {
var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0],
t = this.nextStatus;
if (null !== t) {
this.nextStatus = null, this.cancelNextCallback();
var n = i.default.findDOMNode(this);
t === c ? this.performEnter(n, e) : this.performExit(n)
} else this.props.unmountOnExit && this.state.status === l && this.setState({
status: s
})
}, t.prototype.performEnter = function(e, t) {
var n = this,
r = this.props.enter,
a = this.context.transitionGroup ? this.context.transitionGroup.isMounting : t,
i = this.getTimeouts();
t || r ? (this.props.onEnter(e, a), this.safeSetState({
status: c
}, function() {
n.props.onEntering(e, a), n.onTransitionEnd(e, i.enter, function() {
n.safeSetState({
status: u
}, function() {
n.props.onEntered(e, a)
})
})
})) : this.safeSetState({
status: u
}, function() {
n.props.onEntered(e)
})
}, t.prototype.performExit = function(e) {
var t = this,
n = this.props.exit,
r = this.getTimeouts();
n ? (this.props.onExit(e), this.safeSetState({
status: d
}, function() {
t.props.onExiting(e), t.onTransitionEnd(e, r.exit, function() {
t.safeSetState({
status: l
}, function() {
t.props.onExited(e)
})
})
})) : this.safeSetState({
status: l
}, function() {
t.props.onExited(e)
})
}, t.prototype.cancelNextCallback = function() {
null !== this.nextCallback && (this.nextCallback.cancel(), this.nextCallback = null)
}, t.prototype.safeSetState = function(e, t) {
var n = this;
this.pendingState = e, t = this.setNextCallback(t), this.setState(e, function() {
n.pendingState = null, t()
})
}, t.prototype.setNextCallback = function(e) {
var t = this,
n = !0;
return this.nextCallback = function(r) {
n && (n = !1, t.nextCallback = null, e(r))
}, this.nextCallback.cancel = function() {
n = !1
}, this.nextCallback
}, t.prototype.onTransitionEnd = function(e, t, n) {
this.setNextCallback(n), e ? (this.props.addEndListener && this.props.addEndListener(e, this.nextCallback), null != t && setTimeout(this.nextCallback, t)) : setTimeout(this.nextCallback, 0)
}, t.prototype.render = function() {
var e = this.state.status;
if (e === s) return null;
var t = this.props,
n = t.children,
r = function(e, t) {
var n = {};
for (var r in e) t.indexOf(r) >= 0 || Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
return n
}(t, ["children"]);
if (delete r.in, delete r.mountOnEnter, delete r.unmountOnExit, delete r.appear, delete r.enter, delete r.exit, delete r.timeout, delete r.addEndListener, delete r.onEnter, delete r.onEntering, delete r.onEntered, delete r.onExit, delete r.onExiting, delete r.onExited, "function" == typeof n) return n(e, r);
var i = a.default.Children.only(n);
return a.default.cloneElement(i, r)
}, t
}(a.default.Component);
function m() {}
p.contextTypes = {
transitionGroup: r.object
}, p.childContextTypes = {
transitionGroup: function() {}
}, p.propTypes = {}, p.defaultProps = { in : !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: m, onEntering: m, onEntered: m, onExit: m, onExiting: m, onExited: m
}, p.UNMOUNTED = 0, p.EXITED = 1, p.ENTERING = 2, p.ENTERED = 3, p.EXITING = 4, t.default = p
}, function(e, t, n) {
"use strict";
t.a = function(e, t) {
let n = "#fff";
if (e) {
let t = a(e);
t.luminosity() > .6 ? (Object(r.a)("debug", "Darkening color"), n = t.darken(.7)) : (Object(r.a)("debug", "Lightening color"), n = "#fff")
}
let i = `data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-357 161 245 240'><path fill='${encodeURIComponent(n)}' d='M-145.3 217.1c-29.2-21.9-57-21.3-57-21.3l-2.8 3.2c34.5 10.5 50.5 25.8 50.5 25.8-21.1-11.6-41.8-17.2-61-19.5-14.6-1.6-28.6-1.2-41 .4-1.2 0-2.2.2-3.4.4-7.1.6-24.3 3.2-46 12.8-7.5 3.4-12 5.9-12 5.9s16.8-16 53.3-26.6l-2-2.4s-27.8-.6-57 21.3c0 0-29.2 52.9-29.2 118.2 0 0 17 29.4 61.8 30.8 0 0 7.5-9.1 13.6-16.8-25.8-7.7-35.5-23.9-35.5-23.9s2 1.4 5.7 3.4c.2.2.4.4.8.6.6.4 1.2.6 1.8 1 5.1 2.8 10.1 5.1 14.8 6.9 8.3 3.2 18.2 6.5 29.8 8.7 15.2 2.8 33.1 3.9 52.5.2 9.5-1.6 19.3-4.5 29.4-8.7 7.1-2.6 15-6.5 23.3-12 0 0-10.1 16.6-36.7 24.1 6.1 7.7 13.4 16.4 13.4 16.4 44.8-1.4 62-30.8 62-30.8.1-65.1-29.1-118.1-29.1-118.1zm-127.1 99.4c-11.4 0-20.7-10.1-20.7-22.5s9.1-22.5 20.7-22.5 20.9 10.1 20.7 22.5c0 12.3-9.2 22.5-20.7 22.5zm74 0c-11.4 0-20.7-10.1-20.7-22.5s9.1-22.5 20.7-22.5 20.7 10.1 20.7 22.5c0 12.3-9.2 22.5-20.7 22.5z'/></svg>`;
"string" == typeof t && ("widgetbot" === (t = t.toLowerCase()) && (i = `data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 300' fill='${encodeURIComponent(n)}'><path d='m318.43 4.0335h-292.85c-12.191 0-22.074 10.53-22.074 23.519v197.56c0 12.989 9.8834 23.519 22.074 23.519h97.2l32.333 40.956c4.1941 5.3129 10.377 8.3806 16.893 8.3806 6.5163 0 12.699-3.0669 16.893-8.3798l32.333-40.956h97.199c12.192 0 22.074-10.53 22.074-23.519v-197.56c0-12.989-9.8826-23.52-22.074-23.52zm0 221.08h-107.48l-38.949 49.336-38.948-49.336h-107.48v-197.56h292.85v197.56z'/><path d='m66.339 94.554h100.81c6.0954 0 11.037-5.2651 11.037-11.759s-4.9417-11.759-11.037-11.759h-100.81c-6.0954 0-11.037 5.2651-11.037 11.759s4.9417 11.759 11.037 11.759z'/><path d='m55.742 154.92c0 6.4943 4.9417 11.759 11.037 11.759h210.44c6.0954 0 11.037-5.2651 11.037-11.759s-4.9417-11.759-11.037-11.759h-210.44c-6.0954 0-11.037 5.2651-11.037 11.759z'/></svg>`), "intercom" === t && (i = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABICAYAAABGOvOzAAAAAXNSR0IArs4c6QAABrRJREFUeAHtW0tMJFUUlQZ7YGgQmYHGQQYcQV2YIAmJG9igCQlxRiJRAmYwcSERNkQSdhMJCyGRjRsTosQPK0N0gREEMokaMiREERZoEJ2F/P+B8P+155R929fVTVXTfKQrdZPLq3rv1n33nHffq08/oh45XqKOb4rIFk+wqIOBVOvkWMpgPi5znYCWkrGqxwGxEyjVAY0eHR1N3d3dbTo6Ohr2eDxr0EiRNcT8C2JvHB4eTiEWLybBh9NAkUYN/ObmZinQrkYKYoM4V9bX1+8AriEJKvgYXPAqHB4aOI20pgNgegUkxEA5wIJXO8G5Jlplb29vssvl+hw1NLSKRAPTF93d3Y8DkA+8gJMKpsijSP3GSBveUOMFtnvECCVWDbeMspDgcDqdTBVLCrBxLTCcAo7o6OhsS6IHKGDLUQjQYOozIArymFUJ8GKTbGcZsNAJIVblIACzClhjxMrIFWw+rCoBbPc1KMZWO/TDqCfAamBN8dgEmFJkcQM7Ayw+wKbw7AwwpcjiBnYGWHyATeHZGWBKkcUN7Ayw+ACbwrMzwJQiixvYGWDxATaFZ2eAKUUWN7AzwOIDbArPzgBTiixuYGeAxQfYFJ6dAaYUWdzAzoCTDvDe3t4ENhx9d3h4uHzSa8/R/gjbX35EbH+F0wd/LeWemSvQBKP9Nth3N5acnJwBuxvl5eXPbGxsfG9kfxFtBN3X18etL+mMDTH+ZtQvMUKJVfYJaT+Jh0TA4uJiGy50Q1O96h4fH689ODiYM+r0PNqwEXJzdnb2w6KiokxvTIwrbXl5+ROj/mATPgHb29s/wcF1aDKUW85YppSUlGROTk6+DyKmjTo/izZMvXUMxMeNjY3Ps2/oNW8cjOU6Yhww6gc24RNAx1tbW1+3tLTc9DpKRJkE1YjIyMi4ge21VVgjvsUIbRgFcsK2A/Q7MDEx8V5ZWdkt9CfA2Tf3NCW2trZmwuYbM7+wPR0B7ADgZubn5+/CWTzUxQCgQgQzJLWgoODm0NDQG3Nzcx8hsB+QHYtmwUk703tnZ+dXpPNnY2Nj79TX1z8Hn0xxFTj7ZN+uhYWFt3FNSNMQ9n4EcAGk8nbIbaROBLGOMiQBqAczMzONmZmZD3CB6ov+qOJba6uqqkosLS19Mi0t7Rp2bibFxMQ4HQ5HNNIaa9fuFlJ7CRk029DQMIdruatb9Mh7zFLUMz09/ZLb7b6H7W/5qA9JsFOMxO1BD6D0FfoiKCOkL/f39weXlpbuVlZWcl1gVpBldsT0ZGbIesH5ygyhcjT1ynrayLzmdVqKo6RPF+Z+6srKyrsgbUQfRyjnXj/h3QXMOkAaLiN1P0Xa36mtrSUImSIMXiWFoIQcmcdSR+KoGmCUrra2tieQHW8iS75CDKdaW7x+fQSoaXviKQBnRrKDKTKE7PgZa8AIAPyJjdgP6+rqNpSL2L+IJyUlJaq9vT0lNzf3VkJCwrNxcXEvYHtrPqZJLow4pU4t+ikQjIA19KIGdupOdQ62MIrL0G3U70K1ZxAElgBl1vD83ERPAEfdTxDYijcQv/ozPLkK/9QzdBm+K31aefBo+Xv47iLvSpUA7ZazurraFXkwwo84gIDq6uovcYv5O3yXkXWlEMDRp3i6urq2BwcH38JasPlvlbX/CgFEKU9Yh4WFhSP9/f0luIX9YW34/z2+EieXZd6CqPy/mpisrKwrPT09t9PT04txP34KKzcfTi5s+UZ/eARwJFJx7ETfpxb48XsUFjAsRZkVvD1ShRDWSbbINai6ENH6u3//fn5eXl5FUlLSbYDgS1BYYkQAHaok6MGTgP8FvBoXXofjm5ubb+PVuyI2NvZFBn0SOY4A+hBwKgk8ltFX20/S52ltJR41Fi2mjo6Op4uLiyvxKex1vBHyK5WpGBHAiwWkHKud69tMOztDA4lDBoMlM1Q7z87OdnZ2dr6ck5NTER8fX4T6gCdciUVPgNSrpXQmpXQqU+KiS1mPuDBzIYyFXoXqP8Tw1drd1NSUOzU19QGeaB/iVh4gsOFC7nsbxPGxIgRchlIdBBJCMggiDkoyCIqv0/x+wBcqTgf3wMDAa/g814nX9G1hAvUkLiQCYHcpRD8AKhmSFUIGvz/wNuf3ea6mpiYbX48a8FwzijbaMJOYyZfklQyRhCgkQxU9OTwXgtSS9XzaPYTyU5h8DjvSO0RbRIg+bjlnSSV4tZR239Mu2nnskQYcR6zoMfA8mBIgs0AD7i39bns0iHRRyZBjKQWb78WPFfpGMYr0Mhgu1gl4H75ghr5Gixwch1Ej4x/FzutRzMchPgAAAABJRU5ErkJggg=="));
return i
};
var r = n(51);
const a = n(2)
}, function(e, t, n) {
"use strict";
t.a = function(e, t, n) {
let r = "";
"warn" === e ? r = "#fff816" : "error" === e ? r = "#f9aeae" : "debug" === e && (r = "#42c72a"), console[e](`%c☄️ [Crate] %c${t}\n`, "color: #40b8ff", `color: ${r}`, n)
}
}, function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", {
value: !0
});
var __WEBPACK_IMPORTED_MODULE_0_react_dom__ = __webpack_require__(25),
__WEBPACK_IMPORTED_MODULE_0_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react_dom__),
__WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(1),
__WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__),
__WEBPACK_IMPORTED_MODULE_2__Renderer__ = __webpack_require__(91),
__WEBPACK_IMPORTED_MODULE_3__components_Config__ = __webpack_require__(322),
__WEBPACK_IMPORTED_MODULE_4__components_Log__ = __webpack_require__(51),
__WEBPACK_IMPORTED_MODULE_5__components_Icons__ = __webpack_require__(50),
__WEBPACK_IMPORTED_MODULE_6__jss_App__ = __webpack_require__(325);
const Raven = __webpack_require__(53);
Raven.config("https://60c8644853c540649cfdf0fe4a30bfe4@sentry.io/287303", {
whitelistUrls: [/widgetbot\.io/, /crate\.widgetbot\.io/, /localhost:3100/],
includePaths: [/https?:\/\/crate.widgetbot\.io/]
}).install();
const MatomoTracker = __webpack_require__(69);
var a3408;
Raven.context(() => {
let global = window.globalCrate = {
insertionPoint: document.createElement("div"),
sessions: 0,
event: (e, t) => {
if (!e || e.config.analytics) {
let e = {
e_c: t.category,
e_a: t.action
};
t.name && (e.e_n = t.name), t.content && (e.c_n = t.content.name, e.c_p = t.content.path), global.track(e)
}
},
track: e => {
global.matomo.track(Object.assign({
url: window.location.href,
rand: (Math.floor(Math.pow(10, 15) + 9 * Math.random() * Math.pow(10, 15)) + +new Date).toString()
}, e))
},
matomo: new MatomoTracker(2, "https://analytics.widgetbot.io/php", !0)
};
global.insertionPoint.setAttribute("documentation", "https://docs.widgetbot.io"), global.insertionPoint.classList.add("crate"), document.body ? document.body.appendChild(global.insertionPoint) : document.addEventListener("DOMContentLoaded", () => {
document.body.appendChild(global.insertionPoint)
}), console.log("%c+%chttps://crate.widgetbot.io\n%c☄️ Popup Discord chat widgets for your website.", 'font-size: 1px; margin-left: 40px; padding: 20px 20px; line-height: 50px;background: url("https://i.imgur.com/S7IIIbE.png"); background-repeat: no-repeat; background-size: 40px 40px; color: transparent;', 'padding-left: 2px; font-size: 14px; color: #7289DA; font-family: "Roboto", sans-serif', 'padding-left: 15px; font-size: 12px; font-family: "Roboto", sans-serif;');
class StateHandler {
constructor(e) {
this.state = {
view: {
opened: !1,
open: !1,
loading: !0,
modalOpen: !1
},
modal: {},
config: {
server: "299881420891881473",
channel: "355719584830980096",
options: "0002",
beta: !1,
debug: !1,
analytics: !0,
logo: {
url: Object(__WEBPACK_IMPORTED_MODULE_5__components_Icons__.a)()
},
theme: "material",
colors: {
toggle: "#7289DA"
},
notifications: {
indicator: {
enable: !0
},
toasts: {
enable: !0,
visibilityTime: 10,
maxMessages: 5,
maxHeight: "calc(70% - 100px)"
}
},
mobile: {
maxWidth: 500,
maxHeight: 500
},
position: {
x: "right",
y: "bottom"
},
delay: !1,
disable: []
},
notifications: {
unread: 0,
pinged: !1,
messages: []
},
l: null,
classes: {},
session: (Math.floor(Math.pow(10, 15) + 9 * Math.random() * Math.pow(10, 15)) + +new Date).toString(),
iframe: null
}, this.eventListeners = {}, this.allEventListeners = [], window.crate || (window.crate = this), Object(__WEBPACK_IMPORTED_MODULE_3__components_Config__.a)(this.state, e, !0).then(e => {
if (this.setState({
classes: Object(__WEBPACK_IMPORTED_MODULE_6__jss_App__.a)(e),
config: e
}), e.delay || setTimeout(() => {
this.setState({
view: Object.assign({}, this.state.view, {
opened: !0
})
})
}, 3e3), this.node = document.createElement("div"), this.node.classList.add(`crate-${global.sessions}`), global.insertionPoint.appendChild(this.node), global.sessions++, __WEBPACK_IMPORTED_MODULE_0_react_dom__.render(__WEBPACK_IMPORTED_MODULE_1_react__.createElement(__WEBPACK_IMPORTED_MODULE_2__Renderer__.a, {
api: this,
ref: e => {
this.react = e
}
}), this.node), e.analytics) {
let {
track: t
} = global;
t({
_id: this.state.session,
action_name: "Crate instance initialized",
cvar: JSON.stringify({
1: ["Discord server", e.server],
2: ["Discord channel", e.channel],
3: ["Widget URL", e.widgetURL]
})
})
}
}).catch(e => {
Object(__WEBPACK_IMPORTED_MODULE_4__components_Log__.a)("error", `Invalid configuration!\n${e}\n\nrefer to https://docs.widgetbot.io`)
})
}
setState(e) {
Object.keys(e).forEach(t => {
e && e.config && JSON.stringify(e.config) !== JSON.stringify(this.state.config) && this.config(e.config, !0), this.state[t] = e[t]
}), this.react && this.react.forceUpdate()
}
config(e, t) {
if (Object(__WEBPACK_IMPORTED_MODULE_3__components_Config__.a)(this.state, e).then(e => {
this.setState({
classes: Object(__WEBPACK_IMPORTED_MODULE_6__jss_App__.a)(e),
config: e
})
}).catch(e => {
Object(__WEBPACK_IMPORTED_MODULE_4__components_Log__.a)("error", `Invalid configuration!\n${e}\n\nrefer to https://docs.widgetbot.io`)
}), !t) {
const {
event: e
} = global;
e(this.state, {
category: "API",
action: "Config update"
})
}
}
}
class Crate extends StateHandler {
toggle(e) {
e = "boolean" == typeof e ? e : !this.state.view.open, this.setState({
view: Object.assign({}, this.state.view, {
open: e,
opened: !0
}),
notifications: {
unread: 0,
pinged: !1,
messages: []
}
}), clearTimeout(this.transition), this.transition = setTimeout(() => {
this.postMessage("transition", e ? "fade-in" : "fade-out")
}, 100), (window.innerWidth <= this.state.config.mobile.maxWidth || window.innerHeight <= this.state.config.mobile.maxHeight) && (document.body.style.overflow = e ? "hidden" : ""), (() => {
let t = document.querySelector("meta[name=theme-color]");
t ? null === t.getAttribute("default") && t.setAttribute("default", t.content || "") : ((t = document.createElement("meta")).setAttribute("name", "theme-color"), t.setAttribute("default", ""), document.head.appendChild(t)), setTimeout(() => {
if (e) {
let e = this.state.config.colors.background || "light" === this.state.config.scheme ? "#ffffff" : "#36393E";
t.setAttribute("content", e)
} else t.setAttribute("content", t.getAttribute("default"))
}, 100)
})(), this.event({
category: "Toggle",
action: this.state.view.open ? "Open" : "Close"
}), this.crateEvent("toggle", e)
}
modal(e = !this.state.view.modalOpen) {
document.activeElement.blur(), this.setState({
view: Object.assign({}, this.state.view, {
modalOpen: e
})
}), this.event({
category: "Modal",
action: this.state.view.modalOpen ? "Open" : "Close"
})
}
user(e) {
this.setState({
view: Object.assign({}, this.state.view, {
modalOpen: !0
}),
modal: {
type: "user",
data: e
}
}), this.event({
category: "User popup",
action: "Open"
})
}
expandMessage(e) {
this.setState({
view: Object.assign({}, this.state.view, {
modalOpen: !0
}),
modal: {
type: "message",
data: e
}
}), this.event({
category: "User popup",
action: "Open"
})
}
show() {
clearTimeout(this.visibilityTimer), this.node.firstChild.classList.remove("disable-input"), this.visibilityTimer = setTimeout(() => {
this.node.firstChild.classList.remove("fade-out")
}, 10), this.crateEvent("visibility", !0), this.event({
category: "API",
action: "Visibility",
name: "Show"
})
}
hide() {
clearTimeout(this.visibilityTimer), this.node.firstChild.classList.add("fade-out"), this.visibilityTimer = setTimeout(() => {
this.node.firstChild.classList.add("disable-input")
}, 200), this.crateEvent("visibility", !1), this.event({
category: "API",
action: "Visibility",
name: "Hide"
})
}
pulse(e = !this.state.notifications.pinged) {
this.setState({
notifications: Object.assign({}, this.state.notifications, {
pinged: e
})
}), this.crateEvent("pulse", e)
}
message(e, t, n = "https://beta.widgetbot.io/embed/335391242248519680/335391242248519680/0002/default.webp") {
let r, {
unread: a,
pinged: i,
messages: o
} = this.state.notifications;
if (void 0 !== t)
if ("number" == typeof t) r = +new Date + t;
else {
if ("boolean" != typeof t) throw new Error("Expected parameter two to be of type number | boolean!");
r = !1
} else {
let e = this.state.config.notifications.toasts.visibilityTime;
e < 1 && (e = 15), r = +new Date + 1e3 * e
}
this.state.config.notifications.indicator.enable && !this.state.view.open && a++, o.unshift({
expiration: r,
message: {
author: {
avatar: n
},
id: Math.floor(Math.pow(10, 15) + 9 * Math.random() * Math.pow(10, 15)) + +new Date,
content: e,
fake: !0
}
}), o = o.slice(0, this.state.config.notifications.toasts.maxMessages), this.setState({
notifications: Object.assign({}, this.state.notifications, {
unread: a,
messages: o
})
}), this.event({
category: "API",
action: "Toast"
})
}
remove() {
__WEBPACK_IMPORTED_MODULE_0_react_dom__.unmountComponentAtNode(this.node), global.insertionPoint.removeChild(this.node), this.event({
category: "API",
action: "Visibility",
name: "Remove"
})
}
postMessage(e, t) {
this.state.iframe && (this.state.iframe && this.state.iframe.contentWindow ? this.state.iframe.contentWindow.postMessage({
src: "crate",
session: this.state.session,
event: e,
action: t
}, "*") : Object(__WEBPACK_IMPORTED_MODULE_4__components_Log__.a)("error", "iFrame topology destroyed!"))
}
event(e) {
const {
event: t
} = global;
t(this.state, e)
}
on(e, t) {
this.eventListeners[e] || (this.eventListeners[e] = []), this.eventListeners[e].push(t)
}
onEvent(e) {
this.allEventListeners.push(e)
}
crateEvent(e, t) {
if (this.eventListeners[e])
for (let n of this.eventListeners[e]) setTimeout(() => {
n(t)
});
for (let n of this.allEventListeners) setTimeout(() => {
n(e, t)
})
}
}
window.Crate = Crate, (() => {
let config = document.currentScript && document.currentScript.innerHTML;
config && eval(config)
})(), a3408 = document.createEvent("Event"), a3408.Crate = Crate, a3408.initEvent("crate", !0, !1), window.dispatchEvent(a3408)
})
}, function(e, t, n) {
(function(t) {
var r = n(54),
a = "undefined" != typeof window ? window : void 0 !== t ? t : "undefined" != typeof self ? self : {},
i = a.Raven,
o = new r;
o.noConflict = function() {
return a.Raven = i, o
}, o.afterLoad(), e.exports = o
}).call(t, n(0))
}, function(e, t, n) {
(function(t) {
var r = n(55),
a = n(56),
i = n(57),
o = n(20),
s = o.isError,
l = o.isObject,
c = o.isErrorEvent,
u = o.isUndefined,
d = o.isFunction,
p = o.isString,
m = o.isArray,
g = o.isEmptyObject,
f = o.each,
h = o.objectMerge,
b = o.truncate,
_ = o.objectFrozen,
v = o.hasKey,
y = o.joinRegExp,
E = o.urlencode,
S = o.uuid4,
x = o.htmlTreeAsString,
w = o.isSameException,
C = o.isSameStacktrace,
T = o.parseUrl,
N = o.fill,
O = o.supportsFetch,
M = n(58).wrapMethod,
D = "source protocol user pass host port path".split(" "),
A = /^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;
function k() {
return +new Date
}
var R = "undefined" != typeof window ? window : void 0 !== t ? t : "undefined" != typeof self ? self : {},
I = R.document,
L = R.navigator;
function P(e, t) {
return d(t) ? function(n) {
return t(n, e)
} : t
}
function F() {
this._hasJSON = !("object" != typeof JSON || !JSON.stringify), this._hasDocument = !u(I), this._hasNavigator = !u(L), this._lastCapturedException = null, this._lastData = null, this._lastEventId = null, this._globalServer = null, this._globalKey = null, this._globalProject = null, this._globalContext = {}, this._globalOptions = {
release: R.SENTRY_RELEASE && R.SENTRY_RELEASE.id,
logger: "javascript",
ignoreErrors: [],
ignoreUrls: [],
whitelistUrls: [],
includePaths: [],
headers: null,
collectWindowErrors: !0,
maxMessageLength: 0,
maxUrlLength: 250,
stackTraceLimit: 50,
autoBreadcrumbs: !0,
instrument: !0,
sampleRate: 1
}, this._fetchDefaults = {
method: "POST",
keepalive: !0,
referrerPolicy: "origin"
}, this._ignoreOnError = 0, this._isRavenInstalled = !1, this._originalErrorStackTraceLimit = Error.stackTraceLimit, this._originalConsole = R.console || {}, this._originalConsoleMethods = {}, this._plugins = [], this._startTime = k(), this._wrappedBuiltIns = [], this._breadcrumbs = [], this._lastCapturedEvent = null, this._keypressTimeout, this._location = R.location, this._lastHref = this._location && this._location.href, this._resetBackoff();
for (var e in this._originalConsole) this._originalConsoleMethods[e] = this._originalConsole[e]
}
F.prototype = {
VERSION: "3.22.2",
debug: !1,
TraceKit: r,
config: function(e, t) {
var n = this;
if (n._globalServer) return this._logDebug("error", "Error: Raven has already been configured"), n;
if (!e) return n;
var a = n._globalOptions;
t && f(t, function(e, t) {
"tags" === e || "extra" === e || "user" === e ? n._globalContext[e] = t : a[e] = t
}), n.setDSN(e), a.ignoreErrors.push(/^Script error\.?$/), a.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/), a.ignoreErrors = y(a.ignoreErrors), a.ignoreUrls = !!a.ignoreUrls.length && y(a.ignoreUrls), a.whitelistUrls = !!a.whitelistUrls.length && y(a.whitelistUrls), a.includePaths = y(a.includePaths), a.maxBreadcrumbs = Math.max(0, Math.min(a.maxBreadcrumbs || 100, 100));
var i = {
xhr: !0,
console: !0,
dom: !0,
location: !0,
sentry: !0
},
o = a.autoBreadcrumbs;
"[object Object]" === {}.toString.call(o) ? o = h(i, o) : !1 !== o && (o = i), a.autoBreadcrumbs = o;
var s = {
tryCatch: !0
},
l = a.instrument;
return "[object Object]" === {}.toString.call(l) ? l = h(s, l) : !1 !== l && (l = s), a.instrument = l, r.collectWindowErrors = !!a.collectWindowErrors, n
},
install: function() {
var e = this;
return e.isSetup() && !e._isRavenInstalled && (r.report.subscribe(function() {
e._handleOnErrorStackInfo.apply(e, arguments)
}), e._patchFunctionToString(), e._globalOptions.instrument && e._globalOptions.instrument.tryCatch && e._instrumentTryCatch(), e._globalOptions.autoBreadcrumbs && e._instrumentBreadcrumbs(), e._drainPlugins(), e._isRavenInstalled = !0), Error.stackTraceLimit = e._globalOptions.stackTraceLimit, this
},
setDSN: function(e) {
var t = this._parseDSN(e),
n = t.path.lastIndexOf("/"),
r = t.path.substr(1, n);
this._dsn = e, this._globalKey = t.user, this._globalSecret = t.pass && t.pass.substr(1), this._globalProject = t.path.substr(n + 1), this._globalServer = this._getGlobalServer(t), this._globalEndpoint = this._globalServer + "/" + r + "api/" + this._globalProject + "/store/", this._resetBackoff()
},
context: function(e, t, n) {
return d(e) && (n = t || [], t = e, e = void 0), this.wrap(e, t).apply(this, n)
},
wrap: function(e, t, n) {
var r = this;
if (u(t) && !d(e)) return e;
if (d(e) && (t = e, e = void 0), !d(t)) return t;
try {
if (t.__raven__) return t;
if (t.__raven_wrapper__) return t.__raven_wrapper__
} catch (e) {
return t
}
function a() {
var a = [],
i = arguments.length,
o = !e || e && !1 !== e.deep;
for (n && d(n) && n.apply(this, arguments); i--;) a[i] = o ? r.wrap(e, arguments[i]) : arguments[i];
try {
return t.apply(this, a)
} catch (t) {
throw r._ignoreNextOnError(), r.captureException(t, e), t
}
}
for (var i in t) v(t, i) && (a[i] = t[i]);
return a.prototype = t.prototype, t.__raven_wrapper__ = a, a.__raven__ = !0, a.__orig__ = t, a
},
uninstall: function() {
return r.report.uninstall(), this._unpatchFunctionToString(), this._restoreBuiltIns(), this._restoreConsole(), Error.stackTraceLimit = this._originalErrorStackTraceLimit, this._isRavenInstalled = !1, this
},
captureException: function(e, t) {
t = h({
trimHeadFrames: 0
}, t || {});
var n = !s(e),
a = !c(e),
i = c(e) && !e.error;
if (n && a || i) return this.captureMessage(e, h(t, {
stacktrace: !0,
trimHeadFrames: t.trimHeadFrames + 1
}));
c(e) && (e = e.error), this._lastCapturedException = e;
try {
var o = r.computeStackTrace(e);
this._handleStackInfo(o, t)
} catch (t) {
if (e !== t) throw t
}
return this
},
captureMessage: function(e, t) {
if (!this._globalOptions.ignoreErrors.test || !this._globalOptions.ignoreErrors.test(e)) {
var n, a = h({
message: e + ""
}, t = t || {});
try {
throw new Error(e)
} catch (e) {
n = e
}
n.name = null;
var i = r.computeStackTrace(n),
o = m(i.stack) && i.stack[1],
s = o && o.url || "";
if ((!this._globalOptions.ignoreUrls.test || !this._globalOptions.ignoreUrls.test(s)) && (!this._globalOptions.whitelistUrls.test || this._globalOptions.whitelistUrls.test(s))) {
if (this._globalOptions.stacktrace || t && t.stacktrace) {
t = h({
fingerprint: e,
trimHeadFrames: (t.trimHeadFrames || 0) + 1
}, t);
var l = this._prepareFrames(i, t);
a.stacktrace = {
frames: l.reverse()
}
}
return this._send(a), this
}
}
},
captureBreadcrumb: function(e) {
var t = h({
timestamp: k() / 1e3
}, e);
if (d(this._globalOptions.breadcrumbCallback)) {
var n = this._globalOptions.breadcrumbCallback(t);
if (l(n) && !g(n)) t = n;
else if (!1 === n) return this
}
return this._breadcrumbs.push(t), this._breadcrumbs.length > this._globalOptions.maxBreadcrumbs && this._breadcrumbs.shift(), this
},
addPlugin: function(e) {
var t = [].slice.call(arguments, 1);
return this._plugins.push([e, t]), this._isRavenInstalled && this._drainPlugins(), this
},
setUserContext: function(e) {
return this._globalContext.user = e, this
},
setExtraContext: function(e) {
return this._mergeContext("extra", e), this
},
setTagsContext: function(e) {
return this._mergeContext("tags", e), this
},
clearContext: function() {
return this._globalContext = {}, this
},
getContext: function() {
return JSON.parse(a(this._globalContext))
},
setEnvironment: function(e) {
return this._globalOptions.environment = e, this
},
setRelease: function(e) {
return this._globalOptions.release = e, this
},
setDataCallback: function(e) {
var t = this._globalOptions.dataCallback;
return this._globalOptions.dataCallback = P(t, e), this
},
setBreadcrumbCallback: function(e) {
var t = this._globalOptions.breadcrumbCallback;
return this._globalOptions.breadcrumbCallback = P(t, e), this
},
setShouldSendCallback: function(e) {
var t = this._globalOptions.shouldSendCallback;
return this._globalOptions.shouldSendCallback = P(t, e), this
},
setTransport: function(e) {
return this._globalOptions.transport = e, this
},
lastException: function() {
return this._lastCapturedException
},
lastEventId: function() {
return this._lastEventId
},
isSetup: function() {
return !!this._hasJSON && (!!this._globalServer || (this.ravenNotConfiguredError || (this.ravenNotConfiguredError = !0, this._logDebug("error", "Error: Raven has not been configured.")), !1))
},
afterLoad: function() {
var e = R.RavenConfig;
e && this.config(e.dsn, e.config).install()
},
showReportDialog: function(e) {
if (I) {
var t = (e = e || {}).eventId || this.lastEventId();
if (!t) throw new i("Missing eventId");
var n = e.dsn || this._dsn;
if (!n) throw new i("Missing DSN");
var r = encodeURIComponent,
a = "";
a += "?eventId=" + r(t), a += "&dsn=" + r(n);
var o = e.user || this._globalContext.user;
o && (o.name && (a += "&name=" + r(o.name)), o.email && (a += "&email=" + r(o.email)));
var s = this._getGlobalServer(this._parseDSN(n)),
l = I.createElement("script");
l.async = !0, l.src = s + "/api/embed/error-page/" + a, (I.head || I.body).appendChild(l)
}
},
_ignoreNextOnError: function() {
var e = this;
this._ignoreOnError += 1, setTimeout(function() {
e._ignoreOnError -= 1
})
},
_triggerEvent: function(e, t) {
var n, r;
if (this._hasDocument) {
t = t || {}, e = "raven" + e.substr(0, 1).toUpperCase() + e.substr(1), I.createEvent ? (n = I.createEvent("HTMLEvents")).initEvent(e, !0, !0) : (n = I.createEventObject()).eventType = e;
for (r in t) v(t, r) && (n[r] = t[r]);
if (I.createEvent) I.dispatchEvent(n);
else try {
I.fireEvent("on" + n.eventType.toLowerCase(), n)
} catch (e) {}
}
},
_breadcrumbEventHandler: function(e) {
var t = this;
return function(n) {
if (t._keypressTimeout = null, t._lastCapturedEvent !== n) {
var r;
t._lastCapturedEvent = n;
try {
r = x(n.target)
} catch (e) {
r = "<unknown>"
}
t.captureBreadcrumb({
category: "ui." + e,
message: r
})
}
}
},
_keypressEventHandler: function() {
var e = this;
return function(t) {
var n;
try {
n = t.target
} catch (e) {
return
}
var r = n && n.tagName;
if (r && ("INPUT" === r || "TEXTAREA" === r || n.isContentEditable)) {
var a = e._keypressTimeout;
a || e._breadcrumbEventHandler("input")(t), clearTimeout(a), e._keypressTimeout = setTimeout(function() {
e._keypressTimeout = null
}, 1e3)
}
}
},
_captureUrlChange: function(e, t) {
var n = T(this._location.href),
r = T(t),
a = T(e);
this._lastHref = t, n.protocol === r.protocol && n.host === r.host && (t = r.relative), n.protocol === a.protocol && n.host === a.host && (e = a.relative), this.captureBreadcrumb({
category: "navigation",
data: {
to: t,
from: e
}
})
},
_patchFunctionToString: function() {
var e = this;
e._originalFunctionToString = Function.prototype.toString, Function.prototype.toString = function() {
return "function" == typeof this && this.__raven__ ? e._originalFunctionToString.apply(this.__orig__, arguments) : e._originalFunctionToString.apply(this, arguments)
}
},
_unpatchFunctionToString: function() {
this._originalFunctionToString && (Function.prototype.toString = this._originalFunctionToString)
},
_instrumentTryCatch: function() {
var e = this,
t = e._wrappedBuiltIns;
function n(t) {
return function(n, r) {
for (var a = new Array(arguments.length), i = 0; i < a.length; ++i) a[i] = arguments[i];
var o = a[0];
return d(o) && (a[0] = e.wrap(o)), t.apply ? t.apply(this, a) : t(a[0], a[1])
}
}
var r = this._globalOptions.autoBreadcrumbs;
function a(n) {
var a = R[n] && R[n].prototype;
a && a.hasOwnProperty && a.hasOwnProperty("addEventListener") && (N(a, "addEventListener", function(t) {
return function(a, i, o, s) {
try {
i && i.handleEvent && (i.handleEvent = e.wrap(i.handleEvent))
} catch (e) {}
var l, c, u;
return r && r.dom && ("EventTarget" === n || "Node" === n) && (c = e._breadcrumbEventHandler("click"), u = e._keypressEventHandler(), l = function(e) {
if (e) {
var t;
try {
t = e.type
} catch (e) {
return
}
return "click" === t ? c(e) : "keypress" === t ? u(e) : void 0
}
}), t.call(this, a, e.wrap(i, void 0, l), o, s)
}
}, t), N(a, "removeEventListener", function(e) {
return function(t, n, r, a) {
try {
n = n && (n.__raven_wrapper__ ? n.__raven_wrapper__ : n)
} catch (e) {}
return e.call(this, t, n, r, a)
}
}, t))
}
N(R, "setTimeout", n, t), N(R, "setInterval", n, t), R.requestAnimationFrame && N(R, "requestAnimationFrame", function(t) {
return function(n) {
return t(e.wrap(n))
}
}, t);
for (var i = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"], o = 0; o < i.length; o++) a(i[o])
},
_instrumentBreadcrumbs: function() {
var e = this,
t = this._globalOptions.autoBreadcrumbs,
n = e._wrappedBuiltIns;
if (t.xhr && "XMLHttpRequest" in R) {
var r = XMLHttpRequest.prototype;
N(r, "open", function(t) {
return function(n, r) {
return p(r) && -1 === r.indexOf(e._globalKey) && (this.__raven_xhr = {
method: n,
url: r,
status_code: null
}), t.apply(this, arguments)
}
}, n), N(r, "send", function(t) {
return function() {
var n = this;
function r() {
if (n.__raven_xhr && 4 === n.readyState) {
try {
n.__raven_xhr.status_code = n.status
} catch (e) {}
e.captureBreadcrumb({
type: "http",
category: "xhr",
data: n.__raven_xhr
})
}
}
for (var a, i, o = ["onload", "onerror", "onprogress"], s = 0; s < o.length; s++)(a = o[s]) in (i = n) && d(i[a]) && N(i, a, function(t) {
return e.wrap(t)
});
return "onreadystatechange" in n && d(n.onreadystatechange) ? N(n, "onreadystatechange", function(t) {
return e.wrap(t, void 0, r)
}) : n.onreadystatechange = r, t.apply(this, arguments)
}
}, n)
}
t.xhr && O() && N(R, "fetch", function(t) {
return function() {
for (var n = new Array(arguments.length), r = 0; r < n.length; ++r) n[r] = arguments[r];
var a, i = n[0],
o = "GET";
if ("string" == typeof i ? a = i : "Request" in R && i instanceof R.Request ? (a = i.url, i.method && (o = i.method)) : a = "" + i, -1 !== a.indexOf(e._globalKey)) return t.apply(this, n);
n[1] && n[1].method && (o = n[1].method);
var s = {
method: o,
url: a,
status_code: null
};
return t.apply(this, n).then(function(t) {
return s.status_code = t.status, e.captureBreadcrumb({
type: "http",
category: "fetch",
data: s
}), t
})
}
}, n), t.dom && this._hasDocument && (I.addEventListener ? (I.addEventListener("click", e._breadcrumbEventHandler("click"), !1), I.addEventListener("keypress", e._keypressEventHandler(), !1)) : (I.attachEvent("onclick", e._breadcrumbEventHandler("click")), I.attachEvent("onkeypress", e._keypressEventHandler())));
var a = R.chrome,
i = !(a && a.app && a.app.runtime) && R.history && history.pushState && history.replaceState;
if (t.location && i) {
var o = R.onpopstate;
R.onpopstate = function() {
var t = e._location.href;
if (e._captureUrlChange(e._lastHref, t), o) return o.apply(this, arguments)
};
var s = function(t) {
return function() {
var n = arguments.length > 2 ? arguments[2] : void 0;
return n && e._captureUrlChange(e._lastHref, n + ""), t.apply(this, arguments)
}
};
N(history, "pushState", s, n), N(history, "replaceState", s, n)
}
if (t.console && "console" in R && console.log) {
var l = function(t, n) {
e.captureBreadcrumb({
message: t,
level: n.level,
category: "console"
})
};
f(["debug", "info", "warn", "error", "log"], function(e, t) {
M(console, t, l)
})
}
},
_restoreBuiltIns: function() {
for (var e; this._wrappedBuiltIns.length;) {
var t = (e = this._wrappedBuiltIns.shift())[0],
n = e[1],
r = e[2];
t[n] = r
}
},
_restoreConsole: function() {
for (var e in this._originalConsoleMethods) this._originalConsole[e] = this._originalConsoleMethods[e]
},
_drainPlugins: function() {
var e = this;
f(this._plugins, function(t, n) {
var r = n[0],
a = n[1];
r.apply(e, [e].concat(a))
})
},
_parseDSN: function(e) {
var t = A.exec(e),
n = {},
r = 7;
try {
for (; r--;) n[D[r]] = t[r] || ""
} catch (t) {
throw new i("Invalid DSN: " + e)
}
if (n.pass && !this._globalOptions.allowSecretKey) throw new i("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");
return n
},
_getGlobalServer: function(e) {
var t = "//" + e.host + (e.port ? ":" + e.port : "");
return e.protocol && (t = e.protocol + ":" + t), t
},
_handleOnErrorStackInfo: function() {
this._ignoreOnError || this._handleStackInfo.apply(this, arguments)
},
_handleStackInfo: function(e, t) {
var n = this._prepareFrames(e, t);
this._triggerEvent("handle", {
stackInfo: e,
options: t
}), this._processException(e.name, e.message, e.url, e.lineno, n, t)
},
_prepareFrames: function(e, t) {
var n = this,
r = [];
if (e.stack && e.stack.length && (f(e.stack, function(t, a) {
var i = n._normalizeFrame(a, e.url);
i && r.push(i)
}), t && t.trimHeadFrames))
for (var a = 0; a < t.trimHeadFrames && a < r.length; a++) r[a].in_app = !1;
return r = r.slice(0, this._globalOptions.stackTraceLimit)
},
_normalizeFrame: function(e, t) {
var n = {
filename: e.url,
lineno: e.line,
colno: e.column,
function: e.func || "?"
};
return e.url || (n.filename = t), n.in_app = !(this._globalOptions.includePaths.test && !this._globalOptions.includePaths.test(n.filename) || /(Raven|TraceKit)\./.test(n.function) || /raven\.(min\.)?js$/.test(n.filename)), n
},
_processException: function(e, t, n, r, a, i) {
var o, s = (e ? e + ": " : "") + (t || "");
if ((!this._globalOptions.ignoreErrors.test || !this._globalOptions.ignoreErrors.test(t) && !this._globalOptions.ignoreErrors.test(s)) && (a && a.length ? (n = a[0].filename || n, a.reverse(), o = {
frames: a
}) : n && (o = {
frames: [{
filename: n,
lineno: r,
in_app: !0
}]
}), (!this._globalOptions.ignoreUrls.test || !this._globalOptions.ignoreUrls.test(n)) && (!this._globalOptions.whitelistUrls.test || this._globalOptions.whitelistUrls.test(n)))) {
var l = h({
exception: {
values: [{
type: e,
value: t,
stacktrace: o
}]
},
culprit: n
}, i);
this._send(l)
}
},
_trimPacket: function(e) {
var t = this._globalOptions.maxMessageLength;
if (e.message && (e.message = b(e.message, t)), e.exception) {
var n = e.exception.values[0];
n.value = b(n.value, t)
}
var r = e.request;
return r && (r.url && (r.url = b(r.url, this._globalOptions.maxUrlLength)), r.Referer && (r.Referer = b(r.Referer, this._globalOptions.maxUrlLength))), e.breadcrumbs && e.breadcrumbs.values && this._trimBreadcrumbs(e.breadcrumbs), e
},
_trimBreadcrumbs: function(e) {
for (var t, n, r, a = ["to", "from", "url"], i = 0; i < e.values.length; ++i)
if ((n = e.values[i]).hasOwnProperty("data") && l(n.data) && !_(n.data)) {
r = h({}, n.data);
for (var o = 0; o < a.length; ++o) t = a[o], r.hasOwnProperty(t) && r[t] && (r[t] = b(r[t], this._globalOptions.maxUrlLength));
e.values[i].data = r
}
},
_getHttpData: function() {
if (this._hasNavigator || this._hasDocument) {
var e = {};
return this._hasNavigator && L.userAgent && (e.headers = {
"User-Agent": navigator.userAgent
}), R.location && R.location.href && (e.url = R.location.href), this._hasDocument && I.referrer && (e.headers || (e.headers = {}), e.headers.Referer = I.referrer), e
}
},
_resetBackoff: function() {
this._backoffDuration = 0, this._backoffStart = null
},
_shouldBackoff: function() {
return this._backoffDuration && k() - this._backoffStart < this._backoffDuration
},
_isRepeatData: function(e) {
var t = this._lastData;
return !(!t || e.message !== t.message || e.culprit !== t.culprit) && (e.stacktrace || t.stacktrace ? C(e.stacktrace, t.stacktrace) : !e.exception && !t.exception || w(e.exception, t.exception))
},
_setBackoffState: function(e) {
if (!this._shouldBackoff()) {
var t = e.status;
if (400 === t || 401 === t || 429 === t) {
var n;
try {
n = O() ? e.headers.get("Retry-After") : e.getResponseHeader("Retry-After"), n = 1e3 * parseInt(n, 10)
} catch (e) {}
this._backoffDuration = n || (2 * this._backoffDuration || 1e3), this._backoffStart = k()
}
}
},
_send: function(e) {
var t = this._globalOptions,
n = {
project: this._globalProject,
logger: t.logger,
platform: "javascript"
},
r = this._getHttpData();
r && (n.request = r), e.trimHeadFrames && delete e.trimHeadFrames, (e = h(n, e)).tags = h(h({}, this._globalContext.tags), e.tags), e.extra = h(h({}, this._globalContext.extra), e.extra), e.extra["session:duration"] = k() - this._startTime, this._breadcrumbs && this._breadcrumbs.length > 0 && (e.breadcrumbs = {
values: [].slice.call(this._breadcrumbs, 0)
}), this._globalContext.user && (e.user = this._globalContext.user), t.environment && (e.environment = t.environment), t.release && (e.release = t.release), t.serverName && (e.server_name = t.serverName), Object.keys(e).forEach(function(t) {
(null == e[t] || "" === e[t] || g(e[t])) && delete e[t]
}), d(t.dataCallback) && (e = t.dataCallback(e) || e), e && !g(e) && (d(t.shouldSendCallback) && !t.shouldSendCallback(e) || (this._shouldBackoff() ? this._logDebug("warn", "Raven dropped error due to backoff: ", e) : "number" == typeof t.sampleRate ? Math.random() < t.sampleRate && this._sendProcessedPayload(e) : this._sendProcessedPayload(e)))
},
_getUuid: function() {
return S()
},
_sendProcessedPayload: function(e, t) {
var n = this,
r = this._globalOptions;
if (this.isSetup())
if (e = this._trimPacket(e), this._globalOptions.allowDuplicates || !this._isRepeatData(e)) {
this._lastEventId = e.event_id || (e.event_id = this._getUuid()), this._lastData = e, this._logDebug("debug", "Raven about to send:", e);
var a = {
sentry_version: "7",
sentry_client: "raven-js/" + this.VERSION,
sentry_key: this._globalKey
};
this._globalSecret && (a.sentry_secret = this._globalSecret);
var i = e.exception && e.exception.values[0];
this._globalOptions.autoBreadcrumbs && this._globalOptions.autoBreadcrumbs.sentry && this.captureBreadcrumb({
category: "sentry",
message: i ? (i.type ? i.type + ": " : "") + i.value : e.message,
event_id: e.event_id,
level: e.level || "error"
});
var o = this._globalEndpoint;
(r.transport || this._makeRequest).call(this, {
url: o,
auth: a,
data: e,
options: r,
onSuccess: function() {
n._resetBackoff(), n._triggerEvent("success", {
data: e,
src: o
}), t && t()
},
onError: function(r) {
n._logDebug("error", "Raven transport failed to send: ", r), r.request && n._setBackoffState(r.request), n._triggerEvent("failure", {
data: e,
src: o
}), r = r || new Error("Raven send failed (no additional details provided)"), t && t(r)
}
})
} else this._logDebug("warn", "Raven dropped repeat event: ", e)
},
_makeRequest: function(e) {
var t = e.url + "?" + E(e.auth),
n = null,
r = {};
if (e.options.headers && (n = this._evaluateHash(e.options.headers)), e.options.fetchParameters && (r = this._evaluateHash(e.options.fetchParameters)), O()) {
r.body = a(e.data);
var i = h({}, this._fetchDefaults),
o = h(i, r);
return n && (o.headers = n), R.fetch(t, o).then(function(t) {
if (t.ok) e.onSuccess && e.onSuccess();
else {
var n = new Error("Sentry error code: " + t.status);
n.request = t, e.onError && e.onError(n)
}
}).catch(function() {
e.onError && e.onError(new Error("Sentry error code: network unavailable"))
})
}
var s = R.XMLHttpRequest && new R.XMLHttpRequest;
s && (("withCredentials" in s || "undefined" != typeof XDomainRequest) && ("withCredentials" in s ? s.onreadystatechange = function() {
if (4 === s.readyState)
if (200 === s.status) e.onSuccess && e.onSuccess();
else if (e.onError) {
var t = new Error("Sentry error code: " + s.status);
t.request = s, e.onError(t)
}
} : (s = new XDomainRequest, t = t.replace(/^https?:/, ""), e.onSuccess && (s.onload = e.onSuccess), e.onError && (s.onerror = function() {
var t = new Error("Sentry error code: XDomainRequest");
t.request = s, e.onError(t)
})), s.open("POST", t), n && f(n, function(e, t) {
s.setRequestHeader(e, t)
}), s.send(a(e.data))))
},
_evaluateHash: function(e) {
var t = {};
for (var n in e)
if (e.hasOwnProperty(n)) {
var r = e[n];
t[n] = "function" == typeof r ? r() : r
}
return t
},
_logDebug: function(e) {
this._originalConsoleMethods[e] && this.debug && Function.prototype.apply.call(this._originalConsoleMethods[e], this._originalConsole, [].slice.call(arguments, 1))
},
_mergeContext: function(e, t) {
u(t) ? delete this._globalContext[e] : this._globalContext[e] = h(this._globalContext[e] || {}, t)
}
}, F.prototype.setUser = F.prototype.setUserContext, F.prototype.setReleaseContext = F.prototype.setRelease, e.exports = F
}).call(t, n(0))
}, function(e, t, n) {
(function(t) {
var r = n(20),
a = {
collectWindowErrors: !0,
debug: !1
},
i = "undefined" != typeof window ? window : void 0 !== t ? t : "undefined" != typeof self ? self : {},
o = [].slice,
s = "?",
l = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;
function c() {
return "undefined" == typeof document || null == document.location ? "" : document.location.href
}
a.report = function() {
var e, t, n = [],
u = null,
d = null,
p = null;
function m(e, t) {
var r = null;
if (!t || a.collectWindowErrors) {
for (var i in n)
if (n.hasOwnProperty(i)) try {
n[i].apply(null, [e].concat(o.call(arguments, 2)))
} catch (e) {
r = e
}
if (r) throw r
}
}
function g(t, n, i, o, u) {
var d = r.isErrorEvent(u) ? u.error : u,
g = r.isErrorEvent(t) ? t.message : t;
if (p) a.computeStackTrace.augmentStackTraceWithInitialElement(p, n, i, g), f();
else if (d && r.isError(d)) m(a.computeStackTrace(d), !0);
else {
var h, b = {
url: n,
line: i,
column: o
},
_ = void 0;
if ("[object String]" === {}.toString.call(g))(h = g.match(l)) && (_ = h[1], g = h[2]);
b.func = s, m({
name: _,
message: g,
url: c(),
stack: [b]
}, !0)
}
return !!e && e.apply(this, arguments)
}
function f() {
var e = p,
t = u;
u = null, p = null, d = null, m.apply(null, [e, !1].concat(t))
}
function h(e, t) {
var n = o.call(arguments, 1);
if (p) {
if (d === e) return;
f()
}
var r = a.computeStackTrace(e);
if (p = r, d = e, u = n, setTimeout(function() {
d === e && f()
}, r.incomplete ? 2e3 : 0), !1 !== t) throw e
}
return h.subscribe = function(r) {
t || (e = i.onerror, i.onerror = g, t = !0), n.push(r)
}, h.unsubscribe = function(e) {
for (var t = n.length - 1; t >= 0; --t) n[t] === e && n.splice(t, 1)
}, h.uninstall = function() {
t && (i.onerror = e, t = !1, e = void 0), n = []
}, h
}(), a.computeStackTrace = function() {
function e(e) {
if (void 0 !== e.stack && e.stack) {
for (var t, n, r, a = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, i = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i, o = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, l = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, u = /\((\S*)(?::(\d+))(?::(\d+))\)/, d = e.stack.split("\n"), p = [], m = (/^(.*) is undefined$/.exec(e.message), 0), g = d.length; m < g; ++m) {
if (n = a.exec(d[m])) {
var f = n[2] && 0 === n[2].indexOf("native");
n[2] && 0 === n[2].indexOf("eval") && (t = u.exec(n[2])) && (n[2] = t[1], n[3] = t[2], n[4] = t[3]), r = {
url: f ? null : n[2],
func: n[1] || s,
args: f ? [n[2]] : [],
line: n[3] ? +n[3] : null,
column: n[4] ? +n[4] : null
}
} else if (n = o.exec(d[m])) r = {
url: n[2],
func: n[1] || s,
args: [],
line: +n[3],
column: n[4] ? +n[4] : null
};
else {
if (!(n = i.exec(d[m]))) continue;
n[3] && n[3].indexOf(" > eval") > -1 && (t = l.exec(n[3])) ? (n[3] = t[1], n[4] = t[2], n[5] = null) : 0 !== m || n[5] || void 0 === e.columnNumber || (p[0].column = e.columnNumber + 1), r = {
url: n[3],
func: n[1] || s,
args: n[2] ? n[2].split(",") : [],
line: n[4] ? +n[4] : null,
column: n[5] ? +n[5] : null
}
}!r.func && r.line && (r.func = s), p.push(r)
}
return p.length ? {
name: e.name,
message: e.message,
url: c(),
stack: p
} : null
}
}
function t(e, t, n, r) {
var a = {
url: t,
line: n
};
if (a.url && a.line) {
if (e.incomplete = !1, a.func || (a.func = s), e.stack.length > 0 && e.stack[0].url === a.url) {
if (e.stack[0].line === a.line) return !1;
if (!e.stack[0].line && e.stack[0].func === a.func) return e.stack[0].line = a.line, !1
}
return e.stack.unshift(a), e.partial = !0, !0
}
return e.incomplete = !0, !1
}
function n(e, i) {
for (var o, l, u = /function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i, d = [], p = {}, m = !1, g = n.caller; g && !m; g = g.caller)
if (g !== r && g !== a.report) {
if (l = {
url: null,
func: s,
line: null,
column: null
}, g.name ? l.func = g.name : (o = u.exec(g.toString())) && (l.func = o[1]), void 0 === l.func) try {
l.func = o.input.substring(0, o.input.indexOf("{"))
} catch (e) {}
p["" + g] ? m = !0 : p["" + g] = !0, d.push(l)
}
i && d.splice(0, i);
var f = {
name: e.name,
message: e.message,
url: c(),
stack: d
};
return t(f, e.sourceURL || e.fileName, e.line || e.lineNumber, e.message || e.description), f
}
function r(t, r) {
var i = null;
r = null == r ? 0 : +r;
try {
if (i = e(t)) return i
} catch (e) {
if (a.debug) throw e
}
try {
if (i = n(t, r + 1)) return i
} catch (e) {
if (a.debug) throw e
}
return {
name: t.name,
message: t.message,
url: c()
}
}
return r.augmentStackTraceWithInitialElement = t, r.computeStackTraceFromStackProp = e, r
}(), e.exports = a
}).call(t, n(0))
}, function(e, t) {
function n(e, t) {
for (var n = 0; n < e.length; ++n)
if (e[n] === t) return n;
return -1
}
function r(e, t) {
var r = [],
a = [];
return null == t && (t = function(e, t) {
return r[0] === t ? "[Circular ~]" : "[Circular ~." + a.slice(0, n(r, t)).join(".") + "]"
}),
function(i, o) {
if (r.length > 0) {
var s = n(r, this);
~s ? r.splice(s + 1) : r.push(this), ~s ? a.splice(s, 1 / 0, i) : a.push(i), ~n(r, o) && (o = t.call(this, i, o))
} else r.push(o);
return null == e ? o instanceof Error ? function(e) {
var t = {
stack: e.stack,
message: e.message,
name: e.name
};
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
return t
}(o) : o : e.call(this, i, o)
}
}(e.exports = function(e, t, n, a) {
return JSON.stringify(e, r(t, a), n)
}).getSerialize = r
}, function(e, t) {
function n(e) {
this.name = "RavenConfigError", this.message = e
}
n.prototype = new Error, n.prototype.constructor = n, e.exports = n
}, function(e, t, n) {
var r = n(20);
e.exports = {
wrapMethod: function(e, t, n) {
var a = e[t],
i = e;
if (t in e) {
var o = "warn" === t ? "warning" : t;
e[t] = function() {
var e = [].slice.call(arguments),
s = r.safeJoin(e, " "),
l = {
level: o,
logger: "console",
extra: {
arguments: e
}
};
"assert" === t ? !1 === e[0] && (s = "Assertion failed: " + (r.safeJoin(e.slice(1), " ") || "console.assert"), l.extra.arguments = e.slice(1), n && n(s, l)) : n && n(s, l), a && Function.prototype.apply.call(a, i, e)
}
}
}
}
}, function(e, t, n) {
"use strict";
var r = n(1),
a = n(61),
i = n(26),
o = n(15),
s = n(62),
l = n(63),
c = n(64),
u = n(65),
d = n(68),
p = n(27);
function m(e) {
for (var t = arguments.length - 1, n = "Minified React error #" + e + "; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=" + e, r = 0; r < t; r++) n += "&args[]=" + encodeURIComponent(arguments[r + 1]);
throw (t = Error(n + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.")).name = "Invariant Violation", t.framesToPop = 1, t
}
r || m("227");
var g = {
children: !0,
dangerouslySetInnerHTML: !0,
defaultValue: !0,
defaultChecked: !0,
innerHTML: !0,
suppressContentEditableWarning: !0,
suppressHydrationWarning: !0,
style: !0
};
function f(e, t) {
return (e & t) === t
}
var h = {
MUST_USE_PROPERTY: 1,
HAS_BOOLEAN_VALUE: 4,
HAS_NUMERIC_VALUE: 8,
HAS_POSITIVE_NUMERIC_VALUE: 24,
HAS_OVERLOADED_BOOLEAN_VALUE: 32,
HAS_STRING_BOOLEAN_VALUE: 64,
injectDOMPropertyConfig: function(e) {
var t = h,
n = e.Properties || {},
r = e.DOMAttributeNamespaces || {},
a = e.DOMAttributeNames || {};
e = e.DOMMutationMethods || {};
for (var i in n) {
b.hasOwnProperty(i) && m("48", i);
var o = i.toLowerCase(),
s = n[i];
1 >= (o = {
attributeName: o,
attributeNamespace: null,
propertyName: i,
mutationMethod: null,
mustUseProperty: f(s, t.MUST_USE_PROPERTY),
hasBooleanValue: f(s, t.HAS_BOOLEAN_VALUE),
hasNumericValue: f(s, t.HAS_NUMERIC_VALUE),
hasPositiveNumericValue: f(s, t.HAS_POSITIVE_NUMERIC_VALUE),
hasOverloadedBooleanValue: f(s, t.HAS_OVERLOADED_BOOLEAN_VALUE),
hasStringBooleanValue: f(s, t.HAS_STRING_BOOLEAN_VALUE)
}).hasBooleanValue + o.hasNumericValue + o.hasOverloadedBooleanValue || m("50", i), a.hasOwnProperty(i) && (o.attributeName = a[i]), r.hasOwnProperty(i) && (o.attributeNamespace = r[i]), e.hasOwnProperty(i) && (o.mutationMethod = e[i]), b[i] = o
}
}
},
b = {};
function _(e, t) {
if (g.hasOwnProperty(e) || 2 < e.length && ("o" === e[0] || "O" === e[0]) && ("n" === e[1] || "N" === e[1])) return !1;
if (null === t) return !0;
switch (typeof t) {
case "boolean":
return g.hasOwnProperty(e) ? e = !0 : (t = v(e)) ? e = t.hasBooleanValue || t.hasStringBooleanValue || t.hasOverloadedBooleanValue : e = "data-" === (e = e.toLowerCase().slice(0, 5)) || "aria-" === e, e;
case "undefined":
case "number":
case "string":
case "object":
return !0;
default:
return !1
}
}
function v(e) {
return b.hasOwnProperty(e) ? b[e] : null
}
var y = h,
E = y.MUST_USE_PROPERTY,
S = y.HAS_BOOLEAN_VALUE,
x = y.HAS_NUMERIC_VALUE,
w = y.HAS_POSITIVE_NUMERIC_VALUE,
C = y.HAS_OVERLOADED_BOOLEAN_VALUE,
T = y.HAS_STRING_BOOLEAN_VALUE,
N = {
Properties: {
allowFullScreen: S,
async: S,
autoFocus: S,
autoPlay: S,
capture: C,
checked: E | S,
cols: w,
contentEditable: T,
controls: S,
default: S,
defer: S,
disabled: S,
download: C,
draggable: T,
formNoValidate: S,
hidden: S,
loop: S,
multiple: E | S,
muted: E | S,
noValidate: S,
open: S,
playsInline: S,
readOnly: S,
required: S,
reversed: S,
rows: w,
rowSpan: x,
scoped: S,
seamless: S,
selected: E | S,
size: w,
start: x,
span: w,
spellCheck: T,
style: 0,
tabIndex: 0,
itemScope: S,
acceptCharset: 0,
className: 0,
htmlFor: 0,
httpEquiv: 0,
value: T
},
DOMAttributeNames: {
acceptCharset: "accept-charset",
className: "class",
htmlFor: "for",
httpEquiv: "http-equiv"
},
DOMMutationMethods: {
value: function(e, t) {
if (null == t) return e.removeAttribute("value");
"number" !== e.type || !1 === e.hasAttribute("value") ? e.setAttribute("value", "" + t) : e.validity && !e.validity.badInput && e.ownerDocument.activeElement !== e && e.setAttribute("value", "" + t)
}
}
},
O = y.HAS_STRING_BOOLEAN_VALUE,
M = "http://www.w3.org/1999/xlink",
D = "http://www.w3.org/XML/1998/namespace",
A = {
Properties: {
autoReverse: O,
externalResourcesRequired: O,
preserveAlpha: O
},
DOMAttributeNames: {
autoReverse: "autoReverse",
externalResourcesRequired: "externalResourcesRequired",
preserveAlpha: "preserveAlpha"
},
DOMAttributeNamespaces: {
xlinkActuate: M,
xlinkArcrole: M,
xlinkHref: M,
xlinkRole: M,
xlinkShow: M,
xlinkTitle: M,
xlinkType: M,
xmlBase: D,
xmlLang: D,
xmlSpace: D
}
},
k = /[\-\:]([a-z])/g;
function R(e) {
return e[1].toUpperCase()
}
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e) {
var t = e.replace(k, R);
A.Properties[t] = 0, A.DOMAttributeNames[t] = e
}), y.injectDOMPropertyConfig(N), y.injectDOMPropertyConfig(A);
var I = {
_caughtError: null,
_hasCaughtError: !1,
_rethrowError: null,
_hasRethrowError: !1,
injection: {
injectErrorUtils: function(e) {
"function" != typeof e.invokeGuardedCallback && m("197"), L = e.invokeGuardedCallback
}
},
invokeGuardedCallback: function(e, t, n, r, a, i, o, s, l) {
L.apply(I, arguments)
},
invokeGuardedCallbackAndCatchFirstError: function(e, t, n, r, a, i, o, s, l) {
if (I.invokeGuardedCallback.apply(this, arguments), I.hasCaughtError()) {
var c = I.clearCaughtError();
I._hasRethrowError || (I._hasRethrowError = !0, I._rethrowError = c)
}
},
rethrowCaughtError: function() {
return function() {
if (I._hasRethrowError) {
var e = I._rethrowError;
throw I._rethrowError = null, I._hasRethrowError = !1, e
}
}.apply(I, arguments)
},
hasCaughtError: function() {
return I._hasCaughtError
},
clearCaughtError: function() {
if (I._hasCaughtError) {
var e = I._caughtError;
return I._caughtError = null, I._hasCaughtError = !1, e
}
m("198")
}
};
function L(e, t, n, r, a, i, o, s, l) {
I._hasCaughtError = !1, I._caughtError = null;
var c = Array.prototype.slice.call(arguments, 3);
try {
t.apply(n, c)
} catch (e) {
I._caughtError = e, I._hasCaughtError = !0
}
}
var P = null,
F = {};
function B() {
if (P)
for (var e in F) {
var t = F[e],
n = P.indexOf(e);
if (-1 < n || m("96", e), !G[n]) {
t.extractEvents || m("97", e), G[n] = t, n = t.eventTypes;
for (var r in n) {
var a = void 0,
i = n[r],
o = t,
s = r;
q.hasOwnProperty(s) && m("99", s), q[s] = i;
var l = i.phasedRegistrationNames;
if (l) {
for (a in l) l.hasOwnProperty(a) && U(l[a], o, s);
a = !0
} else i.registrationName ? (U(i.registrationName, o, s), a = !0) : a = !1;
a || m("98", r, e)
}
}
}
}
function U(e, t, n) {
z[e] && m("100", e), z[e] = t, j[e] = t.eventTypes[n].dependencies
}
var G = [],
q = {},
z = {},
j = {};
function H(e) {
P && m("101"), P = Array.prototype.slice.call(e), B()
}
function $(e) {
var t, n = !1;
for (t in e)
if (e.hasOwnProperty(t)) {
var r = e[t];
F.hasOwnProperty(t) && F[t] === r || (F[t] && m("102", t), F[t] = r, n = !0)
}
n && B()
}
var W = Object.freeze({
plugins: G,
eventNameDispatchConfigs: q,
registrationNameModules: z,
registrationNameDependencies: j,
possibleRegistrationNames: null,
injectEventPluginOrder: H,
injectEventPluginsByName: $
}),
V = null,
K = null,
Q = null;
function Z(e, t, n, r) {
t = e.type || "unknown-event", e.currentTarget = Q(r), I.invokeGuardedCallbackAndCatchFirstError(t, n, void 0, e), e.currentTarget = null
}
function X(e, t) {
return null == t && m("30"), null == e ? t : Array.isArray(e) ? Array.isArray(t) ? (e.push.apply(e, t), e) : (e.push(t), e) : Array.isArray(t) ? [e].concat(t) : [e, t]
}
function Y(e, t, n) {
Array.isArray(e) ? e.forEach(t, n) : e && t.call(n, e)
}
var J = null;
function ee(e, t) {
if (e) {
var n = e._dispatchListeners,
r = e._dispatchInstances;
if (Array.isArray(n))
for (var a = 0; a < n.length && !e.isPropagationStopped(); a++) Z(e, t, n[a], r[a]);
else n && Z(e, t, n, r);
e._dispatchListeners = null, e._dispatchInstances = null, e.isPersistent() || e.constructor.release(e)
}
}
function te(e) {
return ee(e, !0)
}
function ne(e) {
return ee(e, !1)
}
var re = {
injectEventPluginOrder: H,
injectEventPluginsByName: $
};
function ae(e, t) {
var n = e.stateNode;
if (!n) return null;
var r = V(n);
if (!r) return null;
n = r[t];
e: switch (t) {
case "onClick":
case "onClickCapture":
case "onDoubleClick":
case "onDoubleClickCapture":
case "onMouseDown":
case "onMouseDownCapture":
case "onMouseMove":
case "onMouseMoveCapture":
case "onMouseUp":
case "onMouseUpCapture":
(r = !r.disabled) || (r = !("button" === (e = e.type) || "input" === e || "select" === e || "textarea" === e)), e = !r;
break e;
default:
e = !1
}
return e ? null : (n && "function" != typeof n && m("231", t, typeof n), n)
}
function ie(e, t, n, r) {
for (var a, i = 0; i < G.length; i++) {
var o = G[i];
o && (o = o.extractEvents(e, t, n, r)) && (a = X(a, o))
}
return a
}
function oe(e) {
e && (J = X(J, e))
}
function se(e) {
var t = J;
J = null, t && (Y(t, e ? te : ne), J && m("95"), I.rethrowCaughtError())
}
var le = Object.freeze({
injection: re,
getListener: ae,
extractEvents: ie,
enqueueEvents: oe,
processEventQueue: se
}),
ce = Math.random().toString(36).slice(2),
ue = "__reactInternalInstance$" + ce,
de = "__reactEventHandlers$" + ce;
function pe(e) {
if (e[ue]) return e[ue];
for (var t = []; !e[ue];) {
if (t.push(e), !e.parentNode) return null;
e = e.parentNode
}
var n = void 0,
r = e[ue];
if (5 === r.tag || 6 === r.tag) return r;
for (; e && (r = e[ue]); e = t.pop()) n = r;
return n
}
function me(e) {
if (5 === e.tag || 6 === e.tag) return e.stateNode;
m("33")
}
function ge(e) {
return e[de] || null
}
var fe = Object.freeze({
precacheFiberNode: function(e, t) {
t[ue] = e
},
getClosestInstanceFromNode: pe,
getInstanceFromNode: function(e) {
return !(e = e[ue]) || 5 !== e.tag && 6 !== e.tag ? null : e
},
getNodeFromInstance: me,
getFiberCurrentPropsFromNode: ge,
updateFiberProps: function(e, t) {
e[de] = t
}
});
function he(e) {
do {
e = e.return
} while (e && 5 !== e.tag);
return e || null
}
function be(e, t, n) {
for (var r = []; e;) r.push(e), e = he(e);
for (e = r.length; 0 < e--;) t(r[e], "captured", n);
for (e = 0; e < r.length; e++) t(r[e], "bubbled", n)
}
function _e(e, t, n) {
(t = ae(e, n.dispatchConfig.phasedRegistrationNames[t])) && (n._dispatchListeners = X(n._dispatchListeners, t), n._dispatchInstances = X(n._dispatchInstances, e))
}
function ve(e) {
e && e.dispatchConfig.phasedRegistrationNames && be(e._targetInst, _e, e)
}
function ye(e) {
if (e && e.dispatchConfig.phasedRegistrationNames) {
var t = e._targetInst;
be(t = t ? he(t) : null, _e, e)
}
}
function Ee(e, t, n) {
e && n && n.dispatchConfig.registrationName && (t = ae(e, n.dispatchConfig.registrationName)) && (n._dispatchListeners = X(n._dispatchListeners, t), n._dispatchInstances = X(n._dispatchInstances, e))
}
function Se(e) {
e && e.dispatchConfig.registrationName && Ee(e._targetInst, null, e)
}
function xe(e) {
Y(e, ve)
}
function we(e, t, n, r) {
if (n && r) e: {
for (var a = n, i = r, o = 0, s = a; s; s = he(s)) o++;
s = 0;
for (var l = i; l; l = he(l)) s++;
for (; 0 < o - s;) a = he(a), o--;
for (; 0 < s - o;) i = he(i), s--;
for (; o--;) {
if (a === i || a === i.alternate) break e;
a = he(a), i = he(i)
}
a = null
} else a = null;
for (i = a, a = []; n && n !== i && (null === (o = n.alternate) || o !== i);) a.push(n), n = he(n);
for (n = []; r && r !== i && (null === (o = r.alternate) || o !== i);) n.push(r), r = he(r);
for (r = 0; r < a.length; r++) Ee(a[r], "bubbled", e);
for (e = n.length; 0 < e--;) Ee(n[e], "captured", t)
}
var Ce = Object.freeze({
accumulateTwoPhaseDispatches: xe,
accumulateTwoPhaseDispatchesSkipTarget: function(e) {
Y(e, ye)
},
accumulateEnterLeaveDispatches: we,
accumulateDirectDispatches: function(e) {
Y(e, Se)
}
}),
Te = null;
function Ne() {
return !Te && a.canUseDOM && (Te = "textContent" in document.documentElement ? "textContent" : "innerText"), Te
}
var Oe = {
_root: null,
_startText: null,
_fallbackText: null
};
function Me() {
if (Oe._fallbackText) return Oe._fallbackText;
var e, t, n = Oe._startText,
r = n.length,
a = De(),
i = a.length;
for (e = 0; e < r && n[e] === a[e]; e++);
var o = r - e;
for (t = 1; t <= o && n[r - t] === a[i - t]; t++);
return Oe._fallbackText = a.slice(e, 1 < t ? 1 - t : void 0), Oe._fallbackText
}
function De() {
return "value" in Oe._root ? Oe._root.value : Oe._root[Ne()]
}
var Ae = "dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),
ke = {
type: null,
target: null,
currentTarget: o.thatReturnsNull,
eventPhase: null,
bubbles: null,
cancelable: null,
timeStamp: function(e) {
return e.timeStamp || Date.now()
},
defaultPrevented: null,
isTrusted: null
};
function Re(e, t, n, r) {
this.dispatchConfig = e, this._targetInst = t, this.nativeEvent = n, e = this.constructor.Interface;
for (var a in e) e.hasOwnProperty(a) && ((t = e[a]) ? this[a] = t(n) : "target" === a ? this.target = r : this[a] = n[a]);
return this.isDefaultPrevented = (null != n.defaultPrevented ? n.defaultPrevented : !1 === n.returnValue) ? o.thatReturnsTrue : o.thatReturnsFalse, this.isPropagationStopped = o.thatReturnsFalse, this
}
function Ie(e, t, n, r) {
if (this.eventPool.length) {
var a = this.eventPool.pop();
return this.call(a, e, t, n, r), a
}
return new this(e, t, n, r)
}
function Le(e) {
e instanceof this || m("223"), e.destructor(), 10 > this.eventPool.length && this.eventPool.push(e)
}
function Pe(e) {
e.eventPool = [], e.getPooled = Ie, e.release = Le
}
function Fe(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
function Be(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
i(Re.prototype, {
preventDefault: function() {
this.defaultPrevented = !0;
var e = this.nativeEvent;
e && (e.preventDefault ? e.preventDefault() : "unknown" != typeof e.returnValue && (e.returnValue = !1), this.isDefaultPrevented = o.thatReturnsTrue)
},
stopPropagation: function() {
var e = this.nativeEvent;
e && (e.stopPropagation ? e.stopPropagation() : "unknown" != typeof e.cancelBubble && (e.cancelBubble = !0), this.isPropagationStopped = o.thatReturnsTrue)
},
persist: function() {
this.isPersistent = o.thatReturnsTrue
},
isPersistent: o.thatReturnsFalse,
destructor: function() {
var e, t = this.constructor.Interface;
for (e in t) this[e] = null;
for (t = 0; t < Ae.length; t++) this[Ae[t]] = null
}
}), Re.Interface = ke, Re.augmentClass = function(e, t) {
function n() {}
n.prototype = this.prototype;
var r = new n;
i(r, e.prototype), e.prototype = r, e.prototype.constructor = e, e.Interface = i({}, this.Interface, t), e.augmentClass = this.augmentClass, Pe(e)
}, Pe(Re), Re.augmentClass(Fe, {
data: null
}), Re.augmentClass(Be, {
data: null
});
var Ue, Ge = [9, 13, 27, 32],
qe = a.canUseDOM && "CompositionEvent" in window,
ze = null;
if (a.canUseDOM && "documentMode" in document && (ze = document.documentMode), Ue = a.canUseDOM && "TextEvent" in window && !ze) {
var je = window.opera;
Ue = !("object" == typeof je && "function" == typeof je.version && 12 >= parseInt(je.version(), 10))
}
var He = Ue,
$e = a.canUseDOM && (!qe || ze && 8 < ze && 11 >= ze),
We = String.fromCharCode(32),
Ve = {
beforeInput: {
phasedRegistrationNames: {
bubbled: "onBeforeInput",
captured: "onBeforeInputCapture"
},
dependencies: ["topCompositionEnd", "topKeyPress", "topTextInput", "topPaste"]
},
compositionEnd: {
phasedRegistrationNames: {
bubbled: "onCompositionEnd",
captured: "onCompositionEndCapture"
},
dependencies: "topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")
},
compositionStart: {
phasedRegistrationNames: {
bubbled: "onCompositionStart",
captured: "onCompositionStartCapture"
},
dependencies: "topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")
},
compositionUpdate: {
phasedRegistrationNames: {
bubbled: "onCompositionUpdate",
captured: "onCompositionUpdateCapture"
},
dependencies: "topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")
}
},
Ke = !1;
function Qe(e, t) {
switch (e) {
case "topKeyUp":
return -1 !== Ge.indexOf(t.keyCode);
case "topKeyDown":
return 229 !== t.keyCode;
case "topKeyPress":
case "topMouseDown":
case "topBlur":
return !0;
default:
return !1
}
}
function Ze(e) {
return "object" == typeof(e = e.detail) && "data" in e ? e.data : null
}
var Xe = !1;
var Ye = {
eventTypes: Ve,
extractEvents: function(e, t, n, r) {
var a;
if (qe) e: {
switch (e) {
case "topCompositionStart":
var i = Ve.compositionStart;
break e;
case "topCompositionEnd":
i = Ve.compositionEnd;
break e;
case "topCompositionUpdate":
i = Ve.compositionUpdate;
break e
}
i = void 0
} else Xe ? Qe(e, n) && (i = Ve.compositionEnd) : "topKeyDown" === e && 229 === n.keyCode && (i = Ve.compositionStart);
return i ? ($e && (Xe || i !== Ve.compositionStart ? i === Ve.compositionEnd && Xe && (a = Me()) : (Oe._root = r, Oe._startText = De(), Xe = !0)), i = Fe.getPooled(i, t, n, r), a ? i.data = a : null !== (a = Ze(n)) && (i.data = a), xe(i), a = i) : a = null, (e = He ? function(e, t) {
switch (e) {
case "topCompositionEnd":
return Ze(t);
case "topKeyPress":
return 32 !== t.which ? null : (Ke = !0, We);
case "topTextInput":
return (e = t.data) === We && Ke ? null : e;
default:
return null
}
}(e, n) : function(e, t) {
if (Xe) return "topCompositionEnd" === e || !qe && Qe(e, t) ? (e = Me(), Oe._root = null, Oe._startText = null, Oe._fallbackText = null, Xe = !1, e) : null;
switch (e) {
case "topPaste":
return null;
case "topKeyPress":
if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) {
if (t.char && 1 < t.char.length) return t.char;
if (t.which) return String.fromCharCode(t.which)
}
return null;
case "topCompositionEnd":
return $e ? null : t.data;
default:
return null
}
}(e, n)) ? ((t = Be.getPooled(Ve.beforeInput, t, n, r)).data = e, xe(t)) : t = null, [a, t]
}
},
Je = null,
et = null,
tt = null;
function nt(e) {
if (e = K(e)) {
Je && "function" == typeof Je.restoreControlledState || m("194");
var t = V(e.stateNode);
Je.restoreControlledState(e.stateNode, e.type, t)
}
}
var rt = {
injectFiberControlledHostComponent: function(e) {
Je = e
}
};
function at(e) {
et ? tt ? tt.push(e) : tt = [e] : et = e
}
function it() {
if (et) {
var e = et,
t = tt;
if (tt = et = null, nt(e), t)
for (e = 0; e < t.length; e++) nt(t[e])
}
}
var ot = Object.freeze({
injection: rt,
enqueueStateRestore: at,
restoreStateIfNeeded: it
});
function st(e, t) {
return e(t)
}
var lt = !1;
function ct(e, t) {
if (lt) return st(e, t);
lt = !0;
try {
return st(e, t)
} finally {
lt = !1, it()
}
}
var ut, dt = {
color: !0,
date: !0,
datetime: !0,
"datetime-local": !0,
email: !0,
month: !0,
number: !0,
password: !0,
range: !0,
search: !0,
tel: !0,
text: !0,
time: !0,
url: !0,
week: !0
};
function pt(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return "input" === t ? !!dt[e.type] : "textarea" === t
}
function mt(e) {
return (e = e.target || e.srcElement || window).correspondingUseElement && (e = e.correspondingUseElement), 3 === e.nodeType ? e.parentNode : e
}
function gt(e, t) {
if (!a.canUseDOM || t && !("addEventListener" in document)) return !1;
var n = (t = "on" + e) in document;
return n || ((n = document.createElement("div")).setAttribute(t, "return;"), n = "function" == typeof n[t]), !n && ut && "wheel" === e && (n = document.implementation.hasFeature("Events.wheel", "3.0")), n
}
function ft(e) {
var t = e.type;
return (e = e.nodeName) && "input" === e.toLowerCase() && ("checkbox" === t || "radio" === t)
}
function ht(e) {
e._valueTracker || (e._valueTracker = function(e) {
var t = ft(e) ? "checked" : "value",
n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t),
r = "" + e[t];
if (!e.hasOwnProperty(t) && "function" == typeof n.get && "function" == typeof n.set) return Object.defineProperty(e, t, {
enumerable: n.enumerable,
configurable: !0,
get: function() {
return n.get.call(this)
},
set: function(e) {
r = "" + e, n.set.call(this, e)
}
}), {
getValue: function() {
return r
},
setValue: function(e) {
r = "" + e
},
stopTracking: function() {
e._valueTracker = null, delete e[t]
}
}
}(e))
}
function bt(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(),
r = "";
return e && (r = ft(e) ? e.checked ? "true" : "false" : e.value), (e = r) !== n && (t.setValue(e), !0)
}
a.canUseDOM && (ut = document.implementation && document.implementation.hasFeature && !0 !== document.implementation.hasFeature("", ""));
var _t = {
change: {
phasedRegistrationNames: {
bubbled: "onChange",
captured: "onChangeCapture"
},
dependencies: "topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")
}
};
function vt(e, t, n) {
return (e = Re.getPooled(_t.change, e, t, n)).type = "change", at(n), xe(e), e
}
var yt = null,
Et = null;
function St(e) {
oe(e), se(!1)
}
function xt(e) {
if (bt(me(e))) return e
}
function wt(e, t) {
if ("topChange" === e) return t
}
var Ct = !1;
function Tt() {
yt && (yt.detachEvent("onpropertychange", Nt), Et = yt = null)
}
function Nt(e) {
"value" === e.propertyName && xt(Et) && ct(St, e = vt(Et, e, mt(e)))
}
function Ot(e, t, n) {
"topFocus" === e ? (Tt(), Et = n, (yt = t).attachEvent("onpropertychange", Nt)) : "topBlur" === e && Tt()
}
function Mt(e) {
if ("topSelectionChange" === e || "topKeyUp" === e || "topKeyDown" === e) return xt(Et)
}
function Dt(e, t) {
if ("topClick" === e) return xt(t)
}
function At(e, t) {
if ("topInput" === e || "topChange" === e) return xt(t)
}
a.canUseDOM && (Ct = gt("input") && (!document.documentMode || 9 < document.documentMode));
var kt = {
eventTypes: _t,
_isInputEventSupported: Ct,
extractEvents: function(e, t, n, r) {
var a = t ? me(t) : window,
i = a.nodeName && a.nodeName.toLowerCase();
if ("select" === i || "input" === i && "file" === a.type) var o = wt;
else if (pt(a))
if (Ct) o = At;
else {
o = Mt;
var s = Ot
} else i = a.nodeName, !i || "input" !== i.toLowerCase() || "checkbox" !== a.type && "radio" !== a.type || (o = Dt);
if (o && (o = o(e, t))) return vt(o, n, r);
s && s(e, a, t), "topBlur" === e && null != t && (e = t._wrapperState || a._wrapperState) && e.controlled && "number" === a.type && (e = "" + a.value, a.getAttribute("value") !== e && a.setAttribute("value", e))
}
};
function Rt(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
Re.augmentClass(Rt, {
view: null,
detail: null
});
var It = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
function Lt(e) {
var t = this.nativeEvent;
return t.getModifierState ? t.getModifierState(e) : !!(e = It[e]) && !!t[e]
}
function Pt() {
return Lt
}
function Ft(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
Rt.augmentClass(Ft, {
screenX: null,
screenY: null,
clientX: null,
clientY: null,
pageX: null,
pageY: null,
ctrlKey: null,
shiftKey: null,
altKey: null,
metaKey: null,
getModifierState: Pt,
button: null,
buttons: null,
relatedTarget: function(e) {
return e.relatedTarget || (e.fromElement === e.srcElement ? e.toElement : e.fromElement)
}
});
var Bt = {
mouseEnter: {
registrationName: "onMouseEnter",
dependencies: ["topMouseOut", "topMouseOver"]
},
mouseLeave: {
registrationName: "onMouseLeave",
dependencies: ["topMouseOut", "topMouseOver"]
}
},
Ut = {
eventTypes: Bt,
extractEvents: function(e, t, n, r) {
if ("topMouseOver" === e && (n.relatedTarget || n.fromElement) || "topMouseOut" !== e && "topMouseOver" !== e) return null;
var a = r.window === r ? r : (a = r.ownerDocument) ? a.defaultView || a.parentWindow : window;
if ("topMouseOut" === e ? (e = t, t = (t = n.relatedTarget || n.toElement) ? pe(t) : null) : e = null, e === t) return null;
var i = null == e ? a : me(e);
a = null == t ? a : me(t);
var o = Ft.getPooled(Bt.mouseLeave, e, n, r);
return o.type = "mouseleave", o.target = i, o.relatedTarget = a, (n = Ft.getPooled(Bt.mouseEnter, t, n, r)).type = "mouseenter", n.target = a, n.relatedTarget = i, we(o, n, e, t), [o, n]
}
},
Gt = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
function qt(e) {
return "string" == typeof(e = e.type) ? e : "function" == typeof e ? e.displayName || e.name : null
}
function zt(e) {
var t = e;
if (e.alternate)
for (; t.return;) t = t.return;
else {
if (0 != (2 & t.effectTag)) return 1;
for (; t.return;)
if (t = t.return, 0 != (2 & t.effectTag)) return 1
}
return 3 === t.tag ? 2 : 3
}
function jt(e) {
return !!(e = e._reactInternalFiber) && 2 === zt(e)
}
function Ht(e) {
2 !== zt(e) && m("188")
}
function $t(e) {
var t = e.alternate;
if (!t) return t = zt(e), 3 === t && m("188"), 1 === t ? null : e;
for (var n = e, r = t;;) {
var a = n.return,
i = a ? a.alternate : null;
if (!a || !i) break;
if (a.child === i.child) {
for (var o = a.child; o;) {
if (o === n) return Ht(a), e;
if (o === r) return Ht(a), t;
o = o.sibling
}
m("188")
}
if (n.return !== r.return) n = a, r = i;
else {
o = !1;
for (var s = a.child; s;) {
if (s === n) {
o = !0, n = a, r = i;
break
}
if (s === r) {
o = !0, r = a, n = i;
break
}
s = s.sibling
}
if (!o) {
for (s = i.child; s;) {
if (s === n) {
o = !0, n = i, r = a;
break
}
if (s === r) {
o = !0, r = i, n = a;
break
}
s = s.sibling
}
o || m("189")
}
}
n.alternate !== r && m("190")
}
return 3 !== n.tag && m("188"), n.stateNode.current === n ? e : t
}
var Wt = [];
function Vt(e) {
var t = e.targetInst;
do {
if (!t) {
e.ancestors.push(t);
break
}
var n;
for (n = t; n.return;) n = n.return;
if (!(n = 3 !== n.tag ? null : n.stateNode.containerInfo)) break;
e.ancestors.push(t), t = pe(n)
} while (t);
for (n = 0; n < e.ancestors.length; n++) t = e.ancestors[n], Qt(e.topLevelType, t, e.nativeEvent, mt(e.nativeEvent))
}
var Kt = !0,
Qt = void 0;
function Zt(e) {
Kt = !!e
}
function Xt(e, t, n) {
return n ? s.listen(n, t, Jt.bind(null, e)) : null
}
function Yt(e, t, n) {
return n ? s.capture(n, t, Jt.bind(null, e)) : null
}
function Jt(e, t) {
if (Kt) {
var n = mt(t);
if (null === (n = pe(n)) || "number" != typeof n.tag || 2 === zt(n) || (n = null), Wt.length) {
var r = Wt.pop();
r.topLevelType = e, r.nativeEvent = t, r.targetInst = n, e = r
} else e = {
topLevelType: e,
nativeEvent: t,
targetInst: n,
ancestors: []
};
try {
ct(Vt, e)
} finally {
e.topLevelType = null, e.nativeEvent = null, e.targetInst = null, e.ancestors.length = 0, 10 > Wt.length && Wt.push(e)
}
}
}
var en = Object.freeze({get _enabled() {
return Kt
},
get _handleTopLevel() {
return Qt
},
setHandleTopLevel: function(e) {
Qt = e
},
setEnabled: Zt,
isEnabled: function() {
return Kt
},
trapBubbledEvent: Xt,
trapCapturedEvent: Yt,
dispatchEvent: Jt
});
function tn(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n["ms" + e] = "MS" + t, n["O" + e] = "o" + t.toLowerCase(), n
}
var nn = {
animationend: tn("Animation", "AnimationEnd"),
animationiteration: tn("Animation", "AnimationIteration"),
animationstart: tn("Animation", "AnimationStart"),
transitionend: tn("Transition", "TransitionEnd")
},
rn = {},
an = {};
function on(e) {
if (rn[e]) return rn[e];
if (!nn[e]) return e;
var t, n = nn[e];
for (t in n)
if (n.hasOwnProperty(t) && t in an) return rn[e] = n[t];
return ""
}
a.canUseDOM && (an = document.createElement("div").style, "AnimationEvent" in window || (delete nn.animationend.animation, delete nn.animationiteration.animation, delete nn.animationstart.animation), "TransitionEvent" in window || delete nn.transitionend.transition);
var sn = {
topAbort: "abort",
topAnimationEnd: on("animationend") || "animationend",
topAnimationIteration: on("animationiteration") || "animationiteration",
topAnimationStart: on("animationstart") || "animationstart",
topBlur: "blur",
topCancel: "cancel",
topCanPlay: "canplay",
topCanPlayThrough: "canplaythrough",
topChange: "change",
topClick: "click",
topClose: "close",
topCompositionEnd: "compositionend",
topCompositionStart: "compositionstart",
topCompositionUpdate: "compositionupdate",
topContextMenu: "contextmenu",
topCopy: "copy",
topCut: "cut",
topDoubleClick: "dblclick",
topDrag: "drag",
topDragEnd: "dragend",
topDragEnter: "dragenter",
topDragExit: "dragexit",
topDragLeave: "dragleave",
topDragOver: "dragover",
topDragStart: "dragstart",
topDrop: "drop",
topDurationChange: "durationchange",
topEmptied: "emptied",
topEncrypted: "encrypted",
topEnded: "ended",
topError: "error",
topFocus: "focus",
topInput: "input",
topKeyDown: "keydown",
topKeyPress: "keypress",
topKeyUp: "keyup",
topLoadedData: "loadeddata",
topLoad: "load",
topLoadedMetadata: "loadedmetadata",
topLoadStart: "loadstart",
topMouseDown: "mousedown",
topMouseMove: "mousemove",
topMouseOut: "mouseout",
topMouseOver: "mouseover",
topMouseUp: "mouseup",
topPaste: "paste",
topPause: "pause",
topPlay: "play",
topPlaying: "playing",
topProgress: "progress",
topRateChange: "ratechange",
topScroll: "scroll",
topSeeked: "seeked",
topSeeking: "seeking",
topSelectionChange: "selectionchange",
topStalled: "stalled",
topSuspend: "suspend",
topTextInput: "textInput",
topTimeUpdate: "timeupdate",
topToggle: "toggle",
topTouchCancel: "touchcancel",
topTouchEnd: "touchend",
topTouchMove: "touchmove",
topTouchStart: "touchstart",
topTransitionEnd: on("transitionend") || "transitionend",
topVolumeChange: "volumechange",
topWaiting: "waiting",
topWheel: "wheel"
},
ln = {},
cn = 0,
un = "_reactListenersID" + ("" + Math.random()).slice(2);
function dn(e) {
return Object.prototype.hasOwnProperty.call(e, un) || (e[un] = cn++, ln[e[un]] = {}), ln[e[un]]
}
function pn(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e
}
function mn(e, t) {
var n, r = pn(e);
for (e = 0; r;) {
if (3 === r.nodeType) {
if (n = e + r.textContent.length, e <= t && n >= t) return {
node: r,
offset: t - e
};
e = n
}
e: {
for (; r;) {
if (r.nextSibling) {
r = r.nextSibling;
break e
}
r = r.parentNode
}
r = void 0
}
r = pn(r)
}
}
function gn(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return t && ("input" === t && "text" === e.type || "textarea" === t || "true" === e.contentEditable)
}
var fn = a.canUseDOM && "documentMode" in document && 11 >= document.documentMode,
hn = {
select: {
phasedRegistrationNames: {
bubbled: "onSelect",
captured: "onSelectCapture"
},
dependencies: "topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")
}
},
bn = null,
_n = null,
vn = null,
yn = !1;
function En(e, t) {
if (yn || null == bn || bn !== l()) return null;
var n = bn;
return "selectionStart" in n && gn(n) ? n = {
start: n.selectionStart,
end: n.selectionEnd
} : window.getSelection ? n = {
anchorNode: (n = window.getSelection()).anchorNode,
anchorOffset: n.anchorOffset,
focusNode: n.focusNode,
focusOffset: n.focusOffset
} : n = void 0, vn && c(vn, n) ? null : (vn = n, (e = Re.getPooled(hn.select, _n, e, t)).type = "select", e.target = bn, xe(e), e)
}
var Sn = {
eventTypes: hn,
extractEvents: function(e, t, n, r) {
var a, i = r.window === r ? r.document : 9 === r.nodeType ? r : r.ownerDocument;
if (!(a = !i)) {
e: {
i = dn(i), a = j.onSelect;
for (var o = 0; o < a.length; o++) {
var s = a[o];
if (!i.hasOwnProperty(s) || !i[s]) {
i = !1;
break e
}
}
i = !0
}
a = !i
}
if (a) return null;
switch (i = t ? me(t) : window, e) {
case "topFocus":
(pt(i) || "true" === i.contentEditable) && (bn = i, _n = t, vn = null);
break;
case "topBlur":
vn = _n = bn = null;
break;
case "topMouseDown":
yn = !0;
break;
case "topContextMenu":
case "topMouseUp":
return yn = !1, En(n, r);
case "topSelectionChange":
if (fn) break;
case "topKeyDown":
case "topKeyUp":
return En(n, r)
}
return null
}
};
function xn(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
function wn(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
function Cn(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
function Tn(e) {
var t = e.keyCode;
return "charCode" in e ? 0 === (e = e.charCode) && 13 === t && (e = 13) : e = t, 32 <= e || 13 === e ? e : 0
}
Re.augmentClass(xn, {
animationName: null,
elapsedTime: null,
pseudoElement: null
}), Re.augmentClass(wn, {
clipboardData: function(e) {
return "clipboardData" in e ? e.clipboardData : window.clipboardData
}
}), Rt.augmentClass(Cn, {
relatedTarget: null
});
var Nn = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
Up: "ArrowUp",
Right: "ArrowRight",
Down: "ArrowDown",
Del: "Delete",
Win: "OS",
Menu: "ContextMenu",
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
},
On = {
8: "Backspace",
9: "Tab",
12: "Clear",
13: "Enter",
16: "Shift",
17: "Control",
18: "Alt",
19: "Pause",
20: "CapsLock",
27: "Escape",
32: " ",
33: "PageUp",
34: "PageDown",
35: "End",
36: "Home",
37: "ArrowLeft",
38: "ArrowUp",
39: "ArrowRight",
40: "ArrowDown",
45: "Insert",
46: "Delete",
112: "F1",
113: "F2",
114: "F3",
115: "F4",
116: "F5",
117: "F6",
118: "F7",
119: "F8",
120: "F9",
121: "F10",
122: "F11",
123: "F12",
144: "NumLock",
145: "ScrollLock",
224: "Meta"
};
function Mn(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
function Dn(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
function An(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
function kn(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
function Rn(e, t, n, r) {
return Re.call(this, e, t, n, r)
}
Rt.augmentClass(Mn, {
key: function(e) {
if (e.key) {
var t = Nn[e.key] || e.key;
if ("Unidentified" !== t) return t
}
return "keypress" === e.type ? 13 === (e = Tn(e)) ? "Enter" : String.fromCharCode(e) : "keydown" === e.type || "keyup" === e.type ? On[e.keyCode] || "Unidentified" : ""
},
location: null,
ctrlKey: null,
shiftKey: null,
altKey: null,
metaKey: null,
repeat: null,
locale: null,
getModifierState: Pt,
charCode: function(e) {
return "keypress" === e.type ? Tn(e) : 0
},
keyCode: function(e) {
return "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0
},
which: function(e) {
return "keypress" === e.type ? Tn(e) : "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0
}
}), Ft.augmentClass(Dn, {
dataTransfer: null
}), Rt.augmentClass(An, {
touches: null,
targetTouches: null,
changedTouches: null,
altKey: null,
metaKey: null,
ctrlKey: null,
shiftKey: null,
getModifierState: Pt
}), Re.augmentClass(kn, {
propertyName: null,
elapsedTime: null,
pseudoElement: null
}), Ft.augmentClass(Rn, {
deltaX: function(e) {
return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0
},
deltaY: function(e) {
return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0
},
deltaZ: null,
deltaMode: null
});
var In = {},
Ln = {};
"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e) {
var t = e[0].toUpperCase() + e.slice(1),
n = "on" + t;
n = {
phasedRegistrationNames: {
bubbled: n,
captured: n + "Capture"
},
dependencies: [t = "top" + t]
}, In[e] = n, Ln[t] = n
});
var Pn = {
eventTypes: In,
extractEvents: function(e, t, n, r) {
var a = Ln[e];
if (!a) return null;
switch (e) {
case "topKeyPress":
if (0 === Tn(n)) return null;
case "topKeyDown":
case "topKeyUp":
e = Mn;
break;
case "topBlur":
case "topFocus":
e = Cn;
break;
case "topClick":
if (2 === n.button) return null;
case "topDoubleClick":
case "topMouseDown":
case "topMouseMove":
case "topMouseUp":
case "topMouseOut":
case "topMouseOver":
case "topContextMenu":
e = Ft;
break;
case "topDrag":
case "topDragEnd":
case "topDragEnter":
case "topDragExit":
case "topDragLeave":
case "topDragOver":
case "topDragStart":
case "topDrop":
e = Dn;
break;
case "topTouchCancel":
case "topTouchEnd":
case "topTouchMove":
case "topTouchStart":
e = An;
break;
case "topAnimationEnd":
case "topAnimationIteration":
case "topAnimationStart":
e = xn;
break;
case "topTransitionEnd":
e = kn;
break;
case "topScroll":
e = Rt;
break;
case "topWheel":
e = Rn;
break;
case "topCopy":
case "topCut":
case "topPaste":
e = wn;
break;
default:
e = Re
}
return xe(t = e.getPooled(a, t, n, r)), t
}
};
Qt = function(e, t, n, r) {
oe(e = ie(e, t, n, r)), se(!1)
}, re.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), V = fe.getFiberCurrentPropsFromNode, K = fe.getInstanceFromNode, Q = fe.getNodeFromInstance, re.injectEventPluginsByName({
SimpleEventPlugin: Pn,
EnterLeaveEventPlugin: Ut,
ChangeEventPlugin: kt,
SelectEventPlugin: Sn,
BeforeInputEventPlugin: Ye
});
var Fn = [],
Bn = -1;
function Un(e) {
0 > Bn || (e.current = Fn[Bn], Fn[Bn] = null, Bn--)
}
function Gn(e, t) {
Fn[++Bn] = e.current, e.current = t
}
new Set;
var qn = {
current: p
},
zn = {
current: !1
},
jn = p;
function Hn(e) {
return Wn(e) ? jn : qn.current
}
function $n(e, t) {
var n = e.type.contextTypes;
if (!n) return p;
var r = e.stateNode;
if (r && r.__reactInternalMemoizedUnmaskedChildContext === t) return r.__reactInternalMemoizedMaskedChildContext;
var a, i = {};
for (a in n) i[a] = t[a];
return r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = i), i
}
function Wn(e) {
return 2 === e.tag && null != e.type.childContextTypes
}
function Vn(e) {
Wn(e) && (Un(zn), Un(qn))
}
function Kn(e, t, n) {
null != qn.cursor && m("168"), Gn(qn, t), Gn(zn, n)
}
function Qn(e, t) {
var n = e.stateNode,
r = e.type.childContextTypes;
if ("function" != typeof n.getChildContext) return t;
n = n.getChildContext();
for (var a in n) a in r || m("108", qt(e) || "Unknown", a);
return i({}, t, n)
}
function Zn(e) {
if (!Wn(e)) return !1;
var t = e.stateNode;
return t = t && t.__reactInternalMemoizedMergedChildContext || p, jn = qn.current, Gn(qn, t), Gn(zn, zn.current), !0
}
function Xn(e, t) {
var n = e.stateNode;
if (n || m("169"), t) {
var r = Qn(e, jn);
n.__reactInternalMemoizedMergedChildContext = r, Un(zn), Un(qn), Gn(qn, r)
} else Un(zn);
Gn(zn, t)
}
function Yn(e, t, n) {
this.tag = e, this.key = t, this.stateNode = this.type = null, this.sibling = this.child = this.return = null, this.index = 0, this.memoizedState = this.updateQueue = this.memoizedProps = this.pendingProps = this.ref = null, this.internalContextTag = n, this.effectTag = 0, this.lastEffect = this.firstEffect = this.nextEffect = null, this.expirationTime = 0, this.alternate = null
}
function Jn(e, t, n) {
var r = e.alternate;
return null === r ? ((r = new Yn(e.tag, e.key, e.internalContextTag)).type = e.type, r.stateNode = e.stateNode, r.alternate = e, e.alternate = r) : (r.effectTag = 0, r.nextEffect = null, r.firstEffect = null, r.lastEffect = null), r.expirationTime = n, r.pendingProps = t, r.child = e.child, r.memoizedProps = e.memoizedProps, r.memoizedState = e.memoizedState, r.updateQueue = e.updateQueue, r.sibling = e.sibling, r.index = e.index, r.ref = e.ref, r
}
function er(e, t, n) {
var r = void 0,
a = e.type,
i = e.key;
return "function" == typeof a ? ((r = a.prototype && a.prototype.isReactComponent ? new Yn(2, i, t) : new Yn(0, i, t)).type = a, r.pendingProps = e.props) : "string" == typeof a ? ((r = new Yn(5, i, t)).type = a, r.pendingProps = e.props) : "object" == typeof a && null !== a && "number" == typeof a.tag ? (r = a).pendingProps = e.props : m("130", null == a ? a : typeof a, ""), r.expirationTime = n, r
}
function tr(e, t, n, r) {
return (t = new Yn(10, r, t)).pendingProps = e, t.expirationTime = n, t
}
function nr(e, t, n) {
return (t = new Yn(6, null, t)).pendingProps = e, t.expirationTime = n, t
}
function rr(e, t, n) {
return (t = new Yn(7, e.key, t)).type = e.handler, t.pendingProps = e, t.expirationTime = n, t
}
function ar(e, t, n) {
return (e = new Yn(9, null, t)).expirationTime = n, e
}
function ir(e, t, n) {
return (t = new Yn(4, e.key, t)).pendingProps = e.children || [], t.expirationTime = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t
}
var or = null,
sr = null;
function lr(e) {
return function(t) {
try {
return e(t)
} catch (e) {}
}
}
function cr(e) {
"function" == typeof or && or(e)
}
function ur(e) {
"function" == typeof sr && sr(e)
}
function dr(e) {
return {
baseState: e,
expirationTime: 0,
first: null,
last: null,
callbackList: null,
hasForceUpdate: !1,
isInitialized: !1
}
}
function pr(e, t) {
null === e.last ? e.first = e.last = t : (e.last.next = t, e.last = t), (0 === e.expirationTime || e.expirationTime > t.expirationTime) && (e.expirationTime = t.expirationTime)
}
function mr(e, t) {
var n = e.alternate,
r = e.updateQueue;
null === r && (r = e.updateQueue = dr(null)), null !== n ? null === (e = n.updateQueue) && (e = n.updateQueue = dr(null)) : e = null, null === (e = e !== r ? e : null) ? pr(r, t) : null === r.last || null === e.last ? (pr(r, t), pr(e, t)) : (pr(r, t), e.last = t)
}
function gr(e, t, n, r) {
return "function" == typeof(e = e.partialState) ? e.call(t, n, r) : e
}
function fr(e, t, n, r, a, o) {
null !== e && e.updateQueue === n && (n = t.updateQueue = {
baseState: n.baseState,
expirationTime: n.expirationTime,
first: n.first,
last: n.last,
isInitialized: n.isInitialized,
callbackList: null,
hasForceUpdate: !1
}), n.expirationTime = 0, n.isInitialized ? e = n.baseState : (e = n.baseState = t.memoizedState, n.isInitialized = !0);
for (var s = !0, l = n.first, c = !1; null !== l;) {
var u = l.expirationTime;
if (u > o) {
var d = n.expirationTime;
(0 === d || d > u) && (n.expirationTime = u), c || (c = !0, n.baseState = e)
} else c || (n.first = l.next, null === n.first && (n.last = null)), l.isReplace ? (e = gr(l, r, e, a), s = !0) : (u = gr(l, r, e, a)) && (e = s ? i({}, e, u) : i(e, u), s = !1), l.isForced && (n.hasForceUpdate = !0), null !== l.callback && (null === (u = n.callbackList) && (u = n.callbackList = []), u.push(l));
l = l.next
}
return null !== n.callbackList ? t.effectTag |= 32 : null !== n.first || n.hasForceUpdate || (t.updateQueue = null), c || (n.baseState = e), e
}
function hr(e, t) {
var n = e.callbackList;
if (null !== n)
for (e.callbackList = null, e = 0; e < n.length; e++) {
var r = n[e],
a = r.callback;
r.callback = null, "function" != typeof a && m("191", a), a.call(t)
}
}
var br = "function" == typeof Symbol && Symbol.for,
_r = br ? Symbol.for("react.element") : 60103,
vr = br ? Symbol.for("react.call") : 60104,
yr = br ? Symbol.for("react.return") : 60105,
Er = br ? Symbol.for("react.portal") : 60106,
Sr = br ? Symbol.for("react.fragment") : 60107,
xr = "function" == typeof Symbol && Symbol.iterator;
function wr(e) {
return null === e || void 0 === e ? null : "function" == typeof(e = xr && e[xr] || e["@@iterator"]) ? e : null
}
var Cr = Array.isArray;
function Tr(e, t) {
var n = t.ref;
if (null !== n && "function" != typeof n) {
if (t._owner) {
var r = void 0;
(t = t._owner) && (2 !== t.tag && m("110"), r = t.stateNode), r || m("147", n);
var a = "" + n;
return null !== e && null !== e.ref && e.ref._stringRef === a ? e.ref : ((e = function(e) {
var t = r.refs === p ? r.refs = {} : r.refs;
null === e ? delete t[a] : t[a] = e
})._stringRef = a, e)
}
"string" != typeof n && m("148"), t._owner || m("149", n)
}
return n
}
function Nr(e, t) {
"textarea" !== e.type && m("31", "[object Object]" === Object.prototype.toString.call(t) ? "object with keys {" + Object.keys(t).join(", ") + "}" : t, "")
}
function Or(e) {
function t(t, n) {
if (e) {
var r = t.lastEffect;
null !== r ? (r.nextEffect = n, t.lastEffect = n) : t.firstEffect = t.lastEffect = n, n.nextEffect = null, n.effectTag = 8
}
}
function n(n, r) {
if (!e) return null;
for (; null !== r;) t(n, r), r = r.sibling;
return null
}
function r(e, t) {
for (e = new Map; null !== t;) null !== t.key ? e.set(t.key, t) : e.set(t.index, t), t = t.sibling;
return e
}
function a(e, t, n) {
return (e = Jn(e, t, n)).index = 0, e.sibling = null, e
}
function i(t, n, r) {
return t.index = r, e ? null !== (r = t.alternate) ? (r = r.index) < n ? (t.effectTag = 2, n) : r : (t.effectTag = 2, n) : n
}
function o(t) {
return e && null === t.alternate && (t.effectTag = 2), t
}
function s(e, t, n, r) {
return null === t || 6 !== t.tag ? ((t = nr(n, e.internalContextTag, r)).return = e, t) : ((t = a(t, n, r)).return = e, t)
}
function l(e, t, n, r) {
return null !== t && t.type === n.type ? ((r = a(t, n.props, r)).ref = Tr(t, n), r.return = e, r) : ((r = er(n, e.internalContextTag, r)).ref = Tr(t, n), r.return = e, r)
}
function c(e, t, n, r) {
return null === t || 7 !== t.tag ? ((t = rr(n, e.internalContextTag, r)).return = e, t) : ((t = a(t, n, r)).return = e, t)
}
function u(e, t, n, r) {
return null === t || 9 !== t.tag ? ((t = ar(n, e.internalContextTag, r)).type = n.value, t.return = e, t) : ((t = a(t, null, r)).type = n.value, t.return = e, t)
}
function d(e, t, n, r) {
return null === t || 4 !== t.tag || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? ((t = ir(n, e.internalContextTag, r)).return = e, t) : ((t = a(t, n.children || [], r)).return = e, t)
}
function p(e, t, n, r, i) {
return null === t || 10 !== t.tag ? ((t = tr(n, e.internalContextTag, r, i)).return = e, t) : ((t = a(t, n, r)).return = e, t)
}
function g(e, t, n) {
if ("string" == typeof t || "number" == typeof t) return t = nr("" + t, e.internalContextTag, n), t.return = e, t;
if ("object" == typeof t && null !== t) {
switch (t.$$typeof) {
case _r:
return t.type === Sr ? ((t = tr(t.props.children, e.internalContextTag, n, t.key)).return = e, t) : ((n = er(t, e.internalContextTag, n)).ref = Tr(null, t), n.return = e, n);
case vr:
return (t = rr(t, e.internalContextTag, n)).return = e, t;
case yr:
return (n = ar(t, e.internalContextTag, n)).type = t.value, n.return = e, n;
case Er:
return (t = ir(t, e.internalContextTag, n)).return = e, t
}
if (Cr(t) || wr(t)) return t = tr(t, e.internalContextTag, n, null), t.return = e, t;
Nr(e, t)
}
return null
}
function f(e, t, n, r) {
var a = null !== t ? t.key : null;
if ("string" == typeof n || "number" == typeof n) return null !== a ? null : s(e, t, "" + n, r);
if ("object" == typeof n && null !== n) {
switch (n.$$typeof) {
case _r:
return n.key === a ? n.type === Sr ? p(e, t, n.props.children, r, a) : l(e, t, n, r) : null;
case vr:
return n.key === a ? c(e, t, n, r) : null;
case yr:
return null === a ? u(e, t, n, r) : null;
case Er:
return n.key === a ? d(e, t, n, r) : null
}
if (Cr(n) || wr(n)) return null !== a ? null : p(e, t, n, r, null);
Nr(e, n)
}
return null
}
function h(e, t, n, r, a) {
if ("string" == typeof r || "number" == typeof r) return e = e.get(n) || null, s(t, e, "" + r, a);
if ("object" == typeof r && null !== r) {
switch (r.$$typeof) {
case _r:
return e = e.get(null === r.key ? n : r.key) || null, r.type === Sr ? p(t, e, r.props.children, a, r.key) : l(t, e, r, a);
case vr:
return c(t, e = e.get(null === r.key ? n : r.key) || null, r, a);
case yr:
return u(t, e = e.get(n) || null, r, a);
case Er:
return d(t, e = e.get(null === r.key ? n : r.key) || null, r, a)
}
if (Cr(r) || wr(r)) return e = e.get(n) || null, p(t, e, r, a, null);
Nr(t, r)
}
return null
}
return function(s, l, c, u) {
"object" == typeof c && null !== c && c.type === Sr && null === c.key && (c = c.props.children);
var d = "object" == typeof c && null !== c;
if (d) switch (c.$$typeof) {
case _r:
e: {
var p = c.key;
for (d = l; null !== d;) {
if (d.key === p) {
if (10 === d.tag ? c.type === Sr : d.type === c.type) {
n(s, d.sibling), (l = a(d, c.type === Sr ? c.props.children : c.props, u)).ref = Tr(d, c), l.return = s, s = l;
break e
}
n(s, d);
break
}
t(s, d), d = d.sibling
}
c.type === Sr ? ((l = tr(c.props.children, s.internalContextTag, u, c.key)).return = s, s = l) : ((u = er(c, s.internalContextTag, u)).ref = Tr(l, c), u.return = s, s = u)
}
return o(s);
case vr:
e: {
for (d = c.key; null !== l;) {
if (l.key === d) {
if (7 === l.tag) {
n(s, l.sibling), (l = a(l, c, u)).return = s, s = l;
break e
}
n(s, l);
break
}
t(s, l), l = l.sibling
}(l = rr(c, s.internalContextTag, u)).return = s, s = l
}
return o(s);
case yr:
e: {
if (null !== l) {
if (9 === l.tag) {
n(s, l.sibling), (l = a(l, null, u)).type = c.value, l.return = s, s = l;
break e
}
n(s, l)
}(l = ar(c, s.internalContextTag, u)).type = c.value, l.return = s, s = l
}
return o(s);
case Er:
e: {
for (d = c.key; null !== l;) {
if (l.key === d) {
if (4 === l.tag && l.stateNode.containerInfo === c.containerInfo && l.stateNode.implementation === c.implementation) {
n(s, l.sibling), (l = a(l, c.children || [], u)).return = s, s = l;
break e
}
n(s, l);
break
}
t(s, l), l = l.sibling
}(l = ir(c, s.internalContextTag, u)).return = s, s = l
}
return o(s)
}
if ("string" == typeof c || "number" == typeof c) return c = "" + c, null !== l && 6 === l.tag ? (n(s, l.sibling), l = a(l, c, u)) : (n(s, l), l = nr(c, s.internalContextTag, u)), l.return = s, s = l, o(s);
if (Cr(c)) return function(a, o, s, l) {
for (var c = null, u = null, d = o, p = o = 0, m = null; null !== d && p < s.length; p++) {
d.index > p ? (m = d, d = null) : m = d.sibling;
var b = f(a, d, s[p], l);
if (null === b) {
null === d && (d = m);
break
}
e && d && null === b.alternate && t(a, d), o = i(b, o, p), null === u ? c = b : u.sibling = b, u = b, d = m
}
if (p === s.length) return n(a, d), c;
if (null === d) {
for (; p < s.length; p++)(d = g(a, s[p], l)) && (o = i(d, o, p), null === u ? c = d : u.sibling = d, u = d);
return c
}
for (d = r(a, d); p < s.length; p++)(m = h(d, a, p, s[p], l)) && (e && null !== m.alternate && d.delete(null === m.key ? p : m.key), o = i(m, o, p), null === u ? c = m : u.sibling = m, u = m);
return e && d.forEach(function(e) {
return t(a, e)
}), c
}(s, l, c, u);
if (wr(c)) return function(a, o, s, l) {
var c = wr(s);
"function" != typeof c && m("150"), null == (s = c.call(s)) && m("151");
for (var u = c = null, d = o, p = o = 0, b = null, _ = s.next(); null !== d && !_.done; p++, _ = s.next()) {
d.index > p ? (b = d, d = null) : b = d.sibling;
var v = f(a, d, _.value, l);
if (null === v) {
d || (d = b);
break
}
e && d && null === v.alternate && t(a, d), o = i(v, o, p), null === u ? c = v : u.sibling = v, u = v, d = b
}
if (_.done) return n(a, d), c;
if (null === d) {
for (; !_.done; p++, _ = s.next()) _ = g(a, _.value, l), null !== _ && (o = i(_, o, p), null === u ? c = _ : u.sibling = _, u = _);
return c
}
for (d = r(a, d); !_.done; p++, _ = s.next()) _ = h(d, a, p, _.value, l), null !== _ && (e && null !== _.alternate && d.delete(null === _.key ? p : _.key), o = i(_, o, p), null === u ? c = _ : u.sibling = _, u = _);
return e && d.forEach(function(e) {
return t(a, e)
}), c
}(s, l, c, u);
if (d && Nr(s, c), void 0 === c) switch (s.tag) {
case 2:
case 1:
m("152", (u = s.type).displayName || u.name || "Component")
}
return n(s, l)
}
}
var Mr = Or(!0),
Dr = Or(!1);
function Ar(e, t, n, r, a) {
function i(e, t, n) {
var r = t.expirationTime;
t.child = null === e ? Dr(t, null, n, r) : Mr(t, e.child, n, r)
}
function o(e, t) {
var n = t.ref;
null === n || e && e.ref === n || (t.effectTag |= 128)
}
function s(e, t, n, r) {
if (o(e, t), !n) return r && Xn(t, !1), u(e, t);
n = t.stateNode, Gt.current = t;
var a = n.render();
return t.effectTag |= 1, i(e, t, a), t.memoizedState = n.state, t.memoizedProps = n.props, r && Xn(t, !0), t.child
}
function l(e) {
var t = e.stateNode;
t.pendingContext ? Kn(0, t.pendingContext, t.pendingContext !== t.context) : t.context && Kn(0, t.context, !1), _(e, t.containerInfo)
}
function u(e, t) {
if (null !== e && t.child !== e.child && m("153"), null !== t.child) {
var n = Jn(e = t.child, e.pendingProps, e.expirationTime);
for (t.child = n, n.return = t; null !== e.sibling;) e = e.sibling, n = n.sibling = Jn(e, e.pendingProps, e.expirationTime), n.return = t;
n.sibling = null
}
return t.child
}
function d(e, t) {
switch (t.tag) {
case 3:
l(t);
break;
case 2:
Zn(t);
break;
case 4:
_(t, t.stateNode.containerInfo)
}
return null
}
var g = e.shouldSetTextContent,
f = e.useSyncScheduling,
h = e.shouldDeprioritizeSubtree,
b = t.pushHostContext,
_ = t.pushHostContainer,
v = n.enterHydrationState,
y = n.resetHydrationState,
E = n.tryToClaimNextHydratableInstance,
S = (e = function(e, t, n, r) {
function a(e, t) {
t.updater = i, e.stateNode = t, t._reactInternalFiber = e
}
var i = {
isMounted: jt,
enqueueSetState: function(n, r, a) {
n = n._reactInternalFiber, a = void 0 === a ? null : a;
var i = t(n);
mr(n, {
expirationTime: i,
partialState: r,
callback: a,
isReplace: !1,
isForced: !1,
nextCallback: null,
next: null
}), e(n, i)
},
enqueueReplaceState: function(n, r, a) {
n = n._reactInternalFiber, a = void 0 === a ? null : a;
var i = t(n);
mr(n, {
expirationTime: i,
partialState: r,
callback: a,
isReplace: !0,
isForced: !1,
nextCallback: null,
next: null
}), e(n, i)
},
enqueueForceUpdate: function(n, r) {
n = n._reactInternalFiber, r = void 0 === r ? null : r;
var a = t(n);
mr(n, {
expirationTime: a,
partialState: null,
callback: r,
isReplace: !1,
isForced: !0,
nextCallback: null,
next: null
}), e(n, a)
}
};
return {
adoptClassInstance: a,
constructClassInstance: function(e, t) {
var n = e.type,
r = Hn(e),
i = 2 === e.tag && null != e.type.contextTypes,
o = i ? $n(e, r) : p;
return a(e, t = new n(t, o)), i && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = r, e.__reactInternalMemoizedMaskedChildContext = o), t
},
mountClassInstance: function(e, t) {
var n = e.alternate,
r = e.stateNode,
a = r.state || null,
o = e.pendingProps;
o || m("158");
var s = Hn(e);
r.props = o, r.state = e.memoizedState = a, r.refs = p, r.context = $n(e, s), null != e.type && null != e.type.prototype && !0 === e.type.prototype.unstable_isAsyncReactComponent && (e.internalContextTag |= 1), "function" == typeof r.componentWillMount && (a = r.state, r.componentWillMount(), a !== r.state && i.enqueueReplaceState(r, r.state, null), null !== (a = e.updateQueue) && (r.state = fr(n, e, a, r, o, t))), "function" == typeof r.componentDidMount && (e.effectTag |= 4)
},
updateClassInstance: function(e, t, a) {
var o = t.stateNode;
o.props = t.memoizedProps, o.state = t.memoizedState;
var s = t.memoizedProps,
l = t.pendingProps;
l || null == (l = s) && m("159");
var u = o.context,
d = Hn(t);
if (d = $n(t, d), "function" != typeof o.componentWillReceiveProps || s === l && u === d || (u = o.state, o.componentWillReceiveProps(l, d), o.state !== u && i.enqueueReplaceState(o, o.state, null)), u = t.memoizedState, a = null !== t.updateQueue ? fr(e, t, t.updateQueue, o, l, a) : u, !(s !== l || u !== a || zn.current || null !== t.updateQueue && t.updateQueue.hasForceUpdate)) return "function" != typeof o.componentDidUpdate || s === e.memoizedProps && u === e.memoizedState || (t.effectTag |= 4), !1;
var p = l;
if (null === s || null !== t.updateQueue && t.updateQueue.hasForceUpdate) p = !0;
else {
var g = t.stateNode,
f = t.type;
p = "function" == typeof g.shouldComponentUpdate ? g.shouldComponentUpdate(p, a, d) : !(f.prototype && f.prototype.isPureReactComponent && c(s, p) && c(u, a))
}
return p ? ("function" == typeof o.componentWillUpdate && o.componentWillUpdate(l, a, d), "function" == typeof o.componentDidUpdate && (t.effectTag |= 4)) : ("function" != typeof o.componentDidUpdate || s === e.memoizedProps && u === e.memoizedState || (t.effectTag |= 4), n(t, l), r(t, a)), o.props = l, o.state = a, o.context = d, p
}
}
}(r, a, function(e, t) {
e.memoizedProps = t
}, function(e, t) {
e.memoizedState = t
})).adoptClassInstance,
x = e.constructClassInstance,
w = e.mountClassInstance,
C = e.updateClassInstance;
return {
beginWork: function(e, t, n) {
if (0 === t.expirationTime || t.expirationTime > n) return d(0, t);
switch (t.tag) {
case 0:
null !== e && m("155");
var r = t.type,
a = t.pendingProps,
c = Hn(t);
return r = r(a, c = $n(t, c)), t.effectTag |= 1, "object" == typeof r && null !== r && "function" == typeof r.render ? (t.tag = 2, a = Zn(t), S(t, r), w(t, n), t = s(e, t, !0, a)) : (t.tag = 1, i(e, t, r), t.memoizedProps = a, t = t.child), t;
case 1:
e: {
if (a = t.type, n = t.pendingProps, r = t.memoizedProps, zn.current) null === n && (n = r);
else if (null === n || r === n) {
t = u(e, t);
break e
}
a = a(n, r = $n(t, r = Hn(t))), t.effectTag |= 1, i(e, t, a), t.memoizedProps = n, t = t.child
}
return t;
case 2:
return a = Zn(t), r = void 0, null === e ? t.stateNode ? m("153") : (x(t, t.pendingProps), w(t, n), r = !0) : r = C(e, t, n), s(e, t, r, a);
case 3:
return l(t), null !== (a = t.updateQueue) ? (r = t.memoizedState) === (a = fr(e, t, a, null, null, n)) ? (y(), t = u(e, t)) : (r = a.element, c = t.stateNode, (null === e || null === e.child) && c.hydrate && v(t) ? (t.effectTag |= 2, t.child = Dr(t, null, r, n)) : (y(), i(e, t, r)), t.memoizedState = a, t = t.child) : (y(), t = u(e, t)), t;
case 5:
b(t), null === e && E(t), a = t.type;
var p = t.memoizedProps;
return null === (r = t.pendingProps) && (null === (r = p) && m("154")), c = null !== e ? e.memoizedProps : null, zn.current || null !== r && p !== r ? (p = r.children, g(a, r) ? p = null : c && g(a, c) && (t.effectTag |= 16), o(e, t), 2147483647 !== n && !f && h(a, r) ? (t.expirationTime = 2147483647, t = null) : (i(e, t, p), t.memoizedProps = r, t = t.child)) : t = u(e, t), t;
case 6:
return null === e && E(t), null === (e = t.pendingProps) && (e = t.memoizedProps), t.memoizedProps = e, null;
case 8:
t.tag = 7;
case 7:
return a = t.pendingProps, zn.current ? null === a && (null === (a = e && e.memoizedProps) && m("154")) : null !== a && t.memoizedProps !== a || (a = t.memoizedProps), r = a.children, t.stateNode = null === e ? Dr(t, t.stateNode, r, n) : Mr(t, t.stateNode, r, n), t.memoizedProps = a, t.stateNode;
case 9:
return null;
case 4:
e: {
if (_(t, t.stateNode.containerInfo), a = t.pendingProps, zn.current) null === a && (a = e && e.memoizedProps, null == a && m("154"));
else if (null === a || t.memoizedProps === a) {
t = u(e, t);
break e
}
null === e ? t.child = Mr(t, null, a, n) : i(e, t, a), t.memoizedProps = a, t = t.child
}
return t;
case 10:
e: {
if (n = t.pendingProps, zn.current) null === n && (n = t.memoizedProps);
else if (null === n || t.memoizedProps === n) {
t = u(e, t);
break e
}
i(e, t, n), t.memoizedProps = n, t = t.child
}
return t;
default:
m("156")
}
},
beginFailedWork: function(e, t, n) {
switch (t.tag) {
case 2:
Zn(t);
break;
case 3:
l(t);
break;
default:
m("157")
}
return t.effectTag |= 64, null === e ? t.child = null : t.child !== e.child && (t.child = e.child), 0 === t.expirationTime || t.expirationTime > n ? d(0, t) : (t.firstEffect = null, t.lastEffect = null, t.child = null === e ? Dr(t, null, null, n) : Mr(t, e.child, null, n), 2 === t.tag && (e = t.stateNode, t.memoizedProps = e.props, t.memoizedState = e.state), t.child)
}
}
}
var kr = {};
function Rr(e) {
function t(e) {
oe = Z = !0;
var t = e.stateNode;
if (t.current === e && m("177"), t.isReadyForCommit = !1, Gt.current = null, 1 < e.effectTag)
if (null !== e.lastEffect) {
e.lastEffect.nextEffect = e;
var n = e.firstEffect
} else n = e;
else n = e.firstEffect;
for ($(), ee = n; null !== ee;) {
var r = !1,
a = void 0;
try {
for (; null !== ee;) {
var i = ee.effectTag;
if (16 & i && I(ee), 128 & i) {
var o = ee.alternate;
null !== o && G(o)
}
switch (-242 & i) {
case 2:
L(ee), ee.effectTag &= -3;
break;
case 6:
L(ee), ee.effectTag &= -3, F(ee.alternate, ee);
break;
case 4:
F(ee.alternate, ee);
break;
case 8:
se = !0, P(ee), se = !1
}
ee = ee.nextEffect
}
} catch (e) {
r = !0, a = e
}
r && (null === ee && m("178"), s(ee, a), null !== ee && (ee = ee.nextEffect))
}
for (W(), t.current = e, ee = n; null !== ee;) {
n = !1, r = void 0;
try {
for (; null !== ee;) {
var l = ee.effectTag;
if (36 & l && B(ee.alternate, ee), 128 & l && U(ee), 64 & l) switch (a = ee, i = void 0, null !== te && (i = te.get(a), te.delete(a), null == i && null !== a.alternate && (a = a.alternate, i = te.get(a), te.delete(a))), null == i && m("184"), a.tag) {
case 2:
a.stateNode.componentDidCatch(i.error, {
componentStack: i.componentStack
});
break;
case 3:
null === ae && (ae = i.error);
break;
default:
m("157")
}
var c = ee.nextEffect;
ee.nextEffect = null, ee = c
}
} catch (e) {
n = !0, r = e
}
n && (null === ee && m("178"), s(ee, r), null !== ee && (ee = ee.nextEffect))
}
return Z = oe = !1, cr(e.stateNode), re && (re.forEach(h), re = null), null !== ae && (e = ae, ae = null, w(e)), 0 === (t = t.current.expirationTime) && (ne = te = null), t
}
function n(e) {
for (;;) {
var t = R(e.alternate, e, J),
n = e.return,
r = e.sibling,
a = e;
if (2147483647 === J || 2147483647 !== a.expirationTime) {
if (2 !== a.tag && 3 !== a.tag) var i = 0;
else i = a.updateQueue, i = null === i ? 0 : i.expirationTime;
for (var o = a.child; null !== o;) 0 !== o.expirationTime && (0 === i || i > o.expirationTime) && (i = o.expirationTime), o = o.sibling;
a.expirationTime = i
}
if (null !== t) return t;
if (null !== n && (null === n.firstEffect && (n.firstEffect = e.firstEffect), null !== e.lastEffect && (null !== n.lastEffect && (n.lastEffect.nextEffect = e.firstEffect), n.lastEffect = e.lastEffect), 1 < e.effectTag && (null !== n.lastEffect ? n.lastEffect.nextEffect = e : n.firstEffect = e, n.lastEffect = e)), null !== r) return r;
if (null === n) {
e.stateNode.isReadyForCommit = !0;
break
}
e = n
}
return null
}
function r(e) {
var t = A(e.alternate, e, J);
return null === t && (t = n(e)), Gt.current = null, t
}
function a(e) {
var t = k(e.alternate, e, J);
return null === t && (t = n(e)), Gt.current = null, t
}
function i(e) {
if (null !== te) {
if (!(0 === J || J > e))
if (J <= K)
for (; null !== X;) X = l(X) ? a(X) : r(X);
else
for (; null !== X && !x();) X = l(X) ? a(X) : r(X)
} else if (!(0 === J || J > e))
if (J <= K)
for (; null !== X;) X = r(X);
else
for (; null !== X && !x();) X = r(X)
}
function o(e, t) {
if (Z && m("243"), Z = !0, e.isReadyForCommit = !1, e !== Y || t !== J || null === X) {
for (; - 1 < Bn;) Fn[Bn] = null, Bn--;
jn = p, qn.current = p, zn.current = !1, M(), J = t, X = Jn((Y = e).current, null, t)
}
var n = !1,
r = null;
try {
i(t)
} catch (e) {
n = !0, r = e
}
for (; n;) {
if (ie) {
ae = r;
break
}
var o = X;
if (null === o) ie = !0;
else {
var l = s(o, r);
if (null === l && m("183"), !ie) {
try {
for (r = t, l = n = l; null !== o;) {
switch (o.tag) {
case 2:
Vn(o);
break;
case 5:
O(o);
break;
case 3:
N(o);
break;
case 4:
N(o)
}
if (o === l || o.alternate === l) break;
o = o.return
}
X = a(n), i(r)
} catch (e) {
n = !0, r = e;
continue
}
break
}
}
}
return t = ae, ie = Z = !1, ae = null, null !== t && w(t), e.isReadyForCommit ? e.current.alternate : null
}
function s(e, t) {
var n = Gt.current = null,
r = !1,
a = !1,
i = null;
if (3 === e.tag) n = e, c(e) && (ie = !0);
else
for (var o = e.return; null !== o && null === n;) {
if (2 === o.tag ? "function" == typeof o.stateNode.componentDidCatch && (r = !0, i = qt(o), n = o, a = !0) : 3 === o.tag && (n = o), c(o)) {
if (se || null !== re && (re.has(o) || null !== o.alternate && re.has(o.alternate))) return null;
n = null, a = !1
}
o = o.return
}
if (null !== n) {
null === ne && (ne = new Set), ne.add(n);
var s = "";
o = e;
do {
e: switch (o.tag) {
case 0:
case 1:
case 2:
case 5:
var l = o._debugOwner,
u = o._debugSource,
d = qt(o),
p = null;
l && (p = qt(l)), l = u, d = "\n in " + (d || "Unknown") + (l ? " (at " + l.fileName.replace(/^.*[\\\/]/, "") + ":" + l.lineNumber + ")" : p ? " (created by " + p + ")" : "");
break e;
default:
d = ""
}
s += d,
o = o.return
} while (o);
o = s, e = qt(e), null === te && (te = new Map), t = {
componentName: e,
componentStack: o,
error: t,
errorBoundary: r ? n.stateNode : null,
errorBoundaryFound: r,
errorBoundaryName: i,
willRetry: a
}, te.set(n, t);
try {
var m = t.error;
m && m.suppressReactErrorLogging || console.error(m)
} catch (e) {
e && e.suppressReactErrorLogging || console.error(e)
}
return oe ? (null === re && (re = new Set), re.add(n)) : h(n), n
}
return null === ae && (ae = t), null
}
function l(e) {
return null !== te && (te.has(e) || null !== e.alternate && te.has(e.alternate))
}
function c(e) {
return null !== ne && (ne.has(e) || null !== e.alternate && ne.has(e.alternate))
}
function u() {
return 20 * (1 + ((b() + 100) / 20 | 0))
}
function d(e) {
return 0 !== Q ? Q : Z ? oe ? 1 : J : !H || 1 & e.internalContextTag ? u() : 1
}
function g(e, t) {
return f(e, t)
}
function f(e, t) {
for (; null !== e;) {
if ((0 === e.expirationTime || e.expirationTime > t) && (e.expirationTime = t), null !== e.alternate && (0 === e.alternate.expirationTime || e.alternate.expirationTime > t) && (e.alternate.expirationTime = t), null === e.return) {
if (3 !== e.tag) break;
var n = e.stateNode;
!Z && n === Y && t < J && (X = Y = null, J = 0);
var r = n,
a = t;
if (Se > Ee && m("185"), null === r.nextScheduledRoot) r.remainingExpirationTime = a, null === ce ? (le = ce = r, r.nextScheduledRoot = r) : (ce = ce.nextScheduledRoot = r, ce.nextScheduledRoot = le);
else {
var i = r.remainingExpirationTime;
(0 === i || a < i) && (r.remainingExpirationTime = a)
}
pe || (ve ? ye && S(me = r, ge = 1) : 1 === a ? E(1, null) : _(a)), !Z && n === Y && t < J && (X = Y = null, J = 0)
}
e = e.return
}
}
function h(e) {
f(e, 1)
}
function b() {
return K = 2 + ((q() - V) / 10 | 0)
}
function _(e) {
if (0 !== ue) {
if (e > ue) return;
j(de)
}
var t = q() - V;
ue = e, de = z(y, {
timeout: 10 * (e - 2) - t
})
}
function v() {
var e = 0,
t = null;
if (null !== ce)
for (var n = ce, r = le; null !== r;) {
var a = r.remainingExpirationTime;
if (0 === a) {
if ((null === n || null === ce) && m("244"), r === r.nextScheduledRoot) {
le = ce = r.nextScheduledRoot = null;
break
}
if (r === le) le = a = r.nextScheduledRoot, ce.nextScheduledRoot = a, r.nextScheduledRoot = null;
else {
if (r === ce) {
(ce = n).nextScheduledRoot = le, r.nextScheduledRoot = null;
break
}
n.nextScheduledRoot = r.nextScheduledRoot, r.nextScheduledRoot = null
}
r = n.nextScheduledRoot
} else {
if ((0 === e || a < e) && (e = a, t = r), r === ce) break;
n = r, r = r.nextScheduledRoot
}
}
null !== (n = me) && n === t ? Se++ : Se = 0, me = t, ge = e
}
function y(e) {
E(0, e)
}
function E(e, t) {
for (_e = t, v(); null !== me && 0 !== ge && (0 === e || ge <= e) && !fe;) S(me, ge), v();
if (null !== _e && (ue = 0, de = -1), 0 !== ge && _(ge), _e = null, fe = !1, Se = 0, he) throw e = be, be = null, he = !1, e
}
function S(e, n) {
if (pe && m("245"), pe = !0, n <= b()) {
var r = e.finishedWork;
null !== r ? (e.finishedWork = null, e.remainingExpirationTime = t(r)) : (e.finishedWork = null, null !== (r = o(e, n)) && (e.remainingExpirationTime = t(r)))
} else r = e.finishedWork, null !== r ? (e.finishedWork = null, e.remainingExpirationTime = t(r)) : (e.finishedWork = null, r = o(e, n), null !== r && (x() ? e.finishedWork = r : e.remainingExpirationTime = t(r)));
pe = !1
}
function x() {
return !(null === _e || _e.timeRemaining() > xe) && (fe = !0)
}
function w(e) {
null === me && m("246"), me.remainingExpirationTime = 0, he || (he = !0, be = e)
}
var C = function(e) {
function t(e) {
return e === kr && m("174"), e
}
var n = e.getChildHostContext,
r = e.getRootHostContext,
a = {
current: kr
},
i = {
current: kr
},
o = {
current: kr
};
return {
getHostContext: function() {
return t(a.current)
},
getRootHostContainer: function() {
return t(o.current)
},
popHostContainer: function(e) {
Un(a), Un(i), Un(o)
},
popHostContext: function(e) {
i.current === e && (Un(a), Un(i))
},
pushHostContainer: function(e, t) {
Gn(o, t), t = r(t), Gn(i, e), Gn(a, t)
},
pushHostContext: function(e) {
var r = t(o.current),
s = t(a.current);
s !== (r = n(s, e.type, r)) && (Gn(i, e), Gn(a, r))
},
resetHostContainer: function() {
a.current = kr, o.current = kr
}
}
}(e),
T = function(e) {
function t(e, t) {
var n = new Yn(5, null, 0);
n.type = "DELETED", n.stateNode = t, n.return = e, n.effectTag = 8, null !== e.lastEffect ? (e.lastEffect.nextEffect = n, e.lastEffect = n) : e.firstEffect = e.lastEffect = n
}
function n(e, t) {
switch (e.tag) {
case 5:
return null !== (t = i(t, e.type, e.pendingProps)) && (e.stateNode = t, !0);
case 6:
return null !== (t = o(t, e.pendingProps)) && (e.stateNode = t, !0);
default:
return !1
}
}
function r(e) {
for (e = e.return; null !== e && 5 !== e.tag && 3 !== e.tag;) e = e.return;
d = e
}
var a = e.shouldSetTextContent;
if (!(e = e.hydration)) return {
enterHydrationState: function() {
return !1
},
resetHydrationState: function() {},
tryToClaimNextHydratableInstance: function() {},
prepareToHydrateHostInstance: function() {
m("175")
},
prepareToHydrateHostTextInstance: function() {
m("176")
},
popHydrationState: function() {
return !1
}
};
var i = e.canHydrateInstance,
o = e.canHydrateTextInstance,
s = e.getNextHydratableSibling,
l = e.getFirstHydratableChild,
c = e.hydrateInstance,
u = e.hydrateTextInstance,
d = null,
p = null,
g = !1;
return {
enterHydrationState: function(e) {
return p = l(e.stateNode.containerInfo), d = e, g = !0
},
resetHydrationState: function() {
p = d = null, g = !1
},
tryToClaimNextHydratableInstance: function(e) {
if (g) {
var r = p;
if (r) {
if (!n(e, r)) {
if (!(r = s(r)) || !n(e, r)) return e.effectTag |= 2, g = !1, void(d = e);
t(d, p)
}
d = e, p = l(r)
} else e.effectTag |= 2, g = !1, d = e
}
},
prepareToHydrateHostInstance: function(e, t, n) {
return t = c(e.stateNode, e.type, e.memoizedProps, t, n, e), e.updateQueue = t, null !== t
},
prepareToHydrateHostTextInstance: function(e) {
return u(e.stateNode, e.memoizedProps, e)
},
popHydrationState: function(e) {
if (e !== d) return !1;
if (!g) return r(e), g = !0, !1;
var n = e.type;
if (5 !== e.tag || "head" !== n && "body" !== n && !a(n, e.memoizedProps))
for (n = p; n;) t(e, n), n = s(n);
return r(e), p = d ? s(e.stateNode) : null, !0
}
}
}(e),
N = C.popHostContainer,
O = C.popHostContext,
M = C.resetHostContainer,
D = Ar(e, C, T, g, d),
A = D.beginWork,
k = D.beginFailedWork,
R = function(e, t, n) {
function r(e) {
e.effectTag |= 4
}
var a = e.createInstance,
i = e.createTextInstance,
o = e.appendInitialChild,
s = e.finalizeInitialChildren,
l = e.prepareUpdate,
c = e.persistence,
u = t.getRootHostContainer,
d = t.popHostContext,
p = t.getHostContext,
g = t.popHostContainer,
f = n.prepareToHydrateHostInstance,
h = n.prepareToHydrateHostTextInstance,
b = n.popHydrationState,
_ = void 0,
v = void 0,
y = void 0;
return e.mutation ? (_ = function() {}, v = function(e, t, n) {
(t.updateQueue = n) && r(t)
}, y = function(e, t, n, a) {
n !== a && r(t)
}) : m(c ? "235" : "236"), {
completeWork: function(e, t, n) {
var c = t.pendingProps;
switch (null === c ? c = t.memoizedProps : 2147483647 === t.expirationTime && 2147483647 !== n || (t.pendingProps = null), t.tag) {
case 1:
return null;
case 2:
return Vn(t), null;
case 3:
return g(t), Un(zn), Un(qn), (c = t.stateNode).pendingContext && (c.context = c.pendingContext, c.pendingContext = null), null !== e && null !== e.child || (b(t), t.effectTag &= -3), _(t), null;
case 5:
d(t), n = u();
var E = t.type;
if (null !== e && null != t.stateNode) {
var S = e.memoizedProps,
x = t.stateNode,
w = p();
x = l(x, E, S, c, n, w), v(e, t, x, E, S, c, n), e.ref !== t.ref && (t.effectTag |= 128)
} else {
if (!c) return null === t.stateNode && m("166"), null;
if (e = p(), b(t)) f(t, n, e) && r(t);
else {
e = a(E, c, n, e, t);
e: for (S = t.child; null !== S;) {
if (5 === S.tag || 6 === S.tag) o(e, S.stateNode);
else if (4 !== S.tag && null !== S.child) {
S.child.return = S, S = S.child;
continue
}
if (S === t) break;
for (; null === S.sibling;) {
if (null === S.return || S.return === t) break e;
S = S.return
}
S.sibling.return = S.return, S = S.sibling
}
s(e, E, c, n) && r(t), t.stateNode = e
}
null !== t.ref && (t.effectTag |= 128)
}
return null;
case 6:
if (e && null != t.stateNode) y(e, t, e.memoizedProps, c);
else {
if ("string" != typeof c) return null === t.stateNode && m("166"), null;
e = u(), n = p(), b(t) ? h(t) && r(t) : t.stateNode = i(c, e, n, t)
}
return null;
case 7:
(c = t.memoizedProps) || m("165"), t.tag = 8, E = [];
e: for ((S = t.stateNode) && (S.return = t); null !== S;) {
if (5 === S.tag || 6 === S.tag || 4 === S.tag) m("247");
else if (9 === S.tag) E.push(S.type);
else if (null !== S.child) {
S.child.return = S, S = S.child;
continue
}
for (; null === S.sibling;) {
if (null === S.return || S.return === t) break e;
S = S.return
}
S.sibling.return = S.return, S = S.sibling
}
return c = (S = c.handler)(c.props, E), t.child = Mr(t, null !== e ? e.child : null, c, n), t.child;
case 8:
return t.tag = 7, null;
case 9:
case 10:
return null;
case 4:
return g(t), _(t), null;
case 0:
m("167");
default:
m("156")
}
}
}
}(e, C, T).completeWork,
I = (C = function(e, t) {
function n(e) {
var n = e.ref;
if (null !== n) try {
n(null)
} catch (n) {
t(e, n)
}
}
function r(e) {
switch (ur(e), e.tag) {
case 2:
n(e);
var r = e.stateNode;
if ("function" == typeof r.componentWillUnmount) try {
r.props = e.memoizedProps, r.state = e.memoizedState, r.componentWillUnmount()
} catch (n) {
t(e, n)
}
break;
case 5:
n(e);
break;
case 7:
a(e.stateNode);
break;
case 4:
l && o(e)
}
}
function a(e) {
for (var t = e;;)
if (r(t), null === t.child || l && 4 === t.tag) {
if (t === e) break;
for (; null === t.sibling;) {
if (null === t.return || t.return === e) return;
t = t.return
}
t.sibling.return = t.return, t = t.sibling
} else t.child.return = t, t = t.child
}
function i(e) {
return 5 === e.tag || 3 === e.tag || 4 === e.tag
}
function o(e) {
for (var t = e, n = !1, i = void 0, o = void 0;;) {
if (!n) {
n = t.return;
e: for (;;) {
switch (null === n && m("160"), n.tag) {
case 5:
i = n.stateNode, o = !1;
break e;
case 3:
case 4:
i = n.stateNode.containerInfo, o = !0;
break e
}
n = n.return
}
n = !0
}
if (5 === t.tag || 6 === t.tag) a(t), o ? v(i, t.stateNode) : _(i, t.stateNode);
else if (4 === t.tag ? i = t.stateNode.containerInfo : r(t), null !== t.child) {
t.child.return = t, t = t.child;
continue
}
if (t === e) break;
for (; null === t.sibling;) {
if (null === t.return || t.return === e) return;
4 === (t = t.return).tag && (n = !1)
}
t.sibling.return = t.return, t = t.sibling
}
}
var s = e.getPublicInstance,
l = e.mutation;
e = e.persistence, l || m(e ? "235" : "236");
var c = l.commitMount,
u = l.commitUpdate,
d = l.resetTextContent,
p = l.commitTextUpdate,
g = l.appendChild,
f = l.appendChildToContainer,
h = l.insertBefore,
b = l.insertInContainerBefore,
_ = l.removeChild,
v = l.removeChildFromContainer;
return {
commitResetTextContent: function(e) {
d(e.stateNode)
},
commitPlacement: function(e) {
e: {
for (var t = e.return; null !== t;) {
if (i(t)) {
var n = t;
break e
}
t = t.return
}
m("160"), n = void 0
}
var r = t = void 0;
switch (n.tag) {
case 5:
t = n.stateNode, r = !1;
break;
case 3:
case 4:
t = n.stateNode.containerInfo, r = !0;
break;
default:
m("161")
}
16 & n.effectTag && (d(t), n.effectTag &= -17);e: t: for (n = e;;) {
for (; null === n.sibling;) {
if (null === n.return || i(n.return)) {
n = null;
break e
}
n = n.return
}
for (n.sibling.return = n.return, n = n.sibling; 5 !== n.tag && 6 !== n.tag;) {
if (2 & n.effectTag) continue t;
if (null === n.child || 4 === n.tag) continue t;
n.child.return = n, n = n.child
}
if (!(2 & n.effectTag)) {
n = n.stateNode;
break e
}
}
for (var a = e;;) {
if (5 === a.tag || 6 === a.tag) n ? r ? b(t, a.stateNode, n) : h(t, a.stateNode, n) : r ? f(t, a.stateNode) : g(t, a.stateNode);
else if (4 !== a.tag && null !== a.child) {
a.child.return = a, a = a.child;
continue
}
if (a === e) break;
for (; null === a.sibling;) {
if (null === a.return || a.return === e) return;
a = a.return
}
a.sibling.return = a.return, a = a.sibling
}
},
commitDeletion: function(e) {
o(e), e.return = null, e.child = null, e.alternate && (e.alternate.child = null, e.alternate.return = null)
},
commitWork: function(e, t) {
switch (t.tag) {
case 2:
break;
case 5:
var n = t.stateNode;
if (null != n) {
var r = t.memoizedProps;
e = null !== e ? e.memoizedProps : r;
var a = t.type,
i = t.updateQueue;
t.updateQueue = null, null !== i && u(n, i, a, e, r, t)
}
break;
case 6:
null === t.stateNode && m("162"), n = t.memoizedProps, p(t.stateNode, null !== e ? e.memoizedProps : n, n);
break;
case 3:
break;
default:
m("163")
}
},
commitLifeCycles: function(e, t) {
switch (t.tag) {
case 2:
var n = t.stateNode;
if (4 & t.effectTag)
if (null === e) n.props = t.memoizedProps, n.state = t.memoizedState, n.componentDidMount();
else {
var r = e.memoizedProps;
e = e.memoizedState, n.props = t.memoizedProps, n.state = t.memoizedState, n.componentDidUpdate(r, e)
}
null !== (t = t.updateQueue) && hr(t, n);
break;
case 3:
null !== (n = t.updateQueue) && hr(n, null !== t.child ? t.child.stateNode : null);
break;
case 5:
n = t.stateNode, null === e && 4 & t.effectTag && c(n, t.type, t.memoizedProps, t);
break;
case 6:
case 4:
break;
default:
m("163")
}
},
commitAttachRef: function(e) {
var t = e.ref;
if (null !== t) {
var n = e.stateNode;
switch (e.tag) {
case 5:
t(s(n));
break;
default:
t(n)
}
}
},
commitDetachRef: function(e) {
null !== (e = e.ref) && e(null)
}
}
}(e, s)).commitResetTextContent,
L = C.commitPlacement,
P = C.commitDeletion,
F = C.commitWork,
B = C.commitLifeCycles,
U = C.commitAttachRef,
G = C.commitDetachRef,
q = e.now,
z = e.scheduleDeferredCallback,
j = e.cancelDeferredCallback,
H = e.useSyncScheduling,
$ = e.prepareForCommit,
W = e.resetAfterCommit,
V = q(),
K = 2,
Q = 0,
Z = !1,
X = null,
Y = null,
J = 0,
ee = null,
te = null,
ne = null,
re = null,
ae = null,
ie = !1,
oe = !1,
se = !1,
le = null,
ce = null,
ue = 0,
de = -1,
pe = !1,
me = null,
ge = 0,
fe = !1,
he = !1,
be = null,
_e = null,
ve = !1,
ye = !1,
Ee = 1e3,
Se = 0,
xe = 1;
return {
computeAsyncExpiration: u,
computeExpirationForFiber: d,
scheduleWork: g,
batchedUpdates: function(e, t) {
var n = ve;
ve = !0;
try {
return e(t)
} finally {
(ve = n) || pe || E(1, null)
}
},
unbatchedUpdates: function(e) {
if (ve && !ye) {
ye = !0;
try {
return e()
} finally {
ye = !1
}
}
return e()
},
flushSync: function(e) {
var t = ve;
ve = !0;
try {
e: {
var n = Q;
Q = 1;
try {
var r = e();
break e
} finally {
Q = n
}
r = void 0
}
return r
} finally {
ve = t, pe && m("187"), E(1, null)
}
},
deferredUpdates: function(e) {
var t = Q;
Q = u();
try {
return e()
} finally {
Q = t
}
}
}
}
function Ir(e) {
function t(e) {
return null === (e = function(e) {
if (!(e = $t(e))) return null;
for (var t = e;;) {
if (5 === t.tag || 6 === t.tag) return t;
if (t.child) t.child.return = t, t = t.child;
else {
if (t === e) break;
for (; !t.sibling;) {
if (!t.return || t.return === e) return null;
t = t.return
}
t.sibling.return = t.return, t = t.sibling
}
}
return null
}(e)) ? null : e.stateNode
}
var n = e.getPublicInstance,
r = (e = Rr(e)).computeAsyncExpiration,
a = e.computeExpirationForFiber,
o = e.scheduleWork;
return {
createContainer: function(e, t) {
var n = new Yn(3, null, 0);
return e = {
current: n,
containerInfo: e,
pendingChildren: null,
remainingExpirationTime: 0,
isReadyForCommit: !1,
finishedWork: null,
context: null,
pendingContext: null,
hydrate: t,
nextScheduledRoot: null
}, n.stateNode = e
},
updateContainer: function(e, t, n, i) {
var s = t.current;
if (n) {
var l;
n = n._reactInternalFiber;
e: {
for (2 === zt(n) && 2 === n.tag || m("170"), l = n; 3 !== l.tag;) {
if (Wn(l)) {
l = l.stateNode.__reactInternalMemoizedMergedChildContext;
break e
}(l = l.return) || m("171")
}
l = l.stateNode.context
}
n = Wn(n) ? Qn(n, l) : l
} else n = p;
null === t.context ? t.context = n : t.pendingContext = n, t = void 0 === (t = i) ? null : t, mr(s, {
expirationTime: i = null != e && null != e.type && null != e.type.prototype && !0 === e.type.prototype.unstable_isAsyncReactComponent ? r() : a(s),
partialState: {
element: e
},
callback: t,
isReplace: !1,
isForced: !1,
nextCallback: null,
next: null
}), o(s, i)
},
batchedUpdates: e.batchedUpdates,
unbatchedUpdates: e.unbatchedUpdates,
deferredUpdates: e.deferredUpdates,
flushSync: e.flushSync,
getPublicRootInstance: function(e) {
if (!(e = e.current).child) return null;
switch (e.child.tag) {
case 5:
return n(e.child.stateNode);
default:
return e.child.stateNode
}
},
findHostInstance: t,
findHostInstanceWithNoPortals: function(e) {
return null === (e = function(e) {
if (!(e = $t(e))) return null;
for (var t = e;;) {
if (5 === t.tag || 6 === t.tag) return t;
if (t.child && 4 !== t.tag) t.child.return = t, t = t.child;
else {
if (t === e) break;
for (; !t.sibling;) {
if (!t.return || t.return === e) return null;
t = t.return
}
t.sibling.return = t.return, t = t.sibling
}
}
return null
}(e)) ? null : e.stateNode
},
injectIntoDevTools: function(e) {
var n = e.findFiberByHostInstance;
return function(e) {
if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;
var t = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (t.isDisabled || !t.supportsFiber) return !0;
try {
var n = t.inject(e);
or = lr(function(e) {
return t.onCommitFiberRoot(n, e)
}), sr = lr(function(e) {
return t.onCommitFiberUnmount(n, e)
})
} catch (e) {}
return !0
}(i({}, e, {
findHostInstanceByFiber: function(e) {
return t(e)
},
findFiberByHostInstance: function(e) {
return n ? n(e) : null
}
}))
}
}
}
var Lr = Object.freeze({
default: Ir
}),
Pr = Lr && Ir || Lr,
Fr = Pr.default ? Pr.default : Pr;
var Br = "object" == typeof performance && "function" == typeof performance.now,
Ur = void 0;
Ur = Br ? function() {
return performance.now()
} : function() {
return Date.now()
};
var Gr = void 0,
qr = void 0;
if (a.canUseDOM)
if ("function" != typeof requestIdleCallback || "function" != typeof cancelIdleCallback) {
var zr, jr = null,
Hr = !1,
$r = -1,
Wr = !1,
Vr = 0,
Kr = 33,
Qr = 33;
zr = Br ? {
didTimeout: !1,
timeRemaining: function() {
var e = Vr - performance.now();
return 0 < e ? e : 0
}
} : {
didTimeout: !1,
timeRemaining: function() {
var e = Vr - Date.now();
return 0 < e ? e : 0
}
};
var Zr = "__reactIdleCallback$" + Math.random().toString(36).slice(2);
window.addEventListener("message", function(e) {
if (e.source === window && e.data === Zr) {
if (Hr = !1, e = Ur(), 0 >= Vr - e) {
if (!(-1 !== $r && $r <= e)) return void(Wr || (Wr = !0, requestAnimationFrame(Xr)));
zr.didTimeout = !0
} else zr.didTimeout = !1;
$r = -1, e = jr, jr = null, null !== e && e(zr)
}
}, !1);
var Xr = function(e) {
Wr = !1;
var t = e - Vr + Qr;
t < Qr && Kr < Qr ? (8 > t && (t = 8), Qr = t < Kr ? Kr : t) : Kr = t, Vr = e + Qr, Hr || (Hr = !0, window.postMessage(Zr, "*"))
};
Gr = function(e, t) {
return jr = e, null != t && "number" == typeof t.timeout && ($r = Ur() + t.timeout), Wr || (Wr = !0, requestAnimationFrame(Xr)), 0
}, qr = function() {
jr = null, Hr = !1, $r = -1
}
} else Gr = window.requestIdleCallback, qr = window.cancelIdleCallback;
else Gr = function(e) {
return setTimeout(function() {
e({
timeRemaining: function() {
return 1 / 0
}
})
})
}, qr = function(e) {
clearTimeout(e)
};
var Yr = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,
Jr = {},
ea = {};
function ta(e, t, n) {
var r = v(t);
if (r && _(t, n)) {
var a = r.mutationMethod;
a ? a(e, n) : null == n || r.hasBooleanValue && !n || r.hasNumericValue && isNaN(n) || r.hasPositiveNumericValue && 1 > n || r.hasOverloadedBooleanValue && !1 === n ? ra(e, t) : r.mustUseProperty ? e[r.propertyName] = n : (t = r.attributeName, (a = r.attributeNamespace) ? e.setAttributeNS(a, t, "" + n) : r.hasBooleanValue || r.hasOverloadedBooleanValue && !0 === n ? e.setAttribute(t, "") : e.setAttribute(t, "" + n))
} else na(e, t, _(t, n) ? n : null)
}
function na(e, t, n) {
var r;
r = t, (ea.hasOwnProperty(r) || !Jr.hasOwnProperty(r) && (Yr.test(r) ? ea[r] = !0 : (Jr[r] = !0, 0))) && (null == n ? e.removeAttribute(t) : e.setAttribute(t, "" + n))
}
function ra(e, t) {
var n = v(t);
n ? (t = n.mutationMethod) ? t(e, void 0) : n.mustUseProperty ? e[n.propertyName] = !n.hasBooleanValue && "" : e.removeAttribute(n.attributeName) : e.removeAttribute(t)
}
function aa(e, t) {
var n = t.value,
r = t.checked;
return i({
type: void 0,
step: void 0,
min: void 0,
max: void 0
}, t, {
defaultChecked: void 0,
defaultValue: void 0,
value: null != n ? n : e._wrapperState.initialValue,
checked: null != r ? r : e._wrapperState.initialChecked
})
}
function ia(e, t) {
var n = t.defaultValue;
e._wrapperState = {
initialChecked: null != t.checked ? t.checked : t.defaultChecked,
initialValue: null != t.value ? t.value : n,
controlled: "checkbox" === t.type || "radio" === t.type ? null != t.checked : null != t.value
}
}
function oa(e, t) {
null != (t = t.checked) && ta(e, "checked", t)
}
function sa(e, t) {
oa(e, t);
var n = t.value;
null != n ? 0 === n && "" === e.value ? e.value = "0" : "number" === t.type ? (n != (t = parseFloat(e.value) || 0) || n == t && e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n) : (null == t.value && null != t.defaultValue && e.defaultValue !== "" + t.defaultValue && (e.defaultValue = "" + t.defaultValue), null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked))
}
function la(e, t) {
switch (t.type) {
case "submit":
case "reset":
break;
case "color":
case "date":
case "datetime":
case "datetime-local":
case "month":
case "time":
case "week":
e.value = "", e.value = e.defaultValue;
break;
default:
e.value = e.value
}
"" !== (t = e.name) && (e.name = ""), e.defaultChecked = !e.defaultChecked, e.defaultChecked = !e.defaultChecked, "" !== t && (e.name = t)
}
function ca(e, t) {
var n, a;
return e = i({
children: void 0
}, t), n = t.children, a = "", r.Children.forEach(n, function(e) {
null == e || "string" != typeof e && "number" != typeof e || (a += e)
}), (t = a) && (e.children = t), e
}
function ua(e, t, n, r) {
if (e = e.options, t) {
t = {};
for (var a = 0; a < n.length; a++) t["$" + n[a]] = !0;
for (n = 0; n < e.length; n++) a = t.hasOwnProperty("$" + e[n].value), e[n].selected !== a && (e[n].selected = a), a && r && (e[n].defaultSelected = !0)
} else {
for (n = "" + n, t = null, a = 0; a < e.length; a++) {
if (e[a].value === n) return e[a].selected = !0, void(r && (e[a].defaultSelected = !0));
null !== t || e[a].disabled || (t = e[a])
}
null !== t && (t.selected = !0)
}
}
function da(e, t) {
var n = t.value;
e._wrapperState = {
initialValue: null != n ? n : t.defaultValue,
wasMultiple: !!t.multiple
}
}
function pa(e, t) {
return null != t.dangerouslySetInnerHTML && m("91"), i({}, t, {
value: void 0,
defaultValue: void 0,
children: "" + e._wrapperState.initialValue
})
}
function ma(e, t) {
var n = t.value;
null == n && (n = t.defaultValue, null != (t = t.children) && (null != n && m("92"), Array.isArray(t) && (1 >= t.length || m("93"), t = t[0]), n = "" + t), null == n && (n = "")), e._wrapperState = {
initialValue: "" + n
}
}
function ga(e, t) {
var n = t.value;
null != n && ((n = "" + n) !== e.value && (e.value = n), null == t.defaultValue && (e.defaultValue = n)), null != t.defaultValue && (e.defaultValue = t.defaultValue)
}
function fa(e) {
var t = e.textContent;
t === e._wrapperState.initialValue && (e.value = t)
}
var ha = "http://www.w3.org/1999/xhtml",
ba = "http://www.w3.org/2000/svg";
function _a(e) {
switch (e) {
case "svg":
return "http://www.w3.org/2000/svg";
case "math":
return "http://www.w3.org/1998/Math/MathML";
default:
return "http://www.w3.org/1999/xhtml"
}
}
function va(e, t) {
return null == e || "http://www.w3.org/1999/xhtml" === e ? _a(t) : "http://www.w3.org/2000/svg" === e && "foreignObject" === t ? "http://www.w3.org/1999/xhtml" : e
}
var ya, Ea = void 0,
Sa = (ya = function(e, t) {
if (e.namespaceURI !== ba || "innerHTML" in e) e.innerHTML = t;
else {
for ((Ea = Ea || document.createElement("div")).innerHTML = "<svg>" + t + "</svg>", t = Ea.firstChild; e.firstChild;) e.removeChild(e.firstChild);
for (; t.firstChild;) e.appendChild(t.firstChild)
}
}, "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(e, t, n, r) {
MSApp.execUnsafeLocalFunction(function() {
return ya(e, t)
})
} : ya);
function xa(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && 3 === n.nodeType) return void(n.nodeValue = t)
}
e.textContent = t
}
var wa = {
animationIterationCount: !0,
borderImageOutset: !0,
borderImageSlice: !0,
borderImageWidth: !0,
boxFlex: !0,
boxFlexGroup: !0,
boxOrdinalGroup: !0,
columnCount: !0,
columns: !0,
flex: !0,
flexGrow: !0,
flexPositive: !0,
flexShrink: !0,
flexNegative: !0,
flexOrder: !0,
gridRow: !0,
gridRowEnd: !0,
gridRowSpan: !0,
gridRowStart: !0,
gridColumn: !0,
gridColumnEnd: !0,
gridColumnSpan: !0,
gridColumnStart: !0,
fontWeight: !0,
lineClamp: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
tabSize: !0,
widows: !0,
zIndex: !0,
zoom: !0,
fillOpacity: !0,
floodOpacity: !0,
stopOpacity: !0,
strokeDasharray: !0,
strokeDashoffset: !0,
strokeMiterlimit: !0,
strokeOpacity: !0,
strokeWidth: !0
},
Ca = ["Webkit", "ms", "Moz", "O"];
function Ta(e, t) {
e = e.style;
for (var n in t)
if (t.hasOwnProperty(n)) {
var r = 0 === n.indexOf("--"),
a = n,
i = t[n];
a = null == i || "boolean" == typeof i || "" === i ? "" : r || "number" != typeof i || 0 === i || wa.hasOwnProperty(a) && wa[a] ? ("" + i).trim() : i + "px", "float" === n && (n = "cssFloat"), r ? e.setProperty(n, a) : e[n] = a
}
}
Object.keys(wa).forEach(function(e) {
Ca.forEach(function(t) {
t = t + e.charAt(0).toUpperCase() + e.substring(1), wa[t] = wa[e]
})
});
var Na = i({
menuitem: !0
}, {
area: !0,
base: !0,
br: !0,
col: !0,
embed: !0,
hr: !0,
img: !0,
input: !0,
keygen: !0,
link: !0,
meta: !0,
param: !0,
source: !0,
track: !0,
wbr: !0
});
function Oa(e, t, n) {
t && (Na[e] && (null != t.children || null != t.dangerouslySetInnerHTML) && m("137", e, n()), null != t.dangerouslySetInnerHTML && (null != t.children && m("60"), "object" == typeof t.dangerouslySetInnerHTML && "__html" in t.dangerouslySetInnerHTML || m("61")), null != t.style && "object" != typeof t.style && m("62", n()))
}
function Ma(e, t) {
if (-1 === e.indexOf("-")) return "string" == typeof t.is;
switch (e) {
case "annotation-xml":
case "color-profile":
case "font-face":
case "font-face-src":
case "font-face-uri":
case "font-face-format":
case "font-face-name":
case "missing-glyph":
return !1;
default:
return !0
}
}
var Da = ha,
Aa = o.thatReturns("");
function ka(e, t) {
var n = dn(e = 9 === e.nodeType || 11 === e.nodeType ? e : e.ownerDocument);
t = j[t];
for (var r = 0; r < t.length; r++) {
var a = t[r];
n.hasOwnProperty(a) && n[a] || ("topScroll" === a ? Yt("topScroll", "scroll", e) : "topFocus" === a || "topBlur" === a ? (Yt("topFocus", "focus", e), Yt("topBlur", "blur", e), n.topBlur = !0, n.topFocus = !0) : "topCancel" === a ? (gt("cancel", !0) && Yt("topCancel", "cancel", e), n.topCancel = !0) : "topClose" === a ? (gt("close", !0) && Yt("topClose", "close", e), n.topClose = !0) : sn.hasOwnProperty(a) && Xt(a, sn[a], e), n[a] = !0)
}
}
var Ra = {
topAbort: "abort",
topCanPlay: "canplay",
topCanPlayThrough: "canplaythrough",
topDurationChange: "durationchange",
topEmptied: "emptied",
topEncrypted: "encrypted",
topEnded: "ended",
topError: "error",
topLoadedData: "loadeddata",
topLoadedMetadata: "loadedmetadata",
topLoadStart: "loadstart",
topPause: "pause",
topPlay: "play",
topPlaying: "playing",
topProgress: "progress",
topRateChange: "ratechange",
topSeeked: "seeked",
topSeeking: "seeking",
topStalled: "stalled",
topSuspend: "suspend",
topTimeUpdate: "timeupdate",
topVolumeChange: "volumechange",
topWaiting: "waiting"
};
function Ia(e, t, n, r) {
return n = 9 === n.nodeType ? n : n.ownerDocument, r === Da && (r = _a(e)), r === Da ? "script" === e ? ((e = n.createElement("div")).innerHTML = "<script><\/script>", e = e.removeChild(e.firstChild)) : e = "string" == typeof t.is ? n.createElement(e, {
is: t.is
}) : n.createElement(e) : e = n.createElementNS(r, e), e
}
function La(e, t) {
return (9 === t.nodeType ? t : t.ownerDocument).createTextNode(e)
}
function Pa(e, t, n, r) {
var a = Ma(t, n);
switch (t) {
case "iframe":
case "object":
Xt("topLoad", "load", e);
var s = n;
break;
case "video":
case "audio":
for (s in Ra) Ra.hasOwnProperty(s) && Xt(s, Ra[s], e);
s = n;
break;
case "source":
Xt("topError", "error", e), s = n;
break;
case "img":
case "image":
Xt("topError", "error", e), Xt("topLoad", "load", e), s = n;
break;
case "form":
Xt("topReset", "reset", e), Xt("topSubmit", "submit", e), s = n;
break;
case "details":
Xt("topToggle", "toggle", e), s = n;
break;
case "input":
ia(e, n), s = aa(e, n), Xt("topInvalid", "invalid", e), ka(r, "onChange");
break;
case "option":
s = ca(e, n);
break;
case "select":
da(e, n), s = i({}, n, {
value: void 0
}), Xt("topInvalid", "invalid", e), ka(r, "onChange");
break;
case "textarea":
ma(e, n), s = pa(e, n), Xt("topInvalid", "invalid", e), ka(r, "onChange");
break;
default:
s = n
}
Oa(t, s, Aa);
var l, c = s;
for (l in c)
if (c.hasOwnProperty(l)) {
var u = c[l];
"style" === l ? Ta(e, u) : "dangerouslySetInnerHTML" === l ? null != (u = u ? u.__html : void 0) && Sa(e, u) : "children" === l ? "string" == typeof u ? ("textarea" !== t || "" !== u) && xa(e, u) : "number" == typeof u && xa(e, "" + u) : "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && "autoFocus" !== l && (z.hasOwnProperty(l) ? null != u && ka(r, l) : a ? na(e, l, u) : null != u && ta(e, l, u))
}
switch (t) {
case "input":
ht(e), la(e, n);
break;
case "textarea":
ht(e), fa(e);
break;
case "option":
null != n.value && e.setAttribute("value", n.value);
break;
case "select":
e.multiple = !!n.multiple, null != (t = n.value) ? ua(e, !!n.multiple, t, !1) : null != n.defaultValue && ua(e, !!n.multiple, n.defaultValue, !0);
break;
default:
"function" == typeof s.onClick && (e.onclick = o)
}
}
function Fa(e, t, n, r, a) {
var s, l, c = null;
switch (t) {
case "input":
n = aa(e, n), r = aa(e, r), c = [];
break;
case "option":
n = ca(e, n), r = ca(e, r), c = [];
break;
case "select":
n = i({}, n, {
value: void 0
}), r = i({}, r, {
value: void 0
}), c = [];
break;
case "textarea":
n = pa(e, n), r = pa(e, r), c = [];
break;
default:
"function" != typeof n.onClick && "function" == typeof r.onClick && (e.onclick = o)
}
Oa(t, r, Aa), e = null;
for (s in n)
if (!r.hasOwnProperty(s) && n.hasOwnProperty(s) && null != n[s])
if ("style" === s)
for (l in t = n[s], t) t.hasOwnProperty(l) && (e || (e = {}), e[l] = "");
else "dangerouslySetInnerHTML" !== s && "children" !== s && "suppressContentEditableWarning" !== s && "suppressHydrationWarning" !== s && "autoFocus" !== s && (z.hasOwnProperty(s) ? c || (c = []) : (c = c || []).push(s, null));
for (s in r) {
var u = r[s];
if (t = null != n ? n[s] : void 0, r.hasOwnProperty(s) && u !== t && (null != u || null != t))
if ("style" === s)
if (t) {
for (l in t) !t.hasOwnProperty(l) || u && u.hasOwnProperty(l) || (e || (e = {}), e[l] = "");
for (l in u) u.hasOwnProperty(l) && t[l] !== u[l] && (e || (e = {}), e[l] = u[l])
} else e || (c || (c = []), c.push(s, e)), e = u;
else "dangerouslySetInnerHTML" === s ? (u = u ? u.__html : void 0, t = t ? t.__html : void 0, null != u && t !== u && (c = c || []).push(s, "" + u)) : "children" === s ? t === u || "string" != typeof u && "number" != typeof u || (c = c || []).push(s, "" + u) : "suppressContentEditableWarning" !== s && "suppressHydrationWarning" !== s && (z.hasOwnProperty(s) ? (null != u && ka(a, s), c || t === u || (c = [])) : (c = c || []).push(s, u))
}
return e && (c = c || []).push("style", e), c
}
function Ba(e, t, n, r, a) {
"input" === n && "radio" === a.type && null != a.name && oa(e, a), Ma(n, r), r = Ma(n, a);
for (var i = 0; i < t.length; i += 2) {
var o = t[i],
s = t[i + 1];
"style" === o ? Ta(e, s) : "dangerouslySetInnerHTML" === o ? Sa(e, s) : "children" === o ? xa(e, s) : r ? null != s ? na(e, o, s) : e.removeAttribute(o) : null != s ? ta(e, o, s) : ra(e, o)
}
switch (n) {
case "input":
sa(e, a);
break;
case "textarea":
ga(e, a);
break;
case "select":
e._wrapperState.initialValue = void 0, t = e._wrapperState.wasMultiple, e._wrapperState.wasMultiple = !!a.multiple, null != (n = a.value) ? ua(e, !!a.multiple, n, !1) : t !== !!a.multiple && (null != a.defaultValue ? ua(e, !!a.multiple, a.defaultValue, !0) : ua(e, !!a.multiple, a.multiple ? [] : "", !1))
}
}
function Ua(e, t, n, r, a) {
switch (t) {
case "iframe":
case "object":
Xt("topLoad", "load", e);
break;
case "video":
case "audio":
for (var i in Ra) Ra.hasOwnProperty(i) && Xt(i, Ra[i], e);
break;
case "source":
Xt("topError", "error", e);
break;
case "img":
case "image":
Xt("topError", "error", e), Xt("topLoad", "load", e);
break;
case "form":
Xt("topReset", "reset", e), Xt("topSubmit", "submit", e);
break;
case "details":
Xt("topToggle", "toggle", e);
break;
case "input":
ia(e, n), Xt("topInvalid", "invalid", e), ka(a, "onChange");
break;
case "select":
da(e, n), Xt("topInvalid", "invalid", e), ka(a, "onChange");
break;
case "textarea":
ma(e, n), Xt("topInvalid", "invalid", e), ka(a, "onChange")
}
Oa(t, n, Aa), r = null;
for (var s in n) n.hasOwnProperty(s) && (i = n[s], "children" === s ? "string" == typeof i ? e.textContent !== i && (r = ["children", i]) : "number" == typeof i && e.textContent !== "" + i && (r = ["children", "" + i]) : z.hasOwnProperty(s) && null != i && ka(a, s));
switch (t) {
case "input":
ht(e), la(e, n);
break;
case "textarea":
ht(e), fa(e);
break;
case "select":
case "option":
break;
default:
"function" == typeof n.onClick && (e.onclick = o)
}
return r
}
function Ga(e, t) {
return e.nodeValue !== t
}
var qa = Object.freeze({
createElement: Ia,
createTextNode: La,
setInitialProperties: Pa,
diffProperties: Fa,
updateProperties: Ba,
diffHydratedProperties: Ua,
diffHydratedText: Ga,
warnForUnmatchedText: function() {},
warnForDeletedHydratableElement: function() {},
warnForDeletedHydratableText: function() {},
warnForInsertedHydratedElement: function() {},
warnForInsertedHydratedText: function() {},
restoreControlledState: function(e, t, n) {
switch (t) {
case "input":
if (sa(e, n), t = n.name, "radio" === n.type && null != t) {
for (n = e; n.parentNode;) n = n.parentNode;
for (n = n.querySelectorAll("input[name=" + JSON.stringify("" + t) + '][type="radio"]'), t = 0; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
var a = ge(r);
a || m("90"), bt(r), sa(r, a)
}
}
}
break;
case "textarea":
ga(e, n);
break;
case "select":
null != (t = n.value) && ua(e, !!n.multiple, t, !1)
}
}
});
rt.injectFiberControlledHostComponent(qa);
var za = null,
ja = null;
function Ha(e) {
return !(!e || 1 !== e.nodeType && 9 !== e.nodeType && 11 !== e.nodeType && (8 !== e.nodeType || " react-mount-point-unstable " !== e.nodeValue))
}
var $a = Fr({
getRootHostContext: function(e) {
var t = e.nodeType;
switch (t) {
case 9:
case 11:
e = (e = e.documentElement) ? e.namespaceURI : va(null, "");
break;
default:
e = va(e = (t = 8 === t ? e.parentNode : e).namespaceURI || null, t = t.tagName)
}
return e
},
getChildHostContext: function(e, t) {
return va(e, t)
},
getPublicInstance: function(e) {
return e
},
prepareForCommit: function() {
za = Kt;
var e = l();
if (gn(e)) {
if ("selectionStart" in e) var t = {
start: e.selectionStart,
end: e.selectionEnd
};
else e: {
var n = window.getSelection && window.getSelection();
if (n && 0 !== n.rangeCount) {
t = n.anchorNode;
var r = n.anchorOffset,
a = n.focusNode;
n = n.focusOffset;
try {
t.nodeType, a.nodeType
} catch (e) {
t = null;
break e
}
var i = 0,
o = -1,
s = -1,
c = 0,
u = 0,
d = e,
p = null;
t: for (;;) {
for (var m; d !== t || 0 !== r && 3 !== d.nodeType || (o = i + r), d !== a || 0 !== n && 3 !== d.nodeType || (s = i + n), 3 === d.nodeType && (i += d.nodeValue.length), null !== (m = d.firstChild);) p = d, d = m;
for (;;) {
if (d === e) break t;
if (p === t && ++c === r && (o = i), p === a && ++u === n && (s = i), null !== (m = d.nextSibling)) break;
p = (d = p).parentNode
}
d = m
}
t = -1 === o || -1 === s ? null : {
start: o,
end: s
}
} else t = null
}
t = t || {
start: 0,
end: 0
}
} else t = null;
ja = {
focusedElem: e,
selectionRange: t
}, Zt(!1)
},
resetAfterCommit: function() {
var e = ja,
t = l(),
n = e.focusedElem,
r = e.selectionRange;
if (t !== n && u(document.documentElement, n)) {
if (gn(n))
if (t = r.start, e = r.end, void 0 === e && (e = t), "selectionStart" in n) n.selectionStart = t, n.selectionEnd = Math.min(e, n.value.length);
else if (window.getSelection) {
t = window.getSelection();
var a = n[Ne()].length;
e = Math.min(r.start, a), r = void 0 === r.end ? e : Math.min(r.end, a), !t.extend && e > r && (a = r, r = e, e = a), a = mn(n, e);
var i = mn(n, r);
if (a && i && (1 !== t.rangeCount || t.anchorNode !== a.node || t.anchorOffset !== a.offset || t.focusNode !== i.node || t.focusOffset !== i.offset)) {
var o = document.createRange();
o.setStart(a.node, a.offset), t.removeAllRanges(), e > r ? (t.addRange(o), t.extend(i.node, i.offset)) : (o.setEnd(i.node, i.offset), t.addRange(o))
}
}
for (t = [], e = n; e = e.parentNode;) 1 === e.nodeType && t.push({
element: e,
left: e.scrollLeft,
top: e.scrollTop
});
for (d(n), n = 0; n < t.length; n++) e = t[n], e.element.scrollLeft = e.left, e.element.scrollTop = e.top
}
ja = null, Zt(za), za = null
},
createInstance: function(e, t, n, r, a) {
return (e = Ia(e, t, n, r))[ue] = a, e[de] = t, e
},
appendInitialChild: function(e, t) {
e.appendChild(t)
},
finalizeInitialChildren: function(e, t, n, r) {
Pa(e, t, n, r);
e: {
switch (t) {
case "button":
case "input":
case "select":
case "textarea":
e = !!n.autoFocus;
break e
}
e = !1
}
return e
},
prepareUpdate: function(e, t, n, r, a) {
return Fa(e, t, n, r, a)
},
shouldSetTextContent: function(e, t) {
return "textarea" === e || "string" == typeof t.children || "number" == typeof t.children || "object" == typeof t.dangerouslySetInnerHTML && null !== t.dangerouslySetInnerHTML && "string" == typeof t.dangerouslySetInnerHTML.__html
},
shouldDeprioritizeSubtree: function(e, t) {
return !!t.hidden
},
createTextInstance: function(e, t, n, r) {
return (e = La(e, t))[ue] = r, e
},
now: Ur,
mutation: {
commitMount: function(e) {
e.focus()
},
commitUpdate: function(e, t, n, r, a) {
e[de] = a, Ba(e, t, n, r, a)
},
resetTextContent: function(e) {
e.textContent = ""
},
commitTextUpdate: function(e, t, n) {
e.nodeValue = n
},
appendChild: function(e, t) {
e.appendChild(t)
},
appendChildToContainer: function(e, t) {
8 === e.nodeType ? e.parentNode.insertBefore(t, e) : e.appendChild(t)
},
insertBefore: function(e, t, n) {
e.insertBefore(t, n)
},
insertInContainerBefore: function(e, t, n) {
8 === e.nodeType ? e.parentNode.insertBefore(t, n) : e.insertBefore(t, n)
},
removeChild: function(e, t) {
e.removeChild(t)
},
removeChildFromContainer: function(e, t) {
8 === e.nodeType ? e.parentNode.removeChild(t) : e.removeChild(t)
}
},
hydration: {
canHydrateInstance: function(e, t) {
return 1 !== e.nodeType || t.toLowerCase() !== e.nodeName.toLowerCase() ? null : e
},
canHydrateTextInstance: function(e, t) {
return "" === t || 3 !== e.nodeType ? null : e
},
getNextHydratableSibling: function(e) {
for (e = e.nextSibling; e && 1 !== e.nodeType && 3 !== e.nodeType;) e = e.nextSibling;
return e
},
getFirstHydratableChild: function(e) {
for (e = e.firstChild; e && 1 !== e.nodeType && 3 !== e.nodeType;) e = e.nextSibling;
return e
},
hydrateInstance: function(e, t, n, r, a, i) {
return e[ue] = i, e[de] = n, Ua(e, t, n, a, r)
},
hydrateTextInstance: function(e, t, n) {
return e[ue] = n, Ga(e, t)
},
didNotMatchHydratedContainerTextInstance: function() {},
didNotMatchHydratedTextInstance: function() {},
didNotHydrateContainerInstance: function() {},
didNotHydrateInstance: function() {},
didNotFindHydratableContainerInstance: function() {},
didNotFindHydratableContainerTextInstance: function() {},
didNotFindHydratableInstance: function() {},
didNotFindHydratableTextInstance: function() {}
},
scheduleDeferredCallback: Gr,
cancelDeferredCallback: qr,
useSyncScheduling: !0
});
function Wa(e, t, n, r, a) {
Ha(n) || m("200");
var i, o = n._reactRootContainer;
if (o) $a.updateContainer(t, o, e, a);
else {
if (!(r = r || !(!(i = (i = n) ? 9 === i.nodeType ? i.documentElement : i.firstChild : null) || 1 !== i.nodeType || !i.hasAttribute("data-reactroot"))))
for (o = void 0; o = n.lastChild;) n.removeChild(o);
var s = $a.createContainer(n, r);
o = n._reactRootContainer = s, $a.unbatchedUpdates(function() {
$a.updateContainer(t, s, e, a)
})
}
return $a.getPublicRootInstance(o)
}
function Va(e, t) {
var n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
return Ha(t) || m("200"),
function(e, t, n) {
var r = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
return {
$$typeof: Er,
key: null == r ? null : "" + r,
children: e,
containerInfo: t,
implementation: n
}
}(e, t, null, n)
}
function Ka(e, t) {
this._reactRootContainer = $a.createContainer(e, t)
}
st = $a.batchedUpdates, Ka.prototype.render = function(e, t) {
$a.updateContainer(e, this._reactRootContainer, null, t)
}, Ka.prototype.unmount = function(e) {
$a.updateContainer(null, this._reactRootContainer, null, e)
};
var Qa = {
createPortal: Va,
findDOMNode: function(e) {
if (null == e) return null;
if (1 === e.nodeType) return e;
var t = e._reactInternalFiber;
if (t) return $a.findHostInstance(t);
"function" == typeof e.render ? m("188") : m("213", Object.keys(e))
},
hydrate: function(e, t, n) {
return Wa(null, e, t, !0, n)
},
render: function(e, t, n) {
return Wa(null, e, t, !1, n)
},
unstable_renderSubtreeIntoContainer: function(e, t, n, r) {
return (null == e || void 0 === e._reactInternalFiber) && m("38"), Wa(e, t, n, !1, r)
},
unmountComponentAtNode: function(e) {
return Ha(e) || m("40"), !!e._reactRootContainer && ($a.unbatchedUpdates(function() {
Wa(null, null, e, !1, function() {
e._reactRootContainer = null
})
}), !0)
},
unstable_createPortal: Va,
unstable_batchedUpdates: ct,
unstable_deferredUpdates: $a.deferredUpdates,
flushSync: $a.flushSync,
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
EventPluginHub: le,
EventPluginRegistry: W,
EventPropagators: Ce,
ReactControlledComponent: ot,
ReactDOMComponentTree: fe,
ReactDOMEventListener: en
}
};
$a.injectIntoDevTools({
findFiberByHostInstance: pe,
bundleType: 0,
version: "16.2.0",
rendererPackageName: "react-dom"
});
var Za = Object.freeze({
default: Qa
}),
Xa = Za && Qa || Za;
e.exports = Xa.default ? Xa.default : Xa
}, function(e, t, n) {
"use strict";
var r = n(26),
a = n(27),
i = n(15),
o = "function" == typeof Symbol && Symbol.for,
s = o ? Symbol.for("react.element") : 60103,
l = o ? Symbol.for("react.call") : 60104,
c = o ? Symbol.for("react.return") : 60105,
u = o ? Symbol.for("react.portal") : 60106,
d = o ? Symbol.for("react.fragment") : 60107,
p = "function" == typeof Symbol && Symbol.iterator;
function m(e) {
for (var t = arguments.length - 1, n = "Minified React error #" + e + "; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=" + e, r = 0; r < t; r++) n += "&args[]=" + encodeURIComponent(arguments[r + 1]);
throw (t = Error(n + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.")).name = "Invariant Violation", t.framesToPop = 1, t
}
var g = {
isMounted: function() {
return !1
},
enqueueForceUpdate: function() {},
enqueueReplaceState: function() {},
enqueueSetState: function() {}
};
function f(e, t, n) {
this.props = e, this.context = t, this.refs = a, this.updater = n || g
}
function h(e, t, n) {
this.props = e, this.context = t, this.refs = a, this.updater = n || g
}
function b() {}
f.prototype.isReactComponent = {}, f.prototype.setState = function(e, t) {
"object" != typeof e && "function" != typeof e && null != e && m("85"), this.updater.enqueueSetState(this, e, t, "setState")
}, f.prototype.forceUpdate = function(e) {
this.updater.enqueueForceUpdate(this, e, "forceUpdate")
}, b.prototype = f.prototype;
var _ = h.prototype = new b;
function v(e, t, n) {
this.props = e, this.context = t, this.refs = a, this.updater = n || g
}
_.constructor = h, r(_, f.prototype), _.isPureReactComponent = !0;
var y = v.prototype = new b;
y.constructor = v, r(y, f.prototype), y.unstable_isAsyncReactComponent = !0, y.render = function() {
return this.props.children
};
var E = {
current: null
},
S = Object.prototype.hasOwnProperty,
x = {
key: !0,
ref: !0,
__self: !0,
__source: !0
};
function w(e, t, n) {
var r, a = {},
i = null,
o = null;
if (null != t)
for (r in void 0 !== t.ref && (o = t.ref), void 0 !== t.key && (i = "" + t.key), t) S.call(t, r) && !x.hasOwnProperty(r) && (a[r] = t[r]);
var l = arguments.length - 2;
if (1 === l) a.children = n;
else if (1 < l) {
for (var c = Array(l), u = 0; u < l; u++) c[u] = arguments[u + 2];
a.children = c
}
if (e && e.defaultProps)
for (r in l = e.defaultProps, l) void 0 === a[r] && (a[r] = l[r]);
return {
$$typeof: s,
type: e,
key: i,
ref: o,
props: a,
_owner: E.current
}
}
function C(e) {
return "object" == typeof e && null !== e && e.$$typeof === s
}
var T = /\/+/g,
N = [];
function O(e, t, n, r) {
if (N.length) {
var a = N.pop();
return a.result = e, a.keyPrefix = t, a.func = n, a.context = r, a.count = 0, a
}
return {
result: e,
keyPrefix: t,
func: n,
context: r,
count: 0
}
}
function M(e) {
e.result = null, e.keyPrefix = null, e.func = null, e.context = null, e.count = 0, 10 > N.length && N.push(e)
}
function D(e, t, n, r) {
var a = typeof e;
"undefined" !== a && "boolean" !== a || (e = null);
var i = !1;
if (null === e) i = !0;
else switch (a) {
case "string":
case "number":
i = !0;
break;
case "object":
switch (e.$$typeof) {
case s:
case l:
case c:
case u:
i = !0
}
}
if (i) return n(r, e, "" === t ? "." + A(e, 0) : t), 1;
if (i = 0, t = "" === t ? "." : t + ":", Array.isArray(e))
for (var o = 0; o < e.length; o++) {
var d = t + A(a = e[o], o);
i += D(a, d, n, r)
} else if (null === e || void 0 === e ? d = null : (d = p && e[p] || e["@@iterator"], d = "function" == typeof d ? d : null), "function" == typeof d)
for (e = d.call(e), o = 0; !(a = e.next()).done;) a = a.value, d = t + A(a, o++), i += D(a, d, n, r);
else "object" === a && (n = "" + e, m("31", "[object Object]" === n ? "object with keys {" + Object.keys(e).join(", ") + "}" : n, ""));
return i
}
function A(e, t) {
return "object" == typeof e && null !== e && null != e.key ? (n = e.key, r = {
"=": "=0",
":": "=2"
}, "$" + ("" + n).replace(/[=:]/g, function(e) {
return r[e]
})) : t.toString(36);
var n, r
}
function k(e, t) {
e.func.call(e.context, t, e.count++)
}
function R(e, t, n) {
var r = e.result,
a = e.keyPrefix;
e = e.func.call(e.context, t, e.count++), Array.isArray(e) ? I(e, r, n, i.thatReturnsArgument) : null != e && (C(e) && (t = a + (!e.key || t && t.key === e.key ? "" : ("" + e.key).replace(T, "$&/") + "/") + n, e = {
$$typeof: s,
type: e.type,
key: t,
ref: e.ref,
props: e.props,
_owner: e._owner
}), r.push(e))
}
function I(e, t, n, r, a) {
var i = "";
null != n && (i = ("" + n).replace(T, "$&/") + "/"), t = O(t, i, r, a), null == e || D(e, "", R, t), M(t)
}
var L = {
Children: {
map: function(e, t, n) {
if (null == e) return e;
var r = [];
return I(e, r, null, t, n), r
},
forEach: function(e, t, n) {
if (null == e) return e;
t = O(null, null, t, n), null == e || D(e, "", k, t), M(t)
},
count: function(e) {
return null == e ? 0 : D(e, "", i.thatReturnsNull, null)
},
toArray: function(e) {
var t = [];
return I(e, t, null, i.thatReturnsArgument), t
},
only: function(e) {
return C(e) || m("143"), e
}
},
Component: f,
PureComponent: h,
unstable_AsyncComponent: v,
Fragment: d,
createElement: w,
cloneElement: function(e, t, n) {
var a = r({}, e.props),
i = e.key,
o = e.ref,
l = e._owner;
if (null != t) {
if (void 0 !== t.ref && (o = t.ref, l = E.current), void 0 !== t.key && (i = "" + t.key), e.type && e.type.defaultProps) var c = e.type.defaultProps;
for (u in t) S.call(t, u) && !x.hasOwnProperty(u) && (a[u] = void 0 === t[u] && void 0 !== c ? c[u] : t[u])
}
var u = arguments.length - 2;
if (1 === u) a.children = n;
else if (1 < u) {
c = Array(u);
for (var d = 0; d < u; d++) c[d] = arguments[d + 2];
a.children = c
}
return {
$$typeof: s,
type: e.type,
key: i,
ref: o,
props: a,
_owner: l
}
},
createFactory: function(e) {
var t = w.bind(null, e);
return t.type = e, t
},
isValidElement: C,
version: "16.2.0",
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
ReactCurrentOwner: E,
assign: r
}
},
P = Object.freeze({
default: L
}),
F = P && L || P;
e.exports = F.default ? F.default : F
}, function(e, t, n) {
"use strict";
var r = !("undefined" == typeof window || !window.document || !window.document.createElement),
a = {
canUseDOM: r,
canUseWorkers: "undefined" != typeof Worker,
canUseEventListeners: r && !(!window.addEventListener && !window.attachEvent),
canUseViewport: r && !!window.screen,
isInWorker: !r
};
e.exports = a
}, function(e, t, n) {
"use strict";
var r = n(15),
a = {
listen: function(e, t, n) {
return e.addEventListener ? (e.addEventListener(t, n, !1), {
remove: function() {
e.removeEventListener(t, n, !1)
}
}) : e.attachEvent ? (e.attachEvent("on" + t, n), {
remove: function() {
e.detachEvent("on" + t, n)
}
}) : void 0
},
capture: function(e, t, n) {
return e.addEventListener ? (e.addEventListener(t, n, !0), {
remove: function() {
e.removeEventListener(t, n, !0)
}
}) : {
remove: r
}
},
registerDefault: function() {}
};
e.exports = a
}, function(e, t, n) {
"use strict";
e.exports = function(e) {
if (void 0 === (e = e || ("undefined" != typeof document ? document : void 0))) return null;
try {
return e.activeElement || e.body
} catch (t) {
return e.body
}
}
}, function(e, t, n) {
"use strict";
var r = Object.prototype.hasOwnProperty;
function a(e, t) {
return e === t ? 0 !== e || 0 !== t || 1 / e == 1 / t : e != e && t != t
}
e.exports = function(e, t) {
if (a(e, t)) return !0;
if ("object" != typeof e || null === e || "object" != typeof t || null === t) return !1;
var n = Object.keys(e),
i = Object.keys(t);
if (n.length !== i.length) return !1;
for (var o = 0; o < n.length; o++)
if (!r.call(t, n[o]) || !a(e[n[o]], t[n[o]])) return !1;
return !0
}
}, function(e, t, n) {
"use strict";
var r = n(66);
e.exports = function e(t, n) {
return !(!t || !n) && (t === n || !r(t) && (r(n) ? e(t, n.parentNode) : "contains" in t ? t.contains(n) : !!t.compareDocumentPosition && !!(16 & t.compareDocumentPosition(n))))
}
}, function(e, t, n) {
"use strict";
var r = n(67);
e.exports = function(e) {
return r(e) && 3 == e.nodeType
}
}, function(e, t, n) {
"use strict";
e.exports = function(e) {
var t = (e ? e.ownerDocument || e : document).defaultView || window;
return !(!e || !("function" == typeof t.Node ? e instanceof t.Node : "object" == typeof e && "number" == typeof e.nodeType && "string" == typeof e.nodeName))
}
}, function(e, t, n) {
"use strict";
e.exports = function(e) {
try {
e.focus()
} catch (e) {}
}
}, function(e, t, n) {
"use strict";
const r = n(70),
a = n(21),
i = n(28),
o = n(29);
function s(e, t, i) {
if (!(this instanceof s)) return new s(e, t, i);
a.EventEmitter.call(this), r.ok(e && ("number" == typeof e || "string" == typeof e), "Matomo siteId required."), r.ok(t && "string" == typeof t, "Matomo tracker URL required, e.g. http://example.com/matomo.php"), i || r.ok(t.endsWith("matomo.php") || t.endsWith("piwik.php"), 'A tracker URL must end with "matomo.php" or "piwik.php"'), this.siteId = e, this.trackerUrl = t, this.agent = n(t.startsWith("https") ? 75 : 30)
}
i.inherits(s, a.EventEmitter), s.prototype.track = function(e) {
var t = this.listeners("error").length;
"string" == typeof e && (e = {
url: e
}), (e = e || {}).idsite = this.siteId, e.rec = 1, r.ok(e.url, "URL to be tracked must be specified.");
var n = this.trackerUrl + "?" + o.stringify(e),
a = this,
i = this.agent.get(n, function(e) {
/^(200|30[12478])$/.test(e.statusCode) || t && a.emit("error", e.statusCode)
});
i.on("error", function(e) {
t && a.emit("error", e.message)
}), i.end()
}, e.exports = s
}, function(e, t, n) {
"use strict";
(function(t) {
function r(e, t) {
if (e === t) return 0;
for (var n = e.length, r = t.length, a = 0, i = Math.min(n, r); a < i; ++a)
if (e[a] !== t[a]) {
n = e[a], r = t[a];
break
}
return n < r ? -1 : r < n ? 1 : 0
}
function a(e) {
return t.Buffer && "function" == typeof t.Buffer.isBuffer ? t.Buffer.isBuffer(e) : !(null == e || !e._isBuffer)
}
var i = n(28),
o = Object.prototype.hasOwnProperty,
s = Array.prototype.slice,
l = "foo" === function() {}.name;
function c(e) {
return Object.prototype.toString.call(e)
}
function u(e) {
return !a(e) && ("function" == typeof t.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(e) : !!e && (e instanceof DataView || !!(e.buffer && e.buffer instanceof ArrayBuffer))))
}
var d = e.exports = b,
p = /\s*function\s+([^\(\s]*)\s*/;
function m(e) {
if (i.isFunction(e)) {
if (l) return e.name;
var t = e.toString().match(p);
return t && t[1]
}
}
function g(e, t) {
return "string" == typeof e ? e.length < t ? e : e.slice(0, t) : e
}
function f(e) {
if (l || !i.isFunction(e)) return i.inspect(e);
var t = m(e);
return "[Function" + (t ? ": " + t : "") + "]"
}
function h(e, t, n, r, a) {
throw new d.AssertionError({
message: n,
actual: e,
expected: t,
operator: r,
stackStartFunction: a
})
}
function b(e, t) {
e || h(e, !0, t, "==", d.ok)
}
function _(e, t, n, o) {
if (e === t) return !0;
if (a(e) && a(t)) return 0 === r(e, t);
if (i.isDate(e) && i.isDate(t)) return e.getTime() === t.getTime();
if (i.isRegExp(e) && i.isRegExp(t)) return e.source === t.source && e.global === t.global && e.multiline === t.multiline && e.lastIndex === t.lastIndex && e.ignoreCase === t.ignoreCase;
if (null !== e && "object" == typeof e || null !== t && "object" == typeof t) {
if (u(e) && u(t) && c(e) === c(t) && !(e instanceof Float32Array || e instanceof Float64Array)) return 0 === r(new Uint8Array(e.buffer), new Uint8Array(t.buffer));
if (a(e) !== a(t)) return !1;
var l = (o = o || {
actual: [],
expected: []
}).actual.indexOf(e);
return -1 !== l && l === o.expected.indexOf(t) || (o.actual.push(e), o.expected.push(t), function(e, t, n, r) {
if (null === e || void 0 === e || null === t || void 0 === t) return !1;
if (i.isPrimitive(e) || i.isPrimitive(t)) return e === t;
if (n && Object.getPrototypeOf(e) !== Object.getPrototypeOf(t)) return !1;
var a = v(e),
o = v(t);
if (a && !o || !a && o) return !1;
if (a) return e = s.call(e), t = s.call(t), _(e, t, n);
var l, c, u = S(e),
d = S(t);
if (u.length !== d.length) return !1;
for (u.sort(), d.sort(), c = u.length - 1; c >= 0; c--)
if (u[c] !== d[c]) return !1;
for (c = u.length - 1; c >= 0; c--)
if (l = u[c], !_(e[l], t[l], n, r)) return !1;
return !0
}(e, t, n, o))
}
return n ? e === t : e == t
}
function v(e) {
return "[object Arguments]" == Object.prototype.toString.call(e)
}
function y(e, t) {
if (!e || !t) return !1;
if ("[object RegExp]" == Object.prototype.toString.call(t)) return t.test(e);
try {
if (e instanceof t) return !0
} catch (e) {}
return !Error.isPrototypeOf(t) && !0 === t.call({}, e)
}
function E(e, t, n, r) {
var a;
if ("function" != typeof t) throw new TypeError('"block" argument must be a function');
"string" == typeof n && (r = n, n = null), a = function(e) {
var t;
try {
e()
} catch (e) {
t = e
}
return t
}(t), r = (n && n.name ? " (" + n.name + ")." : ".") + (r ? " " + r : "."), e && !a && h(a, n, "Missing expected exception" + r);
var o = "string" == typeof r,
s = !e && i.isError(a),
l = !e && a && !n;
if ((s && o && y(a, n) || l) && h(a, n, "Got unwanted exception" + r), e && a && n && !y(a, n) || !e && a) throw a
}
d.AssertionError = function(e) {
var t;
this.name = "AssertionError", this.actual = e.actual, this.expected = e.expected, this.operator = e.operator, e.message ? (this.message = e.message, this.generatedMessage = !1) : (this.message = g(f((t = this).actual), 128) + " " + t.operator + " " + g(f(t.expected), 128), this.generatedMessage = !0);
var n = e.stackStartFunction || h;
if (Error.captureStackTrace) Error.captureStackTrace(this, n);
else {
var r = new Error;
if (r.stack) {
var a = r.stack,
i = m(n),
o = a.indexOf("\n" + i);
if (o >= 0) {
var s = a.indexOf("\n", o + 1);
a = a.substring(s + 1)
}
this.stack = a
}
}
}, i.inherits(d.AssertionError, Error), d.fail = h, d.ok = b, d.equal = function(e, t, n) {
e != t && h(e, t, n, "==", d.equal)
}, d.notEqual = function(e, t, n) {
e == t && h(e, t, n, "!=", d.notEqual)
}, d.deepEqual = function(e, t, n) {
_(e, t, !1) || h(e, t, n, "deepEqual", d.deepEqual)
}, d.deepStrictEqual = function(e, t, n) {
_(e, t, !0) || h(e, t, n, "deepStrictEqual", d.deepStrictEqual)
}, d.notDeepEqual = function(e, t, n) {
_(e, t, !1) && h(e, t, n, "notDeepEqual", d.notDeepEqual)
}, d.notDeepStrictEqual = function e(t, n, r) {
_(t, n, !0) && h(t, n, r, "notDeepStrictEqual", e)
}, d.strictEqual = function(e, t, n) {
e !== t && h(e, t, n, "===", d.strictEqual)
}, d.notStrictEqual = function(e, t, n) {
e === t && h(e, t, n, "!==", d.notStrictEqual)
}, d.throws = function(e, t, n) {
E(!0, e, t, n)
}, d.doesNotThrow = function(e, t, n) {
E(!1, e, t, n)
}, d.ifError = function(e) {
if (e) throw e
};
var S = Object.keys || function(e) {
var t = [];
for (var n in e) o.call(e, n) && t.push(n);
return t
}
}).call(t, n(0))
}, function(e, t) {
e.exports = function(e) {
return e && "object" == typeof e && "function" == typeof e.copy && "function" == typeof e.fill && "function" == typeof e.readUInt8
}
}, 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";
e.exports = function(e, t, n, a) {
t = t || "&", n = n || "=";
var i = {};
if ("string" != typeof e || 0 === e.length) return i;
var o = /\+/g;
e = e.split(t);
var s = 1e3;
a && "number" == typeof a.maxKeys && (s = a.maxKeys);
var l, c, u = e.length;
s > 0 && u > s && (u = s);
for (var d = 0; d < u; ++d) {
var p, m, g, f, h = e[d].replace(o, "%20"),
b = h.indexOf(n);
b >= 0 ? (p = h.substr(0, b), m = h.substr(b + 1)) : (p = h, m = ""), g = decodeURIComponent(p), f = decodeURIComponent(m), l = i, c = g, Object.prototype.hasOwnProperty.call(l, c) ? r(i[g]) ? i[g].push(f) : i[g] = [i[g], f] : i[g] = f
}
return i
};
var r = Array.isArray || function(e) {
return "[object Array]" === Object.prototype.toString.call(e)
}
}, function(e, t, n) {
"use strict";
var r = function(e) {
switch (typeof e) {
case "string":
return e;
case "boolean":
return e ? "true" : "false";
case "number":
return isFinite(e) ? e : "";
default:
return ""
}
};
e.exports = function(e, t, n, s) {
return t = t || "&", n = n || "=", null === e && (e = void 0), "object" == typeof e ? i(o(e), function(o) {
var s = encodeURIComponent(r(o)) + n;
return a(e[o]) ? i(e[o], function(e) {
return s + encodeURIComponent(r(e))
}).join(t) : s + encodeURIComponent(r(e[o]))
}).join(t) : s ? encodeURIComponent(r(s)) + n + encodeURIComponent(r(e)) : ""
};
var a = Array.isArray || function(e) {
return "[object Array]" === Object.prototype.toString.call(e)
};
function i(e, t) {
if (e.map) return e.map(t);
for (var n = [], r = 0; r < e.length; r++) n.push(t(e[r], r));
return n
}
var o = Object.keys || function(e) {
var t = [];
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.push(n);
return t
}
}, function(e, t, n) {
var r = n(30),
a = n(40),
i = e.exports;
for (var o in r) r.hasOwnProperty(o) && (i[o] = r[o]);
function s(e) {
if ("string" == typeof e && (e = a.parse(e)), e.protocol || (e.protocol = "https:"), "https:" !== e.protocol) throw new Error('Protocol "' + e.protocol + '" not supported. Expected "https:"');
return e
}
i.request = function(e, t) {
return e = s(e), r.request.call(this, e, t)
}, i.get = function(e, t) {
return e = s(e), r.get.call(this, e, t)
}
}, function(e, t, n) {
(function(t, r, a) {
var i = n(32),
o = n(7),
s = n(79),
l = n(33),
c = n(86),
u = s.IncomingMessage,
d = s.readyStates;
var p = e.exports = function(e) {
var n, r = this;
l.Writable.call(r), r._opts = e, r._body = [], r._headers = {}, e.auth && r.setHeader("Authorization", "Basic " + new t(e.auth).toString("base64")), Object.keys(e.headers).forEach(function(t) {
r.setHeader(t, e.headers[t])
});
var a, o, s = !0;
if ("disable-fetch" === e.mode || "timeout" in e) s = !1, n = !0;
else if ("prefer-streaming" === e.mode) n = !1;
else if ("allow-wrong-content-type" === e.mode) n = !i.overrideMimeType;
else {
if (e.mode && "default" !== e.mode && "prefer-fast" !== e.mode) throw new Error("Invalid value for opts.mode");
n = !0
}
r._mode = (a = n, o = s, i.fetch && o ? "fetch" : i.mozchunkedarraybuffer ? "moz-chunked-arraybuffer" : i.msstream ? "ms-stream" : i.arraybuffer && a ? "arraybuffer" : i.vbArray && a ? "text:vbarray" : "text"), r.on("finish", function() {
r._onFinish()
})
};
o(p, l.Writable), p.prototype.setHeader = function(e, t) {
var n = e.toLowerCase(); - 1 === m.indexOf(n) && (this._headers[n] = {
name: e,
value: t
})
}, p.prototype.getHeader = function(e) {
var t = this._headers[e.toLowerCase()];
return t ? t.value : null
}, p.prototype.removeHeader = function(e) {
delete this._headers[e.toLowerCase()]
}, p.prototype._onFinish = function() {
var e = this;
if (!e._destroyed) {
var n = e._opts,
o = e._headers,
s = null;
"GET" !== n.method && "HEAD" !== n.method && (s = i.blobConstructor ? new r.Blob(e._body.map(function(e) {
return c(e)
}), {
type: (o["content-type"] || {}).value || ""
}) : t.concat(e._body).toString());
var l = [];
if (Object.keys(o).forEach(function(e) {
var t = o[e].name,
n = o[e].value;
Array.isArray(n) ? n.forEach(function(e) {
l.push([t, e])
}) : l.push([t, n])
}), "fetch" === e._mode) r.fetch(e._opts.url, {
method: e._opts.method,
headers: l,
body: s || void 0,
mode: "cors",
credentials: n.withCredentials ? "include" : "same-origin"
}).then(function(t) {
e._fetchResponse = t, e._connect()
}, function(t) {
e.emit("error", t)
});
else {
var u = e._xhr = new r.XMLHttpRequest;
try {
u.open(e._opts.method, e._opts.url, !0)
} catch (t) {
return void a.nextTick(function() {
e.emit("error", t)
})
}
"responseType" in u && (u.responseType = e._mode.split(":")[0]), "withCredentials" in u && (u.withCredentials = !!n.withCredentials), "text" === e._mode && "overrideMimeType" in u && u.overrideMimeType("text/plain; charset=x-user-defined"), "timeout" in n && (u.timeout = n.timeout, u.ontimeout = function() {
e.emit("timeout")
}), l.forEach(function(e) {
u.setRequestHeader(e[0], e[1])
}), e._response = null, u.onreadystatechange = function() {
switch (u.readyState) {
case d.LOADING:
case d.DONE:
e._onXHRProgress()
}
}, "moz-chunked-arraybuffer" === e._mode && (u.onprogress = function() {
e._onXHRProgress()
}), u.onerror = function() {
e._destroyed || e.emit("error", new Error("XHR error"))
};
try {
u.send(s)
} catch (t) {
return void a.nextTick(function() {
e.emit("error", t)
})
}
}
}
}, p.prototype._onXHRProgress = function() {
(function(e) {
try {
var t = e.status;
return null !== t && 0 !== t
} catch (e) {
return !1
}
})(this._xhr) && !this._destroyed && (this._response || this._connect(), this._response._onXHRProgress())
}, p.prototype._connect = function() {
var e = this;
e._destroyed || (e._response = new u(e._xhr, e._fetchResponse, e._mode), e._response.on("error", function(t) {
e.emit("error", t)
}), e.emit("response", e._response))
}, p.prototype._write = function(e, t, n) {
this._body.push(e), n()
}, p.prototype.abort = p.prototype.destroy = function() {
this._destroyed = !0, this._response && (this._response._destroyed = !0), this._xhr && this._xhr.abort()
}, p.prototype.end = function(e, t, n) {
"function" == typeof e && (n = e, e = void 0), l.Writable.prototype.end.call(this, e, t, n)
}, p.prototype.flushHeaders = function() {}, p.prototype.setTimeout = function() {}, p.prototype.setNoDelay = function() {}, p.prototype.setSocketKeepAlive = function() {};
var m = ["accept-charset", "accept-encoding", "access-control-request-headers", "access-control-request-method", "connection", "content-length", "cookie", "cookie2", "date", "dnt", "expect", "host", "keep-alive", "origin", "referer", "te", "trailer", "transfer-encoding", "upgrade", "user-agent", "via"]
}).call(t, n(12).Buffer, n(0), n(6))
}, function(e, t, n) {
"use strict";
t.byteLength = function(e) {
return 3 * e.length / 4 - c(e)
}, t.toByteArray = function(e) {
var t, n, r, o, s, l = e.length;
o = c(e), s = new i(3 * l / 4 - o), n = o > 0 ? l - 4 : l;
var u = 0;
for (t = 0; t < n; t += 4) r = a[e.charCodeAt(t)] << 18 | a[e.charCodeAt(t + 1)] << 12 | a[e.charCodeAt(t + 2)] << 6 | a[e.charCodeAt(t + 3)], s[u++] = r >> 16 & 255, s[u++] = r >> 8 & 255, s[u++] = 255 & r;
2 === o ? (r = a[e.charCodeAt(t)] << 2 | a[e.charCodeAt(t + 1)] >> 4, s[u++] = 255 & r) : 1 === o && (r = a[e.charCodeAt(t)] << 10 | a[e.charCodeAt(t + 1)] << 4 | a[e.charCodeAt(t + 2)] >> 2, s[u++] = r >> 8 & 255, s[u++] = 255 & r);
return s
}, t.fromByteArray = function(e) {
for (var t, n = e.length, a = n % 3, i = "", o = [], s = 0, l = n - a; s < l; s += 16383) o.push(u(e, s, s + 16383 > l ? l : s + 16383));
1 === a ? (t = e[n - 1], i += r[t >> 2], i += r[t << 4 & 63], i += "==") : 2 === a && (t = (e[n - 2] << 8) + e[n - 1], i += r[t >> 10], i += r[t >> 4 & 63], i += r[t << 2 & 63], i += "=");
return o.push(i), o.join("")
};
for (var r = [], a = [], i = "undefined" != typeof Uint8Array ? Uint8Array : Array, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, l = o.length; s < l; ++s) r[s] = o[s], a[o.charCodeAt(s)] = s;
function c(e) {
var t = e.length;
if (t % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
return "=" === e[t - 2] ? 2 : "=" === e[t - 1] ? 1 : 0
}
function u(e, t, n) {
for (var a, i, o = [], s = t; s < n; s += 3) a = (e[s] << 16) + (e[s + 1] << 8) + e[s + 2], o.push(r[(i = a) >> 18 & 63] + r[i >> 12 & 63] + r[i >> 6 & 63] + r[63 & i]);
return o.join("")
}
a["-".charCodeAt(0)] = 62, a["_".charCodeAt(0)] = 63
}, function(e, t) {
t.read = function(e, t, n, r, a) {
var i, o, s = 8 * a - r - 1,
l = (1 << s) - 1,
c = l >> 1,
u = -7,
d = n ? a - 1 : 0,
p = n ? -1 : 1,
m = e[t + d];
for (d += p, i = m & (1 << -u) - 1, m >>= -u, u += s; u > 0; i = 256 * i + e[t + d], d += p, u -= 8);
for (o = i & (1 << -u) - 1, i >>= -u, u += r; u > 0; o = 256 * o + e[t + d], d += p, u -= 8);
if (0 === i) i = 1 - c;
else {
if (i === l) return o ? NaN : 1 / 0 * (m ? -1 : 1);
o += Math.pow(2, r), i -= c
}
return (m ? -1 : 1) * o * Math.pow(2, i - r)
}, t.write = function(e, t, n, r, a, i) {
var o, s, l, c = 8 * i - a - 1,
u = (1 << c) - 1,
d = u >> 1,
p = 23 === a ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
m = r ? 0 : i - 1,
g = r ? 1 : -1,
f = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0;
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, o = u) : (o = Math.floor(Math.log(t) / Math.LN2), t * (l = Math.pow(2, -o)) < 1 && (o--, l *= 2), (t += o + d >= 1 ? p / l : p * Math.pow(2, 1 - d)) * l >= 2 && (o++, l /= 2), o + d >= u ? (s = 0, o = u) : o + d >= 1 ? (s = (t * l - 1) * Math.pow(2, a), o += d) : (s = t * Math.pow(2, d - 1) * Math.pow(2, a), o = 0)); a >= 8; e[n + m] = 255 & s, m += g, s /= 256, a -= 8);
for (o = o << a | s, c += a; c > 0; e[n + m] = 255 & o, m += g, o /= 256, c -= 8);
e[n + m - g] |= 128 * f
}
}, function(e, t, n) {
(function(e, r, a) {
var i = n(32),
o = n(7),
s = n(33),
l = t.readyStates = {
UNSENT: 0,
OPENED: 1,
HEADERS_RECEIVED: 2,
LOADING: 3,
DONE: 4
},
c = t.IncomingMessage = function(t, n, a) {
var o = this;
if (s.Readable.call(o), o._mode = a, o.headers = {}, o.rawHeaders = [], o.trailers = {}, o.rawTrailers = [], o.on("end", function() {
e.nextTick(function() {
o.emit("close")
})
}), "fetch" === a) {
o._fetchResponse = n, o.url = n.url, o.statusCode = n.status, o.statusMessage = n.statusText, n.headers.forEach(function(e, t) {
o.headers[t.toLowerCase()] = e, o.rawHeaders.push(t, e)
});
var l = n.body.getReader();
! function e() {
l.read().then(function(t) {
o._destroyed || (t.done ? o.push(null) : (o.push(new r(t.value)), e()))
}).catch(function(e) {
o.emit("error", e)
})
}()
} else {
if (o._xhr = t, o._pos = 0, o.url = t.responseURL, o.statusCode = t.status, o.statusMessage = t.statusText, t.getAllResponseHeaders().split(/\r?\n/).forEach(function(e) {
var t = e.match(/^([^:]+):\s*(.*)/);
if (t) {
var n = t[1].toLowerCase();
"set-cookie" === n ? (void 0 === o.headers[n] && (o.headers[n] = []), o.headers[n].push(t[2])) : void 0 !== o.headers[n] ? o.headers[n] += ", " + t[2] : o.headers[n] = t[2], o.rawHeaders.push(t[1], t[2])
}
}), o._charset = "x-user-defined", !i.overrideMimeType) {
var c = o.rawHeaders["mime-type"];
if (c) {
var u = c.match(/;\s*charset=([^;])(;|$)/);
u && (o._charset = u[1].toLowerCase())
}
o._charset || (o._charset = "utf-8")
}
}
};
o(c, s.Readable), c.prototype._read = function() {}, c.prototype._onXHRProgress = function() {
var e = this,
t = e._xhr,
n = null;
switch (e._mode) {
case "text:vbarray":
if (t.readyState !== l.DONE) break;
try {
n = new a.VBArray(t.responseBody).toArray()
} catch (e) {}
if (null !== n) {
e.push(new r(n));
break
}
case "text":
try {
n = t.responseText
} catch (t) {
e._mode = "text:vbarray";
break
}
if (n.length > e._pos) {
var i = n.substr(e._pos);
if ("x-user-defined" === e._charset) {
for (var o = new r(i.length), s = 0; s < i.length; s++) o[s] = 255 & i.charCodeAt(s);
e.push(o)
} else e.push(i, e._charset);
e._pos = n.length
}
break;
case "arraybuffer":
if (t.readyState !== l.DONE || !t.response) break;
n = t.response, e.push(new r(new Uint8Array(n)));
break;
case "moz-chunked-arraybuffer":
if (n = t.response, t.readyState !== l.LOADING || !n) break;
e.push(new r(new Uint8Array(n)));
break;
case "ms-stream":
if (n = t.response, t.readyState !== l.LOADING) break;
var c = new a.MSStreamReader;
c.onprogress = function() {
c.result.byteLength > e._pos && (e.push(new r(new Uint8Array(c.result.slice(e._pos)))), e._pos = c.result.byteLength)
}, c.onload = function() {
e.push(null)
}, c.readAsArrayBuffer(n)
}
e._xhr.readyState === l.DONE && "ms-stream" !== e._mode && e.push(null)
}
}).call(t, n(6), n(12).Buffer, n(0))
}, function(e, t) {}, function(e, t, n) {
"use strict";
var r = n(17).Buffer;
e.exports = function() {
function e() {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.head = null, this.tail = null, this.length = 0
}
return e.prototype.push = function(e) {
var t = {
data: e,
next: null
};
this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length
}, e.prototype.unshift = function(e) {
var t = {
data: e,
next: this.head
};
0 === this.length && (this.tail = t), this.head = t, ++this.length
}, e.prototype.shift = function() {
if (0 !== this.length) {
var e = this.head.data;
return 1 === this.length ? this.head = this.tail = null : this.head = this.head.next, --this.length, e
}
}, e.prototype.clear = function() {
this.head = this.tail = null, this.length = 0
}, e.prototype.join = function(e) {
if (0 === this.length) return "";
for (var t = this.head, n = "" + t.data; t = t.next;) n += e + t.data;
return n
}, e.prototype.concat = function(e) {
if (0 === this.length) return r.alloc(0);
if (1 === this.length) return this.head.data;
for (var t, n, a, i = r.allocUnsafe(e >>> 0), o = this.head, s = 0; o;) t = o.data, n = i, a = s, t.copy(n, a), s += o.data.length, o = o.next;
return i
}, e
}()
}, function(e, t, n) {
var r = Function.prototype.apply;
function a(e, t) {
this._id = e, this._clearFn = t
}
t.setTimeout = function() {
return new a(r.call(setTimeout, window, arguments), clearTimeout)
}, t.setInterval = function() {
return new a(r.call(setInterval, window, arguments), clearInterval)
}, t.clearTimeout = t.clearInterval = function(e) {
e && e.close()
}, a.prototype.unref = a.prototype.ref = function() {}, a.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(83), t.setImmediate = setImmediate, t.clearImmediate = clearImmediate
}, function(e, t, n) {
(function(e, t) {
! function(e, n) {
"use strict";
if (!e.setImmediate) {
var r, a, i, o, s, l = 1,
c = {},
u = !1,
d = e.document,
p = Object.getPrototypeOf && Object.getPrototypeOf(e);
p = p && p.setTimeout ? p : e, "[object process]" === {}.toString.call(e.process) ? r = function(e) {
t.nextTick(function() {
g(e)
})
} : ! function() {
if (e.postMessage && !e.importScripts) {
var t = !0,
n = e.onmessage;
return e.onmessage = function() {
t = !1
}, e.postMessage("", "*"), e.onmessage = n, t
}
}() ? e.MessageChannel ? ((i = new MessageChannel).port1.onmessage = function(e) {
g(e.data)
}, r = function(e) {
i.port2.postMessage(e)
}) : d && "onreadystatechange" in d.createElement("script") ? (a = d.documentElement, r = function(e) {
var t = d.createElement("script");
t.onreadystatechange = function() {
g(e), t.onreadystatechange = null, a.removeChild(t), t = null
}, a.appendChild(t)
}) : r = function(e) {
setTimeout(g, 0, e)
} : (o = "setImmediate$" + Math.random() + "$", s = function(t) {
t.source === e && "string" == typeof t.data && 0 === t.data.indexOf(o) && g(+t.data.slice(o.length))
}, e.addEventListener ? e.addEventListener("message", s, !1) : e.attachEvent("onmessage", s), r = function(t) {
e.postMessage(o + t, "*")
}), p.setImmediate = function(e) {
"function" != typeof e && (e = new Function("" + e));
for (var t = new Array(arguments.length - 1), n = 0; n < t.length; n++) t[n] = arguments[n + 1];
var a = {
callback: e,
args: t
};
return c[l] = a, r(l), l++
}, p.clearImmediate = m
}
function m(e) {
delete c[e]
}
function g(e) {
if (u) setTimeout(g, 0, e);
else {
var t = c[e];
if (t) {
u = !0;
try {
! function(e) {
var t = e.callback,
r = e.args;
switch (r.length) {
case 0:
t();
break;
case 1:
t(r[0]);
break;
case 2:
t(r[0], r[1]);
break;
case 3:
t(r[0], r[1], r[2]);
break;
default:
t.apply(n, r)
}
}(t)
} finally {
m(e), u = !1
}
}
}
}
}("undefined" == typeof self ? void 0 === e ? this : e : self)
}).call(t, n(0), n(6))
}, function(e, t, n) {
(function(t) {
function n(e) {
try {
if (!t.localStorage) return !1
} catch (e) {
return !1
}
var n = t.localStorage[e];
return null != n && "true" === String(n).toLowerCase()
}
e.exports = function(e, t) {
if (n("noDeprecation")) return e;
var r = !1;
return function() {
if (!r) {
if (n("throwDeprecation")) throw new Error(t);
n("traceDeprecation") ? console.trace(t) : console.warn(t), r = !0
}
return e.apply(this, arguments)
}
}
}).call(t, n(0))
}, function(e, t, n) {
"use strict";
e.exports = i;
var r = n(39),
a = n(13);
function i(e) {
if (!(this instanceof i)) return new i(e);
r.call(this, e)
}
a.inherits = n(7), a.inherits(i, r), i.prototype._transform = function(e, t, n) {
n(null, e)
}
}, function(e, t, n) {
var r = n(12).Buffer;
e.exports = function(e) {
if (e instanceof Uint8Array) {
if (0 === e.byteOffset && e.byteLength === e.buffer.byteLength) return e.buffer;
if ("function" == typeof e.buffer.slice) return e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength)
}
if (r.isBuffer(e)) {
for (var t = new Uint8Array(e.length), n = e.length, a = 0; a < n; a++) t[a] = e[a];
return t.buffer
}
throw new Error("Argument must be a Buffer")
}
}, function(e, t) {
e.exports = function() {
for (var e = {}, t = 0; t < arguments.length; t++) {
var r = arguments[t];
for (var a in r) n.call(r, a) && (e[a] = r[a])
}
return e
};
var n = Object.prototype.hasOwnProperty
}, function(e, t) {
e.exports = {
100: "Continue",
101: "Switching Protocols",
102: "Processing",
200: "OK",
201: "Created",
202: "Accepted",
203: "Non-Authoritative Information",
204: "No Content",
205: "Reset Content",
206: "Partial Content",
207: "Multi-Status",
208: "Already Reported",
226: "IM Used",
300: "Multiple Choices",
301: "Moved Permanently",
302: "Found",
303: "See Other",
304: "Not Modified",
305: "Use Proxy",
307: "Temporary Redirect",
308: "Permanent Redirect",
400: "Bad Request",
401: "Unauthorized",
402: "Payment Required",
403: "Forbidden",
404: "Not Found",
405: "Method Not Allowed",
406: "Not Acceptable",
407: "Proxy Authentication Required",
408: "Request Timeout",
409: "Conflict",
410: "Gone",
411: "Length Required",
412: "Precondition Failed",
413: "Payload Too Large",
414: "URI Too Long",
415: "Unsupported Media Type",
416: "Range Not Satisfiable",
417: "Expectation Failed",
418: "I'm a teapot",
421: "Misdirected Request",
422: "Unprocessable Entity",
423: "Locked",
424: "Failed Dependency",
425: "Unordered Collection",
426: "Upgrade Required",
428: "Precondition Required",
429: "Too Many Requests",
431: "Request Header Fields Too Large",
451: "Unavailable For Legal Reasons",
500: "Internal Server Error",
501: "Not Implemented",
502: "Bad Gateway",
503: "Service Unavailable",
504: "Gateway Timeout",
505: "HTTP Version Not Supported",
506: "Variant Also Negotiates",
507: "Insufficient Storage",
508: "Loop Detected",
509: "Bandwidth Limit Exceeded",
510: "Not Extended",
511: "Network Authentication Required"
}
}, function(e, t, n) {
(function(e, r) {
var a;
! function(i) {
"object" == typeof t && t && t.nodeType, "object" == typeof e && e && e.nodeType;
var o = "object" == typeof r && r;
o.global !== o && o.window !== o && o.self;
var s, l = 2147483647,
c = 36,
u = 1,
d = 26,
p = 38,
m = 700,
g = 72,
f = 128,
h = "-",
b = /^xn--/,
_ = /[^\x20-\x7E]/,
v = /[\x2E\u3002\uFF0E\uFF61]/g,
y = {
overflow: "Overflow: input needs wider integers to process",
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
"invalid-input": "Invalid input"
},
E = c - u,
S = Math.floor,
x = String.fromCharCode;
function w(e) {
throw new RangeError(y[e])
}
function C(e, t) {
for (var n = e.length, r = []; n--;) r[n] = t(e[n]);
return r
}
function T(e, t) {
var n = e.split("@"),
r = "";
return n.length > 1 && (r = n[0] + "@", e = n[1]), r + C((e = e.replace(v, ".")).split("."), t).join(".")
}
function N(e) {
for (var t, n, r = [], a = 0, i = e.length; a < i;)(t = e.charCodeAt(a++)) >= 55296 && t <= 56319 && a < i ? 56320 == (64512 & (n = e.charCodeAt(a++))) ? r.push(((1023 & t) << 10) + (1023 & n) + 65536) : (r.push(t), a--) : r.push(t);
return r
}
function O(e) {
return C(e, function(e) {
var t = "";
return e > 65535 && (t += x((e -= 65536) >>> 10 & 1023 | 55296), e = 56320 | 1023 & e), t += x(e)
}).join("")
}
function M(e, t) {
return e + 22 + 75 * (e < 26) - ((0 != t) << 5)
}
function D(e, t, n) {
var r = 0;
for (e = n ? S(e / m) : e >> 1, e += S(e / t); e > E * d >> 1; r += c) e = S(e / E);
return S(r + (E + 1) * e / (e + p))
}
function A(e) {
var t, n, r, a, i, o, s, p, m, b, _, v = [],
y = e.length,
E = 0,
x = f,
C = g;
for ((n = e.lastIndexOf(h)) < 0 && (n = 0), r = 0; r < n; ++r) e.charCodeAt(r) >= 128 && w("not-basic"), v.push(e.charCodeAt(r));
for (a = n > 0 ? n + 1 : 0; a < y;) {
for (i = E, o = 1, s = c; a >= y && w("invalid-input"), ((p = (_ = e.charCodeAt(a++)) - 48 < 10 ? _ - 22 : _ - 65 < 26 ? _ - 65 : _ - 97 < 26 ? _ - 97 : c) >= c || p > S((l - E) / o)) && w("overflow"), E += p * o, !(p < (m = s <= C ? u : s >= C + d ? d : s - C)); s += c) o > S(l / (b = c - m)) && w("overflow"), o *= b;
C = D(E - i, t = v.length + 1, 0 == i), S(E / t) > l - x && w("overflow"), x += S(E / t), E %= t, v.splice(E++, 0, x)
}
return O(v)
}
function k(e) {
var t, n, r, a, i, o, s, p, m, b, _, v, y, E, C, T = [];
for (v = (e = N(e)).length, t = f, n = 0, i = g, o = 0; o < v; ++o)(_ = e[o]) < 128 && T.push(x(_));
for (r = a = T.length, a && T.push(h); r < v;) {
for (s = l, o = 0; o < v; ++o)(_ = e[o]) >= t && _ < s && (s = _);
for (s - t > S((l - n) / (y = r + 1)) && w("overflow"), n += (s - t) * y, t = s, o = 0; o < v; ++o)
if ((_ = e[o]) < t && ++n > l && w("overflow"), _ == t) {
for (p = n, m = c; !(p < (b = m <= i ? u : m >= i + d ? d : m - i)); m += c) C = p - b, E = c - b, T.push(x(M(b + C % E, 0))), p = S(C / E);
T.push(x(M(p, 0))), i = D(n, y, r == a), n = 0, ++r
}++n, ++t
}
return T.join("")
}
s = {
version: "1.4.1",
ucs2: {
decode: N,
encode: O
},
decode: A,
encode: k,
toASCII: function(e) {
return T(e, function(e) {
return _.test(e) ? "xn--" + k(e) : e
})
},
toUnicode: function(e) {
return T(e, function(e) {
return b.test(e) ? A(e.slice(4).toLowerCase()) : e
})
}
}, void 0 === (a = function() {
return s
}.call(t, n, t, e)) || (e.exports = a)
}()
}).call(t, n(41)(e), n(0))
}, function(e, t, n) {
"use strict";
e.exports = {
isString: function(e) {
return "string" == typeof e
},
isObject: function(e) {
return "object" == typeof e && null !== e
},
isNull: function(e) {
return null === e
},
isNullOrUndefined: function(e) {
return null == e
}
}
}, function(e, t, n) {
"use strict";
var r = n(1),
a = (n.n(r), n(92)),
i = n(121),
o = n(133),
s = n(135),
l = n(320);
function c(e, t) {
for (var n = e.length; n--;)
if (e[n] === t) return !0;
return !1
}
t.a = class extends r.Component {
constructor() {
super(...arguments), this.state = this.props.api.state, this.classes = this.props.api.state.classes, this.postMessage = this.props.api.postMessage, this.transition = this.props.api.transition, this.eventListeners = this.props.api.eventListeners, this.allEventListeners = this.props.api.allEventListeners, this.event = this.props.api.event.bind(this), this.crateEvent = this.props.api.crateEvent.bind(this)
}
componentDidMount() {
window.addEventListener("message", ({
data: e
}) => this.listener(e), !1)
}
render() {
let {
classes: e
} = this.state, t = this.state.config, {
api: n
} = this.props;
return e ? r.createElement("div", {
className: `crate ${e.crate}`
}, !c(t.disable, "embed") && r.createElement(a.a, {
view: this.state.view,
event: n.event.bind(this),
config: this.state.config,
setIframe: e => this.state.iframe = e
}), !c(t.disable, "toggle") && r.createElement(o.a, {
view: this.state.view,
event: n.event.bind(this),
config: this.state.config,
toggle: n.toggle.bind(this),
notifications: this.state.notifications
}), !c(t.disable, "toasts") && t.notifications.toasts.enable && !this.state.view.open && r.createElement(s.a, {
view: this.state.view,
event: n.event.bind(this),
config: this.state.config,
openUser: n.user.bind(this),
expand: n.expandMessage.bind(this),
messages: this.state.notifications.messages,
crateEvent: n.crateEvent.bind(this)
}), !c(t.disable, "modal") && r.createElement(i.a, {
view: this.state.view,
event: n.event.bind(this),
modal: this.state.modal,
config: this.state.config,
toggle: n.modal.bind(this)
}), !c(t.disable, "toggle") && null !== this.state.l && 2 !== this.state.l && r.createElement(l.a, {
view: this.state.view,
event: n.event.bind(this),
transparent: 1 === this.state.l,
config: this.state.config
})) : r.createElement("div", null)
}
listener(e) {
let {
api: t
} = this.props, {
track: n
} = window.globalCrate;
if ("object" == typeof e && "WidgetBot" === e.src && e.session === this.state.session) {
let {
event: r,
type: a,
data: i
} = e, {
config: o
} = this.state, {
toasts: s,
indicator: l
} = this.state.config.notifications;
if ("message:new" === r && !this.state.view.open) {
let e = i,
{
unread: n,
pinged: r,
messages: a
} = this.state.notifications;
l.enable && (this.state.view.open || n++, (e.mentions.everyone || e.pinged) && (r = !0)), s.enable && (a.unshift({
expiration: !!s.visibilityTime && +new Date + 1e3 * s.visibilityTime,
message: e
}), a = a.slice(0, this.state.config.notifications.toasts.maxMessages), t.event({
category: "Toast",
action: "Show"
})), this.setState({
notifications: {
pinged: r,
unread: n,
messages: a
}
}), this.crateEvent("message", e)
}
if ("modal" === r && (document.activeElement.blur(), this.setState({
view: Object.assign({}, this.state.view, {
modalOpen: !0
}),
modal: {
type: a,
data: i
}
}), "user" === a && t.event({
category: "User popup",
action: "Open"
}), "image" === a && t.event({
category: "Image",
action: "Open",
content: {
name: "modal-image",
path: i
}
})), "loading:success" === r) {
this.setState({
view: Object.assign({}, this.state.view, {
loading: !1
}),
l: o.debug ? 0 : i[2]
}), this.crateEvent("widget-loaded");
let e = (() => {
switch (this.state.l) {
case 2:
return "Ultimate";
case 1:
return "Supporter";
case 0:
return "Free";
case null:
return "Not set"
}
})();
n({
_id: this.state.session,
action_name: "Widget loaded",
cvar: JSON.stringify({
1: ["Patreon level", e]
})
})
}
}
}
setState(e) {
let {
api: t
} = this.props;
t.setState(e)
}
}
}, function(e, t, n) {
"use strict";
var r = n(1),
a = (n.n(r), n(93));
t.a = class extends r.Component {
constructor() {
super(...arguments), this.state = {
block: !1,
opacity: !0
}
}
componentWillMount() {
let {
config: e,
view: t
} = this.props;
this.classes = Object(a.a)(e), this.setState({
block: t.open,
opacity: t.open
})
}
componentWillReceiveProps(e) {
let {
view: t
} = e;
t.open === this.state.block && t.open === this.state.opacity || (clearTimeout(this.timeout), !0 === t.open ? (this.setState({
block: !0
}), setTimeout(() => {
this.setState({
opacity: !0
})
}, 0)) : (this.setState({
opacity: !1
}), this.timeout = setTimeout(() => {
this.setState({
block: !1
})
}, 250))), e && JSON.stringify(e.config) !== JSON.stringify(this.props.config) && (this.classes = Object(a.a)(e.config), this.forceUpdate())
}
render() {
let {
view: e,
config: t
} = this.props, {
classes: n
} = this;
return r.createElement("div", {
className: `crate-popup ${n.popup} ${this.state.block?n["popup-block"]:""} ${this.state.opacity?n["popup-open"]:""}`
}, e.loading && r.createElement("svg", {
className: n["loading-svg"]
}, r.createElement("path", {
fill: "dark" === t.scheme ? "#7289da" : "#FFFFFF",
d: "M231.857 268.344l44.317 45.268-47.03 46.043-44.318-45.267z"
}), r.createElement("path", {
fill: "dark" === t.scheme ? "#7289da" : "#FFFFFF",
d: "M77.5 104h306v210h-306z"
}), r.createElement("path", {
d: "M376.926 84.533H84.074C71.884 84.533 62 95.063 62 108.052V305.61c0 12.989 9.883 23.519 22.074 23.519h97.2l32.333 40.956c4.194 5.313 10.377 8.381 16.894 8.381 6.516 0 12.699-3.067 16.893-8.38l32.333-40.956h97.199c12.191 0 22.074-10.53 22.074-23.52V108.054c0-12.99-9.883-23.52-22.074-23.52zm0 221.077H269.449L230.5 354.946l-38.948-49.336H84.074V108.052h292.852V305.61z",
fill: "dark" === t.scheme ? "#FFFFFF" : "#7289da"
}), r.createElement("path", {
d: "M124.84 175.054h100.805c6.096 0 11.037-5.265 11.037-11.76s-4.941-11.759-11.037-11.759H124.84c-6.095 0-11.037 5.265-11.037 11.76s4.942 11.759 11.037 11.759zM114.242 235.419c0 6.494 4.942 11.76 11.037 11.76h210.442c6.095 0 11.037-5.266 11.037-11.76s-4.942-11.76-11.037-11.76H125.279c-6.095 0-11.037 5.266-11.037 11.76z",
fill: "dark" === t.scheme ? "#FFFFFF" : "#7289da"
})), e.opened && r.createElement("iframe", {
className: n.iframe,
src: t.url,
ref: e => this.props.setIframe(e)
}))
}
}
}, function(e, t, n) {
"use strict";
var r = n(3),
a = n.n(r),
i = n(4),
o = n.n(i),
s = n(5),
l = n.n(s),
c = n(11),
u = n.n(c);
n(2);
a.a.use(o()(), l()(), u()()), t.a = (e => {
const t = {
popup: {
top: "0 !important",
bottom: "0 !important",
left: "0 !important",
right: "0 !important",
height: "initial !important",
maxHeight: "initial !important",
width: "100% !important",
maxWidth: "initial !important",
borderRadius: "0 !important"
},
iframe: {
borderRadius: "0 !important"
}
},
n = {
popup: {
zIndex: "2147483000 !important",
position: "fixed !important",
[e.position.x]: "20px !important",
height: "calc(100% - 20px - 75px - 20px) !important",
[e.position.y]: "calc(20px + 75px) !important",
backgroundColor: `${"dark"===e.scheme?"#36393E":"#FFFFFF"} !important`,
width: "370px !important",
minHeight: "250px !important",
maxHeight: "590px !important",
borderRadius: "8px !important",
overflow: "hidden !important",
opacity: "0 !important",
pointerEvents: "none",
transition: "opacity .2s ease, transform .1s ease",
transform: "translate(0, 5px) !important",
WebkitTouchCallout: "none !important",
WebkitUserSelect: "none !important",
KhtmlUserSelect: "none !important",
MozUserSelect: "none !important",
MsUserSelect: "none !important",
userSelect: "none !important",
display: "none !important"
},
"popup-block": {
display: "block !important"
},
"popup-open": {
boxShadow: "0 5px 40px rgba(0,0,0,0.3) !important",
opacity: "1 !important",
pointerEvents: "initial !important",
transform: "translate(0) !important"
},
iframe: {
position: "absolute !important",
borderRadius: "8px !important",
top: "0 !important",
left: "0 !important",
width: "100% !important",
height: "100% !important",
border: "0 !important"
},
"loading-svg": {
position: "absolute !important",
width: "458px !important",
height: "458px !important",
top: "50% !important",
left: "50% !important",
transform: "translate(-50%, -50%) scale(0.6) !important"
},
[`@media screen and (max-width: ${e.mobile.maxWidth}px)`]: Object.assign({}, t),
[`@media screen and (max-height: ${e.mobile.maxHeight}px)`]: Object.assign({}, t)
};
return a.a.createStyleSheet(n).attach().classes
})
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
};
t.default = function(e) {
return function e(t) {
var n = null;
for (var a in t) {
var i = t[a],
o = void 0 === i ? "undefined" : r(i);
if ("function" === o) n || (n = {}), n[a] = i;
else if ("object" === o && null !== i && !Array.isArray(i)) {
var s = e(i);
s && (n || (n = {}), n[a] = s)
}
}
return n
}(e)
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r, a = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
i = n(8),
o = (r = i) && r.__esModule ? r : {
default: r
};
var s = function() {
function e() {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.sheets = [], this.refs = [], this.keys = []
}
return a(e, [{
key: "get",
value: function(e) {
var t = this.keys.indexOf(e);
return this.sheets[t]
}
}, {
key: "add",
value: function(e, t) {
var n = this.sheets,
r = this.refs,
a = this.keys,
i = n.indexOf(t);
return -1 !== i ? i : (n.push(t), r.push(0), a.push(e), n.length - 1)
}
}, {
key: "manage",
value: function(e) {
var t = this.keys.indexOf(e),
n = this.sheets[t];
return 0 === this.refs[t] && n.attach(), this.refs[t]++, this.keys[t] || this.keys.splice(t, 0, e), n
}
}, {
key: "unmanage",
value: function(e) {
var t = this.keys.indexOf(e); - 1 !== t ? this.refs[t] > 0 && (this.refs[t]--, 0 === this.refs[t] && this.sheets[t].detach()) : (0, o.default)(!1, "SheetsManager: can't find sheet to unmanage")
}
}, {
key: "size",
get: function() {
return this.keys.length
}
}]), e
}();
t.default = s
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
};
t.default = function e(t) {
if (null == t) return t;
var n = void 0 === t ? "undefined" : r(t);
if ("string" === n || "number" === n || "function" === n) return t;
if (s(t)) return t.map(e);
if ((0, o.default)(t)) return t;
var a = {};
for (var i in t) {
var l = t[i];
"object" !== (void 0 === l ? "undefined" : r(l)) ? a[i] = l: a[i] = e(l)
}
return a
};
var a, i = n(43),
o = (a = i) && a.__esModule ? a : {
default: a
};
var s = Array.isArray
}, function(e, t, n) {
e.exports = n(98)
}, function(e, t, n) {
"use strict";
(function(e, r) {
Object.defineProperty(t, "__esModule", {
value: !0
});
var a, i, o = n(99),
s = (a = o) && a.__esModule ? a : {
default: a
};
i = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== e ? e : r;
var l = (0, s.default)(i);
t.default = l
}).call(t, n(0), n(41)(e))
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = function(e) {
var t, n = e.Symbol;
"function" == typeof n ? n.observable ? t = n.observable : (t = n("observable"), n.observable = t) : t = "@@observable";
return t
}
}, function(e, t, n) {
"use strict";
(function(e) {
Object.defineProperty(t, "__esModule", {
value: !0
});
e.CSS;
t.default = function(e) {
return e
}
}).call(t, n(0))
}, function(e, t, n) {
"use strict";
(function(e) {
Object.defineProperty(t, "__esModule", {
value: !0
});
var n = "2f1acc6c3a606b082e5eef5e54414ffb";
null == e[n] && (e[n] = 0), t.default = e[n]++
}).call(t, n(0))
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
},
a = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
},
i = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
o = _(n(103)),
s = _(n(46)),
l = _(n(104)),
c = _(n(105)),
u = _(n(111)),
d = _(n(112)),
p = _(n(23)),
m = _(n(10)),
g = _(n(45)),
f = _(n(19)),
h = _(n(114)),
b = _(n(115));
function _(e) {
return e && e.__esModule ? e : {
default: e
}
}
var v = c.default.concat([u.default, d.default]),
y = 0,
E = function() {
function e(t) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.id = y++, this.version = "9.5.1", this.plugins = new l.default, this.options = {
createGenerateClassName: g.default,
Renderer: o.default ? h.default : b.default,
plugins: []
}, this.generateClassName = (0, g.default)(), this.use.apply(this, v), this.setup(t)
}
return i(e, [{
key: "setup",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return e.createGenerateClassName && (this.options.createGenerateClassName = e.createGenerateClassName, this.generateClassName = e.createGenerateClassName()), null != e.insertionPoint && (this.options.insertionPoint = e.insertionPoint), (e.virtual || e.Renderer) && (this.options.Renderer = e.Renderer || (e.virtual ? b.default : h.default)), e.plugins && this.use.apply(this, e.plugins), this
}
}, {
key: "createStyleSheet",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
n = t.index;
"number" != typeof n && (n = 0 === p.default.index ? 0 : p.default.index + 1);
var r = new s.default(e, a({}, t, {
jss: this,
generateClassName: t.generateClassName || this.generateClassName,
insertionPoint: this.options.insertionPoint,
Renderer: this.options.Renderer,
index: n
}));
return this.plugins.onProcessSheet(r), r
}
}, {
key: "removeStyleSheet",
value: function(e) {
return e.detach(), p.default.remove(e), this
}
}, {
key: "createRule",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
"object" === (void 0 === e ? "undefined" : r(e)) && (n = t, t = e, e = void 0);
var a = n;
a.jss = this, a.Renderer = this.options.Renderer, a.generateClassName || (a.generateClassName = this.generateClassName), a.classes || (a.classes = {});
var i = (0, f.default)(e, t, a);
return !a.selector && i instanceof m.default && (i.selector = "." + a.generateClassName(i)), this.plugins.onProcessRule(i), i
}
}, {
key: "use",
value: function() {
for (var e = this, t = arguments.length, n = Array(t), r = 0; r < t; r++) n[r] = arguments[r];
return n.forEach(function(t) {
-1 === e.options.plugins.indexOf(t) && (e.options.plugins.push(t), e.plugins.use(t))
}), this
}
}]), e
}();
t.default = E
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), n.d(t, "isBrowser", function() {
return a
});
var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
},
a = "object" === ("undefined" == typeof window ? "undefined" : r(window)) && "object" === ("undefined" == typeof document ? "undefined" : r(document)) && 9 === document.nodeType;
t.default = a
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r, a = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
i = n(8),
o = (r = i) && r.__esModule ? r : {
default: r
};
var s = function() {
function e() {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.hooks = {
onCreateRule: [],
onProcessRule: [],
onProcessStyle: [],
onProcessSheet: [],
onChangeValue: [],
onUpdate: []
}
}
return a(e, [{
key: "onCreateRule",
value: function(e, t, n) {
for (var r = 0; r < this.hooks.onCreateRule.length; r++) {
var a = this.hooks.onCreateRule[r](e, t, n);
if (a) return a
}
return null
}
}, {
key: "onProcessRule",
value: function(e) {
if (!e.isProcessed) {
for (var t = e.options.sheet, n = 0; n < this.hooks.onProcessRule.length; n++) this.hooks.onProcessRule[n](e, t);
e.style && this.onProcessStyle(e.style, e, t), e.isProcessed = !0
}
}
}, {
key: "onProcessStyle",
value: function(e, t, n) {
for (var r = e, a = 0; a < this.hooks.onProcessStyle.length; a++) r = this.hooks.onProcessStyle[a](r, t, n), t.style = r
}
}, {
key: "onProcessSheet",
value: function(e) {
for (var t = 0; t < this.hooks.onProcessSheet.length; t++) this.hooks.onProcessSheet[t](e)
}
}, {
key: "onUpdate",
value: function(e, t, n) {
for (var r = 0; r < this.hooks.onUpdate.length; r++) this.hooks.onUpdate[r](e, t, n)
}
}, {
key: "onChangeValue",
value: function(e, t, n) {
for (var r = e, a = 0; a < this.hooks.onChangeValue.length; a++) r = this.hooks.onChangeValue[a](r, t, n);
return r
}
}, {
key: "use",
value: function(e) {
for (var t in e) this.hooks[t] ? this.hooks[t].push(e[t]) : (0, o.default)(!1, '[JSS] Unknown hook "%s".', t)
}
}]), e
}();
t.default = s
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = l(n(106)),
a = l(n(107)),
i = l(n(108)),
o = l(n(109)),
s = l(n(110));
function l(e) {
return e && e.__esModule ? e : {
default: e
}
}
var c = {
"@charset": r.default,
"@import": r.default,
"@namespace": r.default,
"@keyframes": a.default,
"@media": i.default,
"@supports": i.default,
"@font-face": o.default,
"@viewport": s.default,
"@-ms-viewport": s.default
};
t.default = Object.keys(c).map(function(e) {
var t = new RegExp("^" + e);
return {
onCreateRule: function(n, r, a) {
return t.test(n) ? new c[e](n, r, a) : null
}
}
})
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}();
var a = function() {
function e(t, n, r) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.type = "simple", this.isProcessed = !1, this.key = t, this.value = n, this.options = r
}
return r(e, [{
key: "toString",
value: function(e) {
if (Array.isArray(this.value)) {
for (var t = "", n = 0; n < this.value.length; n++) t += this.key + " " + this.value[n] + ";", this.value[n + 1] && (t += "\n");
return t
}
return this.key + " " + this.value + ";"
}
}]), e
}();
t.default = a
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r, a = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
},
i = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
o = n(14),
s = (r = o) && r.__esModule ? r : {
default: r
};
var l = function() {
function e(t, n, r) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.type = "keyframes", this.isProcessed = !1, this.key = t, this.options = r, this.rules = new s.default(a({}, r, {
parent: this
}));
for (var i in n) this.rules.add(i, n[i], a({}, this.options, {
parent: this,
selector: i
}));
this.rules.process()
}
return i(e, [{
key: "toString",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {
indent: 1
},
t = this.rules.toString(e);
return t && (t += "\n"), this.key + " {\n" + t + "}"
}
}]), e
}();
t.default = l
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r, a = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
},
i = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
o = n(14),
s = (r = o) && r.__esModule ? r : {
default: r
};
var l = function() {
function e(t, n, r) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.type = "conditional", this.isProcessed = !1, this.key = t, this.options = r, this.rules = new s.default(a({}, r, {
parent: this
}));
for (var i in n) this.rules.add(i, n[i]);
this.rules.process()
}
return i(e, [{
key: "getRule",
value: function(e) {
return this.rules.get(e)
}
}, {
key: "indexOf",
value: function(e) {
return this.rules.indexOf(e)
}
}, {
key: "addRule",
value: function(e, t, n) {
var r = this.rules.add(e, t, n);
return this.options.jss.plugins.onProcessRule(r), r
}
}, {
key: "toString",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {
indent: 1
},
t = this.rules.toString(e);
return t ? this.key + " {\n" + t + "\n}" : ""
}
}]), e
}();
t.default = l
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r, a = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
i = n(22),
o = (r = i) && r.__esModule ? r : {
default: r
};
var s = function() {
function e(t, n, r) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.type = "font-face", this.isProcessed = !1, this.key = t, this.style = n, this.options = r
}
return a(e, [{
key: "toString",
value: function(e) {
if (Array.isArray(this.style)) {
for (var t = "", n = 0; n < this.style.length; n++) t += (0, o.default)(this.key, this.style[n]), this.style[n + 1] && (t += "\n");
return t
}
return (0, o.default)(this.key, this.style, e)
}
}]), e
}();
t.default = s
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r, a = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
i = n(22),
o = (r = i) && r.__esModule ? r : {
default: r
};
var s = function() {
function e(t, n, r) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this.type = "viewport", this.isProcessed = !1, this.key = t, this.style = n, this.options = r
}
return a(e, [{
key: "toString",
value: function(e) {
return (0, o.default)(this.key, this.style, e)
}
}]), e
}();
t.default = s
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = o(n(10)),
a = o(n(19)),
i = o(n(43));
function o(e) {
return e && e.__esModule ? e : {
default: e
}
}
t.default = {
onCreateRule: function(e, t, n) {
if (!(0, i.default)(t)) return null;
var r = t,
o = (0, a.default)(e, {}, n);
return r.subscribe(function(e) {
for (var t in e) o.prop(t, e[t])
}), o
},
onProcessRule: function(e) {
if (e instanceof r.default) {
var t = e,
n = t.style,
a = function(e) {
var r = n[e];
if (!(0, i.default)(r)) return "continue";
delete n[e], r.subscribe({
next: function(n) {
t.prop(e, n)
}
})
};
for (var o in n) a(o)
}
}
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = s(n(14)),
a = s(n(10)),
i = s(n(113)),
o = s(n(19));
function s(e) {
return e && e.__esModule ? e : {
default: e
}
}
var l = Date.now(),
c = "fnValues" + l,
u = "fnStyle" + ++l;
t.default = {
onCreateRule: function(e, t, n) {
if ("function" != typeof t) return null;
var r = (0, o.default)(e, {}, n);
return r[u] = t, r
},
onProcessStyle: function(e, t) {
var n = {};
for (var r in e) {
var a = e[r];
"function" == typeof a && (delete e[r], n[(0, i.default)(r)] = a)
}
return (t = t)[c] = n, e
},
onUpdate: function(e, t) {
if (t.rules instanceof r.default) t.rules.update(e);
else if (t instanceof a.default) {
if ((t = t)[c])
for (var n in t[c]) t.prop(n, t[c][n](e));
var i = (t = t)[u];
if (i) {
var o = i(e);
for (var s in o) t.prop(s, o[s])
}
}
}
}
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = /([A-Z])/g,
a = function(e) {
return "-" + e.toLowerCase()
};
t.default = function(e) {
return e.replace(r, a)
}
}, function(e, t, n) {
"use strict";
(function(e) {
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}(),
a = l(n(8)),
i = l(n(23)),
o = l(n(10)),
s = l(n(18));
function l(e) {
return e && e.__esModule ? e : {
default: e
}
}
function c(e, t) {
try {
return e.style.getPropertyValue(t)
} catch (e) {
return ""
}
}
function u(e, t, n) {
try {
var r = n;
if (Array.isArray(n) && (r = (0, s.default)(n, !0), "!important" === n[n.length - 1])) return e.style.setProperty(t, r, "important"), !0;
e.style.setProperty(t, r)
} catch (e) {
return !1
}
return !0
}
var d, p = 1,
m = 7,
g = (d = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0;
return e.substr(t, e.indexOf("{") - 1)
}, function(e) {
if (e.type === p) return e.selectorText;
if (e.type === m) {
var t = e.name;
if (t) return "@keyframes " + t;
var n = e.cssText;
return "@" + d(n, n.indexOf("keyframes"))
}
return d(e.cssText)
});
function f(e, t) {
return e.selectorText = t, e.selectorText === t
}
var h, b, _, v = (h = void 0, function() {
return h || (h = document.head || document.getElementsByTagName("head")[0]), h
}),
y = (b = void 0, _ = !1, function(e) {
var t = {};
b || (b = document.createElement("style"));
for (var n = 0; n < e.length; n++) {
var r = e[n];
if (r instanceof o.default) {
var a = r.selector;
if (a && -1 !== a.indexOf("\\")) {
_ || (v().appendChild(b), _ = !0), b.textContent = a + " {}";
var i = b.sheet;
if (i) {
var s = i.cssRules;
s && (t[s[0].selectorText] = r.key)
}
}
}
}
return _ && (v().removeChild(b), _ = !1), t
});
function E(e) {
var t = i.default.registry;
if (t.length > 0) {
var n = function(e, t) {
for (var n = 0; n < e.length; n++) {
var r = e[n];
if (r.attached && r.options.index > t.index && r.options.insertionPoint === t.insertionPoint) return r
}
return null
}(t, e);
if (n) return n.renderer.element;
if (n = function(e, t) {
for (var n = e.length - 1; n >= 0; n--) {
var r = e[n];
if (r.attached && r.options.insertionPoint === t.insertionPoint) return r
}
return null
}(t, e)) return n.renderer.element.nextElementSibling
}
var r = e.insertionPoint;
if (r && "string" == typeof r) {
var o = function(e) {
for (var t = v(), n = 0; n < t.childNodes.length; n++) {
var r = t.childNodes[n];
if (8 === r.nodeType && r.nodeValue.trim() === e) return r
}
return null
}(r);
if (o) return o.nextSibling;
(0, a.default)("jss" === r, '[JSS] Insertion point "%s" not found.', r)
}
return null
}
var S = function() {
function t(n) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, t), this.getStyle = c, this.setStyle = u, this.setSelector = f, this.getKey = g, this.getUnescapedKeysMap = y, this.hasInsertedRules = !1, n && i.default.add(n), this.sheet = n;
var r = this.sheet ? this.sheet.options : {},
a = r.media,
o = r.meta,
s = r.element;
this.element = s || document.createElement("style"), this.element.type = "text/css", this.element.setAttribute("data-jss", ""), a && this.element.setAttribute("media", a), o && this.element.setAttribute("data-meta", o);
var l = e.__webpack_nonce__;
l && this.element.setAttribute("nonce", l)
}
return r(t, [{
key: "attach",
value: function() {
!this.element.parentNode && this.sheet && (this.hasInsertedRules && (this.deploy(), this.hasInsertedRules = !1), function(e, t) {
var n = t.insertionPoint,
r = E(t);
if (r) {
var i = r.parentNode;
i && i.insertBefore(e, r)
} else if (n && "number" == typeof n.nodeType) {
var o = n,
s = o.parentNode;
s ? s.insertBefore(e, o.nextSibling) : (0, a.default)(!1, "[JSS] Insertion point is not in the DOM.")
} else v().insertBefore(e, r)
}(this.element, this.sheet.options))
}
}, {
key: "detach",
value: function() {
this.element.parentNode.removeChild(this.element)
}
}, {
key: "deploy",
value: function() {
this.sheet && (this.element.textContent = "\n" + this.sheet.toString() + "\n")
}
}, {
key: "insertRule",
value: function(e, t) {
var n = this.element.sheet,
r = n.cssRules,
i = e.toString();
if (t || (t = r.length), !i) return !1;
try {
n.insertRule(i, t)
} catch (t) {
return (0, a.default)(!1, "[JSS] Can not insert an unsupported rule \n\r%s", e), !1
}
return this.hasInsertedRules = !0, r[t]
}
}, {
key: "deleteRule",
value: function(e) {
var t = this.element.sheet,
n = this.indexOf(e);
return -1 !== n && (t.deleteRule(n), !0)
}
}, {
key: "indexOf",
value: function(e) {
for (var t = this.element.sheet.cssRules, n = 0; n < t.length; n++)
if (e === t[n]) return n;
return -1
}
}, {
key: "replaceRule",
value: function(e, t) {
var n = this.indexOf(e),
r = this.insertRule(t, n);
return this.element.sheet.deleteRule(n), r
}
}, {
key: "getRules",
value: function() {
return this.element.sheet.cssRules
}
}]), t
}();
t.default = S
}).call(t, n(0))
}, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t
}
}();
var a = function() {
function e() {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e)
}
return r(e, [{
key: "setStyle",
value: function() {
return !0
}
}, {
key: "getStyle",
value: function() {
return ""
}
}, {
key: "setSelector",
value: function() {
return !0
}
}, {
key: "getKey",
value: function() {
return ""
}
}, {
key: "attach",
value: function() {}
}, {
key: "detach",
value: function() {}
}, {
key: "deploy",
value: function() {}
}, {
key: "insertRule",
value: function() {
return !1
}
}, {
key: "deleteRule",
value: function() {
return !0
}
}, {
key: "replaceRule",
value: function() {
return !1
}
}, {
key: "getRules",
value: function() {}
}, {
key: "indexOf",
value: function() {
return -1
}
}]), e
}();
t.default = a
}, function(e, t, n) {
var r = n(47),
a = n(117),
i = {};
for (var o in r) r.hasOwnProperty(o) && (i[r[o]] = o);
var s = e.exports = {
to: {}
};
function l(e, t, n) {
return Math.min(Math.max(t, e), n)
}
function c(e) {
var t = e.toString(16).toUpperCase();
return t.length < 2 ? "0" + t : t
}
s.get = function(e) {
var t, n;
switch (e.substring(0, 3).toLowerCase()) {
case "hsl":
t = s.get.hsl(e), n = "hsl";
break;
case "hwb":
t = s.get.hwb(e), n = "hwb";
break;
default:
t = s.get.rgb(e), n = "rgb"
}
return t ? {
model: n,
value: t
} : null
}, s.get.rgb = function(e) {
if (!e) return null;
var t, n, a, i = [0, 0, 0, 1];
if (t = e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)) {
for (a = t[2], t = t[1], n = 0; n < 3; n++) {
var o = 2 * n;
i[n] = parseInt(t.slice(o, o + 2), 16)
}
a && (i[3] = Math.round(parseInt(a, 16) / 255 * 100) / 100)
} else if (t = e.match(/^#([a-f0-9]{3,4})$/i)) {
for (a = (t = t[1])[3], n = 0; n < 3; n++) i[n] = parseInt(t[n] + t[n], 16);
a && (i[3] = Math.round(parseInt(a + a, 16) / 255 * 100) / 100)
} else if (t = e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)) {
for (n = 0; n < 3; n++) i[n] = parseInt(t[n + 1], 0);
t[4] && (i[3] = parseFloat(t[4]))
} else {
if (!(t = e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/))) return (t = e.match(/(\D+)/)) ? "transparent" === t[1] ? [0, 0, 0, 0] : (i = r[t[1]]) ? (i[3] = 1, i) : null : null;
for (n = 0; n < 3; n++) i[n] = Math.round(2.55 * parseFloat(t[n + 1]));
t[4] && (i[3] = parseFloat(t[4]))
}
for (n = 0; n < 3; n++) i[n] = l(i[n], 0, 255);
return i[3] = l(i[3], 0, 1), i
}, s.get.hsl = function(e) {
if (!e) return null;
var t = e.match(/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);
if (t) {
var n = parseFloat(t[4]);
return [(parseFloat(t[1]) % 360 + 360) % 360, l(parseFloat(t[2]), 0, 100), l(parseFloat(t[3]), 0, 100), l(isNaN(n) ? 1 : n, 0, 1)]
}
return null
}, s.get.hwb = function(e) {
if (!e) return null;
var t = e.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);
if (t) {
var n = parseFloat(t[4]);
return [(parseFloat(t[1]) % 360 + 360) % 360, l(parseFloat(t[2]), 0, 100), l(parseFloat(t[3]), 0, 100), l(isNaN(n) ? 1 : n, 0, 1)]
}
return null
}, s.to.hex = function() {
var e = a(arguments);
return "#" + c(e[0]) + c(e[1]) + c(e[2]) + (e[3] < 1 ? c(Math.round(255 * e[3])) : "")
}, s.to.rgb = function() {
var e = a(arguments);
return e.length < 4 || 1 === e[3] ? "rgb(" + Math.round(e[0]) + ", " + Math.round(e[1]) + ", " + Math.round(e[2]) + ")" : "rgba(" + Math.round(e[0]) + ", " + Math.round(e[1]) + ", " + Math.round(e[2]) + ", " + e[3] + ")"
}, s.to.rgb.percent = function() {
var e = a(arguments),
t = Math.round(e[0] / 255 * 100),
n = Math.round(e[1] / 255 * 100),
r = Math.round(e[2] / 255 * 100);
return e.length < 4 || 1 === e[3] ? "rgb(" + t + "%, " + n + "%, " + r + "%)" : "rgba(" + t + "%, " + n + "%, " + r + "%, " + e[3] + ")"
}, s.to.hsl = function() {
var e = a(arguments);
return e.length < 4 || 1 === e[3] ? "hsl(" + e[0] + ", " + e[1] + "%, " + e[2] + "%)" : "hsla(" + e[0] + ", " + e[1] + "%, " + e[2] + "%, " + e[3] + ")"
}, s.to.hwb = function() {
var e = a(arguments),
t = "";
return e.length >= 4 && 1 !== e[3] && (t = ", " + e[3]), "hwb(" + e[0] + ", " + e[1] + "%, " + e[2] + "%" + t + ")"
}, s.to.keyword = function(e) {
return i[e.slice(0, 3)]
}
}, function(e, t, n) {
"use strict";
var r = n(118),
a = Array.prototype.concat,
i = Array.prototype.slice,
o = e.exports = function(e) {
for (var t = [], n = 0, o = e.length; n < o; n++) {
var s = e[n];
r(s) ? t = a.call(t, i.call(s)) : t.push(s)
}
return t
};
o.wrap = function(e) {
return function() {
return e(o(arguments))
}
}
}, function(e, t, n) {
"use strict";
e.exports = function(e) {
return !(!e || "string" == typeof e) && (e instanceof Array || Array.isArray(e) || e.length >= 0 && (e.splice instanceof Function || Object.getOwnPropertyDescriptor(e, e.length - 1) && "String" !== e.constructor.name))
}
}, function(e, t, n) {
var r = n(48),
a = n(120),
i = {};
Object.keys(r).forEach(function(e) {
i[e] = {}, Object.defineProperty(i[e], "channels", {
value: r[e].channels
}), Object.defineProperty(i[e], "labels", {
value: r[e].labels
});
var t = a(e);
Object.keys(t).forEach(function(n) {
var r, a, o, s, l = t[n];
i[e][n] = (a = function(e) {
if (void 0 === e || null === e) return e;
arguments.length > 1 && (e = Array.prototype.slice.call(arguments));
var t = r(e);
if ("object" == typeof t)
for (var n = t.length, a = 0; a < n; a++) t[a] = Math.round(t[a]);
return t
}, "conversion" in (r = l) && (a.conversion = r.conversion), a), i[e][n].raw = (s = function(e) {
return void 0 === e || null === e ? e : (arguments.length > 1 && (e = Array.prototype.slice.call(arguments)), o(e))
}, "conversion" in (o = l) && (s.conversion = o.conversion), s)
})
}), e.exports = i
}, function(e, t, n) {
var r = n(48);
function a(e) {
var t = function() {
for (var e = {}, t = Object.keys(r), n = t.length, a = 0; a < n; a++) e[t[a]] = {
distance: -1,
parent: null
};
return e
}(),
n = [e];
for (t[e].distance = 0; n.length;)
for (var a = n.pop(), i = Object.keys(r[a]), o = i.length, s = 0; s < o; s++) {
var l = i[s],
c = t[l]; - 1 === c.distance && (c.distance = t[a].distance + 1, c.parent = a, n.unshift(l))
}
return t
}
function i(e, t) {
return function(n) {
return t(e(n))
}
}
function o(e, t) {
for (var n = [t[e].parent, e], a = r[t[e].parent][e], o = t[e].parent; t[o].parent;) n.unshift(t[o].parent), a = i(r[t[o].parent][o], a), o = t[o].parent;
return a.conversion = n, a
}
e.exports = function(e) {
for (var t = a(e), n = {}, r = Object.keys(t), i = r.length, s = 0; s < i; s++) {
var l = r[s];
null !== t[l].parent && (n[l] = o(l, t))
}
return n
}
}, function(e, t, n) {
"use strict";
var r = n(1),
a = (n.n(r), n(122)),
i = n(49),
o = n.n(i),
s = n(127),
l = n(129),
c = n(131);
t.a = class extends r.Component {
constructor() {
super(...arguments), this.keys = (e => {
const {
view: t,
toggle: n
} = this.props;
t.modalOpen && 27 === e.keyCode && n(!1)
})
}
componentWillMount() {
let {
config: e
} = this.props;
this.classes = Object(a.a)(e), window.addEventListener("keydown", this.keys.bind(this), !1)
}
componentWillUnmount() {
window.removeEventListener("keydown", this.keys.bind(this), !1)
}
componentWillReceiveProps(e) {
e && JSON.stringify(e.config) !== JSON.stringify(this.props.config) && (this.classes = Object(a.a)(e.config), this.forceUpdate())
}
render() {
let {
view: e,
modal: t,
config: n,
toggle: a
} = this.props, {
classes: i
} = this;
return r.createElement(o.a, { in : e.modalOpen, timeout: 200
}, e => r.createElement("div", {
className: `crate-modal ${i.modal} ${e?`
$ {
i.modal
} - $ {
e
}
`:""}`,
onClick: e => {
e.target === e.currentTarget && a(!1)
}
}, r.createElement("div", {
className: `crate-modal-card ${i.card} ${"image"===t.type?`
crate - image - modal $ {
i.card
} - image `:""}`
}, r.createElement("svg", {
width: "18",
height: "18",
viewBox: "0 0 12 12",
className: `crate-modal-close ${i.close} ${"image"===t.type?`
$ {
i.close
} - image `:""}`,
onClick: () => a(!1)
}, r.createElement("path", {
d: "M0 0h12v12H0"
}), r.createElement("path", {
className: `${i.svg}`,
d: "M9.5 3.205L8.795 2.5 6 5.295 3.205 2.5l-.705.705L5.295 6 2.5 8.795l.705.705L6 6.705 8.795 9.5l.705-.705L6.705 6"
})), "user" === t.type ? r.createElement(s.a, {
user: t.data,
config: n
}) : "image" === t.type ? r.createElement(l.a, {
url: t.data,
config: n,
toggle: a.bind(this)
}) : "message" === t.type ? r.createElement(c.a, {
message: t.data,
config: n,
toggle: a.bind(this)
}) : null)))
}
}
}, function(e, t, n) {
"use strict";
var r = n(3),
a = n.n(r),
i = n(4),
o = n.n(i),
s = n(5),
l = n.n(s),
c = n(11),
u = n.n(c);
n(2);
a.a.use(o()(), l()(), u()()), t.a = (e => {
const t = {
modal: {
position: "fixed",
display: "flex",
top: "0",
left: "0",
right: "0",
bottom: "0",
backgroundColor: "rgba(0, 0, 0, 0.6)",
justifyContent: "center",
alignItems: "center",
zIndex: "2147483001 !important",
transition: "opacity 0.2s ease, transform 0.2s ease",
"&-exited": {
display: "none"
},
"&-entering": {
display: "flex",
opacity: 0,
transform: "scale(1.1)"
},
"&-exiting": {
opacity: 0,
transform: "scale(1.1)"
},
"&-entered": {
opacity: 1,
transform: "initial",
backdropFilter: "blur(30px)"
}
},
card: {
position: "relative",
display: "flex",
flexDirection: "column",
zIndex: "2",
backgroundColor: "dark" === e.scheme ? "rgba(50, 53, 58, 0.7)" : "rgba(255, 255, 255, 0.82)",
borderRadius: "6px",
width: "480px",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif",
overflow: "hidden",
boxShadow: "0 0 0 1px rgba(32,34,37,0.6), 0 2px 10px 0 rgba(0,0,0,0.2)",
transition: "transform 0.1s,opacity 0.1s",
"&-image": {
width: "auto"
}
},
close: {
fill: "transparent",
borderRadius: "3px",
marginLeft: "auto",
cursor: "pointer",
boxSizing: "initial",
opacity: ".5",
padding: "4px",
MozTransition: "opacity 0.1s ease-in-out",
OTransition: "opacity 0.1s ease-in-out",
WebkitTransition: "opacity 0.1s ease-in-out",
transition: "opacity 0.1s ease-in-out",
"&:hover": {
backgroundColor: "dark" === e.scheme ? "rgba(221,222,223,0.05)" : "rgba(25, 25, 25, 0.05)",
opacity: "1"
},
"&-image": {
position: "absolute",
right: "0"
}
},
svg: {
fill: "dark" === e.scheme ? "#dcddde" : "#1b1b1b"
}
};
return a.a.createStyleSheet(t).attach().classes
})
}, function(e, t, n) {
"use strict";
var r = n(15),
a = n(124),
i = n(125);
e.exports = function() {
function e(e, t, n, r, o, s) {
s !== i && a(!1, "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")
}
function t() {
return e
}
e.isRequired = e;
var n = {
array: e,
bool: e,
func: e,
number: e,
object: e,
string: e,
symbol: e,
any: e,
arrayOf: t,
element: e,
instanceOf: t,
node: e,
objectOf: t,
oneOf: t,
oneOfType: t,
shape: t,
exact: t
};
return n.checkPropTypes = r, n.PropTypes = n, n
}
}, function(e, t, n) {
"use strict";
var r = function(e) {};
e.exports = function(e, t, n, a, i, o, s, l) {
if (r(t), !e) {
var c;
if (void 0 === t) c = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
else {
var u = [n, a, i, o, s, l],
d = 0;
(c = new Error(t.replace(/%s/g, function() {
return u[d++]
}))).name = "Invariant Violation"
}
throw c.framesToPop = 1, c
}
}
}, function(e, t, n) {
"use strict";
e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"
}, function(e, t, n) {
"use strict";
t.__esModule = !0, t.classNamesShape = t.timeoutsShape = void 0, t.transitionTimeout = function(e) {
var t = "transition" + e + "Timeout",
n = "transition" + e;
return function(e) {
if (e[n]) {
if (null == e[t]) return new Error(t + " wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");
if ("number" != typeof e[t]) return new Error(t + " must be a number (in milliseconds)")
}
return null
}
};
var r, a = n(24),
i = (r = a) && r.__esModule ? r : {
default: r
};
t.timeoutsShape = i.default.oneOfType([i.default.number, i.default.shape({
enter: i.default.number,
exit: i.default.number
}).isRequired]), t.classNamesShape = i.default.oneOfType([i.default.string, i.default.shape({
enter: i.default.string,
exit: i.default.string,
active: i.default.string
}), i.default.shape({
enter: i.default.string,
enterActive: i.default.string,
exit: i.default.string,
exitActive: i.default.string
})])
}, function(e, t, n) {
"use strict";
var r = n(1),
a = (n.n(r), n(128));
const i = n(2);
t.a = class extends r.Component {
componentWillMount() {
const {
config: e
} = this.props;
this.classes = Object(a.a)(e)
}
componentWillReceiveProps(e) {
e && JSON.stringify(e.config) !== JSON.stringify(this.props.config) && (this.classes = Object(a.a)(e.config), this.forceUpdate())
}
render() {
const {
config: e,
user: t
} = this.props, {
classes: n
} = this;
return t ? r.createElement("div", null, r.createElement("div", {
className: `crate-modal-profile ${n.profile}`
}, r.createElement("div", {
className: `crate-modal-avatar ${n.avatar}`,
onClick: () => window.open(t.avatar ? `${t.avatar.split("?")[0]}?size=2048` : "https://beta.widgetbot.io/embed/299881420891881473/336898706869583872/0002/default.webp")
}, r.createElement("img", {
className: `${n["avatar-img"]}`,
src: t.avatar || "https://beta.widgetbot.io/embed/335391242248519680/335391242248519680/0002/default.webp",
onError: e => {
"https://beta.widgetbot.io/embed/335391242248519680/335391242248519680/0002/default.webp" !== e.target.src && (e.target.src = "https://beta.widgetbot.io/embed/335391242248519680/335391242248519680/0002/default.webp")
}
}), r.createElement("div", {
className: `${n["view-avatar-circle"]}`
}, r.createElement("span", {
className: `${n["view-avatar"]}`
}, "View avatar"))), r.createElement("div", {
className: `crate-modal-name ${n.name}`
}, t.name, this.parseTags(t))), t.roles && t.roles.length > 1 && r.createElement("div", {
className: `crate-modal-description ${n.description}`
}, r.createElement(o, {
classes: n,
roles: t.roles
}))) : r.createElement("div", null)
}
parseTags(e) {
const {
classes: t
} = this;
return r.createElement("span", null, /^294916911194570754|111783814740594688$/.test(e.id) ? r.createElement("a", {
href: "111783814740594688" == e.id ? "https://voakie.com" : "https://samdd.me/?devtag",
target: "blank_",
className: t.link
}, r.createElement("span", {
className: `crate-modal-role-bot crate-modal-role-developer ${t.bot}`
}, "DEV")) : /^300908951665508353|356856478495408129|293731150239891456$/.test(e.id) ? r.createElement("span", {
className: `crate-modal-role-bot crate-modal-role-widgetbot ${t.bot}`
}, "WIDGETBOT") : e.bot ? r.createElement("span", {
className: `crate-modal-role-bot ${t.bot}`
}, "BOT") : null)
}
};
class o extends r.Component {
compare(e, t) {
return e.position < t.position ? 1 : e.position > t.position ? -1 : 0
}
render() {
const {
classes: e
} = this.props, t = this.props.roles.sort(this.compare);
return r.createElement("div", {
className: `crate-modal-roles ${e.userRoles}`
}, r.createElement("div", {
className: `crate-modal-roles-title ${e.title}`
}, `Role${t.length>2?"s":""}`), r.createElement("div", {
className: `crate-modal-roles ${e.roles}`
}, t.map((t, n) => {
if ("@everyone" === t.name) return null;
const a = t.color.match(/^#000|#000000|#fff|#ffffff$/) ? i("#b9bbbe") : i(t.color);
return r.createElement("div", {
className: `crate-modal-role ${e.role}`,
style: {
color: a.rgb().string(),
borderColor: a.fade(.6).rgb().string()
},
key: n
}, r.createElement("div", {
className: `crate-modal-role-color ${e["role-color"]}`
}), r.createElement("div", {
className: `crate-modal-role-name ${e["role-name"]}`
}, t.name))
})))
}
}
}, function(e, t, n) {
"use strict";
var r = n(3),
a = n.n(r),
i = n(4),
o = n.n(i),
s = n(5),
l = n.n(s);
n(2);
a.a.use(o()(), l()()), t.a = (e => {
const t = {
profile: {
display: "flex",
flex: "1 1 auto",
flexDirection: "column",
padding: "20px 10px",
alignItems: "center",
justifyContent: "center",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"
},
avatar: {
position: "relative",
borderRadius: "100%",
marginBottom: "10px",
height: "85px",
width: "85px",
flexShrink: "0",
flexGrow: "0",
cursor: "pointer",
MozTransition: "filter 0.2s ease",
OTransition: "filter 0.2s ease",
WebkitTransition: "filter 0.2s ease",
transition: "filter 0.2s ease",
overflow: "hidden"
},
name: {
color: "dark" === e.scheme ? "#f6f6f7" : "#333333",
letterSpacing: .3,
textTransform: "uppercase",
fontWeight: "600",
fontSize: "16px",
padding: "0px 10px",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"
},
bot: {
lineHeight: "19px",
flexShrink: "0",
borderRadius: "3px",
textTransform: "uppercase",
verticalAlign: "bottom",
marginLeft: "6px",
fontSize: "10px",
fontWeight: "500",
background: `${"dark"===e.scheme?"#fff":"#7289da"}`,
color: `${"dark"===e.scheme?"#7289da":"#fff"} !important`,
padding: "0 3px",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"
},
link: {
textDecoration: "none"
},
"avatar-img": {
width: "100%",
height: "100%"
},
"view-avatar-circle": {
color: "#fff",
opacity: "0",
width: "100%",
height: "100%",
display: "flex",
position: "absolute",
top: "0",
justifyContent: "center",
WebkitBoxAlign: "center",
alignItems: "center",
MozTransition: "opacity 0.1s ease",
OTransition: "opacity 0.1s ease",
WebkitTransition: "opacity 0.1s ease",
transition: "opacity 0.1s ease",
WebkitBoxShadow: "inset 0 0 120px rgba(0,0,0,0.85)",
MozBoxShadow: "inset 0 0 120px rgba(0,0,0,0.85)",
boxShadow: "inset 0 0 120px rgba(0,0,0,0.85)",
"&:hover ": {
opacity: 1
}
},
"view-avatar": {
textTransform: "uppercase",
padding: "4px",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
fontWeight: "700",
lineHeight: "12px",
fontSize: "10px",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"
},
description: {
display: "block",
backgroundColor: "dark" === e.scheme ? "rgba(86, 88, 90, 0.3)" : "rgba(255, 255, 255, 0.23)",
padding: "12px 10px 10px",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"
},
title: {
color: "dark" === e.scheme ? "#72767d" : "#515356",
textTransform: "uppercase",
marginBottom: "8px",
fontWeight: "700",
fontSize: "12px",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"
},
roles: {
display: "flex",
flexWrap: "wrap",
marginTop: "12px",
marginBottom: "20px",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"
},
role: {
padding: "5px 6px",
fontSize: "14px",
border: "1px solid currentColor",
borderRadius: "15px",
margin: "4px",
display: "flex",
lineHeight: "19px",
overflow: "hidden",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"
},
"role-color": {
float: "left",
background: "currentColor",
borderRadius: "50%",
height: "12px",
width: "12px",
marginRight: "4px",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif",
color: "inherit"
},
"role-name": {
display: "inline-block",
lineHeight: "material" === e.style ? "11px" : "12px",
fontSize: "material" === e.style ? "11px" : "12px",
fontWeight: "500",
textOverflow: "ellipsis",
marginRight: "4px",
color: "dark" === e.scheme ? "rgba(255,255,255,0.8)" : "rgba(23, 23, 23, 0.8)",
fontFamily: "material" === e.style ? "'Roboto', sans-serif" : "Whitney, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"
}
};
return a.a.createStyleSheet(t).attach().classes
})
}, function(e, t, n) {
"use strict";
var r = n(1),
a = (n.n(r), n(130));
n(2);
t.a = class extends r.Component {
componentWillMount() {
let {
config: e
} = this.props;
this.classes = Object(a.a)(e)
}
render() {
let {
config: e,
url: t,
toggle: n
} = this.props, {
classes: a
} = this;
return r.createElement("img", {
src: t,
onClick: () => {
window.open(t), n(!1)
},
className: `crate-modal-image ${a.img}`
})
}
}
}, function(e, t, n) {
"use strict";
var r = n(3),
a = n.n(r),
i = n(4),
o = n.n(i),
s = n(5),
l = n.n(s);
n(2);
a.a.use(o()(), l()()), t.a = (e => {
return a.a.createStyleSheet({
img: {
cursor: "pointer",
maxWidth: "70vw",
maxHeight: "70vh"
}
}).attach().classes
})
}, function(e, t, n) {
"use strict";
var r = n(1),
a = (n.n(r), n(132));
n(2);
t.a = class extends r.Component {
componentWillMount() {
let {
config: e
} = this.props;
this.classes = Object(a.a)(e)
}
render() {
let {
config: e,
message: t,
toggle: n
} = this.props, {
classes: a
} = this;
return r.createElement("span", null, JSON.stringify(t))
}
}
}, function(e, t, n) {
"use strict";
var r = n(3),
a = n.n(r),
i = n(4),
o = n.n(i),
s = n(5),
l = n.n(s);
n(2);
a.a.use(o()(), l()()), t.a = (e => {
return a.a.createStyleSheet({
img: {
cursor: "pointer",
maxWidth: "70vw",
maxHeight: "70vh"
}
}).attach().classes
})
}, function(e, t, n) {
"use strict";
var r = n(1),
a = (n.n(r), n(134)),
i = n(49),
o = n.n(i);
t.a = class extends r.Component {
constructor() {
super(...arguments), this.state = {
entered: !1
}
}
componentWillMount() {
let {
config: e
} = this.props;
this.classes = Object(a.a)(e)
}
componentDidMount() {
this.setState({
entered: !0
})
}
componentWillReceiveProps(e) {
e && JSON.stringify(e.config) !== JSON.stringify(this.props.config) && (this.classes = Object(a.a)(e.config), this.forceUpdate())
}
render() {
let {
config: e,
toggle: t,
view: n,
notifications: a
} = this.props, {
classes: i
} = this;
return r.createElement(o.a, { in : this.state.entered, timeout: 10
}, o => r.createElement("div", {
className: `crate-toggle ${i.toggle} ${i.toggle}-${o} ${a.pinged?`
crate - toggle - pinged $ {
i["toggle-pinged"]
}
`:""}`,
onClick: t.bind(this)
}, r.createElement(s, {
classes: i,
view: n
}), r.createElement(l, {
classes: i,
view: n
}), e.notifications.indicator.enable && r.createElement(c, {
classes: i,
unread: a.unread,
pinged: a.pinged
})))
}
};
class s extends r.Component {
render() {
let {
view: e,
classes: t
} = this.props;
return r.createElement("div", {
className: `crate-toggle-glyph crate-toggle-open ${t["button-glyph"]} ${t["button-open"]} ${e.open?t["button-open:toggled"]:""}`
})
}
}
class l extends r.Component {
render() {
let {
view: e,
classes: t
} = this.props;
return r.createElement("div", {
className: `crate-toggle-glyph crate-toggle-close ${t["button-glyph"]} ${t["button-close"]} ${e.open?t["button-close:toggled"]:""}`
})
}
}
class c extends r.Component {
render() {
let {
unread: e,
pinged: t,
classes: n
} = this.props;
return r.createElement("div", {
className: `crate-unread-indicator ${n.indicator} ${t?n["indicator-pinged"]:""}`
}, 0 !== e ? e > 99 ? "99" : e : "")
}
}
}, function(e, t, n) {
"use strict";
var r = n(3),
a = n.n(r),
i = n(4),
o = n.n(i),
s = n(5),
l = n.n(s),
c = n(11),
u = n.n(c);
const d = n(2);
a.a.use(o()(), l()(), u()()), t.a = (e => {
const t = {
toggle: {
zIndex: "2147483000 !important",
position: "fixed !important",
[e.position.y]: "20px !important",
[e.position.x]: "20px !important",
width: `${"discord"===e.style?60:56}px !important`,
height: `${"discord"===e.style?60:56}px !important`,
borderRadius: "50% !important",
transition: ["box-shadow .2s ease-in-out", `background ${"discord"===e.style?"0.1s ease":"250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"}`, "filter .2s ease-in-out", "opacity .1s ease", "transform .2s ease !important"],
boxShadow: "discord" === e.style ? ["0 1px 6px rgba(0,0,0,0.06)", "0 2px 32px rgba(0,0,0,0.16)"] : ["0px 3px 5px -1px rgba(0, 0, 0, 0.2)", "0px 6px 10px 0px rgba(0, 0, 0, 0.14)", "0px 1px 18px 0px rgba(0, 0, 0, 0.12)"],
background: `${e.colors.toggle} !important`,
cursor: "pointer !important",
animationTimingFunction: "ease-in-out !important",
"&:hover": {
boxShadow: "discord" === e.style ? ["0 2px 8px rgba(0,0,0,0.09)", "0 4px 40px rgba(0,0,0,0.24)"] : ["0px 3px 5px -1px rgba(0, 0, 0, 0.2)", "0px 6px 10px 0px rgba(0, 0, 0, 0.14)", "0px 1px 18px 0px rgba(0, 0, 0, 0.12)"],
background: "discord" === e.style ? "" : `${d(e.colors.toggle).lighten(.1)} !important`
},
"&-entering": {
opacity: 0,
transform: "scale(0.4)"
},
"&-entered": {
opacity: 1,
transform: "initial"
}
},
"toggle-pinged": {
boxShadow: ["0 1px 6px rgba(0,0,0,0.06)", "0 2px 32px rgba(0,0,0,0.16)", `0 0 0 0 ${d(e.colors.toggle).alpha(.7).rgb().toString()}`, "!important"],
animation: "pingedPulse 1.2s infinite cubic-bezier(0.18, 0.89, 0.6, 1.28) !important"
},
"button-glyph": {
display: "block !important",
position: "absolute !important",
top: "0 !important",
bottom: "0 !important",
height: "100% !important",
width: "100% !important",
transition: "transform .16s linear, opacity .08s linear !important",
backgroundSize: "50% 50% !important",
backgroundPosition: "center !important",
backgroundRepeat: "no-repeat !important",
pointerEvents: "none !important",
borderRadius: "50% !important"
},
"button-open": {
backgroundImage: `url(${JSON.stringify(e.logo.url)}) !important`,
backgroundSize: `${e.logo.size||"50% 50%"} !important`
},
"button-open:toggled": {
opacity: "1 !important",
transform: "rotate(30deg) scale(0) !important"
},
"button-close": {
backgroundImage: 'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 50"><path d="M49 45.71l-3.55 3.571-20.6-20.713L3.54 49.997l-3.55-3.572L21.3 24.997-.01 3.57 3.54-.002l21.31 21.427L45.45.713 49 4.284 28.4 24.997" fill="%23fff"/></svg>\') !important',
backgroundPosition: "50% !important",
backgroundSize: "14px 14px !important",
backgroundRepeat: "no-repeat !important",
opacity: "0 !important",
transform: "rotate(-30deg) !important",
filter: d(e.colors.toggle).luminosity() > .6 ? "invert(1)" : ""
},
"button-close:toggled": {
opacity: "1 !important",
transform: "rotate(0deg) !important"
},
indicator: {
display: "block !important",
width: "20px !important",
height: "20px !important",
background: "#FB576A !important",
borderRadius: "100% !important",
top: "-2px !important",
position: "absolute !important",
right: "-2px !important",
lineHeight: "20px !important",
color: "#fff !important",
fontSize: "11px !important",
boxShadow: "0 1px 3px rgba(0,0,0,0.2), 0 2px 10px rgba(0,0,0,0.16) !important",
transition: "opacity .1s ease !important",
fontFamily: "'Roboto', sans-serif !important",
pointerEvents: "none !important",
textAlign: "center !important",
"&:empty": {
opacity: "0 !important"
}
},
"indicator-pinged": {
backgroundColor: "#f5c351 !important",
color: "#000 !important"
},
"@keyframes pingedPulse": {
to: {
boxShadow: ["0 1px 3px rgba(0,0,0,0.2)", "0 2px 10px rgba(0,0,0,0.16)", `0 0 0 20px ${d(e.colors.toggle).alpha(0).rgb().toString()}`]
}
}
};
return a.a.createStyleSheet(t).attach().classes
})
}, function(e, t, n) {
"use strict";
var r = n(1),
a = (n.n(r), n(136)),
i = n(318),
o = n.n(i),
s = n(319);
const {
toHTML: l
} = n(138);
t.a = class extends r.Component {
componentWillMount() {
let {
config: e
} = this.props;
this.classes = Object(a.a)(e)
}
componentWillReceiveProps(e) {
e && JSON.stringify(e.config) !== JSON.stringify(this.props.config) && (this.classes = Object(a.a)(e.config), this.forceUpdate())
}
render() {
let {
messages: e,
openUser: t,
expand: n,
crateEvent: a
} = this.props, {
classes: i
} = this;
return r.createElement("div", {
className: `crate-toast-box ${i["toast-box"]}`
}, e.map(({
expiration: e,
message: o
}, s) => r.createElement(c, {
message: o,
expiration: e,
key: o.id,
classes: i,
last: 0 === s,
expand: n.bind(this),
openUser: t.bind(this),
config: this.props.config,
crateEvent: a.bind(this),
event: this.props.event.bind(this)
})))
}
};
class c extends r.Component {
constructor() {
super(...arguments), this.state = {
render: !0
}, this.mounted = !0, this.handleexpand = ((e, t) => {
let {
expand: n
} = this.props;
e.target === e.currentTarget && n(t)
})
}
componentWillMount() {
let {
expiration: e
} = this.props;
e && +new Date > e && this.setState({
render: !1
})
}
componentDidMount() {
let {
last: e,
classes: t,
expiration: n
} = this.props;
e && (setTimeout(() => {
this.show()
}, 10), n && this.expirationChecker())
}
componentWillUnmount() {
this.mounted = !1
}
show() {
if (this.mounted && this.toast) {
let {
classes: e
} = this.props;
this.toast.classList.add(e["toast-visible"])
}
}
hide() {
if (this.mounted && this.toast) {
let {
classes: e
} = this.props;
this.toast.classList.remove(e["toast-visible"]), this.toast.classList.add(e["toast-hidden"]), this.props.event({
category: "Toast",
action: "Hide"
})
}
}
expirationChecker() {
if (this.mounted && this.toast) {
let {
expiration: e
} = this.props; + new Date > e ? (this.hide(), setTimeout(() => {
this.setState({
render: !1
})
}, 400)) : setTimeout(() => this.expirationChecker(), 500)
}
}
render() {
let {
message: e,
classes: t,
config: n,
crateEvent: a,
last: i,
expiration: c,
openUser: u
} = this.props;
const d = !e.content && e.attachment && e.attachment.url;
return this.state.render ? r.createElement("div", {
className: `crate-toast ${t.toast} ${i?t["toast-hidden"]:""}`,
ref: e => this.toast = e
}, r.createElement("img", {
src: e.author.avatar || "https://beta.widgetbot.io/embed/335391242248519680/335391242248519680/0002/default.webp",
className: `crate-toast-avatar ${t["toast-avatar"]}`,
onClick: () => {
e.fake || u(e.author)
}
}), r.createElement("div", {
className: `crate-toast-message ${t["toast-message"]} ${d?t["message-large"]:""}`
}, r.createElement("div", {
className: `crate-toast-actions ${t["toast-actions"]}`
}, r.createElement("svg", {
viewBox: "0 0 24 24",
width: "24",
xmlns: "http://www.w3.org/2000/svg",
onClick: t => this.handleexpand(t, e)
}, r.createElement("path", {
d: "M0 0h24v24H0z",
fill: "none"
}), r.createElement("path", {
d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
}))), r.createElement("div", {
className: `crate-toast-content ${t["toast-content"]} ${d?t.contentHidden:""}`,
dangerouslySetInnerHTML: {
__html: e.content ? l(e.content) : ""
},
onClick: () => a("message-click", e)
}), e.attachment && e.attachment.url ? (() => {
const n = 180 / e.attachment.width * e.attachment.height,
a = `${t.image} ${d?t.imageLarge:""}`;
return r.createElement("div", {
style: {
boxShadow: d ? "inset 0 85px 55px -54px rgba(54, 57, 62, 0.9)" : "",
cursor: d ? "pointer" : ""
},
onClick: () => {
window.open(e.attachment.url)
}
}, r.createElement(o.a, {
src: e.attachment.url,
style: {
height: n
}
}, r.createElement("img", {
style: {
height: n
},
className: a
}), r.createElement("img", {
src: "https://canary.discordapp.com/assets/e0c782560fd96acd7f01fda1f8c6ff24.svg",
style: {
height: n,
padding: "22px",
backgroundColor: "rgba(0, 0, 0, 0.1)"
},
className: a
}), r.createElement(s.a, {
style: {
height: n,
backgroundColor: "rgba(0, 0, 0, 0.1)"
},
className: a
})))
})() : null)) : r.createElement("div", null)
}
}
}, function(e, t, n) {
"use strict";
var r = n(3),
a = n.n(r),
i = n(4),
o = n.n(i),
s = n(5),
l = n.n(s),
c = n(11),
u = n.n(c),
d = n(137);
n(2);
a.a.use(o()(), l()(), u()()), t.a = (e => {
const t = "dark" === e.scheme ? d.a.dark : d.a.light,
n = {
"toast-box": {
zIndex: "2147483000 !important",
position: "fixed !important",
[e.position.y]: "80px !important",
[e.position.x]: "0 !important",
[`padding-${e.position.x}`]: "20px !important",
width: "300px !important",
maxHeight: `${e.notifications.toasts.maxHeight} !important`,
overflow: "hidden",
display: "flex !important",
opacity: "1 !important",
padding: "7px 0",
[`padding-${e.position.y}`]: "20px !important",
flexDirection: "column-reverse !important",
transition: "opacity 0.4s ease,transform 0.2s cubic-bezier(0.47, 0, 0.75, 0.72)",
transform: "initial !important",
pointerEvents: "none"
},
toast: Object.assign({
display: "block !important",
flex: "1 0 100% !important",
textAlign: "left !important",
transition: "all 0.5s cubic-bezier(0, 0.8, 0.25, 1.18) !important",
"& a": {
color: "#1296CF",
textDecoration: "none",
"&:hover": {
textDecoration: "underline"
}
},
"& code": {
all: "unset",
userSelect: "text",
backgroundColor: "dark" === e.scheme ? "rgba(0, 0, 0, 0.2)" : "rgba(0, 0, 0, 0.08)"
},
"& pre": {
all: "unset",
display: "block",
userSelect: "text",
margin: "6px 0",
whiteSpace: "pre-wrap",
wordWrap: "break-word"
},
"& .hljs": {
border: "dark" === e.scheme ? "2px solid #282b30" : "2px solid rgba(0, 0, 0, 0.05)",
backgroundColor: "dark" === e.scheme ? "rgba(0, 0, 0, 0.2)" : "rgba(0, 0, 0, 0.08)",
fontFamily: "Menlo, Consolas, Monaco, monospace",
fontSize: "inherit",
lineHeight: "16px",
padding: "7px",
display: "block",
borderRadius: "5px",
color: "#839496 !important",
fontWeight: "100 !important"
}
}, t),
"toast-hidden": {
opacity: "0 !important",
transform: `translate(${"left"===e.position.x?"-20px":"20px"}) !important`
},
"toast-visible": {
opacity: "1 !important",
transform: "initial !important"
},
"toast-avatar": {
height: "35px !important",
width: "35px !important",
margin: "right" === e.position.x ? "6px 0 0 15px !important" : "6px 15px 0 0 !important",
float: `${e.position.x} !important`,
borderRadius: "100%",
pointerEvents: "initial",
cursor: "pointer"
},
"toast-message": {
maxWidth: "calc(100% - 100px)",
transform: "translate3d(0, 0, 0)",
backgroundColor: `${"dark"===e.scheme?"#36393E":"#FFFFFF"}`,
display: "flex",
flexDirection: "column",
color: `${"dark"===e.scheme?"rgba(255,255,255,0.7)":"#6e7a89"}`,
marginTop: "6px",
overflowWrap: "break-word",
MsWordBreak: "break-all",
wordWrap: "break-word",
wordBreak: "break-word",
lineHeight: "18px",
whiteSpace: "pre-wrap",
WebkitBoxShadow: "0 2px 8px 0 rgba(35,47,53,0.09)",
boxShadow: "0 2px 8px 0 rgba(35,47,53,0.5)",
position: "relative",
borderTopLeftRadius: "right" === e.position.x ? "6px" : "0",
borderTopRightRadius: "left" === e.position.x ? "6px" : "0",
borderBottomLeftRadius: "6px",
borderBottomRightRadius: "6px",
float: `${e.position.x}`,
pointerEvents: "initial",
"&:after": {
content: '""',
position: "absolute",
top: "0",
[e.position.x]: "-10px",
borderWidth: "right" === e.position.x ? "10px 10px 0 0" : "10px 0 0 10px",
borderStyle: "solid",
borderColor: `${"dark"===e.scheme?"#36393E":"#FFFFFF"} transparent`,
display: "block",
width: "0"
}
},
"message-large": {
overflow: "hidden",
borderRadius: "6px"
},
"toast-content": {
fontFamily: "'Roboto', sans-serif",
fontSize: "14px",
minHeight: "38px",
padding: "10px 30px 10px 16px",
userSelect: "text",
"& *": {
userSelect: "text"
}
},
contentHidden: {
display: "none"
},
"toast-actions": {
width: "100%",
textAlign: "right",
position: "absolute",
pointerEvents: "none",
"& svg": {
opacity: .4,
cursor: "pointer",
pointerEvents: "initial",
width: "17px",
height: "17px",
margin: "8px 4px",
fill: "dark" === e.scheme ? "rgba(255,255,255,0.7)" : "#6e7a89",
padding: "3px",
borderRadius: "50%",
boxSizing: "content-box",
transition: "opacity 0.2s ease, background-color 0.2s ease",
"&:hover": {
opacity: .8,
backgroundColor: "dark" === e.scheme ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.1)"
}
}
},
image: {
position: "relative",
display: "block",
width: "180px",
borderBottomLeftRadius: "6px",
borderBottomRightRadius: "6px"
},
imageLarge: {
zIndex: -1,
borderRadius: 0
}
};
return a.a.createStyleSheet(n).attach().classes
})
}, function(e, t, n) {
"use strict";
const r = {
fontFamily: "Menlo, Consolas, Monaco, monospace"
};
t.a = {
light: {
"& .hljs-comment, .hljs-quote": Object.assign({}, r, {
color: "#586e75"
}),
"& .hljs-addition, .hljs-keyword, .hljs-selector-tag": Object.assign({}, r, {
color: "#859900"
}),
"& .hljs-doctag, .hljs-literal, .hljs-meta .hljs-meta-string, .hljs-number, .hljs-regexp, .hljs-string": Object.assign({}, r, {
color: "#2aa198"
}),
"& .hljs-name, .hljs-section, .hljs-selector-class, .hljs-selector-id, .hljs-title": Object.assign({}, r, {
color: "#268bd2"
}),
"& .hljs-attr, .hljs-attribute, .hljs-class .hljs-title, .hljs-template-variable, .hljs-type, .hljs-variable": Object.assign({}, r, {
color: "#b58900"
}),
"& .hljs-bullet, .hljs-link, .hljs-meta, .hljs-meta .hljs-keyword, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-subst, .hljs-symbol": Object.assign({}, r, {
color: "#cb4b16"
}),
"& .hljs-built_in, .hljs-deletion": Object.assign({}, r, {
color: "#dc322f"
}),
"& .hljs-formula": Object.assign({}, r, {
background: "#073642"
}),
"& .hljs-emphasis": Object.assign({}, r, {
fontStyle: "italic"
}),
"& .hljs-strong": Object.assign({}, r, {
fontWeight: "700"
})
},
dark: {
"& .hljs-comment, .hljs-quote": Object.assign({}, r, {
color: "#586e75"
}),
"& .hljs-addition, .hljs-keyword, .hljs-selector-tag": Object.assign({}, r, {
color: "#859900"
}),
"& .hljs-doctag, .hljs-literal, .hljs-meta .hljs-meta-string, .hljs-number, .hljs-regexp, .hljs-string": Object.assign({}, r, {
color: "#2aa198"
}),
"& .hljs-name, .hljs-section, .hljs-selector-class, .hljs-selector-id, .hljs-title": Object.assign({}, r, {
color: "#268bd2"
}),
"& .hljs-attr, .hljs-attribute, .hljs-class .hljs-title, .hljs-template-variable, .hljs-type, .hljs-variable": Object.assign({}, r, {
color: "#b58900"
}),
"& .hljs-bullet, .hljs-link, .hljs-meta, .hljs-meta .hljs-keyword, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-subst, .hljs-symbol": Object.assign({}, r, {
color: "#cb4b16"
}),
"& .hljs-built_in, .hljs-deletion": Object.assign({}, r, {
color: "#dc322f"
}),
"& .hljs-formula": Object.assign({}, r, {
background: "#073642"
}),
"& .hljs-emphasis": Object.assign({}, r, {
fontStyle: "italic"
}),
"& .hljs-strong": Object.assign({}, r, {
fontWeight: "700"
})
}
}
}, function(e, t, n) {
const r = n(139),
a = n(140);
function i(e, t, n, r) {
n = n || {}, r = void 0 === r || r;
let a = "";
for (let e in n) Object.prototype.hasOwnProperty.call(n, e) && n[e] && (a += " " + e + '="' + n[e] + '"');
let i = "<" + e + a + ">";
return r ? i + t + "</" + e + ">" : i
}
const o = {
codeBlock: Object.assign(r.defaultRules.codeBlock, {
html: e => {
if (e.lang && a.getLanguage(e.lang)) var t = a.highlight(e.lang, e.content);
return `<pre><code class="hljs${t?" "+t.language:""}">${t?t.value:e.content}</code></pre>`
}
}),
fence: Object.assign(r.defaultRules.fence, {
match: r.inlineRegex(/^ *(`{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)*/)
}),
newline: r.defaultRules.newline,
escape: r.defaultRules.escape,
autolink: Object.assign(r.defaultRules.autolink, {
parse: e => ({
content: [{
type: "text",
content: e[1]
}],
target: e[1]
}),
html: (e, t, n) => i("a", t(e.content, n), {
href: r.sanitizeUrl(e.target)
})
}),
url: Object.assign(r.defaultRules.url, {
parse: e => ({
content: [{
type: "text",
content: e[1]
}],
target: e[1]
}),
html: (e, t, n) => i("a", t(e.content, n), {
href: r.sanitizeUrl(e.target)
})
}),
em: r.defaultRules.em,
strong: r.defaultRules.strong,
u: r.defaultRules.u,
del: r.defaultRules.del,
inlineCode: r.defaultRules.inlineCode,
text: Object.assign(r.defaultRules.text, {
match: e => /^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff-]|\n\n| {2,}\n|\w+:\S|$)/.exec(e)
})
},
s = r.parserFor(o),
l = r.htmlFor(r.ruleOutput(o, "html"));
e.exports = {
parser: e => s(e, {
inline: !0
}),
htmlOutput: l,
toHTML: e => l(s(e, {
inline: !0
}))
}
}, function(e, t, n) {
(function(t) {
! function() {
var n, r, a, i, o, s, l, c, u, d, p, m = /\r\n?/g,
g = /\t/g,
f = /\f/g,
h = function(e) {
return e.replace(m, "\n").replace(f, "").replace(g, " ")
},
b = function(e) {
var t = Object.keys(e);
t.forEach(function(t) {
var n = e[t].order;
"number" == typeof n && isFinite(n) || "undefined" == typeof console || console.warn("simple-markdown: Invalid order for rule `" + t + "`: " + n)
}), t.sort(function(t, n) {
var r = e[t],
a = e[n],
i = r.order,
o = a.order;
if (i !== o) return i - o;
var s = r.quality ? 0 : 1,
l = a.quality ? 0 : 1;
return s !== l ? s - l : t < n ? -1 : t > n ? 1 : 0
});
var n = function(r, a) {
var i = [];
a = a || {};
for (var o = ""; r;) {
var s = null,
l = null,
c = null,
u = NaN,
d = 0,
p = t[0],
m = e[p];
do {
var g = m.order,
f = m.match(r, a, o);
if (f) {
var h = m.quality ? m.quality(f, a, o) : 0;
h <= u || (s = p, l = m, c = f, u = h)
}
p = t[++d], m = e[p]
} while (m && (!c || m.order === g && m.quality));
if (!c) throw new Error("could not find rule to match content: " + r);
var b = l.parse(c, n, a);
Array.isArray(b) ? Array.prototype.push.apply(i, b) : (null == b.type && (b.type = s), i.push(b)), o = c[0], r = r.substring(o.length)
}
return i
};
return function(e, t) {
return n(h(e), t)
}
},
_ = function(e) {
var t = function(t, n) {
return n.inline ? e.exec(t) : null
};
return t.regex = e, t
},
v = function(e) {
var t = function(t, n) {
return n.inline ? null : e.exec(t)
};
return t.regex = e, t
},
y = function(e) {
var t = function(t, n) {
return e.exec(t)
};
return t.regex = e, t
},
E = function(e) {
var t = function(n, r) {
if (r = r || {}, Array.isArray(n)) {
for (var a = r.key, i = [], o = !1, s = 0; s < n.length; s++) {
r.key = "" + s;
var l = t(n[s], r),
c = "string" == typeof l;
c && o ? i[i.length - 1] += l : i.push(l), o = c
}
return r.key = a, i
}
return e(n, t, r)
};
return t
},
S = function(e) {
var t = function(n, r) {
return r = r || {}, Array.isArray(n) ? n.map(function(e) {
return t(e, r)
}).join("") : e(n, t, r)
};
return t
},
x = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103,
w = function(e, t, n) {
return {
$$typeof: x,
type: e,
key: t,
ref: null,
props: n,
_owner: null
}
},
C = function(e, t, n, r) {
n = n || {}, r = void 0 === r || r;
var a = "";
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && n[i] && (a += " " + i + '="' + n[i] + '"');
var o = "<" + e + a + ">";
return r ? o + t + "</" + e + ">" : o
},
T = {},
N = function(e) {
if (null == e) return null;
try {
if (0 === decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, "").toLowerCase().indexOf("javascript:")) return null
} catch (e) {
return null
}
return e
},
O = /\\([^0-9A-Za-z\s])/g,
M = function(e) {
return e.replace(O, "$1")
},
D = function(e, t, n) {
var r = n.inline || !1;
n.inline = !0;
var a = e(t, n);
return n.inline = r, a
},
A = function(e, t, n) {
return {
content: D(t, e[1], n)
}
},
k = function() {
return {}
},
R = "(?:[*+-]|\\d+\\.)",
I = "( *)(" + R + ") +",
L = new RegExp("^" + I),
P = new RegExp(I + "[^\\n]*(?:\\n(?!\\1" + R + " )[^\\n]*)*(\n|$)", "gm"),
F = /\n{2,}$/,
B = F,
U = / *\n+$/,
G = new RegExp("^( *)(" + R + ") [\\s\\S]+?(?:\n{2,}(?! )(?!\\1" + R + " )\\n*|\\s*\n*$)"),
q = /^$|\n *$/,
z = (n = /^ *| *\| *$/g, r = /\n+$/, a = /^ *\| *| *\| *$/g, i = /^ *| *$/g, o = / *\| */, s = /^ *-+: *$/, l = /^ *:-+: *$/, c = /^ *:-+ *$/, u = function(e) {
return s.test(e) ? "right" : l.test(e) ? "center" : c.test(e) ? "left" : null
}, d = function(e, t, n, r) {
return t[1].replace(e, "").split(o).map(function(e) {
return n(e, r)
})
}, p = function(e, t, n, r) {
return t[2].replace(e, "").split(o).map(u)
}, {
parseTable: function(e, t, i) {
i.inline = !0;
var s, l, c = d(n, e, t, i),
u = p(n, e),
m = (s = t, l = i, e[3].replace(r, "").split("\n").map(function(e) {
return e.replace(a, "").split(o).map(function(e) {
return s(e, l)
})
}));
return i.inline = !1, {
type: "table",
header: c,
align: u,
cells: m
}
},
parseNpTable: function(e, t, n) {
n.inline = !0;
var a, s, l = d(i, e, t, n),
c = p(i, e),
u = (a = t, s = n, e[3].replace(r, "").split("\n").map(function(e) {
return e.split(o).map(function(e) {
return a(e, s)
})
}));
return n.inline = !1, {
type: "table",
header: l,
align: c,
cells: u
}
},
NPTABLE_REGEX: /^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/
}),
j = "(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",
H = "\\s*<?((?:[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*",
$ = /mailto:/i,
W = function(e, t, n) {
var r = (e[2] || e[1]).replace(/\s+/g, " ").toLowerCase();
if (t._defs && t._defs[r]) {
var a = t._defs[r];
n.target = a.target, n.title = a.title
}
return t._refs = t._refs || {}, t._refs[r] = t._refs[r] || [], t._refs[r].push(n), n
},
V = {
heading: {
match: v(/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n *)+\n/),
parse: function(e, t, n) {
return {
level: e[1].length,
content: D(t, e[2], n)
}
},
react: function(e, t, n) {
return w("h" + e.level, n.key, {
children: t(e.content, n)
})
},
html: function(e, t, n) {
return C("h" + e.level, t(e.content, n))
}
},
nptable: {
match: v(z.NPTABLE_REGEX),
regex: z.NPTABLE_REGEX,
parse: z.parseNpTable
},
lheading: {
match: v(/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/),
parse: function(e, t, n) {
return {
type: "heading",
level: "=" === e[2] ? 1 : 2,
content: D(t, e[1], n)
}
}
},
hr: {
match: v(/^( *[-*_]){3,} *(?:\n *)+\n/),
parse: k,
react: function(e, t, n) {
return w("hr", n.key, T)
},
html: function(e, t, n) {
return "<hr>"
}
},
codeBlock: {
match: v(/^(?: [^\n]+\n*)+(?:\n *)+\n/),
parse: function(e, t, n) {
return {
lang: void 0,
content: e[0].replace(/^ /gm, "").replace(/\n+$/, "")
}
},
react: function(e, t, n) {
var r = e.lang ? "markdown-code-" + e.lang : void 0;
return w("pre", n.key, {
children: w("code", null, {
className: r,
children: e.content
})
})
},
html: function(e, t, n) {
var r = e.lang ? "markdown-code-" + e.lang : void 0,
a = C("code", e.content, {
class: r
});
return C("pre", a)
}
},
fence: {
match: v(/^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n *)+\n/),
parse: function(e, t, n) {
return {
type: "codeBlock",
lang: e[2] || void 0,
content: e[3]
}
}
},
blockQuote: {
match: v(/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/),
parse: function(e, t, n) {
return {
content: t(e[0].replace(/^ *> ?/gm, ""), n)
}
},
react: function(e, t, n) {
return w("blockquote", n.key, {
children: t(e.content, n)
})
},
html: function(e, t, n) {
return C("blockquote", t(e.content, n))
}
},
list: {
match: function(e, t, n) {
var r = q.test(n),
a = t._list || !t.inline;
return r && a ? G.exec(e) : null
},
parse: function(e, t, n) {
var r = e[2],
a = r.length > 1,
i = a ? +r : void 0,
o = e[0].replace(B, "\n").match(P),
s = !1;
return {
ordered: a,
start: i,
items: o.map(function(e, r) {
var a = L.exec(e)[0].length,
i = new RegExp("^ {1," + a + "}", "gm"),
l = e.replace(i, "").replace(L, ""),
c = r === o.length - 1,
u = -1 !== l.indexOf("\n\n") || c && s;
s = u;
var d, p = n.inline,
m = n._list;
n._list = !0, u ? (n.inline = !1, d = l.replace(U, "\n\n")) : (n.inline = !0, d = l.replace(U, ""));
var g = t(d, n);
return n.inline = p, n._list = m, g
})
}
},
react: function(e, t, n) {
var r = e.ordered ? "ol" : "ul";
return w(r, n.key, {
start: e.start,
children: e.items.map(function(e, r) {
return w("li", "" + r, {
children: t(e, n)
})
})
})
},
html: function(e, t, n) {
var r = e.items.map(function(e) {
return C("li", t(e, n))
}).join(""),
a = e.ordered ? "ol" : "ul",
i = {
start: e.start
};
return C(a, r, i)
}
},
def: {
match: v(/^ *\[([^\]]+)\]: *<?([^\s>]*)>?(?: +["(]([^\n]+)[")])? *\n(?: *\n)?/),
parse: function(e, t, n) {
var r = e[1].replace(/\s+/g, " ").toLowerCase(),
a = e[2],
i = e[3];
return n._refs && n._refs[r] && n._refs[r].forEach(function(e) {
e.target = a, e.title = i
}), n._defs = n._defs || {}, n._defs[r] = {
target: a,
title: i
}, {
def: r,
target: a,
title: i
}
},
react: function() {
return null
},
html: function() {
return ""
}
},
table: {
match: v(/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/),
parse: z.parseTable,
react: function(e, t, n) {
var r = function(t) {
return null == e.align[t] ? {} : {
textAlign: e.align[t]
}
},
a = e.header.map(function(e, a) {
return w("th", "" + a, {
style: r(a),
scope: "col",
children: t(e, n)
})
}),
i = e.cells.map(function(e, a) {
return w("tr", "" + a, {
children: e.map(function(e, a) {
return w("td", "" + a, {
style: r(a),
children: t(e, n)
})
})
})
});
return w("table", n.key, {
children: [w("thead", "thead", {
children: w("tr", null, {
children: a
})
}), w("tbody", "tbody", {
children: i
})]
})
},
html: function(e, t, n) {
var r = function(t) {
return null == e.align[t] ? "" : "text-align:" + e.align[t] + ";"
},
a = e.header.map(function(e, a) {
return C("th", t(e, n), {
style: r(a),
scope: "col"
})
}).join(""),
i = e.cells.map(function(e) {
var a = e.map(function(e, a) {
return C("td", t(e, n), {
style: r(a)
})
}).join("");
return C("tr", a)
}).join(""),
o = C("thead", C("tr", a)),
s = C("tbody", i);
return C("table", o + s)
}
},
newline: {
match: v(/^(?:\n *)*\n/),
parse: k,
react: function(e, t, n) {
return "\n"
},
html: function(e, t, n) {
return "\n"
}
},
paragraph: {
match: v(/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/),
parse: A,
react: function(e, t, n) {
return w("div", n.key, {
className: "paragraph",
children: t(e.content, n)
})
},
html: function(e, t, n) {
return C("div", t(e.content, n), {
class: "paragraph"
})
}
},
escape: {
match: _(/^\\([^0-9A-Za-z\s])/),
parse: function(e, t, n) {
return {
type: "text",
content: e[1]
}
}
},
autolink: {
match: _(/^<([^ >]+:\/[^ >]+)>/),
parse: function(e, t, n) {
return {
type: "link",
content: [{
type: "text",
content: e[1]
}],
target: e[1]
}
}
},
mailto: {
match: _(/^<([^ >]+@[^ >]+)>/),
parse: function(e, t, n) {
var r = e[1],
a = e[1];
return $.test(a) || (a = "mailto:" + a), {
type: "link",
content: [{
type: "text",
content: r
}],
target: a
}
}
},
url: {
match: _(/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/),
parse: function(e, t, n) {
return {
type: "link",
content: [{
type: "text",
content: e[1]
}],
target: e[1],
title: void 0
}
}
},
link: {
match: _(new RegExp("^\\[(" + j + ")\\]\\(" + H + "\\)")),
parse: function(e, t, n) {
return {
content: t(e[1], n),
target: M(e[2]),
title: e[3]
}
},
react: function(e, t, n) {
return w("a", n.key, {
href: N(e.target),
title: e.title,
children: t(e.content, n)
})
},
html: function(e, t, n) {
var r = {
href: N(e.target),
title: e.title
};
return C("a", t(e.content, n), r)
}
},
image: {
match: _(new RegExp("^!\\[(" + j + ")\\]\\(" + H + "\\)")),
parse: function(e, t, n) {
return {
alt: e[1],
target: M(e[2]),
title: e[3]
}
},
react: function(e, t, n) {
return w("img", n.key, {
src: N(e.target),
alt: e.alt,
title: e.title
})
},
html: function(e, t, n) {
var r = {
src: N(e.target),
alt: e.alt,
title: e.title
};
return C("img", "", r, !1)
}
},
reflink: {
match: _(new RegExp("^\\[(" + j + ")\\]\\s*\\[([^\\]]*)\\]")),
parse: function(e, t, n) {
return W(e, n, {
type: "link",
content: t(e[1], n)
})
}
},
refimage: {
match: _(new RegExp("^!\\[(" + j + ")\\]\\s*\\[([^\\]]*)\\]")),
parse: function(e, t, n) {
return W(e, n, {
type: "image",
alt: e[1]
})
}
},
em: {
match: _(new RegExp("^\\b_((?:__|\\\\[\\s\\S]|[^\\\\_])+?)_\\b|^\\*(?=\\S)((?:\\*\\*|\\s+(?:[^\\*\\s]|\\*\\*)|[^\\s\\*])+?)\\*(?!\\*)")),
quality: function(e) {
return e[0].length + .2
},
parse: function(e, t, n) {
return {
content: t(e[2] || e[1], n)
}
},
react: function(e, t, n) {
return w("em", n.key, {
children: t(e.content, n)
})
},
html: function(e, t, n) {
return C("em", t(e.content, n))
}
},
strong: {
match: _(/^\*\*([\s\S]+?)\*\*(?!\*)/),
quality: function(e) {
return e[0].length + .1
},
parse: A,
react: function(e, t, n) {
return w("strong", n.key, {
children: t(e.content, n)
})
},
html: function(e, t, n) {
return C("strong", t(e.content, n))
}
},
u: {
match: _(/^__([\s\S]+?)__(?!_)/),
quality: function(e) {
return e[0].length
},
parse: A,
react: function(e, t, n) {
return w("u", n.key, {
children: t(e.content, n)
})
},
html: function(e, t, n) {
return C("u", t(e.content, n))
}
},
del: {
match: _(/^~~(?=\S)([\s\S]*?\S)~~/),
parse: A,
react: function(e, t, n) {
return w("del", n.key, {
children: t(e.content, n)
})
},
html: function(e, t, n) {
return C("del", t(e.content, n))
}
},
inlineCode: {
match: _(/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/),
parse: function(e, t, n) {
return {
content: e[2]
}
},
react: function(e, t, n) {
return w("code", n.key, {
children: e.content
})
},
html: function(e, t, n) {
return C("code", e.content)
}
},
br: {
match: y(/^ {2,}\n/),
parse: k,
react: function(e, t, n) {
return w("br", n.key, T)
},
html: function(e, t, n) {
return "<br>"
}
},
text: {
match: _(/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|$)/),
parse: function(e, t, n) {
return {
content: e[0]
}
},
react: function(e, t, n) {
return e.content
},
html: function(e, t, n) {
return e.content
}
}
};
Object.keys(V).forEach(function(e, t) {
V[e].order = t
}), V.strong.order = V.em.order = V.u.order;
var K = function(e, t) {
t || "undefined" == typeof console || console.warn("simple-markdown ruleOutput should take 'react' or 'html' as the second argument."), t = t || "react";
return function(n, r, a) {
return e[n.type][t](n, r, a)
}
},
Q = b(V),
Z = function(e) {
return Q(e, {
inline: !F.test(e)
})
},
X = E(K(V, "react")),
Y = S(K(V, "html")),
J = {
defaultRules: V,
parserFor: b,
ruleOutput: K,
reactFor: E,
htmlFor: S,
inlineRegex: _,
blockRegex: v,
anyScopeRegex: y,
parseInline: D,
parseBlock: function(e, t, n) {
var r = n.inline || !1;
n.inline = !1;
var a = e(t + "\n\n", n);
return n.inline = r, a
},
defaultRawParse: Q,
defaultBlockParse: function(e) {
return Q(e + "\n\n", {
inline: !1
})
},
defaultInlineParse: function(e) {
return Q(e, {
inline: !0
})
},
defaultImplicitParse: Z,
defaultReactOutput: X,
defaultHtmlOutput: Y,
preprocess: h,
sanitizeUrl: N,
unescapeUrl: M,
defaultParse: Z,
outputFor: E,
defaultOutput: X
};
void 0 !== e && e.exports ? e.exports = J : void 0 !== t ? t.SimpleMarkdown = J : window.SimpleMarkdown = J
}()
}).call(t, n(0))
}, function(e, t, n) {
var r = n(141);
r.registerLanguage("1c", n(142)), r.registerLanguage("abnf", n(143)), r.registerLanguage("accesslog", n(144)), r.registerLanguage("actionscript", n(145)), r.registerLanguage("ada", n(146)), r.registerLanguage("apache", n(147)), r.registerLanguage("applescript", n(148)), r.registerLanguage("cpp", n(149)), r.registerLanguage("arduino", n(150)), r.registerLanguage("armasm", n(151)), r.registerLanguage("xml", n(152)), r.registerLanguage("asciidoc", n(153)), r.registerLanguage("aspectj", n(154)), r.registerLanguage("autohotkey", n(155)), r.registerLanguage("autoit", n(156)), r.registerLanguage("avrasm", n(157)), r.registerLanguage("awk", n(158)), r.registerLanguage("axapta", n(159)), r.registerLanguage("bash", n(160)), r.registerLanguage("basic", n(161)), r.registerLanguage("bnf", n(162)), r.registerLanguage("brainfuck", n(163)), r.registerLanguage("cal", n(164)), r.registerLanguage("capnproto", n(165)), r.registerLanguage("ceylon", n(166)), r.registerLanguage("clean", n(167)), r.registerLanguage("clojure", n(168)), r.registerLanguage("clojure-repl", n(169)), r.registerLanguage("cmake", n(170)), r.registerLanguage("coffeescript", n(171)), r.registerLanguage("coq", n(172)), r.registerLanguage("cos", n(173)), r.registerLanguage("crmsh", n(174)), r.registerLanguage("crystal", n(175)), r.registerLanguage("cs", n(176)), r.registerLanguage("csp", n(177)), r.registerLanguage("css", n(178)), r.registerLanguage("d", n(179)), r.registerLanguage("markdown", n(180)), r.registerLanguage("dart", n(181)), r.registerLanguage("delphi", n(182)), r.registerLanguage("diff", n(183)), r.registerLanguage("django", n(184)), r.registerLanguage("dns", n(185)), r.registerLanguage("dockerfile", n(186)), r.registerLanguage("dos", n(187)), r.registerLanguage("dsconfig", n(188)), r.registerLanguage("dts", n(189)), r.registerLanguage("dust", n(190)), r.registerLanguage("ebnf", n(191)), r.registerLanguage("elixir", n(192)), r.registerLanguage("elm", n(193)), r.registerLanguage("ruby", n(194)), r.registerLanguage("erb", n(195)), r.registerLanguage("erlang-repl", n(196)), r.registerLanguage("erlang", n(197)), r.registerLanguage("excel", n(198)), r.registerLanguage("fix", n(199)), r.registerLanguage("flix", n(200)), r.registerLanguage("fortran", n(201)), r.registerLanguage("fsharp", n(202)), r.registerLanguage("gams", n(203)), r.registerLanguage("gauss", n(204)), r.registerLanguage("gcode", n(205)), r.registerLanguage("gherkin", n(206)), r.registerLanguage("glsl", n(207)), r.registerLanguage("go", n(208)), r.registerLanguage("golo", n(209)), r.registerLanguage("gradle", n(210)), r.registerLanguage("groovy", n(211)), r.registerLanguage("haml", n(212)), r.registerLanguage("handlebars", n(213)), r.registerLanguage("haskell", n(214)), r.registerLanguage("haxe", n(215)), r.registerLanguage("hsp", n(216)), r.registerLanguage("htmlbars", n(217)), r.registerLanguage("http", n(218)), r.registerLanguage("hy", n(219)), r.registerLanguage("inform7", n(220)), r.registerLanguage("ini", n(221)), r.registerLanguage("irpf90", n(222)), r.registerLanguage("java", n(223)), r.registerLanguage("javascript", n(224)), r.registerLanguage("jboss-cli", n(225)), r.registerLanguage("json", n(226)), r.registerLanguage("julia", n(227)), r.registerLanguage("julia-repl", n(228)), r.registerLanguage("kotlin", n(229)), r.registerLanguage("lasso", n(230)), r.registerLanguage("ldif", n(231)), r.registerLanguage("leaf", n(232)), r.registerLanguage("less", n(233)), r.registerLanguage("lisp", n(234)), r.registerLanguage("livecodeserver", n(235)), r.registerLanguage("livescript", n(236)), r.registerLanguage("llvm", n(237)), r.registerLanguage("lsl", n(238)), r.registerLanguage("lua", n(239)), r.registerLanguage("makefile", n(240)), r.registerLanguage("mathematica", n(241)), r.registerLanguage("matlab", n(242)), r.registerLanguage("maxima", n(243)), r.registerLanguage("mel", n(244)), r.registerLanguage("mercury", n(245)), r.registerLanguage("mipsasm", n(246)), r.registerLanguage("mizar", n(247)), r.registerLanguage("perl", n(248)), r.registerLanguage("mojolicious", n(249)), r.registerLanguage("monkey", n(250)), r.registerLanguage("moonscript", n(251)), r.registerLanguage("n1ql", n(252)), r.registerLanguage("nginx", n(253)), r.registerLanguage("nimrod", n(254)), r.registerLanguage("nix", n(255)), r.registerLanguage("nsis", n(256)), r.registerLanguage("objectivec", n(257)), r.registerLanguage("ocaml", n(258)), r.registerLanguage("openscad", n(259)), r.registerLanguage("oxygene", n(260)), r.registerLanguage("parser3", n(261)), r.registerLanguage("pf", n(262)), r.registerLanguage("php", n(263)), r.registerLanguage("pony", n(264)), r.registerLanguage("powershell", n(265)), r.registerLanguage("processing", n(266)), r.registerLanguage("profile", n(267)), r.registerLanguage("prolog", n(268)), r.registerLanguage("protobuf", n(269)), r.registerLanguage("puppet", n(270)), r.registerLanguage("purebasic", n(271)), r.registerLanguage("python", n(272)), r.registerLanguage("q", n(273)), r.registerLanguage("qml", n(274)), r.registerLanguage("r", n(275)), r.registerLanguage("rib", n(276)), r.registerLanguage("roboconf", n(277)), r.registerLanguage("routeros", n(278)), r.registerLanguage("rsl", n(279)), r.registerLanguage("ruleslanguage", n(280)), r.registerLanguage("rust", n(281)), r.registerLanguage("scala", n(282)), r.registerLanguage("scheme", n(283)), r.registerLanguage("scilab", n(284)), r.registerLanguage("scss", n(285)), r.registerLanguage("shell", n(286)), r.registerLanguage("smali", n(287)), r.registerLanguage("smalltalk", n(288)), r.registerLanguage("sml", n(289)), r.registerLanguage("sqf", n(290)), r.registerLanguage("sql", n(291)), r.registerLanguage("stan", n(292)), r.registerLanguage("stata", n(293)), r.registerLanguage("step21", n(294)), r.registerLanguage("stylus", n(295)), r.registerLanguage("subunit", n(296)), r.registerLanguage("swift", n(297)), r.registerLanguage("taggerscript", n(298)), r.registerLanguage("yaml", n(299)), r.registerLanguage("tap", n(300)), r.registerLanguage("tcl", n(301)), r.registerLanguage("tex", n(302)), r.registerLanguage("thrift", n(303)), r.registerLanguage("tp", n(304)), r.registerLanguage("twig", n(305)), r.registerLanguage("typescript", n(306)), r.registerLanguage("vala", n(307)), r.registerLanguage("vbnet", n(308)), r.registerLanguage("vbscript", n(309)), r.registerLanguage("vbscript-html", n(310)), r.registerLanguage("verilog", n(311)), r.registerLanguage("vhdl", n(312)), r.registerLanguage("vim", n(313)), r.registerLanguage("x86asm", n(314)), r.registerLanguage("xl", n(315)), r.registerLanguage("xquery", n(316)), r.registerLanguage("zephir", n(317)), e.exports = r
}, function(e, t, n) {
! function(e) {
"object" == typeof window && window || "object" == typeof self && self;
e(t)
}(function(e) {
var t = [],
n = Object.keys,
r = {},
a = {},
i = /^(no-?highlight|plain|text)$/i,
o = /\blang(?:uage)?-([\w-]+)\b/i,
s = /((^(<[^>]+>|\t|)+|(?:\n)))/gm,
l = "</span>",
c = {
classPrefix: "hljs-",
tabReplace: null,
useBR: !1,
languages: void 0
};
function u(e) {
return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")
}
function d(e) {
return e.nodeName.toLowerCase()
}
function p(e, t) {
var n = e && e.exec(t);
return n && 0 === n.index
}
function m(e) {
return i.test(e)
}
function g(e) {
var t, n = {},
r = Array.prototype.slice.call(arguments, 1);
for (t in e) n[t] = e[t];
return r.forEach(function(e) {
for (t in e) n[t] = e[t]
}), n
}
function f(e) {
var t = [];
return function e(n, r) {
for (var a = n.firstChild; a; a = a.nextSibling) 3 === a.nodeType ? r += a.nodeValue.length : 1 === a.nodeType && (t.push({
event: "start",
offset: r,
node: a
}), r = e(a, r), d(a).match(/br|hr|img|input/) || t.push({
event: "stop",
offset: r,
node: a
}));
return r
}(e, 0), t
}
function h(e) {
function t(e) {
return e && e.source || e
}
function r(n, r) {
return new RegExp(t(n), "m" + (e.case_insensitive ? "i" : "") + (r ? "g" : ""))
}! function a(i, o) {
if (!i.compiled) {
if (i.compiled = !0, i.keywords = i.keywords || i.beginKeywords, i.keywords) {
var s = {},
l = function(t, n) {
e.case_insensitive && (n = n.toLowerCase()), n.split(" ").forEach(function(e) {
var n = e.split("|");
s[n[0]] = [t, n[1] ? Number(n[1]) : 1]
})
};
"string" == typeof i.keywords ? l("keyword", i.keywords) : n(i.keywords).forEach(function(e) {
l(e, i.keywords[e])
}), i.keywords = s
}
i.lexemesRe = r(i.lexemes || /\w+/, !0), o && (i.beginKeywords && (i.begin = "\\b(" + i.beginKeywords.split(" ").join("|") + ")\\b"), i.begin || (i.begin = /\B|\b/), i.beginRe = r(i.begin), i.end || i.endsWithParent || (i.end = /\B|\b/), i.end && (i.endRe = r(i.end)), i.terminator_end = t(i.end) || "", i.endsWithParent && o.terminator_end && (i.terminator_end += (i.end ? "|" : "") + o.terminator_end)), i.illegal && (i.illegalRe = r(i.illegal)), null == i.relevance && (i.relevance = 1), i.contains || (i.contains = []), i.contains = Array.prototype.concat.apply([], i.contains.map(function(e) {
return (t = "self" === e ? i : e).variants && !t.cached_variants && (t.cached_variants = t.variants.map(function(e) {
return g(t, {
variants: null
}, e)
})), t.cached_variants || t.endsWithParent && [g(t)] || [t];
var t
})), i.contains.forEach(function(e) {
a(e, i)
}), i.starts && a(i.starts, o);
var c = i.contains.map(function(e) {
return e.beginKeywords ? "\\.?(" + e.begin + ")\\.?" : e.begin
}).concat([i.terminator_end, i.illegal]).map(t).filter(Boolean);
i.terminators = c.length ? r(c.join("|"), !0) : {
exec: function() {
return null
}
}
}
}(e)
}
function b(e, t, n, a) {
function i(e, t, n, r) {
var a = '<span class="' + (r ? "" : c.classPrefix);
return (a += e + '">') + t + (n ? "" : l)
}
function o() {
y += null != f.subLanguage ? function() {
var e = "string" == typeof f.subLanguage;
if (e && !r[f.subLanguage]) return u(E);
var t = e ? b(f.subLanguage, E, !0, v[f.subLanguage]) : _(E, f.subLanguage.length ? f.subLanguage : void 0);
return f.relevance > 0 && (x += t.relevance), e && (v[f.subLanguage] = t.top), i(t.language, t.value, !1, !0)
}() : function() {
var e, t, n, r, a, o, s;
if (!f.keywords) return u(E);
for (r = "", t = 0, f.lexemesRe.lastIndex = 0, n = f.lexemesRe.exec(E); n;) r += u(E.substring(t, n.index)), a = f, o = n, s = m.case_insensitive ? o[0].toLowerCase() : o[0], (e = a.keywords.hasOwnProperty(s) && a.keywords[s]) ? (x += e[1], r += i(e[0], u(n[0]))) : r += u(n[0]), t = f.lexemesRe.lastIndex, n = f.lexemesRe.exec(E);
return r + u(E.substr(t))
}(), E = ""
}
function s(e) {
y += e.className ? i(e.className, "", !0) : "", f = Object.create(e, {
parent: {
value: f
}
})
}
function d(e, t) {
if (E += e, null == t) return o(), 0;
var r = function(e, t) {
var n, r;
for (n = 0, r = t.contains.length; n < r; n++)
if (p(t.contains[n].beginRe, e)) return t.contains[n]
}(t, f);
if (r) return r.skip ? E += t : (r.excludeBegin && (E += t), o(), r.returnBegin || r.excludeBegin || (E = t)), s(r), r.returnBegin ? 0 : t.length;
var a, i = function e(t, n) {
if (p(t.endRe, n)) {
for (; t.endsParent && t.parent;) t = t.parent;
return t
}
if (t.endsWithParent) return e(t.parent, n)
}(f, t);
if (i) {
var c = f;
c.skip ? E += t : (c.returnEnd || c.excludeEnd || (E += t), o(), c.excludeEnd && (E = t));
do {
f.className && (y += l), f.skip || (x += f.relevance), f = f.parent
} while (f !== i.parent);
return i.starts && s(i.starts), c.returnEnd ? 0 : t.length
}
if (a = t, !n && p(f.illegalRe, a)) throw new Error('Illegal lexeme "' + t + '" for mode "' + (f.className || "<unnamed>") + '"');
return E += t, t.length || 1
}
var m = S(e);
if (!m) throw new Error('Unknown language: "' + e + '"');
h(m);
var g, f = a || m,
v = {},
y = "";
for (g = f; g !== m; g = g.parent) g.className && (y = i(g.className, "", !0) + y);
var E = "",
x = 0;
try {
for (var w, C, T = 0; f.terminators.lastIndex = T, w = f.terminators.exec(t);) C = d(t.substring(T, w.index), w[0]), T = w.index + C;
for (d(t.substr(T)), g = f; g.parent; g = g.parent) g.className && (y += l);
return {
relevance: x,
value: y,
language: e,
top: f
}
} catch (e) {
if (e.message && -1 !== e.message.indexOf("Illegal")) return {
relevance: 0,
value: u(t)
};
throw e
}
}
function _(e, t) {
t = t || c.languages || n(r);
var a = {
relevance: 0,
value: u(e)
},
i = a;
return t.filter(S).forEach(function(t) {
var n = b(t, e, !1);
n.language = t, n.relevance > i.relevance && (i = n), n.relevance > a.relevance && (i = a, a = n)
}), i.language && (a.second_best = i), a
}
function v(e) {
return c.tabReplace || c.useBR ? e.replace(s, function(e, t) {
return c.useBR && "\n" === e ? "<br>" : c.tabReplace ? t.replace(/\t/g, c.tabReplace) : ""
}) : e
}
function y(e) {
var n, r, i, s, l, p, g, h, y, E, x = function(e) {
var t, n, r, a, i = e.className + " ";
if (i += e.parentNode ? e.parentNode.className : "", n = o.exec(i)) return S(n[1]) ? n[1] : "no-highlight";
for (t = 0, r = (i = i.split(/\s+/)).length; t < r; t++)
if (m(a = i[t]) || S(a)) return a
}(e);
m(x) || (c.useBR ? (n = document.createElementNS("http://www.w3.org/1999/xhtml", "div")).innerHTML = e.innerHTML.replace(/\n/g, "").replace(/<br[ \/]*>/g, "\n") : n = e, l = n.textContent, i = x ? b(x, l, !0) : _(l), (r = f(n)).length && ((s = document.createElementNS("http://www.w3.org/1999/xhtml", "div")).innerHTML = i.value, i.value = function(e, n, r) {
var a = 0,
i = "",
o = [];
function s() {
return e.length && n.length ? e[0].offset !== n[0].offset ? e[0].offset < n[0].offset ? e : n : "start" === n[0].event ? e : n : e.length ? e : n
}
function l(e) {
i += "<" + d(e) + t.map.call(e.attributes, function(e) {
return " " + e.nodeName + '="' + u(e.value).replace('"', "&quot;") + '"'
}).join("") + ">"
}
function c(e) {
i += "</" + d(e) + ">"
}
function p(e) {
("start" === e.event ? l : c)(e.node)
}
for (; e.length || n.length;) {
var m = s();
if (i += u(r.substring(a, m[0].offset)), a = m[0].offset, m === e) {
o.reverse().forEach(c);
do {
p(m.splice(0, 1)[0]), m = s()
} while (m === e && m.length && m[0].offset === a);
o.reverse().forEach(l)
} else "start" === m[0].event ? o.push(m[0].node) : o.pop(), p(m.splice(0, 1)[0])
}
return i + u(r.substr(a))
}(r, f(s), l)), i.value = v(i.value), e.innerHTML = i.value, e.className = (p = e.className, g = x, h = i.language, y = g ? a[g] : h, E = [p.trim()], p.match(/\bhljs\b/) || E.push("hljs"), -1 === p.indexOf(y) && E.push(y), E.join(" ").trim()), e.result = {
language: i.language,
re: i.relevance
}, i.second_best && (e.second_best = {
language: i.second_best.language,
re: i.second_best.relevance
}))
}
function E() {
if (!E.called) {
E.called = !0;
var e = document.querySelectorAll("pre code");
t.forEach.call(e, y)
}
}
function S(e) {
return e = (e || "").toLowerCase(), r[e] || r[a[e]]
}
return e.highlight = b, e.highlightAuto = _, e.fixMarkup = v, e.highlightBlock = y, e.configure = function(e) {
c = g(c, e)
}, e.initHighlighting = E, e.initHighlightingOnLoad = function() {
addEventListener("DOMContentLoaded", E, !1), addEventListener("load", E, !1)
}, e.registerLanguage = function(t, n) {
var i = r[t] = n(e);
i.aliases && i.aliases.forEach(function(e) {
a[e] = t
})
}, e.listLanguages = function() {
return n(r)
}, e.getLanguage = S, e.inherit = g, e.IDENT_RE = "[a-zA-Z]\\w*", e.UNDERSCORE_IDENT_RE = "[a-zA-Z_]\\w*", e.NUMBER_RE = "\\b\\d+(\\.\\d+)?", e.C_NUMBER_RE = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", e.BINARY_NUMBER_RE = "\\b(0b[01]+)", e.RE_STARTERS_RE = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", e.BACKSLASH_ESCAPE = {
begin: "\\\\[\\s\\S]",
relevance: 0
}, e.APOS_STRING_MODE = {
className: "string",
begin: "'",
end: "'",
illegal: "\\n",
contains: [e.BACKSLASH_ESCAPE]
}, e.QUOTE_STRING_MODE = {
className: "string",
begin: '"',
end: '"',
illegal: "\\n",
contains: [e.BACKSLASH_ESCAPE]
}, e.PHRASAL_WORDS_MODE = {
begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
}, e.COMMENT = function(t, n, r) {
var a = e.inherit({
className: "comment",
begin: t,
end: n,
contains: []
}, r || {});
return a.contains.push(e.PHRASAL_WORDS_MODE), a.contains.push({
className: "doctag",
begin: "(?:TODO|FIXME|NOTE|BUG|XXX):",
relevance: 0
}), a
}, e.C_LINE_COMMENT_MODE = e.COMMENT("//", "$"), e.C_BLOCK_COMMENT_MODE = e.COMMENT("/\\*", "\\*/"), e.HASH_COMMENT_MODE = e.COMMENT("#", "$"), e.NUMBER_MODE = {
className: "number",
begin: e.NUMBER_RE,
relevance: 0
}, e.C_NUMBER_MODE = {
className: "number",
begin: e.C_NUMBER_RE,
relevance: 0
}, e.BINARY_NUMBER_MODE = {
className: "number",
begin: e.BINARY_NUMBER_RE,
relevance: 0
}, e.CSS_NUMBER_MODE = {
className: "number",
begin: e.NUMBER_RE + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
relevance: 0
}, e.REGEXP_MODE = {
className: "regexp",
begin: /\//,
end: /\/[gimuy]*/,
illegal: /\n/,
contains: [e.BACKSLASH_ESCAPE, {
begin: /\[/,
end: /\]/,
relevance: 0,
contains: [e.BACKSLASH_ESCAPE]
}]
}, e.TITLE_MODE = {
className: "title",
begin: e.IDENT_RE,
relevance: 0
}, e.UNDERSCORE_TITLE_MODE = {
className: "title",
begin: e.UNDERSCORE_IDENT_RE,
relevance: 0
}, e.METHOD_GUARD = {
begin: "\\.\\s*" + e.UNDERSCORE_IDENT_RE,
relevance: 0
}, e
})
}, function(e, t) {
e.exports = function(e) {
var t = "[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",
n = "далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",
r = "null истина ложь неопределено",
a = e.inherit(e.NUMBER_MODE),
i = {
className: "string",
begin: '"|\\|',
end: '"|$',
contains: [{
begin: '""'
}]
},
o = {
begin: "'",
end: "'",
excludeBegin: !0,
excludeEnd: !0,
contains: [{
className: "number",
begin: "\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"
}]
},
s = e.inherit(e.C_LINE_COMMENT_MODE);
return {
case_insensitive: !0,
lexemes: t,
keywords: {
keyword: n,
built_in: "разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",
class: "webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",
type: "comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",
literal: r
},
contains: [{
className: "meta",
lexemes: t,
begin: "#|&",
end: "$",
keywords: {
"meta-keyword": n + "загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент "
},
contains: [s]
}, {
className: "function",
lexemes: t,
variants: [{
begin: "процедура|функция",
end: "\\)",
keywords: "процедура функция"
}, {
begin: "конецпроцедуры|конецфункции",
keywords: "конецпроцедуры конецфункции"
}],
contains: [{
begin: "\\(",
end: "\\)",
endsParent: !0,
contains: [{
className: "params",
lexemes: t,
begin: t,
end: ",",
excludeEnd: !0,
endsWithParent: !0,
keywords: {
keyword: "знач",
literal: r
},
contains: [a, i, o]
}, s]
}, e.inherit(e.TITLE_MODE, {
begin: t
})]
}, s, {
className: "symbol",
begin: "~",
end: ";|:",
excludeEnd: !0
}, a, i, o]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "^[a-zA-Z][a-zA-Z0-9-]*",
n = "[!@#$^&',?+~`|:]",
r = e.COMMENT(";", "$"),
a = {
begin: t + "\\s*=",
returnBegin: !0,
end: /=/,
relevance: 0,
contains: [{
className: "attribute",
begin: t
}]
};
return {
illegal: n,
keywords: ["ALPHA", "BIT", "CHAR", "CR", "CRLF", "CTL", "DIGIT", "DQUOTE", "HEXDIG", "HTAB", "LF", "LWSP", "OCTET", "SP", "VCHAR", "WSP"].join(" "),
contains: [a, r, {
className: "symbol",
begin: /%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/
}, {
className: "symbol",
begin: /%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/
}, {
className: "symbol",
begin: /%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/
}, {
className: "symbol",
begin: /%[si]/
}, e.QUOTE_STRING_MODE, e.NUMBER_MODE]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
contains: [{
className: "number",
begin: "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"
}, {
className: "number",
begin: "\\b\\d+\\b",
relevance: 0
}, {
className: "string",
begin: '"(GET|POST|HEAD|PUT|DELETE|CONNECT|OPTIONS|PATCH|TRACE)',
end: '"',
keywords: "GET POST HEAD PUT DELETE CONNECT OPTIONS PATCH TRACE",
illegal: "\\n",
relevance: 10
}, {
className: "string",
begin: /\[/,
end: /\]/,
illegal: "\\n"
}, {
className: "string",
begin: '"',
end: '"',
illegal: "\\n"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
className: "rest_arg",
begin: "[.]{3}",
end: "[a-zA-Z_$][a-zA-Z0-9_$]*",
relevance: 10
};
return {
aliases: ["as"],
keywords: {
keyword: "as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",
literal: "true false null undefined"
},
contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.C_NUMBER_MODE, {
className: "class",
beginKeywords: "package",
end: "{",
contains: [e.TITLE_MODE]
}, {
className: "class",
beginKeywords: "class interface",
end: "{",
excludeEnd: !0,
contains: [{
beginKeywords: "extends implements"
}, e.TITLE_MODE]
}, {
className: "meta",
beginKeywords: "import include",
end: ";",
keywords: {
"meta-keyword": "import include"
}
}, {
className: "function",
beginKeywords: "function",
end: "[{;]",
excludeEnd: !0,
illegal: "\\S",
contains: [e.TITLE_MODE, {
className: "params",
begin: "\\(",
end: "\\)",
contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, t]
}, {
begin: ":\\s*([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)"
}]
}, e.METHOD_GUARD],
illegal: /#/
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "[A-Za-z](_?[A-Za-z0-9.])*",
n = "[]{}%#'\"",
r = e.COMMENT("--", "$"),
a = {
begin: "\\s+:\\s+",
end: "\\s*(:=|;|\\)|=>|$)",
illegal: n,
contains: [{
beginKeywords: "loop for declare others",
endsParent: !0
}, {
className: "keyword",
beginKeywords: "not null constant access function procedure in out aliased exception"
}, {
className: "type",
begin: t,
endsParent: !0,
relevance: 0
}]
};
return {
case_insensitive: !0,
keywords: {
keyword: "abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",
literal: "True False"
},
contains: [r, {
className: "string",
begin: /"/,
end: /"/,
contains: [{
begin: /""/,
relevance: 0
}]
}, {
className: "string",
begin: /'.'/
}, {
className: "number",
begin: "\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",
relevance: 0
}, {
className: "symbol",
begin: "'" + t
}, {
className: "title",
begin: "(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",
end: "(is|$)",
keywords: "package body",
excludeBegin: !0,
excludeEnd: !0,
illegal: n
}, {
begin: "(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",
end: "(\\bis|\\bwith|\\brenames|\\)\\s*;)",
keywords: "overriding function procedure with is renames return",
returnBegin: !0,
contains: [r, {
className: "title",
begin: "(\\bwith\\s+)?\\b(function|procedure)\\s+",
end: "(\\(|\\s+|$)",
excludeBegin: !0,
excludeEnd: !0,
illegal: n
}, a, {
className: "type",
begin: "\\breturn\\s+",
end: "(\\s+|;|$)",
keywords: "return",
excludeBegin: !0,
excludeEnd: !0,
endsParent: !0,
illegal: n
}]
}, {
className: "type",
begin: "\\b(sub)?type\\s+",
end: "\\s+",
keywords: "type",
excludeBegin: !0,
illegal: n
}, a]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
className: "number",
begin: "[\\$%]\\d+"
};
return {
aliases: ["apacheconf"],
case_insensitive: !0,
contains: [e.HASH_COMMENT_MODE, {
className: "section",
begin: "</?",
end: ">"
}, {
className: "attribute",
begin: /\w+/,
relevance: 0,
keywords: {
nomarkup: "order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"
},
starts: {
end: /$/,
relevance: 0,
keywords: {
literal: "on off all"
},
contains: [{
className: "meta",
begin: "\\s\\[",
end: "\\]$"
}, {
className: "variable",
begin: "[\\$%]\\{",
end: "\\}",
contains: ["self", t]
}, t, e.QUOTE_STRING_MODE]
}
}],
illegal: /\S/
}
}
}, function(e, t) {
e.exports = function(e) {
var t = e.inherit(e.QUOTE_STRING_MODE, {
illegal: ""
}),
n = {
className: "params",
begin: "\\(",
end: "\\)",
contains: ["self", e.C_NUMBER_MODE, t]
},
r = e.COMMENT("--", "$"),
a = [r, e.COMMENT("\\(\\*", "\\*\\)", {
contains: ["self", r]
}), e.HASH_COMMENT_MODE];
return {
aliases: ["osascript"],
keywords: {
keyword: "about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",
literal: "AppleScript false linefeed return pi quote result space tab true",
built_in: "alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"
},
contains: [t, e.C_NUMBER_MODE, {
className: "built_in",
begin: "\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"
}, {
className: "literal",
begin: "\\b(text item delimiters|current application|missing value)\\b"
}, {
className: "keyword",
begin: "\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference)|POSIX file|POSIX path|(date|time) string|quoted form)\\b"
}, {
beginKeywords: "on",
illegal: "[${=;\\n]",
contains: [e.UNDERSCORE_TITLE_MODE, n]
}].concat(a),
illegal: "//|->|=>|\\[\\["
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
className: "keyword",
begin: "\\b[a-z\\d_]*_t\\b"
},
n = {
className: "string",
variants: [{
begin: '(u8?|U)?L?"',
end: '"',
illegal: "\\n",
contains: [e.BACKSLASH_ESCAPE]
}, {
begin: '(u8?|U)?R"',
end: '"',
contains: [e.BACKSLASH_ESCAPE]
}, {
begin: "'\\\\?.",
end: "'",
illegal: "."
}]
},
r = {
className: "number",
variants: [{
begin: "\\b(0b[01']+)"
}, {
begin: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"
}, {
begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"
}],
relevance: 0
},
a = {
className: "meta",
begin: /#\s*[a-z]+\b/,
end: /$/,
keywords: {
"meta-keyword": "if else elif endif define undef warning error line pragma ifdef ifndef include"
},
contains: [{
begin: /\\\n/,
relevance: 0
}, e.inherit(n, {
className: "meta-string"
}), {
className: "meta-string",
begin: /<[^\n>]*>/,
end: /$/,
illegal: "\\n"
}, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE]
},
i = e.IDENT_RE + "\\s*\\(",
o = {
keyword: "int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and or not",
built_in: "std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr",
literal: "true false nullptr NULL"
},
s = [t, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, r, n];
return {
aliases: ["c", "cc", "h", "c++", "h++", "hpp"],
keywords: o,
illegal: "</",
contains: s.concat([a, {
begin: "\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",
end: ">",
keywords: o,
contains: ["self", t]
}, {
begin: e.IDENT_RE + "::",
keywords: o
}, {
variants: [{
begin: /=/,
end: /;/
}, {
begin: /\(/,
end: /\)/
}, {
beginKeywords: "new throw return else",
end: /;/
}],
keywords: o,
contains: s.concat([{
begin: /\(/,
end: /\)/,
keywords: o,
contains: s.concat(["self"]),
relevance: 0
}]),
relevance: 0
}, {
className: "function",
begin: "(" + e.IDENT_RE + "[\\*&\\s]+)+" + i,
returnBegin: !0,
end: /[{;=]/,
excludeEnd: !0,
keywords: o,
illegal: /[^\w\s\*&]/,
contains: [{
begin: i,
returnBegin: !0,
contains: [e.TITLE_MODE],
relevance: 0
}, {
className: "params",
begin: /\(/,
end: /\)/,
keywords: o,
relevance: 0,
contains: [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, n, r, t]
}, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, a]
}, {
className: "class",
beginKeywords: "class struct",
end: /[{;:]/,
contains: [{
begin: /</,
end: />/,
contains: ["self"]
}, e.TITLE_MODE]
}]),
exports: {
preprocessor: a,
strings: n,
keywords: o
}
}
}
}, function(e, t) {
e.exports = function(e) {
var t = e.getLanguage("cpp").exports;
return {
keywords: {
keyword: "boolean byte word string String array " + t.keywords.keyword,
built_in: "setup loop while catch for if do goto try switch case else default break continue return KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",
literal: "DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW"
},
contains: [t.preprocessor, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.C_NUMBER_MODE]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
case_insensitive: !0,
aliases: ["arm"],
lexemes: "\\.?" + e.IDENT_RE,
keywords: {
meta: ".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",
built_in: "r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"
},
contains: [{
className: "keyword",
begin: "\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?",
end: "\\s"
}, e.COMMENT("[;@]", "$", {
relevance: 0
}), e.C_BLOCK_COMMENT_MODE, e.QUOTE_STRING_MODE, {
className: "string",
begin: "'",
end: "[^\\\\]'",
relevance: 0
}, {
className: "title",
begin: "\\|",
end: "\\|",
illegal: "\\n",
relevance: 0
}, {
className: "number",
variants: [{
begin: "[#$=]?0x[0-9a-f]+"
}, {
begin: "[#$=]?0b[01]+"
}, {
begin: "[#$=]\\d+"
}, {
begin: "\\b\\d+"
}],
relevance: 0
}, {
className: "symbol",
variants: [{
begin: "^[a-z_\\.\\$][a-z0-9_\\.\\$]+"
}, {
begin: "^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"
}, {
begin: "[=#]\\w+"
}],
relevance: 0
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
endsWithParent: !0,
illegal: /</,
relevance: 0,
contains: [{
className: "attr",
begin: "[A-Za-z0-9\\._:-]+",
relevance: 0
}, {
begin: /=\s*/,
relevance: 0,
contains: [{
className: "string",
endsParent: !0,
variants: [{
begin: /"/,
end: /"/
}, {
begin: /'/,
end: /'/
}, {
begin: /[^\s"'=<>`]+/
}]
}]
}]
};
return {
aliases: ["html", "xhtml", "rss", "atom", "xjb", "xsd", "xsl", "plist"],
case_insensitive: !0,
contains: [{
className: "meta",
begin: "<!DOCTYPE",
end: ">",
relevance: 10,
contains: [{
begin: "\\[",
end: "\\]"
}]
}, e.COMMENT("\x3c!--", "--\x3e", {
relevance: 10
}), {
begin: "<\\!\\[CDATA\\[",
end: "\\]\\]>",
relevance: 10
}, {
begin: /<\?(php)?/,
end: /\?>/,
subLanguage: "php",
contains: [{
begin: "/\\*",
end: "\\*/",
skip: !0
}]
}, {
className: "tag",
begin: "<style(?=\\s|>|$)",
end: ">",
keywords: {
name: "style"
},
contains: [t],
starts: {
end: "</style>",
returnEnd: !0,
subLanguage: ["css", "xml"]
}
}, {
className: "tag",
begin: "<script(?=\\s|>|$)",
end: ">",
keywords: {
name: "script"
},
contains: [t],
starts: {
end: "<\/script>",
returnEnd: !0,
subLanguage: ["actionscript", "javascript", "handlebars", "xml"]
}
}, {
className: "meta",
variants: [{
begin: /<\?xml/,
end: /\?>/,
relevance: 10
}, {
begin: /<\?\w+/,
end: /\?>/
}]
}, {
className: "tag",
begin: "</?",
end: "/?>",
contains: [{
className: "name",
begin: /[^\/><\s]+/,
relevance: 0
}, t]
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["adoc"],
contains: [e.COMMENT("^/{4,}\\n", "\\n/{4,}$", {
relevance: 10
}), e.COMMENT("^//", "$", {
relevance: 0
}), {
className: "title",
begin: "^\\.\\w.*$"
}, {
begin: "^[=\\*]{4,}\\n",
end: "\\n^[=\\*]{4,}$",
relevance: 10
}, {
className: "section",
relevance: 10,
variants: [{
begin: "^(={1,5}) .+?( \\1)?$"
}, {
begin: "^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"
}]
}, {
className: "meta",
begin: "^:.+?:",
end: "\\s",
excludeEnd: !0,
relevance: 10
}, {
className: "meta",
begin: "^\\[.+?\\]$",
relevance: 0
}, {
className: "quote",
begin: "^_{4,}\\n",
end: "\\n_{4,}$",
relevance: 10
}, {
className: "code",
begin: "^[\\-\\.]{4,}\\n",
end: "\\n[\\-\\.]{4,}$",
relevance: 10
}, {
begin: "^\\+{4,}\\n",
end: "\\n\\+{4,}$",
contains: [{
begin: "<",
end: ">",
subLanguage: "xml",
relevance: 0
}],
relevance: 10
}, {
className: "bullet",
begin: "^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+"
}, {
className: "symbol",
begin: "^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",
relevance: 10
}, {
className: "strong",
begin: "\\B\\*(?![\\*\\s])",
end: "(\\n{2}|\\*)",
contains: [{
begin: "\\\\*\\w",
relevance: 0
}]
}, {
className: "emphasis",
begin: "\\B'(?!['\\s])",
end: "(\\n{2}|')",
contains: [{
begin: "\\\\'\\w",
relevance: 0
}],
relevance: 0
}, {
className: "emphasis",
begin: "_(?![_\\s])",
end: "(\\n{2}|_)",
relevance: 0
}, {
className: "string",
variants: [{
begin: "``.+?''"
}, {
begin: "`.+?'"
}]
}, {
className: "code",
begin: "(`.+?`|\\+.+?\\+)",
relevance: 0
}, {
className: "code",
begin: "^[ \\t]",
end: "$",
relevance: 0
}, {
begin: "^'{3,}[ \\t]*$",
relevance: 10
}, {
begin: "(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]",
returnBegin: !0,
contains: [{
begin: "(link|image:?):",
relevance: 0
}, {
className: "link",
begin: "\\w",
end: "[^\\[]+",
relevance: 0
}, {
className: "string",
begin: "\\[",
end: "\\]",
excludeBegin: !0,
excludeEnd: !0,
relevance: 0
}],
relevance: 10
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",
n = "get set args call";
return {
keywords: t,
illegal: /<\/|#/,
contains: [e.COMMENT("/\\*\\*", "\\*/", {
relevance: 0,
contains: [{
begin: /\w+@/,
relevance: 0
}, {
className: "doctag",
begin: "@[A-Za-z]+"
}]
}), e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, {
className: "class",
beginKeywords: "aspect",
end: /[{;=]/,
excludeEnd: !0,
illegal: /[:;"\[\]]/,
contains: [{
beginKeywords: "extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"
}, e.UNDERSCORE_TITLE_MODE, {
begin: /\([^\)]*/,
end: /[)]+/,
keywords: t + " " + n,
excludeEnd: !1
}]
}, {
className: "class",
beginKeywords: "class interface",
end: /[{;=]/,
excludeEnd: !0,
relevance: 0,
keywords: "class interface",
illegal: /[:"\[\]]/,
contains: [{
beginKeywords: "extends implements"
}, e.UNDERSCORE_TITLE_MODE]
}, {
beginKeywords: "pointcut after before around throwing returning",
end: /[)]/,
excludeEnd: !1,
illegal: /["\[\]]/,
contains: [{
begin: e.UNDERSCORE_IDENT_RE + "\\s*\\(",
returnBegin: !0,
contains: [e.UNDERSCORE_TITLE_MODE]
}]
}, {
begin: /[:]/,
returnBegin: !0,
end: /[{;]/,
relevance: 0,
excludeEnd: !1,
keywords: t,
illegal: /["\[\]]/,
contains: [{
begin: e.UNDERSCORE_IDENT_RE + "\\s*\\(",
keywords: t + " " + n,
relevance: 0
}, e.QUOTE_STRING_MODE]
}, {
beginKeywords: "new throw",
relevance: 0
}, {
className: "function",
begin: /\w+ +\w+(\.)?\w+\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,
returnBegin: !0,
end: /[{;=]/,
keywords: t,
excludeEnd: !0,
contains: [{
begin: e.UNDERSCORE_IDENT_RE + "\\s*\\(",
returnBegin: !0,
relevance: 0,
contains: [e.UNDERSCORE_TITLE_MODE]
}, {
className: "params",
begin: /\(/,
end: /\)/,
relevance: 0,
keywords: t,
contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.C_NUMBER_MODE, e.C_BLOCK_COMMENT_MODE]
}, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE]
}, e.C_NUMBER_MODE, {
className: "meta",
begin: "@[A-Za-z]+"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
begin: "`[\\s\\S]"
};
return {
case_insensitive: !0,
aliases: ["ahk"],
keywords: {
keyword: "Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",
literal: "A|0 true false NOT AND OR",
built_in: "ComSpec Clipboard ClipboardAll ErrorLevel"
},
contains: [{
className: "built_in",
begin: "A_[a-zA-Z0-9]+"
}, t, e.inherit(e.QUOTE_STRING_MODE, {
contains: [t]
}), e.COMMENT(";", "$", {
relevance: 0
}), e.C_BLOCK_COMMENT_MODE, {
className: "number",
begin: e.NUMBER_RE,
relevance: 0
}, {
className: "subst",
begin: "%(?=[a-zA-Z0-9#_$@])",
end: "%",
illegal: "[^a-zA-Z0-9#_$@]"
}, {
className: "built_in",
begin: "^\\s*\\w+\\s*,"
}, {
className: "meta",
begin: "^\\s*#w+",
end: "$",
relevance: 0
}, {
className: "symbol",
contains: [t],
variants: [{
begin: '^[^\\n";]+::(?!=)'
}, {
begin: '^[^\\n";]+:(?!=)',
relevance: 0
}]
}, {
begin: ",\\s*,"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
variants: [e.COMMENT(";", "$", {
relevance: 0
}), e.COMMENT("#cs", "#ce"), e.COMMENT("#comments-start", "#comments-end")]
},
n = {
begin: "\\$[A-z0-9_]+"
},
r = {
className: "string",
variants: [{
begin: /"/,
end: /"/,
contains: [{
begin: /""/,
relevance: 0
}]
}, {
begin: /'/,
end: /'/,
contains: [{
begin: /''/,
relevance: 0
}]
}]
},
a = {
variants: [e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE]
};
return {
case_insensitive: !0,
illegal: /\/\*/,
keywords: {
keyword: "ByRef Case Const ContinueCase ContinueLoop Default Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",
built_in: "Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait",
literal: "True False And Null Not Or"
},
contains: [t, n, r, a, {
className: "meta",
begin: "#",
end: "$",
keywords: {
"meta-keyword": "comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"
},
contains: [{
begin: /\\\n/,
relevance: 0
}, {
beginKeywords: "include",
keywords: {
"meta-keyword": "include"
},
end: "$",
contains: [r, {
className: "meta-string",
variants: [{
begin: "<",
end: ">"
}, {
begin: /"/,
end: /"/,
contains: [{
begin: /""/,
relevance: 0
}]
}, {
begin: /'/,
end: /'/,
contains: [{
begin: /''/,
relevance: 0
}]
}]
}]
}, r, t]
}, {
className: "symbol",
begin: "@[A-z0-9_]+"
}, {
className: "function",
beginKeywords: "Func",
end: "$",
illegal: "\\$|\\[|%",
contains: [e.UNDERSCORE_TITLE_MODE, {
className: "params",
begin: "\\(",
end: "\\)",
contains: [n, r, a]
}]
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
case_insensitive: !0,
lexemes: "\\.?" + e.IDENT_RE,
keywords: {
keyword: "adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",
built_in: "r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",
meta: ".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"
},
contains: [e.C_BLOCK_COMMENT_MODE, e.COMMENT(";", "$", {
relevance: 0
}), e.C_NUMBER_MODE, e.BINARY_NUMBER_MODE, {
className: "number",
begin: "\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"
}, e.QUOTE_STRING_MODE, {
className: "string",
begin: "'",
end: "[^\\\\]'",
illegal: "[^\\\\][^']"
}, {
className: "symbol",
begin: "^[A-Za-z0-9_.$]+:"
}, {
className: "meta",
begin: "#",
end: "$"
}, {
className: "subst",
begin: "@[0-9]+"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
keywords: {
keyword: "BEGIN END if else while do for in break continue delete next nextfile function func exit|10"
},
contains: [{
className: "variable",
variants: [{
begin: /\$[\w\d#@][\w\d_]*/
}, {
begin: /\$\{(.*?)}/
}]
}, {
className: "string",
contains: [e.BACKSLASH_ESCAPE],
variants: [{
begin: /(u|b)?r?'''/,
end: /'''/,
relevance: 10
}, {
begin: /(u|b)?r?"""/,
end: /"""/,
relevance: 10
}, {
begin: /(u|r|ur)'/,
end: /'/,
relevance: 10
}, {
begin: /(u|r|ur)"/,
end: /"/,
relevance: 10
}, {
begin: /(b|br)'/,
end: /'/
}, {
begin: /(b|br)"/,
end: /"/
}, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE]
}, e.REGEXP_MODE, e.HASH_COMMENT_MODE, e.NUMBER_MODE]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
keywords: "false int abstract private char boolean static null if for true while long throw finally protected final return void enum else break new catch byte super case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",
contains: [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.C_NUMBER_MODE, {
className: "meta",
begin: "#",
end: "$"
}, {
className: "class",
beginKeywords: "class interface",
end: "{",
excludeEnd: !0,
illegal: ":",
contains: [{
beginKeywords: "extends implements"
}, e.UNDERSCORE_TITLE_MODE]
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
className: "variable",
variants: [{
begin: /\$[\w\d#@][\w\d_]*/
}, {
begin: /\$\{(.*?)}/
}]
},
n = {
className: "string",
begin: /"/,
end: /"/,
contains: [e.BACKSLASH_ESCAPE, t, {
className: "variable",
begin: /\$\(/,
end: /\)/,
contains: [e.BACKSLASH_ESCAPE]
}]
};
return {
aliases: ["sh", "zsh"],
lexemes: /\b-?[a-z\._]+\b/,
keywords: {
keyword: "if then else elif fi for while in do done case esac function",
literal: "true false",
built_in: "break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",
_: "-ne -eq -lt -gt -f -d -e -s -l -a"
},
contains: [{
className: "meta",
begin: /^#![^\n]+sh\s*$/,
relevance: 10
}, {
className: "function",
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
returnBegin: !0,
contains: [e.inherit(e.TITLE_MODE, {
begin: /\w[\w\d_]*/
})],
relevance: 0
}, e.HASH_COMMENT_MODE, n, {
className: "string",
begin: /'/,
end: /'/
}, t]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
case_insensitive: !0,
illegal: "^.",
lexemes: "[a-zA-Z][a-zA-Z0-9_$%!#]*",
keywords: {
keyword: "ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF|0 THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"
},
contains: [e.QUOTE_STRING_MODE, e.COMMENT("REM", "$", {
relevance: 10
}), e.COMMENT("'", "$", {
relevance: 0
}), {
className: "symbol",
begin: "^[0-9]+ ",
relevance: 10
}, {
className: "number",
begin: "\\b([0-9]+[0-9edED.]*[#!]?)",
relevance: 0
}, {
className: "number",
begin: "(&[hH][0-9a-fA-F]{1,4})"
}, {
className: "number",
begin: "(&[oO][0-7]{1,6})"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
contains: [{
className: "attribute",
begin: /</,
end: />/
}, {
begin: /::=/,
starts: {
end: /$/,
contains: [{
begin: /</,
end: />/
}, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE]
}
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
className: "literal",
begin: "[\\+\\-]",
relevance: 0
};
return {
aliases: ["bf"],
contains: [e.COMMENT("[^\\[\\]\\.,\\+\\-<> \r\n]", "[\\[\\]\\.,\\+\\-<> \r\n]", {
returnEnd: !0,
relevance: 0
}), {
className: "title",
begin: "[\\[\\]]",
relevance: 0
}, {
className: "string",
begin: "[\\.,]",
relevance: 0
}, {
begin: /\+\+|\-\-/,
returnBegin: !0,
contains: [t]
}, t]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",
n = [e.C_LINE_COMMENT_MODE, e.COMMENT(/\{/, /\}/, {
relevance: 0
}), e.COMMENT(/\(\*/, /\*\)/, {
relevance: 10
})],
r = {
className: "string",
begin: /'/,
end: /'/,
contains: [{
begin: /''/
}]
},
a = {
className: "string",
begin: /(#\d+)+/
},
i = {
className: "function",
beginKeywords: "procedure",
end: /[:;]/,
keywords: "procedure|10",
contains: [e.TITLE_MODE, {
className: "params",
begin: /\(/,
end: /\)/,
keywords: t,
contains: [r, a]
}].concat(n)
},
o = {
className: "class",
begin: "OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",
returnBegin: !0,
contains: [e.TITLE_MODE, i]
};
return {
case_insensitive: !0,
keywords: {
keyword: t,
literal: "false true"
},
illegal: /\/\*/,
contains: [r, a, {
className: "number",
begin: "\\b\\d+(\\.\\d+)?(DT|D|T)",
relevance: 0
}, {
className: "string",
begin: '"',
end: '"'
}, e.NUMBER_MODE, o, i]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["capnp"],
keywords: {
keyword: "struct enum interface union group import using const annotation extends in of on as with from fixed",
built_in: "Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",
literal: "true false"
},
contains: [e.QUOTE_STRING_MODE, e.NUMBER_MODE, e.HASH_COMMENT_MODE, {
className: "meta",
begin: /@0x[\w\d]{16};/,
illegal: /\n/
}, {
className: "symbol",
begin: /@\d+\b/
}, {
className: "class",
beginKeywords: "struct enum",
end: /\{/,
illegal: /\n/,
contains: [e.inherit(e.TITLE_MODE, {
starts: {
endsWithParent: !0,
excludeEnd: !0
}
})]
}, {
className: "class",
beginKeywords: "interface",
end: /\{/,
illegal: /\n/,
contains: [e.inherit(e.TITLE_MODE, {
starts: {
endsWithParent: !0,
excludeEnd: !0
}
})]
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",
n = {
className: "subst",
excludeBegin: !0,
excludeEnd: !0,
begin: /``/,
end: /``/,
keywords: t,
relevance: 10
},
r = [{
className: "string",
begin: '"""',
end: '"""',
relevance: 10
}, {
className: "string",
begin: '"',
end: '"',
contains: [n]
}, {
className: "string",
begin: "'",
end: "'"
}, {
className: "number",
begin: "#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",
relevance: 0
}];
return n.contains = r, {
keywords: {
keyword: t + " shared abstract formal default actual variable late native deprecatedfinal sealed annotation suppressWarnings small",
meta: "doc by license see throws tagged"
},
illegal: "\\$[^01]|#[^0-9a-fA-F]",
contains: [e.C_LINE_COMMENT_MODE, e.COMMENT("/\\*", "\\*/", {
contains: ["self"]
}), {
className: "meta",
begin: '@[a-z]\\w*(?:\\:"[^"]*")?'
}].concat(r)
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["clean", "icl", "dcl"],
keywords: {
keyword: "if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",
literal: "True False"
},
contains: [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.C_NUMBER_MODE, {
begin: "->|<-[|:]?|::|#!?|>>=|\\{\\||\\|\\}|:==|=:|\\.\\.|<>|`"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "a-zA-Z_\\-!.?+*=<>&#'",
n = "[" + t + "][" + t + "0-9/;:]*",
r = {
begin: n,
relevance: 0
},
a = {
className: "number",
begin: "[-+]?\\d+(\\.\\d+)?",
relevance: 0
},
i = e.inherit(e.QUOTE_STRING_MODE, {
illegal: null
}),
o = e.COMMENT(";", "$", {
relevance: 0
}),
s = {
className: "literal",
begin: /\b(true|false|nil)\b/
},
l = {
begin: "[\\[\\{]",
end: "[\\]\\}]"
},
c = {
className: "comment",
begin: "\\^" + n
},
u = e.COMMENT("\\^\\{", "\\}"),
d = {
className: "symbol",
begin: "[:]{1,2}" + n
},
p = {
begin: "\\(",
end: "\\)"
},
m = {
endsWithParent: !0,
relevance: 0
},
g = {
keywords: {
"builtin-name": "def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"
},
lexemes: n,
className: "name",
begin: n,
starts: m
},
f = [p, i, c, u, o, d, l, a, s, r];
return p.contains = [e.COMMENT("comment", ""), g, m], m.contains = f, l.contains = f, u.contains = [l], {
aliases: ["clj"],
illegal: /\S/,
contains: [p, i, c, u, o, d, l, a, s]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
contains: [{
className: "meta",
begin: /^([\w.-]+|\s*#_)=>/,
starts: {
end: /$/,
subLanguage: "clojure"
}
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["cmake.in"],
case_insensitive: !0,
keywords: {
keyword: "add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_minimum_required cmake_policy configure_file create_test_sourcelist define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories load_cache load_command macro mark_as_advanced message option output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_link_libraries try_compile try_run unset variable_watch while build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or equal less greater strless strgreater strequal matches"
},
contains: [{
className: "variable",
begin: "\\${",
end: "}"
}, e.HASH_COMMENT_MODE, e.QUOTE_STRING_MODE, e.NUMBER_MODE]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
keyword: "in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super yield import export from as default await then unless until loop of by when and or is isnt not",
literal: "true false null undefined yes no on off",
built_in: "npm require console print module global window document"
},
n = "[A-Za-z$_][0-9A-Za-z$_]*",
r = {
className: "subst",
begin: /#\{/,
end: /}/,
keywords: t
},
a = [e.BINARY_NUMBER_MODE, e.inherit(e.C_NUMBER_MODE, {
starts: {
end: "(\\s*/)?",
relevance: 0
}
}), {
className: "string",
variants: [{
begin: /'''/,
end: /'''/,
contains: [e.BACKSLASH_ESCAPE]
}, {
begin: /'/,
end: /'/,
contains: [e.BACKSLASH_ESCAPE]
}, {
begin: /"""/,
end: /"""/,
contains: [e.BACKSLASH_ESCAPE, r]
}, {
begin: /"/,
end: /"/,
contains: [e.BACKSLASH_ESCAPE, r]
}]
}, {
className: "regexp",
variants: [{
begin: "///",
end: "///",
contains: [r, e.HASH_COMMENT_MODE]
}, {
begin: "//[gim]*",
relevance: 0
}, {
begin: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/
}]
}, {
begin: "@" + n
}, {
subLanguage: "javascript",
excludeBegin: !0,
excludeEnd: !0,
variants: [{
begin: "```",
end: "```"
}, {
begin: "`",
end: "`"
}]
}];
r.contains = a;
var i = e.inherit(e.TITLE_MODE, {
begin: n
}),
o = "(\\(.*\\))?\\s*\\B[-=]>",
s = {
className: "params",
begin: "\\([^\\(]",
returnBegin: !0,
contains: [{
begin: /\(/,
end: /\)/,
keywords: t,
contains: ["self"].concat(a)
}]
};
return {
aliases: ["coffee", "cson", "iced"],
keywords: t,
illegal: /\/\*/,
contains: a.concat([e.COMMENT("###", "###"), e.HASH_COMMENT_MODE, {
className: "function",
begin: "^\\s*" + n + "\\s*=\\s*" + o,
end: "[-=]>",
returnBegin: !0,
contains: [i, s]
}, {
begin: /[:\(,=]\s*/,
relevance: 0,
contains: [{
className: "function",
begin: o,
end: "[-=]>",
returnBegin: !0,
contains: [s]
}]
}, {
className: "class",
beginKeywords: "class",
end: "$",
illegal: /[:="\[\]]/,
contains: [{
beginKeywords: "extends",
endsWithParent: !0,
illegal: /[:="\[\]]/,
contains: [i]
}, i]
}, {
begin: n + ":",
end: ":",
returnBegin: !0,
returnEnd: !0,
relevance: 0
}])
}
}
}, function(e, t) {
e.exports = function(e) {
return {
keywords: {
keyword: "_ as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies DependentDerive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",
built_in: "abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"
},
contains: [e.QUOTE_STRING_MODE, e.COMMENT("\\(\\*", "\\*\\)"), e.C_NUMBER_MODE, {
className: "type",
excludeBegin: !0,
begin: "\\|\\s*",
end: "\\w+"
}, {
begin: /[-=]>/
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
case_insensitive: !0,
aliases: ["cos", "cls"],
keywords: "property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",
contains: [{
className: "number",
begin: "\\b(\\d+(\\.\\d*)?|\\.\\d+)",
relevance: 0
}, {
className: "string",
variants: [{
begin: '"',
end: '"',
contains: [{
begin: '""',
relevance: 0
}]
}]
}, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, {
className: "comment",
begin: /;/,
end: "$",
relevance: 0
}, {
className: "built_in",
begin: /(?:\$\$?|\.\.)\^?[a-zA-Z]+/
}, {
className: "built_in",
begin: /\$\$\$[a-zA-Z]+/
}, {
className: "built_in",
begin: /%[a-z]+(?:\.[a-z]+)*/
}, {
className: "symbol",
begin: /\^%?[a-zA-Z][\w]*/
}, {
className: "keyword",
begin: /##class|##super|#define|#dim/
}, {
begin: /&sql\(/,
end: /\)/,
excludeBegin: !0,
excludeEnd: !0,
subLanguage: "sql"
}, {
begin: /&(js|jscript|javascript)</,
end: />/,
excludeBegin: !0,
excludeEnd: !0,
subLanguage: "javascript"
}, {
begin: /&html<\s*</,
end: />\s*>/,
subLanguage: "xml"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";
return {
aliases: ["crm", "pcmk"],
case_insensitive: !0,
keywords: {
keyword: "params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",
literal: "Master Started Slave Stopped start promote demote stop monitor true false"
},
contains: [e.HASH_COMMENT_MODE, {
beginKeywords: "node",
starts: {
end: "\\s*([\\w_-]+:)?",
starts: {
className: "title",
end: "\\s*[\\$\\w_][\\w_-]*"
}
}
}, {
beginKeywords: "primitive rsc_template",
starts: {
className: "title",
end: "\\s*[\\$\\w_][\\w_-]*",
starts: {
end: "\\s*@?[\\w_][\\w_\\.:-]*"
}
}
}, {
begin: "\\b(" + t.split(" ").join("|") + ")\\s+",
keywords: t,
starts: {
className: "title",
end: "[\\$\\w_][\\w_-]*"
}
}, {
beginKeywords: "property rsc_defaults op_defaults",
starts: {
className: "title",
end: "\\s*([\\w_-]+:)?"
}
}, e.QUOTE_STRING_MODE, {
className: "meta",
begin: "(ocf|systemd|service|lsb):[\\w_:-]+",
relevance: 0
}, {
className: "number",
begin: "\\b\\d+(\\.\\d+)?(ms|s|h|m)?",
relevance: 0
}, {
className: "literal",
begin: "[-]?(infinity|inf)",
relevance: 0
}, {
className: "attr",
begin: /([A-Za-z\$_\#][\w_-]+)=/,
relevance: 0
}, {
className: "tag",
begin: "</?",
end: "/?>",
relevance: 0
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "(_[uif](8|16|32|64))?",
n = "[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\][=?]?",
r = {
keyword: "abstract alias as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",
literal: "false nil true"
},
a = {
className: "subst",
begin: "#{",
end: "}",
keywords: r
},
i = {
className: "template-variable",
variants: [{
begin: "\\{\\{",
end: "\\}\\}"
}, {
begin: "\\{%",
end: "%\\}"
}],
keywords: r
};
function o(e, t) {
var n = [{
begin: e,
end: t
}];
return n[0].contains = n, n
}
var s = {
className: "string",
contains: [e.BACKSLASH_ESCAPE, a],
variants: [{
begin: /'/,
end: /'/
}, {
begin: /"/,
end: /"/
}, {
begin: /`/,
end: /`/
}, {
begin: "%w?\\(",
end: "\\)",
contains: o("\\(", "\\)")
}, {
begin: "%w?\\[",
end: "\\]",
contains: o("\\[", "\\]")
}, {
begin: "%w?{",
end: "}",
contains: o("{", "}")
}, {
begin: "%w?<",
end: ">",
contains: o("<", ">")
}, {
begin: "%w?/",
end: "/"
}, {
begin: "%w?%",
end: "%"
}, {
begin: "%w?-",
end: "-"
}, {
begin: "%w?\\|",
end: "\\|"
}, {
begin: /<<-\w+$/,
end: /^\s*\w+$/
}],
relevance: 0
},
l = [i, s, {
className: "string",
variants: [{
begin: "%q\\(",
end: "\\)",
contains: o("\\(", "\\)")
}, {
begin: "%q\\[",
end: "\\]",
contains: o("\\[", "\\]")
}, {
begin: "%q{",
end: "}",
contains: o("{", "}")
}, {
begin: "%q<",
end: ">",
contains: o("<", ">")
}, {
begin: "%q/",
end: "/"
}, {
begin: "%q%",
end: "%"
}, {
begin: "%q-",
end: "-"
}, {
begin: "%q\\|",
end: "\\|"
}, {
begin: /<<-'\w+'$/,
end: /^\s*\w+$/
}],
relevance: 0
}, {
begin: "(!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~)\\s*",
contains: [{
className: "regexp",
contains: [e.BACKSLASH_ESCAPE, a],
variants: [{
begin: "//[a-z]*",
relevance: 0
}, {
begin: "/",
end: "/[a-z]*"
}, {
begin: "%r\\(",
end: "\\)",
contains: o("\\(", "\\)")
}, {
begin: "%r\\[",
end: "\\]",
contains: o("\\[", "\\]")
}, {
begin: "%r{",
end: "}",
contains: o("{", "}")
}, {
begin: "%r<",
end: ">",
contains: o("<", ">")
}, {
begin: "%r/",
end: "/"
}, {
begin: "%r%",
end: "%"
}, {
begin: "%r-",
end: "-"
}, {
begin: "%r\\|",
end: "\\|"
}]
}],
relevance: 0
}, {
className: "regexp",
contains: [e.BACKSLASH_ESCAPE, a],
variants: [{
begin: "%r\\(",
end: "\\)",
contains: o("\\(", "\\)")
}, {
begin: "%r\\[",
end: "\\]",
contains: o("\\[", "\\]")
}, {
begin: "%r{",
end: "}",
contains: o("{", "}")
}, {
begin: "%r<",
end: ">",
contains: o("<", ">")
}, {
begin: "%r/",
end: "/"
}, {
begin: "%r%",
end: "%"
}, {
begin: "%r-",
end: "-"
}, {
begin: "%r\\|",
end: "\\|"
}],
relevance: 0
}, {
className: "meta",
begin: "@\\[",
end: "\\]",
contains: [e.inherit(e.QUOTE_STRING_MODE, {
className: "meta-string"
})]
}, e.HASH_COMMENT_MODE, {
className: "class",
beginKeywords: "class module struct",
end: "$|;",
illegal: /=/,
contains: [e.HASH_COMMENT_MODE, e.inherit(e.TITLE_MODE, {
begin: "[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"
}), {
begin: "<"
}]
}, {
className: "class",
beginKeywords: "lib enum union",
end: "$|;",
illegal: /=/,
contains: [e.HASH_COMMENT_MODE, e.inherit(e.TITLE_MODE, {
begin: "[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"
})],
relevance: 10
}, {
className: "function",
beginKeywords: "def",
end: /\B\b/,
contains: [e.inherit(e.TITLE_MODE, {
begin: n,
endsParent: !0
})]
}, {
className: "function",
beginKeywords: "fun macro",
end: /\B\b/,
contains: [e.inherit(e.TITLE_MODE, {
begin: n,
endsParent: !0
})],
relevance: 5
}, {
className: "symbol",
begin: e.UNDERSCORE_IDENT_RE + "(\\!|\\?)?:",
relevance: 0
}, {
className: "symbol",
begin: ":",
contains: [s, {
begin: n
}],
relevance: 0
}, {
className: "number",
variants: [{
begin: "\\b0b([01_]*[01])" + t
}, {
begin: "\\b0o([0-7_]*[0-7])" + t
}, {
begin: "\\b0x([A-Fa-f0-9_]*[A-Fa-f0-9])" + t
}, {
begin: "\\b(([0-9][0-9_]*[0-9]|[0-9])(\\.[0-9_]*[0-9])?([eE][+-]?[0-9_]*[0-9])?)" + t
}],
relevance: 0
}];
return a.contains = l, i.contains = l.slice(1), {
aliases: ["cr"],
lexemes: "[a-zA-Z_]\\w*[!?=]?",
keywords: r,
contains: l
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
keyword: "abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long nameof object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield",
literal: "null false true"
},
n = {
className: "string",
begin: '@"',
end: '"',
contains: [{
begin: '""'
}]
},
r = e.inherit(n, {
illegal: /\n/
}),
a = {
className: "subst",
begin: "{",
end: "}",
keywords: t
},
i = e.inherit(a, {
illegal: /\n/
}),
o = {
className: "string",
begin: /\$"/,
end: '"',
illegal: /\n/,
contains: [{
begin: "{{"
}, {
begin: "}}"
}, e.BACKSLASH_ESCAPE, i]
},
s = {
className: "string",
begin: /\$@"/,
end: '"',
contains: [{
begin: "{{"
}, {
begin: "}}"
}, {
begin: '""'
}, a]
},
l = e.inherit(s, {
illegal: /\n/,
contains: [{
begin: "{{"
}, {
begin: "}}"
}, {
begin: '""'
}, i]
});
a.contains = [s, o, n, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.C_NUMBER_MODE, e.C_BLOCK_COMMENT_MODE], i.contains = [l, o, r, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.C_NUMBER_MODE, e.inherit(e.C_BLOCK_COMMENT_MODE, {
illegal: /\n/
})];
var c = {
variants: [s, o, n, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE]
},
u = e.IDENT_RE + "(<" + e.IDENT_RE + "(\\s*,\\s*" + e.IDENT_RE + ")*>)?(\\[\\])?";
return {
aliases: ["csharp"],
keywords: t,
illegal: /::/,
contains: [e.COMMENT("///", "$", {
returnBegin: !0,
contains: [{
className: "doctag",
variants: [{
begin: "///",
relevance: 0
}, {
begin: "\x3c!--|--\x3e"
}, {
begin: "</?",
end: ">"
}]
}]
}), e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, {
className: "meta",
begin: "#",
end: "$",
keywords: {
"meta-keyword": "if else elif endif define undef warning error line region endregion pragma checksum"
}
}, c, e.C_NUMBER_MODE, {
beginKeywords: "class interface",
end: /[{;=]/,
illegal: /[^\s:]/,
contains: [e.TITLE_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE]
}, {
beginKeywords: "namespace",
end: /[{;=]/,
illegal: /[^\s:]/,
contains: [e.inherit(e.TITLE_MODE, {
begin: "[a-zA-Z](\\.?\\w)*"
}), e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE]
}, {
className: "meta",
begin: "^\\s*\\[",
excludeBegin: !0,
end: "\\]",
excludeEnd: !0,
contains: [{
className: "meta-string",
begin: /"/,
end: /"/
}]
}, {
beginKeywords: "new return throw await else",
relevance: 0
}, {
className: "function",
begin: "(" + u + "\\s+)+" + e.IDENT_RE + "\\s*\\(",
returnBegin: !0,
end: /[{;=]/,
excludeEnd: !0,
keywords: t,
contains: [{
begin: e.IDENT_RE + "\\s*\\(",
returnBegin: !0,
contains: [e.TITLE_MODE],
relevance: 0
}, {
className: "params",
begin: /\(/,
end: /\)/,
excludeBegin: !0,
excludeEnd: !0,
keywords: t,
relevance: 0,
contains: [c, e.C_NUMBER_MODE, e.C_BLOCK_COMMENT_MODE]
}, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE]
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
case_insensitive: !1,
lexemes: "[a-zA-Z][a-zA-Z0-9_-]*",
keywords: {
keyword: "base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"
},
contains: [{
className: "string",
begin: "'",
end: "'"
}, {
className: "attribute",
begin: "^Content",
end: ":",
excludeEnd: !0
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
begin: /[A-Z\_\.\-]+\s*:/,
returnBegin: !0,
end: ";",
endsWithParent: !0,
contains: [{
className: "attribute",
begin: /\S/,
end: ":",
excludeEnd: !0,
starts: {
endsWithParent: !0,
excludeEnd: !0,
contains: [{
begin: /[\w-]+\(/,
returnBegin: !0,
contains: [{
className: "built_in",
begin: /[\w-]+/
}, {
begin: /\(/,
end: /\)/,
contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE]
}]
}, e.CSS_NUMBER_MODE, e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, e.C_BLOCK_COMMENT_MODE, {
className: "number",
begin: "#[0-9A-Fa-f]+"
}, {
className: "meta",
begin: "!important"
}]
}
}]
};
return {
case_insensitive: !0,
illegal: /[=\/|'\$]/,
contains: [e.C_BLOCK_COMMENT_MODE, {
className: "selector-id",
begin: /#[A-Za-z0-9_-]+/
}, {
className: "selector-class",
begin: /\.[A-Za-z0-9_-]+/
}, {
className: "selector-attr",
begin: /\[/,
end: /\]/,
illegal: "$"
}, {
className: "selector-pseudo",
begin: /:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/
}, {
begin: "@(font-face|page)",
lexemes: "[a-z-]+",
keywords: "font-face page"
}, {
begin: "@",
end: "[{;]",
illegal: /:/,
contains: [{
className: "keyword",
begin: /\w+/
}, {
begin: /\s/,
endsWithParent: !0,
excludeEnd: !0,
relevance: 0,
contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.CSS_NUMBER_MODE]
}]
}, {
className: "selector-tag",
begin: "[a-zA-Z-][a-zA-Z0-9_-]*",
relevance: 0
}, {
begin: "{",
end: "}",
illegal: /\S/,
contains: [e.C_BLOCK_COMMENT_MODE, t]
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "(0|[1-9][\\d_]*)",
n = "(" + t + "|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))",
r = "\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",
a = {
className: "number",
begin: "\\b" + n + "(L|u|U|Lu|LU|uL|UL)?",
relevance: 0
},
i = {
className: "number",
begin: "\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|" + n + "(i|[fF]i|Li))",
relevance: 0
},
o = {
className: "string",
begin: "'(" + r + "|.)",
end: "'",
illegal: "."
},
s = {
className: "string",
begin: '"',
contains: [{
begin: r,
relevance: 0
}],
end: '"[cwd]?'
},
l = e.COMMENT("\\/\\+", "\\+\\/", {
contains: ["self"],
relevance: 10
});
return {
lexemes: e.UNDERSCORE_IDENT_RE,
keywords: {
keyword: "abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",
built_in: "bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",
literal: "false null true"
},
contains: [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, l, {
className: "string",
begin: 'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',
relevance: 10
}, s, {
className: "string",
begin: '[rq]"',
end: '"[cwd]?',
relevance: 5
}, {
className: "string",
begin: "`",
end: "`[cwd]?"
}, {
className: "string",
begin: 'q"\\{',
end: '\\}"'
}, i, a, o, {
className: "meta",
begin: "^#!",
end: "$",
relevance: 5
}, {
className: "meta",
begin: "#(line)",
end: "$",
relevance: 5
}, {
className: "keyword",
begin: "@[a-zA-Z_][a-zA-Z_\\d]*"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["md", "mkdown", "mkd"],
contains: [{
className: "section",
variants: [{
begin: "^#{1,6}",
end: "$"
}, {
begin: "^.+?\\n[=-]{2,}$"
}]
}, {
begin: "<",
end: ">",
subLanguage: "xml",
relevance: 0
}, {
className: "bullet",
begin: "^([*+-]|(\\d+\\.))\\s+"
}, {
className: "strong",
begin: "[*_]{2}.+?[*_]{2}"
}, {
className: "emphasis",
variants: [{
begin: "\\*.+?\\*"
}, {
begin: "_.+?_",
relevance: 0
}]
}, {
className: "quote",
begin: "^>\\s+",
end: "$"
}, {
className: "code",
variants: [{
begin: "^```w*s*$",
end: "^```s*$"
}, {
begin: "`.+?`"
}, {
begin: "^( {4}|\t)",
end: "$",
relevance: 0
}]
}, {
begin: "^[-\\*]{3,}",
end: "$"
}, {
begin: "\\[.+?\\][\\(\\[].*?[\\)\\]]",
returnBegin: !0,
contains: [{
className: "string",
begin: "\\[",
end: "\\]",
excludeBegin: !0,
returnEnd: !0,
relevance: 0
}, {
className: "link",
begin: "\\]\\(",
end: "\\)",
excludeBegin: !0,
excludeEnd: !0
}, {
className: "symbol",
begin: "\\]\\[",
end: "\\]",
excludeBegin: !0,
excludeEnd: !0
}],
relevance: 10
}, {
begin: /^\[[^\n]+\]:/,
returnBegin: !0,
contains: [{
className: "symbol",
begin: /\[/,
end: /\]/,
excludeBegin: !0,
excludeEnd: !0
}, {
className: "link",
begin: /:\s*/,
end: /$/,
excludeBegin: !0
}]
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
className: "subst",
begin: "\\$\\{",
end: "}",
keywords: "true false null this is new super"
},
n = {
className: "string",
variants: [{
begin: "r'''",
end: "'''"
}, {
begin: 'r"""',
end: '"""'
}, {
begin: "r'",
end: "'",
illegal: "\\n"
}, {
begin: 'r"',
end: '"',
illegal: "\\n"
}, {
begin: "'''",
end: "'''",
contains: [e.BACKSLASH_ESCAPE, t]
}, {
begin: '"""',
end: '"""',
contains: [e.BACKSLASH_ESCAPE, t]
}, {
begin: "'",
end: "'",
illegal: "\\n",
contains: [e.BACKSLASH_ESCAPE, t]
}, {
begin: '"',
end: '"',
illegal: "\\n",
contains: [e.BACKSLASH_ESCAPE, t]
}]
};
t.contains = [e.C_NUMBER_MODE, n];
return {
keywords: {
keyword: "assert async await break case catch class const continue default do else enum extends false final finally for if in is new null rethrow return super switch sync this throw true try var void while with yield abstract as dynamic export external factory get implements import library operator part set static typedef",
built_in: "print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num document window querySelector querySelectorAll Element ElementList"
},
contains: [n, e.COMMENT("/\\*\\*", "\\*/", {
subLanguage: "markdown"
}), e.COMMENT("///", "$", {
subLanguage: "markdown"
}), e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, {
className: "class",
beginKeywords: "class interface",
end: "{",
excludeEnd: !0,
contains: [{
beginKeywords: "extends implements"
}, e.UNDERSCORE_TITLE_MODE]
}, e.C_NUMBER_MODE, {
className: "meta",
begin: "@[A-Za-z]+"
}, {
begin: "=>"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",
n = [e.C_LINE_COMMENT_MODE, e.COMMENT(/\{/, /\}/, {
relevance: 0
}), e.COMMENT(/\(\*/, /\*\)/, {
relevance: 10
})],
r = {
className: "meta",
variants: [{
begin: /\{\$/,
end: /\}/
}, {
begin: /\(\*\$/,
end: /\*\)/
}]
},
a = {
className: "string",
begin: /'/,
end: /'/,
contains: [{
begin: /''/
}]
},
i = {
className: "string",
begin: /(#\d+)+/
},
o = {
begin: e.IDENT_RE + "\\s*=\\s*class\\s*\\(",
returnBegin: !0,
contains: [e.TITLE_MODE]
},
s = {
className: "function",
beginKeywords: "function constructor destructor procedure",
end: /[:;]/,
keywords: "function constructor|10 destructor|10 procedure|10",
contains: [e.TITLE_MODE, {
className: "params",
begin: /\(/,
end: /\)/,
keywords: t,
contains: [a, i, r].concat(n)
}, r].concat(n)
};
return {
aliases: ["dpr", "dfm", "pas", "pascal", "freepascal", "lazarus", "lpr", "lfm"],
case_insensitive: !0,
keywords: t,
illegal: /"|\$[G-Zg-z]|\/\*|<\/|\|/,
contains: [a, i, e.NUMBER_MODE, o, s, r].concat(n)
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["patch"],
contains: [{
className: "meta",
relevance: 10,
variants: [{
begin: /^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/
}, {
begin: /^\*\*\* +\d+,\d+ +\*\*\*\*$/
}, {
begin: /^\-\-\- +\d+,\d+ +\-\-\-\-$/
}]
}, {
className: "comment",
variants: [{
begin: /Index: /,
end: /$/
}, {
begin: /={3,}/,
end: /$/
}, {
begin: /^\-{3}/,
end: /$/
}, {
begin: /^\*{3} /,
end: /$/
}, {
begin: /^\+{3}/,
end: /$/
}, {
begin: /\*{5}/,
end: /\*{5}$/
}]
}, {
className: "addition",
begin: "^\\+",
end: "$"
}, {
className: "deletion",
begin: "^\\-",
end: "$"
}, {
className: "addition",
begin: "^\\!",
end: "$"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
begin: /\|[A-Za-z]+:?/,
keywords: {
name: "truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"
},
contains: [e.QUOTE_STRING_MODE, e.APOS_STRING_MODE]
};
return {
aliases: ["jinja"],
case_insensitive: !0,
subLanguage: "xml",
contains: [e.COMMENT(/\{%\s*comment\s*%}/, /\{%\s*endcomment\s*%}/), e.COMMENT(/\{#/, /#}/), {
className: "template-tag",
begin: /\{%/,
end: /%}/,
contains: [{
className: "name",
begin: /\w+/,
keywords: {
name: "comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"
},
starts: {
endsWithParent: !0,
keywords: "in by as",
contains: [t],
relevance: 0
}
}]
}, {
className: "template-variable",
begin: /\{\{/,
end: /}}/,
contains: [t]
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["bind", "zone"],
keywords: {
keyword: "IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"
},
contains: [e.COMMENT(";", "$", {
relevance: 0
}), {
className: "meta",
begin: /^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/
}, {
className: "number",
begin: "((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"
}, {
className: "number",
begin: "((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"
}, e.inherit(e.NUMBER_MODE, {
begin: /\b\d+[dhwm]?/
})]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["docker"],
case_insensitive: !0,
keywords: "from maintainer expose env arg user onbuild stopsignal",
contains: [e.HASH_COMMENT_MODE, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, e.NUMBER_MODE, {
beginKeywords: "run cmd entrypoint volume add copy workdir label healthcheck shell",
starts: {
end: /[^\\]\n/,
subLanguage: "bash"
}
}],
illegal: "</"
}
}
}, function(e, t) {
e.exports = function(e) {
var t = e.COMMENT(/^\s*@?rem\b/, /$/, {
relevance: 10
});
return {
aliases: ["bat", "cmd"],
case_insensitive: !0,
illegal: /\/\*/,
keywords: {
keyword: "if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",
built_in: "prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux shift cd dir echo setlocal endlocal set pause copy append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shiftsort start subst time title tree type ver verify vol ping net ipconfig taskkill xcopy ren del"
},
contains: [{
className: "variable",
begin: /%%[^ ]|%[^ ]+?%|![^ ]+?!/
}, {
className: "function",
begin: "^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",
end: "goto:eof",
contains: [e.inherit(e.TITLE_MODE, {
begin: "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"
}), t]
}, {
className: "number",
begin: "\\b\\d+",
relevance: 0
}, t]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
keywords: "dsconfig",
contains: [{
className: "keyword",
begin: "^dsconfig",
end: "\\s",
excludeEnd: !0,
relevance: 10
}, {
className: "built_in",
begin: "(list|create|get|set|delete)-(\\w+)",
end: "\\s",
excludeEnd: !0,
illegal: "!@#$%^&*()",
relevance: 10
}, {
className: "built_in",
begin: "--(\\w+)",
end: "\\s",
excludeEnd: !0
}, {
className: "string",
begin: /"/,
end: /"/
}, {
className: "string",
begin: /'/,
end: /'/
}, {
className: "string",
begin: "[\\w-?]+:\\w+",
end: "\\W",
relevance: 0
}, {
className: "string",
begin: "\\w+-?\\w+",
end: "\\W",
relevance: 0
}, e.HASH_COMMENT_MODE]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
className: "string",
variants: [e.inherit(e.QUOTE_STRING_MODE, {
begin: '((u8?|U)|L)?"'
}), {
begin: '(u8?|U)?R"',
end: '"',
contains: [e.BACKSLASH_ESCAPE]
}, {
begin: "'\\\\?.",
end: "'",
illegal: "."
}]
},
n = {
className: "number",
variants: [{
begin: "\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"
}, {
begin: e.C_NUMBER_RE
}],
relevance: 0
},
r = {
className: "meta",
begin: "#",
end: "$",
keywords: {
"meta-keyword": "if else elif endif define undef ifdef ifndef"
},
contains: [{
begin: /\\\n/,
relevance: 0
}, {
beginKeywords: "include",
end: "$",
keywords: {
"meta-keyword": "include"
},
contains: [e.inherit(t, {
className: "meta-string"
}), {
className: "meta-string",
begin: "<",
end: ">",
illegal: "\\n"
}]
}, t, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE]
},
a = {
className: "variable",
begin: "\\&[a-z\\d_]*\\b"
},
i = {
className: "meta-keyword",
begin: "/[a-z][a-z\\d-]*/"
},
o = {
className: "symbol",
begin: "^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"
},
s = {
className: "params",
begin: "<",
end: ">",
contains: [n, a]
},
l = {
className: "class",
begin: /[a-zA-Z_][a-zA-Z\d_@]*\s{/,
end: /[{;=]/,
returnBegin: !0,
excludeEnd: !0
};
return {
keywords: "",
contains: [{
className: "class",
begin: "/\\s*{",
end: "};",
relevance: 10,
contains: [a, i, o, l, s, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, n, t]
}, a, i, o, l, s, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, n, t, r, {
begin: e.IDENT_RE + "::",
keywords: ""
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["dst"],
case_insensitive: !0,
subLanguage: "xml",
contains: [{
className: "template-tag",
begin: /\{[#\/]/,
end: /\}/,
illegal: /;/,
contains: [{
className: "name",
begin: /[a-zA-Z\.-]+/,
starts: {
endsWithParent: !0,
relevance: 0,
contains: [e.QUOTE_STRING_MODE]
}
}]
}, {
className: "template-variable",
begin: /\{/,
end: /\}/,
illegal: /;/,
keywords: "if eq ne lt lte gt gte select default math sep"
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = e.COMMENT(/\(\*/, /\*\)/);
return {
illegal: /\S/,
contains: [t, {
className: "attribute",
begin: /^[ ]*[a-zA-Z][a-zA-Z-]*([\s-]+[a-zA-Z][a-zA-Z]*)*/
}, {
begin: /=/,
end: /;/,
contains: [t, {
className: "meta",
begin: /\?.*\?/
}, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE]
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?",
n = "and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote",
r = {
className: "subst",
begin: "#\\{",
end: "}",
lexemes: t,
keywords: n
},
a = {
className: "string",
contains: [e.BACKSLASH_ESCAPE, r],
variants: [{
begin: /'/,
end: /'/
}, {
begin: /"/,
end: /"/
}]
},
i = {
className: "function",
beginKeywords: "def defp defmacro",
end: /\B\b/,
contains: [e.inherit(e.TITLE_MODE, {
begin: t,
endsParent: !0
})]
},
o = e.inherit(i, {
className: "class",
beginKeywords: "defimpl defmodule defprotocol defrecord",
end: /\bdo\b|$|;/
}),
s = [a, e.HASH_COMMENT_MODE, o, i, {
className: "symbol",
begin: ":(?!\\s)",
contains: [a, {
begin: "[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"
}],
relevance: 0
}, {
className: "symbol",
begin: t + ":",
relevance: 0
}, {
className: "number",
begin: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",
relevance: 0
}, {
className: "variable",
begin: "(\\$\\W)|((\\$|\\@\\@?)(\\w+))"
}, {
begin: "->"
}, {
begin: "(" + e.RE_STARTERS_RE + ")\\s*",
contains: [e.HASH_COMMENT_MODE, {
className: "regexp",
illegal: "\\n",
contains: [e.BACKSLASH_ESCAPE, r],
variants: [{
begin: "/",
end: "/[a-z]*"
}, {
begin: "%r\\[",
end: "\\][a-z]*"
}]
}],
relevance: 0
}];
return r.contains = s, {
lexemes: t,
keywords: n,
contains: s
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
variants: [e.COMMENT("--", "$"), e.COMMENT("{-", "-}", {
contains: ["self"]
})]
},
n = {
className: "type",
begin: "\\b[A-Z][\\w']*",
relevance: 0
},
r = {
begin: "\\(",
end: "\\)",
illegal: '"',
contains: [{
className: "type",
begin: "\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"
}, t]
};
return {
keywords: "let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",
contains: [{
beginKeywords: "port effect module",
end: "exposing",
keywords: "port effect module where command subscription exposing",
contains: [r, t],
illegal: "\\W\\.|;"
}, {
begin: "import",
end: "$",
keywords: "import as exposing",
contains: [r, t],
illegal: "\\W\\.|;"
}, {
begin: "type",
end: "$",
keywords: "type alias",
contains: [n, r, {
begin: "{",
end: "}",
contains: r.contains
}, t]
}, {
beginKeywords: "infix infixl infixr",
end: "$",
contains: [e.C_NUMBER_MODE, t]
}, {
begin: "port",
end: "$",
keywords: "port",
contains: [t]
}, e.QUOTE_STRING_MODE, e.C_NUMBER_MODE, n, e.inherit(e.TITLE_MODE, {
begin: "^[_a-z][\\w']*"
}), t, {
begin: "->|<-"
}],
illegal: /;/
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",
n = {
keyword: "and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",
literal: "true false nil"
},
r = {
className: "doctag",
begin: "@[A-Za-z]+"
},
a = {
begin: "#<",
end: ">"
},
i = [e.COMMENT("#", "$", {
contains: [r]
}), e.COMMENT("^\\=begin", "^\\=end", {
contains: [r],
relevance: 10
}), e.COMMENT("^__END__", "\\n$")],
o = {
className: "subst",
begin: "#\\{",
end: "}",
keywords: n
},
s = {
className: "string",
contains: [e.BACKSLASH_ESCAPE, o],
variants: [{
begin: /'/,
end: /'/
}, {
begin: /"/,
end: /"/
}, {
begin: /`/,
end: /`/
}, {
begin: "%[qQwWx]?\\(",
end: "\\)"
}, {
begin: "%[qQwWx]?\\[",
end: "\\]"
}, {
begin: "%[qQwWx]?{",
end: "}"
}, {
begin: "%[qQwWx]?<",
end: ">"
}, {
begin: "%[qQwWx]?/",
end: "/"
}, {
begin: "%[qQwWx]?%",
end: "%"
}, {
begin: "%[qQwWx]?-",
end: "-"
}, {
begin: "%[qQwWx]?\\|",
end: "\\|"
}, {
begin: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/
}, {
begin: /<<(-?)\w+$/,
end: /^\s*\w+$/
}]
},
l = {
className: "params",
begin: "\\(",
end: "\\)",
endsParent: !0,
keywords: n
},
c = [s, a, {
className: "class",
beginKeywords: "class module",
end: "$|;",
illegal: /=/,
contains: [e.inherit(e.TITLE_MODE, {
begin: "[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"
}), {
begin: "<\\s*",
contains: [{
begin: "(" + e.IDENT_RE + "::)?" + e.IDENT_RE
}]
}].concat(i)
}, {
className: "function",
beginKeywords: "def",
end: "$|;",
contains: [e.inherit(e.TITLE_MODE, {
begin: t
}), l].concat(i)
}, {
begin: e.IDENT_RE + "::"
}, {
className: "symbol",
begin: e.UNDERSCORE_IDENT_RE + "(\\!|\\?)?:",
relevance: 0
}, {
className: "symbol",
begin: ":(?!\\s)",
contains: [s, {
begin: t
}],
relevance: 0
}, {
className: "number",
begin: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",
relevance: 0
}, {
begin: "(\\$\\W)|((\\$|\\@\\@?)(\\w+))"
}, {
className: "params",
begin: /\|/,
end: /\|/,
keywords: n
}, {
begin: "(" + e.RE_STARTERS_RE + "|unless)\\s*",
keywords: "unless",
contains: [a, {
className: "regexp",
contains: [e.BACKSLASH_ESCAPE, o],
illegal: /\n/,
variants: [{
begin: "/",
end: "/[a-z]*"
}, {
begin: "%r{",
end: "}[a-z]*"
}, {
begin: "%r\\(",
end: "\\)[a-z]*"
}, {
begin: "%r!",
end: "![a-z]*"
}, {
begin: "%r\\[",
end: "\\][a-z]*"
}]
}].concat(i),
relevance: 0
}].concat(i);
o.contains = c, l.contains = c;
var u = [{
begin: /^\s*=>/,
starts: {
end: "$",
contains: c
}
}, {
className: "meta",
begin: "^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",
starts: {
end: "$",
contains: c
}
}];
return {
aliases: ["rb", "gemspec", "podspec", "thor", "irb"],
keywords: n,
illegal: /\/\*/,
contains: i.concat(u).concat(c)
}
}
}, function(e, t) {
e.exports = function(e) {
return {
subLanguage: "xml",
contains: [e.COMMENT("<%#", "%>"), {
begin: "<%[%=-]?",
end: "[%-]?%>",
subLanguage: "ruby",
excludeBegin: !0,
excludeEnd: !0
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
keywords: {
built_in: "spawn spawn_link self",
keyword: "after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"
},
contains: [{
className: "meta",
begin: "^[0-9]+> ",
relevance: 10
}, e.COMMENT("%", "$"), {
className: "number",
begin: "\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",
relevance: 0
}, e.APOS_STRING_MODE, e.QUOTE_STRING_MODE, {
begin: "\\?(::)?([A-Z]\\w*(::)?)+"
}, {
begin: "->"
}, {
begin: "ok"
}, {
begin: "!"
}, {
begin: "(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",
relevance: 0
}, {
begin: "[A-Z][a-zA-Z0-9_']*",
relevance: 0
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = "[a-z'][a-zA-Z0-9_']*",
n = "(" + t + ":" + t + "|" + t + ")",
r = {
keyword: "after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",
literal: "false true"
},
a = e.COMMENT("%", "$"),
i = {
className: "number",
begin: "\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",
relevance: 0
},
o = {
begin: "fun\\s+" + t + "/\\d+"
},
s = {
begin: n + "\\(",
end: "\\)",
returnBegin: !0,
relevance: 0,
contains: [{
begin: n,
relevance: 0
}, {
begin: "\\(",
end: "\\)",
endsWithParent: !0,
returnEnd: !0,
relevance: 0
}]
},
l = {
begin: "{",
end: "}",
relevance: 0
},
c = {
begin: "\\b_([A-Z][A-Za-z0-9_]*)?",
relevance: 0
},
u = {
begin: "[A-Z][a-zA-Z0-9_]*",
relevance: 0
},
d = {
begin: "#" + e.UNDERSCORE_IDENT_RE,
relevance: 0,
returnBegin: !0,
contains: [{
begin: "#" + e.UNDERSCORE_IDENT_RE,
relevance: 0
}, {
begin: "{",
end: "}",
relevance: 0
}]
},
p = {
beginKeywords: "fun receive if try case",
end: "end",
keywords: r
};
p.contains = [a, o, e.inherit(e.APOS_STRING_MODE, {
className: ""
}), p, s, e.QUOTE_STRING_MODE, i, l, c, u, d];
var m = [a, o, p, s, e.QUOTE_STRING_MODE, i, l, c, u, d];
s.contains[1].contains = m, l.contains = m, d.contains[1].contains = m;
var g = {
className: "params",
begin: "\\(",
end: "\\)",
contains: m
};
return {
aliases: ["erl"],
keywords: r,
illegal: "(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",
contains: [{
className: "function",
begin: "^" + t + "\\s*\\(",
end: "->",
returnBegin: !0,
illegal: "\\(|#|//|/\\*|\\\\|:|;",
contains: [g, e.inherit(e.TITLE_MODE, {
begin: t
})],
starts: {
end: ";|\\.",
keywords: r,
contains: m
}
}, a, {
begin: "^-",
end: "\\.",
relevance: 0,
excludeEnd: !0,
returnBegin: !0,
lexemes: "-" + e.IDENT_RE,
keywords: "-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec",
contains: [g]
}, i, e.QUOTE_STRING_MODE, d, c, u, l, {
begin: /\.$/
}]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["xlsx", "xls"],
case_insensitive: !0,
lexemes: /[a-zA-Z][\w\.]*/,
keywords: {
built_in: "ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF|0 IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"
},
contains: [{
begin: /^=/,
end: /[^=]/,
returnEnd: !0,
illegal: /=/,
relevance: 10
}, {
className: "symbol",
begin: /\b[A-Z]{1,2}\d+\b/,
end: /[^\d]/,
excludeEnd: !0,
relevance: 0
}, {
className: "symbol",
begin: /[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,
relevance: 0
}, e.BACKSLASH_ESCAPE, e.QUOTE_STRING_MODE, {
className: "number",
begin: e.NUMBER_RE + "(%)?",
relevance: 0
}, e.COMMENT(/\bN\(/, /\)/, {
excludeBegin: !0,
excludeEnd: !0,
illegal: /\n/
})]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
contains: [{
begin: /[^\u2401\u0001]+/,
end: /[\u2401\u0001]/,
excludeEnd: !0,
returnBegin: !0,
returnEnd: !1,
contains: [{
begin: /([^\u2401\u0001=]+)/,
end: /=([^\u2401\u0001=]+)/,
returnEnd: !0,
returnBegin: !1,
className: "attr"
}, {
begin: /=/,
end: /([\u2401\u0001])/,
excludeEnd: !0,
excludeBegin: !0,
className: "string"
}]
}],
case_insensitive: !0
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
className: "function",
beginKeywords: "def",
end: /[:={\[(\n;]/,
excludeEnd: !0,
contains: [{
className: "title",
begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/
}]
};
return {
keywords: {
literal: "true false",
keyword: "case class def else enum if impl import in lat rel index let match namespace switch type yield with"
},
contains: [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, {
className: "string",
begin: /'(.|\\[xXuU][a-zA-Z0-9]+)'/
}, {
className: "string",
variants: [{
begin: '"',
end: '"'
}]
}, t, e.C_NUMBER_MODE]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
case_insensitive: !0,
aliases: ["f90", "f95"],
keywords: {
literal: ".False. .True.",
keyword: "kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",
built_in: "alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image"
},
illegal: /\/\*/,
contains: [e.inherit(e.APOS_STRING_MODE, {
className: "string",
relevance: 0
}), e.inherit(e.QUOTE_STRING_MODE, {
className: "string",
relevance: 0
}), {
className: "function",
beginKeywords: "subroutine function program",
illegal: "[${=\\n]",
contains: [e.UNDERSCORE_TITLE_MODE, {
className: "params",
begin: "\\(",
end: "\\)"
}]
}, e.COMMENT("!", "$", {
relevance: 0
}), {
className: "number",
begin: "(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",
relevance: 0
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
begin: "<",
end: ">",
contains: [e.inherit(e.TITLE_MODE, {
begin: /'[a-zA-Z0-9_]+/
})]
};
return {
aliases: ["fs"],
keywords: "abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",
illegal: /\/\*/,
contains: [{
className: "keyword",
begin: /\b(yield|return|let|do)!/
}, {
className: "string",
begin: '@"',
end: '"',
contains: [{
begin: '""'
}]
}, {
className: "string",
begin: '"""',
end: '"""'
}, e.COMMENT("\\(\\*", "\\*\\)"), {
className: "class",
beginKeywords: "type",
end: "\\(|=|$",
excludeEnd: !0,
contains: [e.UNDERSCORE_TITLE_MODE, t]
}, {
className: "meta",
begin: "\\[<",
end: ">\\]",
relevance: 10
}, {
className: "symbol",
begin: "\\B('[A-Za-z])\\b",
contains: [e.BACKSLASH_ESCAPE]
}, e.C_LINE_COMMENT_MODE, e.inherit(e.QUOTE_STRING_MODE, {
illegal: null
}), e.C_NUMBER_MODE]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
keyword: "abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",
literal: "eps inf na",
"built-in": "abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"
},
n = {
className: "symbol",
variants: [{
begin: /\=[lgenxc]=/
}, {
begin: /\$/
}]
},
r = {
className: "comment",
variants: [{
begin: "'",
end: "'"
}, {
begin: '"',
end: '"'
}],
illegal: "\\n",
contains: [e.BACKSLASH_ESCAPE]
},
a = {
begin: "/",
end: "/",
keywords: t,
contains: [r, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, e.C_NUMBER_MODE]
},
i = {
begin: /[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,
excludeBegin: !0,
end: "$",
endsWithParent: !0,
contains: [r, a, {
className: "comment",
begin: /([ ]*[a-z0-9&#*=?@>\\<:\-,()$\[\]_.{}!+%^]+)+/,
relevance: 0
}]
};
return {
aliases: ["gms"],
case_insensitive: !0,
keywords: t,
contains: [e.COMMENT(/^\$ontext/, /^\$offtext/), {
className: "meta",
begin: "^\\$[a-z0-9]+",
end: "$",
returnBegin: !0,
contains: [{
className: "meta-keyword",
begin: "^\\$[a-z0-9]+"
}]
}, e.COMMENT("^\\*", "$"), e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, {
beginKeywords: "set sets parameter parameters variable variables scalar scalars equation equations",
end: ";",
contains: [e.COMMENT("^\\*", "$"), e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, a, i]
}, {
beginKeywords: "table",
end: ";",
returnBegin: !0,
contains: [{
beginKeywords: "table",
end: "$",
contains: [i]
}, e.COMMENT("^\\*", "$"), e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.QUOTE_STRING_MODE, e.APOS_STRING_MODE, e.C_NUMBER_MODE]
}, {
className: "function",
begin: /^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,
returnBegin: !0,
contains: [{
className: "title",
begin: /^[a-z0-9_]+/
}, {
className: "params",
begin: /\(/,
end: /\)/,
excludeBegin: !0,
excludeEnd: !0
}, n]
}, e.C_NUMBER_MODE, n]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = {
keyword: "and bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new not open or output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint",
built_in: "abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname threadBegin threadEnd threadEndFor threadFor threadJoin threadStat time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin strtrim sylvester",
literal: "DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS"
},
n = {
className: "meta",
begin: "#",
end: "$",
keywords: {
"meta-keyword": "define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"
},
contains: [{
begin: /\\\n/,
relevance: 0
}, {
beginKeywords: "include",
end: "$",
keywords: {
"meta-keyword": "include"
},
contains: [{
className: "meta-string",
begin: '"',
end: '"',
illegal: "\\n"
}]
}, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE]
},
r = e.UNDERSCORE_IDENT_RE + "\\s*\\(?",
a = [{
className: "params",
begin: /\(/,
end: /\)/,
keywords: t,
relevance: 0,
contains: [e.C_NUMBER_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE]
}];
return {
aliases: ["gss"],
case_insensitive: !0,
keywords: t,
illegal: "(\\{[%#]|[%#]\\})",
contains: [e.C_NUMBER_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.COMMENT("@", "@"), n, {
className: "string",
begin: '"',
end: '"',
contains: [e.BACKSLASH_ESCAPE]
}, {
className: "function",
beginKeywords: "proc keyword",
end: ";",
excludeEnd: !0,
keywords: t,
contains: [{
begin: r,
returnBegin: !0,
contains: [e.UNDERSCORE_TITLE_MODE],
relevance: 0
}, e.C_NUMBER_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, n].concat(a)
}, {
className: "function",
beginKeywords: "fn",
end: ";",
excludeEnd: !0,
keywords: t,
contains: [{
begin: r + e.IDENT_RE + "\\)?\\s*\\=\\s*",
returnBegin: !0,
contains: [e.UNDERSCORE_TITLE_MODE],
relevance: 0
}, e.C_NUMBER_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE].concat(a)
}, {
className: "function",
begin: "\\bexternal (proc|keyword|fn)\\s+",
end: ";",
excludeEnd: !0,
keywords: t,
contains: [{
begin: r,
returnBegin: !0,
contains: [e.UNDERSCORE_TITLE_MODE],
relevance: 0
}, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE]
}, {
className: "function",
begin: "\\bexternal (matrix|string|array|sparse matrix|struct " + e.IDENT_RE + ")\\s+",
end: ";",
excludeEnd: !0,
keywords: t,
contains: [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE]
}]
}
}
}, function(e, t) {
e.exports = function(e) {
var t = [e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, e.COMMENT(/\(/, /\)/), e.inherit(e.C_NUMBER_MODE, {
begin: "([-+]?([0-9]*\\.?[0-9]+\\.?))|" + e.C_NUMBER_RE
}), e.inherit(e.APOS_STRING_MODE, {
illegal: null
}), e.inherit(e.QUOTE_STRING_MODE, {
illegal: null
}), {
className: "name",
begin: "([G])([0-9]+\\.?[0-9]?)"
}, {
className: "name",
begin: "([M])([0-9]+\\.?[0-9]?)"
}, {
className: "attr",
begin: "(VC|VS|#)",
end: "(\\d+)"
}, {
className: "attr",
begin: "(VZOFX|VZOFY|VZOFZ)"
}, {
className: "built_in",
begin: "(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",
end: "([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])"
}, {
className: "symbol",
variants: [{
begin: "N",
end: "\\d+",
illegal: "\\W"
}]
}];
return {
aliases: ["nc"],
case_insensitive: !0,
lexemes: "[A-Z_][A-Z0-9_.]*",
keywords: "IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR",
contains: [{
className: "meta",
begin: "\\%"
}, {
className: "meta",
begin: "([O])([0-9]+)"
}].concat(t)
}
}
}, function(e, t) {
e.exports = function(e) {
return {
aliases: ["feature"],
keywords: "Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",
contains: [{
className: "symbol",
begin: "\\*",
relevance: 0
}, {
className: "meta",
begin: "@[^@\\s]+"
}, {
begin: "\\|",
end: "\\|\\w*$",
contains: [{
className: "string",
begin: "[^|]+"
}]
}, {
className: "variable",
begin: "<",
end: ">"
}, e.HASH_COMMENT_MODE, {
className: "string",
begin: '"""',
end: '"""'
}, e.QUOTE_STRING_MODE]
}
}
}, function(e, t) {
e.exports = function(e) {
return {
keywords: {
keyword: "break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",
type: "atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment