camunda-dmn-js
Version:
Embeddable Camunda modeling distributions based on dmn-js
1,582 lines (1,537 loc) • 3.03 MB
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DmnModeler = factory());
})(this, (function () { 'use strict';
function _arrayLikeToArray(r, a) {
(null == a || a > r.length) && (a = r.length);
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
return n;
}
function _arrayWithoutHoles(r) {
if (Array.isArray(r)) return _arrayLikeToArray(r);
}
function _assertThisInitialized(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e;
}
function _callSuper(t, o, e) {
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
}
function _classCallCheck(a, n) {
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
}
function _defineProperties(e, r) {
for (var t = 0; t < r.length; t++) {
var o = r[t];
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey$4(o.key), o);
}
}
function _createClass(e, r, t) {
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
writable: false
}), e;
}
function _defineProperty$4(e, r, t) {
return (r = _toPropertyKey$4(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: true,
configurable: true,
writable: true
}) : e[r] = t, e;
}
function _getPrototypeOf(t) {
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
}, _getPrototypeOf(t);
}
function _inherits(t, e) {
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
t.prototype = Object.create(e && e.prototype, {
constructor: {
value: t,
writable: true,
configurable: true
}
}), Object.defineProperty(t, "prototype", {
writable: false
}), e && _setPrototypeOf(t, e);
}
function _isNativeReflectConstruct() {
try {
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
} catch (t) {}
return (_isNativeReflectConstruct = function () {
return !!t;
})();
}
function _iterableToArray(r) {
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function ownKeys$1(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function (r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return t;
}
function _objectSpread2$1(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) {
_defineProperty$4(e, r, t[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return e;
}
function _objectWithoutProperties(e, t) {
if (null == e) return {};
var o,
r,
i = _objectWithoutPropertiesLoose(e, t);
if (Object.getOwnPropertySymbols) {
var n = Object.getOwnPropertySymbols(e);
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
}
return i;
}
function _objectWithoutPropertiesLoose(r, e) {
if (null == r) return {};
var t = {};
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
if (-1 !== e.indexOf(n)) continue;
t[n] = r[n];
}
return t;
}
function _possibleConstructorReturn(t, e) {
if (e && ("object" == typeof e || "function" == typeof e)) return e;
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
return _assertThisInitialized(t);
}
function _setPrototypeOf(t, e) {
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
return t.__proto__ = e, t;
}, _setPrototypeOf(t, e);
}
function _toConsumableArray(r) {
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
}
function _toPrimitive$4(t, r) {
if ("object" != typeof t || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r);
if ("object" != typeof i) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (String )(t);
}
function _toPropertyKey$4(t) {
var i = _toPrimitive$4(t, "string");
return "symbol" == typeof i ? i : i + "";
}
function _unsupportedIterableToArray(r, a) {
if (r) {
if ("string" == typeof r) return _arrayLikeToArray(r, a);
var t = {}.toString.call(r).slice(8, -1);
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
}
}
var name$6 = "Camunda";
var uri$5 = "http://camunda.org/schema/1.0/dmn";
var prefix$5 = "camunda";
var xml$3 = {
tagAlias: "lowerCase"
};
var associations$4 = [
];
var types$7 = [
{
name: "Definitions",
isAbstract: true,
"extends": [
"dmn:Definitions"
],
properties: [
{
name: "diagramRelationId",
isAttr: true,
type: "String"
}
]
},
{
name: "Decision",
isAbstract: true,
"extends": [
"dmn:Decision"
],
properties: [
{
name: "versionTag",
isAttr: true,
type: "String"
},
{
name: "historyTimeToLive",
isAttr: true,
type: "String"
}
]
},
{
name: "InputClause",
"extends": [
"dmn:InputClause"
],
properties: [
{
name: "inputVariable",
isAttr: true,
type: "String"
}
]
}
];
var emumerations = [
];
var CamundaModdle = {
name: name$6,
uri: uri$5,
prefix: prefix$5,
xml: xml$3,
associations: associations$4,
types: types$7,
emumerations: emumerations
};
var n$2,
l$3,
u$4,
i$3,
o$3,
r$4,
f$4,
e$4,
c$3 = {},
s$3 = [],
a$3 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,
h$3 = Array.isArray;
function v$3(n, l) {
for (var u in l) n[u] = l[u];
return n;
}
function p$3(n) {
var l = n.parentNode;
l && l.removeChild(n);
}
function y$3(l, u, t) {
var i,
o,
r,
f = {};
for (r in u) "key" == r ? i = u[r] : "ref" == r ? o = u[r] : f[r] = u[r];
if (arguments.length > 2 && (f.children = arguments.length > 3 ? n$2.call(arguments, 2) : t), "function" == typeof l && null != l.defaultProps) for (r in l.defaultProps) void 0 === f[r] && (f[r] = l.defaultProps[r]);
return d$2(l, f, i, o, null);
}
function d$2(n, t, i, o, r) {
var f = {
type: n,
props: t,
key: i,
ref: o,
__k: null,
__: null,
__b: 0,
__e: null,
__d: void 0,
__c: null,
constructor: void 0,
__v: null == r ? ++u$4 : r,
__i: -1,
__u: 0
};
return null == r && null != l$3.vnode && l$3.vnode(f), f;
}
function g$4(n) {
return n.children;
}
function b$3(n, l) {
this.props = n, this.context = l;
}
function m$4(n, l) {
if (null == l) return n.__ ? m$4(n.__, n.__i + 1) : null;
for (var u; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) return u.__e;
return "function" == typeof n.type ? m$4(n) : null;
}
function k$3(n) {
var l, u;
if (null != (n = n.__) && null != n.__c) {
for (n.__e = n.__c.base = null, l = 0; l < n.__k.length; l++) if (null != (u = n.__k[l]) && null != u.__e) {
n.__e = n.__c.base = u.__e;
break;
}
return k$3(n);
}
}
function w$3(n) {
(!n.__d && (n.__d = true) && i$3.push(n) && !x$2.__r++ || o$3 !== l$3.debounceRendering) && ((o$3 = l$3.debounceRendering) || r$4)(x$2);
}
function x$2() {
var n, u, t, o, r, e, c, s, a;
for (i$3.sort(f$4); n = i$3.shift();) n.__d && (u = i$3.length, o = void 0, e = (r = (t = n).__v).__e, s = [], a = [], (c = t.__P) && ((o = v$3({}, r)).__v = r.__v + 1, l$3.vnode && l$3.vnode(o), L$2(c, o, r, t.__n, void 0 !== c.ownerSVGElement, 32 & r.__u ? [e] : null, s, null == e ? m$4(r) : e, !!(32 & r.__u), a), o.__.__k[o.__i] = o, M$2(s, o, a), o.__e != e && k$3(o)), i$3.length > u && i$3.sort(f$4));
x$2.__r = 0;
}
function C$3(n, l, u, t, i, o, r, f, e, a, h) {
var v,
p,
y,
d,
_,
g = t && t.__k || s$3,
b = l.length;
for (u.__d = e, P$2(u, l, g), e = u.__d, v = 0; v < b; v++) null != (y = u.__k[v]) && "boolean" != typeof y && "function" != typeof y && (p = -1 === y.__i ? c$3 : g[y.__i] || c$3, y.__i = v, L$2(n, y, p, i, o, r, f, e, a, h), d = y.__e, y.ref && p.ref != y.ref && (p.ref && z$4(p.ref, null, y), h.push(y.ref, y.__c || d, y)), null == _ && null != d && (_ = d), 65536 & y.__u || p.__k === y.__k ? e = S$1(y, e, n) : "function" == typeof y.type && void 0 !== y.__d ? e = y.__d : d && (e = d.nextSibling), y.__d = void 0, y.__u &= -196609);
u.__d = e, u.__e = _;
}
function P$2(n, l, u) {
var t,
i,
o,
r,
f,
e = l.length,
c = u.length,
s = c,
a = 0;
for (n.__k = [], t = 0; t < e; t++) null != (i = n.__k[t] = null == (i = l[t]) || "boolean" == typeof i || "function" == typeof i ? null : "string" == typeof i || "number" == typeof i || "bigint" == typeof i || i.constructor == String ? d$2(null, i, null, null, i) : h$3(i) ? d$2(g$4, {
children: i
}, null, null, null) : void 0 === i.constructor && i.__b > 0 ? d$2(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) ? (i.__ = n, i.__b = n.__b + 1, f = H$2(i, u, r = t + a, s), i.__i = f, o = null, -1 !== f && (s--, (o = u[f]) && (o.__u |= 131072)), null == o || null === o.__v ? (-1 == f && a--, "function" != typeof i.type && (i.__u |= 65536)) : f !== r && (f === r + 1 ? a++ : f > r ? s > e - r ? a += f - r : a-- : a = f < r && f == r - 1 ? f - r : 0, f !== t + a && (i.__u |= 65536))) : (o = u[t]) && null == o.key && o.__e && (o.__e == n.__d && (n.__d = m$4(o)), N$2(o, o, false), u[t] = null, s--);
if (s) for (t = 0; t < c; t++) null != (o = u[t]) && 0 == (131072 & o.__u) && (o.__e == n.__d && (n.__d = m$4(o)), N$2(o, o));
}
function S$1(n, l, u) {
var t, i;
if ("function" == typeof n.type) {
for (t = n.__k, i = 0; t && i < t.length; i++) t[i] && (t[i].__ = n, l = S$1(t[i], l, u));
return l;
}
return n.__e != l && (u.insertBefore(n.__e, l || null), l = n.__e), l && l.nextSibling;
}
function $$2(n, l) {
return l = l || [], null == n || "boolean" == typeof n || (h$3(n) ? n.some(function (n) {
$$2(n, l);
}) : l.push(n)), l;
}
function H$2(n, l, u, t) {
var i = n.key,
o = n.type,
r = u - 1,
f = u + 1,
e = l[u];
if (null === e || e && i == e.key && o === e.type) return u;
if (t > (null != e && 0 == (131072 & e.__u) ? 1 : 0)) for (; r >= 0 || f < l.length;) {
if (r >= 0) {
if ((e = l[r]) && 0 == (131072 & e.__u) && i == e.key && o === e.type) return r;
r--;
}
if (f < l.length) {
if ((e = l[f]) && 0 == (131072 & e.__u) && i == e.key && o === e.type) return f;
f++;
}
}
return -1;
}
function I$2(n, l, u) {
"-" === l[0] ? n.setProperty(l, null == u ? "" : u) : n[l] = null == u ? "" : "number" != typeof u || a$3.test(l) ? u : u + "px";
}
function T$4(n, l, u, t, i) {
var o;
n: if ("style" === l) {
if ("string" == typeof u) n.style.cssText = u;else {
if ("string" == typeof t && (n.style.cssText = t = ""), t) for (l in t) u && l in u || I$2(n.style, l, "");
if (u) for (l in u) t && u[l] === t[l] || I$2(n.style, l, u[l]);
}
} else if ("o" === l[0] && "n" === l[1]) o = l !== (l = l.replace(/(PointerCapture)$|Capture$/, "$1")), l = l.toLowerCase() in n ? l.toLowerCase().slice(2) : l.slice(2), n.l || (n.l = {}), n.l[l + o] = u, u ? t ? u.u = t.u : (u.u = Date.now(), n.addEventListener(l, o ? D$1 : A$1, o)) : n.removeEventListener(l, o ? D$1 : A$1, o);else {
if (i) l = l.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");else if ("width" !== l && "height" !== l && "href" !== l && "list" !== l && "form" !== l && "tabIndex" !== l && "download" !== l && "rowSpan" !== l && "colSpan" !== l && "role" !== l && l in n) try {
n[l] = null == u ? "" : u;
break n;
} catch (n) {}
"function" == typeof u || (null == u || false === u && "-" !== l[4] ? n.removeAttribute(l) : n.setAttribute(l, u));
}
}
function A$1(n) {
var u = this.l[n.type + false];
if (n.t) {
if (n.t <= u.u) return;
} else n.t = Date.now();
return u(l$3.event ? l$3.event(n) : n);
}
function D$1(n) {
return this.l[n.type + true](l$3.event ? l$3.event(n) : n);
}
function L$2(n, u, t, i, o, r, f, e, c, s) {
var a,
p,
y,
d,
_,
m,
k,
w,
x,
P,
S,
$,
H,
I,
T,
A = u.type;
if (void 0 !== u.constructor) return null;
128 & t.__u && (c = !!(32 & t.__u), r = [e = u.__e = t.__e]), (a = l$3.__b) && a(u);
n: if ("function" == typeof A) try {
if (w = u.props, x = (a = A.contextType) && i[a.__c], P = a ? x ? x.props.value : a.__ : i, t.__c ? k = (p = u.__c = t.__c).__ = p.__E : ("prototype" in A && A.prototype.render ? u.__c = p = new A(w, P) : (u.__c = p = new b$3(w, P), p.constructor = A, p.render = O$2), x && x.sub(p), p.props = w, p.state || (p.state = {}), p.context = P, p.__n = i, y = p.__d = !0, p.__h = [], p._sb = []), null == p.__s && (p.__s = p.state), null != A.getDerivedStateFromProps && (p.__s == p.state && (p.__s = v$3({}, p.__s)), v$3(p.__s, A.getDerivedStateFromProps(w, p.__s))), d = p.props, _ = p.state, p.__v = u, y) null == A.getDerivedStateFromProps && null != p.componentWillMount && p.componentWillMount(), null != p.componentDidMount && p.__h.push(p.componentDidMount);else {
if (null == A.getDerivedStateFromProps && w !== d && null != p.componentWillReceiveProps && p.componentWillReceiveProps(w, P), !p.__e && (null != p.shouldComponentUpdate && !1 === p.shouldComponentUpdate(w, p.__s, P) || u.__v === t.__v)) {
for (u.__v !== t.__v && (p.props = w, p.state = p.__s, p.__d = !1), u.__e = t.__e, u.__k = t.__k, u.__k.forEach(function (n) {
n && (n.__ = u);
}), S = 0; S < p._sb.length; S++) p.__h.push(p._sb[S]);
p._sb = [], p.__h.length && f.push(p);
break n;
}
null != p.componentWillUpdate && p.componentWillUpdate(w, p.__s, P), null != p.componentDidUpdate && p.__h.push(function () {
p.componentDidUpdate(d, _, m);
});
}
if (p.context = P, p.props = w, p.__P = n, p.__e = !1, $ = l$3.__r, H = 0, "prototype" in A && A.prototype.render) {
for (p.state = p.__s, p.__d = !1, $ && $(u), a = p.render(p.props, p.state, p.context), I = 0; I < p._sb.length; I++) p.__h.push(p._sb[I]);
p._sb = [];
} else do {
p.__d = !1, $ && $(u), a = p.render(p.props, p.state, p.context), p.state = p.__s;
} while (p.__d && ++H < 25);
p.state = p.__s, null != p.getChildContext && (i = v$3(v$3({}, i), p.getChildContext())), y || null == p.getSnapshotBeforeUpdate || (m = p.getSnapshotBeforeUpdate(d, _)), C$3(n, h$3(T = null != a && a.type === g$4 && null == a.key ? a.props.children : a) ? T : [T], u, t, i, o, r, f, e, c, s), p.base = u.__e, u.__u &= -161, p.__h.length && f.push(p), k && (p.__E = p.__ = null);
} catch (n) {
u.__v = null, c || null != r ? (u.__e = e, u.__u |= c ? 160 : 32, r[r.indexOf(e)] = null) : (u.__e = t.__e, u.__k = t.__k), l$3.__e(n, u, t);
} else null == r && u.__v === t.__v ? (u.__k = t.__k, u.__e = t.__e) : u.__e = j$3(t.__e, u, t, i, o, r, f, c, s);
(a = l$3.diffed) && a(u);
}
function M$2(n, u, t) {
u.__d = void 0;
for (var i = 0; i < t.length; i++) z$4(t[i], t[++i], t[++i]);
l$3.__c && l$3.__c(u, n), n.some(function (u) {
try {
n = u.__h, u.__h = [], n.some(function (n) {
n.call(u);
});
} catch (n) {
l$3.__e(n, u.__v);
}
});
}
function j$3(l, u, t, i, o, r, f, e, s) {
var a,
v,
y,
d,
_,
g,
b,
k = t.props,
w = u.props,
x = u.type;
if ("svg" === x && (o = true), null != r) for (a = 0; a < r.length; a++) if ((_ = r[a]) && "setAttribute" in _ == !!x && (x ? _.localName === x : 3 === _.nodeType)) {
l = _, r[a] = null;
break;
}
if (null == l) {
if (null === x) return document.createTextNode(w);
l = o ? document.createElementNS("http://www.w3.org/2000/svg", x) : document.createElement(x, w.is && w), r = null, e = false;
}
if (null === x) k === w || e && l.data === w || (l.data = w);else {
if (r = r && n$2.call(l.childNodes), k = t.props || c$3, !e && null != r) for (k = {}, a = 0; a < l.attributes.length; a++) k[(_ = l.attributes[a]).name] = _.value;
for (a in k) _ = k[a], "children" == a || ("dangerouslySetInnerHTML" == a ? y = _ : "key" === a || a in w || T$4(l, a, null, _, o));
for (a in w) _ = w[a], "children" == a ? d = _ : "dangerouslySetInnerHTML" == a ? v = _ : "value" == a ? g = _ : "checked" == a ? b = _ : "key" === a || e && "function" != typeof _ || k[a] === _ || T$4(l, a, _, k[a], o);
if (v) e || y && (v.__html === y.__html || v.__html === l.innerHTML) || (l.innerHTML = v.__html), u.__k = [];else if (y && (l.innerHTML = ""), C$3(l, h$3(d) ? d : [d], u, t, i, o && "foreignObject" !== x, r, f, r ? r[0] : t.__k && m$4(t, 0), e, s), null != r) for (a = r.length; a--;) null != r[a] && p$3(r[a]);
e || (a = "value", void 0 !== g && (g !== l[a] || "progress" === x && !g || "option" === x && g !== k[a]) && T$4(l, a, g, k[a], false), a = "checked", void 0 !== b && b !== l[a] && T$4(l, a, b, k[a], false));
}
return l;
}
function z$4(n, u, t) {
try {
"function" == typeof n ? n(u) : n.current = u;
} catch (n) {
l$3.__e(n, t);
}
}
function N$2(n, u, t) {
var i, o;
if (l$3.unmount && l$3.unmount(n), (i = n.ref) && (i.current && i.current !== n.__e || z$4(i, null, u)), null != (i = n.__c)) {
if (i.componentWillUnmount) try {
i.componentWillUnmount();
} catch (n) {
l$3.__e(n, u);
}
i.base = i.__P = null, n.__c = void 0;
}
if (i = n.__k) for (o = 0; o < i.length; o++) i[o] && N$2(i[o], u, t || "function" != typeof n.type);
t || null == n.__e || p$3(n.__e), n.__ = n.__e = n.__d = void 0;
}
function O$2(n, l, u) {
return this.constructor(n, u);
}
function q$2(u, t, i) {
var o, r, f, e;
l$3.__ && l$3.__(u, t), r = (o = "function" == "undefined") ? null : t.__k, f = [], e = [], L$2(t, u = (t).__k = y$3(g$4, null, [u]), r || c$3, c$3, void 0 !== t.ownerSVGElement, r ? null : t.firstChild ? n$2.call(t.childNodes) : null, f, r ? r.__e : t.firstChild, o, e), M$2(f, u, e);
}
function F$3(n, l) {
var u = {
__c: l = "__cC" + e$4++,
__: n,
Consumer: function (n, l) {
return n.children(l);
},
Provider: function (n) {
var u, t;
return this.getChildContext || (u = [], (t = {})[l] = this, this.getChildContext = function () {
return t;
}, this.shouldComponentUpdate = function (n) {
this.props.value !== n.value && u.some(function (n) {
n.__e = true, w$3(n);
});
}, this.sub = function (n) {
u.push(n);
var l = n.componentWillUnmount;
n.componentWillUnmount = function () {
u.splice(u.indexOf(n), 1), l && l.call(n);
};
}), n.children;
}
};
return u.Provider.__ = u.Consumer.contextType = u;
}
n$2 = s$3.slice, l$3 = {
__e: function (n, l, u, t) {
for (var i, o, r; l = l.__;) if ((i = l.__c) && !i.__) try {
if ((o = i.constructor) && null != o.getDerivedStateFromError && (i.setState(o.getDerivedStateFromError(n)), r = i.__d), null != i.componentDidCatch && (i.componentDidCatch(n, t || {}), r = i.__d), r) return i.__E = i;
} catch (l) {
n = l;
}
throw n;
}
}, u$4 = 0, b$3.prototype.setState = function (n, l) {
var u;
u = null != this.__s && this.__s !== this.state ? this.__s : this.__s = v$3({}, this.state), "function" == typeof n && (n = n(v$3({}, u), this.props)), n && v$3(u, n), null != n && this.__v && (l && this._sb.push(l), w$3(this));
}, b$3.prototype.forceUpdate = function (n) {
this.__v && (this.__e = true, n && this.__h.push(n), w$3(this));
}, b$3.prototype.render = g$4, i$3 = [], r$4 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f$4 = function (n, l) {
return n.__v.__b - l.__v.__b;
}, x$2.__r = 0, e$4 = 0;
var t$4,
r$3,
u$3,
i$2,
o$2 = 0,
f$3 = [],
c$2 = [],
e$3 = l$3.__b,
a$2 = l$3.__r,
v$2 = l$3.diffed,
l$2 = l$3.__c,
m$3 = l$3.unmount;
function d$1(t, u) {
l$3.__h && l$3.__h(r$3, t, o$2 || u), o$2 = 0;
var i = r$3.__H || (r$3.__H = {
__: [],
__h: []
});
return t >= i.__.length && i.__.push({
__V: c$2
}), i.__[t];
}
function h$2(n) {
return o$2 = 1, s$2(B$3, n);
}
function s$2(n, u, i) {
var o = d$1(t$4++, 2);
if (o.t = n, !o.__c && (o.__ = [i ? i(u) : B$3(void 0, u), function (n) {
var t = o.__N ? o.__N[0] : o.__[0],
r = o.t(t, n);
t !== r && (o.__N = [r, o.__[1]], o.__c.setState({}));
}], o.__c = r$3, !r$3.u)) {
var f = function (n, t, r) {
if (!o.__c.__H) return true;
var u = o.__c.__H.__.filter(function (n) {
return n.__c;
});
if (u.every(function (n) {
return !n.__N;
})) return !c || c.call(this, n, t, r);
var i = false;
return u.forEach(function (n) {
if (n.__N) {
var t = n.__[0];
n.__ = n.__N, n.__N = void 0, t !== n.__[0] && (i = true);
}
}), !(!i && o.__c.props === n) && (!c || c.call(this, n, t, r));
};
r$3.u = true;
var c = r$3.shouldComponentUpdate,
e = r$3.componentWillUpdate;
r$3.componentWillUpdate = function (n, t, r) {
if (this.__e) {
var u = c;
c = void 0, f(n, t, r), c = u;
}
e && e.call(this, n, t, r);
}, r$3.shouldComponentUpdate = f;
}
return o.__N || o.__;
}
function p$2(u, i) {
var o = d$1(t$4++, 3);
!l$3.__s && z$3(o.__H, i) && (o.__ = u, o.i = i, r$3.__H.__h.push(o));
}
function y$2(u, i) {
var o = d$1(t$4++, 4);
!l$3.__s && z$3(o.__H, i) && (o.__ = u, o.i = i, r$3.__h.push(o));
}
function _$2(n) {
return o$2 = 5, F$2(function () {
return {
current: n
};
}, []);
}
function F$2(n, r) {
var u = d$1(t$4++, 7);
return z$3(u.__H, r) ? (u.__V = n(), u.i = r, u.__h = n, u.__V) : u.__;
}
function T$3(n, t) {
return o$2 = 8, F$2(function () {
return n;
}, t);
}
function q$1(n) {
var u = r$3.context[n.__c],
i = d$1(t$4++, 9);
return i.c = n, u ? (null == i.__ && (i.__ = true, u.sub(r$3)), u.props.value) : n.__;
}
function b$2() {
for (var t; t = f$3.shift();) if (t.__P && t.__H) try {
t.__H.__h.forEach(k$2), t.__H.__h.forEach(w$2), t.__H.__h = [];
} catch (r) {
t.__H.__h = [], l$3.__e(r, t.__v);
}
}
l$3.__b = function (n) {
r$3 = null, e$3 && e$3(n);
}, l$3.__r = function (n) {
a$2 && a$2(n), t$4 = 0;
var i = (r$3 = n.__c).__H;
i && (u$3 === r$3 ? (i.__h = [], r$3.__h = [], i.__.forEach(function (n) {
n.__N && (n.__ = n.__N), n.__V = c$2, n.__N = n.i = void 0;
})) : (i.__h.forEach(k$2), i.__h.forEach(w$2), i.__h = [], t$4 = 0)), u$3 = r$3;
}, l$3.diffed = function (t) {
v$2 && v$2(t);
var o = t.__c;
o && o.__H && (o.__H.__h.length && (1 !== f$3.push(o) && i$2 === l$3.requestAnimationFrame || ((i$2 = l$3.requestAnimationFrame) || j$2)(b$2)), o.__H.__.forEach(function (n) {
n.i && (n.__H = n.i), n.__V !== c$2 && (n.__ = n.__V), n.i = void 0, n.__V = c$2;
})), u$3 = r$3 = null;
}, l$3.__c = function (t, r) {
r.some(function (t) {
try {
t.__h.forEach(k$2), t.__h = t.__h.filter(function (n) {
return !n.__ || w$2(n);
});
} catch (u) {
r.some(function (n) {
n.__h && (n.__h = []);
}), r = [], l$3.__e(u, t.__v);
}
}), l$2 && l$2(t, r);
}, l$3.unmount = function (t) {
m$3 && m$3(t);
var r,
u = t.__c;
u && u.__H && (u.__H.__.forEach(function (n) {
try {
k$2(n);
} catch (n) {
r = n;
}
}), u.__H = void 0, r && l$3.__e(r, u.__v));
};
var g$3 = "function" == typeof requestAnimationFrame;
function j$2(n) {
var t,
r = function () {
clearTimeout(u), g$3 && cancelAnimationFrame(t), setTimeout(n);
},
u = setTimeout(r, 100);
g$3 && (t = requestAnimationFrame(r));
}
function k$2(n) {
var t = r$3,
u = n.__c;
"function" == typeof u && (n.__c = void 0, u()), r$3 = t;
}
function w$2(n) {
var t = r$3;
n.__c = n.__(), r$3 = t;
}
function z$3(n, t) {
return !n || n.length !== t.length || t.some(function (t, r) {
return t !== n[r];
});
}
function B$3(n, t) {
return "function" == typeof t ? t(n) : t;
}
/**
* Flatten array, one level deep.
*
* @template T
*
* @param {T[][] | T[] | null} [arr]
*
* @return {T[]}
*/
function flatten$1(arr) {
return Array.prototype.concat.apply([], arr);
}
const nativeToString = Object.prototype.toString;
const nativeHasOwnProperty = Object.prototype.hasOwnProperty;
function isUndefined$2(obj) {
return obj === undefined;
}
function isDefined(obj) {
return obj !== undefined;
}
function isNil(obj) {
return obj == null;
}
function isArray$3(obj) {
return nativeToString.call(obj) === '[object Array]';
}
function isObject(obj) {
return nativeToString.call(obj) === '[object Object]';
}
function isNumber$3(obj) {
return nativeToString.call(obj) === '[object Number]';
}
/**
* @param {any} obj
*
* @return {boolean}
*/
function isFunction$1(obj) {
const tag = nativeToString.call(obj);
return tag === '[object Function]' || tag === '[object AsyncFunction]' || tag === '[object GeneratorFunction]' || tag === '[object AsyncGeneratorFunction]' || tag === '[object Proxy]';
}
function isString$1(obj) {
return nativeToString.call(obj) === '[object String]';
}
/**
* Return true, if target owns a property with the given key.
*
* @param {Object} target
* @param {String} key
*
* @return {Boolean}
*/
function has(target, key) {
return !isNil(target) && nativeHasOwnProperty.call(target, key);
}
/**
* @template T
* @typedef { (
* ((e: T) => boolean) |
* ((e: T, idx: number) => boolean) |
* ((e: T, key: string) => boolean) |
* string |
* number
* ) } Matcher
*/
/**
* @template T
* @template U
*
* @typedef { (
* ((e: T) => U) | string | number
* ) } Extractor
*/
/**
* @template T
* @typedef { (val: T, key: any) => boolean } MatchFn
*/
/**
* @template T
* @typedef { T[] } ArrayCollection
*/
/**
* @template T
* @typedef { { [key: string]: T } } StringKeyValueCollection
*/
/**
* @template T
* @typedef { { [key: number]: T } } NumberKeyValueCollection
*/
/**
* @template T
* @typedef { StringKeyValueCollection<T> | NumberKeyValueCollection<T> } KeyValueCollection
*/
/**
* @template T
* @typedef { KeyValueCollection<T> | ArrayCollection<T> } Collection
*/
/**
* Find element in collection.
*
* @template T
* @param {Collection<T>} collection
* @param {Matcher<T>} matcher
*
* @return {Object}
*/
function find$1(collection, matcher) {
const matchFn = toMatcher(matcher);
let match;
forEach(collection, function (val, key) {
if (matchFn(val, key)) {
match = val;
return false;
}
});
return match;
}
/**
* Find element index in collection.
*
* @template T
* @param {Collection<T>} collection
* @param {Matcher<T>} matcher
*
* @return {number | string | undefined}
*/
function findIndex$1(collection, matcher) {
const matchFn = toMatcher(matcher);
let idx = isArray$3(collection) ? -1 : undefined;
forEach(collection, function (val, key) {
if (matchFn(val, key)) {
idx = key;
return false;
}
});
return idx;
}
/**
* Filter elements in collection.
*
* @template T
* @param {Collection<T>} collection
* @param {Matcher<T>} matcher
*
* @return {T[]} result
*/
function filter$1(collection, matcher) {
const matchFn = toMatcher(matcher);
let result = [];
forEach(collection, function (val, key) {
if (matchFn(val, key)) {
result.push(val);
}
});
return result;
}
/**
* Iterate over collection; returning something
* (non-undefined) will stop iteration.
*
* @template T
* @param {Collection<T>} collection
* @param { ((item: T, idx: number) => (boolean|void)) | ((item: T, key: string) => (boolean|void)) } iterator
*
* @return {T} return result that stopped the iteration
*/
function forEach(collection, iterator) {
let val, result;
if (isUndefined$2(collection)) {
return;
}
const convertKey = isArray$3(collection) ? toNum : identity;
for (let key in collection) {
if (has(collection, key)) {
val = collection[key];
result = iterator(val, convertKey(key));
if (result === false) {
return val;
}
}
}
}
/**
* Reduce collection, returning a single result.
*
* @template T
* @template V
*
* @param {Collection<T>} collection
* @param {(result: V, entry: T, index: any) => V} iterator
* @param {V} result
*
* @return {V} result returned from last iterator
*/
function reduce(collection, iterator, result) {
forEach(collection, function (value, idx) {
result = iterator(result, value, idx);
});
return result;
}
/**
* Return true if every element in the collection
* matches the criteria.
*
* @param {Object|Array} collection
* @param {Function} matcher
*
* @return {Boolean}
*/
function every(collection, matcher) {
return !!reduce(collection, function (matches, val, key) {
return matches && matcher(val, key);
}, true);
}
/**
* Return true if some elements in the collection
* match the criteria.
*
* @param {Object|Array} collection
* @param {Function} matcher
*
* @return {Boolean}
*/
function some(collection, matcher) {
return !!find$1(collection, matcher);
}
/**
* Transform a collection into another collection
* by piping each member through the given fn.
*
* @param {Object|Array} collection
* @param {Function} fn
*
* @return {Array} transformed collection
*/
function map(collection, fn) {
let result = [];
forEach(collection, function (val, key) {
result.push(fn(val, key));
});
return result;
}
/**
* Get the collections keys.
*
* @param {Object|Array} collection
*
* @return {Array}
*/
function keys(collection) {
return collection && Object.keys(collection) || [];
}
/**
* Shorthand for `keys(o).length`.
*
* @param {Object|Array} collection
*
* @return {Number}
*/
function size(collection) {
return keys(collection).length;
}
/**
* Get the values in the collection.
*
* @param {Object|Array} collection
*
* @return {Array}
*/
function values$1(collection) {
return map(collection, val => val);
}
/**
* Group collection members by attribute.
*
* @param {Object|Array} collection
* @param {Extractor} extractor
*
* @return {Object} map with { attrValue => [ a, b, c ] }
*/
function groupBy(collection, extractor, grouped = {}) {
extractor = toExtractor(extractor);
forEach(collection, function (val) {
let discriminator = extractor(val) || '_';
let group = grouped[discriminator];
if (!group) {
group = grouped[discriminator] = [];
}
group.push(val);
});
return grouped;
}
function uniqueBy(extractor, ...collections) {
extractor = toExtractor(extractor);
let grouped = {};
forEach(collections, c => groupBy(c, extractor, grouped));
let result = map(grouped, function (val, key) {
return val[0];
});
return result;
}
/**
* Sort collection by criteria.
*
* @template T
*
* @param {Collection<T>} collection
* @param {Extractor<T, number | string>} extractor
*
* @return {Array}
*/
function sortBy(collection, extractor) {
extractor = toExtractor(extractor);
let sorted = [];
forEach(collection, function (value, key) {
let disc = extractor(value, key);
let entry = {
d: disc,
v: value
};
for (var idx = 0; idx < sorted.length; idx++) {
let {
d
} = sorted[idx];
if (disc < d) {
sorted.splice(idx, 0, entry);
return;
}
}
// not inserted, append (!)
sorted.push(entry);
});
return map(sorted, e => e.v);
}
/**
* Create an object pattern matcher.
*
* @example
*
* ```javascript
* const matcher = matchPattern({ id: 1 });
*
* let element = find(elements, matcher);
* ```
*
* @template T
*
* @param {T} pattern
*
* @return { (el: any) => boolean } matcherFn
*/
function matchPattern(pattern) {
return function (el) {
return every(pattern, function (val, key) {
return el[key] === val;
});
};
}
/**
* @param {string | ((e: any) => any) } extractor
*
* @return { (e: any) => any }
*/
function toExtractor(extractor) {
/**
* @satisfies { (e: any) => any }
*/
return isFunction$1(extractor) ? extractor : e => {
// @ts-ignore: just works
return e[extractor];
};
}
/**
* @template T
* @param {Matcher<T>} matcher
*
* @return {MatchFn<T>}
*/
function toMatcher(matcher) {
return isFunction$1(matcher) ? matcher : e => {
return e === matcher;
};
}
function identity(arg) {
return arg;
}
function toNum(arg) {
return Number(arg);
}
/**
* @typedef { {
* (...args: any[]): any;
* flush: () => void;
* cancel: () => void;
* } } DebouncedFunction
*/
/**
* Debounce fn, calling it only once if the given time
* elapsed between calls.
*
* Lodash-style the function exposes methods to `#clear`
* and `#flush` to control internal behavior.
*
* @param {Function} fn
* @param {Number} timeout
*
* @return {DebouncedFunction} debounced function
*/
function debounce(fn, timeout) {
let timer;
let lastArgs;
let lastThis;
let lastNow;
function fire(force) {
let now = Date.now();
let scheduledDiff = force ? 0 : lastNow + timeout - now;
if (scheduledDiff > 0) {
return schedule(scheduledDiff);
}
fn.apply(lastThis, lastArgs);
clear();
}
function schedule(timeout) {
timer = setTimeout(fire, timeout);
}
function clear() {
if (timer) {
clearTimeout(timer);
}
timer = lastNow = lastArgs = lastThis = undefined;
}
function flush() {
if (timer) {
fire(true);
}
clear();
}
/**
* @type { DebouncedFunction }
*/
function callback(...args) {
lastNow = Date.now();
lastArgs = args;
lastThis = this;
// ensure an execution is scheduled
if (!timer) {
schedule(timeout);
}
}
callback.flush = flush;
callback.cancel = clear;
return callback;
}
/**
* Throttle fn, calling at most once
* in the given interval.
*
* @param {Function} fn
* @param {Number} interval
*
* @return {Function} throttled function
*/
function throttle(fn, interval) {
let throttling = false;
return function (...args) {
if (throttling) {
return;
}
fn(...args);
throttling = true;
setTimeout(() => {
throttling = false;
}, interval);
};
}
/**
* Bind function against target <this>.
*
* @param {Function} fn
* @param {Object} target
*
* @return {Function} bound function
*/
function bind$1(fn, target) {
return fn.bind(target);
}
/**
* Convenience wrapper for `Object.assign`.
*
* @param {Object} target
* @param {...Object} others
*
* @return {Object} the target
*/
function assign$1(target, ...others) {
return Object.assign(target, ...others);
}
/**
* Sets a nested property of a given object to the specified value.
*
* This mutates the object and returns it.
*
* @template T
*
* @param {T} target The target of the set operation.
* @param {(string|number)[]} path The path to the nested value.
* @param {any} value The value to set.
*
* @return {T}
*/
function set$1(target, path, value) {
let currentTarget = target;
forEach(path, function (key, idx) {
if (typeof key !== 'number' && typeof key !== 'string') {
throw new Error('illegal key type: ' + typeof key + '. Key should be of type number or string.');
}
if (key === 'constructor') {
throw new Error('illegal key: constructor');
}
if (key === '__proto__') {
throw new Error('illegal key: __proto__');
}
let nextKey = path[idx + 1];
let nextTarget = currentTarget[key];
if (isDefined(nextKey) && isNil(nextTarget)) {
nextTarget = currentTarget[key] = isNaN(+nextKey) ? {} : [];
}
if (isUndefined$2(nextKey)) {
if (isUndefined$2(value)) {
delete currentTarget[key];
} else {
currentTarget[key] = value;
}
} else {
currentTarget = nextTarget;
}
});
return target;
}
/**
* Gets a nested property of a given object.
*
* @param {Object} target The target of the get operation.
* @param {(string|number)[]} path The path to the nested value.
* @param {any} [defaultValue] The value to return if no value exists.
*
* @return {any}
*/
function get$2(target, path, defaultValue) {
let currentTarget = target;
forEach(path, function (key) {
// accessing nil property yields <undefined>
if (isNil(currentTarget)) {
currentTarget = undefined;
return false;
}
currentTarget = currentTarget[key];
});
return isUndefined$2(currentTarget) ? defaultValue : currentTarget;
}
/**
* Pick properties from the given target.
*
* @template T
* @template {any[]} V
*
* @param {T} target
* @param {V} properties
*
* @return Pick<T, V>
*/
function pick(target, properties) {
let result = {};
let obj = Object(target);
forEach(properties, function (prop) {
if (prop in obj) {
result[prop] = target[prop];
}
});
return result;
}
/**
* Pick all target properties, excluding the given ones.
*
* @template T
* @template {any[]} V
*
* @param {T} target
* @param {V} properties
*
* @return {Omit<T, V>} target
*/
function omit(target, properties) {
let result = {};
let obj = Object(target);
forEach(obj, function (prop, key) {
if (properties.indexOf(key) === -1) {
result[key] = prop;
}
});
return result;
}
function g$2(n, t) {
for (var e in t) n[e] = t[e];
return n;
}
function C$2(n, t) {
for (var e in n) if ("__source" !== e && !(e in t)) return true;
for (var r in t) if ("__source" !== r && n[r] !== t[r]) return true;
return false;
}
function E(n) {
this.props = n;
}
(E.prototype = new b$3()).isPureReactComponent = true, E.prototype.shouldComponentUpdate = function (n, t) {
return C$2(this.props, n) || C$2(this.state, t);
};
var x$1 = l$3.__b;
l$3.__b = function (n) {
n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), x$1 && x$1(n);
};
var R = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.forward_ref") || 3911;
function N$1(n) {
function t(t) {
var e = g$2({}, t);
return delete e.ref, n(e, t.ref || null);
}
return t.$$typeof = R, t.render = t, t.prototype.isReactComponent = t.__f = true, t.displayName = "ForwardRef(" + (n.displayName || n.name) + ")", t;
}
var O$1 = l$3.__e;
l$3.__e = function (n, t, e, r) {
if (n.then) for (var u, o = t; o = o.__;) if ((u = o.__c) && u.__c) return null == t.__e && (t.__e = e.__e, t.__k = e.__k), u.__c(n, t);
O$1(n, t, e, r);
};
var T$2 = l$3.unmount;
function F$1(n, t, e) {
return n && (n.__c && n.__c.__H && (n.__c.__H.__.forEach(function (n) {
"function" == typeof n.__c && n.__c();
}), n.__c.__H = null), null != (n = g$2({}, n)).__c && (n.__c.__P === e && (n.__c.__P = t), n.__c = null), n.__k = n.__k && n.__k.map(function (n) {
return F$1(n, t, e);
})), n;
}
function I$1(n, t, e) {
return n && e && (n.__v = null, n.__k = n.__k && n.__k.map(function (n) {
return I$1(n, t, e);
}), n.__c && n.__c.__P === t && (n.__e && e.appendChild(n.__e), n.__c.__e = true, n.__c.__P = e)), n;
}
function L$1() {
this.__u = 0, this.t = null, this.__b = null;
}
function U(n) {
var t = n.__.__c;
return t && t.__a && t.__a(n);
}
function M$1() {
this.u = null, this.o = null;
}
l$3.unmount = function (n) {
var t = n.__c;
t && t.__R && t.__R(), t && 32 & n.__u && (n.type = null), T$2 && T$2(n);
}, (L$1.prototype = new b$3()).__c = function (n, t) {
var e = t.__c,
r = this;
null == r.t && (r.t = []), r.t.push(e);
var u = U(r.__v),
o = false,
i = function () {
o || (o = true, e.__R = null, u ? u(l) : l());
};
e.__R = i;
var l = function () {
if (! --r.__u) {
if (r.state.__a) {
var n = r.state.__a;
r.__v.__k[0] = I$1(n, n.__c.__P, n.__c.__O);
}
var t;
for (r.setState({
__a: r.__b = null
}); t = r.t.pop();) t.forceUpdate();
}
};
r.__u++ || 32 & t.__u || r.setState({
__a: r.__b = r.__v.__k[0]
}), n.then(i, i);
}, L$1.prototype.componentWillUnmount = function () {
this.t = [];
}, L$1.prototype.render = function (n, e) {
if (this.__b) {
if (this.__v.__k) {
var r = document.createElement("div"),
o = this.__v.__k[0].__c;
this.__v.__k[0] = F$1(this.__b, r, o.__O = o.__P);
}
this.__b = null;
}
var i = e.__a && y$3(g$4, null, n.fallback);
return i && (i.__u &= -33), [y$3(g$4, null, e.__a ? null : n.children), i];
};
var V = function (n, t, e) {
if (++e[1] === e[0] && n.o.delete(t), n.props.revealOrder && ("t" !== n.props.revealOrder[0] || !n.o.size)) for (e = n.u; e;) {
for (; e.length > 3;) e.pop()();
if (e[1] < e[0]) break;
n.u = e = e[2];
}
};
function W(n) {
return this.getChildContext = function () {
return n.context;
}, n.children;
}
function P$1(n) {
var e = this,
r = n.i;
e.componentWillUnmount = function () {
q$2(null, e.l), e.l = null, e.i = null;
}, e.i && e.i !== r && e.componentWillUnmount(), e.l || (e.i = r, e.l = {
nodeType: 1,
parentNode: r,
childNodes: [],
appendChild: function (n) {
this.childNodes.push(n), e.i.appendChild(n);
},
insertBefore: function (n, t) {
this.childNodes.push(n), e.i.appendChild(n);
},
removeChild: function (n) {
this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.i.removeChild(n);
}
}), q$2(y$3(W, {
context: e.context
}, n.__v), e.l);
}
function j$1(n, e) {
var r = y$3(P$1, {
__v: n,
i: e
});
return r.containerInfo = e, r;
}
(M$1.prototype = new b$3()).__a = function (n) {
var t = this,
e = U(t.__v),
r = t.o.get(n);
return r[0]++, function (u) {
var o = function () {
t.props.revealOrder ? (r.push(u), V(t, n, r)) : u();
};
e ? e(o) : o();
};
}, M$1.prototype.render = function (n) {
this.u = null, this.o = new Map();
var t = $$2(n.children);
n.revealOrder && "b" === n.revealOrder[0] && t.reverse();
for (var e = t.length; e--;) this.o.set(t[e], this.u = [1, 0, this.u]);
return n.children;
}, M$1.prototype.componentDidUpdate = M$1.prototype.componentDidMount = function () {
var n = this;
this.o.forEach(function (t, e) {
V(n, e, t);
});
};
var z$2 = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103,
B$2 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,
H$1 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/,
Z = /[A-Z0-9]/g,
Y = "undefined" != typeof document,
$$1 = function (n) {
return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n);
};
b$3.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function (t) {
Object.defineProperty(b$3.prototype, t, {
configurable: true,
get: function () {
return this["UNSAFE_" + t];
},
set: function (n) {
Object.defineProperty(this, t, {
configurable: true,
writable: true,
value: n
});
}
});
});
var J = l$3.event;
function K() {}
function Q() {
return this.cancelBubble;
}
function X() {
return this.defaultPrevented;
}
l$3.event = function (n) {
return J && (n = J(n)), n.persist = K, n.isPropagationStopped = Q, n.isDefaultPrevented = X, n.nativeEvent = n;
};
var tn = {
enumerable: false,
configurable: true,
get: function () {
return this.class;
}
},
en = l$3.vnode;
l$3.vnode = function (n) {
"string" == typeof n.type && function (n) {
var t = n.props,
e = n.type,
u = {};
for (var o in t) {
var i = t[o];
if (!("value" === o && "defaultValue" in t && null == i || Y && "children" === o && "noscript" === e || "class" === o || "className" === o)) {
var l = o.toLowerCase();
"defaultValue" === o && "value" in t && null == t.value ? o = "value" : "download" === o && true === i ? i = "" : "ondoubleclick" === l ? o = "ondblclick" : "onchange" !== l || "input" !== e && "textarea" !== e || $$1(t.type) ? "onfocus" === l ? o = "onfocusin" : "onblur" === l ? o = "onfocusout" : H$1.test(o) ? o = l : -1 === e.indexOf("-") && B$2.test(o) ? o = o.replace(Z, "-$&").toLowerCase() : null === i && (i = void 0) : l = o = "oninput", "oninput" === l && u[o = l] && (o = "oninputCapture"), u[o] = i;
}
}
"select" == e && u.multiple && Array.isArray(u.value) && (u.value = $$2(t.children).forEach(function (n) {
n.props.selected = -1 != u.value.indexOf(n.props.value);
})), "select" == e && null != u.defaultValue && (u.value = $$2(t.children).forEach(function (n) {
n.props.selected = u.multiple ? -1 != u.defaultValue.indexOf(n.props.value) : u.defaultValue == n.props.value;
})), t.class && !t.className ? (u.class = t.class, Object.defineProperty(u, "className", tn)) : (t.className && !t.class || t.class && t.className) && (u.class = u.className = t.className), n.props = u;
}(n), n.$$typeof = z$2, en && en(n);
};
var rn = l$3.__r;
l$3.__r = function (n) {
rn && rn(n), n.__c;
};
var un = l$3.diffed;
l$3.diffed = function (n) {
un && un(n);
var t = n.props,
e = n.__e;
null != e && "textarea" === n.type && "value" in t && t.value !== e.value && (e.value = null == t.value ? "" : t.value);
};
var f$2 = 0;
function u$2(e, t, n, o, i, u) {
var a,
c,
p = {};
for (c in t) "ref" == c ? a = t[c] : p[c] = t[c];
var l = {
type: e,
pr