Source: engine/native/espruino/modules/engine-lib.js

var engine = (function (e) {
  var t = {};
  function n(r) {
    if (t[r]) return t[r].exports;
    var i = (t[r] = { i: r, l: !1, exports: {} });
    return e[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports;
  }
  return (
    (n.m = e),
    (n.c = t),
    (n.d = function (e, t, r) {
      n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: r });
    }),
    (n.r = function (e) {
      'undefined' != typeof Symbol &&
        Symbol.toStringTag &&
        Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }),
        Object.defineProperty(e, '__esModule', { value: !0 });
    }),
    (n.t = function (e, t) {
      if ((1 & t && (e = n(e)), 8 & t)) return e;
      if (4 & t && 'object' == typeof e && e && e.__esModule) return e;
      var r = Object.create(null);
      if (
        (n.r(r),
        Object.defineProperty(r, 'default', { enumerable: !0, value: e }),
        2 & t && 'string' != typeof e)
      )
        for (var i in e)
          n.d(
            r,
            i,
            function (t) {
              return e[t];
            }.bind(null, i),
          );
      return 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 = 235))
  );
})([
  function (e, t, n) {
    var r = n(2),
      i = n(22),
      o = n(13),
      a = n(14),
      s = n(23),
      u = function e(t, n, u) {
        var c,
          p,
          f,
          l,
          h = t & e.F,
          d = t & e.G,
          m = t & e.P,
          y = t & e.B,
          v = d ? r : t & e.S ? r[n] || (r[n] = {}) : (r[n] || {}).prototype,
          g = d ? i : i[n] || (i[n] = {}),
          b = g.prototype || (g.prototype = {});
        for (c in (d && (u = n), u))
          (f = ((p = !h && v && void 0 !== v[c]) ? v : u)[c]),
            (l = y && p ? s(f, r) : m && 'function' == typeof f ? s(Function.call, f) : f),
            v && a(v, c, f, t & e.U),
            g[c] != f && o(g, c, l),
            m && b[c] != f && (b[c] = f);
      };
    (r.core = i),
      (u.F = 1),
      (u.G = 2),
      (u.S = 4),
      (u.P = 8),
      (u.B = 16),
      (u.W = 32),
      (u.U = 64),
      (u.R = 128),
      (e.exports = u);
  },
  function (e, t, n) {
    var r = n(4);
    e.exports = function (e) {
      if (!r(e)) throw TypeError(e + ' is not an object!');
      return e;
    };
  },
  function (e, t) {
    var n = (e.exports =
      'undefined' != typeof window && window.Math == Math
        ? window
        : 'undefined' != typeof self && self.Math == Math
        ? self
        : Function('return this')());
    'number' == typeof __g && (__g = n);
  },
  function (e, t) {
    e.exports = function (e) {
      try {
        return !!e();
      } catch (e) {
        return !0;
      }
    };
  },
  function (e, t) {
    function n(e) {
      return (n =
        '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;
            })(e);
    }
    e.exports = function (e) {
      return 'object' === n(e) ? null !== e : 'function' == typeof e;
    };
  },
  function (e, t, n) {
    var r = n(67)('wks'),
      i = n(44),
      o = n(2).Symbol,
      a = 'function' == typeof o;
    (e.exports = function (e) {
      return r[e] || (r[e] = (a && o[e]) || (a ? o : i)('Symbol.' + e));
    }).store = r;
  },
  function (e, t, n) {
    var r = n(25),
      i = Math.min;
    e.exports = function (e) {
      return e > 0 ? i(r(e), 9007199254740991) : 0;
    };
  },
  function (e, t, n) {
    e.exports = !n(3)(function () {
      return (
        7 !=
        Object.defineProperty({}, 'a', {
          get: function () {
            return 7;
          },
        }).a
      );
    });
  },
  function (e, t, n) {
    (function (t) {
      var r = n(439),
        i = n(461),
        o = n(462),
        a = n(463),
        s = n(464),
        u = n(465),
        c = n(466),
        p = n(37).IPC,
        f = {
          http: function () {
            return new r(this.environment);
          },
          data: function () {
            return new i(this.environment);
          },
          device: function () {
            return new u(this.environment);
          },
          capability: function () {
            return new o(this.environment);
          },
          config: function () {
            return new s(this.environment);
          },
          console: function () {
            return new a(this.environment);
          },
          discovery: function () {
            return new c(this.environment);
          },
          detectEnvironment: function () {
            var e = 'browser';
            try {
              e = '[object process]' === Object.prototype.toString.call(t.process) ? 'node' : 'web';
            } catch (e) {}
            this.environment = e;
          },
          setIPC: function (e) {
            p.setIPC(e, this.environment);
          },
        };
      f.detectEnvironment(), (e.exports = f);
    }.call(this, n(11)));
  },
  function (e, t, n) {
    var r = n(1),
      i = n(151),
      o = n(28),
      a = Object.defineProperty;
    t.f = n(7)
      ? Object.defineProperty
      : function (e, t, n) {
          if ((r(e), (t = o(t, !0)), r(n), i))
            try {
              return a(e, t, n);
            } catch (e) {}
          if ('get' in n || 'set' in n) throw TypeError('Accessors not supported!');
          return 'value' in n && (e[t] = n.value), e;
        };
  },
  function (e, t, n) {
    var r = n(29);
    e.exports = function (e) {
      return Object(r(e));
    };
  },
  function (e, t) {
    function n(e) {
      return (n =
        '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;
            })(e);
    }
    var r;
    r = (function () {
      return this;
    })();
    try {
      r = r || new Function('return this')();
    } catch (e) {
      'object' === ('undefined' == typeof window ? 'undefined' : n(window)) && (r = window);
    }
    e.exports = r;
  },
  function (e, t) {
    e.exports = function (e) {
      if ('function' != typeof e) throw TypeError(e + ' is not a function!');
      return e;
    };
  },
  function (e, t, n) {
    var r = n(9),
      i = n(43);
    e.exports = n(7)
      ? function (e, t, n) {
          return r.f(e, t, i(1, n));
        }
      : function (e, t, n) {
          return (e[t] = n), e;
        };
  },
  function (e, t, n) {
    var r = n(2),
      i = n(13),
      o = n(18),
      a = n(44)('src'),
      s = n(239),
      u = ('' + s).split('toString');
    (n(22).inspectSource = function (e) {
      return s.call(e);
    }),
      (e.exports = function (e, t, n, s) {
        var c = 'function' == typeof n;
        c && (o(n, 'name') || i(n, 'name', t)),
          e[t] !== n &&
            (c && (o(n, a) || i(n, a, e[t] ? '' + e[t] : u.join(String(t)))),
            e === r
              ? (e[t] = n)
              : s
              ? e[t]
                ? (e[t] = n)
                : i(e, t, n)
              : (delete e[t], i(e, t, n)));
      })(Function.prototype, 'toString', function () {
        return ('function' == typeof this && this[a]) || s.call(this);
      });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(3),
      o = n(29),
      a = /"/g,
      s = function (e, t, n, r) {
        var i = String(o(e)),
          s = '<' + t;
        return (
          '' !== n && (s += ' ' + n + '="' + String(r).replace(a, '&quot;') + '"'),
          s + '>' + i + '</' + t + '>'
        );
      };
    e.exports = function (e, t) {
      var n = {};
      (n[e] = t(s)),
        r(
          r.P +
            r.F *
              i(function () {
                var t = ''[e]('"');
                return t !== t.toLowerCase() || t.split('"').length > 3;
              }),
          'String',
          n,
        );
    };
  },
  function (e, t) {
    var n,
      r,
      i = (e.exports = {});
    function o() {
      throw new Error('setTimeout has not been defined');
    }
    function a() {
      throw new Error('clearTimeout has not been defined');
    }
    function s(e) {
      if (n === setTimeout) return setTimeout(e, 0);
      if ((n === o || !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 : o;
      } catch (e) {
        n = o;
      }
      try {
        r = 'function' == typeof clearTimeout ? clearTimeout : a;
      } catch (e) {
        r = a;
      }
    })();
    var u,
      c = [],
      p = !1,
      f = -1;
    function l() {
      p && u && ((p = !1), u.length ? (c = u.concat(c)) : (f = -1), c.length && h());
    }
    function h() {
      if (!p) {
        var e = s(l);
        p = !0;
        for (var t = c.length; t; ) {
          for (u = c, c = []; ++f < t; ) u && u[f].run();
          (f = -1), (t = c.length);
        }
        (u = null),
          (p = !1),
          (function (e) {
            if (r === clearTimeout) return clearTimeout(e);
            if ((r === a || !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 d(e, t) {
      (this.fun = e), (this.array = t);
    }
    function m() {}
    (i.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 d(e, t)), 1 !== c.length || p || s(h);
    }),
      (d.prototype.run = function () {
        this.fun.apply(null, this.array);
      }),
      (i.title = 'browser'),
      (i.browser = !0),
      (i.env = {}),
      (i.argv = []),
      (i.version = ''),
      (i.versions = {}),
      (i.on = m),
      (i.addListener = m),
      (i.once = m),
      (i.off = m),
      (i.removeListener = m),
      (i.removeAllListeners = m),
      (i.emit = m),
      (i.prependListener = m),
      (i.prependOnceListener = m),
      (i.listeners = function (e) {
        return [];
      }),
      (i.binding = function (e) {
        throw new Error('process.binding is not supported');
      }),
      (i.cwd = function () {
        return '/';
      }),
      (i.chdir = function (e) {
        throw new Error('process.chdir is not supported');
      }),
      (i.umask = function () {
        return 0;
      });
  },
  function (e, t, n) {
    (function (r) {
      function i(e) {
        return (i =
          '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;
              })(e);
      }
      function o() {
        var e;
        try {
          e = t.storage.debug;
        } catch (e) {}
        return !e && void 0 !== r && 'env' in r && (e = r.env.DEBUG), e;
      }
      ((t = e.exports = n(490)).log = function () {
        return (
          'object' === ('undefined' == typeof console ? 'undefined' : i(console)) &&
          console.log &&
          Function.prototype.apply.call(console.log, console, arguments)
        );
      }),
        (t.formatArgs = function (e) {
          var n = this.useColors;
          if (
            ((e[0] =
              (n ? '%c' : '') +
              this.namespace +
              (n ? ' %c' : ' ') +
              e[0] +
              (n ? '%c ' : ' ') +
              '+' +
              t.humanize(this.diff)),
            !n)
          )
            return;
          var r = 'color: ' + this.color;
          e.splice(1, 0, r, 'color: inherit');
          var i = 0,
            o = 0;
          e[0].replace(/%[a-zA-Z%]/g, function (e) {
            '%%' !== e && (i++, '%c' === e && (o = i));
          }),
            e.splice(o, 0, r);
        }),
        (t.save = function (e) {
          try {
            null == e ? t.storage.removeItem('debug') : (t.storage.debug = e);
          } catch (e) {}
        }),
        (t.load = o),
        (t.useColors = function () {
          if ('undefined' != typeof window && window.process && 'renderer' === window.process.type)
            return !0;
          return (
            ('undefined' != typeof document &&
              document.documentElement &&
              document.documentElement.style &&
              document.documentElement.style.WebkitAppearance) ||
            ('undefined' != typeof window &&
              window.console &&
              (window.console.firebug || (window.console.exception && window.console.table))) ||
            ('undefined' != typeof navigator &&
              navigator.userAgent &&
              navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) &&
              parseInt(RegExp.$1, 10) >= 31) ||
            ('undefined' != typeof navigator &&
              navigator.userAgent &&
              navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))
          );
        }),
        (t.storage =
          'undefined' != typeof chrome && void 0 !== chrome.storage
            ? chrome.storage.local
            : (function () {
                try {
                  return window.localStorage;
                } catch (e) {}
              })()),
        (t.colors = [
          'lightseagreen',
          'forestgreen',
          'goldenrod',
          'dodgerblue',
          'darkorchid',
          'crimson',
        ]),
        (t.formatters.j = function (e) {
          try {
            return JSON.stringify(e);
          } catch (e) {
            return '[UnexpectedJSONParseError]: ' + e.message;
          }
        }),
        t.enable(o());
    }.call(this, n(16)));
  },
  function (e, t) {
    var n = {}.hasOwnProperty;
    e.exports = function (e, t) {
      return n.call(e, t);
    };
  },
  function (e, t, n) {
    var r = n(68),
      i = n(29);
    e.exports = function (e) {
      return r(i(e));
    };
  },
  function (e, t, n) {
    var r = n(69),
      i = n(43),
      o = n(19),
      a = n(28),
      s = n(18),
      u = n(151),
      c = Object.getOwnPropertyDescriptor;
    t.f = n(7)
      ? c
      : function (e, t) {
          if (((e = o(e)), (t = a(t, !0)), u))
            try {
              return c(e, t);
            } catch (e) {}
          if (s(e, t)) return i(!r.f.call(e, t), e[t]);
        };
  },
  function (e, t, n) {
    var r = n(18),
      i = n(10),
      o = n(111)('IE_PROTO'),
      a = Object.prototype;
    e.exports =
      Object.getPrototypeOf ||
      function (e) {
        return (
          (e = i(e)),
          r(e, o)
            ? e[o]
            : 'function' == typeof e.constructor && e instanceof e.constructor
            ? e.constructor.prototype
            : e instanceof Object
            ? a
            : null
        );
      };
  },
  function (e, t) {
    var n = (e.exports = { version: '2.6.9' });
    'number' == typeof __e && (__e = n);
  },
  function (e, t, n) {
    var r = n(12);
    e.exports = function (e, t, n) {
      if ((r(e), void 0 === t)) return e;
      switch (n) {
        case 1:
          return function (n) {
            return e.call(t, n);
          };
        case 2:
          return function (n, r) {
            return e.call(t, n, r);
          };
        case 3:
          return function (n, r, i) {
            return e.call(t, n, r, i);
          };
      }
      return function () {
        return e.apply(t, arguments);
      };
    };
  },
  function (e, t) {
    var n = {}.toString;
    e.exports = function (e) {
      return n.call(e).slice(8, -1);
    };
  },
  function (e, t) {
    var n = Math.ceil,
      r = Math.floor;
    e.exports = function (e) {
      return isNaN((e = +e)) ? 0 : (e > 0 ? r : n)(e);
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(3);
    e.exports = function (e, t) {
      return (
        !!e &&
        r(function () {
          t ? e.call(null, function () {}, 1) : e.call(null);
        })
      );
    };
  },
  function (e, t, n) {
    var r = n(208),
      i = n(65),
      o = n(64),
      a = Object.prototype.toString,
      s =
        r(Array, 'isArray') ||
        function (e) {
          return o(e) && i(e.length) && '[object Array]' == a.call(e);
        };
    e.exports = s;
  },
  function (e, t, n) {
    var r = n(4);
    e.exports = function (e, t) {
      if (!r(e)) return e;
      var n, i;
      if (t && 'function' == typeof (n = e.toString) && !r((i = n.call(e)))) return i;
      if ('function' == typeof (n = e.valueOf) && !r((i = n.call(e)))) return i;
      if (!t && 'function' == typeof (n = e.toString) && !r((i = n.call(e)))) return i;
      throw TypeError("Can't convert object to primitive value");
    };
  },
  function (e, t) {
    e.exports = function (e) {
      if (null == e) throw TypeError("Can't call method on  " + e);
      return e;
    };
  },
  function (e, t, n) {
    var r = n(0),
      i = n(22),
      o = n(3);
    e.exports = function (e, t) {
      var n = (i.Object || {})[e] || Object[e],
        a = {};
      (a[e] = t(n)),
        r(
          r.S +
            r.F *
              o(function () {
                n(1);
              }),
          'Object',
          a,
        );
    };
  },
  function (e, t, n) {
    var r = n(23),
      i = n(68),
      o = n(10),
      a = n(6),
      s = n(127);
    e.exports = function (e, t) {
      var n = 1 == e,
        u = 2 == e,
        c = 3 == e,
        p = 4 == e,
        f = 6 == e,
        l = 5 == e || f,
        h = t || s;
      return function (t, s, d) {
        for (
          var m,
            y,
            v = o(t),
            g = i(v),
            b = r(s, d, 3),
            w = a(g.length),
            x = 0,
            E = n ? h(t, w) : u ? h(t, 0) : void 0;
          w > x;
          x++
        )
          if ((l || x in g) && ((y = b((m = g[x]), x, v)), e))
            if (n) E[x] = y;
            else if (y)
              switch (e) {
                case 3:
                  return !0;
                case 5:
                  return m;
                case 6:
                  return x;
                case 2:
                  E.push(m);
              }
            else if (p) return !1;
        return f ? -1 : c || p ? p : E;
      };
    };
  },
  function (e, t, n) {
    'use strict';
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    if (n(7)) {
      var i = n(34),
        o = n(2),
        a = n(3),
        s = n(0),
        u = n(92),
        c = n(135),
        p = n(23),
        f = n(50),
        l = n(43),
        h = n(13),
        d = n(52),
        m = n(25),
        y = n(6),
        v = n(179),
        g = n(46),
        b = n(28),
        w = n(18),
        x = n(61),
        E = n(4),
        S = n(10),
        A = n(124),
        R = n(47),
        C = n(21),
        _ = n(48).f,
        O = n(126),
        T = n(44),
        P = n(5),
        k = n(31),
        I = n(82),
        N = n(71),
        M = n(129),
        D = n(63),
        j = n(87),
        L = n(49),
        B = n(128),
        F = n(168),
        U = n(9),
        V = n(20),
        q = U.f,
        z = V.f,
        $ = o.RangeError,
        G = o.TypeError,
        W = o.Uint8Array,
        H = Array.prototype,
        Y = c.ArrayBuffer,
        J = c.DataView,
        K = k(0),
        X = k(2),
        Q = k(3),
        Z = k(4),
        ee = k(5),
        te = k(6),
        ne = I(!0),
        re = I(!1),
        ie = M.values,
        oe = M.keys,
        ae = M.entries,
        se = H.lastIndexOf,
        ue = H.reduce,
        ce = H.reduceRight,
        pe = H.join,
        fe = H.sort,
        le = H.slice,
        he = H.toString,
        de = H.toLocaleString,
        me = P('iterator'),
        ye = P('toStringTag'),
        ve = T('typed_constructor'),
        ge = T('def_constructor'),
        be = u.CONSTR,
        we = u.TYPED,
        xe = u.VIEW,
        Ee = k(1, function (e, t) {
          return _e(N(e, e[ge]), t);
        }),
        Se = a(function () {
          return 1 === new W(new Uint16Array([1]).buffer)[0];
        }),
        Ae =
          !!W &&
          !!W.prototype.set &&
          a(function () {
            new W(1).set({});
          }),
        Re = function (e, t) {
          var n = m(e);
          if (n < 0 || n % t) throw $('Wrong offset!');
          return n;
        },
        Ce = function (e) {
          if (E(e) && we in e) return e;
          throw G(e + ' is not a typed array!');
        },
        _e = function (e, t) {
          if (!(E(e) && ve in e)) throw G('It is not a typed array constructor!');
          return new e(t);
        },
        Oe = function (e, t) {
          return Te(N(e, e[ge]), t);
        },
        Te = function (e, t) {
          for (var n = 0, r = t.length, i = _e(e, r); r > n; ) i[n] = t[n++];
          return i;
        },
        Pe = function (e, t, n) {
          q(e, t, {
            get: function () {
              return this._d[n];
            },
          });
        },
        ke = function (e) {
          var t,
            n,
            r,
            i,
            o,
            a,
            s = S(e),
            u = arguments.length,
            c = u > 1 ? arguments[1] : void 0,
            f = void 0 !== c,
            l = O(s);
          if (null != l && !A(l)) {
            for (a = l.call(s), r = [], t = 0; !(o = a.next()).done; t++) r.push(o.value);
            s = r;
          }
          for (
            f && u > 2 && (c = p(c, arguments[2], 2)), t = 0, n = y(s.length), i = _e(this, n);
            n > t;
            t++
          )
            i[t] = f ? c(s[t], t) : s[t];
          return i;
        },
        Ie = function () {
          for (var e = 0, t = arguments.length, n = _e(this, t); t > e; ) n[e] = arguments[e++];
          return n;
        },
        Ne =
          !!W &&
          a(function () {
            de.call(new W(1));
          }),
        Me = function () {
          return de.apply(Ne ? le.call(Ce(this)) : Ce(this), arguments);
        },
        De = {
          copyWithin: function (e, t) {
            return F.call(Ce(this), e, t, arguments.length > 2 ? arguments[2] : void 0);
          },
          every: function (e) {
            return Z(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0);
          },
          fill: function (e) {
            return B.apply(Ce(this), arguments);
          },
          filter: function (e) {
            return Oe(this, X(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0));
          },
          find: function (e) {
            return ee(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0);
          },
          findIndex: function (e) {
            return te(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0);
          },
          forEach: function (e) {
            K(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0);
          },
          indexOf: function (e) {
            return re(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0);
          },
          includes: function (e) {
            return ne(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0);
          },
          join: function (e) {
            return pe.apply(Ce(this), arguments);
          },
          lastIndexOf: function (e) {
            return se.apply(Ce(this), arguments);
          },
          map: function (e) {
            return Ee(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0);
          },
          reduce: function (e) {
            return ue.apply(Ce(this), arguments);
          },
          reduceRight: function (e) {
            return ce.apply(Ce(this), arguments);
          },
          reverse: function () {
            for (var e, t = Ce(this).length, n = Math.floor(t / 2), r = 0; r < n; )
              (e = this[r]), (this[r++] = this[--t]), (this[t] = e);
            return this;
          },
          some: function (e) {
            return Q(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0);
          },
          sort: function (e) {
            return fe.call(Ce(this), e);
          },
          subarray: function (e, t) {
            var n = Ce(this),
              r = n.length,
              i = g(e, r);
            return new (N(n, n[ge]))(
              n.buffer,
              n.byteOffset + i * n.BYTES_PER_ELEMENT,
              y((void 0 === t ? r : g(t, r)) - i),
            );
          },
        },
        je = function (e, t) {
          return Oe(this, le.call(Ce(this), e, t));
        },
        Le = function (e) {
          Ce(this);
          var t = Re(arguments[1], 1),
            n = this.length,
            r = S(e),
            i = y(r.length),
            o = 0;
          if (i + t > n) throw $('Wrong length!');
          for (; o < i; ) this[t + o] = r[o++];
        },
        Be = {
          entries: function () {
            return ae.call(Ce(this));
          },
          keys: function () {
            return oe.call(Ce(this));
          },
          values: function () {
            return ie.call(Ce(this));
          },
        },
        Fe = function (e, t) {
          return E(e) && e[we] && 'symbol' != r(t) && t in e && String(+t) == String(t);
        },
        Ue = function (e, t) {
          return Fe(e, (t = b(t, !0))) ? l(2, e[t]) : z(e, t);
        },
        Ve = function (e, t, n) {
          return !(Fe(e, (t = b(t, !0))) && E(n) && w(n, 'value')) ||
            w(n, 'get') ||
            w(n, 'set') ||
            n.configurable ||
            (w(n, 'writable') && !n.writable) ||
            (w(n, 'enumerable') && !n.enumerable)
            ? q(e, t, n)
            : ((e[t] = n.value), e);
        };
      be || ((V.f = Ue), (U.f = Ve)),
        s(s.S + s.F * !be, 'Object', { getOwnPropertyDescriptor: Ue, defineProperty: Ve }),
        a(function () {
          he.call({});
        }) &&
          (he = de =
            function () {
              return pe.call(this);
            });
      var qe = d({}, De);
      d(qe, Be),
        h(qe, me, Be.values),
        d(qe, {
          slice: je,
          set: Le,
          constructor: function () {},
          toString: he,
          toLocaleString: Me,
        }),
        Pe(qe, 'buffer', 'b'),
        Pe(qe, 'byteOffset', 'o'),
        Pe(qe, 'byteLength', 'l'),
        Pe(qe, 'length', 'e'),
        q(qe, ye, {
          get: function () {
            return this[we];
          },
        }),
        (e.exports = function (e, t, n, r) {
          var c = e + ((r = !!r) ? 'Clamped' : '') + 'Array',
            p = 'get' + e,
            l = 'set' + e,
            d = o[c],
            m = d || {},
            g = d && C(d),
            b = !d || !u.ABV,
            w = {},
            S = d && d.prototype,
            A = function (e, n) {
              q(e, n, {
                get: function () {
                  return (function (e, n) {
                    var r = e._d;
                    return r.v[p](n * t + r.o, Se);
                  })(this, n);
                },
                set: function (e) {
                  return (function (e, n, i) {
                    var o = e._d;
                    r && (i = (i = Math.round(i)) < 0 ? 0 : i > 255 ? 255 : 255 & i),
                      o.v[l](n * t + o.o, i, Se);
                  })(this, n, e);
                },
                enumerable: !0,
              });
            };
          b
            ? ((d = n(function (e, n, r, i) {
                f(e, d, c, '_d');
                var o,
                  a,
                  s,
                  u,
                  p = 0,
                  l = 0;
                if (E(n)) {
                  if (!(n instanceof Y || 'ArrayBuffer' == (u = x(n)) || 'SharedArrayBuffer' == u))
                    return we in n ? Te(d, n) : ke.call(d, n);
                  (o = n), (l = Re(r, t));
                  var m = n.byteLength;
                  if (void 0 === i) {
                    if (m % t) throw $('Wrong length!');
                    if ((a = m - l) < 0) throw $('Wrong length!');
                  } else if ((a = y(i) * t) + l > m) throw $('Wrong length!');
                  s = a / t;
                } else (s = v(n)), (o = new Y((a = s * t)));
                for (h(e, '_d', { b: o, o: l, l: a, e: s, v: new J(o) }); p < s; ) A(e, p++);
              })),
              (S = d.prototype = R(qe)),
              h(S, 'constructor', d))
            : (a(function () {
                d(1);
              }) &&
                a(function () {
                  new d(-1);
                }) &&
                j(function (e) {
                  new d(), new d(null), new d(1.5), new d(e);
                }, !0)) ||
              ((d = n(function (e, n, r, i) {
                var o;
                return (
                  f(e, d, c),
                  E(n)
                    ? n instanceof Y || 'ArrayBuffer' == (o = x(n)) || 'SharedArrayBuffer' == o
                      ? void 0 !== i
                        ? new m(n, Re(r, t), i)
                        : void 0 !== r
                        ? new m(n, Re(r, t))
                        : new m(n)
                      : we in n
                      ? Te(d, n)
                      : ke.call(d, n)
                    : new m(v(n))
                );
              })),
              K(g !== Function.prototype ? _(m).concat(_(g)) : _(m), function (e) {
                e in d || h(d, e, m[e]);
              }),
              (d.prototype = S),
              i || (S.constructor = d));
          var O = S[me],
            T = !!O && ('values' == O.name || null == O.name),
            P = Be.values;
          h(d, ve, !0),
            h(S, we, c),
            h(S, xe, !0),
            h(S, ge, d),
            (r ? new d(1)[ye] == c : ye in S) ||
              q(S, ye, {
                get: function () {
                  return c;
                },
              }),
            (w[c] = d),
            s(s.G + s.W + s.F * (d != m), w),
            s(s.S, c, { BYTES_PER_ELEMENT: t }),
            s(
              s.S +
                s.F *
                  a(function () {
                    m.of.call(d, 1);
                  }),
              c,
              { from: ke, of: Ie },
            ),
            'BYTES_PER_ELEMENT' in S || h(S, 'BYTES_PER_ELEMENT', t),
            s(s.P, c, De),
            L(c),
            s(s.P + s.F * Ae, c, { set: Le }),
            s(s.P + s.F * !T, c, Be),
            i || S.toString == he || (S.toString = he),
            s(
              s.P +
                s.F *
                  a(function () {
                    new d(1).slice();
                  }),
              c,
              { slice: je },
            ),
            s(
              s.P +
                s.F *
                  (a(function () {
                    return [1, 2].toLocaleString() != new d([1, 2]).toLocaleString();
                  }) ||
                    !a(function () {
                      S.toLocaleString.call([1, 2]);
                    })),
              c,
              { toLocaleString: Me },
            ),
            (D[c] = T ? O : P),
            i || T || h(S, me, P);
        });
    } else e.exports = function () {};
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(174),
      o = n(0),
      a = n(67)('metadata'),
      s = a.store || (a.store = new (n(177))()),
      u = function (e, t, n) {
        var r = s.get(e);
        if (!r) {
          if (!n) return;
          s.set(e, (r = new i()));
        }
        var o = r.get(t);
        if (!o) {
          if (!n) return;
          r.set(t, (o = new i()));
        }
        return o;
      };
    e.exports = {
      store: s,
      map: u,
      has: function (e, t, n) {
        var r = u(t, n, !1);
        return void 0 !== r && r.has(e);
      },
      get: function (e, t, n) {
        var r = u(t, n, !1);
        return void 0 === r ? void 0 : r.get(e);
      },
      set: function (e, t, n, r) {
        u(n, r, !0).set(e, t);
      },
      keys: function (e, t) {
        var n = u(e, t, !1),
          r = [];
        return (
          n &&
            n.forEach(function (e, t) {
              r.push(t);
            }),
          r
        );
      },
      key: function (e) {
        return void 0 === e || 'symbol' == r(e) ? e : String(e);
      },
      exp: function (e) {
        o(o.S, 'Reflect', e);
      },
    };
  },
  function (e, t) {
    e.exports = !1;
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(44)('meta'),
      o = n(4),
      a = n(18),
      s = n(9).f,
      u = 0,
      c =
        Object.isExtensible ||
        function () {
          return !0;
        },
      p = !n(3)(function () {
        return c(Object.preventExtensions({}));
      }),
      f = function (e) {
        s(e, i, { value: { i: 'O' + ++u, w: {} } });
      },
      l = (e.exports = {
        KEY: i,
        NEED: !1,
        fastKey: function (e, t) {
          if (!o(e)) return 'symbol' == r(e) ? e : ('string' == typeof e ? 'S' : 'P') + e;
          if (!a(e, i)) {
            if (!c(e)) return 'F';
            if (!t) return 'E';
            f(e);
          }
          return e[i].i;
        },
        getWeak: function (e, t) {
          if (!a(e, i)) {
            if (!c(e)) return !0;
            if (!t) return !1;
            f(e);
          }
          return e[i].w;
        },
        onFreeze: function (e) {
          return p && l.NEED && c(e) && !a(e, i) && f(e), e;
        },
      });
  },
  function (e, t, n) {
    var r = n(5)('unscopables'),
      i = Array.prototype;
    null == i[r] && n(13)(i, r, {}),
      (e.exports = function (e) {
        i[r][e] = !0;
      });
  },
  function (e, t, n) {
    var r = n(440),
      i = n(441),
      o = {
        _customIPC: null,
        emit: function () {
          var e;
          if (!this._customIPC) throw new Error('IPC object not set!');
          (e = this._customIPC).emit.apply(e, arguments);
        },
        listen: function () {
          var e;
          if (!this._customIPC) throw new Error('IPC object not set!');
          (e = this._customIPC).listen.apply(e, arguments);
        },
        setIPC: function (e, t) {
          var n = e;
          if ((n || (n = 'node' === t ? new r() : new i()), 'function' != typeof n.emit))
            throw new Error("IPC object does'nt have an `emit()` method!");
          if ('function' != typeof n.listen)
            throw new Error("IPC object doesn't have a `listen()` method!");
          this._customIPC = n;
        },
      };
    e.exports = {
      System: function e() {
        !(function (e, t) {
          if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
        })(this, e);
      },
      IPC: o,
    };
  },
  function (e, t, n) {
    'use strict';
    (function (e) {
      /*!
       * The buffer module from node.js, for the browser.
       *
       * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
       * @license  MIT
       */
      var r = n(445),
        i = n(446),
        o = n(187);
      function a() {
        return u.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
      }
      function s(e, t) {
        if (a() < t) throw new RangeError('Invalid typed array length');
        return (
          u.TYPED_ARRAY_SUPPORT
            ? ((e = new Uint8Array(t)).__proto__ = u.prototype)
            : (null === e && (e = new u(t)), (e.length = t)),
          e
        );
      }
      function u(e, t, n) {
        if (!(u.TYPED_ARRAY_SUPPORT || this instanceof u)) return new u(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 f(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);
              u.TYPED_ARRAY_SUPPORT ? ((e = t).__proto__ = u.prototype) : (e = l(e, t));
              return e;
            })(e, t, n, r)
          : 'string' == typeof t
          ? (function (e, t, n) {
              ('string' == typeof n && '' !== n) || (n = 'utf8');
              if (!u.isEncoding(n))
                throw new TypeError('"encoding" must be a valid string encoding');
              var r = 0 | d(t, n),
                i = (e = s(e, r)).write(t, n);
              i !== r && (e = e.slice(0, i));
              return e;
            })(e, t, n)
          : (function (e, t) {
              if (u.isBuffer(t)) {
                var n = 0 | h(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) : l(e, t);
                if ('Buffer' === t.type && o(t.data)) return l(e, t.data);
              }
              var r;
              throw new TypeError(
                'First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.',
              );
            })(e, t);
      }
      function p(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 f(e, t) {
        if ((p(t), (e = s(e, t < 0 ? 0 : 0 | h(t))), !u.TYPED_ARRAY_SUPPORT))
          for (var n = 0; n < t; ++n) e[n] = 0;
        return e;
      }
      function l(e, t) {
        var n = t.length < 0 ? 0 : 0 | h(t.length);
        e = s(e, n);
        for (var r = 0; r < n; r += 1) e[r] = 255 & t[r];
        return e;
      }
      function h(e) {
        if (e >= a())
          throw new RangeError(
            'Attempt to allocate Buffer larger than maximum size: 0x' + a().toString(16) + ' bytes',
          );
        return 0 | e;
      }
      function d(e, t) {
        if (u.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 V(e).length;
            case 'ucs2':
            case 'ucs-2':
            case 'utf16le':
            case 'utf-16le':
              return 2 * n;
            case 'hex':
              return n >>> 1;
            case 'base64':
              return q(e).length;
            default:
              if (r) return V(e).length;
              (t = ('' + t).toLowerCase()), (r = !0);
          }
      }
      function m(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 P(this, t, n);
            case 'utf8':
            case 'utf-8':
              return C(this, t, n);
            case 'ascii':
              return O(this, t, n);
            case 'latin1':
            case 'binary':
              return T(this, t, n);
            case 'base64':
              return R(this, t, n);
            case 'ucs2':
            case 'ucs-2':
            case 'utf16le':
            case 'utf-16le':
              return k(this, t, n);
            default:
              if (r) throw new TypeError('Unknown encoding: ' + e);
              (e = (e + '').toLowerCase()), (r = !0);
          }
      }
      function y(e, t, n) {
        var r = e[t];
        (e[t] = e[n]), (e[n] = r);
      }
      function v(e, t, n, r, i) {
        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 = i ? 0 : e.length - 1),
          n < 0 && (n = e.length + n),
          n >= e.length)
        ) {
          if (i) return -1;
          n = e.length - 1;
        } else if (n < 0) {
          if (!i) return -1;
          n = 0;
        }
        if (('string' == typeof t && (t = u.from(t, r)), u.isBuffer(t)))
          return 0 === t.length ? -1 : g(e, t, n, r, i);
        if ('number' == typeof t)
          return (
            (t &= 255),
            u.TYPED_ARRAY_SUPPORT && 'function' == typeof Uint8Array.prototype.indexOf
              ? i
                ? Uint8Array.prototype.indexOf.call(e, t, n)
                : Uint8Array.prototype.lastIndexOf.call(e, t, n)
              : g(e, [t], n, r, i)
          );
        throw new TypeError('val must be string, number or Buffer');
      }
      function g(e, t, n, r, i) {
        var o,
          a = 1,
          s = e.length,
          u = 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;
          (a = 2), (s /= 2), (u /= 2), (n /= 2);
        }
        function c(e, t) {
          return 1 === a ? e[t] : e.readUInt16BE(t * a);
        }
        if (i) {
          var p = -1;
          for (o = n; o < s; o++)
            if (c(e, o) === c(t, -1 === p ? 0 : o - p)) {
              if ((-1 === p && (p = o), o - p + 1 === u)) return p * a;
            } else -1 !== p && (o -= o - p), (p = -1);
        } else
          for (n + u > s && (n = s - u), o = n; o >= 0; o--) {
            for (var f = !0, l = 0; l < u; l++)
              if (c(e, o + l) !== c(t, l)) {
                f = !1;
                break;
              }
            if (f) return o;
          }
        return -1;
      }
      function b(e, t, n, r) {
        n = Number(n) || 0;
        var i = e.length - n;
        r ? (r = Number(r)) > i && (r = i) : (r = i);
        var o = t.length;
        if (o % 2 != 0) throw new TypeError('Invalid hex string');
        r > o / 2 && (r = o / 2);
        for (var a = 0; a < r; ++a) {
          var s = parseInt(t.substr(2 * a, 2), 16);
          if (isNaN(s)) return a;
          e[n + a] = s;
        }
        return a;
      }
      function w(e, t, n, r) {
        return z(V(t, e.length - n), e, n, r);
      }
      function x(e, t, n, r) {
        return z(
          (function (e) {
            for (var t = [], n = 0; n < e.length; ++n) t.push(255 & e.charCodeAt(n));
            return t;
          })(t),
          e,
          n,
          r,
        );
      }
      function E(e, t, n, r) {
        return x(e, t, n, r);
      }
      function S(e, t, n, r) {
        return z(q(t), e, n, r);
      }
      function A(e, t, n, r) {
        return z(
          (function (e, t) {
            for (var n, r, i, o = [], a = 0; a < e.length && !((t -= 2) < 0); ++a)
              (n = e.charCodeAt(a)), (r = n >> 8), (i = n % 256), o.push(i), o.push(r);
            return o;
          })(t, e.length - n),
          e,
          n,
          r,
        );
      }
      function R(e, t, n) {
        return 0 === t && n === e.length ? r.fromByteArray(e) : r.fromByteArray(e.slice(t, n));
      }
      function C(e, t, n) {
        n = Math.min(e.length, n);
        for (var r = [], i = t; i < n; ) {
          var o,
            a,
            s,
            u,
            c = e[i],
            p = null,
            f = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
          if (i + f <= n)
            switch (f) {
              case 1:
                c < 128 && (p = c);
                break;
              case 2:
                128 == (192 & (o = e[i + 1])) && (u = ((31 & c) << 6) | (63 & o)) > 127 && (p = u);
                break;
              case 3:
                (o = e[i + 1]),
                  (a = e[i + 2]),
                  128 == (192 & o) &&
                    128 == (192 & a) &&
                    (u = ((15 & c) << 12) | ((63 & o) << 6) | (63 & a)) > 2047 &&
                    (u < 55296 || u > 57343) &&
                    (p = u);
                break;
              case 4:
                (o = e[i + 1]),
                  (a = e[i + 2]),
                  (s = e[i + 3]),
                  128 == (192 & o) &&
                    128 == (192 & a) &&
                    128 == (192 & s) &&
                    (u = ((15 & c) << 18) | ((63 & o) << 12) | ((63 & a) << 6) | (63 & s)) >
                      65535 &&
                    u < 1114112 &&
                    (p = u);
            }
          null === p
            ? ((p = 65533), (f = 1))
            : p > 65535 &&
              ((p -= 65536), r.push(((p >>> 10) & 1023) | 55296), (p = 56320 | (1023 & p))),
            r.push(p),
            (i += f);
        }
        return (function (e) {
          var t = e.length;
          if (t <= _) return String.fromCharCode.apply(String, e);
          var n = '',
            r = 0;
          for (; r < t; ) n += String.fromCharCode.apply(String, e.slice(r, (r += _)));
          return n;
        })(r);
      }
      (t.Buffer = u),
        (t.SlowBuffer = function (e) {
          +e != e && (e = 0);
          return u.alloc(+e);
        }),
        (t.INSPECT_MAX_BYTES = 50),
        (u.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 = a()),
        (u.poolSize = 8192),
        (u._augment = function (e) {
          return (e.__proto__ = u.prototype), e;
        }),
        (u.from = function (e, t, n) {
          return c(null, e, t, n);
        }),
        u.TYPED_ARRAY_SUPPORT &&
          ((u.prototype.__proto__ = Uint8Array.prototype),
          (u.__proto__ = Uint8Array),
          'undefined' != typeof Symbol &&
            Symbol.species &&
            u[Symbol.species] === u &&
            Object.defineProperty(u, Symbol.species, { value: null, configurable: !0 })),
        (u.alloc = function (e, t, n) {
          return (function (e, t, n, r) {
            return (
              p(t),
              t <= 0
                ? s(e, t)
                : void 0 !== n
                ? 'string' == typeof r
                  ? s(e, t).fill(n, r)
                  : s(e, t).fill(n)
                : s(e, t)
            );
          })(null, e, t, n);
        }),
        (u.allocUnsafe = function (e) {
          return f(null, e);
        }),
        (u.allocUnsafeSlow = function (e) {
          return f(null, e);
        }),
        (u.isBuffer = function (e) {
          return !(null == e || !e._isBuffer);
        }),
        (u.compare = function (e, t) {
          if (!u.isBuffer(e) || !u.isBuffer(t)) throw new TypeError('Arguments must be Buffers');
          if (e === t) return 0;
          for (var n = e.length, r = t.length, i = 0, o = Math.min(n, r); i < o; ++i)
            if (e[i] !== t[i]) {
              (n = e[i]), (r = t[i]);
              break;
            }
          return n < r ? -1 : r < n ? 1 : 0;
        }),
        (u.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;
          }
        }),
        (u.concat = function (e, t) {
          if (!o(e)) throw new TypeError('"list" argument must be an Array of Buffers');
          if (0 === e.length) return u.alloc(0);
          var n;
          if (void 0 === t) for (t = 0, n = 0; n < e.length; ++n) t += e[n].length;
          var r = u.allocUnsafe(t),
            i = 0;
          for (n = 0; n < e.length; ++n) {
            var a = e[n];
            if (!u.isBuffer(a)) throw new TypeError('"list" argument must be an Array of Buffers');
            a.copy(r, i), (i += a.length);
          }
          return r;
        }),
        (u.byteLength = d),
        (u.prototype._isBuffer = !0),
        (u.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) y(this, t, t + 1);
          return this;
        }),
        (u.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) y(this, t, t + 3), y(this, t + 1, t + 2);
          return this;
        }),
        (u.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)
            y(this, t, t + 7), y(this, t + 1, t + 6), y(this, t + 2, t + 5), y(this, t + 3, t + 4);
          return this;
        }),
        (u.prototype.toString = function () {
          var e = 0 | this.length;
          return 0 === e ? '' : 0 === arguments.length ? C(this, 0, e) : m.apply(this, arguments);
        }),
        (u.prototype.equals = function (e) {
          if (!u.isBuffer(e)) throw new TypeError('Argument must be a Buffer');
          return this === e || 0 === u.compare(this, e);
        }),
        (u.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 + '>'
          );
        }),
        (u.prototype.compare = function (e, t, n, r, i) {
          if (!u.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 === i && (i = this.length),
            t < 0 || n > e.length || r < 0 || i > this.length)
          )
            throw new RangeError('out of range index');
          if (r >= i && t >= n) return 0;
          if (r >= i) return -1;
          if (t >= n) return 1;
          if (this === e) return 0;
          for (
            var o = (i >>>= 0) - (r >>>= 0),
              a = (n >>>= 0) - (t >>>= 0),
              s = Math.min(o, a),
              c = this.slice(r, i),
              p = e.slice(t, n),
              f = 0;
            f < s;
            ++f
          )
            if (c[f] !== p[f]) {
              (o = c[f]), (a = p[f]);
              break;
            }
          return o < a ? -1 : a < o ? 1 : 0;
        }),
        (u.prototype.includes = function (e, t, n) {
          return -1 !== this.indexOf(e, t, n);
        }),
        (u.prototype.indexOf = function (e, t, n) {
          return v(this, e, t, n, !0);
        }),
        (u.prototype.lastIndexOf = function (e, t, n) {
          return v(this, e, t, n, !1);
        }),
        (u.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 i = this.length - t;
          if (
            ((void 0 === n || n > i) && (n = i),
            (e.length > 0 && (n < 0 || t < 0)) || t > this.length)
          )
            throw new RangeError('Attempt to write outside buffer bounds');
          r || (r = 'utf8');
          for (var o = !1; ; )
            switch (r) {
              case 'hex':
                return b(this, e, t, n);
              case 'utf8':
              case 'utf-8':
                return w(this, e, t, n);
              case 'ascii':
                return x(this, e, t, n);
              case 'latin1':
              case 'binary':
                return E(this, e, t, n);
              case 'base64':
                return S(this, e, t, n);
              case 'ucs2':
              case 'ucs-2':
              case 'utf16le':
              case 'utf-16le':
                return A(this, e, t, n);
              default:
                if (o) throw new TypeError('Unknown encoding: ' + r);
                (r = ('' + r).toLowerCase()), (o = !0);
            }
        }),
        (u.prototype.toJSON = function () {
          return { type: 'Buffer', data: Array.prototype.slice.call(this._arr || this, 0) };
        });
      var _ = 4096;
      function O(e, t, n) {
        var r = '';
        n = Math.min(e.length, n);
        for (var i = t; i < n; ++i) r += String.fromCharCode(127 & e[i]);
        return r;
      }
      function T(e, t, n) {
        var r = '';
        n = Math.min(e.length, n);
        for (var i = t; i < n; ++i) r += String.fromCharCode(e[i]);
        return r;
      }
      function P(e, t, n) {
        var r = e.length;
        (!t || t < 0) && (t = 0), (!n || n < 0 || n > r) && (n = r);
        for (var i = '', o = t; o < n; ++o) i += U(e[o]);
        return i;
      }
      function k(e, t, n) {
        for (var r = e.slice(t, n), i = '', o = 0; o < r.length; o += 2)
          i += String.fromCharCode(r[o] + 256 * r[o + 1]);
        return i;
      }
      function I(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 N(e, t, n, r, i, o) {
        if (!u.isBuffer(e)) throw new TypeError('"buffer" argument must be a Buffer instance');
        if (t > i || t < o) 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 i = 0, o = Math.min(e.length - n, 2); i < o; ++i)
          e[n + i] = (t & (255 << (8 * (r ? i : 1 - i)))) >>> (8 * (r ? i : 1 - i));
      }
      function D(e, t, n, r) {
        t < 0 && (t = 4294967295 + t + 1);
        for (var i = 0, o = Math.min(e.length - n, 4); i < o; ++i)
          e[n + i] = (t >>> (8 * (r ? i : 3 - i))) & 255;
      }
      function j(e, t, n, r, i, o) {
        if (n + r > e.length) throw new RangeError('Index out of range');
        if (n < 0) throw new RangeError('Index out of range');
      }
      function L(e, t, n, r, o) {
        return o || j(e, 0, n, 4), i.write(e, t, n, r, 23, 4), n + 4;
      }
      function B(e, t, n, r, o) {
        return o || j(e, 0, n, 8), i.write(e, t, n, r, 52, 8), n + 8;
      }
      (u.prototype.slice = function (e, t) {
        var n,
          r = this.length;
        if (
          ((e = ~~e) < 0 ? (e += r) < 0 && (e = 0) : e > r && (e = r),
          (t = void 0 === t ? r : ~~t) < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r),
          t < e && (t = e),
          u.TYPED_ARRAY_SUPPORT)
        )
          (n = this.subarray(e, t)).__proto__ = u.prototype;
        else {
          var i = t - e;
          n = new u(i, void 0);
          for (var o = 0; o < i; ++o) n[o] = this[o + e];
        }
        return n;
      }),
        (u.prototype.readUIntLE = function (e, t, n) {
          (e |= 0), (t |= 0), n || I(e, t, this.length);
          for (var r = this[e], i = 1, o = 0; ++o < t && (i *= 256); ) r += this[e + o] * i;
          return r;
        }),
        (u.prototype.readUIntBE = function (e, t, n) {
          (e |= 0), (t |= 0), n || I(e, t, this.length);
          for (var r = this[e + --t], i = 1; t > 0 && (i *= 256); ) r += this[e + --t] * i;
          return r;
        }),
        (u.prototype.readUInt8 = function (e, t) {
          return t || I(e, 1, this.length), this[e];
        }),
        (u.prototype.readUInt16LE = function (e, t) {
          return t || I(e, 2, this.length), this[e] | (this[e + 1] << 8);
        }),
        (u.prototype.readUInt16BE = function (e, t) {
          return t || I(e, 2, this.length), (this[e] << 8) | this[e + 1];
        }),
        (u.prototype.readUInt32LE = function (e, t) {
          return (
            t || I(e, 4, this.length),
            (this[e] | (this[e + 1] << 8) | (this[e + 2] << 16)) + 16777216 * this[e + 3]
          );
        }),
        (u.prototype.readUInt32BE = function (e, t) {
          return (
            t || I(e, 4, this.length),
            16777216 * this[e] + ((this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3])
          );
        }),
        (u.prototype.readIntLE = function (e, t, n) {
          (e |= 0), (t |= 0), n || I(e, t, this.length);
          for (var r = this[e], i = 1, o = 0; ++o < t && (i *= 256); ) r += this[e + o] * i;
          return r >= (i *= 128) && (r -= Math.pow(2, 8 * t)), r;
        }),
        (u.prototype.readIntBE = function (e, t, n) {
          (e |= 0), (t |= 0), n || I(e, t, this.length);
          for (var r = t, i = 1, o = this[e + --r]; r > 0 && (i *= 256); ) o += this[e + --r] * i;
          return o >= (i *= 128) && (o -= Math.pow(2, 8 * t)), o;
        }),
        (u.prototype.readInt8 = function (e, t) {
          return t || I(e, 1, this.length), 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e];
        }),
        (u.prototype.readInt16LE = function (e, t) {
          t || I(e, 2, this.length);
          var n = this[e] | (this[e + 1] << 8);
          return 32768 & n ? 4294901760 | n : n;
        }),
        (u.prototype.readInt16BE = function (e, t) {
          t || I(e, 2, this.length);
          var n = this[e + 1] | (this[e] << 8);
          return 32768 & n ? 4294901760 | n : n;
        }),
        (u.prototype.readInt32LE = function (e, t) {
          return (
            t || I(e, 4, this.length),
            this[e] | (this[e + 1] << 8) | (this[e + 2] << 16) | (this[e + 3] << 24)
          );
        }),
        (u.prototype.readInt32BE = function (e, t) {
          return (
            t || I(e, 4, this.length),
            (this[e] << 24) | (this[e + 1] << 16) | (this[e + 2] << 8) | this[e + 3]
          );
        }),
        (u.prototype.readFloatLE = function (e, t) {
          return t || I(e, 4, this.length), i.read(this, e, !0, 23, 4);
        }),
        (u.prototype.readFloatBE = function (e, t) {
          return t || I(e, 4, this.length), i.read(this, e, !1, 23, 4);
        }),
        (u.prototype.readDoubleLE = function (e, t) {
          return t || I(e, 8, this.length), i.read(this, e, !0, 52, 8);
        }),
        (u.prototype.readDoubleBE = function (e, t) {
          return t || I(e, 8, this.length), i.read(this, e, !1, 52, 8);
        }),
        (u.prototype.writeUIntLE = function (e, t, n, r) {
          ((e = +e), (t |= 0), (n |= 0), r) || N(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
          var i = 1,
            o = 0;
          for (this[t] = 255 & e; ++o < n && (i *= 256); ) this[t + o] = (e / i) & 255;
          return t + n;
        }),
        (u.prototype.writeUIntBE = function (e, t, n, r) {
          ((e = +e), (t |= 0), (n |= 0), r) || N(this, e, t, n, Math.pow(2, 8 * n) - 1, 0);
          var i = n - 1,
            o = 1;
          for (this[t + i] = 255 & e; --i >= 0 && (o *= 256); ) this[t + i] = (e / o) & 255;
          return t + n;
        }),
        (u.prototype.writeUInt8 = function (e, t, n) {
          return (
            (e = +e),
            (t |= 0),
            n || N(this, e, t, 1, 255, 0),
            u.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)),
            (this[t] = 255 & e),
            t + 1
          );
        }),
        (u.prototype.writeUInt16LE = function (e, t, n) {
          return (
            (e = +e),
            (t |= 0),
            n || N(this, e, t, 2, 65535, 0),
            u.TYPED_ARRAY_SUPPORT
              ? ((this[t] = 255 & e), (this[t + 1] = e >>> 8))
              : M(this, e, t, !0),
            t + 2
          );
        }),
        (u.prototype.writeUInt16BE = function (e, t, n) {
          return (
            (e = +e),
            (t |= 0),
            n || N(this, e, t, 2, 65535, 0),
            u.TYPED_ARRAY_SUPPORT
              ? ((this[t] = e >>> 8), (this[t + 1] = 255 & e))
              : M(this, e, t, !1),
            t + 2
          );
        }),
        (u.prototype.writeUInt32LE = function (e, t, n) {
          return (
            (e = +e),
            (t |= 0),
            n || N(this, e, t, 4, 4294967295, 0),
            u.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
          );
        }),
        (u.prototype.writeUInt32BE = function (e, t, n) {
          return (
            (e = +e),
            (t |= 0),
            n || N(this, e, t, 4, 4294967295, 0),
            u.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
          );
        }),
        (u.prototype.writeIntLE = function (e, t, n, r) {
          if (((e = +e), (t |= 0), !r)) {
            var i = Math.pow(2, 8 * n - 1);
            N(this, e, t, n, i - 1, -i);
          }
          var o = 0,
            a = 1,
            s = 0;
          for (this[t] = 255 & e; ++o < n && (a *= 256); )
            e < 0 && 0 === s && 0 !== this[t + o - 1] && (s = 1),
              (this[t + o] = (((e / a) >> 0) - s) & 255);
          return t + n;
        }),
        (u.prototype.writeIntBE = function (e, t, n, r) {
          if (((e = +e), (t |= 0), !r)) {
            var i = Math.pow(2, 8 * n - 1);
            N(this, e, t, n, i - 1, -i);
          }
          var o = n - 1,
            a = 1,
            s = 0;
          for (this[t + o] = 255 & e; --o >= 0 && (a *= 256); )
            e < 0 && 0 === s && 0 !== this[t + o + 1] && (s = 1),
              (this[t + o] = (((e / a) >> 0) - s) & 255);
          return t + n;
        }),
        (u.prototype.writeInt8 = function (e, t, n) {
          return (
            (e = +e),
            (t |= 0),
            n || N(this, e, t, 1, 127, -128),
            u.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)),
            e < 0 && (e = 255 + e + 1),
            (this[t] = 255 & e),
            t + 1
          );
        }),
        (u.prototype.writeInt16LE = function (e, t, n) {
          return (
            (e = +e),
            (t |= 0),
            n || N(this, e, t, 2, 32767, -32768),
            u.TYPED_ARRAY_SUPPORT
              ? ((this[t] = 255 & e), (this[t + 1] = e >>> 8))
              : M(this, e, t, !0),
            t + 2
          );
        }),
        (u.prototype.writeInt16BE = function (e, t, n) {
          return (
            (e = +e),
            (t |= 0),
            n || N(this, e, t, 2, 32767, -32768),
            u.TYPED_ARRAY_SUPPORT
              ? ((this[t] = e >>> 8), (this[t + 1] = 255 & e))
              : M(this, e, t, !1),
            t + 2
          );
        }),
        (u.prototype.writeInt32LE = function (e, t, n) {
          return (
            (e = +e),
            (t |= 0),
            n || N(this, e, t, 4, 2147483647, -2147483648),
            u.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
          );
        }),
        (u.prototype.writeInt32BE = function (e, t, n) {
          return (
            (e = +e),
            (t |= 0),
            n || N(this, e, t, 4, 2147483647, -2147483648),
            e < 0 && (e = 4294967295 + e + 1),
            u.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
          );
        }),
        (u.prototype.writeFloatLE = function (e, t, n) {
          return L(this, e, t, !0, n);
        }),
        (u.prototype.writeFloatBE = function (e, t, n) {
          return L(this, e, t, !1, n);
        }),
        (u.prototype.writeDoubleLE = function (e, t, n) {
          return B(this, e, t, !0, n);
        }),
        (u.prototype.writeDoubleBE = function (e, t, n) {
          return B(this, e, t, !1, n);
        }),
        (u.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 i,
            o = r - n;
          if (this === e && n < t && t < r) for (i = o - 1; i >= 0; --i) e[i + t] = this[i + n];
          else if (o < 1e3 || !u.TYPED_ARRAY_SUPPORT)
            for (i = 0; i < o; ++i) e[i + t] = this[i + n];
          else Uint8Array.prototype.set.call(e, this.subarray(n, n + o), t);
          return o;
        }),
        (u.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 i = e.charCodeAt(0);
              i < 256 && (e = i);
            }
            if (void 0 !== r && 'string' != typeof r)
              throw new TypeError('encoding must be a string');
            if ('string' == typeof r && !u.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 o;
          if (
            ((t >>>= 0),
            (n = void 0 === n ? this.length : n >>> 0),
            e || (e = 0),
            'number' == typeof e)
          )
            for (o = t; o < n; ++o) this[o] = e;
          else {
            var a = u.isBuffer(e) ? e : V(new u(e, r).toString()),
              s = a.length;
            for (o = 0; o < n - t; ++o) this[o + t] = a[o % s];
          }
          return this;
        });
      var F = /[^+\/0-9A-Za-z-_]/g;
      function U(e) {
        return e < 16 ? '0' + e.toString(16) : e.toString(16);
      }
      function V(e, t) {
        var n;
        t = t || 1 / 0;
        for (var r = e.length, i = null, o = [], a = 0; a < r; ++a) {
          if ((n = e.charCodeAt(a)) > 55295 && n < 57344) {
            if (!i) {
              if (n > 56319) {
                (t -= 3) > -1 && o.push(239, 191, 189);
                continue;
              }
              if (a + 1 === r) {
                (t -= 3) > -1 && o.push(239, 191, 189);
                continue;
              }
              i = n;
              continue;
            }
            if (n < 56320) {
              (t -= 3) > -1 && o.push(239, 191, 189), (i = n);
              continue;
            }
            n = 65536 + (((i - 55296) << 10) | (n - 56320));
          } else i && (t -= 3) > -1 && o.push(239, 191, 189);
          if (((i = null), n < 128)) {
            if ((t -= 1) < 0) break;
            o.push(n);
          } else if (n < 2048) {
            if ((t -= 2) < 0) break;
            o.push((n >> 6) | 192, (63 & n) | 128);
          } else if (n < 65536) {
            if ((t -= 3) < 0) break;
            o.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;
            o.push((n >> 18) | 240, ((n >> 12) & 63) | 128, ((n >> 6) & 63) | 128, (63 & n) | 128);
          }
        }
        return o;
      }
      function q(e) {
        return r.toByteArray(
          (function (e) {
            if (
              (e = (function (e) {
                return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, '');
              })(e).replace(F, '')).length < 2
            )
              return '';
            for (; e.length % 4 != 0; ) e += '=';
            return e;
          })(e),
        );
      }
      function z(e, t, n, r) {
        for (var i = 0; i < r && !(i + n >= t.length || i >= e.length); ++i) t[i + n] = e[i];
        return i;
      }
    }.call(this, n(11)));
  },
  function (e, t) {
    'function' == typeof Object.create
      ? (e.exports = function (e, t) {
          t &&
            ((e.super_ = t),
            (e.prototype = Object.create(t.prototype, {
              constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 },
            })));
        })
      : (e.exports = function (e, t) {
          if (t) {
            e.super_ = t;
            var n = function () {};
            (n.prototype = t.prototype), (e.prototype = new n()), (e.prototype.constructor = e);
          }
        });
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    function o(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);
      }
    }
    var a,
      s = n(8).config(),
      u = n(8).data(),
      c = n(467),
      p = (function () {
        function e() {
          !(function (e, t) {
            if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
          })(this, e),
            (this.callbacks = new Map());
        }
        var t, n, r, a, p, f, l, h;
        return (
          (t = e),
          (n = [
            {
              key: 'start',
              value: function () {
                c(this), (this.config = s.getConfig());
              },
            },
            {
              key: 'registerForConfigChange',
              value: function (e, t) {
                if (this.callbacks.has(e)) {
                  var n = this.callbacks.get(e);
                  n.push(t), this.callbacks.set(e, n);
                } else this.callbacks.set(e, [t]);
              },
            },
            {
              key: '_isExistingConfigKey',
              value:
                ((h = i(
                  regeneratorRuntime.mark(function e(t) {
                    var n, r;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              if (this.configurationKeys) {
                                e.next = 5;
                                break;
                              }
                              return (e.next = 3), this.config;
                            case 3:
                              (n = e.sent), (this.configurationKeys = Object.keys(n));
                            case 5:
                              return (
                                (r = this.configurationKeys.includes(t)), e.abrupt('return', r)
                              );
                            case 7:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return h.apply(this, arguments);
                }),
            },
            {
              key: 'readConfig',
              value:
                ((l = i(
                  regeneratorRuntime.mark(function e(t) {
                    var n;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.config;
                            case 2:
                              return (n = e.sent), t && (n = n[t]), e.abrupt('return', n);
                            case 5:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return l.apply(this, arguments);
                }),
            },
            {
              key: '_executeCallbacks',
              value: function (e, t) {
                var n = this.callbacks.get(e);
                n &&
                  n.forEach(function (e) {
                    return e(t);
                  });
              },
            },
            {
              key: 'writeConfig',
              value:
                ((f = i(
                  regeneratorRuntime.mark(function e(t, n) {
                    var r, i;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.config;
                            case 2:
                              return (r = e.sent), (e.next = 5), this._isExistingConfigKey(t);
                            case 5:
                              if (e.sent) {
                                e.next = 8;
                                break;
                              }
                              return e.abrupt('return');
                            case 8:
                              return (e.next = 10), s.writeConfig(t, n);
                            case 10:
                              return (
                                (i = e.sent) && (r[t] = n),
                                this._executeCallbacks(t, n),
                                e.abrupt('return', i)
                              );
                            case 14:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e, t) {
                  return f.apply(this, arguments);
                }),
            },
            {
              key: 'readConfigData',
              value:
                ((p = i(
                  regeneratorRuntime.mark(function e(t) {
                    var n;
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (e.next = 2), u.read('config_data');
                          case 2:
                            if (!(n = e.sent)) {
                              e.next = 7;
                              break;
                            }
                            return e.abrupt('return', n.config[t]);
                          case 7:
                            return e.abrupt('return', null);
                          case 8:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function (e) {
                  return p.apply(this, arguments);
                }),
            },
            {
              key: 'createConfigData',
              value:
                ((a = i(
                  regeneratorRuntime.mark(function e() {
                    var t;
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              ((t = {}).rotationStartTime = new Date().getTime()),
                              (t.standardLogs = 0),
                              (t.processLogs = []),
                              e.abrupt('return', u.write('config_data/config', t))
                            );
                          case 5:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function () {
                  return a.apply(this, arguments);
                }),
            },
          ]) && o(t.prototype, n),
          r && o(t, r),
          e
        );
      })();
    e.exports = (a || (a = new p()), a);
  },
  function (e, t, n) {
    'use strict';
    var r = n(57),
      i = n(199),
      o = n(204);
    function a() {
      r.apply(this, arguments),
        (this.loop = this.parentContext.getLoopCharacteristics(this.activity.loopCharacteristics));
    }
    (a.prototype = Object.create(r.prototype)),
      (a.prototype.run = function (e) {
        var t = this;
        if ((r.prototype.run.apply(this, arguments), (this.inboundMessage = e), this.loop))
          return this.runLoop(e, function (e, n) {
            (t.complete = a.prototype.complete.bind(t)),
              e instanceof o
                ? t._debug('<'.concat(t.id, '>'), 'prematurely stopped')
                : t.loop.reset(),
              t.complete(n);
          });
        this._debug('<'.concat(this.id, '>'), 'run'), this.execute(e);
      }),
      (a.prototype.execute = function () {}),
      (a.prototype.runLoop = function (e, t) {
        return function () {
          'collection' === this.loop.characteristics.type
            ? function (e, t) {
                var n = this,
                  r = n.loop,
                  o = r.getCollection(),
                  s = n.parentContext.getVariablesAndServices();
                i.eachSeries(
                  o,
                  function (t, i) {
                    n._debug(
                      '<'.concat(n.id, '>'),
                      'iteration '.concat(r.iteration, ' in sequential collection loop'),
                    );
                    var o = Object.assign({}, e);
                    (o.loop = !0),
                      (o.index = r.iteration),
                      (o.item = t),
                      (n.complete = a.prototype.complete.bind(
                        n,
                        (function (e, t, n, r) {
                          return function (i, o) {
                            if (i) return r(i, o);
                            e.run(t, n, o, function (e) {
                              r(e, o);
                            });
                          };
                        })(r, s, n.inboundMessage, i),
                      )),
                      n.execute(o);
                  },
                  t,
                );
              }.apply(this, arguments)
            : function (e, t) {
                var n = this,
                  r = n.loop,
                  o = r.run.bind(r, n.parentContext.getVariablesAndServices(), n.inboundMessage);
                i.doUntil(
                  function (t) {
                    n._debug(
                      '<'.concat(n.id, '>'),
                      'iteration '.concat(r.iteration, ' in sequential loop'),
                    );
                    var i = Object.assign({}, e);
                    (i.loop = !0),
                      (i.index = r.iteration),
                      (n.complete = a.prototype.complete.bind(n, t)),
                      n.execute(i);
                  },
                  o,
                  t,
                );
              }.apply(this, arguments);
        }.call(this, e, t);
      }),
      (a.prototype.complete = function (e, t) {
        'function' != typeof e && ((t = e), (e = null));
        var n = this.getOutput(t);
        if ((this.emit('end', this, n), this.loop && !this.loop.completed)) return e(null, n);
        this.takeAllOutbound(n);
      }),
      (a.prototype.deactivate = function () {
        r.prototype.deactivate.apply(this, arguments), this.loop && this.loop.deactivate();
      }),
      (a.prototype.getState = function () {
        var e = r.prototype.getState.apply(this, arguments);
        return this.loop && (e.loop = this.loop.getState()), e;
      }),
      (a.prototype.resume = function (e) {
        this.loop && this.loop.resume(e.loop), r.prototype.resume.apply(this, arguments);
      }),
      (e.exports = a);
  },
  function (e, t, n) {
    var r = n(59);
    e.exports = function (e) {
      return r(e) ? e : Object(e);
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: t };
    };
  },
  function (e, t) {
    var n = 0,
      r = Math.random();
    e.exports = function (e) {
      return 'Symbol('.concat(void 0 === e ? '' : e, ')_', (++n + r).toString(36));
    };
  },
  function (e, t, n) {
    var r = n(153),
      i = n(112);
    e.exports =
      Object.keys ||
      function (e) {
        return r(e, i);
      };
  },
  function (e, t, n) {
    var r = n(25),
      i = Math.max,
      o = Math.min;
    e.exports = function (e, t) {
      return (e = r(e)) < 0 ? i(e + t, 0) : o(e, t);
    };
  },
  function (e, t, n) {
    var r = n(1),
      i = n(154),
      o = n(112),
      a = n(111)('IE_PROTO'),
      s = function () {},
      u = function () {
        var e,
          t = n(109)('iframe'),
          r = o.length;
        for (
          t.style.display = 'none',
            n(113).appendChild(t),
            t.src = 'javascript:',
            (e = t.contentWindow.document).open(),
            e.write('<script>document.F=Object</script>'),
            e.close(),
            u = e.F;
          r--;

        )
          delete u.prototype[o[r]];
        return u();
      };
    e.exports =
      Object.create ||
      function (e, t) {
        var n;
        return (
          null !== e
            ? ((s.prototype = r(e)), (n = new s()), (s.prototype = null), (n[a] = e))
            : (n = u()),
          void 0 === t ? n : i(n, t)
        );
      };
  },
  function (e, t, n) {
    var r = n(153),
      i = n(112).concat('length', 'prototype');
    t.f =
      Object.getOwnPropertyNames ||
      function (e) {
        return r(e, i);
      };
  },
  function (e, t, n) {
    'use strict';
    var r = n(2),
      i = n(9),
      o = n(7),
      a = n(5)('species');
    e.exports = function (e) {
      var t = r[e];
      o &&
        t &&
        !t[a] &&
        i.f(t, a, {
          configurable: !0,
          get: function () {
            return this;
          },
        });
    };
  },
  function (e, t) {
    e.exports = function (e, t, n, r) {
      if (!(e instanceof t) || (void 0 !== r && r in e))
        throw TypeError(n + ': incorrect invocation!');
      return e;
    };
  },
  function (e, t, n) {
    var r = n(23),
      i = n(166),
      o = n(124),
      a = n(1),
      s = n(6),
      u = n(126),
      c = {},
      p = {};
    ((t = e.exports =
      function (e, t, n, f, l) {
        var h,
          d,
          m,
          y,
          v = l
            ? function () {
                return e;
              }
            : u(e),
          g = r(n, f, t ? 2 : 1),
          b = 0;
        if ('function' != typeof v) throw TypeError(e + ' is not iterable!');
        if (o(v)) {
          for (h = s(e.length); h > b; b++)
            if ((y = t ? g(a((d = e[b]))[0], d[1]) : g(e[b])) === c || y === p) return y;
        } else
          for (m = v.call(e); !(d = m.next()).done; )
            if ((y = i(m, g, d.value, t)) === c || y === p) return y;
      }).BREAK = c),
      (t.RETURN = p);
  },
  function (e, t, n) {
    var r = n(14);
    e.exports = function (e, t, n) {
      for (var i in t) r(e, i, t[i], n);
      return e;
    };
  },
  function (e, t, n) {
    var r = n(4);
    e.exports = function (e, t) {
      if (!r(e) || e._t !== t) throw TypeError('Incompatible receiver, ' + t + ' required!');
      return e;
    };
  },
  function (e, t) {
    e.exports = {
      generateUniqueTaskID: function () {
        return String(Math.random());
      },
    };
  },
  function (e, t, n) {
    'use strict';
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i,
      o = 'object' === ('undefined' == typeof Reflect ? 'undefined' : r(Reflect)) ? Reflect : null,
      a =
        o && 'function' == typeof o.apply
          ? o.apply
          : function (e, t, n) {
              return Function.prototype.apply.call(e, t, n);
            };
    i =
      o && 'function' == typeof o.ownKeys
        ? o.ownKeys
        : Object.getOwnPropertySymbols
        ? function (e) {
            return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
          }
        : function (e) {
            return Object.getOwnPropertyNames(e);
          };
    var s =
      Number.isNaN ||
      function (e) {
        return e != e;
      };
    function u() {
      u.init.call(this);
    }
    (e.exports = u),
      (u.EventEmitter = u),
      (u.prototype._events = void 0),
      (u.prototype._eventsCount = 0),
      (u.prototype._maxListeners = void 0);
    var c = 10;
    function p(e) {
      return void 0 === e._maxListeners ? u.defaultMaxListeners : e._maxListeners;
    }
    function f(e, t, n, i) {
      var o, a, s, u;
      if ('function' != typeof n)
        throw new TypeError(
          'The "listener" argument must be of type Function. Received type ' + r(n),
        );
      if (
        (void 0 === (a = e._events)
          ? ((a = e._events = Object.create(null)), (e._eventsCount = 0))
          : (void 0 !== a.newListener &&
              (e.emit('newListener', t, n.listener ? n.listener : n), (a = e._events)),
            (s = a[t])),
        void 0 === s)
      )
        (s = a[t] = n), ++e._eventsCount;
      else if (
        ('function' == typeof s ? (s = a[t] = i ? [n, s] : [s, n]) : i ? s.unshift(n) : s.push(n),
        (o = p(e)) > 0 && s.length > o && !s.warned)
      ) {
        s.warned = !0;
        var c = new Error(
          'Possible EventEmitter memory leak detected. ' +
            s.length +
            ' ' +
            String(t) +
            ' listeners added. Use emitter.setMaxListeners() to increase limit',
        );
        (c.name = 'MaxListenersExceededWarning'),
          (c.emitter = e),
          (c.type = t),
          (c.count = s.length),
          (u = c),
          console && console.warn && console.warn(u);
      }
      return e;
    }
    function l(e, t, n) {
      var r = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n },
        i = function () {
          for (var e = [], t = 0; t < arguments.length; t++) e.push(arguments[t]);
          this.fired ||
            (this.target.removeListener(this.type, this.wrapFn),
            (this.fired = !0),
            a(this.listener, this.target, e));
        }.bind(r);
      return (i.listener = n), (r.wrapFn = i), i;
    }
    function h(e, t, n) {
      var r = e._events;
      if (void 0 === r) return [];
      var i = r[t];
      return void 0 === i
        ? []
        : 'function' == typeof i
        ? n
          ? [i.listener || i]
          : [i]
        : n
        ? (function (e) {
            for (var t = new Array(e.length), n = 0; n < t.length; ++n)
              t[n] = e[n].listener || e[n];
            return t;
          })(i)
        : m(i, i.length);
    }
    function d(e) {
      var t = this._events;
      if (void 0 !== t) {
        var n = t[e];
        if ('function' == typeof n) return 1;
        if (void 0 !== n) return n.length;
      }
      return 0;
    }
    function m(e, t) {
      for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e[r];
      return n;
    }
    Object.defineProperty(u, 'defaultMaxListeners', {
      enumerable: !0,
      get: function () {
        return c;
      },
      set: function (e) {
        if ('number' != typeof e || e < 0 || s(e))
          throw new RangeError(
            'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
              e +
              '.',
          );
        c = e;
      },
    }),
      (u.init = function () {
        (void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events) ||
          ((this._events = Object.create(null)), (this._eventsCount = 0)),
          (this._maxListeners = this._maxListeners || void 0);
      }),
      (u.prototype.setMaxListeners = function (e) {
        if ('number' != typeof e || e < 0 || s(e))
          throw new RangeError(
            'The value of "n" is out of range. It must be a non-negative number. Received ' +
              e +
              '.',
          );
        return (this._maxListeners = e), this;
      }),
      (u.prototype.getMaxListeners = function () {
        return p(this);
      }),
      (u.prototype.emit = function (e) {
        for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]);
        var r = 'error' === e,
          i = this._events;
        if (void 0 !== i) r = r && void 0 === i.error;
        else if (!r) return !1;
        if (r) {
          var o;
          if ((t.length > 0 && (o = t[0]), o instanceof Error)) throw o;
          var s = new Error('Unhandled error.' + (o ? ' (' + o.message + ')' : ''));
          throw ((s.context = o), s);
        }
        var u = i[e];
        if (void 0 === u) return !1;
        if ('function' == typeof u) a(u, this, t);
        else {
          var c = u.length,
            p = m(u, c);
          for (n = 0; n < c; ++n) a(p[n], this, t);
        }
        return !0;
      }),
      (u.prototype.addListener = function (e, t) {
        return f(this, e, t, !1);
      }),
      (u.prototype.on = u.prototype.addListener),
      (u.prototype.prependListener = function (e, t) {
        return f(this, e, t, !0);
      }),
      (u.prototype.once = function (e, t) {
        if ('function' != typeof t)
          throw new TypeError(
            'The "listener" argument must be of type Function. Received type ' + r(t),
          );
        return this.on(e, l(this, e, t)), this;
      }),
      (u.prototype.prependOnceListener = function (e, t) {
        if ('function' != typeof t)
          throw new TypeError(
            'The "listener" argument must be of type Function. Received type ' + r(t),
          );
        return this.prependListener(e, l(this, e, t)), this;
      }),
      (u.prototype.removeListener = function (e, t) {
        var n, i, o, a, s;
        if ('function' != typeof t)
          throw new TypeError(
            'The "listener" argument must be of type Function. Received type ' + r(t),
          );
        if (void 0 === (i = this._events)) return this;
        if (void 0 === (n = i[e])) return this;
        if (n === t || n.listener === t)
          0 == --this._eventsCount
            ? (this._events = Object.create(null))
            : (delete i[e], i.removeListener && this.emit('removeListener', e, n.listener || t));
        else if ('function' != typeof n) {
          for (o = -1, a = n.length - 1; a >= 0; a--)
            if (n[a] === t || n[a].listener === t) {
              (s = n[a].listener), (o = a);
              break;
            }
          if (o < 0) return this;
          0 === o
            ? n.shift()
            : (function (e, t) {
                for (; t + 1 < e.length; t++) e[t] = e[t + 1];
                e.pop();
              })(n, o),
            1 === n.length && (i[e] = n[0]),
            void 0 !== i.removeListener && this.emit('removeListener', e, s || t);
        }
        return this;
      }),
      (u.prototype.off = u.prototype.removeListener),
      (u.prototype.removeAllListeners = function (e) {
        var t, n, r;
        if (void 0 === (n = this._events)) return this;
        if (void 0 === n.removeListener)
          return (
            0 === arguments.length
              ? ((this._events = Object.create(null)), (this._eventsCount = 0))
              : void 0 !== n[e] &&
                (0 == --this._eventsCount ? (this._events = Object.create(null)) : delete n[e]),
            this
          );
        if (0 === arguments.length) {
          var i,
            o = Object.keys(n);
          for (r = 0; r < o.length; ++r)
            'removeListener' !== (i = o[r]) && this.removeAllListeners(i);
          return (
            this.removeAllListeners('removeListener'),
            (this._events = Object.create(null)),
            (this._eventsCount = 0),
            this
          );
        }
        if ('function' == typeof (t = n[e])) this.removeListener(e, t);
        else if (void 0 !== t) for (r = t.length - 1; r >= 0; r--) this.removeListener(e, t[r]);
        return this;
      }),
      (u.prototype.listeners = function (e) {
        return h(this, e, !0);
      }),
      (u.prototype.rawListeners = function (e) {
        return h(this, e, !1);
      }),
      (u.listenerCount = function (e, t) {
        return 'function' == typeof e.listenerCount ? e.listenerCount(t) : d.call(e, t);
      }),
      (u.prototype.listenerCount = d),
      (u.prototype.eventNames = function () {
        return this._eventsCount > 0 ? i(this._events) : [];
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(97),
      i =
        Object.keys ||
        function (e) {
          var t = [];
          for (var n in e) t.push(n);
          return t;
        };
    e.exports = f;
    var o = n(73);
    o.inherits = n(39);
    var a = n(190),
      s = n(137);
    o.inherits(f, a);
    for (var u = i(s.prototype), c = 0; c < u.length; c++) {
      var p = u[c];
      f.prototype[p] || (f.prototype[p] = s.prototype[p]);
    }
    function f(e) {
      if (!(this instanceof f)) return new f(e);
      a.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', l);
    }
    function l() {
      this.allowHalfOpen || this._writableState.ended || r.nextTick(h, this);
    }
    function h(e) {
      e.end();
    }
    Object.defineProperty(f.prototype, 'writableHighWaterMark', {
      enumerable: !1,
      get: function () {
        return this._writableState.highWaterMark;
      },
    }),
      Object.defineProperty(f.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));
        },
      }),
      (f.prototype._destroy = function (e, t) {
        this.push(null), this.end(), r.nextTick(t, e);
      });
  },
  function (e, t, n) {
    'use strict';
    (function (t) {
      var r = n(17),
        i = n(55).EventEmitter,
        o = {};
      function a(e, t) {
        return this.multipleInbound
          ? this.pendingDiscard
            ? (this.pendingLength--,
              this._debug(
                '<'.concat(this.id, '>'),
                'inbound from discarded <'.concat(e.id, '> - pending ').concat(this.pendingLength),
              ),
              void (0 === this.pendingLength && this.discard(e, t)))
            : (this._debug(
                '<'.concat(this.id, '>'),
                'pending inbound from discarded <'.concat(e.id, '>'),
              ),
              (this.pendingDiscard = !0),
              (this.pendingLength = this.inbound.length - 1),
              void this.emit('leave', this))
          : this.discard(e, t);
      }
      (e.exports = o.Activity =
        function (e, t) {
          (this.parentContext = t),
            (this.id = e.id),
            (this.type = e.$type),
            (this.name = e.name),
            (this._debug = r('bpmn-engine:'.concat(this.type.toLowerCase()))),
            (this.activity = e),
            (this.inbound = t.getInboundSequenceFlows(e.id)),
            (this.outbound = t.getOutboundSequenceFlows(e.id)),
            (this.io = t.getActivityIO(e.id)),
            (this.properties = t.getActivityProperties(e.id)),
            (this.multipleInbound = this.inbound.length > 1),
            (this.isStart = 0 === this.inbound.length),
            (this.isEnd = 0 === this.outbound.length),
            (this.entered = !1),
            this._debug('<'.concat(this.id, '>'), 'init');
        }),
        (o.Activity.prototype = Object.create(i.prototype)),
        (o.Activity.prototype.activate = function () {
          this.setupInboundListeners();
        }),
        (o.Activity.prototype.deactivate = function () {
          this.teardownInboundListeners();
        }),
        (o.Activity.prototype.run = function () {
          (this.canceled = !1), this.enter();
        }),
        (o.Activity.prototype.resume = function (e) {
          void 0 !== e.taken && (this.taken = e.taken),
            void 0 !== e.canceled && (this.canceled = e.canceled),
            e.entered && (this._debug('<'.concat(this.id, '>'), 'resume'), this.run());
        }),
        (o.Activity.prototype.signal = function () {}),
        (o.Activity.prototype.enter = function (e) {
          if ((this._debug('<'.concat(this.id, '>'), 'enter'), this.entered))
            throw new Error('Already entered <'.concat(this.id, '>'));
          (this.entered = !0), this.emit('enter', this, e);
        }),
        (o.Activity.prototype.leave = function () {
          var e = this;
          if ((this._debug('<'.concat(this.id, '>'), 'leave'), !this.entered))
            throw new Error('Already left <'.concat(this.id, '>'));
          (this.pendingDiscard = !1),
            (this.entered = !1),
            t(function () {
              e.emit('leave', e);
            });
        }),
        (o.Activity.prototype.cancel = function () {
          (this.canceled = !0),
            this._debug('<'.concat(this.id, '>'), 'cancel'),
            this.emit('cancel', this),
            this.takeAllOutbound();
        }),
        (o.Activity.prototype.onInbound = function (e) {
          if (e.discarded) return a.apply(this, arguments);
          var t = this.getInput();
          return this.run(t);
        }),
        (o.Activity.prototype.onLoopedInbound = function () {
          this.entered && this.leave();
        }),
        (o.Activity.prototype.discard = function (e, t) {
          return this.entered || this.enter(e), this.discardAllOutbound(t);
        }),
        (o.Activity.prototype.takeAllOutbound = function (e) {
          this.isEnd ||
            (this._debug(
              '<'.concat(this.id, '>'),
              'take all outbound ('.concat(this.outbound.length, ')'),
            ),
            this.outbound.forEach(function (t) {
              return t.take(e);
            })),
            this.leave();
        }),
        (o.Activity.prototype.discardAllOutbound = function (e) {
          this.isEnd ||
            (this._debug(
              '<'.concat(this.id, '>'),
              'discard all outbound ('.concat(this.outbound.length, ')'),
            ),
            this.outbound.forEach(function (t) {
              t.discard(e);
            })),
            this.leave(e);
        }),
        (o.Activity.prototype.setupInboundListeners = function () {
          var e = this;
          this.inbound.length &&
            (this._onInbound ||
              ((this._onInbound = this.onInbound.bind(this)),
              (this._onLoopedInbound = this.onLoopedInbound.bind(this)),
              this.inbound.forEach(function (t) {
                t.on('taken', e._onInbound),
                  t.on('discarded', e._onInbound),
                  t.on('looped', e._onLoopedInbound);
              })));
        }),
        (o.Activity.prototype.teardownInboundListeners = function () {
          var e = this;
          this._onInbound &&
            (this.inbound.forEach(function (t) {
              t.removeListener('taken', e._onInbound),
                t.removeListener('discarded', e._onInbound),
                t.removeListener('looped', e._onLoopedInbound);
            }),
            delete this._onInbound);
        }),
        (o.Activity.prototype.getOutput = function (e) {
          return this.io ? this.io.getOutput(e) : e;
        }),
        (o.Activity.prototype.getInput = function (e) {
          return this.io ? this.io.getInput(e) : e;
        }),
        (o.Activity.prototype.getState = function () {
          var e = { id: this.id, type: this.type, entered: this.entered };
          return (
            void 0 !== this.taken && (e.taken = this.taken),
            void 0 !== this.canceled && (e.canceled = this.canceled),
            e
          );
        });
    }.call(this, n(99).setImmediate));
  },
  function (e, t, n) {
    'use strict';
    var r = n(201),
      i = /^\${(.+?)}$/,
      o = /\${(.+?)}/;
    function a(e, t) {
      for (var n = e; o.test(n); ) {
        var i = n.match(o),
          a = i[1];
        if ('true' === a) return !0;
        if ('false' === a) return !1;
        var s = r(t, a);
        if (i.input === i[0]) return s;
        n = n.replace(i[0], void 0 === s ? '' : s);
      }
      return n;
    }
    (a.isExpression = function (e) {
      return !!e && i.test(e);
    }),
      (a.hasExpression = function (e) {
        return !!e && o.test(e);
      }),
      (e.exports = a);
  },
  function (e, t) {
    function n(e) {
      return (n =
        '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;
            })(e);
    }
    e.exports = function (e) {
      var t = n(e);
      return !!e && ('object' == t || 'function' == t);
    };
  },
  function (e, t, n) {
    var r = n(9).f,
      i = n(18),
      o = n(5)('toStringTag');
    e.exports = function (e, t, n) {
      e && !i((e = n ? e : e.prototype), o) && r(e, o, { configurable: !0, value: t });
    };
  },
  function (e, t, n) {
    var r = n(24),
      i = n(5)('toStringTag'),
      o =
        'Arguments' ==
        r(
          (function () {
            return arguments;
          })(),
        );
    e.exports = function (e) {
      var t, n, a;
      return void 0 === e
        ? 'Undefined'
        : null === e
        ? 'Null'
        : 'string' ==
          typeof (n = (function (e, t) {
            try {
              return e[t];
            } catch (e) {}
          })((t = Object(e)), i))
        ? n
        : o
        ? r(t)
        : 'Object' == (a = r(t)) && 'function' == typeof t.callee
        ? 'Arguments'
        : a;
    };
  },
  function (e, t, n) {
    var r = n(0),
      i = n(29),
      o = n(3),
      a = n(115),
      s = '[' + a + ']',
      u = RegExp('^' + s + s + '*'),
      c = RegExp(s + s + '*$'),
      p = function (e, t, n) {
        var i = {},
          s = o(function () {
            return !!a[e]() || '​…' != '​…'[e]();
          }),
          u = (i[e] = s ? t(f) : a[e]);
        n && (i[n] = u), r(r.P + r.F * s, 'String', i);
      },
      f = (p.trim = function (e, t) {
        return (
          (e = String(i(e))), 1 & t && (e = e.replace(u, '')), 2 & t && (e = e.replace(c, '')), e
        );
      });
    e.exports = p;
  },
  function (e, t) {
    e.exports = {};
  },
  function (e, t) {
    function n(e) {
      return (n =
        '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;
            })(e);
    }
    e.exports = function (e) {
      return !!e && 'object' == n(e);
    };
  },
  function (e, t) {
    var n = 9007199254740991;
    e.exports = function (e) {
      return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= n;
    };
  },
  function (e, t) {
    function n(e) {
      return (n =
        '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;
            })(e);
    }
    e.exports = function (e) {
      var t = n(e);
      return !!e && ('object' == t || 'function' == t);
    };
  },
  function (e, t, n) {
    var r = n(22),
      i = n(2),
      o = i['__core-js_shared__'] || (i['__core-js_shared__'] = {});
    (e.exports = function (e, t) {
      return o[e] || (o[e] = void 0 !== t ? t : {});
    })('versions', []).push({
      version: r.version,
      mode: n(34) ? 'pure' : 'global',
      copyright: '© 2019 Denis Pushkarev (zloirock.ru)',
    });
  },
  function (e, t, n) {
    var r = n(24);
    e.exports = Object('z').propertyIsEnumerable(0)
      ? Object
      : function (e) {
          return 'String' == r(e) ? e.split('') : Object(e);
        };
  },
  function (e, t) {
    t.f = {}.propertyIsEnumerable;
  },
  function (e, t, n) {
    'use strict';
    var r = n(1);
    e.exports = function () {
      var e = r(this),
        t = '';
      return (
        e.global && (t += 'g'),
        e.ignoreCase && (t += 'i'),
        e.multiline && (t += 'm'),
        e.unicode && (t += 'u'),
        e.sticky && (t += 'y'),
        t
      );
    };
  },
  function (e, t, n) {
    var r = n(1),
      i = n(12),
      o = n(5)('species');
    e.exports = function (e, t) {
      var n,
        a = r(e).constructor;
      return void 0 === a || null == (n = r(a)[o]) ? t : i(n);
    };
  },
  function (e, t, n) {
    ((t = e.exports = n(190)).Stream = t),
      (t.Readable = t),
      (t.Writable = n(137)),
      (t.Duplex = n(56)),
      (t.Transform = n(193)),
      (t.PassThrough = n(452));
  },
  function (e, t, n) {
    (function (e) {
      function n(e) {
        return (n =
          '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;
              })(e);
      }
      function r(e) {
        return Object.prototype.toString.call(e);
      }
      (t.isArray = function (e) {
        return Array.isArray ? Array.isArray(e) : '[object Array]' === r(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' === n(e);
        }),
        (t.isUndefined = function (e) {
          return void 0 === e;
        }),
        (t.isRegExp = function (e) {
          return '[object RegExp]' === r(e);
        }),
        (t.isObject = function (e) {
          return 'object' === n(e) && null !== e;
        }),
        (t.isDate = function (e) {
          return '[object Date]' === r(e);
        }),
        (t.isError = function (e) {
          return '[object Error]' === r(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' === n(e) ||
            void 0 === e
          );
        }),
        (t.isBuffer = e.isBuffer);
    }.call(this, n(38).Buffer));
  },
  function (e, t, n) {
    var r = n(40),
      i = n(468),
      o = n(473);
    e.exports = { config: r, logging: i, machineManager: o };
  },
  function (e, t, n) {
    'use strict';
    var r = {
      getDefinitionId: function (e) {
        return e.rootHandler.element.id;
      },
      getProcesses: function (e) {
        return e.rootHandler.element.rootElements.filter(function (e) {
          return 'bpmn:Process' === e.$type;
        });
      },
      getExecutableProcessId: function (e) {
        var t = e.rootHandler.element.rootElements.find(function (e) {
          return 'bpmn:Process' === e.$type && e.isExecutable;
        });
        return t && t.id;
      },
      getOutboundSequenceFlows: function (e, t) {
        return e.references.filter(function (e) {
          return 'bpmn:sourceRef' === e.property && e.id === t;
        });
      },
      hasInboundSequenceFlows: function (e, t) {
        return e.references.some(function (e) {
          return 'bpmn:targetRef' === e.property && e.id === t;
        });
      },
      getInboundSequenceFlows: function (e, t) {
        return e.references.filter(function (e) {
          return 'bpmn:targetRef' === e.property && e.id === t;
        });
      },
      getSequenceFlowTargetId: function (e, t) {
        var n = e.references.find(function (e) {
          return 'bpmn:targetRef' === e.property && e.element.id === t;
        });
        return n && n.id;
      },
      isDefaultSequenceFlow: function (e, t) {
        return e.references.some(function (e) {
          return 'bpmn:default' === e.property && e.id === t;
        });
      },
      getTargetProcess: function (e, t) {
        return e.rootHandler.element.rootElements.find(function (e) {
          return (
            'bpmn:Process' === e.$type &&
            e.flowElements.some(function (e) {
              return e.id === t;
            })
          );
        });
      },
      getActivityIO: function (e, t) {
        var n = e.elementsById[t];
        if (n.extensionElements && n.extensionElements.values)
          return n.extensionElements.values.find(function (e) {
            return 'camunda:InputOutput' === e.$type;
          });
      },
      getActivityProperties: function (e, t) {
        var n = e.elementsById[t];
        if (n && n.extensionElements) {
          var r = n.extensionElements.values.find(function (e) {
            return 'camunda:properties' === e.$type.toLowerCase();
          });
          if (r && r.values) return r;
        }
      },
      getActivityFormData: function (e) {
        var t;
        return (
          e.extensionElements &&
            e.extensionElements.values &&
            (t = e.extensionElements.values.find(function (e) {
              return 'camunda:FormData' === e.$type;
            })),
          !t && e.formKey ? { formKey: e.formKey } : t
        );
      },
      getAllOutboundSequenceFlows: function (e, t) {
        var n = e.elementsById[t];
        return e.references.filter(function (e) {
          if ('bpmn:sourceRef' !== e.property) return !1;
          switch (e.element.$type) {
            case 'bpmn:MessageFlow':
            case 'bpmn:SequenceFlow':
              break;
            default:
              return !1;
          }
          var t = e.id;
          return n.flowElements.some(function (e) {
            return e.id === t;
          });
        });
      },
      getChildOutputNames: function (e, t) {
        var n = e.elementsById[t];
        return n.dataOutputAssociations
          ? n.dataOutputAssociations.map(function (t) {
              return r.getDataObjectFromAssociation(e, t.id);
            })
          : [];
      },
      getDataObjectFromAssociation: function (e, t) {
        var n = e.references.find(function (e) {
          return (
            'bpmn:DataOutputAssociation' === e.element.$type &&
            e.element.id === t &&
            'bpmn:targetRef' === e.property
          );
        });
        if (!n) return null;
        var i = e.elementsById[n.id];
        return 'bpmn:DataObject' === i.$type ? i : r.getDataObjectFromRef(e, i.id);
      },
      getDataObjectFromRef: function (e, t) {
        var n = e.references.find(function (e) {
          return (
            'bpmn:DataObjectReference' === e.element.$type &&
            e.element.id === t &&
            'bpmn:dataObjectRef' === e.property
          );
        });
        return n ? e.elementsById[n.id] : null;
      },
      isTerminationElement: function (e) {
        return (
          !!e &&
          !!e.eventDefinitions &&
          e.eventDefinitions.some(function (e) {
            return 'bpmn:TerminateEventDefinition' === e.$type;
          })
        );
      },
      getActivities: function (e, t) {
        var n = [],
          r = e.elementsById[t];
        return r.flowElements
          ? (Object.keys(e.elementsById).forEach(function (t) {
              if (
                r.flowElements.some(function (e) {
                  return e.id === t;
                })
              ) {
                var i = e.elementsById[t];
                switch (i.$type) {
                  case 'bpmn:SequenceFlow':
                  case 'bpmn:Definitions':
                    break;
                  default:
                    n.push(i);
                }
              }
            }),
            n)
          : n;
      },
      getBoundaryEvents: function (e, t) {
        return e.references.filter(function (e) {
          return 'bpmn:attachedToRef' === e.property && e.id === t;
        });
      },
      getAttachedToActivity: function (e, t) {
        return e.references.find(function (e) {
          return 'bpmn:attachedToRef' === e.property && e.element.id === t;
        });
      },
      hasAttachedErrorEvent: function (e, t) {
        return r.getBoundaryEvents(e, t).some(function (e) {
          return e.element.eventDefinitions.some(function (e) {
            return 'bpmn:ErrorEventDefinition' === e.$type;
          });
        });
      },
      getElementService: function (e) {
        if (e && e.extensionElements) {
          var t = e.extensionElements.values.find(function (e) {
            return 'camunda:Connector' === e.$type;
          });
          if (t) return { connector: t };
          var n = e.extensionElements.values.find(function (e) {
            return 'camunda:properties' === e.$type.toLowerCase();
          });
          if (n) {
            var r = (n.values || n.$children).find(function (e) {
              return 'service' === e.name;
            });
            if (r) return { name: r.value };
          }
        }
      },
      cloneContext: function (e) {
        return {
          rootHandler: { element: JSON.parse(JSON.stringify(e.rootHandler.element)) },
          elementsById: JSON.parse(JSON.stringify(e.elementsById)),
          references: JSON.parse(JSON.stringify(e.references)),
          warnings: e.warnings.slice(),
        };
      },
      getActivityErrorEventDefinition: function (e) {
        if (e && e.eventDefinitions)
          return e.eventDefinitions.find(function (e) {
            return 'bpmn:ErrorEventDefinition' === e.$type;
          });
      },
    };
    e.exports = r;
  },
  function (e, t, n) {
    'use strict';
    var r = {};
    (e.exports = function (e) {
      var t = r[e];
      if (!t) throw new Error('Unknown activity type '.concat(e));
      return t;
    }),
      (e.exports.isTask = function (e) {
        return !!e && /task$/i.test(e);
      }),
      (e.exports.Definition = r['bpmn:Definition'] = n(200)),
      (e.exports.Process = r['bpmn:Process'] = n(202)),
      (r['bpmn:SequenceFlow'] = n(494)),
      (r['bpmn:MessageFlow'] = n(496)),
      (r['bpmn:IntermediateCatchEvent'] = n(497)),
      (r['bpmn:BoundaryEvent'] = n(498)),
      (r['bpmn:ExclusiveGateway'] = n(499)),
      (r['bpmn:ParallelGateway'] = n(500)),
      (r['bpmn:InclusiveGateway'] = n(501)),
      (r['bpmn:ManualTask'] = n(502)),
      (r['bpmn:ReceiveTask'] = n(503)),
      (r['bpmn:SubProcess'] = n(504)),
      (r['bpmn:ScriptTask'] = n(505)),
      (r['bpmn:ServiceTask'] = n(506)),
      (r['bpmn:SendTask'] = n(507)),
      (r['bpmn:Task'] = n(508)),
      (r['bpmn:UserTask'] = n(509)),
      (r['bpmn:StartEvent'] = n(510)),
      (r['bpmn:EndEvent'] = n(511)),
      (r['bpmn:TimerEventDefinition'] = n(512)),
      (r['bpmn:ErrorEventDefinition'] = n(514)),
      (r['bpmn:MessageEventDefinition'] = n(515)),
      (r['bpmn:MultiInstanceLoopCharacteristics'] = n(516)),
      (r['bpmn:DataObjectReference'] = n(142)),
      (r['bpmn:DataObject'] = n(142)),
      (r['bpmn:DataStoreReference'] = n(142)),
      (e.exports.ActivityIO = r['camunda:inputOutput'] = n(517)),
      (e.exports.ActivityProperties = r['camunda:properties'] = n(518)),
      (e.exports.Form = r['camunda:formData'] = n(519)),
      (e.exports.ServiceConnector = r['camunda:Connector'] = n(520));
  },
  function (e, t, n) {
    var r = n(208),
      i = n(104),
      o = n(59),
      a = n(525),
      s = r(Object, 'keys'),
      u = s
        ? function (e) {
            var t = null == e ? void 0 : e.constructor;
            return ('function' == typeof t && t.prototype === e) || ('function' != typeof e && i(e))
              ? a(e)
              : o(e)
              ? s(e)
              : [];
          }
        : a;
    e.exports = u;
  },
  function (e, t) {
    function n(e) {
      return (n =
        '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;
            })(e);
    }
    e.exports = function (e) {
      return !!e && 'object' == n(e);
    };
  },
  function (e, t) {
    var n = 9007199254740991;
    e.exports = function (e) {
      return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= n;
    };
  },
  function (e, t, n) {
    'use strict';
    e.exports.parseName = function (e, t) {
      var n,
        r,
        i = e.split(/:/);
      if (1 === i.length) (n = e), (r = t);
      else {
        if (2 !== i.length) throw new Error('expected <prefix:localName> or <localName>, got ' + e);
        (n = i[1]), (r = i[0]);
      }
      return { name: (e = (r ? r + ':' : '') + n), prefix: r, localName: n };
    };
  },
  function (e, t, n) {
    var r = n(564),
      i = n(567)(r);
    e.exports = i;
  },
  function (e, t, n) {
    var r = n(19),
      i = n(6),
      o = n(46);
    e.exports = function (e) {
      return function (t, n, a) {
        var s,
          u = r(t),
          c = i(u.length),
          p = o(a, c);
        if (e && n != n) {
          for (; c > p; ) if ((s = u[p++]) != s) return !0;
        } else for (; c > p; p++) if ((e || p in u) && u[p] === n) return e || p || 0;
        return !e && -1;
      };
    };
  },
  function (e, t) {
    t.f = Object.getOwnPropertySymbols;
  },
  function (e, t, n) {
    var r = n(24);
    e.exports =
      Array.isArray ||
      function (e) {
        return 'Array' == r(e);
      };
  },
  function (e, t, n) {
    var r = n(25),
      i = n(29);
    e.exports = function (e) {
      return function (t, n) {
        var o,
          a,
          s = String(i(t)),
          u = r(n),
          c = s.length;
        return u < 0 || u >= c
          ? e
            ? ''
            : void 0
          : (o = s.charCodeAt(u)) < 55296 ||
            o > 56319 ||
            u + 1 === c ||
            (a = s.charCodeAt(u + 1)) < 56320 ||
            a > 57343
          ? e
            ? s.charAt(u)
            : o
          : e
          ? s.slice(u, u + 2)
          : a - 56320 + ((o - 55296) << 10) + 65536;
      };
    };
  },
  function (e, t, n) {
    var r = n(4),
      i = n(24),
      o = n(5)('match');
    e.exports = function (e) {
      var t;
      return r(e) && (void 0 !== (t = e[o]) ? !!t : 'RegExp' == i(e));
    };
  },
  function (e, t, n) {
    var r = n(5)('iterator'),
      i = !1;
    try {
      var o = [7][r]();
      (o.return = function () {
        i = !0;
      }),
        Array.from(o, function () {
          throw 2;
        });
    } catch (e) {}
    e.exports = function (e, t) {
      if (!t && !i) return !1;
      var n = !1;
      try {
        var o = [7],
          a = o[r]();
        (a.next = function () {
          return { done: (n = !0) };
        }),
          (o[r] = function () {
            return a;
          }),
          e(o);
      } catch (e) {}
      return n;
    };
  },
  function (e, t, n) {
    'use strict';
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(61),
      o = RegExp.prototype.exec;
    e.exports = function (e, t) {
      var n = e.exec;
      if ('function' == typeof n) {
        var a = n.call(e, t);
        if ('object' !== r(a))
          throw new TypeError('RegExp exec method returned something other than an Object or null');
        return a;
      }
      if ('RegExp' !== i(e)) throw new TypeError('RegExp#exec called on incompatible receiver');
      return o.call(e, t);
    };
  },
  function (e, t, n) {
    'use strict';
    n(170);
    var r = n(14),
      i = n(13),
      o = n(3),
      a = n(29),
      s = n(5),
      u = n(130),
      c = s('species'),
      p = !o(function () {
        var e = /./;
        return (
          (e.exec = function () {
            var e = [];
            return (e.groups = { a: '7' }), e;
          }),
          '7' !== ''.replace(e, '$<a>')
        );
      }),
      f = (function () {
        var e = /(?:)/,
          t = e.exec;
        e.exec = function () {
          return t.apply(this, arguments);
        };
        var n = 'ab'.split(e);
        return 2 === n.length && 'a' === n[0] && 'b' === n[1];
      })();
    e.exports = function (e, t, n) {
      var l = s(e),
        h = !o(function () {
          var t = {};
          return (
            (t[l] = function () {
              return 7;
            }),
            7 != ''[e](t)
          );
        }),
        d = h
          ? !o(function () {
              var t = !1,
                n = /a/;
              return (
                (n.exec = function () {
                  return (t = !0), null;
                }),
                'split' === e &&
                  ((n.constructor = {}),
                  (n.constructor[c] = function () {
                    return n;
                  })),
                n[l](''),
                !t
              );
            })
          : void 0;
      if (!h || !d || ('replace' === e && !p) || ('split' === e && !f)) {
        var m = /./[l],
          y = n(a, l, ''[e], function (e, t, n, r, i) {
            return t.exec === u
              ? h && !i
                ? { done: !0, value: m.call(t, n, r) }
                : { done: !0, value: e.call(n, t, r) }
              : { done: !1 };
          }),
          v = y[0],
          g = y[1];
        r(String.prototype, e, v),
          i(
            RegExp.prototype,
            l,
            2 == t
              ? function (e, t) {
                  return g.call(e, this, t);
                }
              : function (e) {
                  return g.call(e, this);
                },
          );
      }
    };
  },
  function (e, t, n) {
    var r = n(2).navigator;
    e.exports = (r && r.userAgent) || '';
  },
  function (e, t, n) {
    'use strict';
    var r = n(2),
      i = n(0),
      o = n(14),
      a = n(52),
      s = n(35),
      u = n(51),
      c = n(50),
      p = n(4),
      f = n(3),
      l = n(87),
      h = n(60),
      d = n(116);
    e.exports = function (e, t, n, m, y, v) {
      var g = r[e],
        b = g,
        w = y ? 'set' : 'add',
        x = b && b.prototype,
        E = {},
        S = function (e) {
          var t = x[e];
          o(
            x,
            e,
            'delete' == e
              ? function (e) {
                  return !(v && !p(e)) && t.call(this, 0 === e ? 0 : e);
                }
              : 'has' == e
              ? function (e) {
                  return !(v && !p(e)) && t.call(this, 0 === e ? 0 : e);
                }
              : 'get' == e
              ? function (e) {
                  return v && !p(e) ? void 0 : t.call(this, 0 === e ? 0 : e);
                }
              : 'add' == e
              ? function (e) {
                  return t.call(this, 0 === e ? 0 : e), this;
                }
              : function (e, n) {
                  return t.call(this, 0 === e ? 0 : e, n), this;
                },
          );
        };
      if (
        'function' == typeof b &&
        (v ||
          (x.forEach &&
            !f(function () {
              new b().entries().next();
            })))
      ) {
        var A = new b(),
          R = A[w](v ? {} : -0, 1) != A,
          C = f(function () {
            A.has(1);
          }),
          _ = l(function (e) {
            new b(e);
          }),
          O =
            !v &&
            f(function () {
              for (var e = new b(), t = 5; t--; ) e[w](t, t);
              return !e.has(-0);
            });
        _ ||
          (((b = t(function (t, n) {
            c(t, b, e);
            var r = d(new g(), t, b);
            return null != n && u(n, y, r[w], r), r;
          })).prototype = x),
          (x.constructor = b)),
          (C || O) && (S('delete'), S('has'), y && S('get')),
          (O || R) && S(w),
          v && x.clear && delete x.clear;
      } else (b = m.getConstructor(t, e, y, w)), a(b.prototype, n), (s.NEED = !0);
      return h(b, e), (E[e] = b), i(i.G + i.W + i.F * (b != g), E), v || m.setStrong(b, e, y), b;
    };
  },
  function (e, t, n) {
    for (
      var r,
        i = n(2),
        o = n(13),
        a = n(44),
        s = a('typed_array'),
        u = a('view'),
        c = !(!i.ArrayBuffer || !i.DataView),
        p = c,
        f = 0,
        l =
          'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'.split(
            ',',
          );
      f < 9;

    )
      (r = i[l[f++]]) ? (o(r.prototype, s, !0), o(r.prototype, u, !0)) : (p = !1);
    e.exports = { ABV: c, CONSTR: p, TYPED: s, VIEW: u };
  },
  function (e, t, n) {
    'use strict';
    e.exports =
      n(34) ||
      !n(3)(function () {
        var e = Math.random();
        __defineSetter__.call(null, e, function () {}), delete n(2)[e];
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0);
    e.exports = function (e) {
      r(r.S, e, {
        of: function () {
          for (var e = arguments.length, t = new Array(e); e--; ) t[e] = arguments[e];
          return new this(t);
        },
      });
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(12),
      o = n(23),
      a = n(51);
    e.exports = function (e) {
      r(r.S, e, {
        from: function (e) {
          var t,
            n,
            r,
            s,
            u = arguments[1];
          return (
            i(this),
            (t = void 0 !== u) && i(u),
            null == e
              ? new this()
              : ((n = []),
                t
                  ? ((r = 0),
                    (s = o(u, arguments[2], 2)),
                    a(e, !1, function (e) {
                      n.push(s(e, r++));
                    }))
                  : a(e, !1, n.push, n),
                new this(n))
          );
        },
      });
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return (
        e.webpackPolyfill ||
          ((e.deprecate = function () {}),
          (e.paths = []),
          e.children || (e.children = []),
          Object.defineProperty(e, 'loaded', {
            enumerable: !0,
            get: function () {
              return e.l;
            },
          }),
          Object.defineProperty(e, 'id', {
            enumerable: !0,
            get: function () {
              return e.i;
            },
          }),
          (e.webpackPolyfill = 1)),
        e
      );
    };
  },
  function (e, t, n) {
    'use strict';
    (function (t) {
      void 0 === t ||
      !t.version ||
      0 === t.version.indexOf('v0.') ||
      (0 === t.version.indexOf('v1.') && 0 !== t.version.indexOf('v1.8.'))
        ? (e.exports = {
            nextTick: function (e, n, r, i) {
              if ('function' != typeof e)
                throw new TypeError('"callback" argument must be a function');
              var o,
                a,
                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, i);
                  });
                default:
                  for (o = new Array(s - 1), a = 0; a < o.length; ) o[a++] = arguments[a];
                  return t.nextTick(function () {
                    e.apply(null, o);
                  });
              }
            },
          })
        : (e.exports = t);
    }.call(this, n(16)));
  },
  function (e, t, n) {
    var r = n(38),
      i = r.Buffer;
    function o(e, t) {
      for (var n in e) t[n] = e[n];
    }
    function a(e, t, n) {
      return i(e, t, n);
    }
    i.from && i.alloc && i.allocUnsafe && i.allocUnsafeSlow
      ? (e.exports = r)
      : (o(r, t), (t.Buffer = a)),
      o(i, a),
      (a.from = function (e, t, n) {
        if ('number' == typeof e) throw new TypeError('Argument must not be a number');
        return i(e, t, n);
      }),
      (a.alloc = function (e, t, n) {
        if ('number' != typeof e) throw new TypeError('Argument must be a number');
        var r = i(e);
        return void 0 !== t ? ('string' == typeof n ? r.fill(t, n) : r.fill(t)) : r.fill(0), r;
      }),
      (a.allocUnsafe = function (e) {
        if ('number' != typeof e) throw new TypeError('Argument must be a number');
        return i(e);
      }),
      (a.allocUnsafeSlow = function (e) {
        if ('number' != typeof e) throw new TypeError('Argument must be a number');
        return r.SlowBuffer(e);
      });
  },
  function (e, t, n) {
    (function (e) {
      var r = (void 0 !== e && e) || ('undefined' != typeof self && self) || window,
        i = Function.prototype.apply;
      function o(e, t) {
        (this._id = e), (this._clearFn = t);
      }
      (t.setTimeout = function () {
        return new o(i.call(setTimeout, r, arguments), clearTimeout);
      }),
        (t.setInterval = function () {
          return new o(i.call(setInterval, r, arguments), clearInterval);
        }),
        (t.clearTimeout = t.clearInterval =
          function (e) {
            e && e.close();
          }),
        (o.prototype.unref = o.prototype.ref = function () {}),
        (o.prototype.close = function () {
          this._clearFn.call(r, 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(450),
        (t.setImmediate =
          ('undefined' != typeof self && self.setImmediate) ||
          (void 0 !== e && e.setImmediate) ||
          (this && this.setImmediate)),
        (t.clearImmediate =
          ('undefined' != typeof self && self.clearImmediate) ||
          (void 0 !== e && e.clearImmediate) ||
          (this && this.clearImmediate));
    }.call(this, n(11)));
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o,
      a = n(8).http(),
      s = n(8).discovery(),
      u = n(475),
      c = {
        db: n(101),
        start: function (e) {
          u(e);
        },
        discover:
          ((o = i(
            regeneratorRuntime.mark(function e(t) {
              return regeneratorRuntime.wrap(function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return e.abrupt(
                        'return',
                        new Promise(
                          (function () {
                            var e = i(
                              regeneratorRuntime.mark(function e(n) {
                                var r, o;
                                return regeneratorRuntime.wrap(function (e) {
                                  for (;;)
                                    switch ((e.prev = e.next)) {
                                      case 0:
                                        return (e.next = 2), s.discover();
                                      case 2:
                                        (r = e.sent),
                                          (o = function () {
                                            setTimeout(
                                              i(
                                                regeneratorRuntime.mark(function e() {
                                                  return regeneratorRuntime.wrap(function (e) {
                                                    for (;;)
                                                      switch ((e.prev = e.next)) {
                                                        case 0:
                                                          return (
                                                            (e.t0 = n), (e.next = 3), c.discover(t)
                                                          );
                                                        case 3:
                                                          (e.t1 = e.sent), (0, e.t0)(e.t1);
                                                        case 5:
                                                        case 'end':
                                                          return e.stop();
                                                      }
                                                  }, e);
                                                }),
                                              ),
                                              2500,
                                            );
                                          }),
                                          0 === r.length
                                            ? o()
                                            : (function () {
                                                for (var e = !1, i = 0; i < r.length; i++)
                                                  !(function (r) {
                                                    a.request(
                                                      'http://'
                                                        .concat(r.ip, ':')
                                                        .concat(r.port, '/capabilities/'),
                                                      function (i, o, a) {
                                                        if (i || 200 !== o.statusCode || !a)
                                                          console.log(i, o, a);
                                                        else {
                                                          if (
                                                            t.every(function (e) {
                                                              return a.includes(e);
                                                            })
                                                          )
                                                            return (
                                                              console.log(e),
                                                              void (
                                                                e ||
                                                                (console.log(r),
                                                                n({ ip: r.ip, port: r.port }),
                                                                (e = !0))
                                                              )
                                                            );
                                                          console.log(t, a);
                                                        }
                                                      },
                                                    );
                                                  })(r[i]);
                                                setTimeout(function () {
                                                  e || o();
                                                }, 5e3);
                                              })();
                                      case 5:
                                      case 'end':
                                        return e.stop();
                                    }
                                }, e);
                              }),
                            );
                            return function (t) {
                              return e.apply(this, arguments);
                            };
                          })(),
                        ),
                      );
                    case 1:
                    case 'end':
                      return e.stop();
                  }
              }, e);
            }),
          )),
          function (e) {
            return o.apply(this, arguments);
          }),
      };
    e.exports = c;
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o,
      a,
      s,
      u,
      c,
      p,
      f,
      l,
      h,
      d,
      m = n(8).data(),
      y = 'process_';
    e.exports = {
      isProcessExisting:
        ((d = i(
          regeneratorRuntime.mark(function e(t) {
            return regeneratorRuntime.wrap(function (e) {
              for (;;)
                switch ((e.prev = e.next)) {
                  case 0:
                    return (e.next = 2), m.read('processes/'.concat(t));
                  case 2:
                    if (null !== e.sent) {
                      e.next = 5;
                      break;
                    }
                    return e.abrupt('return', !1);
                  case 5:
                    return e.abrupt('return', !0);
                  case 6:
                  case 'end':
                    return e.stop();
                }
            }, e);
          }),
        )),
        function (e) {
          return d.apply(this, arguments);
        }),
      saveProcessDefinition:
        ((h = i(
          regeneratorRuntime.mark(function e(t, n) {
            return regeneratorRuntime.wrap(function (e) {
              for (;;)
                switch ((e.prev = e.next)) {
                  case 0:
                    return (e.next = 2), m.write(''.concat(y + t, '/bpmn'), n);
                  case 2:
                    return (e.next = 4), m.write('processes/'.concat(t), ''.concat(y + t));
                  case 4:
                  case 'end':
                    return e.stop();
                }
            }, e);
          }),
        )),
        function (e, t) {
          return h.apply(this, arguments);
        }),
      getAllProcesses:
        ((l = i(
          regeneratorRuntime.mark(function e() {
            var t;
            return regeneratorRuntime.wrap(function (e) {
              for (;;)
                switch ((e.prev = e.next)) {
                  case 0:
                    return (e.next = 2), m.read('processes');
                  case 2:
                    return (t = e.sent), e.abrupt('return', t || {});
                  case 4:
                  case 'end':
                    return e.stop();
                }
            }, e);
          }),
        )),
        function () {
          return l.apply(this, arguments);
        }),
      getProcess:
        ((f = i(
          regeneratorRuntime.mark(function e(t) {
            var n;
            return regeneratorRuntime.wrap(
              function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return (e.next = 2), this.isProcessExisting(t);
                    case 2:
                      if (e.sent) {
                        e.next = 4;
                        break;
                      }
                      throw new Error('Process with given ID does not exist!');
                    case 4:
                      return (e.next = 6), m.read(''.concat(y + t, '/bpmn'));
                    case 6:
                      return (n = e.sent), e.abrupt('return', n);
                    case 8:
                    case 'end':
                      return e.stop();
                  }
              },
              e,
              this,
            );
          }),
        )),
        function (e) {
          return f.apply(this, arguments);
        }),
      deleteProcess:
        ((p = i(
          regeneratorRuntime.mark(function e(t) {
            return regeneratorRuntime.wrap(function (e) {
              for (;;)
                switch ((e.prev = e.next)) {
                  case 0:
                    return (e.next = 2), m.delete(y + t);
                  case 2:
                    return (e.next = 4), m.delete('processes/'.concat(t));
                  case 4:
                  case 'end':
                    return e.stop();
                }
            }, e);
          }),
        )),
        function (e) {
          return p.apply(this, arguments);
        }),
      saveHTMLString:
        ((c = i(
          regeneratorRuntime.mark(function e(t, n, r) {
            return regeneratorRuntime.wrap(
              function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return (e.next = 2), this.isProcessExisting(t);
                    case 2:
                      if (e.sent) {
                        e.next = 4;
                        break;
                      }
                      throw new Error('Process with given ID does not exist!');
                    case 4:
                      if (r) {
                        e.next = 6;
                        break;
                      }
                      throw new Error('HTML content must not be empty!');
                    case 6:
                      return (e.next = 8), m.write(''.concat(y + t, '/html_').concat(n), r);
                    case 8:
                    case 'end':
                      return e.stop();
                  }
              },
              e,
              this,
            );
          }),
        )),
        function (e, t, n) {
          return c.apply(this, arguments);
        }),
      getHTML:
        ((u = i(
          regeneratorRuntime.mark(function e(t, n) {
            var r;
            return regeneratorRuntime.wrap(
              function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return (e.next = 2), this.isProcessExisting(t);
                    case 2:
                      if (e.sent) {
                        e.next = 4;
                        break;
                      }
                      throw new Error('Process with given ID does not exist!');
                    case 4:
                      return (e.next = 6), m.read(''.concat(y + t, '/html_').concat(n));
                    case 6:
                      return (r = e.sent), e.abrupt('return', r);
                    case 8:
                    case 'end':
                      return e.stop();
                  }
              },
              e,
              this,
            );
          }),
        )),
        function (e, t) {
          return u.apply(this, arguments);
        }),
      getAllHTML:
        ((s = i(
          regeneratorRuntime.mark(function e(t) {
            var n, r;
            return regeneratorRuntime.wrap(
              function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return (e.next = 2), this.isProcessExisting(t);
                    case 2:
                      if (e.sent) {
                        e.next = 4;
                        break;
                      }
                      throw new Error('Process with given ID does not exist!');
                    case 4:
                      return (e.next = 6), m.read(''.concat(y + t));
                    case 6:
                      return (
                        (n = e.sent),
                        (r = Object.keys(n)
                          .filter(function (e) {
                            return e.startsWith('html_');
                          })
                          .map(function (e) {
                            return e.substring(5, e.length);
                          })),
                        e.abrupt('return', r)
                      );
                    case 9:
                    case 'end':
                      return e.stop();
                  }
              },
              e,
              this,
            );
          }),
        )),
        function (e) {
          return s.apply(this, arguments);
        }),
      getNextDeviceForProcessWithId:
        ((a = i(
          regeneratorRuntime.mark(function e(t) {
            var n;
            return regeneratorRuntime.wrap(
              function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return (e.next = 2), this.isProcessExisting(t);
                    case 2:
                      if (e.sent) {
                        e.next = 4;
                        break;
                      }
                      throw new Error('Process with given ID does not exist!');
                    case 4:
                      return (e.next = 6), m.read(''.concat(y + t, '/nextDevice'));
                    case 6:
                      return (n = e.sent), e.abrupt('return', n);
                    case 8:
                    case 'end':
                      return e.stop();
                  }
              },
              e,
              this,
            );
          }),
        )),
        function (e) {
          return a.apply(this, arguments);
        }),
      saveNextDeviceString:
        ((o = i(
          regeneratorRuntime.mark(function e(t, n) {
            return regeneratorRuntime.wrap(
              function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return (e.next = 2), this.isProcessExisting(t);
                    case 2:
                      if (e.sent) {
                        e.next = 4;
                        break;
                      }
                      throw new Error('Process with given ID does not exist!');
                    case 4:
                      if (n && 'string' == typeof n) {
                        e.next = 6;
                        break;
                      }
                      throw new Error('Next device info is empty!');
                    case 6:
                      return (e.next = 8), m.write(''.concat(y + t, '/nextDevice'), n);
                    case 8:
                    case 'end':
                      return e.stop();
                  }
              },
              e,
              this,
            );
          }),
        )),
        function (e, t) {
          return o.apply(this, arguments);
        }),
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(495),
      i = {
        isJavascript: function (e) {
          return !!e && /^javascript$/i.test(e);
        },
        parse: function (e, t) {
          return new r.Script(t, { filename: e, displayErrors: !0 });
        },
        execute: function (e, t, n, i) {
          var o;
          'function' == typeof n ? ((i = n), (o = {})) : (o = n);
          var a = Object.assign({}, o);
          t && ((a.variables = t.variables), (a.services = t.services)),
            i &&
              (a.next = function (e, t) {
                if (e) return i(new Error(e.message), t);
                i(null, t);
              });
          var s = new r.createContext(a);
          return e.runInContext(s);
        },
      };
    e.exports = i;
  },
  function (e, t, n) {
    var r = n(523),
      i = n(527),
      o = n(529)(function (e, t, n) {
        return n ? r(e, t, n) : i(e, t);
      });
    e.exports = o;
  },
  function (e, t, n) {
    var r = n(210),
      i = n(65);
    e.exports = function (e) {
      return null != e && i(r(e));
    };
  },
  function (e, t, n) {
    var r = n(534),
      i = n(535),
      o = n(543)(r, i);
    e.exports = o;
  },
  function (e, t, n) {
    var r = n(219),
      i = n(79);
    e.exports = function (e) {
      return null != e && i(r(e));
    };
  },
  function (e, t, n) {
    var r = n(218),
      i = n(79),
      o = n(78),
      a = Object.prototype.toString,
      s =
        r(Array, 'isArray') ||
        function (e) {
          return o(e) && i(e.length) && '[object Array]' == a.call(e);
        };
    e.exports = s;
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(569),
      o = n(579),
      a = n(144),
      s = n(213),
      u = n(583);
    e.exports = function (e, t, n) {
      var c = r(e);
      return 'function' == c
        ? void 0 === t
          ? e
          : a(e, t, n)
        : null == e
        ? s
        : 'object' == c
        ? i(e)
        : void 0 === t
        ? u(e)
        : o(e, t);
    };
  },
  function (e, t, n) {
    var r = n(4),
      i = n(2).document,
      o = r(i) && r(i.createElement);
    e.exports = function (e) {
      return o ? i.createElement(e) : {};
    };
  },
  function (e, t, n) {
    var r = n(2),
      i = n(22),
      o = n(34),
      a = n(152),
      s = n(9).f;
    e.exports = function (e) {
      var t = i.Symbol || (i.Symbol = o ? {} : r.Symbol || {});
      '_' == e.charAt(0) || e in t || s(t, e, { value: a.f(e) });
    };
  },
  function (e, t, n) {
    var r = n(67)('keys'),
      i = n(44);
    e.exports = function (e) {
      return r[e] || (r[e] = i(e));
    };
  },
  function (e, t) {
    e.exports =
      'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(
        ',',
      );
  },
  function (e, t, n) {
    var r = n(2).document;
    e.exports = r && r.documentElement;
  },
  function (e, t, n) {
    var r = n(4),
      i = n(1),
      o = function (e, t) {
        if ((i(e), !r(t) && null !== t)) throw TypeError(t + ": can't set as prototype!");
      };
    e.exports = {
      set:
        Object.setPrototypeOf ||
        ('__proto__' in {}
          ? (function (e, t, r) {
              try {
                (r = n(23)(Function.call, n(20).f(Object.prototype, '__proto__').set, 2))(e, []),
                  (t = !(e instanceof Array));
              } catch (e) {
                t = !0;
              }
              return function (e, n) {
                return o(e, n), t ? (e.__proto__ = n) : r(e, n), e;
              };
            })({}, !1)
          : void 0),
      check: o,
    };
  },
  function (e, t) {
    e.exports = '\t\n\v\f\r   ᠎              \u2028\u2029\ufeff';
  },
  function (e, t, n) {
    var r = n(4),
      i = n(114).set;
    e.exports = function (e, t, n) {
      var o,
        a = t.constructor;
      return (
        a !== n &&
          'function' == typeof a &&
          (o = a.prototype) !== n.prototype &&
          r(o) &&
          i &&
          i(e, o),
        e
      );
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(25),
      i = n(29);
    e.exports = function (e) {
      var t = String(i(this)),
        n = '',
        o = r(e);
      if (o < 0 || o == 1 / 0) throw RangeError("Count can't be negative");
      for (; o > 0; (o >>>= 1) && (t += t)) 1 & o && (n += t);
      return n;
    };
  },
  function (e, t) {
    e.exports =
      Math.sign ||
      function (e) {
        return 0 == (e = +e) || e != e ? e : e < 0 ? -1 : 1;
      };
  },
  function (e, t) {
    var n = Math.expm1;
    e.exports =
      !n || n(10) > 22025.465794806718 || n(10) < 22025.465794806718 || -2e-17 != n(-2e-17)
        ? function (e) {
            return 0 == (e = +e) ? e : e > -1e-6 && e < 1e-6 ? e + (e * e) / 2 : Math.exp(e) - 1;
          }
        : n;
  },
  function (e, t, n) {
    'use strict';
    var r = n(34),
      i = n(0),
      o = n(14),
      a = n(13),
      s = n(63),
      u = n(121),
      c = n(60),
      p = n(21),
      f = n(5)('iterator'),
      l = !([].keys && 'next' in [].keys()),
      h = function () {
        return this;
      };
    e.exports = function (e, t, n, d, m, y, v) {
      u(n, t, d);
      var g,
        b,
        w,
        x = function (e) {
          if (!l && e in R) return R[e];
          switch (e) {
            case 'keys':
            case 'values':
              return function () {
                return new n(this, e);
              };
          }
          return function () {
            return new n(this, e);
          };
        },
        E = t + ' Iterator',
        S = 'values' == m,
        A = !1,
        R = e.prototype,
        C = R[f] || R['@@iterator'] || (m && R[m]),
        _ = C || x(m),
        O = m ? (S ? x('entries') : _) : void 0,
        T = ('Array' == t && R.entries) || C;
      if (
        (T &&
          (w = p(T.call(new e()))) !== Object.prototype &&
          w.next &&
          (c(w, E, !0), r || 'function' == typeof w[f] || a(w, f, h)),
        S &&
          C &&
          'values' !== C.name &&
          ((A = !0),
          (_ = function () {
            return C.call(this);
          })),
        (r && !v) || (!l && !A && R[f]) || a(R, f, _),
        (s[t] = _),
        (s[E] = h),
        m)
      )
        if (((g = { values: S ? _ : x('values'), keys: y ? _ : x('keys'), entries: O }), v))
          for (b in g) b in R || o(R, b, g[b]);
        else i(i.P + i.F * (l || A), t, g);
      return g;
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(47),
      i = n(43),
      o = n(60),
      a = {};
    n(13)(a, n(5)('iterator'), function () {
      return this;
    }),
      (e.exports = function (e, t, n) {
        (e.prototype = r(a, { next: i(1, n) })), o(e, t + ' Iterator');
      });
  },
  function (e, t, n) {
    var r = n(86),
      i = n(29);
    e.exports = function (e, t, n) {
      if (r(t)) throw TypeError('String#' + n + " doesn't accept regex!");
      return String(i(e));
    };
  },
  function (e, t, n) {
    var r = n(5)('match');
    e.exports = function (e) {
      var t = /./;
      try {
        '/./'[e](t);
      } catch (n) {
        try {
          return (t[r] = !1), !'/./'[e](t);
        } catch (e) {}
      }
      return !0;
    };
  },
  function (e, t, n) {
    var r = n(63),
      i = n(5)('iterator'),
      o = Array.prototype;
    e.exports = function (e) {
      return void 0 !== e && (r.Array === e || o[i] === e);
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(9),
      i = n(43);
    e.exports = function (e, t, n) {
      t in e ? r.f(e, t, i(0, n)) : (e[t] = n);
    };
  },
  function (e, t, n) {
    var r = n(61),
      i = n(5)('iterator'),
      o = n(63);
    e.exports = n(22).getIteratorMethod = function (e) {
      if (null != e) return e[i] || e['@@iterator'] || o[r(e)];
    };
  },
  function (e, t, n) {
    var r = n(328);
    e.exports = function (e, t) {
      return new (r(e))(t);
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(10),
      i = n(46),
      o = n(6);
    e.exports = function (e) {
      for (
        var t = r(this),
          n = o(t.length),
          a = arguments.length,
          s = i(a > 1 ? arguments[1] : void 0, n),
          u = a > 2 ? arguments[2] : void 0,
          c = void 0 === u ? n : i(u, n);
        c > s;

      )
        t[s++] = e;
      return t;
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(36),
      i = n(169),
      o = n(63),
      a = n(19);
    (e.exports = n(120)(
      Array,
      'Array',
      function (e, t) {
        (this._t = a(e)), (this._i = 0), (this._k = t);
      },
      function () {
        var e = this._t,
          t = this._k,
          n = this._i++;
        return !e || n >= e.length
          ? ((this._t = void 0), i(1))
          : i(0, 'keys' == t ? n : 'values' == t ? e[n] : [n, e[n]]);
      },
      'values',
    )),
      (o.Arguments = o.Array),
      r('keys'),
      r('values'),
      r('entries');
  },
  function (e, t, n) {
    'use strict';
    var r,
      i,
      o = n(70),
      a = RegExp.prototype.exec,
      s = String.prototype.replace,
      u = a,
      c =
        ((r = /a/),
        (i = /b*/g),
        a.call(r, 'a'),
        a.call(i, 'a'),
        0 !== r.lastIndex || 0 !== i.lastIndex),
      p = void 0 !== /()??/.exec('')[1];
    (c || p) &&
      (u = function (e) {
        var t,
          n,
          r,
          i,
          u = this;
        return (
          p && (n = new RegExp('^' + u.source + '$(?!\\s)', o.call(u))),
          c && (t = u.lastIndex),
          (r = a.call(u, e)),
          c && r && (u.lastIndex = u.global ? r.index + r[0].length : t),
          p &&
            r &&
            r.length > 1 &&
            s.call(r[0], n, function () {
              for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (r[i] = void 0);
            }),
          r
        );
      }),
      (e.exports = u);
  },
  function (e, t, n) {
    'use strict';
    var r = n(85)(!0);
    e.exports = function (e, t, n) {
      return t + (n ? r(e, t).length : 1);
    };
  },
  function (e, t, n) {
    var r,
      i,
      o,
      a = n(23),
      s = n(159),
      u = n(113),
      c = n(109),
      p = n(2),
      f = p.process,
      l = p.setImmediate,
      h = p.clearImmediate,
      d = p.MessageChannel,
      m = p.Dispatch,
      y = 0,
      v = {},
      g = function () {
        var e = +this;
        if (v.hasOwnProperty(e)) {
          var t = v[e];
          delete v[e], t();
        }
      },
      b = function (e) {
        g.call(e.data);
      };
    (l && h) ||
      ((l = function (e) {
        for (var t = [], n = 1; arguments.length > n; ) t.push(arguments[n++]);
        return (
          (v[++y] = function () {
            s('function' == typeof e ? e : Function(e), t);
          }),
          r(y),
          y
        );
      }),
      (h = function (e) {
        delete v[e];
      }),
      'process' == n(24)(f)
        ? (r = function (e) {
            f.nextTick(a(g, e, 1));
          })
        : m && m.now
        ? (r = function (e) {
            m.now(a(g, e, 1));
          })
        : d
        ? ((o = (i = new d()).port2), (i.port1.onmessage = b), (r = a(o.postMessage, o, 1)))
        : p.addEventListener && 'function' == typeof postMessage && !p.importScripts
        ? ((r = function (e) {
            p.postMessage(e + '', '*');
          }),
          p.addEventListener('message', b, !1))
        : (r =
            'onreadystatechange' in c('script')
              ? function (e) {
                  u.appendChild(c('script')).onreadystatechange = function () {
                    u.removeChild(this), g.call(e);
                  };
                }
              : function (e) {
                  setTimeout(a(g, e, 1), 0);
                })),
      (e.exports = { set: l, clear: h });
  },
  function (e, t, n) {
    var r = n(2),
      i = n(132).set,
      o = r.MutationObserver || r.WebKitMutationObserver,
      a = r.process,
      s = r.Promise,
      u = 'process' == n(24)(a);
    e.exports = function () {
      var e,
        t,
        n,
        c = function () {
          var r, i;
          for (u && (r = a.domain) && r.exit(); e; ) {
            (i = e.fn), (e = e.next);
            try {
              i();
            } catch (r) {
              throw (e ? n() : (t = void 0), r);
            }
          }
          (t = void 0), r && r.enter();
        };
      if (u)
        n = function () {
          a.nextTick(c);
        };
      else if (!o || (r.navigator && r.navigator.standalone))
        if (s && s.resolve) {
          var p = s.resolve(void 0);
          n = function () {
            p.then(c);
          };
        } else
          n = function () {
            i.call(r, c);
          };
      else {
        var f = !0,
          l = document.createTextNode('');
        new o(c).observe(l, { characterData: !0 }),
          (n = function () {
            l.data = f = !f;
          });
      }
      return function (r) {
        var i = { fn: r, next: void 0 };
        t && (t.next = i), e || ((e = i), n()), (t = i);
      };
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(12);
    function i(e) {
      var t, n;
      (this.promise = new e(function (e, r) {
        if (void 0 !== t || void 0 !== n) throw TypeError('Bad Promise constructor');
        (t = e), (n = r);
      })),
        (this.resolve = r(t)),
        (this.reject = r(n));
    }
    e.exports.f = function (e) {
      return new i(e);
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(2),
      i = n(7),
      o = n(34),
      a = n(92),
      s = n(13),
      u = n(52),
      c = n(3),
      p = n(50),
      f = n(25),
      l = n(6),
      h = n(179),
      d = n(48).f,
      m = n(9).f,
      y = n(128),
      v = n(60),
      g = 'prototype',
      b = 'Wrong index!',
      w = r.ArrayBuffer,
      x = r.DataView,
      E = r.Math,
      S = r.RangeError,
      A = r.Infinity,
      R = w,
      C = E.abs,
      _ = E.pow,
      O = E.floor,
      T = E.log,
      P = E.LN2,
      k = i ? '_b' : 'buffer',
      I = i ? '_l' : 'byteLength',
      N = i ? '_o' : 'byteOffset';
    function M(e, t, n) {
      var r,
        i,
        o,
        a = new Array(n),
        s = 8 * n - t - 1,
        u = (1 << s) - 1,
        c = u >> 1,
        p = 23 === t ? _(2, -24) - _(2, -77) : 0,
        f = 0,
        l = e < 0 || (0 === e && 1 / e < 0) ? 1 : 0;
      for (
        (e = C(e)) != e || e === A
          ? ((i = e != e ? 1 : 0), (r = u))
          : ((r = O(T(e) / P)),
            e * (o = _(2, -r)) < 1 && (r--, (o *= 2)),
            (e += r + c >= 1 ? p / o : p * _(2, 1 - c)) * o >= 2 && (r++, (o /= 2)),
            r + c >= u
              ? ((i = 0), (r = u))
              : r + c >= 1
              ? ((i = (e * o - 1) * _(2, t)), (r += c))
              : ((i = e * _(2, c - 1) * _(2, t)), (r = 0)));
        t >= 8;
        a[f++] = 255 & i, i /= 256, t -= 8
      );
      for (r = (r << t) | i, s += t; s > 0; a[f++] = 255 & r, r /= 256, s -= 8);
      return (a[--f] |= 128 * l), a;
    }
    function D(e, t, n) {
      var r,
        i = 8 * n - t - 1,
        o = (1 << i) - 1,
        a = o >> 1,
        s = i - 7,
        u = n - 1,
        c = e[u--],
        p = 127 & c;
      for (c >>= 7; s > 0; p = 256 * p + e[u], u--, s -= 8);
      for (r = p & ((1 << -s) - 1), p >>= -s, s += t; s > 0; r = 256 * r + e[u], u--, s -= 8);
      if (0 === p) p = 1 - a;
      else {
        if (p === o) return r ? NaN : c ? -A : A;
        (r += _(2, t)), (p -= a);
      }
      return (c ? -1 : 1) * r * _(2, p - t);
    }
    function j(e) {
      return (e[3] << 24) | (e[2] << 16) | (e[1] << 8) | e[0];
    }
    function L(e) {
      return [255 & e];
    }
    function B(e) {
      return [255 & e, (e >> 8) & 255];
    }
    function F(e) {
      return [255 & e, (e >> 8) & 255, (e >> 16) & 255, (e >> 24) & 255];
    }
    function U(e) {
      return M(e, 52, 8);
    }
    function V(e) {
      return M(e, 23, 4);
    }
    function q(e, t, n) {
      m(e[g], t, {
        get: function () {
          return this[n];
        },
      });
    }
    function z(e, t, n, r) {
      var i = h(+n);
      if (i + t > e[I]) throw S(b);
      var o = e[k]._b,
        a = i + e[N],
        s = o.slice(a, a + t);
      return r ? s : s.reverse();
    }
    function $(e, t, n, r, i, o) {
      var a = h(+n);
      if (a + t > e[I]) throw S(b);
      for (var s = e[k]._b, u = a + e[N], c = r(+i), p = 0; p < t; p++)
        s[u + p] = c[o ? p : t - p - 1];
    }
    if (a.ABV) {
      if (
        !c(function () {
          w(1);
        }) ||
        !c(function () {
          new w(-1);
        }) ||
        c(function () {
          return new w(), new w(1.5), new w(NaN), 'ArrayBuffer' != w.name;
        })
      ) {
        for (
          var G,
            W = ((w = function (e) {
              return p(this, w), new R(h(e));
            })[g] = R[g]),
            H = d(R),
            Y = 0;
          H.length > Y;

        )
          (G = H[Y++]) in w || s(w, G, R[G]);
        o || (W.constructor = w);
      }
      var J = new x(new w(2)),
        K = x[g].setInt8;
      J.setInt8(0, 2147483648),
        J.setInt8(1, 2147483649),
        (!J.getInt8(0) && J.getInt8(1)) ||
          u(
            x[g],
            {
              setInt8: function (e, t) {
                K.call(this, e, (t << 24) >> 24);
              },
              setUint8: function (e, t) {
                K.call(this, e, (t << 24) >> 24);
              },
            },
            !0,
          );
    } else
      (w = function (e) {
        p(this, w, 'ArrayBuffer');
        var t = h(e);
        (this._b = y.call(new Array(t), 0)), (this[I] = t);
      }),
        (x = function (e, t, n) {
          p(this, x, 'DataView'), p(e, w, 'DataView');
          var r = e[I],
            i = f(t);
          if (i < 0 || i > r) throw S('Wrong offset!');
          if (i + (n = void 0 === n ? r - i : l(n)) > r) throw S('Wrong length!');
          (this[k] = e), (this[N] = i), (this[I] = n);
        }),
        i &&
          (q(w, 'byteLength', '_l'),
          q(x, 'buffer', '_b'),
          q(x, 'byteLength', '_l'),
          q(x, 'byteOffset', '_o')),
        u(x[g], {
          getInt8: function (e) {
            return (z(this, 1, e)[0] << 24) >> 24;
          },
          getUint8: function (e) {
            return z(this, 1, e)[0];
          },
          getInt16: function (e) {
            var t = z(this, 2, e, arguments[1]);
            return (((t[1] << 8) | t[0]) << 16) >> 16;
          },
          getUint16: function (e) {
            var t = z(this, 2, e, arguments[1]);
            return (t[1] << 8) | t[0];
          },
          getInt32: function (e) {
            return j(z(this, 4, e, arguments[1]));
          },
          getUint32: function (e) {
            return j(z(this, 4, e, arguments[1])) >>> 0;
          },
          getFloat32: function (e) {
            return D(z(this, 4, e, arguments[1]), 23, 4);
          },
          getFloat64: function (e) {
            return D(z(this, 8, e, arguments[1]), 52, 8);
          },
          setInt8: function (e, t) {
            $(this, 1, e, L, t);
          },
          setUint8: function (e, t) {
            $(this, 1, e, L, t);
          },
          setInt16: function (e, t) {
            $(this, 2, e, B, t, arguments[2]);
          },
          setUint16: function (e, t) {
            $(this, 2, e, B, t, arguments[2]);
          },
          setInt32: function (e, t) {
            $(this, 4, e, F, t, arguments[2]);
          },
          setUint32: function (e, t) {
            $(this, 4, e, F, t, arguments[2]);
          },
          setFloat32: function (e, t) {
            $(this, 4, e, V, t, arguments[2]);
          },
          setFloat64: function (e, t) {
            $(this, 8, e, U, t, arguments[2]);
          },
        });
    v(w, 'ArrayBuffer'),
      v(x, 'DataView'),
      s(x[g], a.VIEW, !0),
      (t.ArrayBuffer = w),
      (t.DataView = x);
  },
  function (e, t) {
    function n(e) {
      return (
        (function (e) {
          if (Array.isArray(e)) {
            for (var t = 0, n = new Array(e.length); t < e.length; t++) n[t] = e[t];
            return n;
          }
        })(e) ||
        (function (e) {
          if (
            Symbol.iterator in Object(e) ||
            '[object Arguments]' === Object.prototype.toString.call(e)
          )
            return Array.from(e);
        })(e) ||
        (function () {
          throw new TypeError('Invalid attempt to spread non-iterable instance');
        })()
      );
    }
    function r(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);
      }
    }
    var i = (function () {
      function e() {
        if (
          ((function (e, t) {
            if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
          })(this, e),
          (this instanceof e ? this.constructor : void 0) === e)
        )
          throw new Error('The class IPC cannot be instantiated directly.');
        this._callbacks = new Map();
      }
      var t, i, o;
      return (
        (t = e),
        (i = [
          {
            key: 'emit',
            value: function () {
              throw new Error(
                'The subclass '.concat(this.constructor.name, " doesn't implement emit()."),
              );
            },
          },
          {
            key: 'listen',
            value: function (e, t) {
              this._callbacks.set(e, t);
            },
          },
          {
            key: 'receive',
            value: function (e, t) {
              this._callbacks.has(e) && this._callbacks.get(e).apply(void 0, n(t));
            },
          },
        ]) && r(t.prototype, i),
        o && r(t, o),
        e
      );
    })();
    e.exports = i;
  },
  function (e, t, n) {
    'use strict';
    (function (t, r, i) {
      var o = n(97);
      function a(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 i = r.callback;
                t.pendingcb--, i(n), (r = r.next);
              }
              t.corkedRequestsFree ? (t.corkedRequestsFree.next = e) : (t.corkedRequestsFree = e);
            })(t, e);
          });
      }
      e.exports = g;
      var s,
        u = !t.browser && ['v0.10', 'v0.9.'].indexOf(t.version.slice(0, 5)) > -1 ? r : o.nextTick;
      g.WritableState = v;
      var c = n(73);
      c.inherits = n(39);
      var p = { deprecate: n(451) },
        f = n(191),
        l = n(98).Buffer,
        h = i.Uint8Array || function () {};
      var d,
        m = n(192);
      function y() {}
      function v(e, t) {
        (s = s || n(56)), (e = e || {});
        var r = t instanceof s;
        (this.objectMode = !!e.objectMode),
          r && (this.objectMode = this.objectMode || !!e.writableObjectMode);
        var i = e.highWaterMark,
          c = e.writableHighWaterMark,
          p = this.objectMode ? 16 : 16384;
        (this.highWaterMark = i || 0 === i ? i : r && (c || 0 === c) ? c : p),
          (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 f = !1 === e.decodeStrings;
        (this.decodeStrings = !f),
          (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,
                i = n.writecb;
              if (
                ((function (e) {
                  (e.writing = !1), (e.writecb = null), (e.length -= e.writelen), (e.writelen = 0);
                })(n),
                t)
              )
                !(function (e, t, n, r, i) {
                  --t.pendingcb,
                    n
                      ? (o.nextTick(i, r),
                        o.nextTick(A, e, t),
                        (e._writableState.errorEmitted = !0),
                        e.emit('error', r))
                      : (i(r), (e._writableState.errorEmitted = !0), e.emit('error', r), A(e, t));
                })(e, n, r, t, i);
              else {
                var a = E(n);
                a || n.corked || n.bufferProcessing || !n.bufferedRequest || x(e, n),
                  r ? u(w, e, n, a, i) : w(e, n, a, i);
              }
            })(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 a(this));
      }
      function g(e) {
        if (((s = s || n(56)), !(d.call(g, this) || this instanceof s))) return new g(e);
        (this._writableState = new v(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)),
          f.call(this);
      }
      function b(e, t, n, r, i, o, a) {
        (t.writelen = r),
          (t.writecb = a),
          (t.writing = !0),
          (t.sync = !0),
          n ? e._writev(i, t.onwrite) : e._write(i, o, t.onwrite),
          (t.sync = !1);
      }
      function w(e, t, n, r) {
        n ||
          (function (e, t) {
            0 === t.length && t.needDrain && ((t.needDrain = !1), e.emit('drain'));
          })(e, t),
          t.pendingcb--,
          r(),
          A(e, t);
      }
      function x(e, t) {
        t.bufferProcessing = !0;
        var n = t.bufferedRequest;
        if (e._writev && n && n.next) {
          var r = t.bufferedRequestCount,
            i = new Array(r),
            o = t.corkedRequestsFree;
          o.entry = n;
          for (var s = 0, u = !0; n; ) (i[s] = n), n.isBuf || (u = !1), (n = n.next), (s += 1);
          (i.allBuffers = u),
            b(e, t, !0, t.length, i, '', o.finish),
            t.pendingcb++,
            (t.lastBufferedRequest = null),
            o.next
              ? ((t.corkedRequestsFree = o.next), (o.next = null))
              : (t.corkedRequestsFree = new a(t)),
            (t.bufferedRequestCount = 0);
        } else {
          for (; n; ) {
            var c = n.chunk,
              p = n.encoding,
              f = n.callback;
            if (
              (b(e, t, !1, t.objectMode ? 1 : c.length, c, p, f),
              (n = n.next),
              t.bufferedRequestCount--,
              t.writing)
            )
              break;
          }
          null === n && (t.lastBufferedRequest = null);
        }
        (t.bufferedRequest = n), (t.bufferProcessing = !1);
      }
      function E(e) {
        return (
          e.ending && 0 === e.length && null === e.bufferedRequest && !e.finished && !e.writing
        );
      }
      function S(e, t) {
        e._final(function (n) {
          t.pendingcb--,
            n && e.emit('error', n),
            (t.prefinished = !0),
            e.emit('prefinish'),
            A(e, t);
        });
      }
      function A(e, t) {
        var n = E(t);
        return (
          n &&
            (!(function (e, t) {
              t.prefinished ||
                t.finalCalled ||
                ('function' == typeof e._final
                  ? (t.pendingcb++, (t.finalCalled = !0), o.nextTick(S, e, t))
                  : ((t.prefinished = !0), e.emit('prefinish')));
            })(e, t),
            0 === t.pendingcb && ((t.finished = !0), e.emit('finish'))),
          n
        );
      }
      c.inherits(g, f),
        (v.prototype.getBuffer = function () {
          for (var e = this.bufferedRequest, t = []; e; ) t.push(e), (e = e.next);
          return t;
        }),
        (function () {
          try {
            Object.defineProperty(v.prototype, 'buffer', {
              get: p.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]
          ? ((d = Function.prototype[Symbol.hasInstance]),
            Object.defineProperty(g, Symbol.hasInstance, {
              value: function (e) {
                return !!d.call(this, e) || (this === g && e && e._writableState instanceof v);
              },
            }))
          : (d = function (e) {
              return e instanceof this;
            }),
        (g.prototype.pipe = function () {
          this.emit('error', new Error('Cannot pipe, not readable'));
        }),
        (g.prototype.write = function (e, t, n) {
          var r,
            i = this._writableState,
            a = !1,
            s = !i.objectMode && ((r = e), l.isBuffer(r) || r instanceof h);
          return (
            s &&
              !l.isBuffer(e) &&
              (e = (function (e) {
                return l.from(e);
              })(e)),
            'function' == typeof t && ((n = t), (t = null)),
            s ? (t = 'buffer') : t || (t = i.defaultEncoding),
            'function' != typeof n && (n = y),
            i.ended
              ? (function (e, t) {
                  var n = new Error('write after end');
                  e.emit('error', n), o.nextTick(t, n);
                })(this, n)
              : (s ||
                  (function (e, t, n, r) {
                    var i = !0,
                      a = !1;
                    return (
                      null === n
                        ? (a = new TypeError('May not write null values to stream'))
                        : 'string' == typeof n ||
                          void 0 === n ||
                          t.objectMode ||
                          (a = new TypeError('Invalid non-string/buffer chunk')),
                      a && (e.emit('error', a), o.nextTick(r, a), (i = !1)),
                      i
                    );
                  })(this, i, e, n)) &&
                (i.pendingcb++,
                (a = (function (e, t, n, r, i, o) {
                  if (!n) {
                    var a = (function (e, t, n) {
                      e.objectMode ||
                        !1 === e.decodeStrings ||
                        'string' != typeof t ||
                        (t = l.from(t, n));
                      return t;
                    })(t, r, i);
                    r !== a && ((n = !0), (i = 'buffer'), (r = a));
                  }
                  var s = t.objectMode ? 1 : r.length;
                  t.length += s;
                  var u = t.length < t.highWaterMark;
                  u || (t.needDrain = !0);
                  if (t.writing || t.corked) {
                    var c = t.lastBufferedRequest;
                    (t.lastBufferedRequest = {
                      chunk: r,
                      encoding: i,
                      isBuf: n,
                      callback: o,
                      next: null,
                    }),
                      c
                        ? (c.next = t.lastBufferedRequest)
                        : (t.bufferedRequest = t.lastBufferedRequest),
                      (t.bufferedRequestCount += 1);
                  } else b(e, t, !1, s, r, i, o);
                  return u;
                })(this, i, s, e, t, n))),
            a
          );
        }),
        (g.prototype.cork = function () {
          this._writableState.corked++;
        }),
        (g.prototype.uncork = function () {
          var e = this._writableState;
          e.corked &&
            (e.corked--,
            e.writing ||
              e.corked ||
              e.finished ||
              e.bufferProcessing ||
              !e.bufferedRequest ||
              x(this, e));
        }),
        (g.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;
        }),
        Object.defineProperty(g.prototype, 'writableHighWaterMark', {
          enumerable: !1,
          get: function () {
            return this._writableState.highWaterMark;
          },
        }),
        (g.prototype._write = function (e, t, n) {
          n(new Error('_write() is not implemented'));
        }),
        (g.prototype._writev = null),
        (g.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 && this.write(e, t),
            r.corked && ((r.corked = 1), this.uncork()),
            r.ending ||
              r.finished ||
              (function (e, t, n) {
                (t.ending = !0), A(e, t), n && (t.finished ? o.nextTick(n) : e.once('finish', n));
                (t.ended = !0), (e.writable = !1);
              })(this, r, n);
        }),
        Object.defineProperty(g.prototype, 'destroyed', {
          get: function () {
            return void 0 !== this._writableState && this._writableState.destroyed;
          },
          set: function (e) {
            this._writableState && (this._writableState.destroyed = e);
          },
        }),
        (g.prototype.destroy = m.destroy),
        (g.prototype._undestroy = m.undestroy),
        (g.prototype._destroy = function (e, t) {
          this.end(), t(e);
        });
    }.call(this, n(16), n(99).setImmediate, n(11)));
  },
  function (e, t, n) {
    'use strict';
    var r = n(98).Buffer,
      i =
        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 o(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 === i || !i(e)))
            throw new Error('Unknown encoding: ' + e);
          return t || e;
        })(e)),
        this.encoding)
      ) {
        case 'utf16le':
          (this.text = u), (this.end = c), (t = 4);
          break;
        case 'utf8':
          (this.fillLast = s), (t = 4);
          break;
        case 'base64':
          (this.text = p), (this.end = f), (t = 3);
          break;
        default:
          return (this.write = l), void (this.end = h);
      }
      (this.lastNeed = 0), (this.lastTotal = 0), (this.lastChar = r.allocUnsafe(t));
    }
    function a(e) {
      return e <= 127
        ? 0
        : e >> 5 == 6
        ? 2
        : e >> 4 == 14
        ? 3
        : e >> 3 == 30
        ? 4
        : e >> 6 == 2
        ? -1
        : -2;
    }
    function s(e) {
      var t = this.lastTotal - this.lastNeed,
        n = (function (e, t, n) {
          if (128 != (192 & t[0])) return (e.lastNeed = 0), '�';
          if (e.lastNeed > 1 && t.length > 1) {
            if (128 != (192 & t[1])) return (e.lastNeed = 1), '�';
            if (e.lastNeed > 2 && t.length > 2 && 128 != (192 & t[2])) return (e.lastNeed = 2), '�';
          }
        })(this, e);
      return void 0 !== n
        ? n
        : this.lastNeed <= e.length
        ? (e.copy(this.lastChar, t, 0, this.lastNeed),
          this.lastChar.toString(this.encoding, 0, this.lastTotal))
        : (e.copy(this.lastChar, t, 0, e.length), void (this.lastNeed -= e.length));
    }
    function u(e, t) {
      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 p(e, t) {
      var n = (e.length - t) % 3;
      return 0 === n
        ? e.toString('base64', t)
        : ((this.lastNeed = 3 - n),
          (this.lastTotal = 3),
          1 === n
            ? (this.lastChar[0] = e[e.length - 1])
            : ((this.lastChar[0] = e[e.length - 2]), (this.lastChar[1] = e[e.length - 1])),
          e.toString('base64', t, e.length - n));
    }
    function f(e) {
      var t = e && e.length ? this.write(e) : '';
      return this.lastNeed ? t + this.lastChar.toString('base64', 0, 3 - this.lastNeed) : t;
    }
    function l(e) {
      return e.toString(this.encoding);
    }
    function h(e) {
      return e && e.length ? this.write(e) : '';
    }
    (t.StringDecoder = o),
      (o.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 || '';
      }),
      (o.prototype.end = function (e) {
        var t = e && e.length ? this.write(e) : '';
        return this.lastNeed ? t + '�' : t;
      }),
      (o.prototype.text = function (e, t) {
        var n = (function (e, t, n) {
          var r = t.length - 1;
          if (r < n) return 0;
          var i = a(t[r]);
          if (i >= 0) return i > 0 && (e.lastNeed = i - 1), i;
          if (--r < n || -2 === i) return 0;
          if ((i = a(t[r])) >= 0) return i > 0 && (e.lastNeed = i - 2), i;
          if (--r < n || -2 === i) return 0;
          if ((i = a(t[r])) >= 0) return i > 0 && (2 === i ? (i = 0) : (e.lastNeed = i - 3)), i;
          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);
      }),
      (o.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) {
    function n(e) {
      return (n =
        '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;
            })(e);
    }
    function r(e, t) {
      return !t || ('object' !== n(t) && 'function' != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return e;
          })(e)
        : t;
    }
    function i(e) {
      var t = 'function' == typeof Map ? new Map() : void 0;
      return (i = function (e) {
        if (null === e || ((n = e), -1 === Function.toString.call(n).indexOf('[native code]')))
          return e;
        var n;
        if ('function' != typeof e)
          throw new TypeError('Super expression must either be null or a function');
        if (void 0 !== t) {
          if (t.has(e)) return t.get(e);
          t.set(e, r);
        }
        function r() {
          return o(e, arguments, s(this).constructor);
        }
        return (
          (r.prototype = Object.create(e.prototype, {
            constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 },
          })),
          a(r, e)
        );
      })(e);
    }
    function o(e, t, n) {
      return (o = (function () {
        if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ('function' == typeof Proxy) return !0;
        try {
          return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0;
        } catch (e) {
          return !1;
        }
      })()
        ? Reflect.construct
        : function (e, t, n) {
            var r = [null];
            r.push.apply(r, t);
            var i = new (Function.bind.apply(e, r))();
            return n && a(i, n.prototype), i;
          }).apply(null, arguments);
    }
    function a(e, t) {
      return (a =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    function s(e) {
      return (s = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    var u = (function (e) {
      function t(e, n) {
        var i;
        return (
          (function (e, t) {
            if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
          })(this, t),
          ((i = r(this, s(t).call(this, n))).statusCode = e),
          (i.message = n),
          i
        );
      }
      return (
        (function (e, t) {
          if ('function' != typeof t && null !== t)
            throw new TypeError('Super expression must either be null or a function');
          (e.prototype = Object.create(t && t.prototype, {
            constructor: { value: e, writable: !0, configurable: !0 },
          })),
            t && a(e, t);
        })(t, i(Error)),
        t
      );
    })();
    e.exports = u;
  },
  function (e, t, n) {
    'use strict';
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(75),
      o = n(17)('bpmn-engine:validation'),
      a = ['listener', 'services', 'variables'],
      s = {};
    function u(e) {
      var t = Object.assign({}, e),
        n = new Error(t.message);
      return delete t.message, Object.assign(n, t);
    }
    (s.validateModdleContext = function (e) {
      if (!e) return [new Error('Nothing to validate')];
      if ((o('validate start'), e.warnings && e.warnings.length)) return e.warnings.map(u);
      var t = e.warnings || [];
      return (t = (function (e, t) {
        Object.keys(e.elementsById).forEach(function (n) {
          var r = e.elementsById[n];
          if ('bpmn:SequenceFlow' === r.$type)
            !(function (e, t, n, r) {
              var i = e.references.filter(function (e) {
                return e.element.id === n;
              });
              ['sourceRef', 'targetRef'].forEach(function (e) {
                i.find(function (t) {
                  return t.property === 'bpmn:'.concat(e);
                }) ||
                  t.push(
                    new Error(
                      ''
                        .concat(r.$type, ' <')
                        .concat(r.id, '> property "')
                        .concat(e, '" is required'),
                    ),
                  );
              });
            })(e, t, n, r);
          else if ('bpmn:ExclusiveGateway' === r.$type) {
            var o = i.getOutboundSequenceFlows(e, r.id);
            if (o.length)
              if (1 === o.length) {
                var a = o[0].element;
                a.conditionExpression &&
                  t.push(
                    new Error(
                      ''
                        .concat(r.$type, ' <')
                        .concat(r.id, '> has a single diverging flow (')
                        .concat(a.$type, ' <')
                        .concat(a.id, '>) with a condition'),
                    ),
                  );
              } else
                o.forEach(function (n) {
                  var o = n.element;
                  i.isDefaultSequenceFlow(e, o.id) ||
                    o.conditionExpression ||
                    t.push(
                      new Error(
                        ''
                          .concat(r.$type, ' <')
                          .concat(r.id, '> diverging flow (')
                          .concat(o.$type, ' <')
                          .concat(o.id, '>) has no condition'),
                      ),
                    );
                });
            else t.push(new Error(''.concat(r.$type, ' <').concat(r.id, '> has no outgoing flow')));
          }
        }),
          t.length && o(t[0].message);
        return o('validate context end'), t;
      })(e, t));
    }),
      (s.validateOptions = function (e) {
        if (!e) return !0;
        if (
          (Object.keys(e).forEach(function (e) {
            if (-1 === a.indexOf(e))
              throw new Error('Execute option '.concat(e, ' is unsupported'));
          }),
          e.listener && 'function' != typeof e.listener.emit)
        )
          throw new Error('listener "emit" function is required');
        if (e.services) {
          if ('object' !== r(e.services)) throw new Error('services must be an object');
          (t = e.services),
            Object.keys(t).forEach(function (e) {
              var n = t[e];
              if (!n) throw new Error('Service "'.concat(e, '" is undefined'));
              var i = r(n);
              if (-1 === ['function', 'object'].indexOf(i))
                throw new Error('Service "'.concat(e, '" is not a function or an object'));
              if ('function' !== i) {
                if (!n.module || 'string' != typeof n.module)
                  throw new Error('Service "'.concat(e, '" module must be a string'));
                if (n.type && -1 === ['require', 'global'].indexOf(n.type))
                  throw new Error(
                    'Service "'.concat(e, '" type <').concat(n.type, '> must be global or require'),
                  );
              }
            });
        }
        var t;
        if (e.variables && 'object' !== r(e.variables))
          throw new Error('variables must be an object');
        return !0;
      }),
      (e.exports = s);
  },
  function (e, t, n) {
    'use strict';
    var r = n(57),
      i = n(17);
    function o() {
      r.apply(this, arguments),
        (this.eventDefinition = this.activity.eventDefinitions[0]),
        (this.type = this.eventDefinition.$type),
        (this.attachedTo = this.parentContext.getAttachedToActivity(this.id)),
        this.attachedTo && (this.isStart = !1),
        (this._debug = i('bpmn-engine:'.concat(this.type.toLowerCase()))),
        (this.cancelActivity =
          !this.activity.hasOwnProperty('cancelActivity') || this.activity.cancelActivity);
    }
    (o.prototype = Object.create(r.prototype)),
      (o.prototype.run = function () {
        (this.taken = !1),
          r.prototype.run.apply(this, arguments),
          this._debug('<'.concat(this.id, '>'), 'run'),
          this.emit('start', this);
      }),
      (o.prototype.complete = function (e) {
        this._debug('<'.concat(this.id, '>'), 'completed'),
          (this.taken = !0),
          this.emit('end', this, e),
          this.attachedTo &&
            this.cancelActivity &&
            (this._debug('<'.concat(this.id, '>'), 'discard <'.concat(this.attachedTo.id, '>')),
            this.attachedTo.discard()),
          this.takeAllOutbound();
      }),
      (o.prototype.resume = function () {}),
      (o.prototype.onAttachedStart = function (e) {
        this._debug('<'.concat(this.id, '>'), 'activity <'.concat(e.id, '> started')), this.run();
      }),
      (o.prototype.onAttachedEnd = function (e) {
        this._debug('<'.concat(this.id, '>'), 'activity <'.concat(e.id, '> ended')), this.discard();
      }),
      (o.prototype.onAttachedCancel = function (e) {
        this._debug('<'.concat(this.id, '>'), 'activity <'.concat(e.id, '> canceled')),
          this.discard();
      }),
      (o.prototype.onAttachedError = function () {}),
      (o.prototype.onAttachedLeave = function (e) {
        this.entered &&
          !this.taken &&
          (this._debug('<'.concat(this.id, '>'), 'activity <'.concat(e.id, '> leave')),
          this.discard());
      }),
      (o.prototype.setupInboundListeners = function () {
        this.attachedTo &&
          ((this._onAttachedStart = this.onAttachedStart.bind(this)),
          (this._onAttachedEnd = this.onAttachedEnd.bind(this)),
          (this._onAttachedCancel = this.onAttachedCancel.bind(this)),
          (this._onAttachedError = this.onAttachedError.bind(this)),
          (this._onAttachedLeave = this.onAttachedLeave.bind(this)),
          this.attachedTo.on('start', this._onAttachedStart),
          this.attachedTo.on('end', this._onAttachedEnd),
          this.attachedTo.on('cancel', this._onAttachedCancel),
          this.attachedTo.on('error', this._onAttachedError),
          this.attachedTo.on('leave', this._onAttachedLeave)),
          r.prototype.setupInboundListeners.apply(this, arguments);
      }),
      (o.prototype.teardownInboundListeners = function () {
        this.attachedTo &&
          (this.attachedTo.removeListener('start', this._onAttachedStart),
          this.attachedTo.removeListener('end', this._onAttachedEnd),
          this.attachedTo.removeListener('cancel', this._onAttachedCancel),
          this.attachedTo.removeListener('error', this._onAttachedError),
          this.attachedTo.removeListener('leave', this._onAttachedLeave)),
          r.prototype.teardownInboundListeners.apply(this, arguments);
      }),
      (e.exports = o);
  },
  function (e, t, n) {
    'use strict';
    e.exports = function (e) {
      (this.id = e.id), (this.type = e.$type), (this.activity = e), (this.placeholder = !0);
    };
  },
  function (e, t) {
    var n = /^\d+$/,
      r = 9007199254740991;
    e.exports = function (e, t) {
      return (
        (e = 'number' == typeof e || n.test(e) ? +e : -1),
        (t = null == t ? r : t),
        e > -1 && e % 1 == 0 && e < t
      );
    };
  },
  function (e, t, n) {
    var r = n(213);
    e.exports = function (e, t, n) {
      if ('function' != typeof e) return r;
      if (void 0 === t) return e;
      switch (n) {
        case 1:
          return function (n) {
            return e.call(t, n);
          };
        case 3:
          return function (n, r, i) {
            return e.call(t, n, r, i);
          };
        case 4:
          return function (n, r, i, o) {
            return e.call(t, n, r, i, o);
          };
        case 5:
          return function (n, r, i, o, a) {
            return e.call(t, n, r, i, o, a);
          };
      }
      return function () {
        return e.apply(t, arguments);
      };
    };
  },
  function (e, t, n) {
    var r = n(66);
    e.exports = function (e) {
      return r(e) ? e : Object(e);
    };
  },
  function (e, t, n) {
    var r = n(218),
      i = n(106),
      o = n(66),
      a = n(541),
      s = r(Object, 'keys'),
      u = s
        ? function (e) {
            var t = null == e ? void 0 : e.constructor;
            return ('function' == typeof t && t.prototype === e) || ('function' != typeof e && i(e))
              ? a(e)
              : o(e)
              ? s(e)
              : [];
          }
        : a;
    e.exports = u;
  },
  function (e, t, n) {
    var r = n(106),
      i = n(78),
      o = Object.prototype,
      a = o.hasOwnProperty,
      s = o.propertyIsEnumerable;
    e.exports = function (e) {
      return i(e) && r(e) && a.call(e, 'callee') && !s.call(e, 'callee');
    };
  },
  function (e, t) {
    var n = /^\d+$/,
      r = 9007199254740991;
    e.exports = function (e, t) {
      return (
        (e = 'number' == typeof e || n.test(e) ? +e : -1),
        (t = null == t ? r : t),
        e > -1 && e % 1 == 0 && e < t
      );
    };
  },
  function (e, t, n) {
    var r = n(544);
    e.exports = function (e, t, n) {
      if ('function' != typeof e) return r;
      if (void 0 === t) return e;
      switch (n) {
        case 1:
          return function (n) {
            return e.call(t, n);
          };
        case 3:
          return function (n, r, i) {
            return e.call(t, n, r, i);
          };
        case 4:
          return function (n, r, i, o) {
            return e.call(t, n, r, i, o);
          };
        case 5:
          return function (n, r, i, o, a) {
            return e.call(t, n, r, i, o, a);
          };
      }
      return function () {
        return e.apply(t, arguments);
      };
    };
  },
  function (e, t, n) {
    'use strict';
    var r = { String: !0, Boolean: !0, Integer: !0, Real: !0, Element: !0 },
      i = {
        String: function (e) {
          return e;
        },
        Boolean: function (e) {
          return 'true' === e;
        },
        Integer: function (e) {
          return parseInt(e, 10);
        },
        Real: function (e) {
          return parseFloat(e, 10);
        },
      };
    (e.exports.coerceType = function (e, t) {
      var n = i[e];
      return n ? n(t) : t;
    }),
      (e.exports.isBuiltIn = function (e) {
        return !!r[e];
      }),
      (e.exports.isSimple = function (e) {
        return !!i[e];
      });
  },
  function (e, t, n) {
    e.exports =
      !n(7) &&
      !n(3)(function () {
        return (
          7 !=
          Object.defineProperty(n(109)('div'), 'a', {
            get: function () {
              return 7;
            },
          }).a
        );
      });
  },
  function (e, t, n) {
    t.f = n(5);
  },
  function (e, t, n) {
    var r = n(18),
      i = n(19),
      o = n(82)(!1),
      a = n(111)('IE_PROTO');
    e.exports = function (e, t) {
      var n,
        s = i(e),
        u = 0,
        c = [];
      for (n in s) n != a && r(s, n) && c.push(n);
      for (; t.length > u; ) r(s, (n = t[u++])) && (~o(c, n) || c.push(n));
      return c;
    };
  },
  function (e, t, n) {
    var r = n(9),
      i = n(1),
      o = n(45);
    e.exports = n(7)
      ? Object.defineProperties
      : function (e, t) {
          i(e);
          for (var n, a = o(t), s = a.length, u = 0; s > u; ) r.f(e, (n = a[u++]), t[n]);
          return e;
        };
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(19),
      o = n(48).f,
      a = {}.toString,
      s =
        'object' == ('undefined' == typeof window ? 'undefined' : r(window)) &&
        window &&
        Object.getOwnPropertyNames
          ? Object.getOwnPropertyNames(window)
          : [];
    e.exports.f = function (e) {
      return s && '[object Window]' == a.call(e)
        ? (function (e) {
            try {
              return o(e);
            } catch (e) {
              return s.slice();
            }
          })(e)
        : o(i(e));
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(7),
      i = n(45),
      o = n(83),
      a = n(69),
      s = n(10),
      u = n(68),
      c = Object.assign;
    e.exports =
      !c ||
      n(3)(function () {
        var e = {},
          t = {},
          n = Symbol(),
          r = 'abcdefghijklmnopqrst';
        return (
          (e[n] = 7),
          r.split('').forEach(function (e) {
            t[e] = e;
          }),
          7 != c({}, e)[n] || Object.keys(c({}, t)).join('') != r
        );
      })
        ? function (e, t) {
            for (var n = s(e), c = arguments.length, p = 1, f = o.f, l = a.f; c > p; )
              for (
                var h, d = u(arguments[p++]), m = f ? i(d).concat(f(d)) : i(d), y = m.length, v = 0;
                y > v;

              )
                (h = m[v++]), (r && !l.call(d, h)) || (n[h] = d[h]);
            return n;
          }
        : c;
  },
  function (e, t) {
    e.exports =
      Object.is ||
      function (e, t) {
        return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t;
      };
  },
  function (e, t, n) {
    'use strict';
    var r = n(12),
      i = n(4),
      o = n(159),
      a = [].slice,
      s = {},
      u = function (e, t, n) {
        if (!(t in s)) {
          for (var r = [], i = 0; i < t; i++) r[i] = 'a[' + i + ']';
          s[t] = Function('F,a', 'return new F(' + r.join(',') + ')');
        }
        return s[t](e, n);
      };
    e.exports =
      Function.bind ||
      function (e) {
        var t = r(this),
          n = a.call(arguments, 1),
          s = function r() {
            var i = n.concat(a.call(arguments));
            return this instanceof r ? u(t, i.length, i) : o(t, i, e);
          };
        return i(t.prototype) && (s.prototype = t.prototype), s;
      };
  },
  function (e, t) {
    e.exports = function (e, t, n) {
      var r = void 0 === n;
      switch (t.length) {
        case 0:
          return r ? e() : e.call(n);
        case 1:
          return r ? e(t[0]) : e.call(n, t[0]);
        case 2:
          return r ? e(t[0], t[1]) : e.call(n, t[0], t[1]);
        case 3:
          return r ? e(t[0], t[1], t[2]) : e.call(n, t[0], t[1], t[2]);
        case 4:
          return r ? e(t[0], t[1], t[2], t[3]) : e.call(n, t[0], t[1], t[2], t[3]);
      }
      return e.apply(n, t);
    };
  },
  function (e, t, n) {
    var r = n(2).parseInt,
      i = n(62).trim,
      o = n(115),
      a = /^[-+]?0[xX]/;
    e.exports =
      8 !== r(o + '08') || 22 !== r(o + '0x16')
        ? function (e, t) {
            var n = i(String(e), 3);
            return r(n, t >>> 0 || (a.test(n) ? 16 : 10));
          }
        : r;
  },
  function (e, t, n) {
    var r = n(2).parseFloat,
      i = n(62).trim;
    e.exports =
      1 / r(n(115) + '-0') != -1 / 0
        ? function (e) {
            var t = i(String(e), 3),
              n = r(t);
            return 0 === n && '-' == t.charAt(0) ? -0 : n;
          }
        : r;
  },
  function (e, t, n) {
    var r = n(24);
    e.exports = function (e, t) {
      if ('number' != typeof e && 'Number' != r(e)) throw TypeError(t);
      return +e;
    };
  },
  function (e, t, n) {
    var r = n(4),
      i = Math.floor;
    e.exports = function (e) {
      return !r(e) && isFinite(e) && i(e) === e;
    };
  },
  function (e, t) {
    e.exports =
      Math.log1p ||
      function (e) {
        return (e = +e) > -1e-8 && e < 1e-8 ? e - (e * e) / 2 : Math.log(1 + e);
      };
  },
  function (e, t, n) {
    var r = n(118),
      i = Math.pow,
      o = i(2, -52),
      a = i(2, -23),
      s = i(2, 127) * (2 - a),
      u = i(2, -126);
    e.exports =
      Math.fround ||
      function (e) {
        var t,
          n,
          i = Math.abs(e),
          c = r(e);
        return i < u
          ? c * (i / u / a + 1 / o - 1 / o) * u * a
          : (n = (t = (1 + a / o) * i) - (t - i)) > s || n != n
          ? c * (1 / 0)
          : c * n;
      };
  },
  function (e, t, n) {
    var r = n(1);
    e.exports = function (e, t, n, i) {
      try {
        return i ? t(r(n)[0], n[1]) : t(n);
      } catch (t) {
        var o = e.return;
        throw (void 0 !== o && r(o.call(e)), t);
      }
    };
  },
  function (e, t, n) {
    var r = n(12),
      i = n(10),
      o = n(68),
      a = n(6);
    e.exports = function (e, t, n, s, u) {
      r(t);
      var c = i(e),
        p = o(c),
        f = a(c.length),
        l = u ? f - 1 : 0,
        h = u ? -1 : 1;
      if (n < 2)
        for (;;) {
          if (l in p) {
            (s = p[l]), (l += h);
            break;
          }
          if (((l += h), u ? l < 0 : f <= l))
            throw TypeError('Reduce of empty array with no initial value');
        }
      for (; u ? l >= 0 : f > l; l += h) l in p && (s = t(s, p[l], l, c));
      return s;
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(10),
      i = n(46),
      o = n(6);
    e.exports =
      [].copyWithin ||
      function (e, t) {
        var n = r(this),
          a = o(n.length),
          s = i(e, a),
          u = i(t, a),
          c = arguments.length > 2 ? arguments[2] : void 0,
          p = Math.min((void 0 === c ? a : i(c, a)) - u, a - s),
          f = 1;
        for (u < s && s < u + p && ((f = -1), (u += p - 1), (s += p - 1)); p-- > 0; )
          u in n ? (n[s] = n[u]) : delete n[s], (s += f), (u += f);
        return n;
      };
  },
  function (e, t) {
    e.exports = function (e, t) {
      return { value: t, done: !!e };
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(130);
    n(0)({ target: 'RegExp', proto: !0, forced: r !== /./.exec }, { exec: r });
  },
  function (e, t, n) {
    n(7) &&
      'g' != /./g.flags &&
      n(9).f(RegExp.prototype, 'flags', { configurable: !0, get: n(70) });
  },
  function (e, t) {
    e.exports = function (e) {
      try {
        return { e: !1, v: e() };
      } catch (e) {
        return { e: !0, v: e };
      }
    };
  },
  function (e, t, n) {
    var r = n(1),
      i = n(4),
      o = n(134);
    e.exports = function (e, t) {
      if ((r(e), i(t) && t.constructor === e)) return t;
      var n = o.f(e);
      return (0, n.resolve)(t), n.promise;
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(175),
      i = n(53);
    e.exports = n(91)(
      'Map',
      function (e) {
        return function () {
          return e(this, arguments.length > 0 ? arguments[0] : void 0);
        };
      },
      {
        get: function (e) {
          var t = r.getEntry(i(this, 'Map'), e);
          return t && t.v;
        },
        set: function (e, t) {
          return r.def(i(this, 'Map'), 0 === e ? 0 : e, t);
        },
      },
      r,
      !0,
    );
  },
  function (e, t, n) {
    'use strict';
    var r = n(9).f,
      i = n(47),
      o = n(52),
      a = n(23),
      s = n(50),
      u = n(51),
      c = n(120),
      p = n(169),
      f = n(49),
      l = n(7),
      h = n(35).fastKey,
      d = n(53),
      m = l ? '_s' : 'size',
      y = function (e, t) {
        var n,
          r = h(t);
        if ('F' !== r) return e._i[r];
        for (n = e._f; n; n = n.n) if (n.k == t) return n;
      };
    e.exports = {
      getConstructor: function (e, t, n, c) {
        var p = e(function (e, r) {
          s(e, p, t, '_i'),
            (e._t = t),
            (e._i = i(null)),
            (e._f = void 0),
            (e._l = void 0),
            (e[m] = 0),
            null != r && u(r, n, e[c], e);
        });
        return (
          o(p.prototype, {
            clear: function () {
              for (var e = d(this, t), n = e._i, r = e._f; r; r = r.n)
                (r.r = !0), r.p && (r.p = r.p.n = void 0), delete n[r.i];
              (e._f = e._l = void 0), (e[m] = 0);
            },
            delete: function (e) {
              var n = d(this, t),
                r = y(n, e);
              if (r) {
                var i = r.n,
                  o = r.p;
                delete n._i[r.i],
                  (r.r = !0),
                  o && (o.n = i),
                  i && (i.p = o),
                  n._f == r && (n._f = i),
                  n._l == r && (n._l = o),
                  n[m]--;
              }
              return !!r;
            },
            forEach: function (e) {
              d(this, t);
              for (
                var n, r = a(e, arguments.length > 1 ? arguments[1] : void 0, 3);
                (n = n ? n.n : this._f);

              )
                for (r(n.v, n.k, this); n && n.r; ) n = n.p;
            },
            has: function (e) {
              return !!y(d(this, t), e);
            },
          }),
          l &&
            r(p.prototype, 'size', {
              get: function () {
                return d(this, t)[m];
              },
            }),
          p
        );
      },
      def: function (e, t, n) {
        var r,
          i,
          o = y(e, t);
        return (
          o
            ? (o.v = n)
            : ((e._l = o = { i: (i = h(t, !0)), k: t, v: n, p: (r = e._l), n: void 0, r: !1 }),
              e._f || (e._f = o),
              r && (r.n = o),
              e[m]++,
              'F' !== i && (e._i[i] = o)),
          e
        );
      },
      getEntry: y,
      setStrong: function (e, t, n) {
        c(
          e,
          t,
          function (e, n) {
            (this._t = d(e, t)), (this._k = n), (this._l = void 0);
          },
          function () {
            for (var e = this._k, t = this._l; t && t.r; ) t = t.p;
            return this._t && (this._l = t = t ? t.n : this._t._f)
              ? p(0, 'keys' == e ? t.k : 'values' == e ? t.v : [t.k, t.v])
              : ((this._t = void 0), p(1));
          },
          n ? 'entries' : 'values',
          !n,
          !0,
        ),
          f(t);
      },
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(175),
      i = n(53);
    e.exports = n(91)(
      'Set',
      function (e) {
        return function () {
          return e(this, arguments.length > 0 ? arguments[0] : void 0);
        };
      },
      {
        add: function (e) {
          return r.def(i(this, 'Set'), (e = 0 === e ? 0 : e), e);
        },
      },
      r,
    );
  },
  function (e, t, n) {
    'use strict';
    var r,
      i = n(2),
      o = n(31)(0),
      a = n(14),
      s = n(35),
      u = n(156),
      c = n(178),
      p = n(4),
      f = n(53),
      l = n(53),
      h = !i.ActiveXObject && 'ActiveXObject' in i,
      d = s.getWeak,
      m = Object.isExtensible,
      y = c.ufstore,
      v = function (e) {
        return function () {
          return e(this, arguments.length > 0 ? arguments[0] : void 0);
        };
      },
      g = {
        get: function (e) {
          if (p(e)) {
            var t = d(e);
            return !0 === t ? y(f(this, 'WeakMap')).get(e) : t ? t[this._i] : void 0;
          }
        },
        set: function (e, t) {
          return c.def(f(this, 'WeakMap'), e, t);
        },
      },
      b = (e.exports = n(91)('WeakMap', v, g, c, !0, !0));
    l &&
      h &&
      (u((r = c.getConstructor(v, 'WeakMap')).prototype, g),
      (s.NEED = !0),
      o(['delete', 'has', 'get', 'set'], function (e) {
        var t = b.prototype,
          n = t[e];
        a(t, e, function (t, i) {
          if (p(t) && !m(t)) {
            this._f || (this._f = new r());
            var o = this._f[e](t, i);
            return 'set' == e ? this : o;
          }
          return n.call(this, t, i);
        });
      }));
  },
  function (e, t, n) {
    'use strict';
    var r = n(52),
      i = n(35).getWeak,
      o = n(1),
      a = n(4),
      s = n(50),
      u = n(51),
      c = n(31),
      p = n(18),
      f = n(53),
      l = c(5),
      h = c(6),
      d = 0,
      m = function (e) {
        return e._l || (e._l = new y());
      },
      y = function () {
        this.a = [];
      },
      v = function (e, t) {
        return l(e.a, function (e) {
          return e[0] === t;
        });
      };
    (y.prototype = {
      get: function (e) {
        var t = v(this, e);
        if (t) return t[1];
      },
      has: function (e) {
        return !!v(this, e);
      },
      set: function (e, t) {
        var n = v(this, e);
        n ? (n[1] = t) : this.a.push([e, t]);
      },
      delete: function (e) {
        var t = h(this.a, function (t) {
          return t[0] === e;
        });
        return ~t && this.a.splice(t, 1), !!~t;
      },
    }),
      (e.exports = {
        getConstructor: function (e, t, n, o) {
          var c = e(function (e, r) {
            s(e, c, t, '_i'),
              (e._t = t),
              (e._i = d++),
              (e._l = void 0),
              null != r && u(r, n, e[o], e);
          });
          return (
            r(c.prototype, {
              delete: function (e) {
                if (!a(e)) return !1;
                var n = i(e);
                return !0 === n ? m(f(this, t)).delete(e) : n && p(n, this._i) && delete n[this._i];
              },
              has: function (e) {
                if (!a(e)) return !1;
                var n = i(e);
                return !0 === n ? m(f(this, t)).has(e) : n && p(n, this._i);
              },
            }),
            c
          );
        },
        def: function (e, t, n) {
          var r = i(o(t), !0);
          return !0 === r ? m(e).set(t, n) : (r[e._i] = n), e;
        },
        ufstore: m,
      });
  },
  function (e, t, n) {
    var r = n(25),
      i = n(6);
    e.exports = function (e) {
      if (void 0 === e) return 0;
      var t = r(e),
        n = i(t);
      if (t !== n) throw RangeError('Wrong length!');
      return n;
    };
  },
  function (e, t, n) {
    var r = n(48),
      i = n(83),
      o = n(1),
      a = n(2).Reflect;
    e.exports =
      (a && a.ownKeys) ||
      function (e) {
        var t = r.f(o(e)),
          n = i.f;
        return n ? t.concat(n(e)) : t;
      };
  },
  function (e, t, n) {
    'use strict';
    var r = n(84),
      i = n(4),
      o = n(6),
      a = n(23),
      s = n(5)('isConcatSpreadable');
    e.exports = function e(t, n, u, c, p, f, l, h) {
      for (var d, m, y = p, v = 0, g = !!l && a(l, h, 3); v < c; ) {
        if (v in u) {
          if (
            ((d = g ? g(u[v], v, n) : u[v]),
            (m = !1),
            i(d) && (m = void 0 !== (m = d[s]) ? !!m : r(d)),
            m && f > 0)
          )
            y = e(t, n, d, o(d.length), y, f - 1) - 1;
          else {
            if (y >= 9007199254740991) throw TypeError();
            t[y] = d;
          }
          y++;
        }
        v++;
      }
      return y;
    };
  },
  function (e, t, n) {
    var r = n(6),
      i = n(117),
      o = n(29);
    e.exports = function (e, t, n, a) {
      var s = String(o(e)),
        u = s.length,
        c = void 0 === n ? ' ' : String(n),
        p = r(t);
      if (p <= u || '' == c) return s;
      var f = p - u,
        l = i.call(c, Math.ceil(f / c.length));
      return l.length > f && (l = l.slice(0, f)), a ? l + s : s + l;
    };
  },
  function (e, t, n) {
    var r = n(7),
      i = n(45),
      o = n(19),
      a = n(69).f;
    e.exports = function (e) {
      return function (t) {
        for (var n, s = o(t), u = i(s), c = u.length, p = 0, f = []; c > p; )
          (n = u[p++]), (r && !a.call(s, n)) || f.push(e ? [n, s[n]] : s[n]);
        return f;
      };
    };
  },
  function (e, t, n) {
    var r = n(61),
      i = n(185);
    e.exports = function (e) {
      return function () {
        if (r(this) != e) throw TypeError(e + "#toJSON isn't generic");
        return i(this);
      };
    };
  },
  function (e, t, n) {
    var r = n(51);
    e.exports = function (e, t) {
      var n = [];
      return r(e, !1, n.push, n, t), n;
    };
  },
  function (e, t) {
    e.exports =
      Math.scale ||
      function (e, t, n, r, i) {
        return 0 === arguments.length || e != e || t != t || n != n || r != r || i != i
          ? NaN
          : e === 1 / 0 || e === -1 / 0
          ? e
          : ((e - t) * (i - r)) / (n - t) + r;
      };
  },
  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.writableStream = s(e.WritableStream)),
        (t.abortController = s(e.AbortController)),
        (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 i(e) {
        var t = r();
        if (!t) return !1;
        try {
          return (t.responseType = e), t.responseType === e;
        } catch (e) {}
        return !1;
      }
      var o = void 0 !== e.ArrayBuffer,
        a = o && s(e.ArrayBuffer.prototype.slice);
      function s(e) {
        return 'function' == typeof e;
      }
      (t.arraybuffer = t.fetch || (o && i('arraybuffer'))),
        (t.msstream = !t.fetch && a && i('ms-stream')),
        (t.mozchunkedarraybuffer = !t.fetch && o && i('moz-chunked-arraybuffer')),
        (t.overrideMimeType = t.fetch || (!!r() && s(r().overrideMimeType))),
        (t.vbArray = s(e.VBArray)),
        (n = null);
    }.call(this, n(11)));
  },
  function (e, t, n) {
    (function (e, r, i) {
      var o = n(188),
        a = n(39),
        s = n(72),
        u = (t.readyStates = { UNSENT: 0, OPENED: 1, HEADERS_RECEIVED: 2, LOADING: 3, DONE: 4 }),
        c = (t.IncomingMessage = function (t, n, a, u) {
          var c = this;
          if (
            (s.Readable.call(c),
            (c._mode = a),
            (c.headers = {}),
            (c.rawHeaders = []),
            (c.trailers = {}),
            (c.rawTrailers = []),
            c.on('end', function () {
              e.nextTick(function () {
                c.emit('close');
              });
            }),
            'fetch' === a)
          ) {
            if (
              ((c._fetchResponse = n),
              (c.url = n.url),
              (c.statusCode = n.status),
              (c.statusMessage = n.statusText),
              n.headers.forEach(function (e, t) {
                (c.headers[t.toLowerCase()] = e), c.rawHeaders.push(t, e);
              }),
              o.writableStream)
            ) {
              var p = new WritableStream({
                write: function (e) {
                  return new Promise(function (t, n) {
                    c._destroyed ? n() : c.push(new i(e)) ? t() : (c._resumeFetch = t);
                  });
                },
                close: function () {
                  r.clearTimeout(u), c._destroyed || c.push(null);
                },
                abort: function (e) {
                  c._destroyed || c.emit('error', e);
                },
              });
              try {
                return void n.body.pipeTo(p).catch(function (e) {
                  r.clearTimeout(u), c._destroyed || c.emit('error', e);
                });
              } catch (e) {}
            }
            var f = n.body.getReader();
            !(function e() {
              f.read()
                .then(function (t) {
                  if (!c._destroyed) {
                    if (t.done) return r.clearTimeout(u), void c.push(null);
                    c.push(new i(t.value)), e();
                  }
                })
                .catch(function (e) {
                  r.clearTimeout(u), c._destroyed || c.emit('error', e);
                });
            })();
          } else {
            if (
              ((c._xhr = t),
              (c._pos = 0),
              (c.url = t.responseURL),
              (c.statusCode = t.status),
              (c.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 === c.headers[n] && (c.headers[n] = []), c.headers[n].push(t[2]))
                      : void 0 !== c.headers[n]
                      ? (c.headers[n] += ', ' + t[2])
                      : (c.headers[n] = t[2]),
                      c.rawHeaders.push(t[1], t[2]);
                  }
                }),
              (c._charset = 'x-user-defined'),
              !o.overrideMimeType)
            ) {
              var l = c.rawHeaders['mime-type'];
              if (l) {
                var h = l.match(/;\s*charset=([^;])(;|$)/);
                h && (c._charset = h[1].toLowerCase());
              }
              c._charset || (c._charset = 'utf-8');
            }
          }
        });
      a(c, s.Readable),
        (c.prototype._read = function () {
          var e = this._resumeFetch;
          e && ((this._resumeFetch = null), e());
        }),
        (c.prototype._onXHRProgress = function () {
          var e = this,
            t = e._xhr,
            n = null;
          switch (e._mode) {
            case 'text:vbarray':
              if (t.readyState !== u.DONE) break;
              try {
                n = new r.VBArray(t.responseBody).toArray();
              } catch (e) {}
              if (null !== n) {
                e.push(new i(n));
                break;
              }
            case 'text':
              try {
                n = t.responseText;
              } catch (t) {
                e._mode = 'text:vbarray';
                break;
              }
              if (n.length > e._pos) {
                var o = n.substr(e._pos);
                if ('x-user-defined' === e._charset) {
                  for (var a = new i(o.length), s = 0; s < o.length; s++)
                    a[s] = 255 & o.charCodeAt(s);
                  e.push(a);
                } else e.push(o, e._charset);
                e._pos = n.length;
              }
              break;
            case 'arraybuffer':
              if (t.readyState !== u.DONE || !t.response) break;
              (n = t.response), e.push(new i(new Uint8Array(n)));
              break;
            case 'moz-chunked-arraybuffer':
              if (((n = t.response), t.readyState !== u.LOADING || !n)) break;
              e.push(new i(new Uint8Array(n)));
              break;
            case 'ms-stream':
              if (((n = t.response), t.readyState !== u.LOADING)) break;
              var c = new r.MSStreamReader();
              (c.onprogress = function () {
                c.result.byteLength > e._pos &&
                  (e.push(new i(new Uint8Array(c.result.slice(e._pos)))),
                  (e._pos = c.result.byteLength));
              }),
                (c.onload = function () {
                  e.push(null);
                }),
                c.readAsArrayBuffer(n);
          }
          e._xhr.readyState === u.DONE && 'ms-stream' !== e._mode && e.push(null);
        });
    }.call(this, n(16), n(11), n(38).Buffer));
  },
  function (e, t, n) {
    'use strict';
    (function (t, r) {
      var i = n(97);
      e.exports = b;
      var o,
        a = n(187);
      b.ReadableState = g;
      n(55).EventEmitter;
      var s = function (e, t) {
          return e.listeners(t).length;
        },
        u = n(191),
        c = n(98).Buffer,
        p = t.Uint8Array || function () {};
      var f = n(73);
      f.inherits = n(39);
      var l = n(447),
        h = void 0;
      h = l && l.debuglog ? l.debuglog('stream') : function () {};
      var d,
        m = n(448),
        y = n(192);
      f.inherits(b, u);
      var v = ['error', 'close', 'destroy', 'pause', 'resume'];
      function g(e, t) {
        e = e || {};
        var r = t instanceof (o = o || n(56));
        (this.objectMode = !!e.objectMode),
          r && (this.objectMode = this.objectMode || !!e.readableObjectMode);
        var i = e.highWaterMark,
          a = e.readableHighWaterMark,
          s = this.objectMode ? 16 : 16384;
        (this.highWaterMark = i || 0 === i ? i : r && (a || 0 === a) ? a : s),
          (this.highWaterMark = Math.floor(this.highWaterMark)),
          (this.buffer = new m()),
          (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 &&
            (d || (d = n(138).StringDecoder),
            (this.decoder = new d(e.encoding)),
            (this.encoding = e.encoding));
      }
      function b(e) {
        if (((o = o || n(56)), !(this instanceof b))) return new b(e);
        (this._readableState = new g(e, this)),
          (this.readable = !0),
          e &&
            ('function' == typeof e.read && (this._read = e.read),
            'function' == typeof e.destroy && (this._destroy = e.destroy)),
          u.call(this);
      }
      function w(e, t, n, r, i) {
        var o,
          a = e._readableState;
        null === t
          ? ((a.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), A(e);
            })(e, a))
          : (i ||
              (o = (function (e, t) {
                var n;
                (r = t),
                  c.isBuffer(r) ||
                    r instanceof p ||
                    'string' == typeof t ||
                    void 0 === t ||
                    e.objectMode ||
                    (n = new TypeError('Invalid non-string/buffer chunk'));
                var r;
                return n;
              })(a, t)),
            o
              ? e.emit('error', o)
              : a.objectMode || (t && t.length > 0)
              ? ('string' == typeof t ||
                  a.objectMode ||
                  Object.getPrototypeOf(t) === c.prototype ||
                  (t = (function (e) {
                    return c.from(e);
                  })(t)),
                r
                  ? a.endEmitted
                    ? e.emit('error', new Error('stream.unshift() after end event'))
                    : x(e, a, t, !0)
                  : a.ended
                  ? e.emit('error', new Error('stream.push() after EOF'))
                  : ((a.reading = !1),
                    a.decoder && !n
                      ? ((t = a.decoder.write(t)),
                        a.objectMode || 0 !== t.length ? x(e, a, t, !1) : C(e, a))
                      : x(e, a, t, !1)))
              : r || (a.reading = !1));
        return (function (e) {
          return !e.ended && (e.needReadable || e.length < e.highWaterMark || 0 === e.length);
        })(a);
      }
      function x(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 && A(e)),
          C(e, t);
      }
      Object.defineProperty(b.prototype, 'destroyed', {
        get: function () {
          return void 0 !== this._readableState && this._readableState.destroyed;
        },
        set: function (e) {
          this._readableState && (this._readableState.destroyed = e);
        },
      }),
        (b.prototype.destroy = y.destroy),
        (b.prototype._undestroy = y.undestroy),
        (b.prototype._destroy = function (e, t) {
          this.push(null), t(e);
        }),
        (b.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)),
            w(this, e, t, !1, n)
          );
        }),
        (b.prototype.unshift = function (e) {
          return w(this, e, null, !0, !1);
        }),
        (b.prototype.isPaused = function () {
          return !1 === this._readableState.flowing;
        }),
        (b.prototype.setEncoding = function (e) {
          return (
            d || (d = n(138).StringDecoder),
            (this._readableState.decoder = new d(e)),
            (this._readableState.encoding = e),
            this
          );
        });
      var E = 8388608;
      function S(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 = (function (e) {
                return (
                  e >= E
                    ? (e = E)
                    : (e--,
                      (e |= e >>> 1),
                      (e |= e >>> 2),
                      (e |= e >>> 4),
                      (e |= e >>> 8),
                      (e |= e >>> 16),
                      e++),
                  e
                );
              })(e)),
            e <= t.length ? e : t.ended ? t.length : ((t.needReadable = !0), 0));
      }
      function A(e) {
        var t = e._readableState;
        (t.needReadable = !1),
          t.emittedReadable ||
            (h('emitReadable', t.flowing),
            (t.emittedReadable = !0),
            t.sync ? i.nextTick(R, e) : R(e));
      }
      function R(e) {
        h('emit readable'), e.emit('readable'), P(e);
      }
      function C(e, t) {
        t.readingMore || ((t.readingMore = !0), i.nextTick(_, e, t));
      }
      function _(e, t) {
        for (
          var n = t.length;
          !t.reading &&
          !t.flowing &&
          !t.ended &&
          t.length < t.highWaterMark &&
          (h('maybeReadMore read 0'), e.read(0), n !== t.length);

        )
          n = t.length;
        t.readingMore = !1;
      }
      function O(e) {
        h('readable nexttick read 0'), e.read(0);
      }
      function T(e, t) {
        t.reading || (h('resume read 0'), e.read(0)),
          (t.resumeScheduled = !1),
          (t.awaitDrain = 0),
          e.emit('resume'),
          P(e),
          t.flowing && !t.reading && e.read(0);
      }
      function P(e) {
        var t = e._readableState;
        for (h('flow', t.flowing); t.flowing && null !== e.read(); );
      }
      function k(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,
                                i = n.data;
                              e -= i.length;
                              for (; (n = n.next); ) {
                                var o = n.data,
                                  a = e > o.length ? o.length : e;
                                if (
                                  (a === o.length ? (i += o) : (i += o.slice(0, e)), 0 === (e -= a))
                                ) {
                                  a === o.length
                                    ? (++r, n.next ? (t.head = n.next) : (t.head = t.tail = null))
                                    : ((t.head = n), (n.data = o.slice(a)));
                                  break;
                                }
                                ++r;
                              }
                              return (t.length -= r), i;
                            })(e, t)
                          : (function (e, t) {
                              var n = c.allocUnsafe(e),
                                r = t.head,
                                i = 1;
                              r.data.copy(n), (e -= r.data.length);
                              for (; (r = r.next); ) {
                                var o = r.data,
                                  a = e > o.length ? o.length : e;
                                if ((o.copy(n, n.length - e, 0, a), 0 === (e -= a))) {
                                  a === o.length
                                    ? (++i, r.next ? (t.head = r.next) : (t.head = t.tail = null))
                                    : ((t.head = r), (r.data = o.slice(a)));
                                  break;
                                }
                                ++i;
                              }
                              return (t.length -= i), n;
                            })(e, t));
                  return r;
                })(e, t.buffer, t.decoder)),
            n);
        var n;
      }
      function I(e) {
        var t = e._readableState;
        if (t.length > 0) throw new Error('"endReadable()" called on non-empty stream');
        t.endEmitted || ((t.ended = !0), i.nextTick(N, t, e));
      }
      function N(e, t) {
        e.endEmitted || 0 !== e.length || ((e.endEmitted = !0), (t.readable = !1), t.emit('end'));
      }
      function M(e, t) {
        for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
        return -1;
      }
      (b.prototype.read = function (e) {
        h('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 (
            h('read: emitReadable', t.length, t.ended),
            0 === t.length && t.ended ? I(this) : A(this),
            null
          );
        if (0 === (e = S(e, t)) && t.ended) return 0 === t.length && I(this), null;
        var r,
          i = t.needReadable;
        return (
          h('need readable', i),
          (0 === t.length || t.length - e < t.highWaterMark) &&
            h('length less than watermark', (i = !0)),
          t.ended || t.reading
            ? h('reading or ended', (i = !1))
            : i &&
              (h('do read'),
              (t.reading = !0),
              (t.sync = !0),
              0 === t.length && (t.needReadable = !0),
              this._read(t.highWaterMark),
              (t.sync = !1),
              t.reading || (e = S(n, t))),
          null === (r = e > 0 ? k(e, t) : null)
            ? ((t.needReadable = !0), (e = 0))
            : (t.length -= e),
          0 === t.length && (t.ended || (t.needReadable = !0), n !== e && t.ended && I(this)),
          null !== r && this.emit('data', r),
          r
        );
      }),
        (b.prototype._read = function (e) {
          this.emit('error', new Error('_read() is not implemented'));
        }),
        (b.prototype.pipe = function (e, t) {
          var n = this,
            o = this._readableState;
          switch (o.pipesCount) {
            case 0:
              o.pipes = e;
              break;
            case 1:
              o.pipes = [o.pipes, e];
              break;
            default:
              o.pipes.push(e);
          }
          (o.pipesCount += 1), h('pipe count=%d opts=%j', o.pipesCount, t);
          var u = (!t || !1 !== t.end) && e !== r.stdout && e !== r.stderr ? p : b;
          function c(t, r) {
            h('onunpipe'),
              t === n &&
                r &&
                !1 === r.hasUnpiped &&
                ((r.hasUnpiped = !0),
                h('cleanup'),
                e.removeListener('close', v),
                e.removeListener('finish', g),
                e.removeListener('drain', f),
                e.removeListener('error', y),
                e.removeListener('unpipe', c),
                n.removeListener('end', p),
                n.removeListener('end', b),
                n.removeListener('data', m),
                (l = !0),
                !o.awaitDrain || (e._writableState && !e._writableState.needDrain) || f());
          }
          function p() {
            h('onend'), e.end();
          }
          o.endEmitted ? i.nextTick(u) : n.once('end', u), e.on('unpipe', c);
          var f = (function (e) {
            return function () {
              var t = e._readableState;
              h('pipeOnDrain', t.awaitDrain),
                t.awaitDrain && t.awaitDrain--,
                0 === t.awaitDrain && s(e, 'data') && ((t.flowing = !0), P(e));
            };
          })(n);
          e.on('drain', f);
          var l = !1;
          var d = !1;
          function m(t) {
            h('ondata'),
              (d = !1),
              !1 !== e.write(t) ||
                d ||
                (((1 === o.pipesCount && o.pipes === e) ||
                  (o.pipesCount > 1 && -1 !== M(o.pipes, e))) &&
                  !l &&
                  (h('false write response, pause', n._readableState.awaitDrain),
                  n._readableState.awaitDrain++,
                  (d = !0)),
                n.pause());
          }
          function y(t) {
            h('onerror', t),
              b(),
              e.removeListener('error', y),
              0 === s(e, 'error') && e.emit('error', t);
          }
          function v() {
            e.removeListener('finish', g), b();
          }
          function g() {
            h('onfinish'), e.removeListener('close', v), b();
          }
          function b() {
            h('unpipe'), n.unpipe(e);
          }
          return (
            n.on('data', m),
            (function (e, t, n) {
              if ('function' == typeof e.prependListener) return e.prependListener(t, n);
              e._events && e._events[t]
                ? a(e._events[t])
                  ? e._events[t].unshift(n)
                  : (e._events[t] = [n, e._events[t]])
                : e.on(t, n);
            })(e, 'error', y),
            e.once('close', v),
            e.once('finish', g),
            e.emit('pipe', n),
            o.flowing || (h('pipe resume'), n.resume()),
            e
          );
        }),
        (b.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,
              i = t.pipesCount;
            (t.pipes = null), (t.pipesCount = 0), (t.flowing = !1);
            for (var o = 0; o < i; o++) r[o].emit('unpipe', this, n);
            return this;
          }
          var a = M(t.pipes, e);
          return -1 === a
            ? this
            : (t.pipes.splice(a, 1),
              (t.pipesCount -= 1),
              1 === t.pipesCount && (t.pipes = t.pipes[0]),
              e.emit('unpipe', this, n),
              this);
        }),
        (b.prototype.on = function (e, t) {
          var n = u.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 && A(this) : i.nextTick(O, this));
          }
          return n;
        }),
        (b.prototype.addListener = b.prototype.on),
        (b.prototype.resume = function () {
          var e = this._readableState;
          return (
            e.flowing ||
              (h('resume'),
              (e.flowing = !0),
              (function (e, t) {
                t.resumeScheduled || ((t.resumeScheduled = !0), i.nextTick(T, e, t));
              })(this, e)),
            this
          );
        }),
        (b.prototype.pause = function () {
          return (
            h('call pause flowing=%j', this._readableState.flowing),
            !1 !== this._readableState.flowing &&
              (h('pause'), (this._readableState.flowing = !1), this.emit('pause')),
            this
          );
        }),
        (b.prototype.wrap = function (e) {
          var t = this,
            n = this._readableState,
            r = !1;
          for (var i in (e.on('end', function () {
            if ((h('wrapped end'), n.decoder && !n.ended)) {
              var e = n.decoder.end();
              e && e.length && t.push(e);
            }
            t.push(null);
          }),
          e.on('data', function (i) {
            (h('wrapped data'), n.decoder && (i = n.decoder.write(i)), n.objectMode && null == i) ||
              ((n.objectMode || (i && i.length)) && (t.push(i) || ((r = !0), e.pause())));
          }),
          e))
            void 0 === this[i] &&
              'function' == typeof e[i] &&
              (this[i] = (function (t) {
                return function () {
                  return e[t].apply(e, arguments);
                };
              })(i));
          for (var o = 0; o < v.length; o++) e.on(v[o], this.emit.bind(this, v[o]));
          return (
            (this._read = function (t) {
              h('wrapped _read', t), r && ((r = !1), e.resume());
            }),
            this
          );
        }),
        Object.defineProperty(b.prototype, 'readableHighWaterMark', {
          enumerable: !1,
          get: function () {
            return this._readableState.highWaterMark;
          },
        }),
        (b._fromList = k);
    }.call(this, n(11), n(16)));
  },
  function (e, t, n) {
    e.exports = n(55).EventEmitter;
  },
  function (e, t, n) {
    'use strict';
    var r = n(97);
    function i(e, t) {
      e.emit('error', t);
    }
    e.exports = {
      destroy: function (e, t) {
        var n = this,
          o = this._readableState && this._readableState.destroyed,
          a = this._writableState && this._writableState.destroyed;
        return o || a
          ? (t
              ? t(e)
              : !e ||
                (this._writableState && this._writableState.errorEmitted) ||
                r.nextTick(i, this, e),
            this)
          : (this._readableState && (this._readableState.destroyed = !0),
            this._writableState && (this._writableState.destroyed = !0),
            this._destroy(e || null, function (e) {
              !t && e
                ? (r.nextTick(i, n, e), n._writableState && (n._writableState.errorEmitted = !0))
                : t && t(e);
            }),
            this);
      },
      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';
    e.exports = a;
    var r = n(56),
      i = n(73);
    function o(e, t) {
      var n = this._transformState;
      n.transforming = !1;
      var r = n.writecb;
      if (!r) return this.emit('error', new Error('write callback called multiple times'));
      (n.writechunk = null), (n.writecb = null), null != t && this.push(t), r(e);
      var i = this._readableState;
      (i.reading = !1),
        (i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
    }
    function a(e) {
      if (!(this instanceof a)) return new a(e);
      r.call(this, e),
        (this._transformState = {
          afterTransform: o.bind(this),
          needTransform: !1,
          transforming: !1,
          writecb: null,
          writechunk: null,
          writeencoding: null,
        }),
        (this._readableState.needReadable = !0),
        (this._readableState.sync = !1),
        e &&
          ('function' == typeof e.transform && (this._transform = e.transform),
          'function' == typeof e.flush && (this._flush = e.flush)),
        this.on('prefinish', s);
    }
    function s() {
      var e = this;
      'function' == typeof this._flush
        ? this._flush(function (t, n) {
            u(e, t, n);
          })
        : u(this, null, null);
    }
    function u(e, t, n) {
      if (t) return e.emit('error', t);
      if ((null != n && e.push(n), e._writableState.length))
        throw new Error('Calling transform done when ws.length != 0');
      if (e._transformState.transforming)
        throw new Error('Calling transform done when still transforming');
      return e.push(null);
    }
    (i.inherits = n(39)),
      i.inherits(a, r),
      (a.prototype.push = function (e, t) {
        return (this._transformState.needTransform = !1), r.prototype.push.call(this, e, t);
      }),
      (a.prototype._transform = function (e, t, n) {
        throw new Error('_transform() is not implemented');
      }),
      (a.prototype._write = function (e, t, n) {
        var r = this._transformState;
        if (((r.writecb = n), (r.writechunk = e), (r.writeencoding = t), !r.transforming)) {
          var i = this._readableState;
          (r.needTransform || i.needReadable || i.length < i.highWaterMark) &&
            this._read(i.highWaterMark);
        }
      }),
      (a.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);
      }),
      (a.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';
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(456),
      o = n(457);
    function a() {
      (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 = w),
      (t.resolve = function (e, t) {
        return w(e, !1, !0).resolve(t);
      }),
      (t.resolveObject = function (e, t) {
        return e ? w(e, !1, !0).resolveObject(t) : t;
      }),
      (t.format = function (e) {
        o.isString(e) && (e = w(e));
        return e instanceof a ? e.format() : a.prototype.format.call(e);
      }),
      (t.Url = a);
    var s = /^([a-z0-9.+-]+:)/i,
      u = /:[0-9]*$/,
      c = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
      p = ['{', '}', '|', '\\', '^', '`'].concat(['<', '>', '"', '`', ' ', '\r', '\n', '\t']),
      f = ["'"].concat(p),
      l = ['%', '/', '?', ';', '#'].concat(f),
      h = ['/', '?', '#'],
      d = /^[+a-z0-9A-Z_-]{0,63}$/,
      m = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
      y = { javascript: !0, 'javascript:': !0 },
      v = { javascript: !0, 'javascript:': !0 },
      g = {
        http: !0,
        https: !0,
        ftp: !0,
        gopher: !0,
        file: !0,
        'http:': !0,
        'https:': !0,
        'ftp:': !0,
        'gopher:': !0,
        'file:': !0,
      },
      b = n(458);
    function w(e, t, n) {
      if (e && o.isObject(e) && e instanceof a) return e;
      var r = new a();
      return r.parse(e, t, n), r;
    }
    (a.prototype.parse = function (e, t, n) {
      if (!o.isString(e)) throw new TypeError("Parameter 'url' must be a string, not " + r(e));
      var a = e.indexOf('?'),
        u = -1 !== a && a < e.indexOf('#') ? '?' : '#',
        p = e.split(u);
      p[0] = p[0].replace(/\\/g, '/');
      var w = (e = p.join(u));
      if (((w = w.trim()), !n && 1 === e.split('#').length)) {
        var x = c.exec(w);
        if (x)
          return (
            (this.path = w),
            (this.href = w),
            (this.pathname = x[1]),
            x[2]
              ? ((this.search = x[2]),
                (this.query = t ? b.parse(this.search.substr(1)) : this.search.substr(1)))
              : t && ((this.search = ''), (this.query = {})),
            this
          );
      }
      var E = s.exec(w);
      if (E) {
        var S = (E = E[0]).toLowerCase();
        (this.protocol = S), (w = w.substr(E.length));
      }
      if (n || E || w.match(/^\/\/[^@\/]+@[^@\/]+/)) {
        var A = '//' === w.substr(0, 2);
        !A || (E && v[E]) || ((w = w.substr(2)), (this.slashes = !0));
      }
      if (!v[E] && (A || (E && !g[E]))) {
        for (var R, C, _ = -1, O = 0; O < h.length; O++) {
          -1 !== (T = w.indexOf(h[O])) && (-1 === _ || T < _) && (_ = T);
        }
        -1 !== (C = -1 === _ ? w.lastIndexOf('@') : w.lastIndexOf('@', _)) &&
          ((R = w.slice(0, C)), (w = w.slice(C + 1)), (this.auth = decodeURIComponent(R))),
          (_ = -1);
        for (O = 0; O < l.length; O++) {
          var T;
          -1 !== (T = w.indexOf(l[O])) && (-1 === _ || T < _) && (_ = T);
        }
        -1 === _ && (_ = w.length),
          (this.host = w.slice(0, _)),
          (w = w.slice(_)),
          this.parseHost(),
          (this.hostname = this.hostname || '');
        var P = '[' === this.hostname[0] && ']' === this.hostname[this.hostname.length - 1];
        if (!P)
          for (var k = this.hostname.split(/\./), I = ((O = 0), k.length); O < I; O++) {
            var N = k[O];
            if (N && !N.match(d)) {
              for (var M = '', D = 0, j = N.length; D < j; D++)
                N.charCodeAt(D) > 127 ? (M += 'x') : (M += N[D]);
              if (!M.match(d)) {
                var L = k.slice(0, O),
                  B = k.slice(O + 1),
                  F = N.match(m);
                F && (L.push(F[1]), B.unshift(F[2])),
                  B.length && (w = '/' + B.join('.') + w),
                  (this.hostname = L.join('.'));
                break;
              }
            }
          }
        this.hostname.length > 255
          ? (this.hostname = '')
          : (this.hostname = this.hostname.toLowerCase()),
          P || (this.hostname = i.toASCII(this.hostname));
        var U = this.port ? ':' + this.port : '',
          V = this.hostname || '';
        (this.host = V + U),
          (this.href += this.host),
          P &&
            ((this.hostname = this.hostname.substr(1, this.hostname.length - 2)),
            '/' !== w[0] && (w = '/' + w));
      }
      if (!y[S])
        for (O = 0, I = f.length; O < I; O++) {
          var q = f[O];
          if (-1 !== w.indexOf(q)) {
            var z = encodeURIComponent(q);
            z === q && (z = escape(q)), (w = w.split(q).join(z));
          }
        }
      var $ = w.indexOf('#');
      -1 !== $ && ((this.hash = w.substr($)), (w = w.slice(0, $)));
      var G = w.indexOf('?');
      if (
        (-1 !== G
          ? ((this.search = w.substr(G)),
            (this.query = w.substr(G + 1)),
            t && (this.query = b.parse(this.query)),
            (w = w.slice(0, G)))
          : t && ((this.search = ''), (this.query = {})),
        w && (this.pathname = w),
        g[S] && this.hostname && !this.pathname && (this.pathname = '/'),
        this.pathname || this.search)
      ) {
        U = this.pathname || '';
        var W = this.search || '';
        this.path = U + W;
      }
      return (this.href = this.format()), this;
    }),
      (a.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,
          a = '';
        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 &&
            o.isObject(this.query) &&
            Object.keys(this.query).length &&
            (a = b.stringify(this.query));
        var s = this.search || (a && '?' + a) || '';
        return (
          t && ':' !== t.substr(-1) && (t += ':'),
          this.slashes || ((!t || g[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
        );
      }),
      (a.prototype.resolve = function (e) {
        return this.resolveObject(w(e, !1, !0)).format();
      }),
      (a.prototype.resolveObject = function (e) {
        if (o.isString(e)) {
          var t = new a();
          t.parse(e, !1, !0), (e = t);
        }
        for (var n = new a(), r = Object.keys(this), i = 0; i < r.length; i++) {
          var s = r[i];
          n[s] = this[s];
        }
        if (((n.hash = e.hash), '' === e.href)) return (n.href = n.format()), n;
        if (e.slashes && !e.protocol) {
          for (var u = Object.keys(e), c = 0; c < u.length; c++) {
            var p = u[c];
            'protocol' !== p && (n[p] = e[p]);
          }
          return (
            g[n.protocol] && n.hostname && !n.pathname && (n.path = n.pathname = '/'),
            (n.href = n.format()),
            n
          );
        }
        if (e.protocol && e.protocol !== n.protocol) {
          if (!g[e.protocol]) {
            for (var f = Object.keys(e), l = 0; l < f.length; l++) {
              var h = f[l];
              n[h] = e[h];
            }
            return (n.href = n.format()), n;
          }
          if (((n.protocol = e.protocol), e.host || v[e.protocol])) n.pathname = e.pathname;
          else {
            for (var d = (e.pathname || '').split('/'); d.length && !(e.host = d.shift()); );
            e.host || (e.host = ''),
              e.hostname || (e.hostname = ''),
              '' !== d[0] && d.unshift(''),
              d.length < 2 && d.unshift(''),
              (n.pathname = d.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 m = n.pathname || '',
              y = n.search || '';
            n.path = m + y;
          }
          return (n.slashes = n.slashes || e.slashes), (n.href = n.format()), n;
        }
        var b = n.pathname && '/' === n.pathname.charAt(0),
          w = e.host || (e.pathname && '/' === e.pathname.charAt(0)),
          x = w || b || (n.host && e.pathname),
          E = x,
          S = (n.pathname && n.pathname.split('/')) || [],
          A = ((d = (e.pathname && e.pathname.split('/')) || []), n.protocol && !g[n.protocol]);
        if (
          (A &&
            ((n.hostname = ''),
            (n.port = null),
            n.host && ('' === S[0] ? (S[0] = n.host) : S.unshift(n.host)),
            (n.host = ''),
            e.protocol &&
              ((e.hostname = null),
              (e.port = null),
              e.host && ('' === d[0] ? (d[0] = e.host) : d.unshift(e.host)),
              (e.host = null)),
            (x = x && ('' === d[0] || '' === S[0]))),
          w)
        )
          (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),
            (S = d);
        else if (d.length)
          S || (S = []), S.pop(), (S = S.concat(d)), (n.search = e.search), (n.query = e.query);
        else if (!o.isNullOrUndefined(e.search)) {
          if (A)
            (n.hostname = n.host = S.shift()),
              (T = !!(n.host && n.host.indexOf('@') > 0) && n.host.split('@')) &&
                ((n.auth = T.shift()), (n.host = n.hostname = T.shift()));
          return (
            (n.search = e.search),
            (n.query = e.query),
            (o.isNull(n.pathname) && o.isNull(n.search)) ||
              (n.path = (n.pathname ? n.pathname : '') + (n.search ? n.search : '')),
            (n.href = n.format()),
            n
          );
        }
        if (!S.length)
          return (
            (n.pathname = null),
            n.search ? (n.path = '/' + n.search) : (n.path = null),
            (n.href = n.format()),
            n
          );
        for (
          var R = S.slice(-1)[0],
            C = ((n.host || e.host || S.length > 1) && ('.' === R || '..' === R)) || '' === R,
            _ = 0,
            O = S.length;
          O >= 0;
          O--
        )
          '.' === (R = S[O])
            ? S.splice(O, 1)
            : '..' === R
            ? (S.splice(O, 1), _++)
            : _ && (S.splice(O, 1), _--);
        if (!x && !E) for (; _--; _) S.unshift('..');
        !x || '' === S[0] || (S[0] && '/' === S[0].charAt(0)) || S.unshift(''),
          C && '/' !== S.join('/').substr(-1) && S.push('');
        var T,
          P = '' === S[0] || (S[0] && '/' === S[0].charAt(0));
        A &&
          ((n.hostname = n.host = P ? '' : S.length ? S.shift() : ''),
          (T = !!(n.host && n.host.indexOf('@') > 0) && n.host.split('@')) &&
            ((n.auth = T.shift()), (n.host = n.hostname = T.shift())));
        return (
          (x = x || (n.host && S.length)) && !P && S.unshift(''),
          S.length ? (n.pathname = S.join('/')) : ((n.pathname = null), (n.path = null)),
          (o.isNull(n.pathname) && o.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
        );
      }),
      (a.prototype.parseHost = function () {
        var e = this.host,
          t = u.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) {
    (function (t) {
      e.exports = t;
    }.call(this, {}));
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o = n(40),
      a = ['trace', 'debug', 'info', 'warn', 'error', 'fatal'];
    function s(e) {
      return function (t) {
        return !(function (e, t) {
          return a.indexOf(t) < a.indexOf(e);
        })(e, t);
      };
    }
    function u(e) {
      return a.includes(e);
    }
    function c(e) {
      return u(e)
        ? s(e)
        : function () {
            return !0;
          };
    }
    function p() {
      return (p = i(
        regeneratorRuntime.mark(function e() {
          var t;
          return regeneratorRuntime.wrap(function (e) {
            for (;;)
              switch ((e.prev = e.next)) {
                case 0:
                  return (e.next = 2), o.readConfig('consoleLevel');
                case 2:
                  return (t = e.sent), e.abrupt('return', c(t));
                case 4:
                case 'end':
                  return e.stop();
              }
          }, e);
        }),
      )).apply(this, arguments);
    }
    function f() {
      return (f = i(
        regeneratorRuntime.mark(function e() {
          var t;
          return regeneratorRuntime.wrap(function (e) {
            for (;;)
              switch ((e.prev = e.next)) {
                case 0:
                  return (e.next = 2), o.readConfig('logLevel');
                case 2:
                  return (t = e.sent), e.abrupt('return', c(t));
                case 4:
                case 'end':
                  return e.stop();
              }
          }, e);
        }),
      )).apply(this, arguments);
    }
    e.exports = {
      getConsoleGuard: function () {
        return p.apply(this, arguments);
      },
      getWriterGuard: function () {
        return f.apply(this, arguments);
      },
      validLogType: u,
      formatTime: function (e, t, n) {
        var r = 1 === e.toString().length ? '0'.concat(e) : e,
          i = 1 === t.toString().length ? '0'.concat(t) : t,
          o = 1 === n.toString().length ? '0'.concat(n) : n;
        return ''.concat(r, ':').concat(i, ':').concat(o);
      },
    };
  },
  function (e, t) {
    function n(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);
      }
    }
    var r,
      i = (function () {
        function e(t) {
          !(function (e, t) {
            if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
          })(this, e),
            (this.data = t),
            (this.configData = this.data.read('config_data'));
        }
        var t, r, i;
        return (
          (t = e),
          (r = [
            {
              key: 'incrementStandardLog',
              value: function () {
                var e = this;
                this.configData.then(function (t) {
                  var n = t.config;
                  (n.standardLogs += 1), e.data.write('config_data/config', n);
                });
              },
            },
            {
              key: 'incrementCurrentTableID',
              value: function (e) {
                var t = this;
                this.configData.then(function (n) {
                  var r = n.config;
                  (r.processLogs.find(function (t) {
                    return t.id === e;
                  }).currentTableID += 1),
                    t.data.write('config_data/config', r);
                });
              },
            },
            {
              key: 'createProcessDataObject',
              value: function (e) {
                var t = this,
                  n = { id: e, tables: 1, currentLogs: 0, currentTableID: 0 };
                this.configData.then(function (e) {
                  var r = e.config;
                  r.processLogs.push(n), t.data.write('config_data/config', r);
                });
              },
            },
            {
              key: 'addProcessLog',
              value: function (e) {
                var t = this;
                this.configData.then(function (n) {
                  var r = n.config;
                  (r.processLogs.find(function (t) {
                    return t.id === e;
                  }).currentLogs += 1),
                    t.data.write('config_data/config', r);
                });
              },
            },
            {
              key: 'addProcessTable',
              value: function (e) {
                var t = this;
                this.configData.then(function (n) {
                  var r = n.config;
                  (r.processLogs.find(function (t) {
                    return t.id === e;
                  }).tables += 1),
                    t.data.write('config_data/config', r);
                });
              },
            },
            {
              key: 'clearProcessTables',
              value: function (e) {
                var t = this;
                this.configData.then(function (n) {
                  var r = n.config;
                  (r.processLogs.find(function (t) {
                    return t.id === e;
                  }).tables = 0),
                    t.data.write('config_data/config', r);
                });
              },
            },
            {
              key: 'decreaseProcessTables',
              value: function (e, t) {
                var n = this;
                this.configData.then(function (r) {
                  var i = r.config;
                  (i.processLogs.find(function (t) {
                    return t.id === e;
                  }).tables -= t),
                    n.data.write('config_data/config', i);
                });
              },
            },
            {
              key: 'clearStandardLogs',
              value: function () {
                var e = this;
                this.configData.then(function (t) {
                  var n = t.config;
                  (n.standardLogs = 0), e.data.write('config_data/config', n);
                });
              },
            },
            {
              key: 'clearProcessLogs',
              value: function (e) {
                var t = this;
                this.configData.then(function (n) {
                  var r = n.config;
                  (r.processLogs.find(function (t) {
                    return t.id === e;
                  }).currentLogs = 0),
                    t.data.write('config_data/config', r);
                });
              },
            },
          ]) && n(t.prototype, r),
          i && n(t, i),
          e
        );
      })();
    e.exports = {
      init: function (e) {
        return (r = new i(e));
      },
      getInstance: function () {
        return r;
      },
    };
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o,
      a = n(8).http(),
      s =
        (n(8).data(),
        {
          start: function () {
            var e = this;
            a.get(
              ''.concat('/capabilities/'),
              { cors: !0 },
              i(
                regeneratorRuntime.mark(function t() {
                  return regeneratorRuntime.wrap(function (t) {
                    for (;;)
                      switch ((t.prev = t.next)) {
                        case 0:
                          return t.abrupt('return', e.getOwnCapabilities());
                        case 1:
                        case 'end':
                          return t.stop();
                      }
                  }, t);
                }),
              ),
            );
          },
          getOwnCapabilities:
            ((o = i(
              regeneratorRuntime.mark(function e() {
                return regeneratorRuntime.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return e.abrupt('return', '["has-screen"]');
                      case 1:
                      case 'end':
                        return e.stop();
                    }
                }, e);
              }),
            )),
            function () {
              return o.apply(this, arguments);
            }),
        });
    e.exports = s;
  },
  function (e, t, n) {
    (function (e, n, r, i) {
      var o, a, s, u;
      function c(e) {
        return (c =
          '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;
              })(e);
      }
      (u = function (t) {
        'use strict';
        function o(e, t) {
          t |= 0;
          for (var n = Math.max(e.length - t, 0), r = Array(n), i = 0; i < n; i++) r[i] = e[t + i];
          return r;
        }
        var a = function (e) {
            var t = o(arguments, 1);
            return function () {
              var n = o(arguments);
              return e.apply(null, t.concat(n));
            };
          },
          s = function (e) {
            return function () {
              var t = o(arguments),
                n = t.pop();
              e.call(this, t, n);
            };
          };
        function u(e) {
          var t = c(e);
          return null != e && ('object' == t || 'function' == t);
        }
        var p = 'function' == typeof e && e,
          f = 'object' === (void 0 === n ? 'undefined' : c(n)) && 'function' == typeof n.nextTick;
        function l(e) {
          setTimeout(e, 0);
        }
        function h(e) {
          return function (t) {
            var n = o(arguments, 1);
            e(function () {
              t.apply(null, n);
            });
          };
        }
        var d = h(p ? e : f ? n.nextTick : l);
        function m(e) {
          return s(function (t, n) {
            var r;
            try {
              r = e.apply(this, t);
            } catch (e) {
              return n(e);
            }
            u(r) && 'function' == typeof r.then
              ? r.then(
                  function (e) {
                    y(n, null, e);
                  },
                  function (e) {
                    y(n, e.message ? e : new Error(e));
                  },
                )
              : n(null, r);
          });
        }
        function y(e, t, n) {
          try {
            e(t, n);
          } catch (e) {
            d(v, e);
          }
        }
        function v(e) {
          throw e;
        }
        var g = 'function' == typeof Symbol;
        function b(e) {
          return g && 'AsyncFunction' === e[Symbol.toStringTag];
        }
        function w(e) {
          return b(e) ? m(e) : e;
        }
        function x(e) {
          return function (t) {
            var n = o(arguments, 1),
              r = s(function (n, r) {
                var i = this;
                return e(
                  t,
                  function (e, t) {
                    w(e).apply(i, n.concat(t));
                  },
                  r,
                );
              });
            return n.length ? r.apply(this, n) : r;
          };
        }
        var E = 'object' == (void 0 === r ? 'undefined' : c(r)) && r && r.Object === Object && r,
          S =
            'object' == ('undefined' == typeof self ? 'undefined' : c(self)) &&
            self &&
            self.Object === Object &&
            self,
          A = E || S || Function('return this')(),
          R = A.Symbol,
          C = Object.prototype,
          _ = C.hasOwnProperty,
          O = C.toString,
          T = R ? R.toStringTag : void 0,
          P = Object.prototype.toString,
          k = '[object Null]',
          I = '[object Undefined]',
          N = R ? R.toStringTag : void 0;
        function M(e) {
          return null == e
            ? void 0 === e
              ? I
              : k
            : N && N in Object(e)
            ? (function (e) {
                var t = _.call(e, T),
                  n = e[T];
                try {
                  e[T] = void 0;
                  var r = !0;
                } catch (e) {}
                var i = O.call(e);
                return r && (t ? (e[T] = n) : delete e[T]), i;
              })(e)
            : (function (e) {
                return P.call(e);
              })(e);
        }
        var D = '[object AsyncFunction]',
          j = '[object Function]',
          L = '[object GeneratorFunction]',
          B = '[object Proxy]',
          F = 9007199254740991;
        function U(e) {
          return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= F;
        }
        function V(e) {
          return (
            null != e &&
            U(e.length) &&
            !(function (e) {
              if (!u(e)) return !1;
              var t = M(e);
              return t == j || t == L || t == D || t == B;
            })(e)
          );
        }
        var q = {};
        function z() {}
        function $(e) {
          return function () {
            if (null !== e) {
              var t = e;
              (e = null), t.apply(this, arguments);
            }
          };
        }
        var G = 'function' == typeof Symbol && Symbol.iterator,
          W = function (e) {
            return G && e[G] && e[G]();
          };
        function H(e) {
          return null != e && 'object' == c(e);
        }
        var Y = '[object Arguments]';
        function J(e) {
          return H(e) && M(e) == Y;
        }
        var K = Object.prototype,
          X = K.hasOwnProperty,
          Q = K.propertyIsEnumerable,
          Z = J(
            (function () {
              return arguments;
            })(),
          )
            ? J
            : function (e) {
                return H(e) && X.call(e, 'callee') && !Q.call(e, 'callee');
              },
          ee = Array.isArray,
          te = 'object' == c(t) && t && !t.nodeType && t,
          ne = te && 'object' == c(i) && i && !i.nodeType && i,
          re = ne && ne.exports === te ? A.Buffer : void 0,
          ie =
            (re ? re.isBuffer : void 0) ||
            function () {
              return !1;
            },
          oe = 9007199254740991,
          ae = /^(?:0|[1-9]\d*)$/;
        function se(e, t) {
          var n = c(e);
          return (
            !!(t = null == t ? oe : t) &&
            ('number' == n || ('symbol' != n && ae.test(e))) &&
            e > -1 &&
            e % 1 == 0 &&
            e < t
          );
        }
        var ue = {};
        (ue['[object Float32Array]'] =
          ue['[object Float64Array]'] =
          ue['[object Int8Array]'] =
          ue['[object Int16Array]'] =
          ue['[object Int32Array]'] =
          ue['[object Uint8Array]'] =
          ue['[object Uint8ClampedArray]'] =
          ue['[object Uint16Array]'] =
          ue['[object Uint32Array]'] =
            !0),
          (ue['[object Arguments]'] =
            ue['[object Array]'] =
            ue['[object ArrayBuffer]'] =
            ue['[object Boolean]'] =
            ue['[object DataView]'] =
            ue['[object Date]'] =
            ue['[object Error]'] =
            ue['[object Function]'] =
            ue['[object Map]'] =
            ue['[object Number]'] =
            ue['[object Object]'] =
            ue['[object RegExp]'] =
            ue['[object Set]'] =
            ue['[object String]'] =
            ue['[object WeakMap]'] =
              !1);
        var ce,
          pe = 'object' == c(t) && t && !t.nodeType && t,
          fe = pe && 'object' == c(i) && i && !i.nodeType && i,
          le = fe && fe.exports === pe && E.process,
          he = (function () {
            try {
              var e = fe && fe.require && fe.require('util').types;
              return e || (le && le.binding && le.binding('util'));
            } catch (e) {}
          })(),
          de = he && he.isTypedArray,
          me = de
            ? ((ce = de),
              function (e) {
                return ce(e);
              })
            : function (e) {
                return H(e) && U(e.length) && !!ue[M(e)];
              },
          ye = Object.prototype.hasOwnProperty;
        function ve(e, t) {
          var n = ee(e),
            r = !n && Z(e),
            i = !n && !r && ie(e),
            o = !n && !r && !i && me(e),
            a = n || r || i || o,
            s = a
              ? (function (e, t) {
                  for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n);
                  return r;
                })(e.length, String)
              : [],
            u = s.length;
          for (var c in e)
            (!t && !ye.call(e, c)) ||
              (a &&
                ('length' == c ||
                  (i && ('offset' == c || 'parent' == c)) ||
                  (o && ('buffer' == c || 'byteLength' == c || 'byteOffset' == c)) ||
                  se(c, u))) ||
              s.push(c);
          return s;
        }
        var ge = Object.prototype,
          be = (function (e, t) {
            return function (n) {
              return e(t(n));
            };
          })(Object.keys, Object),
          we = Object.prototype.hasOwnProperty;
        function xe(e) {
          if (
            ((n = (t = e) && t.constructor), t !== (('function' == typeof n && n.prototype) || ge))
          )
            return be(e);
          var t,
            n,
            r = [];
          for (var i in Object(e)) we.call(e, i) && 'constructor' != i && r.push(i);
          return r;
        }
        function Ee(e) {
          return V(e) ? ve(e) : xe(e);
        }
        function Se(e) {
          if (V(e))
            return (function (e) {
              var t = -1,
                n = e.length;
              return function () {
                return ++t < n ? { value: e[t], key: t } : null;
              };
            })(e);
          var t,
            n,
            r,
            i,
            o = W(e);
          return o
            ? (function (e) {
                var t = -1;
                return function () {
                  var n = e.next();
                  return n.done ? null : (t++, { value: n.value, key: t });
                };
              })(o)
            : ((n = Ee((t = e))),
              (r = -1),
              (i = n.length),
              function () {
                var e = n[++r];
                return r < i ? { value: t[e], key: e } : null;
              });
        }
        function Ae(e) {
          return function () {
            if (null === e) throw new Error('Callback was already called.');
            var t = e;
            (e = null), t.apply(this, arguments);
          };
        }
        function Re(e) {
          return function (t, n, r) {
            if (((r = $(r || z)), e <= 0 || !t)) return r(null);
            var i = Se(t),
              o = !1,
              a = 0,
              s = !1;
            function u(e, t) {
              if (((a -= 1), e)) (o = !0), r(e);
              else {
                if (t === q || (o && a <= 0)) return (o = !0), r(null);
                s || c();
              }
            }
            function c() {
              for (s = !0; a < e && !o; ) {
                var t = i();
                if (null === t) return (o = !0), void (a <= 0 && r(null));
                (a += 1), n(t.value, t.key, Ae(u));
              }
              s = !1;
            }
            c();
          };
        }
        function Ce(e, t, n, r) {
          Re(t)(e, w(n), r);
        }
        function _e(e, t) {
          return function (n, r, i) {
            return e(n, t, r, i);
          };
        }
        function Oe(e, t, n) {
          n = $(n || z);
          var r = 0,
            i = 0,
            o = e.length;
          function a(e, t) {
            e ? n(e) : (++i !== o && t !== q) || n(null);
          }
          for (0 === o && n(null); r < o; r++) t(e[r], r, Ae(a));
        }
        var Te = _e(Ce, 1 / 0),
          Pe = function (e, t, n) {
            (V(e) ? Oe : Te)(e, w(t), n);
          };
        function ke(e) {
          return function (t, n, r) {
            return e(Pe, t, w(n), r);
          };
        }
        function Ie(e, t, n, r) {
          (r = r || z), (t = t || []);
          var i = [],
            o = 0,
            a = w(n);
          e(
            t,
            function (e, t, n) {
              var r = o++;
              a(e, function (e, t) {
                (i[r] = t), n(e);
              });
            },
            function (e) {
              r(e, i);
            },
          );
        }
        var Ne = ke(Ie),
          Me = x(Ne);
        function De(e) {
          return function (t, n, r, i) {
            return e(Re(n), t, w(r), i);
          };
        }
        var je = De(Ie),
          Le = _e(je, 1),
          Be = x(Le);
        function Fe(e, t) {
          for (var n = -1, r = null == e ? 0 : e.length; ++n < r && !1 !== t(e[n], n, e); );
          return e;
        }
        var Ue,
          Ve = function (e, t, n) {
            for (var r = -1, i = Object(e), o = n(e), a = o.length; a--; ) {
              var s = o[Ue ? a : ++r];
              if (!1 === t(i[s], s, i)) break;
            }
            return e;
          };
        function qe(e, t) {
          return e && Ve(e, t, Ee);
        }
        function ze(e) {
          return e != e;
        }
        function $e(e, t, n) {
          return t == t
            ? (function (e, t, n) {
                for (var r = n - 1, i = e.length; ++r < i; ) if (e[r] === t) return r;
                return -1;
              })(e, t, n)
            : (function (e, t, n, r) {
                for (var i = e.length, o = n + (r ? 1 : -1); r ? o-- : ++o < i; )
                  if (t(e[o], o, e)) return o;
                return -1;
              })(e, ze, n);
        }
        var Ge = function (e, t, n) {
          'function' == typeof t && ((n = t), (t = null)), (n = $(n || z));
          var r = Ee(e).length;
          if (!r) return n(null);
          t || (t = r);
          var i = {},
            a = 0,
            s = !1,
            u = Object.create(null),
            c = [],
            p = [],
            f = {};
          function l(e, t) {
            c.push(function () {
              !(function (e, t) {
                if (s) return;
                var r = Ae(function (t, r) {
                  if ((a--, arguments.length > 2 && (r = o(arguments, 1)), t)) {
                    var c = {};
                    qe(i, function (e, t) {
                      c[t] = e;
                    }),
                      (c[e] = r),
                      (s = !0),
                      (u = Object.create(null)),
                      n(t, c);
                  } else (i[e] = r), d(e);
                });
                a++;
                var c = w(t[t.length - 1]);
                t.length > 1 ? c(i, r) : c(r);
              })(e, t);
            });
          }
          function h() {
            if (0 === c.length && 0 === a) return n(null, i);
            for (; c.length && a < t; ) {
              c.shift()();
            }
          }
          function d(e) {
            Fe(u[e] || [], function (e) {
              e();
            }),
              h();
          }
          function m(t) {
            var n = [];
            return (
              qe(e, function (e, r) {
                ee(e) && $e(e, t, 0) >= 0 && n.push(r);
              }),
              n
            );
          }
          qe(e, function (t, n) {
            if (!ee(t)) return l(n, [t]), void p.push(n);
            var r = t.slice(0, t.length - 1),
              i = r.length;
            if (0 === i) return l(n, t), void p.push(n);
            (f[n] = i),
              Fe(r, function (o) {
                if (!e[o])
                  throw new Error(
                    'async.auto task `' +
                      n +
                      '` has a non-existent dependency `' +
                      o +
                      '` in ' +
                      r.join(', '),
                  );
                !(function (e, t) {
                  var n = u[e];
                  n || (n = u[e] = []);
                  n.push(t);
                })(o, function () {
                  0 === --i && l(n, t);
                });
              });
          }),
            (function () {
              var e,
                t = 0;
              for (; p.length; )
                (e = p.pop()),
                  t++,
                  Fe(m(e), function (e) {
                    0 == --f[e] && p.push(e);
                  });
              if (t !== r)
                throw new Error('async.auto cannot execute tasks due to a recursive dependency');
            })(),
            h();
        };
        function We(e, t) {
          for (var n = -1, r = null == e ? 0 : e.length, i = Array(r); ++n < r; )
            i[n] = t(e[n], n, e);
          return i;
        }
        var He = '[object Symbol]',
          Ye = 1 / 0,
          Je = R ? R.prototype : void 0,
          Ke = Je ? Je.toString : void 0;
        function Xe(e) {
          if ('string' == typeof e) return e;
          if (ee(e)) return We(e, Xe) + '';
          if (
            (function (e) {
              return 'symbol' == c(e) || (H(e) && M(e) == He);
            })(e)
          )
            return Ke ? Ke.call(e) : '';
          var t = e + '';
          return '0' == t && 1 / e == -Ye ? '-0' : t;
        }
        function Qe(e, t, n) {
          var r = e.length;
          return (
            (n = void 0 === n ? r : n),
            !t && n >= r
              ? e
              : (function (e, t, n) {
                  var r = -1,
                    i = e.length;
                  t < 0 && (t = -t > i ? 0 : i + t),
                    (n = n > i ? i : n) < 0 && (n += i),
                    (i = t > n ? 0 : (n - t) >>> 0),
                    (t >>>= 0);
                  for (var o = Array(i); ++r < i; ) o[r] = e[r + t];
                  return o;
                })(e, t, n)
          );
        }
        var Ze = RegExp(
            '[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]',
          ),
          et = '[\\ud800-\\udfff]',
          tt = '[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]',
          nt = '\\ud83c[\\udffb-\\udfff]',
          rt = '[^\\ud800-\\udfff]',
          it = '(?:\\ud83c[\\udde6-\\uddff]){2}',
          ot = '[\\ud800-\\udbff][\\udc00-\\udfff]',
          at = '(?:' + tt + '|' + nt + ')' + '?',
          st =
            '[\\ufe0e\\ufe0f]?' +
            at +
            ('(?:\\u200d(?:' + [rt, it, ot].join('|') + ')[\\ufe0e\\ufe0f]?' + at + ')*'),
          ut = '(?:' + [rt + tt + '?', tt, it, ot, et].join('|') + ')',
          ct = RegExp(nt + '(?=' + nt + ')|' + ut + st, 'g');
        function pt(e) {
          return (function (e) {
            return Ze.test(e);
          })(e)
            ? (function (e) {
                return e.match(ct) || [];
              })(e)
            : (function (e) {
                return e.split('');
              })(e);
        }
        var ft = /^\s+|\s+$/g;
        function lt(e, t, n) {
          var r;
          if ((e = null == (r = e) ? '' : Xe(r)) && (n || void 0 === t)) return e.replace(ft, '');
          if (!e || !(t = Xe(t))) return e;
          var i = pt(e),
            o = pt(t);
          return Qe(
            i,
            (function (e, t) {
              for (var n = -1, r = e.length; ++n < r && $e(t, e[n], 0) > -1; );
              return n;
            })(i, o),
            (function (e, t) {
              for (var n = e.length; n-- && $e(t, e[n], 0) > -1; );
              return n;
            })(i, o) + 1,
          ).join('');
        }
        var ht = /^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,
          dt = /,/,
          mt = /(=.+)?(\s*)$/,
          yt = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;
        function vt(e, t) {
          var n = {};
          qe(e, function (e, t) {
            var r,
              i = b(e),
              o = (!i && 1 === e.length) || (i && 0 === e.length);
            if (ee(e))
              (r = e.slice(0, -1)), (e = e[e.length - 1]), (n[t] = r.concat(r.length > 0 ? a : e));
            else if (o) n[t] = e;
            else {
              if (
                ((r = (function (e) {
                  return (e = (e = (e = (e = e.toString().replace(yt, ''))
                    .match(ht)[2]
                    .replace(' ', ''))
                    ? e.split(dt)
                    : []).map(function (e) {
                    return lt(e.replace(mt, ''));
                  }));
                })(e)),
                0 === e.length && !i && 0 === r.length)
              )
                throw new Error('autoInject task functions require explicit parameters.');
              i || r.pop(), (n[t] = r.concat(a));
            }
            function a(t, n) {
              var i = We(r, function (e) {
                return t[e];
              });
              i.push(n), w(e).apply(null, i);
            }
          }),
            Ge(n, t);
        }
        function gt() {
          (this.head = this.tail = null), (this.length = 0);
        }
        function bt(e, t) {
          (e.length = 1), (e.head = e.tail = t);
        }
        function wt(e, t, n) {
          if (null == t) t = 1;
          else if (0 === t) throw new Error('Concurrency must not be zero');
          var r = w(e),
            i = 0,
            o = [],
            a = !1;
          function s(e, t, n) {
            if (null != n && 'function' != typeof n)
              throw new Error('task callback must be a function');
            if (((p.started = !0), ee(e) || (e = [e]), 0 === e.length && p.idle()))
              return d(function () {
                p.drain();
              });
            for (var r = 0, i = e.length; r < i; r++) {
              var o = { data: e[r], callback: n || z };
              t ? p._tasks.unshift(o) : p._tasks.push(o);
            }
            a ||
              ((a = !0),
              d(function () {
                (a = !1), p.process();
              }));
          }
          function u(e) {
            return function (t) {
              i -= 1;
              for (var n = 0, r = e.length; n < r; n++) {
                var a = e[n],
                  s = $e(o, a, 0);
                0 === s ? o.shift() : s > 0 && o.splice(s, 1),
                  a.callback.apply(a, arguments),
                  null != t && p.error(t, a.data);
              }
              i <= p.concurrency - p.buffer && p.unsaturated(), p.idle() && p.drain(), p.process();
            };
          }
          var c = !1,
            p = {
              _tasks: new gt(),
              concurrency: t,
              payload: n,
              saturated: z,
              unsaturated: z,
              buffer: t / 4,
              empty: z,
              drain: z,
              error: z,
              started: !1,
              paused: !1,
              push: function (e, t) {
                s(e, !1, t);
              },
              kill: function () {
                (p.drain = z), p._tasks.empty();
              },
              unshift: function (e, t) {
                s(e, !0, t);
              },
              remove: function (e) {
                p._tasks.remove(e);
              },
              process: function () {
                if (!c) {
                  for (c = !0; !p.paused && i < p.concurrency && p._tasks.length; ) {
                    var e = [],
                      t = [],
                      n = p._tasks.length;
                    p.payload && (n = Math.min(n, p.payload));
                    for (var a = 0; a < n; a++) {
                      var s = p._tasks.shift();
                      e.push(s), o.push(s), t.push(s.data);
                    }
                    (i += 1),
                      0 === p._tasks.length && p.empty(),
                      i === p.concurrency && p.saturated();
                    var f = Ae(u(e));
                    r(t, f);
                  }
                  c = !1;
                }
              },
              length: function () {
                return p._tasks.length;
              },
              running: function () {
                return i;
              },
              workersList: function () {
                return o;
              },
              idle: function () {
                return p._tasks.length + i === 0;
              },
              pause: function () {
                p.paused = !0;
              },
              resume: function () {
                !1 !== p.paused && ((p.paused = !1), d(p.process));
              },
            };
          return p;
        }
        function xt(e, t) {
          return wt(e, 1, t);
        }
        (gt.prototype.removeLink = function (e) {
          return (
            e.prev ? (e.prev.next = e.next) : (this.head = e.next),
            e.next ? (e.next.prev = e.prev) : (this.tail = e.prev),
            (e.prev = e.next = null),
            (this.length -= 1),
            e
          );
        }),
          (gt.prototype.empty = function () {
            for (; this.head; ) this.shift();
            return this;
          }),
          (gt.prototype.insertAfter = function (e, t) {
            (t.prev = e),
              (t.next = e.next),
              e.next ? (e.next.prev = t) : (this.tail = t),
              (e.next = t),
              (this.length += 1);
          }),
          (gt.prototype.insertBefore = function (e, t) {
            (t.prev = e.prev),
              (t.next = e),
              e.prev ? (e.prev.next = t) : (this.head = t),
              (e.prev = t),
              (this.length += 1);
          }),
          (gt.prototype.unshift = function (e) {
            this.head ? this.insertBefore(this.head, e) : bt(this, e);
          }),
          (gt.prototype.push = function (e) {
            this.tail ? this.insertAfter(this.tail, e) : bt(this, e);
          }),
          (gt.prototype.shift = function () {
            return this.head && this.removeLink(this.head);
          }),
          (gt.prototype.pop = function () {
            return this.tail && this.removeLink(this.tail);
          }),
          (gt.prototype.toArray = function () {
            for (var e = Array(this.length), t = this.head, n = 0; n < this.length; n++)
              (e[n] = t.data), (t = t.next);
            return e;
          }),
          (gt.prototype.remove = function (e) {
            for (var t = this.head; t; ) {
              var n = t.next;
              e(t) && this.removeLink(t), (t = n);
            }
            return this;
          });
        var Et = _e(Ce, 1);
        function St(e, t, n, r) {
          r = $(r || z);
          var i = w(n);
          Et(
            e,
            function (e, n, r) {
              i(t, e, function (e, n) {
                (t = n), r(e);
              });
            },
            function (e) {
              r(e, t);
            },
          );
        }
        function At() {
          var e = We(arguments, w);
          return function () {
            var t = o(arguments),
              n = this,
              r = t[t.length - 1];
            'function' == typeof r ? t.pop() : (r = z),
              St(
                e,
                t,
                function (e, t, r) {
                  t.apply(
                    n,
                    e.concat(function (e) {
                      var t = o(arguments, 1);
                      r(e, t);
                    }),
                  );
                },
                function (e, t) {
                  r.apply(n, [e].concat(t));
                },
              );
          };
        }
        var Rt = function () {
            return At.apply(null, o(arguments).reverse());
          },
          Ct = Array.prototype.concat,
          _t = function (e, t, n, r) {
            r = r || z;
            var i = w(n);
            je(
              e,
              t,
              function (e, t) {
                i(e, function (e) {
                  return e ? t(e) : t(null, o(arguments, 1));
                });
              },
              function (e, t) {
                for (var n = [], i = 0; i < t.length; i++) t[i] && (n = Ct.apply(n, t[i]));
                return r(e, n);
              },
            );
          },
          Ot = _e(_t, 1 / 0),
          Tt = _e(_t, 1),
          Pt = function () {
            var e = o(arguments),
              t = [null].concat(e);
            return function () {
              var e = arguments[arguments.length - 1];
              return e.apply(this, t);
            };
          };
        function kt(e) {
          return e;
        }
        function It(e, t) {
          return function (n, r, i, o) {
            o = o || z;
            var a,
              s = !1;
            n(
              r,
              function (n, r, o) {
                i(n, function (r, i) {
                  r ? o(r) : e(i) && !a ? ((s = !0), (a = t(!0, n)), o(null, q)) : o();
                });
              },
              function (e) {
                e ? o(e) : o(null, s ? a : t(!1));
              },
            );
          };
        }
        function Nt(e, t) {
          return t;
        }
        var Mt = ke(It(kt, Nt)),
          Dt = De(It(kt, Nt)),
          jt = _e(Dt, 1);
        function Lt(e) {
          return function (t) {
            var n = o(arguments, 1);
            n.push(function (t) {
              var n = o(arguments, 1);
              'object' === ('undefined' == typeof console ? 'undefined' : c(console)) &&
                (t
                  ? console.error && console.error(t)
                  : console[e] &&
                    Fe(n, function (t) {
                      console[e](t);
                    }));
            }),
              w(t).apply(null, n);
          };
        }
        var Bt = Lt('dir');
        function Ft(e, t, n) {
          n = Ae(n || z);
          var r = w(e),
            i = w(t);
          function a(e) {
            if (e) return n(e);
            var t = o(arguments, 1);
            t.push(s), i.apply(this, t);
          }
          function s(e, t) {
            return e ? n(e) : t ? void r(a) : n(null);
          }
          s(null, !0);
        }
        function Ut(e, t, n) {
          n = Ae(n || z);
          var r = w(e);
          r(function e(i) {
            if (i) return n(i);
            var a = o(arguments, 1);
            if (t.apply(this, a)) return r(e);
            n.apply(null, [null].concat(a));
          });
        }
        function Vt(e, t, n) {
          Ut(
            e,
            function () {
              return !t.apply(this, arguments);
            },
            n,
          );
        }
        function qt(e, t, n) {
          n = Ae(n || z);
          var r = w(t),
            i = w(e);
          function o(e) {
            if (e) return n(e);
            i(a);
          }
          function a(e, t) {
            return e ? n(e) : t ? void r(o) : n(null);
          }
          i(a);
        }
        function zt(e) {
          return function (t, n, r) {
            return e(t, r);
          };
        }
        function $t(e, t, n) {
          Pe(e, zt(w(t)), n);
        }
        function Gt(e, t, n, r) {
          Re(t)(e, zt(w(n)), r);
        }
        var Wt = _e(Gt, 1);
        function Ht(e) {
          return b(e)
            ? e
            : s(function (t, n) {
                var r = !0;
                t.push(function () {
                  var e = arguments;
                  r
                    ? d(function () {
                        n.apply(null, e);
                      })
                    : n.apply(null, e);
                }),
                  e.apply(this, t),
                  (r = !1);
              });
        }
        function Yt(e) {
          return !e;
        }
        var Jt = ke(It(Yt, Yt)),
          Kt = De(It(Yt, Yt)),
          Xt = _e(Kt, 1);
        function Qt(e) {
          return function (t) {
            return null == t ? void 0 : t[e];
          };
        }
        function Zt(e, t, n, r) {
          var i = new Array(t.length);
          e(
            t,
            function (e, t, r) {
              n(e, function (e, n) {
                (i[t] = !!n), r(e);
              });
            },
            function (e) {
              if (e) return r(e);
              for (var n = [], o = 0; o < t.length; o++) i[o] && n.push(t[o]);
              r(null, n);
            },
          );
        }
        function en(e, t, n, r) {
          var i = [];
          e(
            t,
            function (e, t, r) {
              n(e, function (n, o) {
                n ? r(n) : (o && i.push({ index: t, value: e }), r());
              });
            },
            function (e) {
              e
                ? r(e)
                : r(
                    null,
                    We(
                      i.sort(function (e, t) {
                        return e.index - t.index;
                      }),
                      Qt('value'),
                    ),
                  );
            },
          );
        }
        function tn(e, t, n, r) {
          (V(t) ? Zt : en)(e, t, w(n), r || z);
        }
        var nn = ke(tn),
          rn = De(tn),
          on = _e(rn, 1);
        function an(e, t) {
          var n = Ae(t || z),
            r = w(Ht(e));
          !(function e(t) {
            if (t) return n(t);
            r(e);
          })();
        }
        var sn = function (e, t, n, r) {
            r = r || z;
            var i = w(n);
            je(
              e,
              t,
              function (e, t) {
                i(e, function (n, r) {
                  return n ? t(n) : t(null, { key: r, val: e });
                });
              },
              function (e, t) {
                for (var n = {}, i = Object.prototype.hasOwnProperty, o = 0; o < t.length; o++)
                  if (t[o]) {
                    var a = t[o].key,
                      s = t[o].val;
                    i.call(n, a) ? n[a].push(s) : (n[a] = [s]);
                  }
                return r(e, n);
              },
            );
          },
          un = _e(sn, 1 / 0),
          cn = _e(sn, 1),
          pn = Lt('log');
        function fn(e, t, n, r) {
          r = $(r || z);
          var i = {},
            o = w(n);
          Ce(
            e,
            t,
            function (e, t, n) {
              o(e, t, function (e, r) {
                if (e) return n(e);
                (i[t] = r), n();
              });
            },
            function (e) {
              r(e, i);
            },
          );
        }
        var ln = _e(fn, 1 / 0),
          hn = _e(fn, 1);
        function dn(e, t) {
          return t in e;
        }
        function mn(e, t) {
          var n = Object.create(null),
            r = Object.create(null);
          t = t || kt;
          var i = w(e),
            a = s(function (e, a) {
              var s = t.apply(null, e);
              dn(n, s)
                ? d(function () {
                    a.apply(null, n[s]);
                  })
                : dn(r, s)
                ? r[s].push(a)
                : ((r[s] = [a]),
                  i.apply(
                    null,
                    e.concat(function () {
                      var e = o(arguments);
                      n[s] = e;
                      var t = r[s];
                      delete r[s];
                      for (var i = 0, a = t.length; i < a; i++) t[i].apply(null, e);
                    }),
                  ));
            });
          return (a.memo = n), (a.unmemoized = e), a;
        }
        var yn = h(f ? n.nextTick : p ? e : l);
        function vn(e, t, n) {
          n = n || z;
          var r = V(t) ? [] : {};
          e(
            t,
            function (e, t, n) {
              w(e)(function (e, i) {
                arguments.length > 2 && (i = o(arguments, 1)), (r[t] = i), n(e);
              });
            },
            function (e) {
              n(e, r);
            },
          );
        }
        function gn(e, t) {
          vn(Pe, e, t);
        }
        function bn(e, t, n) {
          vn(Re(t), e, n);
        }
        var wn = function (e, t) {
            var n = w(e);
            return wt(
              function (e, t) {
                n(e[0], t);
              },
              t,
              1,
            );
          },
          xn = function (e, t) {
            var n = wn(e, t);
            return (
              (n.push = function (e, t, r) {
                if ((null == r && (r = z), 'function' != typeof r))
                  throw new Error('task callback must be a function');
                if (((n.started = !0), ee(e) || (e = [e]), 0 === e.length))
                  return d(function () {
                    n.drain();
                  });
                t = t || 0;
                for (var i = n._tasks.head; i && t >= i.priority; ) i = i.next;
                for (var o = 0, a = e.length; o < a; o++) {
                  var s = { data: e[o], priority: t, callback: r };
                  i ? n._tasks.insertBefore(i, s) : n._tasks.push(s);
                }
                d(n.process);
              }),
              delete n.unshift,
              n
            );
          };
        function En(e, t) {
          if (((t = $(t || z)), !ee(e)))
            return t(new TypeError('First argument to race must be an array of functions'));
          if (!e.length) return t();
          for (var n = 0, r = e.length; n < r; n++) w(e[n])(t);
        }
        function Sn(e, t, n, r) {
          St(o(e).reverse(), t, n, r);
        }
        function An(e) {
          var t = w(e);
          return s(function (e, n) {
            return (
              e.push(function (e, t) {
                var r;
                e
                  ? n(null, { error: e })
                  : ((r = arguments.length <= 2 ? t : o(arguments, 1)), n(null, { value: r }));
              }),
              t.apply(this, e)
            );
          });
        }
        function Rn(e) {
          var t;
          return (
            ee(e)
              ? (t = We(e, An))
              : ((t = {}),
                qe(e, function (e, n) {
                  t[n] = An.call(this, e);
                })),
            t
          );
        }
        function Cn(e, t, n, r) {
          tn(
            e,
            t,
            function (e, t) {
              n(e, function (e, n) {
                t(e, !n);
              });
            },
            r,
          );
        }
        var _n = ke(Cn),
          On = De(Cn),
          Tn = _e(On, 1);
        function Pn(e) {
          return function () {
            return e;
          };
        }
        function kn(e, t, n) {
          var r = 5,
            i = 0,
            o = { times: r, intervalFunc: Pn(i) };
          if (
            (arguments.length < 3 && 'function' == typeof e
              ? ((n = t || z), (t = e))
              : (!(function (e, t) {
                  if ('object' === c(t))
                    (e.times = +t.times || r),
                      (e.intervalFunc =
                        'function' == typeof t.interval ? t.interval : Pn(+t.interval || i)),
                      (e.errorFilter = t.errorFilter);
                  else {
                    if ('number' != typeof t && 'string' != typeof t)
                      throw new Error('Invalid arguments for async.retry');
                    e.times = +t || r;
                  }
                })(o, e),
                (n = n || z)),
            'function' != typeof t)
          )
            throw new Error('Invalid arguments for async.retry');
          var a = w(t),
            s = 1;
          !(function e() {
            a(function (t) {
              t && s++ < o.times && ('function' != typeof o.errorFilter || o.errorFilter(t))
                ? setTimeout(e, o.intervalFunc(s))
                : n.apply(null, arguments);
            });
          })();
        }
        var In = function (e, t) {
          t || ((t = e), (e = null));
          var n = w(t);
          return s(function (t, r) {
            function i(e) {
              n.apply(null, t.concat(e));
            }
            e ? kn(e, i, r) : kn(i, r);
          });
        };
        function Nn(e, t) {
          vn(Et, e, t);
        }
        var Mn = ke(It(Boolean, kt)),
          Dn = De(It(Boolean, kt)),
          jn = _e(Dn, 1);
        function Ln(e, t, n) {
          var r = w(t);
          function i(e, t) {
            var n = e.criteria,
              r = t.criteria;
            return n < r ? -1 : n > r ? 1 : 0;
          }
          Ne(
            e,
            function (e, t) {
              r(e, function (n, r) {
                if (n) return t(n);
                t(null, { value: e, criteria: r });
              });
            },
            function (e, t) {
              if (e) return n(e);
              n(null, We(t.sort(i), Qt('value')));
            },
          );
        }
        function Bn(e, t, n) {
          var r = w(e);
          return s(function (i, o) {
            var a,
              s = !1;
            i.push(function () {
              s || (o.apply(null, arguments), clearTimeout(a));
            }),
              (a = setTimeout(function () {
                var t = e.name || 'anonymous',
                  r = new Error('Callback function "' + t + '" timed out.');
                (r.code = 'ETIMEDOUT'), n && (r.info = n), (s = !0), o(r);
              }, t)),
              r.apply(null, i);
          });
        }
        var Fn = Math.ceil,
          Un = Math.max;
        function Vn(e, t, n, r) {
          var i = w(n);
          je(
            (function (e, t, n, r) {
              for (var i = -1, o = Un(Fn((t - e) / (n || 1)), 0), a = Array(o); o--; )
                (a[r ? o : ++i] = e), (e += n);
              return a;
            })(0, e, 1),
            t,
            i,
            r,
          );
        }
        var qn = _e(Vn, 1 / 0),
          zn = _e(Vn, 1);
        function $n(e, t, n, r) {
          arguments.length <= 3 && ((r = n), (n = t), (t = ee(e) ? [] : {})), (r = $(r || z));
          var i = w(n);
          Pe(
            e,
            function (e, n, r) {
              i(t, e, n, r);
            },
            function (e) {
              r(e, t);
            },
          );
        }
        function Gn(e, t) {
          var n,
            r = null;
          (t = t || z),
            Wt(
              e,
              function (e, t) {
                w(e)(function (e, i) {
                  (n = arguments.length > 2 ? o(arguments, 1) : i), (r = e), t(!e);
                });
              },
              function () {
                t(r, n);
              },
            );
        }
        function Wn(e) {
          return function () {
            return (e.unmemoized || e).apply(null, arguments);
          };
        }
        function Hn(e, t, n) {
          n = Ae(n || z);
          var r = w(t);
          if (!e()) return n(null);
          r(function t(i) {
            if (i) return n(i);
            if (e()) return r(t);
            var a = o(arguments, 1);
            n.apply(null, [null].concat(a));
          });
        }
        function Yn(e, t, n) {
          Hn(
            function () {
              return !e.apply(this, arguments);
            },
            t,
            n,
          );
        }
        var Jn = function (e, t) {
            if (((t = $(t || z)), !ee(e)))
              return t(new Error('First argument to waterfall must be an array of functions'));
            if (!e.length) return t();
            var n = 0;
            function r(t) {
              var r = w(e[n++]);
              t.push(Ae(i)), r.apply(null, t);
            }
            function i(i) {
              if (i || n === e.length) return t.apply(null, arguments);
              r(o(arguments, 1));
            }
            r([]);
          },
          Kn = {
            apply: a,
            applyEach: Me,
            applyEachSeries: Be,
            asyncify: m,
            auto: Ge,
            autoInject: vt,
            cargo: xt,
            compose: Rt,
            concat: Ot,
            concatLimit: _t,
            concatSeries: Tt,
            constant: Pt,
            detect: Mt,
            detectLimit: Dt,
            detectSeries: jt,
            dir: Bt,
            doDuring: Ft,
            doUntil: Vt,
            doWhilst: Ut,
            during: qt,
            each: $t,
            eachLimit: Gt,
            eachOf: Pe,
            eachOfLimit: Ce,
            eachOfSeries: Et,
            eachSeries: Wt,
            ensureAsync: Ht,
            every: Jt,
            everyLimit: Kt,
            everySeries: Xt,
            filter: nn,
            filterLimit: rn,
            filterSeries: on,
            forever: an,
            groupBy: un,
            groupByLimit: sn,
            groupBySeries: cn,
            log: pn,
            map: Ne,
            mapLimit: je,
            mapSeries: Le,
            mapValues: ln,
            mapValuesLimit: fn,
            mapValuesSeries: hn,
            memoize: mn,
            nextTick: yn,
            parallel: gn,
            parallelLimit: bn,
            priorityQueue: xn,
            queue: wn,
            race: En,
            reduce: St,
            reduceRight: Sn,
            reflect: An,
            reflectAll: Rn,
            reject: _n,
            rejectLimit: On,
            rejectSeries: Tn,
            retry: kn,
            retryable: In,
            seq: At,
            series: Nn,
            setImmediate: d,
            some: Mn,
            someLimit: Dn,
            someSeries: jn,
            sortBy: Ln,
            timeout: Bn,
            times: qn,
            timesLimit: Vn,
            timesSeries: zn,
            transform: $n,
            tryEach: Gn,
            unmemoize: Wn,
            until: Yn,
            waterfall: Jn,
            whilst: Hn,
            all: Jt,
            allLimit: Kt,
            allSeries: Xt,
            any: Mn,
            anyLimit: Dn,
            anySeries: jn,
            find: Mt,
            findLimit: Dt,
            findSeries: jt,
            forEach: $t,
            forEachSeries: Wt,
            forEachLimit: Gt,
            forEachOf: Pe,
            forEachOfSeries: Et,
            forEachOfLimit: Ce,
            inject: St,
            foldl: St,
            foldr: Sn,
            select: nn,
            selectLimit: rn,
            selectSeries: on,
            wrapSync: m,
          };
        (t.default = Kn),
          (t.apply = a),
          (t.applyEach = Me),
          (t.applyEachSeries = Be),
          (t.asyncify = m),
          (t.auto = Ge),
          (t.autoInject = vt),
          (t.cargo = xt),
          (t.compose = Rt),
          (t.concat = Ot),
          (t.concatLimit = _t),
          (t.concatSeries = Tt),
          (t.constant = Pt),
          (t.detect = Mt),
          (t.detectLimit = Dt),
          (t.detectSeries = jt),
          (t.dir = Bt),
          (t.doDuring = Ft),
          (t.doUntil = Vt),
          (t.doWhilst = Ut),
          (t.during = qt),
          (t.each = $t),
          (t.eachLimit = Gt),
          (t.eachOf = Pe),
          (t.eachOfLimit = Ce),
          (t.eachOfSeries = Et),
          (t.eachSeries = Wt),
          (t.ensureAsync = Ht),
          (t.every = Jt),
          (t.everyLimit = Kt),
          (t.everySeries = Xt),
          (t.filter = nn),
          (t.filterLimit = rn),
          (t.filterSeries = on),
          (t.forever = an),
          (t.groupBy = un),
          (t.groupByLimit = sn),
          (t.groupBySeries = cn),
          (t.log = pn),
          (t.map = Ne),
          (t.mapLimit = je),
          (t.mapSeries = Le),
          (t.mapValues = ln),
          (t.mapValuesLimit = fn),
          (t.mapValuesSeries = hn),
          (t.memoize = mn),
          (t.nextTick = yn),
          (t.parallel = gn),
          (t.parallelLimit = bn),
          (t.priorityQueue = xn),
          (t.queue = wn),
          (t.race = En),
          (t.reduce = St),
          (t.reduceRight = Sn),
          (t.reflect = An),
          (t.reflectAll = Rn),
          (t.reject = _n),
          (t.rejectLimit = On),
          (t.rejectSeries = Tn),
          (t.retry = kn),
          (t.retryable = In),
          (t.seq = At),
          (t.series = Nn),
          (t.setImmediate = d),
          (t.some = Mn),
          (t.someLimit = Dn),
          (t.someSeries = jn),
          (t.sortBy = Ln),
          (t.timeout = Bn),
          (t.times = qn),
          (t.timesLimit = Vn),
          (t.timesSeries = zn),
          (t.transform = $n),
          (t.tryEach = Gn),
          (t.unmemoize = Wn),
          (t.until = Yn),
          (t.waterfall = Jn),
          (t.whilst = Hn),
          (t.all = Jt),
          (t.allLimit = Kt),
          (t.allSeries = Xt),
          (t.any = Mn),
          (t.anyLimit = Dn),
          (t.anySeries = jn),
          (t.find = Mt),
          (t.findLimit = Dt),
          (t.findSeries = jt),
          (t.forEach = $t),
          (t.forEachSeries = Wt),
          (t.forEachLimit = Gt),
          (t.forEachOf = Pe),
          (t.forEachOfSeries = Et),
          (t.forEachOfLimit = Ce),
          (t.inject = St),
          (t.foldl = St),
          (t.foldr = Sn),
          (t.select = nn),
          (t.selectLimit = rn),
          (t.selectSeries = on),
          (t.wrapSync = m),
          Object.defineProperty(t, '__esModule', { value: !0 });
      }),
        'object' === c(t) && void 0 !== i
          ? u(t)
          : ((a = [t]),
            void 0 === (s = 'function' == typeof (o = u) ? o.apply(t, a) : o) || (i.exports = s));
    }.call(this, n(99).setImmediate, n(16), n(11), n(96)(e)));
  },
  function (e, t, n) {
    'use strict';
    var r = n(75),
      i = n(17)('bpmn-engine:definition'),
      o = n(55).EventEmitter,
      a = n(201),
      s = n(76),
      u = n(140),
      c = {};
    function p(e, t) {
      var n = this,
        o = r.getProcesses(e);
      return (
        (this.processes = o.map(function (n) {
          return new s.Process(n, e, t);
        })),
        (this.entryPointId = r.getExecutableProcessId(e)),
        i(
          '<'.concat(this.id, '>'),
          'found '
            .concat(this.processes.length, ' processes. Start with <')
            .concat(this.entryPointId, '>'),
        ),
        (this.mainProcess = this.processes.find(function (e) {
          return e.id === n.entryPointId;
        })),
        this.processes
      );
    }
    function f() {
      var e = this;
      (this._onMessage = this.onMessage.bind(this)),
        (this._onEnd = this.onEnd.bind(this)),
        (this._onError = this.onError.bind(this)),
        this.processes.forEach(function (t) {
          t.on('message', e._onMessage), t.on('leave', e._onEnd), t.on('error', e._onError);
        });
    }
    function l() {
      var e = this;
      this.processes.forEach(function (t) {
        t.removeListener('message', e._onMessage),
          t.removeListener('leave', e._onEnd),
          t.removeListener('error', e._onError);
      });
    }
    function h() {
      return this.hasOwnProperty('started') ? (this.started ? 'running' : 'completed') : 'pending';
    }
    (e.exports = c.Definition =
      function (e, t) {
        if (!e) throw new Error('No moddle context');
        (this.moddleContext = e),
          (this.id = a(e, 'rootHandler.element.id', 'anonymous')),
          (t = t || {}),
          u.validateOptions(t),
          (this.processes = []),
          (this.options = t);
      }),
      (c.Definition.resume = function (e, t, n) {
        var r;
        'function' == typeof t ? ((n = t), (r = {})) : t && (r = { listener: t.listener });
        var o = new c.Definition(e.moddleContext, r);
        function a(e) {
          return e
            ? (l.call(o), n ? n.apply(null, arguments) : o.emit('error', e))
            : n
            ? n.apply(null, arguments)
            : void 0;
        }
        return (
          i('<'.concat(o.id, '> resume')),
          delete this.stopped,
          setTimeout(function () {
            o.getProcesses(r, function (t, n, r) {
              if (t) return a.call(o, t);
              f.call(o),
                r.forEach(function (t) {
                  return t.resume(e.processes[t.id]);
                }),
                a.call(o, null, n, r);
            });
          }, 0),
          o
        );
      }),
      (c.Definition.prototype = Object.create(o.prototype)),
      (c.Definition.prototype.execute = function (e, t) {
        var n,
          r = this;
        'function' == typeof e ? ((t = e), (n = this.options)) : ((n = e), u.validateOptions(n)),
          i('<'.concat(this.id, '>'), 'start'),
          this.getProcesses(n, function (e, n, i) {
            if (e) return t ? t(e) : r.emit('error', e, r);
            if (!r.entryPointId) {
              var o = new Error('definition <'.concat(r.id, '> has no executable process'));
              return t ? t(o) : r.emit('error', o, r);
            }
            (r.started = !0), f.call(r), r.emit('start', r), t && t(null, n, i), n.run();
          });
      }),
      (c.Definition.prototype.signal = function (e, t) {
        var n = this.getChildActivityById(e);
        return n
          ? (i('<'.concat(this.id, '>'), 'signal '.concat(n.type, ' <').concat(e, '>')),
            n.signal(t),
            !0)
          : (i('<'.concat(this.id, '>'), 'signal failed! Activity <'.concat(e, '> was not found')),
            !1);
      }),
      (c.Definition.prototype.stop = function () {
        i('<'.concat(this.id, '>'), 'stop'),
          (this.stopped = !0),
          l.call(this),
          this.processes.forEach(function (e) {
            return e.deactivate();
          }),
          this.emit('end', this);
      }),
      (c.Definition.prototype.getState = function () {
        var e = {
          id: this.id,
          state: h.call(this),
          moddleContext: r.cloneContext(this.moddleContext),
        };
        return (
          this.stopped && (e.stopped = !0),
          (e.processes = this.processes.reduce(function (e, t) {
            return (e[t.id] = t.getState()), e;
          }, {})),
          e
        );
      }),
      (c.Definition.prototype.getPendingActivities = function () {
        var e = { id: this.id, state: h.call(this) };
        return (
          (e.children = this.processes.reduce(function (e, t) {
            return (e = e.concat(t.getPendingActivities()));
          }, [])),
          e
        );
      }),
      (c.Definition.prototype.getProcesses = function (e, t) {
        var n;
        if (('function' == typeof e ? (t = e) : (u.validateOptions(e), (n = e)), this.started))
          return t && t(null, this.mainProcess, this.processes), this.processes;
        var r = u.validateModdleContext(this.moddleContext);
        return r.length
          ? t
            ? t(r[0])
            : this.emit('error', r[0], this)
          : (p.call(this, this.moddleContext, n || this.options),
            t && t(null, this.mainProcess, this.processes),
            this.processes);
      }),
      (c.Definition.prototype.getProcessById = function (e) {
        return this.processes.find(function (t) {
          return t.id === e;
        });
      }),
      (c.Definition.prototype.getChildActivityById = function (e) {
        var t;
        this.processes.length || p.call(this, this.moddleContext, this.options);
        for (
          var n = 0;
          n < this.processes.length && !(t = this.processes[n].getChildActivityById(e));
          n++
        );
        return t;
      }),
      (c.Definition.prototype.onMessage = function (e, t, n) {
        var o = r.getTargetProcess(this.moddleContext, n.targetId);
        i(
          '<'.concat(this.id, '>'),
          'message sent from <'.concat(e.id, '> via <').concat(n.id, '> to <').concat(o.id, '>'),
        ),
          this.getProcessById(o.id).signal(n.targetId, t);
      }),
      (c.Definition.prototype.onEnd = function (e) {
        (function (e) {
          (this.variables = this.variables || {}),
            (this.variables = Object.assign(this.variables, e.context.variables));
        }.call(this, e),
          this.processes.every(function (e) {
            return e.isEnded;
          }) &&
            (i('<'.concat(this.id, '>'), 'end'),
            l.call(this),
            (this.started = !1),
            (this.isEnded = !0),
            this.emit('end', this)));
      }),
      (c.Definition.prototype.onError = function () {
        var e = Array.prototype.slice.call(arguments);
        l.call(this), e.unshift('error'), e.push(this), this.emit.apply(this, e);
      });
  },
  function (e, t, n) {
    'use strict';
    var r = /(\w+)\((.*?)(?:\))|(\.|\[|^)(.+?)(?:\]|\[|\.|$)/,
      i = /^['"](.*)['"]$/,
      o = /^-\d+$/;
    function a(e, t, n) {
      if (!e) return n;
      for (
        var o,
          u = (function e(t, n, o) {
            var u;
            var c = o.replace(r, function (e, r, o, c, p) {
              return (
                (u = r
                  ? (function (e, t, n) {
                      if (!e) return;
                      var r = [];
                      t
                        ? (r = (r = r.concat(t.split(','))).map(function (e) {
                            return (function (e, t, n) {
                              var r = t.match(i);
                              if (r) return r[1];
                              return a(e, t, n);
                            })(n, e, e);
                          }))
                        : r.push(n);
                      return e.apply(null, r);
                    })(s(n, r), o, t)
                  : s(n, p)),
                ''
              );
            });
            if (c === o) return;
            if (void 0 === u) return;
            var p = e.bind(null, t, u, c);
            p.getResult = function () {
              if ('' === c) return u;
            };
            return p;
          })(e, e, t);
        u;

      )
        (o = u.getResult()), (u = u());
      return void 0 !== o ? o : n;
    }
    function s(e, t) {
      return Array.isArray(e)
        ? (function (e, t) {
            if (o.test(t)) {
              var n = Number(t),
                r = 0 === n ? 0 : e.length + n;
              return e[r];
            }
            return e[t];
          })(e, t)
        : e[t];
    }
    e.exports = a;
  },
  function (e, t, n) {
    'use strict';
    var r = n(492),
      i = n(41);
    function o(e, t, n) {
      (this.isMainProcess = !(t instanceof r)),
        (this.context = new r(e.id, this.isMainProcess ? t : t.moddleContext, n)),
        (this.listener = n.listener),
        (this.pendingActivities = []),
        i.call(this, e, this.isMainProcess ? this.context : t, n),
        this._debug(
          '<'.concat(e.id, '>'),
          'init',
          this.isMainProcess ? 'main process' : 'sub process',
        );
    }
    function a() {
      var e = this,
        t = this;
      (t._onChildEnter = t.onChildEnter.bind(t)),
        (t._onChildStart = t.onChildStart.bind(t)),
        (t._onChildWait = t.onChildWait.bind(t)),
        (t._onChildEnd = t.onChildEnd.bind(t)),
        (t._onChildCancel = t.onChildCancel.bind(t)),
        (t._onChildLeave = t.onChildLeave.bind(t)),
        (t._onChildError = t.onChildError.bind(t)),
        (t._onMessage = t.onMessage.bind(t)),
        (t._onFlowDiscarded = t.onFlowDiscarded.bind(t)),
        (t._onFlowTaken = t.onFlowTaken.bind(t)),
        Object.keys(t.context.children).forEach(function (e) {
          var n = t.context.children[e];
          (function (e) {
            this._debug('<'.concat(this.id, '>'), 'setup <'.concat(e.id, '>')),
              e.on('enter', this._onChildEnter),
              e.on('start', this._onChildStart),
              e.on('wait', this._onChildWait),
              e.on('cancel', this._onChildCancel),
              e.on('end', this._onChildEnd),
              e.on('leave', this._onChildLeave),
              this.context.hasAttachedErrorEvent(e.id) || e.on('error', this._onChildError);
          }.call(t, n),
            n.activate());
        }),
        t.context.messageFlows.forEach(function (t) {
          t.on('message', e._onMessage);
        }),
        t.context.sequenceFlows.forEach(function (e) {
          (function (e) {
            e.on('taken', this._onFlowTaken), e.on('discarded', this._onFlowDiscarded);
          }.call(t, e));
        });
    }
    function s() {
      var e = this;
      this.entered &&
        (Object.keys(this.context.children).forEach(function (t) {
          var n = e.context.children[t];
          (function (e) {
            this._debug('<'.concat(this.id, '>'), 'tear down <'.concat(e.id, '>')),
              e.removeListener('enter', this._onChildEnter),
              e.removeListener('start', this._onChildStart),
              e.removeListener('wait', this._onChildWait),
              e.removeListener('cancel', this._onChildCancel),
              e.removeListener('end', this._onChildEnd),
              e.removeListener('leave', this._onChildLeave),
              e.removeListener('error', this._onChildError);
          }.call(e, n),
            n.deactivate());
        }),
        this.context.sequenceFlows.forEach(function (t) {
          (function (e) {
            e.removeListener('taken', this._onFlowTaken),
              e.removeListener('discarded', this._onFlowDiscarded),
              e.removeListener('message', this._onMessage);
          }.call(e, t));
        }));
    }
    function u(e, t, n) {
      this.listener &&
        (n || (n = this),
        this.listener.emit(''.concat(e, '-').concat(t.id), t, n),
        this.listener.emit(e, t, n));
    }
    (o.prototype = Object.create(i.prototype)),
      (o.prototype.execute = function (e) {
        if (
          (this._debug('<'.concat(this.id, '>'), 'execute'),
          (this.isEnded = !1),
          this.context.applyMessage(e),
          a.call(this),
          (this.pendingActivities = this.context.startActivities.map(function (e) {
            return { type: e.type, id: e.id };
          })),
          this.emit('start', this),
          this.isMainProcess && u.call(this, 'start', this),
          0 === this.context.childCount)
        )
          return this.completeProcess(this.context.variables);
        this.context.startActivities.forEach(function (e) {
          return e.run();
        });
      }),
      (o.prototype.completeProcess = function () {
        this._debug('<'.concat(this.id, '>'), 'complete'),
          s.call(this),
          (this.variables = this.context.variables),
          (this.isEnded = !0),
          this.complete.call(this, this.variables);
      }),
      (o.prototype.cancel = function () {
        s.call(this), i.prototype.cancel.apply(this, arguments);
      }),
      (o.prototype.signal = function (e, t) {
        this._debug('<'.concat(this.id, '>'), 'signal <'.concat(e, '>'));
        var n = this.getChildActivityById(e);
        if (n.isStartEvent) return this.context.applyMessage(t), this.run();
        n.isStart && !this.entered && this.run(), n.signal(t);
      }),
      (o.prototype.getChildActivityById = function (e) {
        return this.context.getChildActivityById(e);
      }),
      (o.prototype.onChildEnter = function (e) {
        this._debug('<'.concat(this.id, '>'), 'enter <'.concat(e.id, '> (').concat(e.type, ')')),
          this.pendingActivities.push({ id: e.id }),
          u.call(this, 'enter', e);
      }),
      (o.prototype.onChildStart = function (e) {
        u.call(this, 'start', e);
      }),
      (o.prototype.onChildCancel = function (e) {
        u.call(this, 'cancel', e);
      }),
      (o.prototype.onChildWait = function (e) {
        this._debug('<'.concat(this.id, '>'), 'wait for <'.concat(e.id, '> (').concat(e.type, ')')),
          u.call(this, 'wait', e);
      }),
      (o.prototype.onChildEnd = function (e, t) {
        t &&
          ((e.io && e.io.hasOutput) || e.saveToVariables
            ? (this._debug(
                '<'.concat(this.id, '>'),
                'saving data from <'.concat(e.id, '> to variables'),
              ),
              this.context.applyMessage(t))
            : this.context.saveChildOutput(e.id, t)),
          u.call(this, 'end', e, t),
          e.terminate && this.completeProcess();
      }),
      (o.prototype.onChildLeave = function (e) {
        (this.pendingActivities = this.pendingActivities.filter(function (t) {
          return t.id !== e.id;
        })),
          this._debug(
            '<'.concat(this.id, '>'),
            'left <'
              .concat(e.id, '> (')
              .concat(e.type, '), pending activities ')
              .concat(this.pendingActivities.length),
          ),
          u.call(this, 'leave', e),
          0 === this.pendingActivities.length && this.completeProcess();
      }),
      (o.prototype.onChildError = function (e, t) {
        s.call(this), this.emit('error', e, t, this);
      }),
      (o.prototype.onMessage = function (e, t) {
        this._debug(
          '<'.concat(this.id, '>'),
          'message sent via <'.concat(t.id, '> (').concat(t.type, ')'),
        ),
          this.emit('message', this, e, t);
      }),
      (o.prototype.onFlowDiscarded = function (e) {
        u.call(this, 'discarded', e);
      }),
      (o.prototype.onFlowTaken = function (e) {
        u.call(this, 'taken', e);
      }),
      (o.prototype.getState = function () {
        var e = i.prototype.getState.call(this);
        return Object.assign(e, this.context.getState()), e;
      }),
      (o.prototype.getPendingActivities = function () {
        return this.context.getPendingActivities();
      }),
      (o.prototype.resume = function (e) {
        var t = this;
        this._debug('<'.concat(this.id, '>'), 'resume', e.entered ? 'execution' : 'state'),
          this.context.resume(e),
          (this.entered = e.entered),
          this.entered && (a.call(this), this.emit('enter', this));
        var n = e.children.reduce(
          function (e, t) {
            return (
              t.entered && t.pendingJoin
                ? e.pre.push(t)
                : t.attachedToId
                ? e.pre.push(t)
                : e.post.push(t),
              e
            );
          },
          { pre: [], post: [] },
        );
        n.pre.forEach(function (e) {
          t.getChildActivityById(e.id).resume(e);
        }),
          n.post.forEach(function (e) {
            t.getChildActivityById(e.id).resume(e);
          });
      }),
      (o.prototype.deactivate = function () {
        s.call(this), i.prototype.deactivate.apply(this, arguments);
      }),
      (e.exports = o);
  },
  function (e, t) {
    function n(e) {
      var t = new Error("Cannot find module '" + e + "'");
      throw ((t.code = 'MODULE_NOT_FOUND'), t);
    }
    (n.keys = function () {
      return [];
    }),
      (n.resolve = n),
      (e.exports = n),
      (n.id = 203);
  },
  function (e, t, n) {
    'use strict';
    function r() {}
    (r.prototype = Object.create(Error.prototype)), (e.exports = r);
  },
  function (e, t, n) {
    'use strict';
    (function (t) {
      var r = n(17),
        i = n(55).EventEmitter;
      function o(e, t) {
        (this.id = e.element.id),
          (this.type = e.element.$type),
          (this.activity = e),
          (this.parentContext = t),
          (this.sourceId = e.id),
          (this.targetId = this.parentContext.getSequenceFlowTargetId(this.id)),
          (this.taken = !1),
          (this._debug = r('bpmn-engine:'.concat(this.type.toLowerCase()))),
          this._debug(
            '<'.concat(this.id, '>'),
            'init, <'.concat(this.sourceId, '> -> <').concat(this.targetId, '>'),
          );
      }
      function a(e, n) {
        var r = this;
        t(function () {
          r.emit(e, r, n);
        });
      }
      (o.prototype = Object.create(i.prototype)),
        (o.prototype.take = function () {
          return (
            (this.taken = !0),
            (this.discarded = !1),
            delete this.looped,
            this._debug('<'.concat(this.id, '>'), 'taken, target <'.concat(this.targetId, '>')),
            a.call(this, 'taken'),
            this.taken
          );
        }),
        (o.prototype.discard = function (e) {
          if (e && e.sourceId === this.targetId)
            return (
              this._debug(
                '<'.concat(this.id, '>'),
                'detected loop <'.concat(e.sourceId, '>. Stop.'),
              ),
              (this.looped = !0),
              void this.emit('looped', this, e)
            );
          this._debug('<'.concat(this.id, '>'), 'discarded, target <'.concat(this.targetId, '>')),
            delete this.looped,
            (this.discarded = !0),
            a.call(this, 'discarded', e || this);
        }),
        (e.exports = o);
    }.call(this, n(99).setImmediate));
  },
  function (e, t, n) {
    'use strict';
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(17)('bpmn-engine:io:parameter'),
      o = n(58),
      a = n(102);
    function s(e) {
      var t,
        n = e,
        u = n.name,
        c = n.$type,
        p = (function () {
          if (n.value) return o.hasExpression(n.value) ? 'expression' : 'constant';
          if (n.definition && n.definition.$type)
            return n.definition.$type.replace('camunda:', '').toLowerCase();
          return 'named';
        })();
      if ((i('init', c, '<'.concat(u, '>'), 'as type '.concat(p)), 'script' === p)) {
        if (!a.isJavascript(n.definition.scriptFormat))
          throw new Error(
            'Script format '.concat(n.definition.scriptFormat, ' is unsupported (').concat(u, ')'),
          );
        t = a.parse(''.concat(u, '.io'), n.definition.value);
      }
      var f = (function (e) {
        if (!e.definition) return;
        var t;
        e.definition.entries
          ? (t = e.definition.entries.map(function (e) {
              return s(Object.assign({ name: e.key }, e));
            }))
          : e.definition.items &&
            (t = e.definition.items.map(function (e, t) {
              return s(Object.assign({ name: t }, e));
            }));
        return t;
      })(n);
      function l(e, r) {
        switch ((i('get', c, '<'.concat(u, '>'), p, 'value'), p)) {
          case 'constant':
            return n.value;
          case 'expression':
            return o(n.value, Object.assign({}, r, e));
          case 'script':
            return i('execute', '<'.concat(u, '>'), 'script'), a.execute(t, r, e);
          case 'map':
            return (function (e, t) {
              return f
                ? f.reduce(function (n, r) {
                    return (n[r.name] = r.getInputValue(e, t)), n;
                  }, {})
                : h(e, t);
            })(e, r);
          case 'list':
            return (function (e, t) {
              return f
                ? n.definition.items.map(function (n) {
                    return o.hasExpression(n.value) ? o(n.value, Object.assign({}, e, t)) : n.value;
                  }, {})
                : h(e, t);
            })(e, r);
          default:
            return h(e, r);
        }
      }
      function h(e, t) {
        return e && e[n.name] ? e[n.name] : t ? t.variables[n.name] : void 0;
      }
      return {
        name: u,
        type: c,
        valueType: p,
        getInputValue: l,
        getOutputValue: function (e, t) {
          switch (Array.isArray(e) ? 'array' : r(e)) {
            case 'object':
            case 'function':
              return l(e, t);
            default:
              return l({ result: e }, t);
          }
        },
      };
    }
    e.exports = s;
  },
  function (e, t, n) {
    'use strict';
    var r = n(521),
      i = {
        transform: function (e, t, n) {
          return e && 'string' == typeof e
            ? new r(t).fromXML(e, n)
            : n(new Error('Nothing to transform'));
        },
      };
    e.exports = i;
  },
  function (e, t, n) {
    var r = n(524);
    e.exports = function (e, t) {
      var n = null == e ? void 0 : e[t];
      return r(n) ? n : void 0;
    };
  },
  function (e, t, n) {
    var r = n(59),
      i = '[object Function]',
      o = Object.prototype.toString;
    e.exports = function (e) {
      return r(e) && o.call(e) == i;
    };
  },
  function (e, t, n) {
    var r = n(211)('length');
    e.exports = r;
  },
  function (e, t) {
    e.exports = function (e) {
      return function (t) {
        return null == t ? void 0 : t[e];
      };
    };
  },
  function (e, t, n) {
    var r = n(104),
      i = n(64),
      o = Object.prototype,
      a = o.hasOwnProperty,
      s = o.propertyIsEnumerable;
    e.exports = function (e) {
      return i(e) && r(e) && a.call(e, 'callee') && !s.call(e, 'callee');
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return e;
    };
  },
  function (e, t) {
    var n = 'Expected a function',
      r = Math.max;
    e.exports = function (e, t) {
      if ('function' != typeof e) throw new TypeError(n);
      return (
        (t = r(void 0 === t ? e.length - 1 : +t || 0, 0)),
        function () {
          for (var n = arguments, i = -1, o = r(n.length - t, 0), a = Array(o); ++i < o; )
            a[i] = n[t + i];
          switch (t) {
            case 0:
              return e.call(this, a);
            case 1:
              return e.call(this, n[0], a);
            case 2:
              return e.call(this, n[0], n[1], a);
          }
          var s = Array(t + 1);
          for (i = -1; ++i < t; ) s[i] = n[i];
          return (s[t] = a), e.apply(this, s);
        }
      );
    };
  },
  function (e, t, n) {
    var r = n(64),
      i = '[object String]',
      o = Object.prototype.toString;
    e.exports = function (e) {
      return 'string' == typeof e || (r(e) && o.call(e) == i);
    };
  },
  function (e, t, n) {
    e.exports = n(532);
  },
  function (e, t, n) {
    var r = n(537)();
    e.exports = r;
  },
  function (e, t, n) {
    var r = n(538);
    e.exports = function (e, t) {
      var n = null == e ? void 0 : e[t];
      return r(n) ? n : void 0;
    };
  },
  function (e, t, n) {
    var r = n(540)('length');
    e.exports = r;
  },
  function (e, t, n) {
    var r = n(147),
      i = n(107),
      o = n(148),
      a = n(79),
      s = n(66),
      u = Object.prototype.hasOwnProperty;
    e.exports = function (e) {
      if (null == e) return [];
      s(e) || (e = Object(e));
      var t = e.length;
      t = (t && a(t) && (i(e) || r(e)) && t) || 0;
      for (
        var n = e.constructor,
          c = -1,
          p = 'function' == typeof n && n.prototype === e,
          f = Array(t),
          l = t > 0;
        ++c < t;

      )
        f[c] = c + '';
      for (var h in e) (l && o(h, t)) || ('constructor' == h && (p || !u.call(e, h))) || f.push(h);
      return f;
    };
  },
  function (e, t, n) {
    var r = n(548),
      i = n(549),
      o = n(551)(function (e, t, n) {
        return n ? r(e, t, n) : i(e, t);
      });
    e.exports = o;
  },
  function (e, t) {
    var n = 'Expected a function',
      r = Math.max;
    e.exports = function (e, t) {
      if ('function' != typeof e) throw new TypeError(n);
      return (
        (t = r(void 0 === t ? e.length - 1 : +t || 0, 0)),
        function () {
          for (var n = arguments, i = -1, o = r(n.length - t, 0), a = Array(o); ++i < o; )
            a[i] = n[t + i];
          switch (t) {
            case 0:
              return e.call(this, a);
            case 1:
              return e.call(this, n[0], a);
            case 2:
              return e.call(this, n[0], n[1], a);
          }
          var s = Array(t + 1);
          for (i = -1; ++i < t; ) s[i] = n[i];
          return (s[t] = a), e.apply(this, s);
        }
      );
    };
  },
  function (e, t, n) {
    var r = n(571),
      i = n(59),
      o = n(64);
    e.exports = function e(t, n, a, s, u, c) {
      return (
        t === n ||
        (null == t || null == n || (!i(t) && !o(n)) ? t != t && n != n : r(t, n, e, a, s, u, c))
      );
    };
  },
  function (e, t, n) {
    var r = n(59);
    e.exports = function (e) {
      return e == e && !r(e);
    };
  },
  function (e, t, n) {
    var r = n(42);
    e.exports = function (e, t, n) {
      if (null != e) {
        void 0 !== n && n in r(e) && (t = [n]);
        for (var i = 0, o = t.length; null != e && i < o; ) e = e[t[i++]];
        return i && i == o ? e : void 0;
      }
    };
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(27),
      o = n(42),
      a = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
      s = /^\w*$/;
    e.exports = function (e, t) {
      var n = r(e);
      return (
        !!(('string' == n && s.test(e)) || 'number' == n) ||
        (!i(e) && (!a.test(e) || (null != t && e in o(t))))
      );
    };
  },
  function (e, t, n) {
    var r = n(582),
      i = n(27),
      o = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,
      a = /\\(\\)?/g;
    e.exports = function (e) {
      if (i(e)) return e;
      var t = [];
      return (
        r(e).replace(o, function (e, n, r, i) {
          t.push(r ? i.replace(a, '$1') : n || e);
        }),
        t
      );
    };
  },
  function (e, t, n) {
    var r = n(586),
      i = n(81),
      o = n(587)(r, i);
    e.exports = o;
  },
  function (e, t, n) {
    'use strict';
    function r(e) {
      return e.xml && 'lowerCase' === e.xml.tagAlias;
    }
    (e.exports.aliasToName = function (e, t) {
      return r(t) ? (n = e).charAt(0).toUpperCase() + n.slice(1) : e;
      var n;
    }),
      (e.exports.nameToAlias = function (e, t) {
        return r(t) ? (n = e).charAt(0).toLowerCase() + n.slice(1) : e;
        var n;
      }),
      (e.exports.DEFAULT_NS_MAP = { xsi: 'http://www.w3.org/2001/XMLSchema-instance' });
    var i = (e.exports.XSI_TYPE = 'xsi:type');
    function o(e) {
      return e.xml && e.xml.serialize;
    }
    (e.exports.serializeAsType = function (e) {
      return o(e) === i;
    }),
      (e.exports.serializeAsProperty = function (e) {
        return 'property' === o(e);
      });
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"BPMN20","uri":"http://www.omg.org/spec/BPMN/20100524/MODEL","associations":[],"types":[{"name":"Interface","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"operations","type":"Operation","isMany":true},{"name":"implementationRef","type":"String","isAttr":true}]},{"name":"Operation","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"inMessageRef","type":"Message","isReference":true},{"name":"outMessageRef","type":"Message","isReference":true},{"name":"errorRef","type":"Error","isMany":true,"isReference":true},{"name":"implementationRef","type":"String","isAttr":true}]},{"name":"EndPoint","superClass":["RootElement"]},{"name":"Auditing","superClass":["BaseElement"]},{"name":"GlobalTask","superClass":["CallableElement"],"properties":[{"name":"resources","type":"ResourceRole","isMany":true}]},{"name":"Monitoring","superClass":["BaseElement"]},{"name":"Performer","superClass":["ResourceRole"]},{"name":"Process","superClass":["FlowElementsContainer","CallableElement"],"properties":[{"name":"processType","type":"ProcessType","isAttr":true},{"name":"isClosed","isAttr":true,"type":"Boolean"},{"name":"auditing","type":"Auditing"},{"name":"monitoring","type":"Monitoring"},{"name":"properties","type":"Property","isMany":true},{"name":"laneSets","type":"LaneSet","isMany":true,"replaces":"FlowElementsContainer#laneSets"},{"name":"flowElements","type":"FlowElement","isMany":true,"replaces":"FlowElementsContainer#flowElements"},{"name":"artifacts","type":"Artifact","isMany":true},{"name":"resources","type":"ResourceRole","isMany":true},{"name":"correlationSubscriptions","type":"CorrelationSubscription","isMany":true},{"name":"supports","type":"Process","isMany":true,"isReference":true},{"name":"definitionalCollaborationRef","type":"Collaboration","isAttr":true,"isReference":true},{"name":"isExecutable","isAttr":true,"type":"Boolean"}]},{"name":"LaneSet","superClass":["BaseElement"],"properties":[{"name":"lanes","type":"Lane","isMany":true},{"name":"name","isAttr":true,"type":"String"}]},{"name":"Lane","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"partitionElementRef","type":"BaseElement","isAttr":true,"isReference":true},{"name":"partitionElement","type":"BaseElement"},{"name":"flowNodeRef","type":"FlowNode","isMany":true,"isReference":true},{"name":"childLaneSet","type":"LaneSet","xml":{"serialize":"xsi:type"}}]},{"name":"GlobalManualTask","superClass":["GlobalTask"]},{"name":"ManualTask","superClass":["Task"]},{"name":"UserTask","superClass":["Task"],"properties":[{"name":"renderings","type":"Rendering","isMany":true},{"name":"implementation","isAttr":true,"type":"String"}]},{"name":"Rendering","superClass":["BaseElement"]},{"name":"HumanPerformer","superClass":["Performer"]},{"name":"PotentialOwner","superClass":["HumanPerformer"]},{"name":"GlobalUserTask","superClass":["GlobalTask"],"properties":[{"name":"implementation","isAttr":true,"type":"String"},{"name":"renderings","type":"Rendering","isMany":true}]},{"name":"Gateway","isAbstract":true,"superClass":["FlowNode"],"properties":[{"name":"gatewayDirection","type":"GatewayDirection","default":"Unspecified","isAttr":true}]},{"name":"EventBasedGateway","superClass":["Gateway"],"properties":[{"name":"instantiate","default":false,"isAttr":true,"type":"Boolean"},{"name":"eventGatewayType","type":"EventBasedGatewayType","isAttr":true,"default":"Exclusive"}]},{"name":"ComplexGateway","superClass":["Gateway"],"properties":[{"name":"activationCondition","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"default","type":"SequenceFlow","isAttr":true,"isReference":true}]},{"name":"ExclusiveGateway","superClass":["Gateway"],"properties":[{"name":"default","type":"SequenceFlow","isAttr":true,"isReference":true}]},{"name":"InclusiveGateway","superClass":["Gateway"],"properties":[{"name":"default","type":"SequenceFlow","isAttr":true,"isReference":true}]},{"name":"ParallelGateway","superClass":["Gateway"]},{"name":"RootElement","isAbstract":true,"superClass":["BaseElement"]},{"name":"Relationship","superClass":["BaseElement"],"properties":[{"name":"type","isAttr":true,"type":"String"},{"name":"direction","type":"RelationshipDirection","isAttr":true},{"name":"source","isMany":true,"isReference":true,"type":"Element"},{"name":"target","isMany":true,"isReference":true,"type":"Element"}]},{"name":"BaseElement","isAbstract":true,"properties":[{"name":"id","isAttr":true,"type":"String","isId":true},{"name":"documentation","type":"Documentation","isMany":true},{"name":"extensionDefinitions","type":"ExtensionDefinition","isMany":true,"isReference":true},{"name":"extensionElements","type":"ExtensionElements"}]},{"name":"Extension","properties":[{"name":"mustUnderstand","default":false,"isAttr":true,"type":"Boolean"},{"name":"definition","type":"ExtensionDefinition","isAttr":true,"isReference":true}]},{"name":"ExtensionDefinition","properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"extensionAttributeDefinitions","type":"ExtensionAttributeDefinition","isMany":true}]},{"name":"ExtensionAttributeDefinition","properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"type","isAttr":true,"type":"String"},{"name":"isReference","default":false,"isAttr":true,"type":"Boolean"},{"name":"extensionDefinition","type":"ExtensionDefinition","isAttr":true,"isReference":true}]},{"name":"ExtensionElements","properties":[{"name":"valueRef","isAttr":true,"isReference":true,"type":"Element"},{"name":"values","type":"Element","isMany":true},{"name":"extensionAttributeDefinition","type":"ExtensionAttributeDefinition","isAttr":true,"isReference":true}]},{"name":"Documentation","superClass":["BaseElement"],"properties":[{"name":"text","type":"String","isBody":true},{"name":"textFormat","default":"text/plain","isAttr":true,"type":"String"}]},{"name":"Event","isAbstract":true,"superClass":["FlowNode","InteractionNode"],"properties":[{"name":"properties","type":"Property","isMany":true}]},{"name":"IntermediateCatchEvent","superClass":["CatchEvent"]},{"name":"IntermediateThrowEvent","superClass":["ThrowEvent"]},{"name":"EndEvent","superClass":["ThrowEvent"]},{"name":"StartEvent","superClass":["CatchEvent"],"properties":[{"name":"isInterrupting","default":true,"isAttr":true,"type":"Boolean"}]},{"name":"ThrowEvent","isAbstract":true,"superClass":["Event"],"properties":[{"name":"dataInputs","type":"DataInput","isMany":true},{"name":"dataInputAssociations","type":"DataInputAssociation","isMany":true},{"name":"inputSet","type":"InputSet"},{"name":"eventDefinitions","type":"EventDefinition","isMany":true},{"name":"eventDefinitionRef","type":"EventDefinition","isMany":true,"isReference":true}]},{"name":"CatchEvent","isAbstract":true,"superClass":["Event"],"properties":[{"name":"parallelMultiple","isAttr":true,"type":"Boolean","default":false},{"name":"dataOutputs","type":"DataOutput","isMany":true},{"name":"dataOutputAssociations","type":"DataOutputAssociation","isMany":true},{"name":"outputSet","type":"OutputSet"},{"name":"eventDefinitions","type":"EventDefinition","isMany":true},{"name":"eventDefinitionRef","type":"EventDefinition","isMany":true,"isReference":true}]},{"name":"BoundaryEvent","superClass":["CatchEvent"],"properties":[{"name":"cancelActivity","default":true,"isAttr":true,"type":"Boolean"},{"name":"attachedToRef","type":"Activity","isAttr":true,"isReference":true}]},{"name":"EventDefinition","isAbstract":true,"superClass":["RootElement"]},{"name":"CancelEventDefinition","superClass":["EventDefinition"]},{"name":"ErrorEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"errorRef","type":"Error","isAttr":true,"isReference":true}]},{"name":"TerminateEventDefinition","superClass":["EventDefinition"]},{"name":"EscalationEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"escalationRef","type":"Escalation","isAttr":true,"isReference":true}]},{"name":"Escalation","properties":[{"name":"structureRef","type":"ItemDefinition","isAttr":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"},{"name":"escalationCode","isAttr":true,"type":"String"}],"superClass":["RootElement"]},{"name":"CompensateEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"waitForCompletion","isAttr":true,"type":"Boolean","default":true},{"name":"activityRef","type":"Activity","isAttr":true,"isReference":true}]},{"name":"TimerEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"timeDate","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"timeCycle","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"timeDuration","type":"Expression","xml":{"serialize":"xsi:type"}}]},{"name":"LinkEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"target","type":"LinkEventDefinition","isAttr":true,"isReference":true},{"name":"source","type":"LinkEventDefinition","isMany":true,"isReference":true}]},{"name":"MessageEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"messageRef","type":"Message","isAttr":true,"isReference":true},{"name":"operationRef","type":"Operation","isAttr":true,"isReference":true}]},{"name":"ConditionalEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"condition","type":"Expression","xml":{"serialize":"xsi:type"}}]},{"name":"SignalEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"signalRef","type":"Signal","isAttr":true,"isReference":true}]},{"name":"Signal","superClass":["RootElement"],"properties":[{"name":"structureRef","type":"ItemDefinition","isAttr":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"}]},{"name":"ImplicitThrowEvent","superClass":["ThrowEvent"]},{"name":"DataState","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"}]},{"name":"ItemAwareElement","superClass":["BaseElement"],"properties":[{"name":"itemSubjectRef","type":"ItemDefinition","isAttr":true,"isReference":true},{"name":"dataState","type":"DataState"}]},{"name":"DataAssociation","superClass":["BaseElement"],"properties":[{"name":"assignment","type":"Assignment","isMany":true},{"name":"sourceRef","type":"ItemAwareElement","isMany":true,"isReference":true},{"name":"targetRef","type":"ItemAwareElement","isReference":true},{"name":"transformation","type":"FormalExpression","xml":{"serialize":"property"}}]},{"name":"DataInput","superClass":["ItemAwareElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"isCollection","default":false,"isAttr":true,"type":"Boolean"},{"name":"inputSetRef","type":"InputSet","isVirtual":true,"isMany":true,"isReference":true},{"name":"inputSetWithOptional","type":"InputSet","isVirtual":true,"isMany":true,"isReference":true},{"name":"inputSetWithWhileExecuting","type":"InputSet","isVirtual":true,"isMany":true,"isReference":true}]},{"name":"DataOutput","superClass":["ItemAwareElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"isCollection","default":false,"isAttr":true,"type":"Boolean"},{"name":"outputSetRef","type":"OutputSet","isVirtual":true,"isMany":true,"isReference":true},{"name":"outputSetWithOptional","type":"OutputSet","isVirtual":true,"isMany":true,"isReference":true},{"name":"outputSetWithWhileExecuting","type":"OutputSet","isVirtual":true,"isMany":true,"isReference":true}]},{"name":"InputSet","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"dataInputRefs","type":"DataInput","isMany":true,"isReference":true},{"name":"optionalInputRefs","type":"DataInput","isMany":true,"isReference":true},{"name":"whileExecutingInputRefs","type":"DataInput","isMany":true,"isReference":true},{"name":"outputSetRefs","type":"OutputSet","isMany":true,"isReference":true}]},{"name":"OutputSet","superClass":["BaseElement"],"properties":[{"name":"dataOutputRefs","type":"DataOutput","isMany":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"},{"name":"inputSetRefs","type":"InputSet","isMany":true,"isReference":true},{"name":"optionalOutputRefs","type":"DataOutput","isMany":true,"isReference":true},{"name":"whileExecutingOutputRefs","type":"DataOutput","isMany":true,"isReference":true}]},{"name":"Property","superClass":["ItemAwareElement"],"properties":[{"name":"name","isAttr":true,"type":"String"}]},{"name":"DataInputAssociation","superClass":["DataAssociation"]},{"name":"DataOutputAssociation","superClass":["DataAssociation"]},{"name":"InputOutputSpecification","superClass":["BaseElement"],"properties":[{"name":"dataInputs","type":"DataInput","isMany":true},{"name":"dataOutputs","type":"DataOutput","isMany":true},{"name":"inputSets","type":"InputSet","isMany":true},{"name":"outputSets","type":"OutputSet","isMany":true}]},{"name":"DataObject","superClass":["FlowElement","ItemAwareElement"],"properties":[{"name":"isCollection","default":false,"isAttr":true,"type":"Boolean"}]},{"name":"InputOutputBinding","properties":[{"name":"inputDataRef","type":"InputSet","isAttr":true,"isReference":true},{"name":"outputDataRef","type":"OutputSet","isAttr":true,"isReference":true},{"name":"operationRef","type":"Operation","isAttr":true,"isReference":true}]},{"name":"Assignment","superClass":["BaseElement"],"properties":[{"name":"from","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"to","type":"Expression","xml":{"serialize":"xsi:type"}}]},{"name":"DataStore","superClass":["RootElement","ItemAwareElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"capacity","isAttr":true,"type":"Integer"},{"name":"isUnlimited","default":true,"isAttr":true,"type":"Boolean"}]},{"name":"DataStoreReference","superClass":["ItemAwareElement","FlowElement"],"properties":[{"name":"dataStoreRef","type":"DataStore","isAttr":true,"isReference":true}]},{"name":"DataObjectReference","superClass":["ItemAwareElement","FlowElement"],"properties":[{"name":"dataObjectRef","type":"DataObject","isAttr":true,"isReference":true}]},{"name":"ConversationLink","superClass":["BaseElement"],"properties":[{"name":"sourceRef","type":"InteractionNode","isAttr":true,"isReference":true},{"name":"targetRef","type":"InteractionNode","isAttr":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"}]},{"name":"ConversationAssociation","superClass":["BaseElement"],"properties":[{"name":"innerConversationNodeRef","type":"ConversationNode","isAttr":true,"isReference":true},{"name":"outerConversationNodeRef","type":"ConversationNode","isAttr":true,"isReference":true}]},{"name":"CallConversation","superClass":["ConversationNode"],"properties":[{"name":"calledCollaborationRef","type":"Collaboration","isAttr":true,"isReference":true},{"name":"participantAssociations","type":"ParticipantAssociation","isMany":true}]},{"name":"Conversation","superClass":["ConversationNode"]},{"name":"SubConversation","superClass":["ConversationNode"],"properties":[{"name":"conversationNodes","type":"ConversationNode","isMany":true}]},{"name":"ConversationNode","isAbstract":true,"superClass":["InteractionNode","BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"participantRef","type":"Participant","isMany":true,"isReference":true},{"name":"messageFlowRefs","type":"MessageFlow","isMany":true,"isReference":true},{"name":"correlationKeys","type":"CorrelationKey","isMany":true}]},{"name":"GlobalConversation","superClass":["Collaboration"]},{"name":"PartnerEntity","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"participantRef","type":"Participant","isMany":true,"isReference":true}]},{"name":"PartnerRole","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"participantRef","type":"Participant","isMany":true,"isReference":true}]},{"name":"CorrelationProperty","superClass":["RootElement"],"properties":[{"name":"correlationPropertyRetrievalExpression","type":"CorrelationPropertyRetrievalExpression","isMany":true},{"name":"name","isAttr":true,"type":"String"},{"name":"type","type":"ItemDefinition","isAttr":true,"isReference":true}]},{"name":"Error","superClass":["RootElement"],"properties":[{"name":"structureRef","type":"ItemDefinition","isAttr":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"},{"name":"errorCode","isAttr":true,"type":"String"}]},{"name":"CorrelationKey","superClass":["BaseElement"],"properties":[{"name":"correlationPropertyRef","type":"CorrelationProperty","isMany":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"}]},{"name":"Expression","superClass":["BaseElement"],"isAbstract":false,"properties":[{"name":"body","type":"String","isBody":true}]},{"name":"FormalExpression","superClass":["Expression"],"properties":[{"name":"language","isAttr":true,"type":"String"},{"name":"evaluatesToTypeRef","type":"ItemDefinition","isAttr":true,"isReference":true}]},{"name":"Message","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"itemRef","type":"ItemDefinition","isAttr":true,"isReference":true}]},{"name":"ItemDefinition","superClass":["RootElement"],"properties":[{"name":"itemKind","type":"ItemKind","isAttr":true},{"name":"structureRef","type":"String","isAttr":true},{"name":"isCollection","default":false,"isAttr":true,"type":"Boolean"},{"name":"import","type":"Import","isAttr":true,"isReference":true}]},{"name":"FlowElement","isAbstract":true,"superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"auditing","type":"Auditing"},{"name":"monitoring","type":"Monitoring"},{"name":"categoryValueRef","type":"CategoryValue","isMany":true,"isReference":true}]},{"name":"SequenceFlow","superClass":["FlowElement"],"properties":[{"name":"isImmediate","isAttr":true,"type":"Boolean"},{"name":"conditionExpression","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"sourceRef","type":"FlowNode","isAttr":true,"isReference":true},{"name":"targetRef","type":"FlowNode","isAttr":true,"isReference":true}]},{"name":"FlowElementsContainer","isAbstract":true,"superClass":["BaseElement"],"properties":[{"name":"laneSets","type":"LaneSet","isMany":true},{"name":"flowElements","type":"FlowElement","isMany":true}]},{"name":"CallableElement","isAbstract":true,"superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"ioSpecification","type":"InputOutputSpecification","xml":{"serialize":"property"}},{"name":"supportedInterfaceRef","type":"Interface","isMany":true,"isReference":true},{"name":"ioBinding","type":"InputOutputBinding","isMany":true,"xml":{"serialize":"property"}}]},{"name":"FlowNode","isAbstract":true,"superClass":["FlowElement"],"properties":[{"name":"incoming","type":"SequenceFlow","isMany":true,"isReference":true},{"name":"outgoing","type":"SequenceFlow","isMany":true,"isReference":true},{"name":"lanes","type":"Lane","isVirtual":true,"isMany":true,"isReference":true}]},{"name":"CorrelationPropertyRetrievalExpression","superClass":["BaseElement"],"properties":[{"name":"messagePath","type":"FormalExpression"},{"name":"messageRef","type":"Message","isAttr":true,"isReference":true}]},{"name":"CorrelationPropertyBinding","superClass":["BaseElement"],"properties":[{"name":"dataPath","type":"FormalExpression"},{"name":"correlationPropertyRef","type":"CorrelationProperty","isAttr":true,"isReference":true}]},{"name":"Resource","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"resourceParameters","type":"ResourceParameter","isMany":true}]},{"name":"ResourceParameter","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"isRequired","isAttr":true,"type":"Boolean"},{"name":"type","type":"ItemDefinition","isAttr":true,"isReference":true}]},{"name":"CorrelationSubscription","superClass":["BaseElement"],"properties":[{"name":"correlationKeyRef","type":"CorrelationKey","isAttr":true,"isReference":true},{"name":"correlationPropertyBinding","type":"CorrelationPropertyBinding","isMany":true}]},{"name":"MessageFlow","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"sourceRef","type":"InteractionNode","isAttr":true,"isReference":true},{"name":"targetRef","type":"InteractionNode","isAttr":true,"isReference":true},{"name":"messageRef","type":"Message","isAttr":true,"isReference":true}]},{"name":"MessageFlowAssociation","superClass":["BaseElement"],"properties":[{"name":"innerMessageFlowRef","type":"MessageFlow","isAttr":true,"isReference":true},{"name":"outerMessageFlowRef","type":"MessageFlow","isAttr":true,"isReference":true}]},{"name":"InteractionNode","isAbstract":true,"properties":[{"name":"incomingConversationLinks","type":"ConversationLink","isVirtual":true,"isMany":true,"isReference":true},{"name":"outgoingConversationLinks","type":"ConversationLink","isVirtual":true,"isMany":true,"isReference":true}]},{"name":"Participant","superClass":["InteractionNode","BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"interfaceRef","type":"Interface","isMany":true,"isReference":true},{"name":"participantMultiplicity","type":"ParticipantMultiplicity"},{"name":"endPointRefs","type":"EndPoint","isMany":true,"isReference":true},{"name":"processRef","type":"Process","isAttr":true,"isReference":true}]},{"name":"ParticipantAssociation","superClass":["BaseElement"],"properties":[{"name":"innerParticipantRef","type":"Participant","isAttr":true,"isReference":true},{"name":"outerParticipantRef","type":"Participant","isAttr":true,"isReference":true}]},{"name":"ParticipantMultiplicity","properties":[{"name":"minimum","default":0,"isAttr":true,"type":"Integer"},{"name":"maximum","default":1,"isAttr":true,"type":"Integer"}],"superClass":["BaseElement"]},{"name":"Collaboration","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"isClosed","isAttr":true,"type":"Boolean"},{"name":"participants","type":"Participant","isMany":true},{"name":"messageFlows","type":"MessageFlow","isMany":true},{"name":"artifacts","type":"Artifact","isMany":true},{"name":"conversations","type":"ConversationNode","isMany":true},{"name":"conversationAssociations","type":"ConversationAssociation"},{"name":"participantAssociations","type":"ParticipantAssociation","isMany":true},{"name":"messageFlowAssociations","type":"MessageFlowAssociation","isMany":true},{"name":"correlationKeys","type":"CorrelationKey","isMany":true},{"name":"choreographyRef","type":"Choreography","isMany":true,"isReference":true},{"name":"conversationLinks","type":"ConversationLink","isMany":true}]},{"name":"ChoreographyActivity","isAbstract":true,"superClass":["FlowNode"],"properties":[{"name":"participantRef","type":"Participant","isMany":true,"isReference":true},{"name":"initiatingParticipantRef","type":"Participant","isAttr":true,"isReference":true},{"name":"correlationKeys","type":"CorrelationKey","isMany":true},{"name":"loopType","type":"ChoreographyLoopType","default":"None","isAttr":true}]},{"name":"CallChoreography","superClass":["ChoreographyActivity"],"properties":[{"name":"calledChoreographyRef","type":"Choreography","isAttr":true,"isReference":true},{"name":"participantAssociations","type":"ParticipantAssociation","isMany":true}]},{"name":"SubChoreography","superClass":["ChoreographyActivity","FlowElementsContainer"],"properties":[{"name":"artifacts","type":"Artifact","isMany":true}]},{"name":"ChoreographyTask","superClass":["ChoreographyActivity"],"properties":[{"name":"messageFlowRef","type":"MessageFlow","isMany":true,"isReference":true}]},{"name":"Choreography","superClass":["Collaboration","FlowElementsContainer"]},{"name":"GlobalChoreographyTask","superClass":["Choreography"],"properties":[{"name":"initiatingParticipantRef","type":"Participant","isAttr":true,"isReference":true}]},{"name":"TextAnnotation","superClass":["Artifact"],"properties":[{"name":"text","type":"String"},{"name":"textFormat","default":"text/plain","isAttr":true,"type":"String"}]},{"name":"Group","superClass":["Artifact"],"properties":[{"name":"categoryValueRef","type":"CategoryValue","isAttr":true,"isReference":true}]},{"name":"Association","superClass":["Artifact"],"properties":[{"name":"associationDirection","type":"AssociationDirection","isAttr":true},{"name":"sourceRef","type":"BaseElement","isAttr":true,"isReference":true},{"name":"targetRef","type":"BaseElement","isAttr":true,"isReference":true}]},{"name":"Category","superClass":["RootElement"],"properties":[{"name":"categoryValue","type":"CategoryValue","isMany":true},{"name":"name","isAttr":true,"type":"String"}]},{"name":"Artifact","isAbstract":true,"superClass":["BaseElement"]},{"name":"CategoryValue","superClass":["BaseElement"],"properties":[{"name":"categorizedFlowElements","type":"FlowElement","isVirtual":true,"isMany":true,"isReference":true},{"name":"value","isAttr":true,"type":"String"}]},{"name":"Activity","isAbstract":true,"superClass":["FlowNode"],"properties":[{"name":"isForCompensation","default":false,"isAttr":true,"type":"Boolean"},{"name":"default","type":"SequenceFlow","isAttr":true,"isReference":true},{"name":"ioSpecification","type":"InputOutputSpecification","xml":{"serialize":"property"}},{"name":"boundaryEventRefs","type":"BoundaryEvent","isMany":true,"isReference":true},{"name":"properties","type":"Property","isMany":true},{"name":"dataInputAssociations","type":"DataInputAssociation","isMany":true},{"name":"dataOutputAssociations","type":"DataOutputAssociation","isMany":true},{"name":"startQuantity","default":1,"isAttr":true,"type":"Integer"},{"name":"resources","type":"ResourceRole","isMany":true},{"name":"completionQuantity","default":1,"isAttr":true,"type":"Integer"},{"name":"loopCharacteristics","type":"LoopCharacteristics"}]},{"name":"ServiceTask","superClass":["Task"],"properties":[{"name":"implementation","isAttr":true,"type":"String"},{"name":"operationRef","type":"Operation","isAttr":true,"isReference":true}]},{"name":"SubProcess","superClass":["Activity","FlowElementsContainer","InteractionNode"],"properties":[{"name":"triggeredByEvent","default":false,"isAttr":true,"type":"Boolean"},{"name":"artifacts","type":"Artifact","isMany":true}]},{"name":"LoopCharacteristics","isAbstract":true,"superClass":["BaseElement"]},{"name":"MultiInstanceLoopCharacteristics","superClass":["LoopCharacteristics"],"properties":[{"name":"isSequential","default":false,"isAttr":true,"type":"Boolean"},{"name":"behavior","type":"MultiInstanceBehavior","default":"All","isAttr":true},{"name":"loopCardinality","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"loopDataInputRef","type":"ItemAwareElement","isReference":true},{"name":"loopDataOutputRef","type":"ItemAwareElement","isReference":true},{"name":"inputDataItem","type":"DataInput","xml":{"serialize":"property"}},{"name":"outputDataItem","type":"DataOutput","xml":{"serialize":"property"}},{"name":"complexBehaviorDefinition","type":"ComplexBehaviorDefinition","isMany":true},{"name":"completionCondition","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"oneBehaviorEventRef","type":"EventDefinition","isAttr":true,"isReference":true},{"name":"noneBehaviorEventRef","type":"EventDefinition","isAttr":true,"isReference":true}]},{"name":"StandardLoopCharacteristics","superClass":["LoopCharacteristics"],"properties":[{"name":"testBefore","default":false,"isAttr":true,"type":"Boolean"},{"name":"loopCondition","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"loopMaximum","type":"Integer","isAttr":true}]},{"name":"CallActivity","superClass":["Activity"],"properties":[{"name":"calledElement","type":"String","isAttr":true}]},{"name":"Task","superClass":["Activity","InteractionNode"]},{"name":"SendTask","superClass":["Task"],"properties":[{"name":"implementation","isAttr":true,"type":"String"},{"name":"operationRef","type":"Operation","isAttr":true,"isReference":true},{"name":"messageRef","type":"Message","isAttr":true,"isReference":true}]},{"name":"ReceiveTask","superClass":["Task"],"properties":[{"name":"implementation","isAttr":true,"type":"String"},{"name":"instantiate","default":false,"isAttr":true,"type":"Boolean"},{"name":"operationRef","type":"Operation","isAttr":true,"isReference":true},{"name":"messageRef","type":"Message","isAttr":true,"isReference":true}]},{"name":"ScriptTask","superClass":["Task"],"properties":[{"name":"scriptFormat","isAttr":true,"type":"String"},{"name":"script","type":"String"}]},{"name":"BusinessRuleTask","superClass":["Task"],"properties":[{"name":"implementation","isAttr":true,"type":"String"}]},{"name":"AdHocSubProcess","superClass":["SubProcess"],"properties":[{"name":"completionCondition","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"ordering","type":"AdHocOrdering","isAttr":true},{"name":"cancelRemainingInstances","default":true,"isAttr":true,"type":"Boolean"}]},{"name":"Transaction","superClass":["SubProcess"],"properties":[{"name":"protocol","isAttr":true,"type":"String"},{"name":"method","isAttr":true,"type":"String"}]},{"name":"GlobalScriptTask","superClass":["GlobalTask"],"properties":[{"name":"scriptLanguage","isAttr":true,"type":"String"},{"name":"script","isAttr":true,"type":"String"}]},{"name":"GlobalBusinessRuleTask","superClass":["GlobalTask"],"properties":[{"name":"implementation","isAttr":true,"type":"String"}]},{"name":"ComplexBehaviorDefinition","superClass":["BaseElement"],"properties":[{"name":"condition","type":"FormalExpression"},{"name":"event","type":"ImplicitThrowEvent"}]},{"name":"ResourceRole","superClass":["BaseElement"],"properties":[{"name":"resourceRef","type":"Resource","isReference":true},{"name":"resourceParameterBindings","type":"ResourceParameterBinding","isMany":true},{"name":"resourceAssignmentExpression","type":"ResourceAssignmentExpression"},{"name":"name","isAttr":true,"type":"String"}]},{"name":"ResourceParameterBinding","properties":[{"name":"expression","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"parameterRef","type":"ResourceParameter","isAttr":true,"isReference":true}],"superClass":["BaseElement"]},{"name":"ResourceAssignmentExpression","properties":[{"name":"expression","type":"Expression","xml":{"serialize":"xsi:type"}}],"superClass":["BaseElement"]},{"name":"Import","properties":[{"name":"importType","isAttr":true,"type":"String"},{"name":"location","isAttr":true,"type":"String"},{"name":"namespace","isAttr":true,"type":"String"}]},{"name":"Definitions","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"targetNamespace","isAttr":true,"type":"String"},{"name":"expressionLanguage","default":"http://www.w3.org/1999/XPath","isAttr":true,"type":"String"},{"name":"typeLanguage","default":"http://www.w3.org/2001/XMLSchema","isAttr":true,"type":"String"},{"name":"imports","type":"Import","isMany":true},{"name":"extensions","type":"Extension","isMany":true},{"name":"rootElements","type":"RootElement","isMany":true},{"name":"diagrams","isMany":true,"type":"bpmndi:BPMNDiagram"},{"name":"exporter","isAttr":true,"type":"String"},{"name":"relationships","type":"Relationship","isMany":true},{"name":"exporterVersion","isAttr":true,"type":"String"}]}],"enumerations":[{"name":"ProcessType","literalValues":[{"name":"None"},{"name":"Public"},{"name":"Private"}]},{"name":"GatewayDirection","literalValues":[{"name":"Unspecified"},{"name":"Converging"},{"name":"Diverging"},{"name":"Mixed"}]},{"name":"EventBasedGatewayType","literalValues":[{"name":"Parallel"},{"name":"Exclusive"}]},{"name":"RelationshipDirection","literalValues":[{"name":"None"},{"name":"Forward"},{"name":"Backward"},{"name":"Both"}]},{"name":"ItemKind","literalValues":[{"name":"Physical"},{"name":"Information"}]},{"name":"ChoreographyLoopType","literalValues":[{"name":"None"},{"name":"Standard"},{"name":"MultiInstanceSequential"},{"name":"MultiInstanceParallel"}]},{"name":"AssociationDirection","literalValues":[{"name":"None"},{"name":"One"},{"name":"Both"}]},{"name":"MultiInstanceBehavior","literalValues":[{"name":"None"},{"name":"One"},{"name":"All"},{"name":"Complex"}]},{"name":"AdHocOrdering","literalValues":[{"name":"Parallel"},{"name":"Sequential"}]}],"prefix":"bpmn","xml":{"tagAlias":"lowerCase","typePrefix":"t"}}',
    );
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"BPMNDI","uri":"http://www.omg.org/spec/BPMN/20100524/DI","types":[{"name":"BPMNDiagram","properties":[{"name":"plane","type":"BPMNPlane","redefines":"di:Diagram#rootElement"},{"name":"labelStyle","type":"BPMNLabelStyle","isMany":true}],"superClass":["di:Diagram"]},{"name":"BPMNPlane","properties":[{"name":"bpmnElement","isAttr":true,"isReference":true,"type":"bpmn:BaseElement","redefines":"di:DiagramElement#modelElement"}],"superClass":["di:Plane"]},{"name":"BPMNShape","properties":[{"name":"bpmnElement","isAttr":true,"isReference":true,"type":"bpmn:BaseElement","redefines":"di:DiagramElement#modelElement"},{"name":"isHorizontal","isAttr":true,"type":"Boolean"},{"name":"isExpanded","isAttr":true,"type":"Boolean"},{"name":"isMarkerVisible","isAttr":true,"type":"Boolean"},{"name":"label","type":"BPMNLabel"},{"name":"isMessageVisible","isAttr":true,"type":"Boolean"},{"name":"participantBandKind","type":"ParticipantBandKind","isAttr":true},{"name":"choreographyActivityShape","type":"BPMNShape","isAttr":true,"isReference":true}],"superClass":["di:LabeledShape"]},{"name":"BPMNEdge","properties":[{"name":"label","type":"BPMNLabel"},{"name":"bpmnElement","isAttr":true,"isReference":true,"type":"bpmn:BaseElement","redefines":"di:DiagramElement#modelElement"},{"name":"sourceElement","isAttr":true,"isReference":true,"type":"di:DiagramElement","redefines":"di:Edge#source"},{"name":"targetElement","isAttr":true,"isReference":true,"type":"di:DiagramElement","redefines":"di:Edge#target"},{"name":"messageVisibleKind","type":"MessageVisibleKind","isAttr":true,"default":"initiating"}],"superClass":["di:LabeledEdge"]},{"name":"BPMNLabel","properties":[{"name":"labelStyle","type":"BPMNLabelStyle","isAttr":true,"isReference":true,"redefines":"di:DiagramElement#style"}],"superClass":["di:Label"]},{"name":"BPMNLabelStyle","properties":[{"name":"font","type":"dc:Font"}],"superClass":["di:Style"]}],"enumerations":[{"name":"ParticipantBandKind","literalValues":[{"name":"top_initiating"},{"name":"middle_initiating"},{"name":"bottom_initiating"},{"name":"top_non_initiating"},{"name":"middle_non_initiating"},{"name":"bottom_non_initiating"}]},{"name":"MessageVisibleKind","literalValues":[{"name":"initiating"},{"name":"non_initiating"}]}],"associations":[],"prefix":"bpmndi"}',
    );
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"DC","uri":"http://www.omg.org/spec/DD/20100524/DC","types":[{"name":"Boolean"},{"name":"Integer"},{"name":"Real"},{"name":"String"},{"name":"Font","properties":[{"name":"name","type":"String","isAttr":true},{"name":"size","type":"Real","isAttr":true},{"name":"isBold","type":"Boolean","isAttr":true},{"name":"isItalic","type":"Boolean","isAttr":true},{"name":"isUnderline","type":"Boolean","isAttr":true},{"name":"isStrikeThrough","type":"Boolean","isAttr":true}]},{"name":"Point","properties":[{"name":"x","type":"Real","default":"0","isAttr":true},{"name":"y","type":"Real","default":"0","isAttr":true}]},{"name":"Bounds","properties":[{"name":"x","type":"Real","default":"0","isAttr":true},{"name":"y","type":"Real","default":"0","isAttr":true},{"name":"width","type":"Real","isAttr":true},{"name":"height","type":"Real","isAttr":true}]}],"prefix":"dc","associations":[]}',
    );
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"DI","uri":"http://www.omg.org/spec/DD/20100524/DI","types":[{"name":"DiagramElement","isAbstract":true,"properties":[{"name":"id","type":"String","isAttr":true,"isId":true},{"name":"extension","type":"Extension"},{"name":"owningDiagram","type":"Diagram","isReadOnly":true,"isVirtual":true,"isReference":true},{"name":"owningElement","type":"DiagramElement","isReadOnly":true,"isVirtual":true,"isReference":true},{"name":"modelElement","isReadOnly":true,"isVirtual":true,"isReference":true,"type":"Element"},{"name":"style","type":"Style","isReadOnly":true,"isVirtual":true,"isReference":true},{"name":"ownedElement","type":"DiagramElement","isReadOnly":true,"isVirtual":true,"isMany":true}]},{"name":"Node","isAbstract":true,"superClass":["DiagramElement"]},{"name":"Edge","isAbstract":true,"superClass":["DiagramElement"],"properties":[{"name":"source","type":"DiagramElement","isReadOnly":true,"isVirtual":true,"isReference":true},{"name":"target","type":"DiagramElement","isReadOnly":true,"isVirtual":true,"isReference":true},{"name":"waypoint","isUnique":false,"isMany":true,"type":"dc:Point","xml":{"serialize":"xsi:type"}}]},{"name":"Diagram","isAbstract":true,"properties":[{"name":"id","type":"String","isAttr":true,"isId":true},{"name":"rootElement","type":"DiagramElement","isReadOnly":true,"isVirtual":true},{"name":"name","isAttr":true,"type":"String"},{"name":"documentation","isAttr":true,"type":"String"},{"name":"resolution","isAttr":true,"type":"Real"},{"name":"ownedStyle","type":"Style","isReadOnly":true,"isVirtual":true,"isMany":true}]},{"name":"Shape","isAbstract":true,"superClass":["Node"],"properties":[{"name":"bounds","type":"dc:Bounds"}]},{"name":"Plane","isAbstract":true,"superClass":["Node"],"properties":[{"name":"planeElement","type":"DiagramElement","subsettedProperty":"DiagramElement-ownedElement","isMany":true}]},{"name":"LabeledEdge","isAbstract":true,"superClass":["Edge"],"properties":[{"name":"ownedLabel","type":"Label","isReadOnly":true,"subsettedProperty":"DiagramElement-ownedElement","isVirtual":true,"isMany":true}]},{"name":"LabeledShape","isAbstract":true,"superClass":["Shape"],"properties":[{"name":"ownedLabel","type":"Label","isReadOnly":true,"subsettedProperty":"DiagramElement-ownedElement","isVirtual":true,"isMany":true}]},{"name":"Label","isAbstract":true,"superClass":["Node"],"properties":[{"name":"bounds","type":"dc:Bounds"}]},{"name":"Style","isAbstract":true,"properties":[{"name":"id","type":"String","isAttr":true,"isId":true}]},{"name":"Extension","properties":[{"name":"values","type":"Element","isMany":true}]}],"associations":[],"prefix":"di","xml":{"tagAlias":"lowerCase"}}',
    );
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"bpmn.io colors for BPMN","uri":"http://bpmn.io/schema/bpmn/biocolor/1.0","prefix":"bioc","types":[{"name":"ColoredShape","extends":["bpmndi:BPMNShape"],"properties":[{"name":"stroke","isAttr":true,"type":"String"},{"name":"fill","isAttr":true,"type":"String"}]},{"name":"ColoredEdge","extends":["bpmndi:BPMNEdge"],"properties":[{"name":"stroke","isAttr":true,"type":"String"},{"name":"fill","isAttr":true,"type":"String"}]}],"enumerations":[],"associations":[]}',
    );
  },
  function (e, t, n) {
    n(236), (e.exports = n(438));
  },
  function (e, t, n) {
    'use strict';
    (function (e) {
      if ((n(237), n(434), n(435), e._babelPolyfill))
        throw new Error('only one instance of babel-polyfill is allowed');
      e._babelPolyfill = !0;
      var t = 'defineProperty';
      function r(e, n, r) {
        e[n] || Object[t](e, n, { writable: !0, configurable: !0, value: r });
      }
      r(String.prototype, 'padLeft', ''.padStart),
        r(String.prototype, 'padRight', ''.padEnd),
        'pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill'
          .split(',')
          .forEach(function (e) {
            [][e] && r(Array, e, Function.call.bind([][e]));
          });
    }.call(this, n(11)));
  },
  function (e, t, n) {
    n(238),
      n(241),
      n(242),
      n(243),
      n(244),
      n(245),
      n(246),
      n(247),
      n(248),
      n(249),
      n(250),
      n(251),
      n(252),
      n(253),
      n(254),
      n(255),
      n(256),
      n(257),
      n(258),
      n(259),
      n(260),
      n(261),
      n(262),
      n(263),
      n(264),
      n(265),
      n(266),
      n(267),
      n(268),
      n(269),
      n(270),
      n(271),
      n(272),
      n(273),
      n(274),
      n(275),
      n(276),
      n(277),
      n(278),
      n(279),
      n(280),
      n(281),
      n(282),
      n(283),
      n(284),
      n(285),
      n(286),
      n(287),
      n(288),
      n(289),
      n(290),
      n(291),
      n(292),
      n(293),
      n(294),
      n(295),
      n(296),
      n(297),
      n(298),
      n(299),
      n(300),
      n(301),
      n(302),
      n(303),
      n(304),
      n(305),
      n(306),
      n(307),
      n(308),
      n(309),
      n(310),
      n(311),
      n(312),
      n(313),
      n(314),
      n(315),
      n(316),
      n(318),
      n(319),
      n(321),
      n(322),
      n(323),
      n(324),
      n(325),
      n(326),
      n(327),
      n(329),
      n(330),
      n(331),
      n(332),
      n(333),
      n(334),
      n(335),
      n(336),
      n(337),
      n(338),
      n(339),
      n(340),
      n(341),
      n(129),
      n(342),
      n(170),
      n(343),
      n(171),
      n(344),
      n(345),
      n(346),
      n(347),
      n(348),
      n(174),
      n(176),
      n(177),
      n(349),
      n(350),
      n(351),
      n(352),
      n(353),
      n(354),
      n(355),
      n(356),
      n(357),
      n(358),
      n(359),
      n(360),
      n(361),
      n(362),
      n(363),
      n(364),
      n(365),
      n(366),
      n(367),
      n(368),
      n(369),
      n(370),
      n(371),
      n(372),
      n(373),
      n(374),
      n(375),
      n(376),
      n(377),
      n(378),
      n(379),
      n(380),
      n(381),
      n(382),
      n(383),
      n(384),
      n(385),
      n(386),
      n(387),
      n(388),
      n(389),
      n(390),
      n(391),
      n(392),
      n(393),
      n(394),
      n(395),
      n(396),
      n(397),
      n(398),
      n(399),
      n(400),
      n(401),
      n(402),
      n(403),
      n(404),
      n(405),
      n(406),
      n(407),
      n(408),
      n(409),
      n(410),
      n(411),
      n(412),
      n(413),
      n(414),
      n(415),
      n(416),
      n(417),
      n(418),
      n(419),
      n(420),
      n(421),
      n(422),
      n(423),
      n(424),
      n(425),
      n(426),
      n(427),
      n(428),
      n(429),
      n(430),
      n(431),
      n(432),
      n(433),
      (e.exports = n(22));
  },
  function (e, t, n) {
    'use strict';
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(2),
      o = n(18),
      a = n(7),
      s = n(0),
      u = n(14),
      c = n(35).KEY,
      p = n(3),
      f = n(67),
      l = n(60),
      h = n(44),
      d = n(5),
      m = n(152),
      y = n(110),
      v = n(240),
      g = n(84),
      b = n(1),
      w = n(4),
      x = n(10),
      E = n(19),
      S = n(28),
      A = n(43),
      R = n(47),
      C = n(155),
      _ = n(20),
      O = n(83),
      T = n(9),
      P = n(45),
      k = _.f,
      I = T.f,
      N = C.f,
      M = i.Symbol,
      D = i.JSON,
      j = D && D.stringify,
      L = d('_hidden'),
      B = d('toPrimitive'),
      F = {}.propertyIsEnumerable,
      U = f('symbol-registry'),
      V = f('symbols'),
      q = f('op-symbols'),
      z = Object.prototype,
      $ = 'function' == typeof M && !!O.f,
      G = i.QObject,
      W = !G || !G.prototype || !G.prototype.findChild,
      H =
        a &&
        p(function () {
          return (
            7 !=
            R(
              I({}, 'a', {
                get: function () {
                  return I(this, 'a', { value: 7 }).a;
                },
              }),
            ).a
          );
        })
          ? function (e, t, n) {
              var r = k(z, t);
              r && delete z[t], I(e, t, n), r && e !== z && I(z, t, r);
            }
          : I,
      Y = function (e) {
        var t = (V[e] = R(M.prototype));
        return (t._k = e), t;
      },
      J =
        $ && 'symbol' == r(M.iterator)
          ? function (e) {
              return 'symbol' == r(e);
            }
          : function (e) {
              return e instanceof M;
            },
      K = function (e, t, n) {
        return (
          e === z && K(q, t, n),
          b(e),
          (t = S(t, !0)),
          b(n),
          o(V, t)
            ? (n.enumerable
                ? (o(e, L) && e[L][t] && (e[L][t] = !1), (n = R(n, { enumerable: A(0, !1) })))
                : (o(e, L) || I(e, L, A(1, {})), (e[L][t] = !0)),
              H(e, t, n))
            : I(e, t, n)
        );
      },
      X = function (e, t) {
        b(e);
        for (var n, r = v((t = E(t))), i = 0, o = r.length; o > i; ) K(e, (n = r[i++]), t[n]);
        return e;
      },
      Q = function (e) {
        var t = F.call(this, (e = S(e, !0)));
        return (
          !(this === z && o(V, e) && !o(q, e)) &&
          (!(t || !o(this, e) || !o(V, e) || (o(this, L) && this[L][e])) || t)
        );
      },
      Z = function (e, t) {
        if (((e = E(e)), (t = S(t, !0)), e !== z || !o(V, t) || o(q, t))) {
          var n = k(e, t);
          return !n || !o(V, t) || (o(e, L) && e[L][t]) || (n.enumerable = !0), n;
        }
      },
      ee = function (e) {
        for (var t, n = N(E(e)), r = [], i = 0; n.length > i; )
          o(V, (t = n[i++])) || t == L || t == c || r.push(t);
        return r;
      },
      te = function (e) {
        for (var t, n = e === z, r = N(n ? q : E(e)), i = [], a = 0; r.length > a; )
          !o(V, (t = r[a++])) || (n && !o(z, t)) || i.push(V[t]);
        return i;
      };
    $ ||
      (u(
        (M = function () {
          if (this instanceof M) throw TypeError('Symbol is not a constructor!');
          var e = h(arguments.length > 0 ? arguments[0] : void 0),
            t = function t(n) {
              this === z && t.call(q, n),
                o(this, L) && o(this[L], e) && (this[L][e] = !1),
                H(this, e, A(1, n));
            };
          return a && W && H(z, e, { configurable: !0, set: t }), Y(e);
        }).prototype,
        'toString',
        function () {
          return this._k;
        },
      ),
      (_.f = Z),
      (T.f = K),
      (n(48).f = C.f = ee),
      (n(69).f = Q),
      (O.f = te),
      a && !n(34) && u(z, 'propertyIsEnumerable', Q, !0),
      (m.f = function (e) {
        return Y(d(e));
      })),
      s(s.G + s.W + s.F * !$, { Symbol: M });
    for (
      var ne =
          'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split(
            ',',
          ),
        re = 0;
      ne.length > re;

    )
      d(ne[re++]);
    for (var ie = P(d.store), oe = 0; ie.length > oe; ) y(ie[oe++]);
    s(s.S + s.F * !$, 'Symbol', {
      for: function (e) {
        return o(U, (e += '')) ? U[e] : (U[e] = M(e));
      },
      keyFor: function (e) {
        if (!J(e)) throw TypeError(e + ' is not a symbol!');
        for (var t in U) if (U[t] === e) return t;
      },
      useSetter: function () {
        W = !0;
      },
      useSimple: function () {
        W = !1;
      },
    }),
      s(s.S + s.F * !$, 'Object', {
        create: function (e, t) {
          return void 0 === t ? R(e) : X(R(e), t);
        },
        defineProperty: K,
        defineProperties: X,
        getOwnPropertyDescriptor: Z,
        getOwnPropertyNames: ee,
        getOwnPropertySymbols: te,
      });
    var ae = p(function () {
      O.f(1);
    });
    s(s.S + s.F * ae, 'Object', {
      getOwnPropertySymbols: function (e) {
        return O.f(x(e));
      },
    }),
      D &&
        s(
          s.S +
            s.F *
              (!$ ||
                p(function () {
                  var e = M();
                  return '[null]' != j([e]) || '{}' != j({ a: e }) || '{}' != j(Object(e));
                })),
          'JSON',
          {
            stringify: function (e) {
              for (var t, n, r = [e], i = 1; arguments.length > i; ) r.push(arguments[i++]);
              if (((n = t = r[1]), (w(t) || void 0 !== e) && !J(e)))
                return (
                  g(t) ||
                    (t = function (e, t) {
                      if (('function' == typeof n && (t = n.call(this, e, t)), !J(t))) return t;
                    }),
                  (r[1] = t),
                  j.apply(D, r)
                );
            },
          },
        ),
      M.prototype[B] || n(13)(M.prototype, B, M.prototype.valueOf),
      l(M, 'Symbol'),
      l(Math, 'Math', !0),
      l(i.JSON, 'JSON', !0);
  },
  function (e, t, n) {
    e.exports = n(67)('native-function-to-string', Function.toString);
  },
  function (e, t, n) {
    var r = n(45),
      i = n(83),
      o = n(69);
    e.exports = function (e) {
      var t = r(e),
        n = i.f;
      if (n)
        for (var a, s = n(e), u = o.f, c = 0; s.length > c; ) u.call(e, (a = s[c++])) && t.push(a);
      return t;
    };
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Object', { create: n(47) });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S + r.F * !n(7), 'Object', { defineProperty: n(9).f });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S + r.F * !n(7), 'Object', { defineProperties: n(154) });
  },
  function (e, t, n) {
    var r = n(19),
      i = n(20).f;
    n(30)('getOwnPropertyDescriptor', function () {
      return function (e, t) {
        return i(r(e), t);
      };
    });
  },
  function (e, t, n) {
    var r = n(10),
      i = n(21);
    n(30)('getPrototypeOf', function () {
      return function (e) {
        return i(r(e));
      };
    });
  },
  function (e, t, n) {
    var r = n(10),
      i = n(45);
    n(30)('keys', function () {
      return function (e) {
        return i(r(e));
      };
    });
  },
  function (e, t, n) {
    n(30)('getOwnPropertyNames', function () {
      return n(155).f;
    });
  },
  function (e, t, n) {
    var r = n(4),
      i = n(35).onFreeze;
    n(30)('freeze', function (e) {
      return function (t) {
        return e && r(t) ? e(i(t)) : t;
      };
    });
  },
  function (e, t, n) {
    var r = n(4),
      i = n(35).onFreeze;
    n(30)('seal', function (e) {
      return function (t) {
        return e && r(t) ? e(i(t)) : t;
      };
    });
  },
  function (e, t, n) {
    var r = n(4),
      i = n(35).onFreeze;
    n(30)('preventExtensions', function (e) {
      return function (t) {
        return e && r(t) ? e(i(t)) : t;
      };
    });
  },
  function (e, t, n) {
    var r = n(4);
    n(30)('isFrozen', function (e) {
      return function (t) {
        return !r(t) || (!!e && e(t));
      };
    });
  },
  function (e, t, n) {
    var r = n(4);
    n(30)('isSealed', function (e) {
      return function (t) {
        return !r(t) || (!!e && e(t));
      };
    });
  },
  function (e, t, n) {
    var r = n(4);
    n(30)('isExtensible', function (e) {
      return function (t) {
        return !!r(t) && (!e || e(t));
      };
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S + r.F, 'Object', { assign: n(156) });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Object', { is: n(157) });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Object', { setPrototypeOf: n(114).set });
  },
  function (e, t, n) {
    'use strict';
    var r = n(61),
      i = {};
    (i[n(5)('toStringTag')] = 'z'),
      i + '' != '[object z]' &&
        n(14)(
          Object.prototype,
          'toString',
          function () {
            return '[object ' + r(this) + ']';
          },
          !0,
        );
  },
  function (e, t, n) {
    var r = n(0);
    r(r.P, 'Function', { bind: n(158) });
  },
  function (e, t, n) {
    var r = n(9).f,
      i = Function.prototype,
      o = /^\s*function ([^ (]*)/;
    'name' in i ||
      (n(7) &&
        r(i, 'name', {
          configurable: !0,
          get: function () {
            try {
              return ('' + this).match(o)[1];
            } catch (e) {
              return '';
            }
          },
        }));
  },
  function (e, t, n) {
    'use strict';
    var r = n(4),
      i = n(21),
      o = n(5)('hasInstance'),
      a = Function.prototype;
    o in a ||
      n(9).f(a, o, {
        value: function (e) {
          if ('function' != typeof this || !r(e)) return !1;
          if (!r(this.prototype)) return e instanceof this;
          for (; (e = i(e)); ) if (this.prototype === e) return !0;
          return !1;
        },
      });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(160);
    r(r.G + r.F * (parseInt != i), { parseInt: i });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(161);
    r(r.G + r.F * (parseFloat != i), { parseFloat: i });
  },
  function (e, t, n) {
    'use strict';
    var r = n(2),
      i = n(18),
      o = n(24),
      a = n(116),
      s = n(28),
      u = n(3),
      c = n(48).f,
      p = n(20).f,
      f = n(9).f,
      l = n(62).trim,
      h = r.Number,
      d = h,
      m = h.prototype,
      y = 'Number' == o(n(47)(m)),
      v = 'trim' in String.prototype,
      g = function (e) {
        var t = s(e, !1);
        if ('string' == typeof t && t.length > 2) {
          var n,
            r,
            i,
            o = (t = v ? t.trim() : l(t, 3)).charCodeAt(0);
          if (43 === o || 45 === o) {
            if (88 === (n = t.charCodeAt(2)) || 120 === n) return NaN;
          } else if (48 === o) {
            switch (t.charCodeAt(1)) {
              case 66:
              case 98:
                (r = 2), (i = 49);
                break;
              case 79:
              case 111:
                (r = 8), (i = 55);
                break;
              default:
                return +t;
            }
            for (var a, u = t.slice(2), c = 0, p = u.length; c < p; c++)
              if ((a = u.charCodeAt(c)) < 48 || a > i) return NaN;
            return parseInt(u, r);
          }
        }
        return +t;
      };
    if (!h(' 0o1') || !h('0b1') || h('+0x1')) {
      h = function (e) {
        var t = arguments.length < 1 ? 0 : e,
          n = this;
        return n instanceof h &&
          (y
            ? u(function () {
                m.valueOf.call(n);
              })
            : 'Number' != o(n))
          ? a(new d(g(t)), n, h)
          : g(t);
      };
      for (
        var b,
          w = n(7)
            ? c(d)
            : 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'.split(
                ',',
              ),
          x = 0;
        w.length > x;
        x++
      )
        i(d, (b = w[x])) && !i(h, b) && f(h, b, p(d, b));
      (h.prototype = m), (m.constructor = h), n(14)(r, 'Number', h);
    }
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(25),
      o = n(162),
      a = n(117),
      s = (1).toFixed,
      u = Math.floor,
      c = [0, 0, 0, 0, 0, 0],
      p = 'Number.toFixed: incorrect invocation!',
      f = function (e, t) {
        for (var n = -1, r = t; ++n < 6; ) (r += e * c[n]), (c[n] = r % 1e7), (r = u(r / 1e7));
      },
      l = function (e) {
        for (var t = 6, n = 0; --t >= 0; ) (n += c[t]), (c[t] = u(n / e)), (n = (n % e) * 1e7);
      },
      h = function () {
        for (var e = 6, t = ''; --e >= 0; )
          if ('' !== t || 0 === e || 0 !== c[e]) {
            var n = String(c[e]);
            t = '' === t ? n : t + a.call('0', 7 - n.length) + n;
          }
        return t;
      },
      d = function e(t, n, r) {
        return 0 === n ? r : n % 2 == 1 ? e(t, n - 1, r * t) : e(t * t, n / 2, r);
      };
    r(
      r.P +
        r.F *
          ((!!s &&
            ('0.000' !== (8e-5).toFixed(3) ||
              '1' !== (0.9).toFixed(0) ||
              '1.25' !== (1.255).toFixed(2) ||
              '1000000000000000128' !== (0xde0b6b3a7640080).toFixed(0))) ||
            !n(3)(function () {
              s.call({});
            })),
      'Number',
      {
        toFixed: function (e) {
          var t,
            n,
            r,
            s,
            u = o(this, p),
            c = i(e),
            m = '',
            y = '0';
          if (c < 0 || c > 20) throw RangeError(p);
          if (u != u) return 'NaN';
          if (u <= -1e21 || u >= 1e21) return String(u);
          if ((u < 0 && ((m = '-'), (u = -u)), u > 1e-21))
            if (
              ((n =
                (t =
                  (function (e) {
                    for (var t = 0, n = e; n >= 4096; ) (t += 12), (n /= 4096);
                    for (; n >= 2; ) (t += 1), (n /= 2);
                    return t;
                  })(u * d(2, 69, 1)) - 69) < 0
                  ? u * d(2, -t, 1)
                  : u / d(2, t, 1)),
              (n *= 4503599627370496),
              (t = 52 - t) > 0)
            ) {
              for (f(0, n), r = c; r >= 7; ) f(1e7, 0), (r -= 7);
              for (f(d(10, r, 1), 0), r = t - 1; r >= 23; ) l(1 << 23), (r -= 23);
              l(1 << r), f(1, 1), l(2), (y = h());
            } else f(0, n), f(1 << -t, 0), (y = h() + a.call('0', c));
          return (y =
            c > 0
              ? m +
                ((s = y.length) <= c
                  ? '0.' + a.call('0', c - s) + y
                  : y.slice(0, s - c) + '.' + y.slice(s - c))
              : m + y);
        },
      },
    );
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(3),
      o = n(162),
      a = (1).toPrecision;
    r(
      r.P +
        r.F *
          (i(function () {
            return '1' !== a.call(1, void 0);
          }) ||
            !i(function () {
              a.call({});
            })),
      'Number',
      {
        toPrecision: function (e) {
          var t = o(this, 'Number#toPrecision: incorrect invocation!');
          return void 0 === e ? a.call(t) : a.call(t, e);
        },
      },
    );
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Number', { EPSILON: Math.pow(2, -52) });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(2).isFinite;
    r(r.S, 'Number', {
      isFinite: function (e) {
        return 'number' == typeof e && i(e);
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Number', { isInteger: n(163) });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Number', {
      isNaN: function (e) {
        return e != e;
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(163),
      o = Math.abs;
    r(r.S, 'Number', {
      isSafeInteger: function (e) {
        return i(e) && o(e) <= 9007199254740991;
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Number', { MAX_SAFE_INTEGER: 9007199254740991 });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Number', { MIN_SAFE_INTEGER: -9007199254740991 });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(161);
    r(r.S + r.F * (Number.parseFloat != i), 'Number', { parseFloat: i });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(160);
    r(r.S + r.F * (Number.parseInt != i), 'Number', { parseInt: i });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(164),
      o = Math.sqrt,
      a = Math.acosh;
    r(r.S + r.F * !(a && 710 == Math.floor(a(Number.MAX_VALUE)) && a(1 / 0) == 1 / 0), 'Math', {
      acosh: function (e) {
        return (e = +e) < 1
          ? NaN
          : e > 94906265.62425156
          ? Math.log(e) + Math.LN2
          : i(e - 1 + o(e - 1) * o(e + 1));
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = Math.asinh;
    r(r.S + r.F * !(i && 1 / i(0) > 0), 'Math', {
      asinh: function e(t) {
        return isFinite((t = +t)) && 0 != t
          ? t < 0
            ? -e(-t)
            : Math.log(t + Math.sqrt(t * t + 1))
          : t;
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = Math.atanh;
    r(r.S + r.F * !(i && 1 / i(-0) < 0), 'Math', {
      atanh: function (e) {
        return 0 == (e = +e) ? e : Math.log((1 + e) / (1 - e)) / 2;
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(118);
    r(r.S, 'Math', {
      cbrt: function (e) {
        return i((e = +e)) * Math.pow(Math.abs(e), 1 / 3);
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', {
      clz32: function (e) {
        return (e >>>= 0) ? 31 - Math.floor(Math.log(e + 0.5) * Math.LOG2E) : 32;
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = Math.exp;
    r(r.S, 'Math', {
      cosh: function (e) {
        return (i((e = +e)) + i(-e)) / 2;
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(119);
    r(r.S + r.F * (i != Math.expm1), 'Math', { expm1: i });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', { fround: n(165) });
  },
  function (e, t, n) {
    var r = n(0),
      i = Math.abs;
    r(r.S, 'Math', {
      hypot: function (e, t) {
        for (var n, r, o = 0, a = 0, s = arguments.length, u = 0; a < s; )
          u < (n = i(arguments[a++]))
            ? ((o = o * (r = u / n) * r + 1), (u = n))
            : (o += n > 0 ? (r = n / u) * r : n);
        return u === 1 / 0 ? 1 / 0 : u * Math.sqrt(o);
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = Math.imul;
    r(
      r.S +
        r.F *
          n(3)(function () {
            return -5 != i(4294967295, 5) || 2 != i.length;
          }),
      'Math',
      {
        imul: function (e, t) {
          var n = +e,
            r = +t,
            i = 65535 & n,
            o = 65535 & r;
          return (
            0 | (i * o + ((((65535 & (n >>> 16)) * o + i * (65535 & (r >>> 16))) << 16) >>> 0))
          );
        },
      },
    );
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', {
      log10: function (e) {
        return Math.log(e) * Math.LOG10E;
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', { log1p: n(164) });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', {
      log2: function (e) {
        return Math.log(e) / Math.LN2;
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', { sign: n(118) });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(119),
      o = Math.exp;
    r(
      r.S +
        r.F *
          n(3)(function () {
            return -2e-17 != !Math.sinh(-2e-17);
          }),
      'Math',
      {
        sinh: function (e) {
          return Math.abs((e = +e)) < 1
            ? (i(e) - i(-e)) / 2
            : (o(e - 1) - o(-e - 1)) * (Math.E / 2);
        },
      },
    );
  },
  function (e, t, n) {
    var r = n(0),
      i = n(119),
      o = Math.exp;
    r(r.S, 'Math', {
      tanh: function (e) {
        var t = i((e = +e)),
          n = i(-e);
        return t == 1 / 0 ? 1 : n == 1 / 0 ? -1 : (t - n) / (o(e) + o(-e));
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', {
      trunc: function (e) {
        return (e > 0 ? Math.floor : Math.ceil)(e);
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(46),
      o = String.fromCharCode,
      a = String.fromCodePoint;
    r(r.S + r.F * (!!a && 1 != a.length), 'String', {
      fromCodePoint: function (e) {
        for (var t, n = [], r = arguments.length, a = 0; r > a; ) {
          if (((t = +arguments[a++]), i(t, 1114111) !== t))
            throw RangeError(t + ' is not a valid code point');
          n.push(t < 65536 ? o(t) : o(55296 + ((t -= 65536) >> 10), (t % 1024) + 56320));
        }
        return n.join('');
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(19),
      o = n(6);
    r(r.S, 'String', {
      raw: function (e) {
        for (var t = i(e.raw), n = o(t.length), r = arguments.length, a = [], s = 0; n > s; )
          a.push(String(t[s++])), s < r && a.push(String(arguments[s]));
        return a.join('');
      },
    });
  },
  function (e, t, n) {
    'use strict';
    n(62)('trim', function (e) {
      return function () {
        return e(this, 3);
      };
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(85)(!0);
    n(120)(
      String,
      'String',
      function (e) {
        (this._t = String(e)), (this._i = 0);
      },
      function () {
        var e,
          t = this._t,
          n = this._i;
        return n >= t.length
          ? { value: void 0, done: !0 }
          : ((e = r(t, n)), (this._i += e.length), { value: e, done: !1 });
      },
    );
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(85)(!1);
    r(r.P, 'String', {
      codePointAt: function (e) {
        return i(this, e);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(6),
      o = n(122),
      a = ''.endsWith;
    r(r.P + r.F * n(123)('endsWith'), 'String', {
      endsWith: function (e) {
        var t = o(this, e, 'endsWith'),
          n = arguments.length > 1 ? arguments[1] : void 0,
          r = i(t.length),
          s = void 0 === n ? r : Math.min(i(n), r),
          u = String(e);
        return a ? a.call(t, u, s) : t.slice(s - u.length, s) === u;
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(122);
    r(r.P + r.F * n(123)('includes'), 'String', {
      includes: function (e) {
        return !!~i(this, e, 'includes').indexOf(e, arguments.length > 1 ? arguments[1] : void 0);
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.P, 'String', { repeat: n(117) });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(6),
      o = n(122),
      a = ''.startsWith;
    r(r.P + r.F * n(123)('startsWith'), 'String', {
      startsWith: function (e) {
        var t = o(this, e, 'startsWith'),
          n = i(Math.min(arguments.length > 1 ? arguments[1] : void 0, t.length)),
          r = String(e);
        return a ? a.call(t, r, n) : t.slice(n, n + r.length) === r;
      },
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('anchor', function (e) {
      return function (t) {
        return e(this, 'a', 'name', t);
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('big', function (e) {
      return function () {
        return e(this, 'big', '', '');
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('blink', function (e) {
      return function () {
        return e(this, 'blink', '', '');
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('bold', function (e) {
      return function () {
        return e(this, 'b', '', '');
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('fixed', function (e) {
      return function () {
        return e(this, 'tt', '', '');
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('fontcolor', function (e) {
      return function (t) {
        return e(this, 'font', 'color', t);
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('fontsize', function (e) {
      return function (t) {
        return e(this, 'font', 'size', t);
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('italics', function (e) {
      return function () {
        return e(this, 'i', '', '');
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('link', function (e) {
      return function (t) {
        return e(this, 'a', 'href', t);
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('small', function (e) {
      return function () {
        return e(this, 'small', '', '');
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('strike', function (e) {
      return function () {
        return e(this, 'strike', '', '');
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('sub', function (e) {
      return function () {
        return e(this, 'sub', '', '');
      };
    });
  },
  function (e, t, n) {
    'use strict';
    n(15)('sup', function (e) {
      return function () {
        return e(this, 'sup', '', '');
      };
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Date', {
      now: function () {
        return new Date().getTime();
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(10),
      o = n(28);
    r(
      r.P +
        r.F *
          n(3)(function () {
            return (
              null !== new Date(NaN).toJSON() ||
              1 !==
                Date.prototype.toJSON.call({
                  toISOString: function () {
                    return 1;
                  },
                })
            );
          }),
      'Date',
      {
        toJSON: function (e) {
          var t = i(this),
            n = o(t);
          return 'number' != typeof n || isFinite(n) ? t.toISOString() : null;
        },
      },
    );
  },
  function (e, t, n) {
    var r = n(0),
      i = n(317);
    r(r.P + r.F * (Date.prototype.toISOString !== i), 'Date', { toISOString: i });
  },
  function (e, t, n) {
    'use strict';
    var r = n(3),
      i = Date.prototype.getTime,
      o = Date.prototype.toISOString,
      a = function (e) {
        return e > 9 ? e : '0' + e;
      };
    e.exports =
      r(function () {
        return '0385-07-25T07:06:39.999Z' != o.call(new Date(-5e13 - 1));
      }) ||
      !r(function () {
        o.call(new Date(NaN));
      })
        ? function () {
            if (!isFinite(i.call(this))) throw RangeError('Invalid time value');
            var e = this,
              t = e.getUTCFullYear(),
              n = e.getUTCMilliseconds(),
              r = t < 0 ? '-' : t > 9999 ? '+' : '';
            return (
              r +
              ('00000' + Math.abs(t)).slice(r ? -6 : -4) +
              '-' +
              a(e.getUTCMonth() + 1) +
              '-' +
              a(e.getUTCDate()) +
              'T' +
              a(e.getUTCHours()) +
              ':' +
              a(e.getUTCMinutes()) +
              ':' +
              a(e.getUTCSeconds()) +
              '.' +
              (n > 99 ? n : '0' + a(n)) +
              'Z'
            );
          }
        : o;
  },
  function (e, t, n) {
    var r = Date.prototype,
      i = r.toString,
      o = r.getTime;
    new Date(NaN) + '' != 'Invalid Date' &&
      n(14)(r, 'toString', function () {
        var e = o.call(this);
        return e == e ? i.call(this) : 'Invalid Date';
      });
  },
  function (e, t, n) {
    var r = n(5)('toPrimitive'),
      i = Date.prototype;
    r in i || n(13)(i, r, n(320));
  },
  function (e, t, n) {
    'use strict';
    var r = n(1),
      i = n(28);
    e.exports = function (e) {
      if ('string' !== e && 'number' !== e && 'default' !== e) throw TypeError('Incorrect hint');
      return i(r(this), 'number' != e);
    };
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Array', { isArray: n(84) });
  },
  function (e, t, n) {
    'use strict';
    var r = n(23),
      i = n(0),
      o = n(10),
      a = n(166),
      s = n(124),
      u = n(6),
      c = n(125),
      p = n(126);
    i(
      i.S +
        i.F *
          !n(87)(function (e) {
            Array.from(e);
          }),
      'Array',
      {
        from: function (e) {
          var t,
            n,
            i,
            f,
            l = o(e),
            h = 'function' == typeof this ? this : Array,
            d = arguments.length,
            m = d > 1 ? arguments[1] : void 0,
            y = void 0 !== m,
            v = 0,
            g = p(l);
          if (
            (y && (m = r(m, d > 2 ? arguments[2] : void 0, 2)), null == g || (h == Array && s(g)))
          )
            for (n = new h((t = u(l.length))); t > v; v++) c(n, v, y ? m(l[v], v) : l[v]);
          else
            for (f = g.call(l), n = new h(); !(i = f.next()).done; v++)
              c(n, v, y ? a(f, m, [i.value, v], !0) : i.value);
          return (n.length = v), n;
        },
      },
    );
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(125);
    r(
      r.S +
        r.F *
          n(3)(function () {
            function e() {}
            return !(Array.of.call(e) instanceof e);
          }),
      'Array',
      {
        of: function () {
          for (
            var e = 0, t = arguments.length, n = new ('function' == typeof this ? this : Array)(t);
            t > e;

          )
            i(n, e, arguments[e++]);
          return (n.length = t), n;
        },
      },
    );
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(19),
      o = [].join;
    r(r.P + r.F * (n(68) != Object || !n(26)(o)), 'Array', {
      join: function (e) {
        return o.call(i(this), void 0 === e ? ',' : e);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(113),
      o = n(24),
      a = n(46),
      s = n(6),
      u = [].slice;
    r(
      r.P +
        r.F *
          n(3)(function () {
            i && u.call(i);
          }),
      'Array',
      {
        slice: function (e, t) {
          var n = s(this.length),
            r = o(this);
          if (((t = void 0 === t ? n : t), 'Array' == r)) return u.call(this, e, t);
          for (var i = a(e, n), c = a(t, n), p = s(c - i), f = new Array(p), l = 0; l < p; l++)
            f[l] = 'String' == r ? this.charAt(i + l) : this[i + l];
          return f;
        },
      },
    );
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(12),
      o = n(10),
      a = n(3),
      s = [].sort,
      u = [1, 2, 3];
    r(
      r.P +
        r.F *
          (a(function () {
            u.sort(void 0);
          }) ||
            !a(function () {
              u.sort(null);
            }) ||
            !n(26)(s)),
      'Array',
      {
        sort: function (e) {
          return void 0 === e ? s.call(o(this)) : s.call(o(this), i(e));
        },
      },
    );
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(31)(0),
      o = n(26)([].forEach, !0);
    r(r.P + r.F * !o, 'Array', {
      forEach: function (e) {
        return i(this, e, arguments[1]);
      },
    });
  },
  function (e, t, n) {
    var r = n(4),
      i = n(84),
      o = n(5)('species');
    e.exports = function (e) {
      var t;
      return (
        i(e) &&
          ('function' != typeof (t = e.constructor) ||
            (t !== Array && !i(t.prototype)) ||
            (t = void 0),
          r(t) && null === (t = t[o]) && (t = void 0)),
        void 0 === t ? Array : t
      );
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(31)(1);
    r(r.P + r.F * !n(26)([].map, !0), 'Array', {
      map: function (e) {
        return i(this, e, arguments[1]);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(31)(2);
    r(r.P + r.F * !n(26)([].filter, !0), 'Array', {
      filter: function (e) {
        return i(this, e, arguments[1]);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(31)(3);
    r(r.P + r.F * !n(26)([].some, !0), 'Array', {
      some: function (e) {
        return i(this, e, arguments[1]);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(31)(4);
    r(r.P + r.F * !n(26)([].every, !0), 'Array', {
      every: function (e) {
        return i(this, e, arguments[1]);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(167);
    r(r.P + r.F * !n(26)([].reduce, !0), 'Array', {
      reduce: function (e) {
        return i(this, e, arguments.length, arguments[1], !1);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(167);
    r(r.P + r.F * !n(26)([].reduceRight, !0), 'Array', {
      reduceRight: function (e) {
        return i(this, e, arguments.length, arguments[1], !0);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(82)(!1),
      o = [].indexOf,
      a = !!o && 1 / [1].indexOf(1, -0) < 0;
    r(r.P + r.F * (a || !n(26)(o)), 'Array', {
      indexOf: function (e) {
        return a ? o.apply(this, arguments) || 0 : i(this, e, arguments[1]);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(19),
      o = n(25),
      a = n(6),
      s = [].lastIndexOf,
      u = !!s && 1 / [1].lastIndexOf(1, -0) < 0;
    r(r.P + r.F * (u || !n(26)(s)), 'Array', {
      lastIndexOf: function (e) {
        if (u) return s.apply(this, arguments) || 0;
        var t = i(this),
          n = a(t.length),
          r = n - 1;
        for (
          arguments.length > 1 && (r = Math.min(r, o(arguments[1]))), r < 0 && (r = n + r);
          r >= 0;
          r--
        )
          if (r in t && t[r] === e) return r || 0;
        return -1;
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.P, 'Array', { copyWithin: n(168) }), n(36)('copyWithin');
  },
  function (e, t, n) {
    var r = n(0);
    r(r.P, 'Array', { fill: n(128) }), n(36)('fill');
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(31)(5),
      o = !0;
    'find' in [] &&
      Array(1).find(function () {
        o = !1;
      }),
      r(r.P + r.F * o, 'Array', {
        find: function (e) {
          return i(this, e, arguments.length > 1 ? arguments[1] : void 0);
        },
      }),
      n(36)('find');
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(31)(6),
      o = 'findIndex',
      a = !0;
    o in [] &&
      Array(1)[o](function () {
        a = !1;
      }),
      r(r.P + r.F * a, 'Array', {
        findIndex: function (e) {
          return i(this, e, arguments.length > 1 ? arguments[1] : void 0);
        },
      }),
      n(36)(o);
  },
  function (e, t, n) {
    n(49)('Array');
  },
  function (e, t, n) {
    var r = n(2),
      i = n(116),
      o = n(9).f,
      a = n(48).f,
      s = n(86),
      u = n(70),
      c = r.RegExp,
      p = c,
      f = c.prototype,
      l = /a/g,
      h = /a/g,
      d = new c(l) !== l;
    if (
      n(7) &&
      (!d ||
        n(3)(function () {
          return (h[n(5)('match')] = !1), c(l) != l || c(h) == h || '/a/i' != c(l, 'i');
        }))
    ) {
      c = function (e, t) {
        var n = this instanceof c,
          r = s(e),
          o = void 0 === t;
        return !n && r && e.constructor === c && o
          ? e
          : i(
              d
                ? new p(r && !o ? e.source : e, t)
                : p((r = e instanceof c) ? e.source : e, r && o ? u.call(e) : t),
              n ? this : f,
              c,
            );
      };
      for (
        var m = function (e) {
            (e in c) ||
              o(c, e, {
                configurable: !0,
                get: function () {
                  return p[e];
                },
                set: function (t) {
                  p[e] = t;
                },
              });
          },
          y = a(p),
          v = 0;
        y.length > v;

      )
        m(y[v++]);
      (f.constructor = c), (c.prototype = f), n(14)(r, 'RegExp', c);
    }
    n(49)('RegExp');
  },
  function (e, t, n) {
    'use strict';
    n(171);
    var r = n(1),
      i = n(70),
      o = n(7),
      a = /./.toString,
      s = function (e) {
        n(14)(RegExp.prototype, 'toString', e, !0);
      };
    n(3)(function () {
      return '/a/b' != a.call({ source: 'a', flags: 'b' });
    })
      ? s(function () {
          var e = r(this);
          return '/'.concat(
            e.source,
            '/',
            'flags' in e ? e.flags : !o && e instanceof RegExp ? i.call(e) : void 0,
          );
        })
      : 'toString' != a.name &&
        s(function () {
          return a.call(this);
        });
  },
  function (e, t, n) {
    'use strict';
    var r = n(1),
      i = n(6),
      o = n(131),
      a = n(88);
    n(89)('match', 1, function (e, t, n, s) {
      return [
        function (n) {
          var r = e(this),
            i = null == n ? void 0 : n[t];
          return void 0 !== i ? i.call(n, r) : new RegExp(n)[t](String(r));
        },
        function (e) {
          var t = s(n, e, this);
          if (t.done) return t.value;
          var u = r(e),
            c = String(this);
          if (!u.global) return a(u, c);
          var p = u.unicode;
          u.lastIndex = 0;
          for (var f, l = [], h = 0; null !== (f = a(u, c)); ) {
            var d = String(f[0]);
            (l[h] = d), '' === d && (u.lastIndex = o(c, i(u.lastIndex), p)), h++;
          }
          return 0 === h ? null : l;
        },
      ];
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(1),
      i = n(10),
      o = n(6),
      a = n(25),
      s = n(131),
      u = n(88),
      c = Math.max,
      p = Math.min,
      f = Math.floor,
      l = /\$([$&`']|\d\d?|<[^>]*>)/g,
      h = /\$([$&`']|\d\d?)/g;
    n(89)('replace', 2, function (e, t, n, d) {
      return [
        function (r, i) {
          var o = e(this),
            a = null == r ? void 0 : r[t];
          return void 0 !== a ? a.call(r, o, i) : n.call(String(o), r, i);
        },
        function (e, t) {
          var i = d(n, e, this, t);
          if (i.done) return i.value;
          var f = r(e),
            l = String(this),
            h = 'function' == typeof t;
          h || (t = String(t));
          var y = f.global;
          if (y) {
            var v = f.unicode;
            f.lastIndex = 0;
          }
          for (var g = []; ; ) {
            var b = u(f, l);
            if (null === b) break;
            if ((g.push(b), !y)) break;
            '' === String(b[0]) && (f.lastIndex = s(l, o(f.lastIndex), v));
          }
          for (var w, x = '', E = 0, S = 0; S < g.length; S++) {
            b = g[S];
            for (
              var A = String(b[0]), R = c(p(a(b.index), l.length), 0), C = [], _ = 1;
              _ < b.length;
              _++
            )
              C.push(void 0 === (w = b[_]) ? w : String(w));
            var O = b.groups;
            if (h) {
              var T = [A].concat(C, R, l);
              void 0 !== O && T.push(O);
              var P = String(t.apply(void 0, T));
            } else P = m(A, l, R, C, O, t);
            R >= E && ((x += l.slice(E, R) + P), (E = R + A.length));
          }
          return x + l.slice(E);
        },
      ];
      function m(e, t, r, o, a, s) {
        var u = r + e.length,
          c = o.length,
          p = h;
        return (
          void 0 !== a && ((a = i(a)), (p = l)),
          n.call(s, p, function (n, i) {
            var s;
            switch (i.charAt(0)) {
              case '$':
                return '$';
              case '&':
                return e;
              case '`':
                return t.slice(0, r);
              case "'":
                return t.slice(u);
              case '<':
                s = a[i.slice(1, -1)];
                break;
              default:
                var p = +i;
                if (0 === p) return n;
                if (p > c) {
                  var l = f(p / 10);
                  return 0 === l
                    ? n
                    : l <= c
                    ? void 0 === o[l - 1]
                      ? i.charAt(1)
                      : o[l - 1] + i.charAt(1)
                    : n;
                }
                s = o[p - 1];
            }
            return void 0 === s ? '' : s;
          })
        );
      }
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(1),
      i = n(157),
      o = n(88);
    n(89)('search', 1, function (e, t, n, a) {
      return [
        function (n) {
          var r = e(this),
            i = null == n ? void 0 : n[t];
          return void 0 !== i ? i.call(n, r) : new RegExp(n)[t](String(r));
        },
        function (e) {
          var t = a(n, e, this);
          if (t.done) return t.value;
          var s = r(e),
            u = String(this),
            c = s.lastIndex;
          i(c, 0) || (s.lastIndex = 0);
          var p = o(s, u);
          return i(s.lastIndex, c) || (s.lastIndex = c), null === p ? -1 : p.index;
        },
      ];
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(86),
      i = n(1),
      o = n(71),
      a = n(131),
      s = n(6),
      u = n(88),
      c = n(130),
      p = n(3),
      f = Math.min,
      l = [].push,
      h = !p(function () {
        RegExp(4294967295, 'y');
      });
    n(89)('split', 2, function (e, t, n, p) {
      var d;
      return (
        (d =
          'c' == 'abbc'.split(/(b)*/)[1] ||
          4 != 'test'.split(/(?:)/, -1).length ||
          2 != 'ab'.split(/(?:ab)*/).length ||
          4 != '.'.split(/(.?)(.?)/).length ||
          '.'.split(/()()/).length > 1 ||
          ''.split(/.?/).length
            ? function (e, t) {
                var i = String(this);
                if (void 0 === e && 0 === t) return [];
                if (!r(e)) return n.call(i, e, t);
                for (
                  var o,
                    a,
                    s,
                    u = [],
                    p =
                      (e.ignoreCase ? 'i' : '') +
                      (e.multiline ? 'm' : '') +
                      (e.unicode ? 'u' : '') +
                      (e.sticky ? 'y' : ''),
                    f = 0,
                    h = void 0 === t ? 4294967295 : t >>> 0,
                    d = new RegExp(e.source, p + 'g');
                  (o = c.call(d, i)) &&
                  !(
                    (a = d.lastIndex) > f &&
                    (u.push(i.slice(f, o.index)),
                    o.length > 1 && o.index < i.length && l.apply(u, o.slice(1)),
                    (s = o[0].length),
                    (f = a),
                    u.length >= h)
                  );

                )
                  d.lastIndex === o.index && d.lastIndex++;
                return (
                  f === i.length ? (!s && d.test('')) || u.push('') : u.push(i.slice(f)),
                  u.length > h ? u.slice(0, h) : u
                );
              }
            : '0'.split(void 0, 0).length
            ? function (e, t) {
                return void 0 === e && 0 === t ? [] : n.call(this, e, t);
              }
            : n),
        [
          function (n, r) {
            var i = e(this),
              o = null == n ? void 0 : n[t];
            return void 0 !== o ? o.call(n, i, r) : d.call(String(i), n, r);
          },
          function (e, t) {
            var r = p(d, e, this, t, d !== n);
            if (r.done) return r.value;
            var c = i(e),
              l = String(this),
              m = o(c, RegExp),
              y = c.unicode,
              v =
                (c.ignoreCase ? 'i' : '') +
                (c.multiline ? 'm' : '') +
                (c.unicode ? 'u' : '') +
                (h ? 'y' : 'g'),
              g = new m(h ? c : '^(?:' + c.source + ')', v),
              b = void 0 === t ? 4294967295 : t >>> 0;
            if (0 === b) return [];
            if (0 === l.length) return null === u(g, l) ? [l] : [];
            for (var w = 0, x = 0, E = []; x < l.length; ) {
              g.lastIndex = h ? x : 0;
              var S,
                A = u(g, h ? l : l.slice(x));
              if (null === A || (S = f(s(g.lastIndex + (h ? 0 : x)), l.length)) === w)
                x = a(l, x, y);
              else {
                if ((E.push(l.slice(w, x)), E.length === b)) return E;
                for (var R = 1; R <= A.length - 1; R++)
                  if ((E.push(A[R]), E.length === b)) return E;
                x = w = S;
              }
            }
            return E.push(l.slice(w)), E;
          },
        ]
      );
    });
  },
  function (e, t, n) {
    'use strict';
    var r,
      i,
      o,
      a,
      s = n(34),
      u = n(2),
      c = n(23),
      p = n(61),
      f = n(0),
      l = n(4),
      h = n(12),
      d = n(50),
      m = n(51),
      y = n(71),
      v = n(132).set,
      g = n(133)(),
      b = n(134),
      w = n(172),
      x = n(90),
      E = n(173),
      S = u.TypeError,
      A = u.process,
      R = A && A.versions,
      C = (R && R.v8) || '',
      _ = u.Promise,
      O = 'process' == p(A),
      T = function () {},
      P = (i = b.f),
      k = !!(function () {
        try {
          var e = _.resolve(1),
            t = ((e.constructor = {})[n(5)('species')] = function (e) {
              e(T, T);
            });
          return (
            (O || 'function' == typeof PromiseRejectionEvent) &&
            e.then(T) instanceof t &&
            0 !== C.indexOf('6.6') &&
            -1 === x.indexOf('Chrome/66')
          );
        } catch (e) {}
      })(),
      I = function (e) {
        var t;
        return !(!l(e) || 'function' != typeof (t = e.then)) && t;
      },
      N = function (e, t) {
        if (!e._n) {
          e._n = !0;
          var n = e._c;
          g(function () {
            for (
              var r = e._v,
                i = 1 == e._s,
                o = 0,
                a = function (t) {
                  var n,
                    o,
                    a,
                    s = i ? t.ok : t.fail,
                    u = t.resolve,
                    c = t.reject,
                    p = t.domain;
                  try {
                    s
                      ? (i || (2 == e._h && j(e), (e._h = 1)),
                        !0 === s
                          ? (n = r)
                          : (p && p.enter(), (n = s(r)), p && (p.exit(), (a = !0))),
                        n === t.promise
                          ? c(S('Promise-chain cycle'))
                          : (o = I(n))
                          ? o.call(n, u, c)
                          : u(n))
                      : c(r);
                  } catch (e) {
                    p && !a && p.exit(), c(e);
                  }
                };
              n.length > o;

            )
              a(n[o++]);
            (e._c = []), (e._n = !1), t && !e._h && M(e);
          });
        }
      },
      M = function (e) {
        v.call(u, function () {
          var t,
            n,
            r,
            i = e._v,
            o = D(e);
          if (
            (o &&
              ((t = w(function () {
                O
                  ? A.emit('unhandledRejection', i, e)
                  : (n = u.onunhandledrejection)
                  ? n({ promise: e, reason: i })
                  : (r = u.console) && r.error && r.error('Unhandled promise rejection', i);
              })),
              (e._h = O || D(e) ? 2 : 1)),
            (e._a = void 0),
            o && t.e)
          )
            throw t.v;
        });
      },
      D = function (e) {
        return 1 !== e._h && 0 === (e._a || e._c).length;
      },
      j = function (e) {
        v.call(u, function () {
          var t;
          O
            ? A.emit('rejectionHandled', e)
            : (t = u.onrejectionhandled) && t({ promise: e, reason: e._v });
        });
      },
      L = function (e) {
        var t = this;
        t._d ||
          ((t._d = !0),
          ((t = t._w || t)._v = e),
          (t._s = 2),
          t._a || (t._a = t._c.slice()),
          N(t, !0));
      },
      B = function e(t) {
        var n,
          r = this;
        if (!r._d) {
          (r._d = !0), (r = r._w || r);
          try {
            if (r === t) throw S("Promise can't be resolved itself");
            (n = I(t))
              ? g(function () {
                  var i = { _w: r, _d: !1 };
                  try {
                    n.call(t, c(e, i, 1), c(L, i, 1));
                  } catch (e) {
                    L.call(i, e);
                  }
                })
              : ((r._v = t), (r._s = 1), N(r, !1));
          } catch (e) {
            L.call({ _w: r, _d: !1 }, e);
          }
        }
      };
    k ||
      ((_ = function (e) {
        d(this, _, 'Promise', '_h'), h(e), r.call(this);
        try {
          e(c(B, this, 1), c(L, this, 1));
        } catch (e) {
          L.call(this, e);
        }
      }),
      ((r = function (e) {
        (this._c = []),
          (this._a = void 0),
          (this._s = 0),
          (this._d = !1),
          (this._v = void 0),
          (this._h = 0),
          (this._n = !1);
      }).prototype = n(52)(_.prototype, {
        then: function (e, t) {
          var n = P(y(this, _));
          return (
            (n.ok = 'function' != typeof e || e),
            (n.fail = 'function' == typeof t && t),
            (n.domain = O ? A.domain : void 0),
            this._c.push(n),
            this._a && this._a.push(n),
            this._s && N(this, !1),
            n.promise
          );
        },
        catch: function (e) {
          return this.then(void 0, e);
        },
      })),
      (o = function () {
        var e = new r();
        (this.promise = e), (this.resolve = c(B, e, 1)), (this.reject = c(L, e, 1));
      }),
      (b.f = P =
        function (e) {
          return e === _ || e === a ? new o(e) : i(e);
        })),
      f(f.G + f.W + f.F * !k, { Promise: _ }),
      n(60)(_, 'Promise'),
      n(49)('Promise'),
      (a = n(22).Promise),
      f(f.S + f.F * !k, 'Promise', {
        reject: function (e) {
          var t = P(this);
          return (0, t.reject)(e), t.promise;
        },
      }),
      f(f.S + f.F * (s || !k), 'Promise', {
        resolve: function (e) {
          return E(s && this === a ? _ : this, e);
        },
      }),
      f(
        f.S +
          f.F *
            !(
              k &&
              n(87)(function (e) {
                _.all(e).catch(T);
              })
            ),
        'Promise',
        {
          all: function (e) {
            var t = this,
              n = P(t),
              r = n.resolve,
              i = n.reject,
              o = w(function () {
                var n = [],
                  o = 0,
                  a = 1;
                m(e, !1, function (e) {
                  var s = o++,
                    u = !1;
                  n.push(void 0),
                    a++,
                    t.resolve(e).then(function (e) {
                      u || ((u = !0), (n[s] = e), --a || r(n));
                    }, i);
                }),
                  --a || r(n);
              });
            return o.e && i(o.v), n.promise;
          },
          race: function (e) {
            var t = this,
              n = P(t),
              r = n.reject,
              i = w(function () {
                m(e, !1, function (e) {
                  t.resolve(e).then(n.resolve, r);
                });
              });
            return i.e && r(i.v), n.promise;
          },
        },
      );
  },
  function (e, t, n) {
    'use strict';
    var r = n(178),
      i = n(53);
    n(91)(
      'WeakSet',
      function (e) {
        return function () {
          return e(this, arguments.length > 0 ? arguments[0] : void 0);
        };
      },
      {
        add: function (e) {
          return r.def(i(this, 'WeakSet'), e, !0);
        },
      },
      r,
      !1,
      !0,
    );
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(92),
      o = n(135),
      a = n(1),
      s = n(46),
      u = n(6),
      c = n(4),
      p = n(2).ArrayBuffer,
      f = n(71),
      l = o.ArrayBuffer,
      h = o.DataView,
      d = i.ABV && p.isView,
      m = l.prototype.slice,
      y = i.VIEW;
    r(r.G + r.W + r.F * (p !== l), { ArrayBuffer: l }),
      r(r.S + r.F * !i.CONSTR, 'ArrayBuffer', {
        isView: function (e) {
          return (d && d(e)) || (c(e) && y in e);
        },
      }),
      r(
        r.P +
          r.U +
          r.F *
            n(3)(function () {
              return !new l(2).slice(1, void 0).byteLength;
            }),
        'ArrayBuffer',
        {
          slice: function (e, t) {
            if (void 0 !== m && void 0 === t) return m.call(a(this), e);
            for (
              var n = a(this).byteLength,
                r = s(e, n),
                i = s(void 0 === t ? n : t, n),
                o = new (f(this, l))(u(i - r)),
                c = new h(this),
                p = new h(o),
                d = 0;
              r < i;

            )
              p.setUint8(d++, c.getUint8(r++));
            return o;
          },
        },
      ),
      n(49)('ArrayBuffer');
  },
  function (e, t, n) {
    var r = n(0);
    r(r.G + r.W + r.F * !n(92).ABV, { DataView: n(135).DataView });
  },
  function (e, t, n) {
    n(32)('Int8', 1, function (e) {
      return function (t, n, r) {
        return e(this, t, n, r);
      };
    });
  },
  function (e, t, n) {
    n(32)('Uint8', 1, function (e) {
      return function (t, n, r) {
        return e(this, t, n, r);
      };
    });
  },
  function (e, t, n) {
    n(32)(
      'Uint8',
      1,
      function (e) {
        return function (t, n, r) {
          return e(this, t, n, r);
        };
      },
      !0,
    );
  },
  function (e, t, n) {
    n(32)('Int16', 2, function (e) {
      return function (t, n, r) {
        return e(this, t, n, r);
      };
    });
  },
  function (e, t, n) {
    n(32)('Uint16', 2, function (e) {
      return function (t, n, r) {
        return e(this, t, n, r);
      };
    });
  },
  function (e, t, n) {
    n(32)('Int32', 4, function (e) {
      return function (t, n, r) {
        return e(this, t, n, r);
      };
    });
  },
  function (e, t, n) {
    n(32)('Uint32', 4, function (e) {
      return function (t, n, r) {
        return e(this, t, n, r);
      };
    });
  },
  function (e, t, n) {
    n(32)('Float32', 4, function (e) {
      return function (t, n, r) {
        return e(this, t, n, r);
      };
    });
  },
  function (e, t, n) {
    n(32)('Float64', 8, function (e) {
      return function (t, n, r) {
        return e(this, t, n, r);
      };
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(12),
      o = n(1),
      a = (n(2).Reflect || {}).apply,
      s = Function.apply;
    r(
      r.S +
        r.F *
          !n(3)(function () {
            a(function () {});
          }),
      'Reflect',
      {
        apply: function (e, t, n) {
          var r = i(e),
            u = o(n);
          return a ? a(r, t, u) : s.call(r, t, u);
        },
      },
    );
  },
  function (e, t, n) {
    var r = n(0),
      i = n(47),
      o = n(12),
      a = n(1),
      s = n(4),
      u = n(3),
      c = n(158),
      p = (n(2).Reflect || {}).construct,
      f = u(function () {
        function e() {}
        return !(p(function () {}, [], e) instanceof e);
      }),
      l = !u(function () {
        p(function () {});
      });
    r(r.S + r.F * (f || l), 'Reflect', {
      construct: function (e, t) {
        o(e), a(t);
        var n = arguments.length < 3 ? e : o(arguments[2]);
        if (l && !f) return p(e, t, n);
        if (e == n) {
          switch (t.length) {
            case 0:
              return new e();
            case 1:
              return new e(t[0]);
            case 2:
              return new e(t[0], t[1]);
            case 3:
              return new e(t[0], t[1], t[2]);
            case 4:
              return new e(t[0], t[1], t[2], t[3]);
          }
          var r = [null];
          return r.push.apply(r, t), new (c.apply(e, r))();
        }
        var u = n.prototype,
          h = i(s(u) ? u : Object.prototype),
          d = Function.apply.call(e, h, t);
        return s(d) ? d : h;
      },
    });
  },
  function (e, t, n) {
    var r = n(9),
      i = n(0),
      o = n(1),
      a = n(28);
    i(
      i.S +
        i.F *
          n(3)(function () {
            Reflect.defineProperty(r.f({}, 1, { value: 1 }), 1, { value: 2 });
          }),
      'Reflect',
      {
        defineProperty: function (e, t, n) {
          o(e), (t = a(t, !0)), o(n);
          try {
            return r.f(e, t, n), !0;
          } catch (e) {
            return !1;
          }
        },
      },
    );
  },
  function (e, t, n) {
    var r = n(0),
      i = n(20).f,
      o = n(1);
    r(r.S, 'Reflect', {
      deleteProperty: function (e, t) {
        var n = i(o(e), t);
        return !(n && !n.configurable) && delete e[t];
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(1),
      o = function (e) {
        (this._t = i(e)), (this._i = 0);
        var t,
          n = (this._k = []);
        for (t in e) n.push(t);
      };
    n(121)(o, 'Object', function () {
      var e,
        t = this._k;
      do {
        if (this._i >= t.length) return { value: void 0, done: !0 };
      } while (!((e = t[this._i++]) in this._t));
      return { value: e, done: !1 };
    }),
      r(r.S, 'Reflect', {
        enumerate: function (e) {
          return new o(e);
        },
      });
  },
  function (e, t, n) {
    var r = n(20),
      i = n(21),
      o = n(18),
      a = n(0),
      s = n(4),
      u = n(1);
    a(a.S, 'Reflect', {
      get: function e(t, n) {
        var a,
          c,
          p = arguments.length < 3 ? t : arguments[2];
        return u(t) === p
          ? t[n]
          : (a = r.f(t, n))
          ? o(a, 'value')
            ? a.value
            : void 0 !== a.get
            ? a.get.call(p)
            : void 0
          : s((c = i(t)))
          ? e(c, n, p)
          : void 0;
      },
    });
  },
  function (e, t, n) {
    var r = n(20),
      i = n(0),
      o = n(1);
    i(i.S, 'Reflect', {
      getOwnPropertyDescriptor: function (e, t) {
        return r.f(o(e), t);
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(21),
      o = n(1);
    r(r.S, 'Reflect', {
      getPrototypeOf: function (e) {
        return i(o(e));
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Reflect', {
      has: function (e, t) {
        return t in e;
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(1),
      o = Object.isExtensible;
    r(r.S, 'Reflect', {
      isExtensible: function (e) {
        return i(e), !o || o(e);
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Reflect', { ownKeys: n(180) });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(1),
      o = Object.preventExtensions;
    r(r.S, 'Reflect', {
      preventExtensions: function (e) {
        i(e);
        try {
          return o && o(e), !0;
        } catch (e) {
          return !1;
        }
      },
    });
  },
  function (e, t, n) {
    var r = n(9),
      i = n(20),
      o = n(21),
      a = n(18),
      s = n(0),
      u = n(43),
      c = n(1),
      p = n(4);
    s(s.S, 'Reflect', {
      set: function e(t, n, s) {
        var f,
          l,
          h = arguments.length < 4 ? t : arguments[3],
          d = i.f(c(t), n);
        if (!d) {
          if (p((l = o(t)))) return e(l, n, s, h);
          d = u(0);
        }
        if (a(d, 'value')) {
          if (!1 === d.writable || !p(h)) return !1;
          if ((f = i.f(h, n))) {
            if (f.get || f.set || !1 === f.writable) return !1;
            (f.value = s), r.f(h, n, f);
          } else r.f(h, n, u(0, s));
          return !0;
        }
        return void 0 !== d.set && (d.set.call(h, s), !0);
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(114);
    i &&
      r(r.S, 'Reflect', {
        setPrototypeOf: function (e, t) {
          i.check(e, t);
          try {
            return i.set(e, t), !0;
          } catch (e) {
            return !1;
          }
        },
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(82)(!0);
    r(r.P, 'Array', {
      includes: function (e) {
        return i(this, e, arguments.length > 1 ? arguments[1] : void 0);
      },
    }),
      n(36)('includes');
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(181),
      o = n(10),
      a = n(6),
      s = n(12),
      u = n(127);
    r(r.P, 'Array', {
      flatMap: function (e) {
        var t,
          n,
          r = o(this);
        return s(e), (t = a(r.length)), (n = u(r, 0)), i(n, r, r, t, 0, 1, e, arguments[1]), n;
      },
    }),
      n(36)('flatMap');
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(181),
      o = n(10),
      a = n(6),
      s = n(25),
      u = n(127);
    r(r.P, 'Array', {
      flatten: function () {
        var e = arguments[0],
          t = o(this),
          n = a(t.length),
          r = u(t, 0);
        return i(r, t, t, n, 0, void 0 === e ? 1 : s(e)), r;
      },
    }),
      n(36)('flatten');
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(85)(!0);
    r(r.P, 'String', {
      at: function (e) {
        return i(this, e);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(182),
      o = n(90),
      a = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);
    r(r.P + r.F * a, 'String', {
      padStart: function (e) {
        return i(this, e, arguments.length > 1 ? arguments[1] : void 0, !0);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(182),
      o = n(90),
      a = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);
    r(r.P + r.F * a, 'String', {
      padEnd: function (e) {
        return i(this, e, arguments.length > 1 ? arguments[1] : void 0, !1);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    n(62)(
      'trimLeft',
      function (e) {
        return function () {
          return e(this, 1);
        };
      },
      'trimStart',
    );
  },
  function (e, t, n) {
    'use strict';
    n(62)(
      'trimRight',
      function (e) {
        return function () {
          return e(this, 2);
        };
      },
      'trimEnd',
    );
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(29),
      o = n(6),
      a = n(86),
      s = n(70),
      u = RegExp.prototype,
      c = function (e, t) {
        (this._r = e), (this._s = t);
      };
    n(121)(c, 'RegExp String', function () {
      var e = this._r.exec(this._s);
      return { value: e, done: null === e };
    }),
      r(r.P, 'String', {
        matchAll: function (e) {
          if ((i(this), !a(e))) throw TypeError(e + ' is not a regexp!');
          var t = String(this),
            n = 'flags' in u ? String(e.flags) : s.call(e),
            r = new RegExp(e.source, ~n.indexOf('g') ? n : 'g' + n);
          return (r.lastIndex = o(e.lastIndex)), new c(r, t);
        },
      });
  },
  function (e, t, n) {
    n(110)('asyncIterator');
  },
  function (e, t, n) {
    n(110)('observable');
  },
  function (e, t, n) {
    var r = n(0),
      i = n(180),
      o = n(19),
      a = n(20),
      s = n(125);
    r(r.S, 'Object', {
      getOwnPropertyDescriptors: function (e) {
        for (var t, n, r = o(e), u = a.f, c = i(r), p = {}, f = 0; c.length > f; )
          void 0 !== (n = u(r, (t = c[f++]))) && s(p, t, n);
        return p;
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(183)(!1);
    r(r.S, 'Object', {
      values: function (e) {
        return i(e);
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(183)(!0);
    r(r.S, 'Object', {
      entries: function (e) {
        return i(e);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(10),
      o = n(12),
      a = n(9);
    n(7) &&
      r(r.P + n(93), 'Object', {
        __defineGetter__: function (e, t) {
          a.f(i(this), e, { get: o(t), enumerable: !0, configurable: !0 });
        },
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(10),
      o = n(12),
      a = n(9);
    n(7) &&
      r(r.P + n(93), 'Object', {
        __defineSetter__: function (e, t) {
          a.f(i(this), e, { set: o(t), enumerable: !0, configurable: !0 });
        },
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(10),
      o = n(28),
      a = n(21),
      s = n(20).f;
    n(7) &&
      r(r.P + n(93), 'Object', {
        __lookupGetter__: function (e) {
          var t,
            n = i(this),
            r = o(e, !0);
          do {
            if ((t = s(n, r))) return t.get;
          } while ((n = a(n)));
        },
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(10),
      o = n(28),
      a = n(21),
      s = n(20).f;
    n(7) &&
      r(r.P + n(93), 'Object', {
        __lookupSetter__: function (e) {
          var t,
            n = i(this),
            r = o(e, !0);
          do {
            if ((t = s(n, r))) return t.set;
          } while ((n = a(n)));
        },
      });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.P + r.R, 'Map', { toJSON: n(184)('Map') });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.P + r.R, 'Set', { toJSON: n(184)('Set') });
  },
  function (e, t, n) {
    n(94)('Map');
  },
  function (e, t, n) {
    n(94)('Set');
  },
  function (e, t, n) {
    n(94)('WeakMap');
  },
  function (e, t, n) {
    n(94)('WeakSet');
  },
  function (e, t, n) {
    n(95)('Map');
  },
  function (e, t, n) {
    n(95)('Set');
  },
  function (e, t, n) {
    n(95)('WeakMap');
  },
  function (e, t, n) {
    n(95)('WeakSet');
  },
  function (e, t, n) {
    var r = n(0);
    r(r.G, { global: n(2) });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'System', { global: n(2) });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(24);
    r(r.S, 'Error', {
      isError: function (e) {
        return 'Error' === i(e);
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', {
      clamp: function (e, t, n) {
        return Math.min(n, Math.max(t, e));
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', { DEG_PER_RAD: Math.PI / 180 });
  },
  function (e, t, n) {
    var r = n(0),
      i = 180 / Math.PI;
    r(r.S, 'Math', {
      degrees: function (e) {
        return e * i;
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(186),
      o = n(165);
    r(r.S, 'Math', {
      fscale: function (e, t, n, r, a) {
        return o(i(e, t, n, r, a));
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', {
      iaddh: function (e, t, n, r) {
        var i = e >>> 0,
          o = n >>> 0;
        return ((t >>> 0) + (r >>> 0) + (((i & o) | ((i | o) & ~((i + o) >>> 0))) >>> 31)) | 0;
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', {
      isubh: function (e, t, n, r) {
        var i = e >>> 0,
          o = n >>> 0;
        return ((t >>> 0) - (r >>> 0) - (((~i & o) | (~(i ^ o) & ((i - o) >>> 0))) >>> 31)) | 0;
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', {
      imulh: function (e, t) {
        var n = +e,
          r = +t,
          i = 65535 & n,
          o = 65535 & r,
          a = n >> 16,
          s = r >> 16,
          u = ((a * o) >>> 0) + ((i * o) >>> 16);
        return a * s + (u >> 16) + ((((i * s) >>> 0) + (65535 & u)) >> 16);
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', { RAD_PER_DEG: 180 / Math.PI });
  },
  function (e, t, n) {
    var r = n(0),
      i = Math.PI / 180;
    r(r.S, 'Math', {
      radians: function (e) {
        return e * i;
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', { scale: n(186) });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', {
      umulh: function (e, t) {
        var n = +e,
          r = +t,
          i = 65535 & n,
          o = 65535 & r,
          a = n >>> 16,
          s = r >>> 16,
          u = ((a * o) >>> 0) + ((i * o) >>> 16);
        return a * s + (u >>> 16) + ((((i * s) >>> 0) + (65535 & u)) >>> 16);
      },
    });
  },
  function (e, t, n) {
    var r = n(0);
    r(r.S, 'Math', {
      signbit: function (e) {
        return (e = +e) != e ? e : 0 == e ? 1 / e == 1 / 0 : e > 0;
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(22),
      o = n(2),
      a = n(71),
      s = n(173);
    r(r.P + r.R, 'Promise', {
      finally: function (e) {
        var t = a(this, i.Promise || o.Promise),
          n = 'function' == typeof e;
        return this.then(
          n
            ? function (n) {
                return s(t, e()).then(function () {
                  return n;
                });
              }
            : e,
          n
            ? function (n) {
                return s(t, e()).then(function () {
                  throw n;
                });
              }
            : e,
        );
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(134),
      o = n(172);
    r(r.S, 'Promise', {
      try: function (e) {
        var t = i.f(this),
          n = o(e);
        return (n.e ? t.reject : t.resolve)(n.v), t.promise;
      },
    });
  },
  function (e, t, n) {
    var r = n(33),
      i = n(1),
      o = r.key,
      a = r.set;
    r.exp({
      defineMetadata: function (e, t, n, r) {
        a(e, t, i(n), o(r));
      },
    });
  },
  function (e, t, n) {
    var r = n(33),
      i = n(1),
      o = r.key,
      a = r.map,
      s = r.store;
    r.exp({
      deleteMetadata: function (e, t) {
        var n = arguments.length < 3 ? void 0 : o(arguments[2]),
          r = a(i(t), n, !1);
        if (void 0 === r || !r.delete(e)) return !1;
        if (r.size) return !0;
        var u = s.get(t);
        return u.delete(n), !!u.size || s.delete(t);
      },
    });
  },
  function (e, t, n) {
    var r = n(33),
      i = n(1),
      o = n(21),
      a = r.has,
      s = r.get,
      u = r.key,
      c = function e(t, n, r) {
        if (a(t, n, r)) return s(t, n, r);
        var i = o(n);
        return null !== i ? e(t, i, r) : void 0;
      };
    r.exp({
      getMetadata: function (e, t) {
        return c(e, i(t), arguments.length < 3 ? void 0 : u(arguments[2]));
      },
    });
  },
  function (e, t, n) {
    var r = n(176),
      i = n(185),
      o = n(33),
      a = n(1),
      s = n(21),
      u = o.keys,
      c = o.key,
      p = function e(t, n) {
        var o = u(t, n),
          a = s(t);
        if (null === a) return o;
        var c = e(a, n);
        return c.length ? (o.length ? i(new r(o.concat(c))) : c) : o;
      };
    o.exp({
      getMetadataKeys: function (e) {
        return p(a(e), arguments.length < 2 ? void 0 : c(arguments[1]));
      },
    });
  },
  function (e, t, n) {
    var r = n(33),
      i = n(1),
      o = r.get,
      a = r.key;
    r.exp({
      getOwnMetadata: function (e, t) {
        return o(e, i(t), arguments.length < 3 ? void 0 : a(arguments[2]));
      },
    });
  },
  function (e, t, n) {
    var r = n(33),
      i = n(1),
      o = r.keys,
      a = r.key;
    r.exp({
      getOwnMetadataKeys: function (e) {
        return o(i(e), arguments.length < 2 ? void 0 : a(arguments[1]));
      },
    });
  },
  function (e, t, n) {
    var r = n(33),
      i = n(1),
      o = n(21),
      a = r.has,
      s = r.key,
      u = function e(t, n, r) {
        if (a(t, n, r)) return !0;
        var i = o(n);
        return null !== i && e(t, i, r);
      };
    r.exp({
      hasMetadata: function (e, t) {
        return u(e, i(t), arguments.length < 3 ? void 0 : s(arguments[2]));
      },
    });
  },
  function (e, t, n) {
    var r = n(33),
      i = n(1),
      o = r.has,
      a = r.key;
    r.exp({
      hasOwnMetadata: function (e, t) {
        return o(e, i(t), arguments.length < 3 ? void 0 : a(arguments[2]));
      },
    });
  },
  function (e, t, n) {
    var r = n(33),
      i = n(1),
      o = n(12),
      a = r.key,
      s = r.set;
    r.exp({
      metadata: function (e, t) {
        return function (n, r) {
          s(e, t, (void 0 !== r ? i : o)(n), a(r));
        };
      },
    });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(133)(),
      o = n(2).process,
      a = 'process' == n(24)(o);
    r(r.G, {
      asap: function (e) {
        var t = a && o.domain;
        i(t ? t.bind(e) : e);
      },
    });
  },
  function (e, t, n) {
    'use strict';
    var r = n(0),
      i = n(2),
      o = n(22),
      a = n(133)(),
      s = n(5)('observable'),
      u = n(12),
      c = n(1),
      p = n(50),
      f = n(52),
      l = n(13),
      h = n(51),
      d = h.RETURN,
      m = function (e) {
        return null == e ? void 0 : u(e);
      },
      y = function (e) {
        var t = e._c;
        t && ((e._c = void 0), t());
      },
      v = function (e) {
        return void 0 === e._o;
      },
      g = function (e) {
        v(e) || ((e._o = void 0), y(e));
      },
      b = function (e, t) {
        c(e), (this._c = void 0), (this._o = e), (e = new w(this));
        try {
          var n = t(e),
            r = n;
          null != n &&
            ('function' == typeof n.unsubscribe
              ? (n = function () {
                  r.unsubscribe();
                })
              : u(n),
            (this._c = n));
        } catch (t) {
          return void e.error(t);
        }
        v(this) && y(this);
      };
    b.prototype = f(
      {},
      {
        unsubscribe: function () {
          g(this);
        },
      },
    );
    var w = function (e) {
      this._s = e;
    };
    w.prototype = f(
      {},
      {
        next: function (e) {
          var t = this._s;
          if (!v(t)) {
            var n = t._o;
            try {
              var r = m(n.next);
              if (r) return r.call(n, e);
            } catch (e) {
              try {
                g(t);
              } finally {
                throw e;
              }
            }
          }
        },
        error: function (e) {
          var t = this._s;
          if (v(t)) throw e;
          var n = t._o;
          t._o = void 0;
          try {
            var r = m(n.error);
            if (!r) throw e;
            e = r.call(n, e);
          } catch (e) {
            try {
              y(t);
            } finally {
              throw e;
            }
          }
          return y(t), e;
        },
        complete: function (e) {
          var t = this._s;
          if (!v(t)) {
            var n = t._o;
            t._o = void 0;
            try {
              var r = m(n.complete);
              e = r ? r.call(n, e) : void 0;
            } catch (e) {
              try {
                y(t);
              } finally {
                throw e;
              }
            }
            return y(t), e;
          }
        },
      },
    );
    var x = function (e) {
      p(this, x, 'Observable', '_f')._f = u(e);
    };
    f(x.prototype, {
      subscribe: function (e) {
        return new b(e, this._f);
      },
      forEach: function (e) {
        var t = this;
        return new (o.Promise || i.Promise)(function (n, r) {
          u(e);
          var i = t.subscribe({
            next: function (t) {
              try {
                return e(t);
              } catch (e) {
                r(e), i.unsubscribe();
              }
            },
            error: r,
            complete: n,
          });
        });
      },
    }),
      f(x, {
        from: function (e) {
          var t = 'function' == typeof this ? this : x,
            n = m(c(e)[s]);
          if (n) {
            var r = c(n.call(e));
            return r.constructor === t
              ? r
              : new t(function (e) {
                  return r.subscribe(e);
                });
          }
          return new t(function (t) {
            var n = !1;
            return (
              a(function () {
                if (!n) {
                  try {
                    if (
                      h(e, !1, function (e) {
                        if ((t.next(e), n)) return d;
                      }) === d
                    )
                      return;
                  } catch (e) {
                    if (n) throw e;
                    return void t.error(e);
                  }
                  t.complete();
                }
              }),
              function () {
                n = !0;
              }
            );
          });
        },
        of: function () {
          for (var e = 0, t = arguments.length, n = new Array(t); e < t; ) n[e] = arguments[e++];
          return new ('function' == typeof this ? this : x)(function (e) {
            var t = !1;
            return (
              a(function () {
                if (!t) {
                  for (var r = 0; r < n.length; ++r) if ((e.next(n[r]), t)) return;
                  e.complete();
                }
              }),
              function () {
                t = !0;
              }
            );
          });
        },
      }),
      l(x.prototype, s, function () {
        return this;
      }),
      r(r.G, { Observable: x }),
      n(49)('Observable');
  },
  function (e, t, n) {
    var r = n(2),
      i = n(0),
      o = n(90),
      a = [].slice,
      s = /MSIE .\./.test(o),
      u = function (e) {
        return function (t, n) {
          var r = arguments.length > 2,
            i = !!r && a.call(arguments, 2);
          return e(
            r
              ? function () {
                  ('function' == typeof t ? t : Function(t)).apply(this, i);
                }
              : t,
            n,
          );
        };
      };
    i(i.G + i.B + i.F * s, { setTimeout: u(r.setTimeout), setInterval: u(r.setInterval) });
  },
  function (e, t, n) {
    var r = n(0),
      i = n(132);
    r(r.G + r.B, { setImmediate: i.set, clearImmediate: i.clear });
  },
  function (e, t, n) {
    for (
      var r = n(129),
        i = n(45),
        o = n(14),
        a = n(2),
        s = n(13),
        u = n(63),
        c = n(5),
        p = c('iterator'),
        f = c('toStringTag'),
        l = u.Array,
        h = {
          CSSRuleList: !0,
          CSSStyleDeclaration: !1,
          CSSValueList: !1,
          ClientRectList: !1,
          DOMRectList: !1,
          DOMStringList: !1,
          DOMTokenList: !0,
          DataTransferItemList: !1,
          FileList: !1,
          HTMLAllCollection: !1,
          HTMLCollection: !1,
          HTMLFormElement: !1,
          HTMLSelectElement: !1,
          MediaList: !0,
          MimeTypeArray: !1,
          NamedNodeMap: !1,
          NodeList: !0,
          PaintRequestList: !1,
          Plugin: !1,
          PluginArray: !1,
          SVGLengthList: !1,
          SVGNumberList: !1,
          SVGPathSegList: !1,
          SVGPointList: !1,
          SVGStringList: !1,
          SVGTransformList: !1,
          SourceBufferList: !1,
          StyleSheetList: !0,
          TextTrackCueList: !1,
          TextTrackList: !1,
          TouchList: !1,
        },
        d = i(h),
        m = 0;
      m < d.length;
      m++
    ) {
      var y,
        v = d[m],
        g = h[v],
        b = a[v],
        w = b && b.prototype;
      if (w && (w[p] || s(w, p, l), w[f] || s(w, f, v), (u[v] = l), g))
        for (y in r) w[y] || o(w, y, r[y], !0);
    }
  },
  function (e, t, n) {
    (function (e, t) {
      function n(e) {
        return (n =
          '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;
              })(e);
      }
      !(function (e) {
        'use strict';
        var r,
          i = Object.prototype,
          o = i.hasOwnProperty,
          a = 'function' == typeof Symbol ? Symbol : {},
          s = a.iterator || '@@iterator',
          u = a.asyncIterator || '@@asyncIterator',
          c = a.toStringTag || '@@toStringTag',
          p = 'object' === n(t),
          f = e.regeneratorRuntime;
        if (f) p && (t.exports = f);
        else {
          (f = e.regeneratorRuntime = p ? t.exports : {}).wrap = x;
          var l = 'suspendedStart',
            h = 'suspendedYield',
            d = 'executing',
            m = 'completed',
            y = {},
            v = {};
          v[s] = function () {
            return this;
          };
          var g = Object.getPrototypeOf,
            b = g && g(g(I([])));
          b && b !== i && o.call(b, s) && (v = b);
          var w = (R.prototype = S.prototype = Object.create(v));
          (A.prototype = w.constructor = R),
            (R.constructor = A),
            (R[c] = A.displayName = 'GeneratorFunction'),
            (f.isGeneratorFunction = function (e) {
              var t = 'function' == typeof e && e.constructor;
              return !!t && (t === A || 'GeneratorFunction' === (t.displayName || t.name));
            }),
            (f.mark = function (e) {
              return (
                Object.setPrototypeOf
                  ? Object.setPrototypeOf(e, R)
                  : ((e.__proto__ = R), c in e || (e[c] = 'GeneratorFunction')),
                (e.prototype = Object.create(w)),
                e
              );
            }),
            (f.awrap = function (e) {
              return { __await: e };
            }),
            C(_.prototype),
            (_.prototype[u] = function () {
              return this;
            }),
            (f.AsyncIterator = _),
            (f.async = function (e, t, n, r) {
              var i = new _(x(e, t, n, r));
              return f.isGeneratorFunction(t)
                ? i
                : i.next().then(function (e) {
                    return e.done ? e.value : i.next();
                  });
            }),
            C(w),
            (w[c] = 'Generator'),
            (w[s] = function () {
              return this;
            }),
            (w.toString = function () {
              return '[object Generator]';
            }),
            (f.keys = function (e) {
              var t = [];
              for (var n in e) t.push(n);
              return (
                t.reverse(),
                function n() {
                  for (; t.length; ) {
                    var r = t.pop();
                    if (r in e) return (n.value = r), (n.done = !1), n;
                  }
                  return (n.done = !0), n;
                }
              );
            }),
            (f.values = I),
            (k.prototype = {
              constructor: k,
              reset: function (e) {
                if (
                  ((this.prev = 0),
                  (this.next = 0),
                  (this.sent = this._sent = r),
                  (this.done = !1),
                  (this.delegate = null),
                  (this.method = 'next'),
                  (this.arg = r),
                  this.tryEntries.forEach(P),
                  !e)
                )
                  for (var t in this)
                    't' === t.charAt(0) && o.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = r);
              },
              stop: function () {
                this.done = !0;
                var e = this.tryEntries[0].completion;
                if ('throw' === e.type) throw e.arg;
                return this.rval;
              },
              dispatchException: function (e) {
                if (this.done) throw e;
                var t = this;
                function n(n, i) {
                  return (
                    (s.type = 'throw'),
                    (s.arg = e),
                    (t.next = n),
                    i && ((t.method = 'next'), (t.arg = r)),
                    !!i
                  );
                }
                for (var i = this.tryEntries.length - 1; i >= 0; --i) {
                  var a = this.tryEntries[i],
                    s = a.completion;
                  if ('root' === a.tryLoc) return n('end');
                  if (a.tryLoc <= this.prev) {
                    var u = o.call(a, 'catchLoc'),
                      c = o.call(a, 'finallyLoc');
                    if (u && c) {
                      if (this.prev < a.catchLoc) return n(a.catchLoc, !0);
                      if (this.prev < a.finallyLoc) return n(a.finallyLoc);
                    } else if (u) {
                      if (this.prev < a.catchLoc) return n(a.catchLoc, !0);
                    } else {
                      if (!c) throw new Error('try statement without catch or finally');
                      if (this.prev < a.finallyLoc) return n(a.finallyLoc);
                    }
                  }
                }
              },
              abrupt: function (e, t) {
                for (var n = this.tryEntries.length - 1; n >= 0; --n) {
                  var r = this.tryEntries[n];
                  if (
                    r.tryLoc <= this.prev &&
                    o.call(r, 'finallyLoc') &&
                    this.prev < r.finallyLoc
                  ) {
                    var i = r;
                    break;
                  }
                }
                i &&
                  ('break' === e || 'continue' === e) &&
                  i.tryLoc <= t &&
                  t <= i.finallyLoc &&
                  (i = null);
                var a = i ? i.completion : {};
                return (
                  (a.type = e),
                  (a.arg = t),
                  i ? ((this.method = 'next'), (this.next = i.finallyLoc), y) : this.complete(a)
                );
              },
              complete: function (e, t) {
                if ('throw' === e.type) throw e.arg;
                return (
                  'break' === e.type || 'continue' === e.type
                    ? (this.next = e.arg)
                    : 'return' === e.type
                    ? ((this.rval = this.arg = e.arg),
                      (this.method = 'return'),
                      (this.next = 'end'))
                    : 'normal' === e.type && t && (this.next = t),
                  y
                );
              },
              finish: function (e) {
                for (var t = this.tryEntries.length - 1; t >= 0; --t) {
                  var n = this.tryEntries[t];
                  if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc), P(n), y;
                }
              },
              catch: function (e) {
                for (var t = this.tryEntries.length - 1; t >= 0; --t) {
                  var n = this.tryEntries[t];
                  if (n.tryLoc === e) {
                    var r = n.completion;
                    if ('throw' === r.type) {
                      var i = r.arg;
                      P(n);
                    }
                    return i;
                  }
                }
                throw new Error('illegal catch attempt');
              },
              delegateYield: function (e, t, n) {
                return (
                  (this.delegate = { iterator: I(e), resultName: t, nextLoc: n }),
                  'next' === this.method && (this.arg = r),
                  y
                );
              },
            });
        }
        function x(e, t, n, r) {
          var i = t && t.prototype instanceof S ? t : S,
            o = Object.create(i.prototype),
            a = new k(r || []);
          return (
            (o._invoke = (function (e, t, n) {
              var r = l;
              return function (i, o) {
                if (r === d) throw new Error('Generator is already running');
                if (r === m) {
                  if ('throw' === i) throw o;
                  return N();
                }
                for (n.method = i, n.arg = o; ; ) {
                  var a = n.delegate;
                  if (a) {
                    var s = O(a, n);
                    if (s) {
                      if (s === y) continue;
                      return s;
                    }
                  }
                  if ('next' === n.method) n.sent = n._sent = n.arg;
                  else if ('throw' === n.method) {
                    if (r === l) throw ((r = m), n.arg);
                    n.dispatchException(n.arg);
                  } else 'return' === n.method && n.abrupt('return', n.arg);
                  r = d;
                  var u = E(e, t, n);
                  if ('normal' === u.type) {
                    if (((r = n.done ? m : h), u.arg === y)) continue;
                    return { value: u.arg, done: n.done };
                  }
                  'throw' === u.type && ((r = m), (n.method = 'throw'), (n.arg = u.arg));
                }
              };
            })(e, n, a)),
            o
          );
        }
        function E(e, t, n) {
          try {
            return { type: 'normal', arg: e.call(t, n) };
          } catch (e) {
            return { type: 'throw', arg: e };
          }
        }
        function S() {}
        function A() {}
        function R() {}
        function C(e) {
          ['next', 'throw', 'return'].forEach(function (t) {
            e[t] = function (e) {
              return this._invoke(t, e);
            };
          });
        }
        function _(t) {
          function r(e, i, a, s) {
            var u = E(t[e], t, i);
            if ('throw' !== u.type) {
              var c = u.arg,
                p = c.value;
              return p && 'object' === n(p) && o.call(p, '__await')
                ? Promise.resolve(p.__await).then(
                    function (e) {
                      r('next', e, a, s);
                    },
                    function (e) {
                      r('throw', e, a, s);
                    },
                  )
                : Promise.resolve(p).then(function (e) {
                    (c.value = e), a(c);
                  }, s);
            }
            s(u.arg);
          }
          var i;
          'object' === n(e.process) && e.process.domain && (r = e.process.domain.bind(r)),
            (this._invoke = function (e, t) {
              function n() {
                return new Promise(function (n, i) {
                  r(e, t, n, i);
                });
              }
              return (i = i ? i.then(n, n) : n());
            });
        }
        function O(e, t) {
          var n = e.iterator[t.method];
          if (n === r) {
            if (((t.delegate = null), 'throw' === t.method)) {
              if (
                e.iterator.return &&
                ((t.method = 'return'), (t.arg = r), O(e, t), 'throw' === t.method)
              )
                return y;
              (t.method = 'throw'),
                (t.arg = new TypeError("The iterator does not provide a 'throw' method"));
            }
            return y;
          }
          var i = E(n, e.iterator, t.arg);
          if ('throw' === i.type)
            return (t.method = 'throw'), (t.arg = i.arg), (t.delegate = null), y;
          var o = i.arg;
          return o
            ? o.done
              ? ((t[e.resultName] = o.value),
                (t.next = e.nextLoc),
                'return' !== t.method && ((t.method = 'next'), (t.arg = r)),
                (t.delegate = null),
                y)
              : o
            : ((t.method = 'throw'),
              (t.arg = new TypeError('iterator result is not an object')),
              (t.delegate = null),
              y);
        }
        function T(e) {
          var t = { tryLoc: e[0] };
          1 in e && (t.catchLoc = e[1]),
            2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])),
            this.tryEntries.push(t);
        }
        function P(e) {
          var t = e.completion || {};
          (t.type = 'normal'), delete t.arg, (e.completion = t);
        }
        function k(e) {
          (this.tryEntries = [{ tryLoc: 'root' }]), e.forEach(T, this), this.reset(!0);
        }
        function I(e) {
          if (e) {
            var t = e[s];
            if (t) return t.call(e);
            if ('function' == typeof e.next) return e;
            if (!isNaN(e.length)) {
              var n = -1,
                i = function t() {
                  for (; ++n < e.length; )
                    if (o.call(e, n)) return (t.value = e[n]), (t.done = !1), t;
                  return (t.value = r), (t.done = !0), t;
                };
              return (i.next = i);
            }
          }
          return { next: N };
        }
        function N() {
          return { value: r, done: !0 };
        }
      })(
        'object' === (void 0 === e ? 'undefined' : n(e))
          ? e
          : 'object' === ('undefined' == typeof window ? 'undefined' : n(window))
          ? window
          : 'object' === ('undefined' == typeof self ? 'undefined' : n(self))
          ? self
          : this,
      );
    }.call(this, n(11), n(96)(e)));
  },
  function (e, t, n) {
    n(436), (e.exports = n(22).RegExp.escape);
  },
  function (e, t, n) {
    var r = n(0),
      i = n(437)(/[\\^$*+?.()|[\]{}]/g, '\\$&');
    r(r.S, 'RegExp', {
      escape: function (e) {
        return i(e);
      },
    });
  },
  function (e, t) {
    e.exports = function (e, t) {
      var n =
        t === Object(t)
          ? function (e) {
              return t[e];
            }
          : t;
      return function (t) {
        return String(t).replace(e, n);
      };
    };
  },
  function (e, t, n) {
    (function (t) {
      var r = n(8),
        i = n(136),
        o = n(74).logging,
        a = n(74).config,
        s = n(74).machineManager,
        u = n(100),
        c = n(198),
        p = n(480),
        f = n(485);
      (e.exports = {
        init: function (e, t) {
          r.setIPC(t), a.start(), s.init(), o.init(), u.start(f), c.start(), p.serve(f);
        },
        test: function () {
          f.createInstance('bf5fda88-ed36-40fa-a5d0-9474644f2667', {});
        },
        IPC: i,
      }),
        'node' === r.environment && void 0 !== t.send && e.exports.init();
    }.call(this, n(16)));
  },
  function (e, t, n) {
    function r(e, t) {
      var n = Object.keys(e);
      return (
        Object.getOwnPropertySymbols && n.push.apply(n, Object.getOwnPropertySymbols(e)),
        t &&
          (n = n.filter(function (t) {
            return Object.getOwnPropertyDescriptor(e, t).enumerable;
          })),
        n
      );
    }
    function i(e, t, n) {
      return (
        t in e
          ? Object.defineProperty(e, t, {
              value: n,
              enumerable: !0,
              configurable: !0,
              writable: !0,
            })
          : (e[t] = n),
        e
      );
    }
    function o(e) {
      return (o =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function a(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function s(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);
      }
    }
    function u(e, t) {
      return !t || ('object' !== o(t) && 'function' != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return e;
          })(e)
        : t;
    }
    function c(e) {
      return (c = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function p(e, t) {
      return (p =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    var f = n(37),
      l = f.System,
      h = f.IPC,
      d = n(54),
      m = (function (e) {
        function t(e) {
          var n;
          return (
            (function (e, t) {
              if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
            })(this, t),
            ((n = u(this, c(t).call(this, e))).environment = e),
            n
          );
        }
        var f, m, y;
        return (
          (function (e, t) {
            if ('function' != typeof t && null !== t)
              throw new TypeError('Super expression must either be null or a function');
            (e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              t && p(e, t);
          })(t, l),
          (f = t),
          (m = [
            {
              key: '_serve',
              value: function (e, t, n, r) {
                var i = n,
                  s = r;
                'function' == typeof n && ((s = n), (i = {}));
                var u = d.generateUniqueTaskID();
                h.listen(
                  u,
                  (function () {
                    var e,
                      t =
                        ((e = regeneratorRuntime.mark(function e(t, n, r) {
                          var i, a, u, c, p;
                          return regeneratorRuntime.wrap(function (e) {
                            for (;;)
                              switch ((e.prev = e.next)) {
                                case 0:
                                  return (
                                    (i = 200),
                                    (e.next = 3),
                                    s(r).catch(function (e) {
                                      return (
                                        (i = e.statusCode || 404),
                                        { response: e.message, mimeType: 'html' }
                                      );
                                    })
                                  );
                                case 3:
                                  (a = e.sent),
                                    (u = a),
                                    'object' === o(a) && ((u = a.response), (c = a.mimeType)),
                                    (p = d.generateUniqueTaskID()),
                                    h.emit(p, 'respond', [u, n, i, c]);
                                case 8:
                                case 'end':
                                  return e.stop();
                              }
                          }, e);
                        })),
                        function () {
                          var t = this,
                            n = arguments;
                          return new Promise(function (r, i) {
                            var o = e.apply(t, n);
                            function s(e) {
                              a(o, r, i, s, u, 'next', e);
                            }
                            function u(e) {
                              a(o, r, i, s, u, 'throw', e);
                            }
                            s(void 0);
                          });
                        });
                    return function (e, n, r) {
                      return t.apply(this, arguments);
                    };
                  })(),
                ),
                  h.emit(u, 'serve', [e, t, i]);
              },
            },
            {
              key: 'get',
              value: function (e, t, n) {
                this._serve('get', e, t, n);
              },
            },
            {
              key: 'put',
              value: function (e, t, n) {
                this._serve('put', e, t, n);
              },
            },
            {
              key: 'post',
              value: function (e, t, n) {
                this._serve('post', e, t, n);
              },
            },
            {
              key: 'delete',
              value: function (e, t, n) {
                this._serve('delete', e, t, n);
              },
            },
            {
              key: 'request',
              value: function (e, t, o) {
                var a;
                if (('function' == typeof t && ((o = t), (t = {})), 'web' === this.environment))
                  (a = n(442)),
                    (t.uri = e),
                    (t.body = t.formData),
                    delete t.formData,
                    t.headers && delete t.headers['Content-Length'],
                    a(t, o);
                else if ('node' === this.environment) {
                  a = n(443).request;
                  var s = a(
                    (t = (function (e) {
                      for (var t = 1; t < arguments.length; t++) {
                        var n = null != arguments[t] ? arguments[t] : {};
                        t % 2
                          ? r(n, !0).forEach(function (t) {
                              i(e, t, n[t]);
                            })
                          : Object.getOwnPropertyDescriptors
                          ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
                          : r(n).forEach(function (t) {
                              Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
                            });
                      }
                      return e;
                    })({}, t, {}, n(194).parse(e))),
                    function (e) {
                      e.setEncoding('utf8');
                      var t = '';
                      e.on('data', function (e) {
                        t += e;
                      }),
                        e.on('end', function () {
                          return o(null, e, t);
                        });
                    },
                  );
                  s.on('error', function (e) {
                    return o(e);
                  }),
                    t && t.formData && s.write(t.formData),
                    s.end();
                }
              },
            },
          ]) && s(f.prototype, m),
          y && s(f, y),
          t
        );
      })();
    e.exports = m;
  },
  function (e, t, n) {
    (function (t) {
      function r(e) {
        return (r =
          'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
            ? function (e) {
                return typeof e;
              }
            : function (e) {
                return e &&
                  'function' == typeof Symbol &&
                  e.constructor === Symbol &&
                  e !== Symbol.prototype
                  ? 'symbol'
                  : typeof e;
              })(e);
      }
      function i(e, t) {
        return (
          (function (e) {
            if (Array.isArray(e)) return e;
          })(e) ||
          (function (e, t) {
            var n = [],
              r = !0,
              i = !1,
              o = void 0;
            try {
              for (
                var a, s = e[Symbol.iterator]();
                !(r = (a = s.next()).done) && (n.push(a.value), !t || n.length !== t);
                r = !0
              );
            } catch (e) {
              (i = !0), (o = e);
            } finally {
              try {
                r || null == s.return || s.return();
              } finally {
                if (i) throw o;
              }
            }
            return n;
          })(e, t) ||
          (function () {
            throw new TypeError('Invalid attempt to destructure non-iterable instance');
          })()
        );
      }
      function o(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);
        }
      }
      function a(e) {
        return (a = Object.setPrototypeOf
          ? Object.getPrototypeOf
          : function (e) {
              return e.__proto__ || Object.getPrototypeOf(e);
            })(e);
      }
      function s(e) {
        if (void 0 === e)
          throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
        return e;
      }
      function u(e, t) {
        return (u =
          Object.setPrototypeOf ||
          function (e, t) {
            return (e.__proto__ = t), e;
          })(e, t);
      }
      var c = n(136),
        p = null,
        f = (function (e) {
          function n() {
            var e;
            return (
              (function (e, t) {
                if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
              })(this, n),
              (e = (function (e, t) {
                return !t || ('object' !== r(t) && 'function' != typeof t) ? s(e) : t;
              })(this, a(n).call(this))),
              t.on('message', e._processReceive.bind(s(e))),
              e
            );
          }
          var f, l, h;
          return (
            (function (e, t) {
              if ('function' != typeof t && null !== t)
                throw new TypeError('Super expression must either be null or a function');
              (e.prototype = Object.create(t && t.prototype, {
                constructor: { value: e, writable: !0, configurable: !0 },
              })),
                t && u(e, t);
            })(n, c),
            (f = n),
            (h = [
              {
                key: 'singleton',
                value: function () {
                  return p || (p = new n()), p;
                },
              },
            ]),
            (l = [
              {
                key: 'emit',
                value: function (e, n, r) {
                  t.send([e, n, r]);
                },
              },
              {
                key: '_processReceive',
                value: function (e) {
                  var t = i(e, 2),
                    n = t[0],
                    r = t[1];
                  this.receive(n, r);
                },
              },
            ]) && o(f.prototype, l),
            h && o(f, h),
            n
          );
        })();
      e.exports = f;
    }.call(this, n(16)));
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(e, t) {
      return (
        (function (e) {
          if (Array.isArray(e)) return e;
        })(e) ||
        (function (e, t) {
          var n = [],
            r = !0,
            i = !1,
            o = void 0;
          try {
            for (
              var a, s = e[Symbol.iterator]();
              !(r = (a = s.next()).done) && (n.push(a.value), !t || n.length !== t);
              r = !0
            );
          } catch (e) {
            (i = !0), (o = e);
          } finally {
            try {
              r || null == s.return || s.return();
            } finally {
              if (i) throw o;
            }
          }
          return n;
        })(e, t) ||
        (function () {
          throw new TypeError('Invalid attempt to destructure non-iterable instance');
        })()
      );
    }
    function o(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);
      }
    }
    function a(e) {
      return (a = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function s(e) {
      if (void 0 === e)
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
      return e;
    }
    function u(e, t) {
      return (u =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    var c = n(136),
      p = null,
      f = (function (e) {
        function t() {
          var e;
          return (
            (function (e, t) {
              if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
            })(this, t),
            (e = (function (e, t) {
              return !t || ('object' !== r(t) && 'function' != typeof t) ? s(e) : t;
            })(this, a(t).call(this))),
            window.IPC.on('message', e._processReceive.bind(s(e))),
            e
          );
        }
        var n, f, l;
        return (
          (function (e, t) {
            if ('function' != typeof t && null !== t)
              throw new TypeError('Super expression must either be null or a function');
            (e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              t && u(e, t);
          })(t, c),
          (n = t),
          (l = [
            {
              key: 'singleton',
              value: function () {
                return p || (p = new t()), p;
              },
            },
          ]),
          (f = [
            {
              key: 'emit',
              value: function (e, t, n) {
                window.IPC.emit([e, t, n]);
              },
            },
            {
              key: '_processReceive',
              value: function (e) {
                var t = i(e, 2),
                  n = t[0],
                  r = t[1];
                this.receive(n, r);
              },
            },
          ]) && o(n.prototype, f),
          l && o(n, l),
          t
        );
      })();
    e.exports = f;
  },
  function (e, t, n) {
    var r, i, o;
    function a(e) {
      return (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;
            })(e);
    }
    (i = []),
      void 0 ===
        (o =
          'function' ==
          typeof (r = function () {
            var e = XMLHttpRequest;
            if (!e) throw new Error('missing XMLHttpRequest');
            function t(o, a) {
              if ('function' != typeof a) throw new Error('Bad callback given: ' + a);
              if (!o) throw new Error('No options given');
              var s = o.onResponse;
              if (
                (((o =
                  'string' == typeof o ? { uri: o } : JSON.parse(JSON.stringify(o))).onResponse =
                  s),
                o.verbose &&
                  (t.log = (function () {
                    var e,
                      t,
                      n = {},
                      o = ['trace', 'debug', 'info', 'warn', 'error'];
                    for (t = 0; t < o.length; t++)
                      (n[(e = o[t])] = r),
                        'undefined' != typeof console &&
                          console &&
                          console[e] &&
                          (n[e] = i(console, e));
                    return n;
                  })()),
                o.url && ((o.uri = o.url), delete o.url),
                !o.uri && '' !== o.uri)
              )
                throw new Error('options.uri is a required argument');
              if ('string' != typeof o.uri) throw new Error('options.uri must be a string');
              for (
                var u = ['proxy', '_redirectsFollowed', 'maxRedirects', 'followRedirect'], c = 0;
                c < u.length;
                c++
              )
                if (o[u[c]]) throw new Error('options.' + u[c] + ' is not supported');
              if (
                ((o.callback = a),
                (o.method = o.method || 'GET'),
                (o.headers = o.headers || {}),
                (o.body = o.body || null),
                (o.timeout = o.timeout || t.DEFAULT_TIMEOUT),
                o.headers.host)
              )
                throw new Error('Options.headers.host is not supported');
              o.json &&
                ((o.headers.accept = o.headers.accept || 'application/json'),
                'GET' !== o.method && (o.headers['content-type'] = 'application/json'),
                'boolean' != typeof o.json
                  ? (o.body = JSON.stringify(o.json))
                  : 'string' != typeof o.body && (o.body = JSON.stringify(o.body)));
              var p = function (e) {
                var t = [];
                for (var n in e)
                  e.hasOwnProperty(n) &&
                    t.push(encodeURIComponent(n) + '=' + encodeURIComponent(e[n]));
                return t.join('&');
              };
              if (o.qs) {
                var f = 'string' == typeof o.qs ? o.qs : p(o.qs);
                -1 !== o.uri.indexOf('?') ? (o.uri = o.uri + '&' + f) : (o.uri = o.uri + '?' + f);
              }
              if (o.form) {
                if ('string' == typeof o.form) throw 'form name unsupported';
                if ('POST' === o.method) {
                  var l = (o.encoding || 'application/x-www-form-urlencoded').toLowerCase();
                  switch (((o.headers['content-type'] = l), l)) {
                    case 'application/x-www-form-urlencoded':
                      o.body = p(o.form).replace(/%20/g, '+');
                      break;
                    case 'multipart/form-data':
                      var h = (function (e) {
                        var t = {};
                        t.boundry =
                          '-------------------------------' + Math.floor(1e9 * Math.random());
                        var n = [];
                        for (var r in e)
                          e.hasOwnProperty(r) &&
                            n.push(
                              '--' +
                                t.boundry +
                                '\nContent-Disposition: form-data; name="' +
                                r +
                                '"\n\n' +
                                e[r] +
                                '\n',
                            );
                        return (
                          n.push('--' + t.boundry + '--'),
                          (t.body = n.join('')),
                          (t.length = t.body.length),
                          (t.type = 'multipart/form-data; boundary=' + t.boundry),
                          t
                        );
                      })(o.form);
                      (o.body = h.body), (o.headers['content-type'] = h.type);
                      break;
                    default:
                      throw new Error('unsupported encoding:' + l);
                  }
                }
              }
              return (
                (o.onResponse = o.onResponse || r),
                !0 === o.onResponse && ((o.onResponse = a), (o.callback = r)),
                !o.headers.authorization &&
                  o.auth &&
                  (o.headers.authorization =
                    'Basic ' +
                    (function (e) {
                      var t,
                        n,
                        r,
                        i,
                        o,
                        a,
                        s,
                        u,
                        c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
                        p = 0,
                        f = 0,
                        l = '',
                        h = [];
                      if (!e) return e;
                      do {
                        (t = e.charCodeAt(p++)),
                          (n = e.charCodeAt(p++)),
                          (r = e.charCodeAt(p++)),
                          (i = ((u = (t << 16) | (n << 8) | r) >> 18) & 63),
                          (o = (u >> 12) & 63),
                          (a = (u >> 6) & 63),
                          (s = 63 & u),
                          (h[f++] = c.charAt(i) + c.charAt(o) + c.charAt(a) + c.charAt(s));
                      } while (p < e.length);
                      switch (((l = h.join('')), e.length % 3)) {
                        case 1:
                          l = l.slice(0, -2) + '==';
                          break;
                        case 2:
                          l = l.slice(0, -1) + '=';
                      }
                      return l;
                    })(o.auth.username + ':' + o.auth.password)),
                (function (r) {
                  var i = new e(),
                    o = !1,
                    a = (function (e) {
                      var t,
                        n = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/;
                      try {
                        t = location.href;
                      } catch (e) {
                        ((t = document.createElement('a')).href = ''), (t = t.href);
                      }
                      var r = n.exec(t.toLowerCase()) || [],
                        i = n.exec(e.toLowerCase());
                      return !(
                        !i ||
                        (i[1] == r[1] &&
                          i[2] == r[2] &&
                          (i[3] || ('http:' === i[1] ? 80 : 443)) ==
                            (r[3] || ('http:' === r[1] ? 80 : 443)))
                      );
                    })(r.uri),
                    s = 'withCredentials' in i;
                  if (
                    ((n += 1),
                    (i.seq_id = n),
                    (i.id = n + ': ' + r.method + ' ' + r.uri),
                    (i._id = i.id),
                    a && !s)
                  ) {
                    var u = new Error('Browser does not support cross-origin request: ' + r.uri);
                    return (u.cors = 'unsupported'), r.callback(u, i);
                  }
                  i.timeoutTimer = setTimeout(function () {
                    o = !0;
                    var e = new Error('ETIMEDOUT');
                    return (
                      (e.code = 'ETIMEDOUT'),
                      (e.duration = r.timeout),
                      t.log.error('Timeout', { id: i._id, milliseconds: r.timeout }),
                      r.callback(e, i)
                    );
                  }, r.timeout);
                  var c = { response: !1, loading: !1, end: !1 };
                  return (
                    (i.onreadystatechange = function (n) {
                      if (o)
                        return t.log.debug('Ignoring timed out state change', {
                          state: i.readyState,
                          id: i.id,
                        });
                      if (
                        (t.log.debug('State change', {
                          state: i.readyState,
                          id: i.id,
                          timed_out: o,
                        }),
                        i.readyState === e.OPENED)
                      )
                        for (var a in (t.log.debug('Request started', { id: i.id }), r.headers))
                          i.setRequestHeader(a, r.headers[a]);
                      else
                        i.readyState === e.HEADERS_RECEIVED
                          ? p()
                          : i.readyState === e.LOADING
                          ? (p(), f())
                          : i.readyState === e.DONE &&
                            (p(),
                            f(),
                            (function () {
                              if (!c.end) {
                                if (
                                  ((c.end = !0),
                                  t.log.debug('Request done', { id: i.id }),
                                  (i.body = i.responseText),
                                  r.json)
                                )
                                  try {
                                    i.body = JSON.parse(i.responseText);
                                  } catch (e) {
                                    return r.callback(e, i);
                                  }
                                r.callback(null, i, i.body);
                              }
                            })());
                    }),
                    i.open(r.method, r.uri, !0),
                    a && (i.withCredentials = !!r.withCredentials),
                    i.send(r.body),
                    i
                  );
                  function p() {
                    if (!c.response) {
                      if (
                        ((c.response = !0),
                        t.log.debug('Got response', { id: i.id, status: i.status }),
                        clearTimeout(i.timeoutTimer),
                        (i.statusCode = i.status),
                        a && 0 == i.statusCode)
                      ) {
                        var e = new Error('CORS request rejected: ' + r.uri);
                        return (
                          (e.cors = 'rejected'), (c.loading = !0), (c.end = !0), r.callback(e, i)
                        );
                      }
                      r.onResponse(null, i);
                    }
                  }
                  function f() {
                    c.loading ||
                      ((c.loading = !0), t.log.debug('Response body loading', { id: i.id }));
                  }
                })(o)
              );
            }
            t.log = { trace: r, debug: r, info: r, warn: r, error: r };
            var n = 0;
            function r() {}
            function i(e, t) {
              return function (n, r) {
                return 'object' === a(r) && (n += ' ' + JSON.stringify(r)), e[t].call(e, n);
              };
            }
            return (
              (t.withCredentials = !1),
              (t.DEFAULT_TIMEOUT = 18e4),
              (t.defaults = function (e, n) {
                var r = function (t) {
                    return function (n, r) {
                      for (var i in ((n =
                        'string' == typeof n ? { uri: n } : JSON.parse(JSON.stringify(n))),
                      e))
                        void 0 === n[i] && (n[i] = e[i]);
                      return t(n, r);
                    };
                  },
                  i = r(t);
                return (
                  (i.get = r(t.get)),
                  (i.post = r(t.post)),
                  (i.put = r(t.put)),
                  (i.head = r(t.head)),
                  i
                );
              }),
              ['get', 'put', 'post', 'head'].forEach(function (e) {
                var n = e.toUpperCase();
                t[e.toLowerCase()] = function (e) {
                  'string' == typeof e
                    ? (e = { method: n, uri: e })
                    : ((e = JSON.parse(JSON.stringify(e))).method = n);
                  var r = [e].concat(Array.prototype.slice.apply(arguments, [1]));
                  return t.apply(this, r);
                };
              }),
              (t.couch = function (e, n) {
                return (
                  'string' == typeof e && (e = { uri: e }),
                  (e.json = !0),
                  e.body && (e.json = e.body),
                  delete e.body,
                  (n = n || r),
                  t(e, function (e, t, r) {
                    if (e) return n(e, t, r);
                    if ((t.statusCode < 200 || t.statusCode > 299) && r.error) {
                      for (var i in ((e = new Error(
                        'CouchDB error: ' + (r.error.reason || r.error.error),
                      )),
                      r))
                        e[i] = r[i];
                      return n(e, t, r);
                    }
                    return n(e, t, r);
                  })
                );
              }),
              t
            );
          })
            ? r.apply(t, i)
            : r) || (e.exports = o);
  },
  function (e, t, n) {
    (function (e) {
      var r = n(444),
        i = n(189),
        o = n(454),
        a = n(455),
        s = n(194),
        u = t;
      (u.request = function (t, n) {
        t = 'string' == typeof t ? s.parse(t) : o(t);
        var i = -1 === e.location.protocol.search(/^https?:$/) ? 'http:' : '',
          a = t.protocol || i,
          u = t.hostname || t.host,
          c = t.port,
          p = t.path || '/';
        u && -1 !== u.indexOf(':') && (u = '[' + u + ']'),
          (t.url = (u ? a + '//' + u : '') + (c ? ':' + c : '') + p),
          (t.method = (t.method || 'GET').toUpperCase()),
          (t.headers = t.headers || {});
        var f = new r(t);
        return n && f.on('response', n), f;
      }),
        (u.get = function (e, t) {
          var n = u.request(e, t);
          return n.end(), n;
        }),
        (u.ClientRequest = r),
        (u.IncomingMessage = i.IncomingMessage),
        (u.Agent = function () {}),
        (u.Agent.defaultMaxSockets = 4),
        (u.globalAgent = new u.Agent()),
        (u.STATUS_CODES = a),
        (u.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(this, n(11)));
  },
  function (e, t, n) {
    (function (t, r, i) {
      var o = n(188),
        a = n(39),
        s = n(189),
        u = n(72),
        c = n(453),
        p = s.IncomingMessage,
        f = s.readyStates;
      var l = (e.exports = function (e) {
        var n,
          r = this;
        u.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 i = !0;
        if ('disable-fetch' === e.mode || ('requestTimeout' in e && !o.abortController))
          (i = !1), (n = !0);
        else if ('prefer-streaming' === e.mode) n = !1;
        else if ('allow-wrong-content-type' === e.mode) n = !o.overrideMimeType;
        else {
          if (e.mode && 'default' !== e.mode && 'prefer-fast' !== e.mode)
            throw new Error('Invalid value for opts.mode');
          n = !0;
        }
        (r._mode = (function (e, t) {
          return o.fetch && t
            ? 'fetch'
            : o.mozchunkedarraybuffer
            ? 'moz-chunked-arraybuffer'
            : o.msstream
            ? 'ms-stream'
            : o.arraybuffer && e
            ? 'arraybuffer'
            : o.vbArray && e
            ? 'text:vbarray'
            : 'text';
        })(n, i)),
          (r._fetchTimer = null),
          r.on('finish', function () {
            r._onFinish();
          });
      });
      a(l, u.Writable),
        (l.prototype.setHeader = function (e, t) {
          var n = e.toLowerCase();
          -1 === h.indexOf(n) && (this._headers[n] = { name: e, value: t });
        }),
        (l.prototype.getHeader = function (e) {
          var t = this._headers[e.toLowerCase()];
          return t ? t.value : null;
        }),
        (l.prototype.removeHeader = function (e) {
          delete this._headers[e.toLowerCase()];
        }),
        (l.prototype._onFinish = function () {
          var e = this;
          if (!e._destroyed) {
            var n = e._opts,
              a = e._headers,
              s = null;
            'GET' !== n.method &&
              'HEAD' !== n.method &&
              (s = o.arraybuffer
                ? c(t.concat(e._body))
                : o.blobConstructor
                ? new r.Blob(
                    e._body.map(function (e) {
                      return c(e);
                    }),
                    { type: (a['content-type'] || {}).value || '' },
                  )
                : t.concat(e._body).toString());
            var u = [];
            if (
              (Object.keys(a).forEach(function (e) {
                var t = a[e].name,
                  n = a[e].value;
                Array.isArray(n)
                  ? n.forEach(function (e) {
                      u.push([t, e]);
                    })
                  : u.push([t, n]);
              }),
              'fetch' === e._mode)
            ) {
              var p = null;
              if (o.abortController) {
                var l = new AbortController();
                (p = l.signal),
                  (e._fetchAbortController = l),
                  'requestTimeout' in n &&
                    0 !== n.requestTimeout &&
                    (e._fetchTimer = r.setTimeout(function () {
                      e.emit('requestTimeout'),
                        e._fetchAbortController && e._fetchAbortController.abort();
                    }, n.requestTimeout));
              }
              r.fetch(e._opts.url, {
                method: e._opts.method,
                headers: u,
                body: s || void 0,
                mode: 'cors',
                credentials: n.withCredentials ? 'include' : 'same-origin',
                signal: p,
              }).then(
                function (t) {
                  (e._fetchResponse = t), e._connect();
                },
                function (t) {
                  r.clearTimeout(e._fetchTimer), e._destroyed || e.emit('error', t);
                },
              );
            } else {
              var h = (e._xhr = new r.XMLHttpRequest());
              try {
                h.open(e._opts.method, e._opts.url, !0);
              } catch (t) {
                return void i.nextTick(function () {
                  e.emit('error', t);
                });
              }
              'responseType' in h && (h.responseType = e._mode.split(':')[0]),
                'withCredentials' in h && (h.withCredentials = !!n.withCredentials),
                'text' === e._mode &&
                  'overrideMimeType' in h &&
                  h.overrideMimeType('text/plain; charset=x-user-defined'),
                'requestTimeout' in n &&
                  ((h.timeout = n.requestTimeout),
                  (h.ontimeout = function () {
                    e.emit('requestTimeout');
                  })),
                u.forEach(function (e) {
                  h.setRequestHeader(e[0], e[1]);
                }),
                (e._response = null),
                (h.onreadystatechange = function () {
                  switch (h.readyState) {
                    case f.LOADING:
                    case f.DONE:
                      e._onXHRProgress();
                  }
                }),
                'moz-chunked-arraybuffer' === e._mode &&
                  (h.onprogress = function () {
                    e._onXHRProgress();
                  }),
                (h.onerror = function () {
                  e._destroyed || e.emit('error', new Error('XHR error'));
                });
              try {
                h.send(s);
              } catch (t) {
                return void i.nextTick(function () {
                  e.emit('error', t);
                });
              }
            }
          }
        }),
        (l.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());
        }),
        (l.prototype._connect = function () {
          var e = this;
          e._destroyed ||
            ((e._response = new p(e._xhr, e._fetchResponse, e._mode, e._fetchTimer)),
            e._response.on('error', function (t) {
              e.emit('error', t);
            }),
            e.emit('response', e._response));
        }),
        (l.prototype._write = function (e, t, n) {
          this._body.push(e), n();
        }),
        (l.prototype.abort = l.prototype.destroy =
          function () {
            (this._destroyed = !0),
              r.clearTimeout(this._fetchTimer),
              this._response && (this._response._destroyed = !0),
              this._xhr
                ? this._xhr.abort()
                : this._fetchAbortController && this._fetchAbortController.abort();
          }),
        (l.prototype.end = function (e, t, n) {
          'function' == typeof e && ((n = e), (e = void 0)),
            u.Writable.prototype.end.call(this, e, t, n);
        }),
        (l.prototype.flushHeaders = function () {}),
        (l.prototype.setTimeout = function () {}),
        (l.prototype.setNoDelay = function () {}),
        (l.prototype.setSocketKeepAlive = function () {});
      var h = [
        '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',
        'via',
      ];
    }.call(this, n(38).Buffer, n(11), n(16)));
  },
  function (e, t, n) {
    'use strict';
    (t.byteLength = function (e) {
      var t = c(e),
        n = t[0],
        r = t[1];
      return (3 * (n + r)) / 4 - r;
    }),
      (t.toByteArray = function (e) {
        for (
          var t,
            n = c(e),
            r = n[0],
            a = n[1],
            s = new o(
              (function (e, t, n) {
                return (3 * (t + n)) / 4 - n;
              })(0, r, a),
            ),
            u = 0,
            p = a > 0 ? r - 4 : r,
            f = 0;
          f < p;
          f += 4
        )
          (t =
            (i[e.charCodeAt(f)] << 18) |
            (i[e.charCodeAt(f + 1)] << 12) |
            (i[e.charCodeAt(f + 2)] << 6) |
            i[e.charCodeAt(f + 3)]),
            (s[u++] = (t >> 16) & 255),
            (s[u++] = (t >> 8) & 255),
            (s[u++] = 255 & t);
        2 === a &&
          ((t = (i[e.charCodeAt(f)] << 2) | (i[e.charCodeAt(f + 1)] >> 4)), (s[u++] = 255 & t));
        1 === a &&
          ((t =
            (i[e.charCodeAt(f)] << 10) |
            (i[e.charCodeAt(f + 1)] << 4) |
            (i[e.charCodeAt(f + 2)] >> 2)),
          (s[u++] = (t >> 8) & 255),
          (s[u++] = 255 & t));
        return s;
      }),
      (t.fromByteArray = function (e) {
        for (var t, n = e.length, i = n % 3, o = [], a = 0, s = n - i; a < s; a += 16383)
          o.push(p(e, a, a + 16383 > s ? s : a + 16383));
        1 === i
          ? ((t = e[n - 1]), o.push(r[t >> 2] + r[(t << 4) & 63] + '=='))
          : 2 === i &&
            ((t = (e[n - 2] << 8) + e[n - 1]),
            o.push(r[t >> 10] + r[(t >> 4) & 63] + r[(t << 2) & 63] + '='));
        return o.join('');
      });
    for (
      var r = [],
        i = [],
        o = 'undefined' != typeof Uint8Array ? Uint8Array : Array,
        a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
        s = 0,
        u = a.length;
      s < u;
      ++s
    )
      (r[s] = a[s]), (i[a.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');
      var n = e.indexOf('=');
      return -1 === n && (n = t), [n, n === t ? 0 : 4 - (n % 4)];
    }
    function p(e, t, n) {
      for (var i, o, a = [], s = t; s < n; s += 3)
        (i = ((e[s] << 16) & 16711680) + ((e[s + 1] << 8) & 65280) + (255 & e[s + 2])),
          a.push(r[((o = i) >> 18) & 63] + r[(o >> 12) & 63] + r[(o >> 6) & 63] + r[63 & o]);
      return a.join('');
    }
    (i['-'.charCodeAt(0)] = 62), (i['_'.charCodeAt(0)] = 63);
  },
  function (e, t) {
    (t.read = function (e, t, n, r, i) {
      var o,
        a,
        s = 8 * i - r - 1,
        u = (1 << s) - 1,
        c = u >> 1,
        p = -7,
        f = n ? i - 1 : 0,
        l = n ? -1 : 1,
        h = e[t + f];
      for (
        f += l, o = h & ((1 << -p) - 1), h >>= -p, p += s;
        p > 0;
        o = 256 * o + e[t + f], f += l, p -= 8
      );
      for (
        a = o & ((1 << -p) - 1), o >>= -p, p += r;
        p > 0;
        a = 256 * a + e[t + f], f += l, p -= 8
      );
      if (0 === o) o = 1 - c;
      else {
        if (o === u) return a ? NaN : (1 / 0) * (h ? -1 : 1);
        (a += Math.pow(2, r)), (o -= c);
      }
      return (h ? -1 : 1) * a * Math.pow(2, o - r);
    }),
      (t.write = function (e, t, n, r, i, o) {
        var a,
          s,
          u,
          c = 8 * o - i - 1,
          p = (1 << c) - 1,
          f = p >> 1,
          l = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
          h = r ? 0 : o - 1,
          d = r ? 1 : -1,
          m = t < 0 || (0 === t && 1 / t < 0) ? 1 : 0;
        for (
          t = Math.abs(t),
            isNaN(t) || t === 1 / 0
              ? ((s = isNaN(t) ? 1 : 0), (a = p))
              : ((a = Math.floor(Math.log(t) / Math.LN2)),
                t * (u = Math.pow(2, -a)) < 1 && (a--, (u *= 2)),
                (t += a + f >= 1 ? l / u : l * Math.pow(2, 1 - f)) * u >= 2 && (a++, (u /= 2)),
                a + f >= p
                  ? ((s = 0), (a = p))
                  : a + f >= 1
                  ? ((s = (t * u - 1) * Math.pow(2, i)), (a += f))
                  : ((s = t * Math.pow(2, f - 1) * Math.pow(2, i)), (a = 0)));
          i >= 8;
          e[n + h] = 255 & s, h += d, s /= 256, i -= 8
        );
        for (a = (a << i) | s, c += i; c > 0; e[n + h] = 255 & a, h += d, a /= 256, c -= 8);
        e[n + h - d] |= 128 * m;
      });
  },
  function (e, t) {},
  function (e, t, n) {
    'use strict';
    var r = n(98).Buffer,
      i = n(449);
    (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, i, o = r.allocUnsafe(e >>> 0), a = this.head, s = 0; a; )
            (t = a.data), (n = o), (i = s), t.copy(n, i), (s += a.data.length), (a = a.next);
          return o;
        }),
        e
      );
    })()),
      i &&
        i.inspect &&
        i.inspect.custom &&
        (e.exports.prototype[i.inspect.custom] = function () {
          var e = i.inspect({ length: this.length });
          return this.constructor.name + ' ' + e;
        });
  },
  function (e, t) {},
  function (e, t, n) {
    (function (e, t) {
      !(function (e, n) {
        'use strict';
        if (!e.setImmediate) {
          var r,
            i,
            o,
            a,
            s,
            u = 1,
            c = {},
            p = !1,
            f = e.document,
            l = Object.getPrototypeOf && Object.getPrototypeOf(e);
          (l = l && l.setTimeout ? l : e),
            '[object process]' === {}.toString.call(e.process)
              ? (r = function (e) {
                  t.nextTick(function () {
                    d(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
                ? (((o = new MessageChannel()).port1.onmessage = function (e) {
                    d(e.data);
                  }),
                  (r = function (e) {
                    o.port2.postMessage(e);
                  }))
                : f && 'onreadystatechange' in f.createElement('script')
                ? ((i = f.documentElement),
                  (r = function (e) {
                    var t = f.createElement('script');
                    (t.onreadystatechange = function () {
                      d(e), (t.onreadystatechange = null), i.removeChild(t), (t = null);
                    }),
                      i.appendChild(t);
                  }))
                : (r = function (e) {
                    setTimeout(d, 0, e);
                  })
              : ((a = 'setImmediate$' + Math.random() + '$'),
                (s = function (t) {
                  t.source === e &&
                    'string' == typeof t.data &&
                    0 === t.data.indexOf(a) &&
                    d(+t.data.slice(a.length));
                }),
                e.addEventListener
                  ? e.addEventListener('message', s, !1)
                  : e.attachEvent('onmessage', s),
                (r = function (t) {
                  e.postMessage(a + t, '*');
                })),
            (l.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 i = { callback: e, args: t };
              return (c[u] = i), r(u), u++;
            }),
            (l.clearImmediate = h);
        }
        function h(e) {
          delete c[e];
        }
        function d(e) {
          if (p) setTimeout(d, 0, e);
          else {
            var t = c[e];
            if (t) {
              p = !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 {
                h(e), (p = !1);
              }
            }
          }
        }
      })('undefined' == typeof self ? (void 0 === e ? this : e) : self);
    }.call(this, n(11), n(16)));
  },
  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(this, n(11)));
  },
  function (e, t, n) {
    'use strict';
    e.exports = o;
    var r = n(193),
      i = n(73);
    function o(e) {
      if (!(this instanceof o)) return new o(e);
      r.call(this, e);
    }
    (i.inherits = n(39)),
      i.inherits(o, r),
      (o.prototype._transform = function (e, t, n) {
        n(null, e);
      });
  },
  function (e, t, n) {
    var r = n(38).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, i = 0; i < n; i++) t[i] = e[i];
        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 i in r) n.call(r, i) && (e[i] = r[i]);
      }
      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 i;
      function o(e) {
        return (o =
          'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
            ? function (e) {
                return typeof e;
              }
            : function (e) {
                return e &&
                  'function' == typeof Symbol &&
                  e.constructor === Symbol &&
                  e !== Symbol.prototype
                  ? 'symbol'
                  : typeof e;
              })(e);
      }
      /*! https://mths.be/punycode v1.4.1 by @mathias */ !(function (a) {
        var s = 'object' == o(t) && t && !t.nodeType && t,
          u = 'object' == o(e) && e && !e.nodeType && e,
          c = 'object' == (void 0 === r ? 'undefined' : o(r)) && r;
        (c.global !== c && c.window !== c && c.self !== c) || (a = c);
        var p,
          f,
          l = 2147483647,
          h = 36,
          d = 1,
          m = 26,
          y = 38,
          v = 700,
          g = 72,
          b = 128,
          w = '-',
          x = /^xn--/,
          E = /[^\x20-\x7E]/,
          S = /[\x2E\u3002\uFF0E\uFF61]/g,
          A = {
            overflow: 'Overflow: input needs wider integers to process',
            'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
            'invalid-input': 'Invalid input',
          },
          R = h - d,
          C = Math.floor,
          _ = String.fromCharCode;
        function O(e) {
          throw new RangeError(A[e]);
        }
        function T(e, t) {
          for (var n = e.length, r = []; n--; ) r[n] = t(e[n]);
          return r;
        }
        function P(e, t) {
          var n = e.split('@'),
            r = '';
          return (
            n.length > 1 && ((r = n[0] + '@'), (e = n[1])),
            r + T((e = e.replace(S, '.')).split('.'), t).join('.')
          );
        }
        function k(e) {
          for (var t, n, r = [], i = 0, o = e.length; i < o; )
            (t = e.charCodeAt(i++)) >= 55296 && t <= 56319 && i < o
              ? 56320 == (64512 & (n = e.charCodeAt(i++)))
                ? r.push(((1023 & t) << 10) + (1023 & n) + 65536)
                : (r.push(t), i--)
              : r.push(t);
          return r;
        }
        function I(e) {
          return T(e, function (e) {
            var t = '';
            return (
              e > 65535 &&
                ((t += _((((e -= 65536) >>> 10) & 1023) | 55296)), (e = 56320 | (1023 & e))),
              (t += _(e))
            );
          }).join('');
        }
        function N(e, t) {
          return e + 22 + 75 * (e < 26) - ((0 != t) << 5);
        }
        function M(e, t, n) {
          var r = 0;
          for (e = n ? C(e / v) : e >> 1, e += C(e / t); e > (R * m) >> 1; r += h) e = C(e / R);
          return C(r + ((R + 1) * e) / (e + y));
        }
        function D(e) {
          var t,
            n,
            r,
            i,
            o,
            a,
            s,
            u,
            c,
            p,
            f,
            y = [],
            v = e.length,
            x = 0,
            E = b,
            S = g;
          for ((n = e.lastIndexOf(w)) < 0 && (n = 0), r = 0; r < n; ++r)
            e.charCodeAt(r) >= 128 && O('not-basic'), y.push(e.charCodeAt(r));
          for (i = n > 0 ? n + 1 : 0; i < v; ) {
            for (
              o = x, a = 1, s = h;
              i >= v && O('invalid-input'),
                ((u =
                  (f = e.charCodeAt(i++)) - 48 < 10
                    ? f - 22
                    : f - 65 < 26
                    ? f - 65
                    : f - 97 < 26
                    ? f - 97
                    : h) >= h ||
                  u > C((l - x) / a)) &&
                  O('overflow'),
                (x += u * a),
                !(u < (c = s <= S ? d : s >= S + m ? m : s - S));
              s += h
            )
              a > C(l / (p = h - c)) && O('overflow'), (a *= p);
            (S = M(x - o, (t = y.length + 1), 0 == o)),
              C(x / t) > l - E && O('overflow'),
              (E += C(x / t)),
              (x %= t),
              y.splice(x++, 0, E);
          }
          return I(y);
        }
        function j(e) {
          var t,
            n,
            r,
            i,
            o,
            a,
            s,
            u,
            c,
            p,
            f,
            y,
            v,
            x,
            E,
            S = [];
          for (y = (e = k(e)).length, t = b, n = 0, o = g, a = 0; a < y; ++a)
            (f = e[a]) < 128 && S.push(_(f));
          for (r = i = S.length, i && S.push(w); r < y; ) {
            for (s = l, a = 0; a < y; ++a) (f = e[a]) >= t && f < s && (s = f);
            for (
              s - t > C((l - n) / (v = r + 1)) && O('overflow'), n += (s - t) * v, t = s, a = 0;
              a < y;
              ++a
            )
              if (((f = e[a]) < t && ++n > l && O('overflow'), f == t)) {
                for (u = n, c = h; !(u < (p = c <= o ? d : c >= o + m ? m : c - o)); c += h)
                  (E = u - p), (x = h - p), S.push(_(N(p + (E % x), 0))), (u = C(E / x));
                S.push(_(N(u, 0))), (o = M(n, v, r == i)), (n = 0), ++r;
              }
            ++n, ++t;
          }
          return S.join('');
        }
        if (
          ((p = {
            version: '1.4.1',
            ucs2: { decode: k, encode: I },
            decode: D,
            encode: j,
            toASCII: function (e) {
              return P(e, function (e) {
                return E.test(e) ? 'xn--' + j(e) : e;
              });
            },
            toUnicode: function (e) {
              return P(e, function (e) {
                return x.test(e) ? D(e.slice(4).toLowerCase()) : e;
              });
            },
          }),
          'object' == o(n(195)) && n(195))
        )
          void 0 ===
            (i = function () {
              return p;
            }.call(t, n, t, e)) || (e.exports = i);
        else if (s && u)
          if (e.exports == s) u.exports = p;
          else for (f in p) p.hasOwnProperty(f) && (s[f] = p[f]);
        else a.punycode = p;
      })(this);
    }.call(this, n(96)(e), n(11)));
  },
  function (e, t, n) {
    'use strict';
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    e.exports = {
      isString: function (e) {
        return 'string' == typeof e;
      },
      isObject: function (e) {
        return 'object' === r(e) && null !== e;
      },
      isNull: function (e) {
        return null === e;
      },
      isNullOrUndefined: function (e) {
        return null == e;
      },
    };
  },
  function (e, t, n) {
    'use strict';
    (t.decode = t.parse = n(459)), (t.encode = t.stringify = n(460));
  },
  function (e, t, n) {
    'use strict';
    function r(e, t) {
      return Object.prototype.hasOwnProperty.call(e, t);
    }
    e.exports = function (e, t, n, o) {
      (t = t || '&'), (n = n || '=');
      var a = {};
      if ('string' != typeof e || 0 === e.length) return a;
      var s = /\+/g;
      e = e.split(t);
      var u = 1e3;
      o && 'number' == typeof o.maxKeys && (u = o.maxKeys);
      var c = e.length;
      u > 0 && c > u && (c = u);
      for (var p = 0; p < c; ++p) {
        var f,
          l,
          h,
          d,
          m = e[p].replace(s, '%20'),
          y = m.indexOf(n);
        y >= 0 ? ((f = m.substr(0, y)), (l = m.substr(y + 1))) : ((f = m), (l = '')),
          (h = decodeURIComponent(f)),
          (d = decodeURIComponent(l)),
          r(a, h) ? (i(a[h]) ? a[h].push(d) : (a[h] = [a[h], d])) : (a[h] = d);
      }
      return a;
    };
    var i =
      Array.isArray ||
      function (e) {
        return '[object Array]' === Object.prototype.toString.call(e);
      };
  },
  function (e, t, n) {
    'use strict';
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = function (e) {
      switch (r(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, u) {
      return (
        (t = t || '&'),
        (n = n || '='),
        null === e && (e = void 0),
        'object' === r(e)
          ? a(s(e), function (r) {
              var s = encodeURIComponent(i(r)) + n;
              return o(e[r])
                ? a(e[r], function (e) {
                    return s + encodeURIComponent(i(e));
                  }).join(t)
                : s + encodeURIComponent(i(e[r]));
            }).join(t)
          : u
          ? encodeURIComponent(i(u)) + n + encodeURIComponent(i(e))
          : ''
      );
    };
    var o =
      Array.isArray ||
      function (e) {
        return '[object Array]' === Object.prototype.toString.call(e);
      };
    function a(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 s =
      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) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function o(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (r, o) {
          var a = e.apply(t, n);
          function s(e) {
            i(a, r, o, s, u, 'next', e);
          }
          function u(e) {
            i(a, r, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    function a(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);
      }
    }
    function s(e, t) {
      return !t || ('object' !== r(t) && 'function' != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return e;
          })(e)
        : t;
    }
    function u(e) {
      return (u = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function c(e, t) {
      return (c =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    var p = n(37),
      f = p.System,
      l = p.IPC,
      h = n(54),
      d = (function (e) {
        function t() {
          return (
            (function (e, t) {
              if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
            })(this, t),
            s(this, u(t).apply(this, arguments))
          );
        }
        var n, r, i, p, d, m;
        return (
          (function (e, t) {
            if ('function' != typeof t && null !== t)
              throw new TypeError('Super expression must either be null or a function');
            (e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              t && c(e, t);
          })(t, f),
          (n = t),
          (r = [
            {
              key: 'read',
              value:
                ((m = o(
                  regeneratorRuntime.mark(function e(t, n) {
                    var r, i;
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (r = h.generateUniqueTaskID()),
                              (i = new Promise(function (e, t) {
                                l.listen(r, function (n, r) {
                                  n ? t(n) : e(r);
                                });
                              })),
                              l.emit(r, 'read', [t, n]),
                              e.abrupt('return', i)
                            );
                          case 4:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function (e, t) {
                  return m.apply(this, arguments);
                }),
            },
            {
              key: 'write',
              value:
                ((d = o(
                  regeneratorRuntime.mark(function e(t, n, r) {
                    var i, o;
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (i = h.generateUniqueTaskID()),
                              (o = new Promise(function (e, t) {
                                l.listen(i, function (n, r) {
                                  n ? t(n) : e(r);
                                });
                              })),
                              l.emit(i, 'write', [t, n, r]),
                              e.abrupt('return', o)
                            );
                          case 4:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function (e, t, n) {
                  return d.apply(this, arguments);
                }),
            },
            {
              key: 'delete',
              value:
                ((p = o(
                  regeneratorRuntime.mark(function e(t, n) {
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              this.write(t, null, n);
                            case 1:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e, t) {
                  return p.apply(this, arguments);
                }),
            },
          ]) && a(n.prototype, r),
          i && a(n, i),
          t
        );
      })();
    e.exports = d;
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function o(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);
      }
    }
    function a(e, t) {
      return !t || ('object' !== r(t) && 'function' != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return e;
          })(e)
        : t;
    }
    function s(e) {
      return (s = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function u(e, t) {
      return (u =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    var c = n(37),
      p = c.System,
      f = c.IPC,
      l = n(54),
      h = (function (e) {
        function t() {
          return (
            (function (e, t) {
              if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
            })(this, t),
            a(this, s(t).apply(this, arguments))
          );
        }
        var n, r, c, h, d;
        return (
          (function (e, t) {
            if ('function' != typeof t && null !== t)
              throw new TypeError('Super expression must either be null or a function');
            (e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              t && u(e, t);
          })(t, p),
          (n = t),
          (r = [
            {
              key: 'executeNativeCapability',
              value: function (e) {
                var t,
                  n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
                  r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : void 0,
                  i = l.generateUniqueTaskID();
                return (
                  r
                    ? f.listen(i, r)
                    : (t = new Promise(function (e, t) {
                        f.listen(i, function (n, r) {
                          n ? t(n) : e(r);
                        });
                      })),
                  f.emit(i, 'capability', [e, n]),
                  t
                );
              },
            },
            {
              key: 'getAllCapabilities',
              value:
                ((h = regeneratorRuntime.mark(function e() {
                  var t, n;
                  return regeneratorRuntime.wrap(function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            (t = l.generateUniqueTaskID()),
                            (n = new Promise(function (e, n) {
                              f.listen(t, function (t, r) {
                                t ? n(t) : e(r);
                              });
                            })),
                            f.emit(t, 'allCapabilities', []),
                            e.abrupt('return', n)
                          );
                        case 4:
                        case 'end':
                          return e.stop();
                      }
                  }, e);
                })),
                (d = function () {
                  var e = this,
                    t = arguments;
                  return new Promise(function (n, r) {
                    var o = h.apply(e, t);
                    function a(e) {
                      i(o, n, r, a, s, 'next', e);
                    }
                    function s(e) {
                      i(o, n, r, a, s, 'throw', e);
                    }
                    a(void 0);
                  });
                }),
                function () {
                  return d.apply(this, arguments);
                }),
            },
          ]) && o(n.prototype, r),
          c && o(n, c),
          t
        );
      })();
    e.exports = h;
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(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);
      }
    }
    function o(e, t) {
      return !t || ('object' !== r(t) && 'function' != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return e;
          })(e)
        : t;
    }
    function a(e) {
      return (a = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function s(e, t) {
      return (s =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    var u = n(37),
      c = u.System,
      p = u.IPC,
      f = n(54),
      l = (function (e) {
        function t() {
          return (
            (function (e, t) {
              if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
            })(this, t),
            o(this, a(t).apply(this, arguments))
          );
        }
        var n, r, u;
        return (
          (function (e, t) {
            if ('function' != typeof t && null !== t)
              throw new TypeError('Super expression must either be null or a function');
            (e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              t && s(e, t);
          })(t, c),
          (n = t),
          (r = [
            {
              key: 'log',
              value: function (e) {
                var t = f.generateUniqueTaskID();
                p.emit(t, 'console_log', e);
              },
            },
          ]) && i(n.prototype, r),
          u && i(n, u),
          t
        );
      })();
    e.exports = l;
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(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);
      }
    }
    function o(e, t) {
      return !t || ('object' !== r(t) && 'function' != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return e;
          })(e)
        : t;
    }
    function a(e) {
      return (a = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function s(e, t) {
      return (s =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    var u = n(37),
      c = u.System,
      p = u.IPC,
      f = n(54),
      l = (function (e) {
        function t() {
          return (
            (function (e, t) {
              if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
            })(this, t),
            o(this, a(t).apply(this, arguments))
          );
        }
        var n, r, u;
        return (
          (function (e, t) {
            if ('function' != typeof t && null !== t)
              throw new TypeError('Super expression must either be null or a function');
            (e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              t && s(e, t);
          })(t, c),
          (n = t),
          (r = [
            {
              key: 'getConfig',
              value: function () {
                var e = f.generateUniqueTaskID(),
                  t = new Promise(function (t) {
                    p.listen(e, function (e) {
                      t(e);
                    });
                  });
                return p.emit(e, 'read_config', []), t;
              },
            },
            {
              key: 'writeConfig',
              value: function (e, t) {
                var n = f.generateUniqueTaskID(),
                  r = new Promise(function (e, t) {
                    p.listen(n, function (n, r) {
                      n ? t(n) : e(r);
                    });
                  });
                return p.emit(n, 'write_config', [e, t]), r;
              },
            },
          ]) && i(n.prototype, r),
          u && i(n, u),
          t
        );
      })();
    e.exports = l;
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(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);
      }
    }
    function o(e, t) {
      return !t || ('object' !== r(t) && 'function' != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return e;
          })(e)
        : t;
    }
    function a(e) {
      return (a = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function s(e, t) {
      return (s =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    var u = n(37),
      c = u.System,
      p = u.IPC,
      f = n(54),
      l = (function (e) {
        function t() {
          return (
            (function (e, t) {
              if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
            })(this, t),
            o(this, a(t).apply(this, arguments))
          );
        }
        var n, r, u;
        return (
          (function (e, t) {
            if ('function' != typeof t && null !== t)
              throw new TypeError('Super expression must either be null or a function');
            (e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              t && s(e, t);
          })(t, c),
          (n = t),
          (r = [
            {
              key: 'getDeviceInfo',
              value: function () {
                var e = f.generateUniqueTaskID(),
                  t = new Promise(function (t) {
                    p.listen(e, function (e) {
                      t(e);
                    });
                  });
                return p.emit(e, 'read_device_info', []), t;
              },
            },
            {
              key: 'setDeviceInfo',
              value: function (e, t) {
                var n = f.generateUniqueTaskID(),
                  r = new Promise(function (e, t) {
                    p.listen(n, function (n, r) {
                      n ? t(n) : e(r);
                    });
                  });
                return p.emit(n, 'write_device_info', [e, t]), r;
              },
            },
          ]) && i(n.prototype, r),
          u && i(n, u),
          t
        );
      })();
    e.exports = l;
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function o(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);
      }
    }
    function a(e, t) {
      return !t || ('object' !== r(t) && 'function' != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return e;
          })(e)
        : t;
    }
    function s(e) {
      return (s = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function u(e, t) {
      return (u =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    var c = n(37),
      p = c.System,
      f = c.IPC,
      l = n(54),
      h = (function (e) {
        function t() {
          return (
            (function (e, t) {
              if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
            })(this, t),
            a(this, s(t).apply(this, arguments))
          );
        }
        var n, r, c, h, d;
        return (
          (function (e, t) {
            if ('function' != typeof t && null !== t)
              throw new TypeError('Super expression must either be null or a function');
            (e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              t && u(e, t);
          })(t, p),
          (n = t),
          (r = [
            {
              key: 'discover',
              value:
                ((h = regeneratorRuntime.mark(function e() {
                  var t, n;
                  return regeneratorRuntime.wrap(function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (
                            (t = l.generateUniqueTaskID()),
                            (n = new Promise(function (e, n) {
                              f.listen(t, function (t, r) {
                                t ? n(t) : e(r);
                              });
                            })),
                            f.emit(t, 'discover', []),
                            e.abrupt('return', n)
                          );
                        case 4:
                        case 'end':
                          return e.stop();
                      }
                  }, e);
                })),
                (d = function () {
                  var e = this,
                    t = arguments;
                  return new Promise(function (n, r) {
                    var o = h.apply(e, t);
                    function a(e) {
                      i(o, n, r, a, s, 'next', e);
                    }
                    function s(e) {
                      i(o, n, r, a, s, 'throw', e);
                    }
                    a(void 0);
                  });
                }),
                function () {
                  return d.apply(this, arguments);
                }),
            },
          ]) && o(n.prototype, r),
          c && o(n, c),
          t
        );
      })();
    e.exports = h;
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o = n(8).http();
    e.exports = function (e) {
      o.get(
        ''.concat('/configuration', '/:key'),
        { cors: !0 },
        (function () {
          var t = i(
            regeneratorRuntime.mark(function t(n) {
              var r, i;
              return regeneratorRuntime.wrap(function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (r = n.params.key), (t.next = 3), e.readConfig(r);
                    case 3:
                      if (!(i = t.sent)) {
                        t.next = 6;
                        break;
                      }
                      return t.abrupt('return', JSON.stringify({ value: i }));
                    case 6:
                      return t.abrupt('return', JSON.stringify({ value: void 0 }));
                    case 7:
                    case 'end':
                      return t.stop();
                  }
              }, t);
            }),
          );
          return function (e) {
            return t.apply(this, arguments);
          };
        })(),
      ),
        o.put(
          ''.concat('/configuration', '/:key'),
          { cors: !0 },
          (function () {
            var t = i(
              regeneratorRuntime.mark(function t(n) {
                var r, i, o, a;
                return regeneratorRuntime.wrap(function (t) {
                  for (;;)
                    switch ((t.prev = t.next)) {
                      case 0:
                        return (
                          (r = n.params.key),
                          (i = n.body),
                          (o = i.value),
                          (t.next = 5),
                          e.writeConfig(r, o)
                        );
                      case 5:
                        return (a = t.sent), t.abrupt('return', JSON.stringify(a));
                      case 7:
                      case 'end':
                        return t.stop();
                    }
                }, t);
              }),
            );
            return function (e) {
              return t.apply(this, arguments);
            };
          })(),
        );
    };
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    function o(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);
      }
    }
    var a,
      s = n(8).data(),
      u = n(40),
      c = n(469),
      p = n(197),
      f = n(471),
      l = n(472),
      h = (function () {
        function e() {
          !(function (e, t) {
            if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
          })(this, e),
            (this.doneInitializing = void 0);
        }
        var t, n, r, a, h;
        return (
          (t = e),
          (n = [
            {
              key: 'init',
              value: function () {
                var e = this,
                  t = new Promise(function (t) {
                    u.readConfigData('processLogs').then(function (n) {
                      null === n
                        ? u
                            .createConfigData()
                            .then(function () {
                              (e.rotationUtils = p.init(s)), f(e), t();
                            })
                            .catch(function () {})
                        : ((e.rotationUtils = p.init(s)), f(e), t());
                    });
                  });
                l(this), (this.doneInitializing = t);
              },
            },
            {
              key: 'getLogger',
              value: function (e) {
                return c(e, this.doneInitializing);
              },
            },
            {
              key: 'getStandardLogTable',
              value:
                ((h = i(
                  regeneratorRuntime.mark(function e() {
                    var t;
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (e.next = 2), s.read('monitoring');
                          case 2:
                            return (t = e.sent), e.abrupt('return', t);
                          case 4:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function () {
                  return h.apply(this, arguments);
                }),
            },
            {
              key: 'getProcessLogTables',
              value:
                ((a = i(
                  regeneratorRuntime.mark(function e(t) {
                    var n, r, i, o, a, c, p, f, l;
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (e.next = 2), u.readConfigData('processLogs');
                          case 2:
                            if (
                              ((n = e.sent),
                              (r = n.find(function (e) {
                                return e.id === t;
                              })))
                            ) {
                              e.next = 6;
                              break;
                            }
                            return e.abrupt('return', {});
                          case 6:
                            for (
                              i = r.tables, o = r.currentTableID, a = [], c = o;
                              c > o - i;
                              c -= 1
                            )
                              a.push(c);
                            (p = []), (e.t0 = regeneratorRuntime.keys(a));
                          case 12:
                            if ((e.t1 = e.t0()).done) {
                              e.next = 20;
                              break;
                            }
                            return (
                              (f = e.t1.value),
                              (e.next = 16),
                              s.read(''.concat(f, '_monitoring_').concat(t))
                            );
                          case 16:
                            (l = e.sent), p.push(l), (e.next = 12);
                            break;
                          case 20:
                            return e.abrupt('return', p);
                          case 21:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function (e) {
                  return a.apply(this, arguments);
                }),
            },
            {
              key: 'deleteLoggingTable',
              value: function (e) {
                s.delete(e);
              },
            },
            {
              key: 'clearStandardLogs',
              value: function () {
                this.rotationUtils.clearStandardLogs();
              },
            },
            {
              key: 'clearProcessLogs',
              value: function (e) {
                this.rotationUtils.clearProcessLogs(e);
              },
            },
            {
              key: 'clearProcessTables',
              value: function (e) {
                this.rotationUtils.clearProcessTables(e);
              },
            },
            {
              key: 'decreaseProcessTables',
              value: function (e, t) {
                this.rotationUtils.decreaseProcessTables(e, t);
              },
            },
          ]) && o(t.prototype, n),
          r && o(t, r),
          e
        );
      })();
    e.exports = (a || (a = new h()), a);
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function o(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (r, o) {
          var a = e.apply(t, n);
          function s(e) {
            i(a, r, o, s, u, 'next', e);
          }
          function u(e) {
            i(a, r, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    function a(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);
      }
    }
    var s = n(8).console(),
      u = n(40),
      c = n(196),
      p = c.validLogType,
      f = c.formatTime,
      l = c.getConsoleGuard,
      h = n(470),
      d = (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.initialized = this._init(t)),
            (this.loggingInitializedPromise = n),
            (this.functionsForWriter = []),
            (this.moduleName = t.moduleName);
        }
        var t, n, i, c, d, m, y, v, g, b, w;
        return (
          (t = e),
          (n = [
            {
              key: '_init',
              value:
                ((w = o(
                  regeneratorRuntime.mark(function e(t) {
                    var n, r, i, o, a, c, p;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (
                                (n = t.processID),
                                (r = t.moduleName),
                                (i = t.consoleOnly),
                                (this.moduleName = r),
                                (e.next = 4),
                                u.readConfig('forwardToConsole')
                              );
                            case 4:
                              if (((o = e.sent), !i && !o)) {
                                e.next = 11;
                                break;
                              }
                              return (e.next = 8), l();
                            case 8:
                              (a = e.sent),
                                (c = function (e, t) {
                                  if (a(t)) {
                                    var r = n ? ''.concat(n, ': ') : '',
                                      i = e.moduleName ? ''.concat(e.moduleName, ' ') : '',
                                      o = new Date(),
                                      u = f(o.getHours(), o.getMinutes(), o.getSeconds()),
                                      c = ''
                                        .concat(u, ' [')
                                        .concat(t.toUpperCase(), '] ')
                                        .concat(i)
                                        .concat(r)
                                        .concat(e.msg);
                                    s.log(c);
                                  }
                                }),
                                this.functionsForWriter.push(c);
                            case 11:
                              if (i) {
                                e.next = 16;
                                break;
                              }
                              return (e.next = 14), h(n, this.loggingInitializedPromise);
                            case 14:
                              (p = e.sent), this.functionsForWriter.push(p);
                            case 16:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return w.apply(this, arguments);
                }),
            },
            {
              key: 'trace',
              value:
                ((b = o(
                  regeneratorRuntime.mark(function e(t) {
                    var n;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.initialized;
                            case 2:
                              (n = this.handleLog(t, 'trace')),
                                this.functionsForWriter.forEach(function (e) {
                                  return e(n, 'trace');
                                });
                            case 4:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return b.apply(this, arguments);
                }),
            },
            {
              key: 'debug',
              value:
                ((g = o(
                  regeneratorRuntime.mark(function e(t) {
                    var n;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.initialized;
                            case 2:
                              (n = this.handleLog(t, 'debug')),
                                this.functionsForWriter.forEach(function (e) {
                                  return e(n, 'debug');
                                });
                            case 4:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return g.apply(this, arguments);
                }),
            },
            {
              key: 'info',
              value:
                ((v = o(
                  regeneratorRuntime.mark(function e(t) {
                    var n;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.initialized;
                            case 2:
                              (n = this.handleLog(t, 'info')),
                                this.functionsForWriter.forEach(function (e) {
                                  return e(n, 'info');
                                });
                            case 4:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return v.apply(this, arguments);
                }),
            },
            {
              key: 'warn',
              value:
                ((y = o(
                  regeneratorRuntime.mark(function e(t) {
                    var n;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.initialized;
                            case 2:
                              (n = this.handleLog(t, 'warn')),
                                this.functionsForWriter.forEach(function (e) {
                                  return e(n, 'warn');
                                });
                            case 4:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return y.apply(this, arguments);
                }),
            },
            {
              key: 'error',
              value:
                ((m = o(
                  regeneratorRuntime.mark(function e(t) {
                    var n;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.initialized;
                            case 2:
                              (n = this.handleLog(t, 'error')),
                                this.functionsForWriter.forEach(function (e) {
                                  return e(n, 'error');
                                });
                            case 4:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return m.apply(this, arguments);
                }),
            },
            {
              key: 'fatal',
              value:
                ((d = o(
                  regeneratorRuntime.mark(function e(t) {
                    var n;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.initialized;
                            case 2:
                              (n = this.handleLog(t, 'fatal')),
                                this.functionsForWriter.forEach(function (e) {
                                  return e(n, 'fatal');
                                });
                            case 4:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return d.apply(this, arguments);
                }),
            },
            {
              key: 'log',
              value:
                ((c = o(
                  regeneratorRuntime.mark(function e(t) {
                    var n;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.initialized;
                            case 2:
                              (n = t.level), p(n) && (delete t.level, this[n](t));
                            case 4:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return c.apply(this, arguments);
                }),
            },
            {
              key: 'handleLog',
              value: function (e, t) {
                var n = new Date().getTime();
                if ('object' === r(e))
                  return (
                    (e.time = n),
                    (e.level = t),
                    !e.moduleName && this.moduleName && (e.moduleName = this.moduleName),
                    e
                  );
                var i = { msg: e, level: t, time: n };
                return void 0 !== this.moduleName && (i.moduleName = this.moduleName), i;
              },
            },
          ]) && a(t.prototype, n),
          i && a(t, i),
          e
        );
      })();
    e.exports = function (e, t) {
      return new d(e, t);
    };
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o = n(8).data(),
      a = n(196),
      s = n(197),
      u = n(40),
      c = 0;
    e.exports = (function () {
      var e = i(
        regeneratorRuntime.mark(function e(t, n) {
          var r, p, f, l, h, d, m, y;
          return regeneratorRuntime.wrap(
            function (e) {
              for (;;)
                switch ((e.prev = e.next)) {
                  case 0:
                    if (
                      ((y = function () {
                        return (y = i(
                          regeneratorRuntime.mark(function e(r, i) {
                            var u, c, p;
                            return regeneratorRuntime.wrap(function (e) {
                              for (;;)
                                switch ((e.prev = e.next)) {
                                  case 0:
                                    return (e.next = 2), n;
                                  case 2:
                                    return (u = s.getInstance()), (e.next = 5), a.getWriterGuard();
                                  case 5:
                                    (c = e.sent),
                                      l >= d &&
                                        ((f += 1),
                                        u.addProcessTable(t),
                                        u.incrementCurrentTableID(t),
                                        (l = 0),
                                        u.clearProcessLogs(t)),
                                      c(i) &&
                                        ((p = new Date().getTime()),
                                        o.write(
                                          ''
                                            .concat(f, '_monitoring_')
                                            .concat(t, '/')
                                            .concat(p, '_')
                                            .concat(l),
                                          r,
                                        ),
                                        (l += 1),
                                        u.addProcessLog(t));
                                  case 8:
                                  case 'end':
                                    return e.stop();
                                }
                            }, e);
                          }),
                        )).apply(this, arguments);
                      }),
                      (m = function (e, t) {
                        return y.apply(this, arguments);
                      }),
                      (p = function () {
                        return (p = i(
                          regeneratorRuntime.mark(function e(t, r) {
                            var i, u;
                            return regeneratorRuntime.wrap(function (e) {
                              for (;;)
                                switch ((e.prev = e.next)) {
                                  case 0:
                                    return (e.next = 2), n;
                                  case 2:
                                    return (i = s.getInstance()), (e.next = 5), a.getWriterGuard();
                                  case 5:
                                    (0, e.sent)(r) &&
                                      ((u = new Date().getTime()),
                                      o.write('monitoring/'.concat(u, '_').concat(c), t),
                                      (c += 1),
                                      i.incrementStandardLog());
                                  case 7:
                                  case 'end':
                                    return e.stop();
                                }
                            }, e);
                          }),
                        )).apply(this, arguments);
                      }),
                      (r = function (e, t) {
                        return p.apply(this, arguments);
                      }),
                      (f = 0),
                      (l = 0),
                      !t)
                    ) {
                      e.next = 23;
                      break;
                    }
                    return (e.next = 9), u.readConfigData('processLogs');
                  case 9:
                    (h = e.sent),
                      (e.prev = 10),
                      (f = h.find(function (e) {
                        return e.id === t;
                      }).currentTableID),
                      (l = h.find(function (e) {
                        return e.id === t;
                      }).currentLogs),
                      (e.next = 23);
                    break;
                  case 15:
                    return (e.prev = 15), (e.t0 = e.catch(10)), (f = 0), (l = 0), (e.next = 21), n;
                  case 21:
                    s.getInstance().createProcessDataObject(t);
                  case 23:
                    return (e.next = 25), u.readConfig('maxLogEntries');
                  case 25:
                    if (((d = e.sent), !t)) {
                      e.next = 28;
                      break;
                    }
                    return e.abrupt('return', m);
                  case 28:
                    return e.abrupt('return', r);
                  case 29:
                  case 'end':
                    return e.stop();
                }
            },
            e,
            null,
            [[10, 15]],
          );
        }),
      );
      return function (t, n) {
        return e.apply(this, arguments);
      };
    })();
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o = n(40);
    function a(e) {
      e.deleteLoggingTable('monitoring'), e.clearStandardLogs();
    }
    function s(e, t, n) {
      return u.apply(this, arguments);
    }
    function u() {
      return (u = i(
        regeneratorRuntime.mark(function e(t, n, r) {
          var i, o, a, s, u, c;
          return regeneratorRuntime.wrap(function (e) {
            for (;;)
              switch ((e.prev = e.next)) {
                case 0:
                  for (
                    i = n.id,
                      o = n.currentTableID,
                      a = n.tables,
                      s = Math.max(o + 1 - a, 0),
                      u = o - r,
                      c = s;
                    c !== u + 1;
                    c += 1
                  )
                    t.deleteLoggingTable(''.concat(c, '_monitoring_').concat(i));
                  t.decreaseProcessTables(i, u - s + 1);
                case 7:
                case 'end':
                  return e.stop();
              }
          }, e);
        }),
      )).apply(this, arguments);
    }
    function c(e) {
      return p.apply(this, arguments);
    }
    function p() {
      return (p = i(
        regeneratorRuntime.mark(function e(t) {
          var n, r, i, u;
          return regeneratorRuntime.wrap(function (e) {
            for (;;)
              switch ((e.prev = e.next)) {
                case 0:
                  return (e.next = 2), o.readConfig('maxStandardLogEntries');
                case 2:
                  return (n = e.sent), (e.next = 5), o.readConfig('maxProcessLogTables');
                case 5:
                  return (r = e.sent), (e.next = 8), o.readConfigData('standardLogs');
                case 8:
                  return (i = e.sent), (e.next = 11), o.readConfigData('processLogs');
                case 11:
                  (u = e.sent),
                    i > n && a(t),
                    u.forEach(function (e) {
                      e.tables > r && s(t, e, r);
                    });
                case 14:
                case 'end':
                  return e.stop();
              }
          }, e);
        }),
      )).apply(this, arguments);
    }
    function f() {
      return (f = i(
        regeneratorRuntime.mark(function e(t) {
          var n;
          return regeneratorRuntime.wrap(function (e) {
            for (;;)
              switch ((e.prev = e.next)) {
                case 0:
                  return (e.next = 2), o.readConfig('rotationInterval');
                case 2:
                  (n = e.sent), setInterval(c, 1e3 * n, t);
                case 5:
                case 'end':
                  return e.stop();
              }
          }, e);
        }),
      )).apply(this, arguments);
    }
    e.exports = function (e) {
      return f.apply(this, arguments);
    };
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function o(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (r, o) {
          var a = e.apply(t, n);
          function s(e) {
            i(a, r, o, s, u, 'next', e);
          }
          function u(e) {
            i(a, r, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var a = n(8).http(),
      s = n(40);
    e.exports = function (e) {
      a.get(
        ''.concat('/logging'),
        { cors: !0 },
        o(
          regeneratorRuntime.mark(function t() {
            var n;
            return regeneratorRuntime.wrap(function (t) {
              for (;;)
                switch ((t.prev = t.next)) {
                  case 0:
                    return (t.next = 2), e.getStandardLogTable();
                  case 2:
                    return (
                      (n = (n = t.sent) || 'Nothing has been logged yet'),
                      t.abrupt('return', 'object' === r(n) ? JSON.stringify(n) : n)
                    );
                  case 5:
                  case 'end':
                    return t.stop();
                }
            }, t);
          }),
        ),
      ),
        a.get(
          ''.concat('/logging', '/process/:id'),
          { cors: !0 },
          (function () {
            var t = o(
              regeneratorRuntime.mark(function t(n) {
                var i, o;
                return regeneratorRuntime.wrap(function (t) {
                  for (;;)
                    switch ((t.prev = t.next)) {
                      case 0:
                        return (i = n.params.id), (t.next = 3), e.getProcessLogTables(i);
                      case 3:
                        return (
                          (o = (o = t.sent) || 'No logs for the processID exist'),
                          t.abrupt('return', 'object' === r(o) ? JSON.stringify(o) : o)
                        );
                      case 6:
                      case 'end':
                        return t.stop();
                    }
                }, t);
              }),
            );
            return function (e) {
              return t.apply(this, arguments);
            };
          })(),
        ),
        a.get(
          ''.concat('/logging', '/process'),
          { cors: !0 },
          o(
            regeneratorRuntime.mark(function t() {
              var n, r, i, a;
              return regeneratorRuntime.wrap(function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (t.next = 2), s.readConfigData('processLogs');
                    case 2:
                      return (
                        (n = t.sent),
                        (r = n.map(function (e) {
                          return e.id;
                        })),
                        (i = r.reduce(
                          (function () {
                            var t = o(
                              regeneratorRuntime.mark(function t(n, r) {
                                var i, o;
                                return regeneratorRuntime.wrap(function (t) {
                                  for (;;)
                                    switch ((t.prev = t.next)) {
                                      case 0:
                                        return (t.next = 2), n;
                                      case 2:
                                        return (i = t.sent), (t.next = 5), e.getProcessLogTables(r);
                                      case 5:
                                        return (o = t.sent), (i[r] = o), t.abrupt('return', i);
                                      case 8:
                                      case 'end':
                                        return t.stop();
                                    }
                                }, t);
                              }),
                            );
                            return function (e, n) {
                              return t.apply(this, arguments);
                            };
                          })(),
                          {},
                        )),
                        (t.next = 7),
                        i
                      );
                    case 7:
                      return (a = t.sent), t.abrupt('return', JSON.stringify(a));
                    case 9:
                    case 'end':
                      return t.stop();
                  }
              }, t);
            }),
          ),
        );
    };
  },
  function (e, t, n) {
    function r(e) {
      return (
        (function (e) {
          if (Array.isArray(e)) {
            for (var t = 0, n = new Array(e.length); t < e.length; t++) n[t] = e[t];
            return n;
          }
        })(e) ||
        (function (e) {
          if (
            Symbol.iterator in Object(e) ||
            '[object Arguments]' === Object.prototype.toString.call(e)
          )
            return Array.from(e);
        })(e) ||
        (function () {
          throw new TypeError('Invalid attempt to spread non-iterable instance');
        })()
      );
    }
    function i(e, t) {
      return (
        (function (e) {
          if (Array.isArray(e)) return e;
        })(e) ||
        (function (e, t) {
          var n = [],
            r = !0,
            i = !1,
            o = void 0;
          try {
            for (
              var a, s = e[Symbol.iterator]();
              !(r = (a = s.next()).done) && (n.push(a.value), !t || n.length !== t);
              r = !0
            );
          } catch (e) {
            (i = !0), (o = e);
          } finally {
            try {
              r || null == s.return || s.return();
            } finally {
              if (i) throw o;
            }
          }
          return n;
        })(e, t) ||
        (function () {
          throw new TypeError('Invalid attempt to destructure non-iterable instance');
        })()
      );
    }
    function o(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function a(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (r, i) {
          var a = e.apply(t, n);
          function s(e) {
            o(a, r, i, s, u, 'next', e);
          }
          function u(e) {
            o(a, r, i, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    function s(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);
      }
    }
    var u,
      c = n(8).device(),
      p = n(40),
      f = n(474),
      l = (function () {
        function e() {
          !(function (e, t) {
            if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
          })(this, e),
            (this.RAMloads = []),
            (this.CPUloads = []),
            (this.done = void 0);
        }
        var t, n, o, u, l, h, d, m, y;
        return (
          (t = e),
          (n = [
            {
              key: 'init',
              value:
                ((y = a(
                  regeneratorRuntime.mark(function e() {
                    var t,
                      n = this;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              (t = new Promise(
                                (function () {
                                  var e = a(
                                    regeneratorRuntime.mark(function e(t) {
                                      var r, o, a;
                                      return regeneratorRuntime.wrap(function (e) {
                                        for (;;)
                                          switch ((e.prev = e.next)) {
                                            case 0:
                                              return (e.next = 2), p.readConfig('loadInterval');
                                            case 2:
                                              return (
                                                (r = e.sent),
                                                (n.loadInterval = r <= 60 && r >= 0 ? r : 10),
                                                (n.maxLoadsSize = 864e3 / n.loadInterval),
                                                (e.next = 7),
                                                n.getMachineInformation(['totalmemMB'])
                                              );
                                            case 7:
                                              (o = e.sent),
                                                (a = i(o, 1)),
                                                (n.totalMemMB = a[0]),
                                                setInterval(
                                                  n._getRecord.bind(n),
                                                  1e3 * n.loadInterval,
                                                ),
                                                t();
                                            case 12:
                                            case 'end':
                                              return e.stop();
                                          }
                                      }, e);
                                    }),
                                  );
                                  return function (t) {
                                    return e.apply(this, arguments);
                                  };
                                })(),
                              )),
                                f(this),
                                (this.done = t);
                            case 3:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function () {
                  return y.apply(this, arguments);
                }),
            },
            {
              key: 'getMachineInformation',
              value:
                ((m = a(
                  regeneratorRuntime.mark(function e(t) {
                    var n, r;
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (e.next = 2), c.getDeviceInfo();
                          case 2:
                            return (
                              (n = e.sent),
                              (r = t.map(function (e) {
                                return n[e];
                              })),
                              e.abrupt('return', r)
                            );
                          case 5:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function (e) {
                  return m.apply(this, arguments);
                }),
            },
            {
              key: 'setMachineInformation',
              value:
                ((d = a(
                  regeneratorRuntime.mark(function e(t, n) {
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return e.abrupt(
                              'return',
                              c.setDeviceInfo(t, n).catch(function () {}),
                            );
                          case 1:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function (e, t) {
                  return d.apply(this, arguments);
                }),
            },
            {
              key: '_getAverageLoad',
              value:
                ((h = a(
                  regeneratorRuntime.mark(function e(t) {
                    var n, i, o, a, s, u, c, p, f, l, h, d;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.done;
                            case 2:
                              for (
                                n = r(this.RAMloads).map(function (e) {
                                  return parseFloat(e);
                                }),
                                  i = r(this.CPUloads),
                                  o =
                                    n.length >= t / this.loadInterval
                                      ? n.length - t / this.loadInterval
                                      : 0,
                                  a =
                                    i.length >= t / this.loadInterval
                                      ? i.length - t / this.loadInterval
                                      : 0,
                                  s = 0,
                                  u = 0,
                                  c = n.length - 1;
                                c >= o;
                                c -= 1
                              )
                                (s += n[c] / this.totalMemMB), (u += 1);
                              for (
                                p = 0,
                                  p = 0 !== s ? (1 - s / u).toFixed(4) : 0,
                                  f = 0,
                                  l = 0,
                                  h = i.length - 1;
                                h >= a;
                                h -= 1
                              )
                                (f += i[h]), (l += 1);
                              return (
                                (d = 0),
                                (d = 0 !== f ? (1 - f / l).toFixed(4) : 0),
                                e.abrupt('return', { RAM: p, CPU: d })
                              );
                            case 17:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function (e) {
                  return h.apply(this, arguments);
                }),
            },
            {
              key: 'getAverageLoadMinute',
              value: function () {
                return this._getAverageLoad(60);
              },
            },
            {
              key: 'getAverageLoadTenMinutes',
              value: function () {
                return this._getAverageLoad(600);
              },
            },
            {
              key: 'getAverageLoadHalfHour',
              value: function () {
                return this._getAverageLoad(1800);
              },
            },
            {
              key: 'getAverageLoadHour',
              value: function () {
                return this._getAverageLoad(3600);
              },
            },
            {
              key: 'getAverageLoadHalfDay',
              value: function () {
                return this._getAverageLoad(432e3);
              },
            },
            {
              key: 'getAverageLoadDay',
              value: function () {
                return this._getAverageLoad(864e3);
              },
            },
            {
              key: '_getRecord',
              value:
                ((l = a(
                  regeneratorRuntime.mark(function e() {
                    var t, n, r;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.getMachineInformation(['freememMB']);
                            case 2:
                              return (t = e.sent), (e.next = 5), this.done;
                            case 5:
                              (n = i(t, 1)),
                                (r = n[0]),
                                this.RAMloads.length >= this.maxLoadsSize && this.RAMloads.shift(),
                                this.RAMloads.push(r),
                                this.getCPULoadRecord();
                            case 9:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function () {
                  return l.apply(this, arguments);
                }),
            },
            {
              key: 'getCPULoadRecord',
              value:
                ((u = a(
                  regeneratorRuntime.mark(function e() {
                    var t, n, r, o, a;
                    return regeneratorRuntime.wrap(
                      function (e) {
                        for (;;)
                          switch ((e.prev = e.next)) {
                            case 0:
                              return (e.next = 2), this.getMachineInformation(['cpus']);
                            case 2:
                              return (
                                (t = e.sent),
                                (n = i(t, 1)),
                                (r = n[0]),
                                (o = r.reduce(
                                  function (e, t) {
                                    return (
                                      Object.keys(t.times).forEach(function (n) {
                                        e[0] += t.times[n];
                                      }),
                                      (e[1] += t.times.idle),
                                      e
                                    );
                                  },
                                  [0, 0],
                                )),
                                (a = o[1] / o[0]),
                                this.CPUloads.length >= this.maxLoadsSize && this.CPUloads.shift(),
                                this.CPUloads.push(a),
                                e.abrupt('return', a)
                              );
                            case 9:
                            case 'end':
                              return e.stop();
                          }
                      },
                      e,
                      this,
                    );
                  }),
                )),
                function () {
                  return u.apply(this, arguments);
                }),
            },
          ]) && s(t.prototype, n),
          o && s(t, o),
          e
        );
      })();
    e.exports = (u || (u = new l()), u);
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o = n(8).http(),
      a = '/device';
    e.exports = function (e) {
      o.get(
        ''.concat(a, '/:properties'),
        { cors: !0 },
        (function () {
          var t = i(
            regeneratorRuntime.mark(function t(n) {
              var r, i;
              return regeneratorRuntime.wrap(function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (
                        (r = n.params.properties.split(',')),
                        (t.next = 3),
                        e.getMachineInformation(r)
                      );
                    case 3:
                      return (i = t.sent), t.abrupt('return', JSON.stringify(i));
                    case 5:
                    case 'end':
                      return t.stop();
                  }
              }, t);
            }),
          );
          return function (e) {
            return t.apply(this, arguments);
          };
        })(),
      ),
        o.get(
          ''.concat(a, '/load/minute'),
          { cors: !0 },
          i(
            regeneratorRuntime.mark(function t() {
              var n;
              return regeneratorRuntime.wrap(function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (t.next = 2), e.getAverageLoadMinute();
                    case 2:
                      return (n = t.sent), t.abrupt('return', JSON.stringify(n));
                    case 4:
                    case 'end':
                      return t.stop();
                  }
              }, t);
            }),
          ),
        ),
        o.get(
          ''.concat(a, '/load/tenMinutes'),
          { cors: !0 },
          i(
            regeneratorRuntime.mark(function t() {
              var n;
              return regeneratorRuntime.wrap(function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (t.next = 2), e.getAverageLoadTenMinutes();
                    case 2:
                      return (n = t.sent), t.abrupt('return', JSON.stringify(n));
                    case 4:
                    case 'end':
                      return t.stop();
                  }
              }, t);
            }),
          ),
        ),
        o.get(
          ''.concat(a, '/load/halfHour'),
          { cors: !0 },
          i(
            regeneratorRuntime.mark(function t() {
              var n;
              return regeneratorRuntime.wrap(function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (t.next = 2), e.getAverageLoadHalfHour();
                    case 2:
                      return (n = t.sent), t.abrupt('return', JSON.stringify(n));
                    case 4:
                    case 'end':
                      return t.stop();
                  }
              }, t);
            }),
          ),
        ),
        o.get(
          ''.concat(a, '/load/hour'),
          { cors: !0 },
          i(
            regeneratorRuntime.mark(function t() {
              var n;
              return regeneratorRuntime.wrap(function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (t.next = 2), e.getAverageLoadHour();
                    case 2:
                      return (n = t.sent), t.abrupt('return', JSON.stringify(n));
                    case 4:
                    case 'end':
                      return t.stop();
                  }
              }, t);
            }),
          ),
        ),
        o.get(
          ''.concat(a, '/load/halfDay'),
          { cors: !0 },
          i(
            regeneratorRuntime.mark(function t() {
              var n;
              return regeneratorRuntime.wrap(function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (t.next = 2), e.getAverageLoadHalfDay();
                    case 2:
                      return (n = t.sent), t.abrupt('return', JSON.stringify(n));
                    case 4:
                    case 'end':
                      return t.stop();
                  }
              }, t);
            }),
          ),
        ),
        o.get(
          ''.concat(a, '/load/day'),
          { cors: !0 },
          i(
            regeneratorRuntime.mark(function t() {
              var n;
              return regeneratorRuntime.wrap(function (t) {
                for (;;)
                  switch ((t.prev = t.next)) {
                    case 0:
                      return (t.next = 2), e.getAverageLoadDay();
                    case 2:
                      return (n = t.sent), t.abrupt('return', JSON.stringify(n));
                    case 4:
                    case 'end':
                      return t.stop();
                  }
              }, t);
            }),
          ),
        ),
        o.put(
          ''.concat(a, '/:key'),
          { cors: !0 },
          (function () {
            var t = i(
              regeneratorRuntime.mark(function t(n) {
                var r, i, o, a;
                return regeneratorRuntime.wrap(function (t) {
                  for (;;)
                    switch ((t.prev = t.next)) {
                      case 0:
                        return (
                          (r = n.params.key),
                          (i = n.body),
                          (o = i.value),
                          (t.next = 5),
                          e.setMachineInformation(r, o)
                        );
                      case 5:
                        return (t.next = 7), e.getMachineInformation([r]);
                      case 7:
                        if (!(a = t.sent)) {
                          t.next = 10;
                          break;
                        }
                        return t.abrupt('return', JSON.stringify(a));
                      case 10:
                        return t.abrupt(
                          'return',
                          'Key not present in machine.json. Cannot be changed!',
                        );
                      case 11:
                      case 'end':
                        return t.stop();
                    }
                }, t);
              }),
            );
            return function (e) {
              return t.apply(this, arguments);
            };
          })(),
        );
    };
  },
  function (e, t, n) {
    var r = n(476),
      i = n(477),
      o = n(478),
      a = n(479);
    e.exports = function (e) {
      r(''.concat('/distribution', '/process'), e),
        i(''.concat('/distribution', '/process')),
        o(''.concat('/distribution', '/process')),
        a(''.concat('/distribution', '/status'));
    };
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o = n(8).http(),
      a = n(101);
    n(139);
    e.exports = function (e, t) {
      o.put(
        ''.concat(e, '/:id'),
        { cors: !0 },
        (function () {
          var e = i(
            regeneratorRuntime.mark(function e(t) {
              var n, r, i;
              return regeneratorRuntime.wrap(function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return (
                        (n = t.params.id),
                        (r = t.body),
                        (i = r.bpmn),
                        (e.next = 5),
                        a.saveProcessDefinition(n, i)
                      );
                    case 5:
                      return e.abrupt('return', JSON.stringify(i));
                    case 6:
                    case 'end':
                      return e.stop();
                  }
              }, e);
            }),
          );
          return function (t) {
            return e.apply(this, arguments);
          };
        })(),
      ),
        o.post(
          ''.concat(e, '/:id/instance'),
          { cors: !0 },
          (function () {
            var e = i(
              regeneratorRuntime.mark(function e(n) {
                var r, i, o, a;
                return regeneratorRuntime.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (
                          (r = n.params.id),
                          (i = n.body),
                          (o = i.variables),
                          (a = i.activityID),
                          e.abrupt('return', t.createInstance(r, o, a))
                        );
                      case 3:
                      case 'end':
                        return e.stop();
                    }
                }, e);
              }),
            );
            return function (t) {
              return e.apply(this, arguments);
            };
          })(),
        ),
        o.get(
          ''.concat(e, '/'),
          { cors: !0 },
          i(
            regeneratorRuntime.mark(function e() {
              var t;
              return regeneratorRuntime.wrap(function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return (e.next = 2), a.getAllProcesses();
                    case 2:
                      return (t = e.sent), e.abrupt('return', JSON.stringify(t));
                    case 4:
                    case 'end':
                      return e.stop();
                  }
              }, e);
            }),
          ),
        ),
        o.get(
          ''.concat(e, '/:id'),
          { cors: !0 },
          (function () {
            var e = i(
              regeneratorRuntime.mark(function e(t) {
                var n, r;
                return regeneratorRuntime.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (n = t.params.id), (e.next = 3), a.getProcess(n);
                      case 3:
                        return (r = e.sent), e.abrupt('return', JSON.stringify({ bpmn: r }));
                      case 5:
                      case 'end':
                        return e.stop();
                    }
                }, e);
              }),
            );
            return function (t) {
              return e.apply(this, arguments);
            };
          })(),
        ),
        o.delete(
          ''.concat(e, '/:id'),
          { cors: !0 },
          (function () {
            var e = i(
              regeneratorRuntime.mark(function e(t) {
                var n;
                return regeneratorRuntime.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (n = t.params.id), (e.next = 3), a.deleteProcess(n);
                      case 3:
                        return e.abrupt('return', JSON.stringify({}));
                      case 4:
                      case 'end':
                        return e.stop();
                    }
                }, e);
              }),
            );
            return function (t) {
              return e.apply(this, arguments);
            };
          })(),
        );
    };
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o = n(8).http(),
      a = n(101),
      s = n(139);
    e.exports = function (e) {
      o.put(
        ''.concat(e, '/:processId/html/:id'),
        { cors: !0 },
        (function () {
          var e = i(
            regeneratorRuntime.mark(function e(t) {
              var n, r, i, o;
              return regeneratorRuntime.wrap(function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return (
                        (n = t.params.processId),
                        (r = t.params.id),
                        (i = t.body),
                        (o = i.html),
                        (e.next = 6),
                        a.saveHTMLString(n, r, o)
                      );
                    case 6:
                      return e.abrupt('return', '');
                    case 7:
                    case 'end':
                      return e.stop();
                  }
              }, e);
            }),
          );
          return function (t) {
            return e.apply(this, arguments);
          };
        })(),
      ),
        o.get(
          ''.concat(e, '/:processId/html/:id'),
          { cors: !0 },
          (function () {
            var e = i(
              regeneratorRuntime.mark(function e(t) {
                var n, r, i;
                return regeneratorRuntime.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (
                          (n = t.params.processId), (r = t.params.id), (e.next = 4), a.getHTML(n, r)
                        );
                      case 4:
                        if ((i = e.sent)) {
                          e.next = 7;
                          break;
                        }
                        throw new s(404, 'HTML with given ID does not exist!');
                      case 7:
                        return e.abrupt('return', JSON.stringify({ html: i }));
                      case 8:
                      case 'end':
                        return e.stop();
                    }
                }, e);
              }),
            );
            return function (t) {
              return e.apply(this, arguments);
            };
          })(),
        ),
        o.get(
          ''.concat(e, '/:processId/html'),
          { cors: !0 },
          (function () {
            var e = i(
              regeneratorRuntime.mark(function e(t) {
                var n, r;
                return regeneratorRuntime.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (n = t.params.processId), (e.next = 3), a.getAllHTML(n);
                      case 3:
                        return (r = e.sent), e.abrupt('return', JSON.stringify(r));
                      case 5:
                      case 'end':
                        return e.stop();
                    }
                }, e);
              }),
            );
            return function (t) {
              return e.apply(this, arguments);
            };
          })(),
        );
    };
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o = n(8).http(),
      a = n(101),
      s = n(139);
    e.exports = function (e) {
      o.put(
        ''.concat(e, '/:id/nextDevice'),
        { cors: !0 },
        (function () {
          var e = i(
            regeneratorRuntime.mark(function e(t) {
              var n, r;
              return regeneratorRuntime.wrap(function (e) {
                for (;;)
                  switch ((e.prev = e.next)) {
                    case 0:
                      return (
                        (n = t.params.id),
                        (r = t.body),
                        (e.next = 4),
                        a.saveNextDeviceString(n, JSON.stringify(r))
                      );
                    case 4:
                      return e.abrupt('return', JSON.stringify(r));
                    case 5:
                    case 'end':
                      return e.stop();
                  }
              }, e);
            }),
          );
          return function (t) {
            return e.apply(this, arguments);
          };
        })(),
      ),
        o.get(
          ''.concat(e, '/:id/nextDevice'),
          { cors: !0 },
          (function () {
            var e = i(
              regeneratorRuntime.mark(function e(t) {
                var n, r;
                return regeneratorRuntime.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (n = t.params.id), (e.next = 3), a.getNextDeviceForProcessWithId(n);
                      case 3:
                        if ((r = e.sent)) {
                          e.next = 6;
                          break;
                        }
                        throw new s(404, 'nextDevice.json does not exist!');
                      case 6:
                        return e.abrupt('return', r);
                      case 7:
                      case 'end':
                        return e.stop();
                    }
                }, e);
              }),
            );
            return function (t) {
              return e.apply(this, arguments);
            };
          })(),
        );
    };
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    var o = n(8).http();
    e.exports = function (e) {
      o.get(
        ''.concat(e, '/'),
        { cors: !0 },
        i(
          regeneratorRuntime.mark(function e() {
            return regeneratorRuntime.wrap(function (e) {
              for (;;)
                switch ((e.prev = e.next)) {
                  case 0:
                    return e.abrupt('return', JSON.stringify(!0));
                  case 1:
                  case 'end':
                    return e.stop();
                }
            }, e);
          }),
        ),
      );
    };
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function o(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (r, o) {
          var a = e.apply(t, n);
          function s(e) {
            i(a, r, o, s, u, 'next', e);
          }
          function u(e) {
            i(a, r, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    function a(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);
      }
    }
    function s(e, t) {
      return !t || ('object' !== r(t) && 'function' != typeof t)
        ? (function (e) {
            if (void 0 === e)
              throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return e;
          })(e)
        : t;
    }
    function u(e) {
      return (u = Object.setPrototypeOf
        ? Object.getPrototypeOf
        : function (e) {
            return e.__proto__ || Object.getPrototypeOf(e);
          })(e);
    }
    function c(e, t) {
      return (c =
        Object.setPrototypeOf ||
        function (e, t) {
          return (e.__proto__ = t), e;
        })(e, t);
    }
    var p,
      f = n(100),
      l = n(481),
      h = n(482),
      d = h.ui,
      m = h.DisplayItem,
      y = (function (e) {
        function t() {
          var e;
          return (
            (function (e, t) {
              if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
            })(this, t),
            ((e = s(this, u(t).call(this, 'User Tasks', 'tasklist'))).content =
              '<!doctype html><html><head><style>body,html{margin:0;padding:0;font-family:sans-serif;font-size:16px;color:#464646;height:100%}#wrapper{width:auto;display:flex;flex-direction:row;height:100%}.infoBox{text-align:center;margin:40px 10px 10px;font-size:1.1em;color:#a5a5a5;letter-spacing:.03em}#tasks{box-shadow:0 0 6px -3px #9a9a9a;z-index:1;flex-shrink:0}#tasks .task{background-color:#fff;margin:10px;box-shadow:0 0 5px -3px #6d6d6d;border-radius:12px;color:#868686;position:relative}#tasks .taskInfo{height:90px;display:flex;flex-direction:row;flex-shrink:0;justify-content:flex-end;cursor:pointer;position:relative;border-radius:inherit}#tasks .taskInfo>div{margin:0 20px}#tasks .taskInfo:hover{background-color:#f9f9f9}#tasks .taskInfo .title{font-size:1.3em;letter-spacing:.03em;color:#464646;flex-grow:1;min-width:100px}#tasks .taskInfo .title,#tasks .taskInfo .user{display:flex;flex-direction:column;justify-content:center}#tasks .taskInfo .user{text-align:center;height:100%}#tasks .taskInfo .user svg{height:1.7em}#tasks .taskInfo .user .name{margin-top:5px;font-size:.7em}#tasks .taskInfo .time{display:flex;flex-direction:column;justify-content:center;font-size:.85em;letter-spacing:.03em}#tasks .taskInfo .time svg{height:1em;vertical-align:top}#tasks .taskInfo .time>div{margin-top:5px}#tasks .taskInfo .time>div:first-child{margin-top:0}#tasks .taskInfo .id{position:absolute;bottom:1px;font-size:.5em;color:#c3c3c3;display:none;margin:0;width:100%;text-align:center}#tasks .taskInfo:hover .id{display:block}#tasks .task .close{display:none}#tasks .task.form .taskInfo{background-color:#0094a0;color:#fff}#tasks .task.form .taskInfo .title{color:#fff}#formView{flex-grow:1;background-color:#fff;font-size:0}#formView .form{width:100%;height:100%;border:none;flex-grow:1}@media (max-width:1024px){body,html{font-size:14px}#tasks{font-size:.85em}#tasks .task{border-radius:9px}#tasks .taskInfo{height:80px}#tasks .taskInfo>div{margin:0 10px}}@media (max-width:768px){body,html{font-size:10px}#tasks .task{margin:5px;border-radius:7px}#tasks .taskInfo{height:45px}#tasks .taskInfo>div{margin:0 5px}}@media (max-width:425px){body,html{height:auto;font-size:16px}#wrapper{width:auto;flex-direction:column;height:100vh}#tasks{box-shadow:none;z-index:auto;width:100%}#tasks .task{margin:7px}#tasks .task.hidden{display:none}#tasks .task .taskInfo{height:80px}#tasks .taskInfo>div{margin:0 15px}#tasks .task.form{display:flex;flex-direction:column;margin-top:50px;margin-bottom:0}#tasks .task .form{width:100%;height:100%;border:none;flex-grow:1}#tasks .task.form .taskInfo{border-bottom:1px solid #efefef;border-bottom-left-radius:0;border-bottom-right-radius:0}#tasks .taskInfo:hover{background-color:inherit}#tasks .task.form .close{display:block;position:absolute;top:-40px;right:0;font-size:24.48px;color:#fff;background-color:#7d7d7d;height:30px;width:30px;text-align:center;border-radius:100%;line-height:28px;font-weight:100}#tasks .task.form .close:hover{background-color:#464646;cursor:pointer}#formView{margin:0 7px 7px;box-shadow:0 0 5px -3px #6d6d6d;border-radius:0 0 7px 7px}#formView:empty{display:none}}@media (max-width:375px){body,html{font-size:13px}#tasks .task .taskInfo{height:70px}#tasks .taskInfo>div{margin:0 10px}}@media (max-width:320px){body,html{font-size:12px}#tasks .task .taskInfo{height:65px}#tasks .taskInfo>div{margin:0 8px}}</style></head><body style="background: #fafafa;"><div id="wrapper"><div id="tasks"><div class="infoBox">There are currently no tasks in your queue.</div></div><div id="formView"></div></div><script>!function(e){var t={};function s(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,s),a.l=!0,a.exports}s.m=e,s.c=t,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)s.d(n,a,function(t){return e[t]}.bind(null,a));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=0)}([function(e,t,s){"use strict";s.r(t);s(1);function n(e){const t=document.querySelector("#tasks .task.form");t&&a(t);let s=e.target;for(;!s.classList.contains("task");)s=s.parentElement;const o=s.dataset.processid,c=s.dataset.id;s.removeEventListener("click",n),document.querySelectorAll("#tasks .task").forEach(e=>{e.classList.add("hidden")}),window.PROCEED_DATA.get("/tasklist/api/userTask",{processID:o,userTaskID:c}).then(e=>{s.classList.add("form");const t=document.createElement("iframe");t.className="form",document.querySelector("#formView").append(t),t.contentWindow.document.open(),t.contentWindow.document.write(e),t.contentWindow.document.close(),t.contentWindow.onsubmit=(e=>(function(e,t,s){s.preventDefault();const n=document.querySelector(`#tasks .task[data-processid="${e}"][data-id="${t}"]`),o={},c=new FormData(s.target).entries();let i=c.next();for(;!i.done;)[,o[i.value[0]]]=i.value,i=c.next();window.PROCEED_DATA.post("/tasklist/api/userTask",o,{processID:e,userTaskID:t}).then(()=>{a(n),r()})})(o,c,e))})}function a(e){e.classList.remove("form"),document.querySelector("iframe.form").remove(),document.querySelectorAll(".task.hidden").forEach(e=>e.classList.remove("hidden")),e.addEventListener("click",n)}function r(){window.PROCEED_DATA.get("/tasklist/api/").then(e=>{!function(e){const t=document.querySelector("#tasks"),s=Array.from(t.querySelectorAll(".task")).map(e=>({id:e.dataset.id,processID:e.dataset.processid})),r=e.filter(e=>s.every(t=>t.id!==e.id||t.processID!==e.processID)),o=s.filter(t=>e.every(e=>e.id!==t.id||e.processID!==t.processID));r.length+s.length-o.length!=0?(0===s.length&&null!==t.firstElementChild&&t.removeChild(t.firstElementChild),o.forEach(e=>t.querySelector(`.task[data-processid="${e.processID}"][data-id="${e.id}"]`).remove()),r.forEach(e=>{const t=`\\n<div class="taskInfo">\\n  <div class="title">${e.name||e.id}</div>\\n  <div class="appointees"><div class="user"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"></path></svg><div class="name">Max Mustermann</div></div></div>\\n  <div class="time">\\n    <div class="added"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="history" class="svg-inline--fa fa-history fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"></path></svg> 3h ago</div>\\n    <div class="due"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="stopwatch" class="svg-inline--fa fa-stopwatch fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M432 304c0 114.9-93.1 208-208 208S16 418.9 16 304c0-104 76.3-190.2 176-205.5V64h-28c-6.6 0-12-5.4-12-12V12c0-6.6 5.4-12 12-12h120c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-28v34.5c37.5 5.8 71.7 21.6 99.7 44.6l27.5-27.5c4.7-4.7 12.3-4.7 17 0l28.3 28.3c4.7 4.7 4.7 12.3 0 17l-29.4 29.4-.6.6C419.7 223.3 432 262.2 432 304zm-176 36V188.5c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12V340c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"></path></svg> 30min left</div>\\n  </div>\\n  <div class="id">\\n    <span class="process">Process: ${e.processID}</span>\\n    <span class="process">Task: ${e.id}</span>\\n  </div>\\n</div>\\n<div class="close">&#x00D7;</close>`,s=document.createElement("div");s.className="task",s.dataset.id=e.id,s.dataset.processid=e.processID,s.innerHTML=t,document.querySelector("#tasks").appendChild(s),s.addEventListener("click",n),s.querySelector(".close").addEventListener("click",e=>{let t=e.target;for(;!t.classList.contains("task");)t=t.parentElement;e.stopPropagation(),a(t)})})):0===r.length&&0===o.length||(t.innerHTML=\'\\n      <div class="infoBox">There are currently no tasks in your queue.</div>\\n      \')}(e)})}window.addEventListener("DOMContentLoaded",()=>{window.setInterval(r,1e3),r()})},function(e,t,s){}]);</script></body></html>'),
            (e.badge = 'New'),
            e
          );
        }
        var n, r, i, h, d, y;
        return (
          (function (e, t) {
            if ('function' != typeof t && null !== t)
              throw new TypeError('Super expression must either be null or a function');
            (e.prototype = Object.create(t && t.prototype, {
              constructor: { value: e, writable: !0, configurable: !0 },
            })),
              t && c(e, t);
          })(t, m),
          (n = t),
          (r = [
            {
              key: 'getEndpoints',
              value: function () {
                return {
                  '/api/': this.getAPI.bind(this),
                  '/api/userTask': {
                    get: this.getUserTask.bind(this),
                    post: this.postUserTask.bind(this),
                  },
                };
              },
            },
            {
              key: 'getAPI',
              value:
                ((y = o(
                  regeneratorRuntime.mark(function e() {
                    var t, n;
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (t = p.getPendingActivities().filter(function (e) {
                                return 'bpmn:UserTask' === e.type;
                              })),
                              (n = t.map(function (e) {
                                return { id: e.id, processID: e.parentContext.id, name: e.name };
                              })),
                              e.abrupt('return', n)
                            );
                          case 3:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function () {
                  return y.apply(this, arguments);
                }),
            },
            {
              key: 'getUserTask',
              value:
                ((d = o(
                  regeneratorRuntime.mark(function e(t) {
                    var n, r, i, o, a;
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            if ((n = p.getEngineWithID(t.processID))) {
                              e.next = 3;
                              break;
                            }
                            throw new Error('No process running with id '.concat(t.processID));
                          case 3:
                            if (
                              (r = n.getDefinitions().find(function (e) {
                                return e.getPendingActivities().children.some(function (e) {
                                  return e.id === t.userTaskID;
                                });
                              }))
                            ) {
                              e.next = 6;
                              break;
                            }
                            throw new Error('No pending user task with id '.concat(t.userTaskID));
                          case 6:
                            return (
                              (i = r.mainProcess.context.variables),
                              (e.next = 9),
                              f.db.getHTML(t.processID, t.userTaskID)
                            );
                          case 9:
                            return (o = e.sent), (a = l.render(o, i)), e.abrupt('return', a);
                          case 12:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function (e) {
                  return d.apply(this, arguments);
                }),
            },
            {
              key: 'postUserTask',
              value:
                ((h = o(
                  regeneratorRuntime.mark(function e(t, n) {
                    var r, i;
                    return regeneratorRuntime.wrap(function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            if ((r = p.getEngineWithID(n.processID))) {
                              e.next = 3;
                              break;
                            }
                            throw new Error('No process running with id '.concat(n.processID));
                          case 3:
                            if (
                              (i = r.getDefinitions().find(function (e) {
                                return e.getPendingActivities().children.some(function (e) {
                                  return e.id === n.userTaskID;
                                });
                              }))
                            ) {
                              e.next = 6;
                              break;
                            }
                            throw new Error('No pending user task with id '.concat(n.userTaskID));
                          case 6:
                            return (
                              console.log('--\x3e Form submit: ', t),
                              i.mainProcess.signal(n.userTaskID, t),
                              e.abrupt('return', 'true')
                            );
                          case 9:
                          case 'end':
                            return e.stop();
                        }
                    }, e);
                  }),
                )),
                function (e, t) {
                  return h.apply(this, arguments);
                }),
            },
          ]) && a(n.prototype, r),
          i && a(n, i),
          t
        );
      })(),
      v = new m('Configuration', 'config'),
      g = new m('Monitoring', 'monitoring');
    d.addDisplayItem(new y()), d.addDisplayItem(v), d.addDisplayItem(g);
    var b = {
      serve: function (e) {
        d.init(), (p = e);
      },
    };
    e.exports = b;
  },
  function (e, t, n) {
    (function (e) {
      function t(e) {
        return (t =
          '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;
              })(e);
      }
      !(function (e) {
        function t(e, t) {
          var n,
            r = t.split('.'),
            i = !0;
          for (n = 0; n < r.length; n++) {
            if (!e) return '';
            e = e[r[n]];
          }
          if (null == e || !1 === e) return '';
          if (e instanceof Array && 0 == e.length) return '';
          if (e.constructor === Object) {
            for (n in e) e.hasOwnProperty(n) && (i = !n);
            if (i) return '';
          }
          return e;
        }
        (e.cache = {}),
          (e.render = function (t, n) {
            return e.cache[t] || (e.cache[t] = e.compile(t)), e.cache[t](n);
          }),
          (e.compile = function (n) {
            var r,
              i,
              o,
              a = [];
            if (n instanceof Function) return n;
            for (
              n = (n = (n = (n = (n || '') + '')
                .replace(/\\/g, '\\\\')
                .replace(/\'/g, "\\'")
                .replace(/\n/g, '\\n')
                .replace(/\r/g, '')).replace(/(\\*){![\s\S]*?!}/g, function (e, t) {
                return t ? e.replace('\\\\', '') : '';
              })).replace(
                /(\\*){(?:([\w_.\-@]+)|>([\w_.\-@]+)|for +([\w_\-@]+) +in +([\w_.\-@]+)|if +(not +|)([\w_.\-@]+)|\/(for|if))}/g,
                function (e, t, n, i, s, u, c, p, f, l, h) {
                  if (t) return e.replace('\\\\', '');
                  if (n) {
                    if ('else' == n) {
                      if ((r = a[a.length - 1]) && !r.elsed) {
                        if (((r.elsed = !0), 'if' == r.statement)) return "'}else{b+='";
                        if ('for' == r.statement) return "'}if(!g(c,'" + r.forKey + "')){b+='";
                      }
                      return console.warn('extra {else} ignored'), '';
                    }
                    return "'+g(c,'" + n + "')+'";
                  }
                  return i
                    ? "'+r(g(c,'" + i + "'),c)+'"
                    : u
                    ? ((o = s.replace('-', '__')),
                      a.push({ statement: 'for', forKey: u, iterVar: s, safeIterVar: o }),
                      "';var __" +
                        o +
                        "=g(c,'" +
                        s +
                        "');var " +
                        o +
                        "A=g(c,'" +
                        u +
                        "');for(var " +
                        o +
                        'I=0;' +
                        o +
                        'I<' +
                        o +
                        'A.length;' +
                        o +
                        "I++){c['" +
                        s +
                        "']=" +
                        o +
                        'A[' +
                        o +
                        "I];b+='")
                    : p
                    ? (a.push({ statement: 'if' }),
                      "';if(" + (c ? '!' : '') + "g(c,'" + p + "')){b+='")
                    : f
                    ? (r = a[a.length - 1]) && r.statement == f
                      ? (a.pop(),
                        "'}" +
                          ('for' == r.statement
                            ? "c['" + r.iterVar + "']=__" + r.safeIterVar + ';'
                            : '') +
                          "b+='")
                      : (console.warn('extra {/' + f + '} ignored'), '')
                    : e;
                },
              ),
                i = a.length - 1;
              i > -1;
              i--
            )
              (r = a[i]),
                console.warn('extra {' + r.statement + '} closed at end of template'),
                (n += "'}b+='");
            return new Function('g', 'r', "return function(c){var b='" + n + "';return b}")(
              t,
              e.render,
            );
          }),
          (e.__express = (function () {
            try {
              return n(
                !(function () {
                  var e = new Error("Cannot find module './__express'");
                  throw ((e.code = 'MODULE_NOT_FOUND'), e);
                })(),
              );
            } catch (e) {}
          })());
      })('object' == t(e) ? e.exports : (window.whiskers = {}));
    }.call(this, n(96)(e)));
  },
  function (e, t, n) {
    function r(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function i(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (i, o) {
          var a = e.apply(t, n);
          function s(e) {
            r(a, i, o, s, u, 'next', e);
          }
          function u(e) {
            r(a, i, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    function o(e, t) {
      return (
        (function (e) {
          if (Array.isArray(e)) return e;
        })(e) ||
        (function (e, t) {
          var n = [],
            r = !0,
            i = !1,
            o = void 0;
          try {
            for (
              var a, s = e[Symbol.iterator]();
              !(r = (a = s.next()).done) && (n.push(a.value), !t || n.length !== t);
              r = !0
            );
          } catch (e) {
            (i = !0), (o = e);
          } finally {
            try {
              r || null == s.return || s.return();
            } finally {
              if (i) throw o;
            }
          }
          return n;
        })(e, t) ||
        (function () {
          throw new TypeError('Invalid attempt to destructure non-iterable instance');
        })()
      );
    }
    function a(e) {
      return (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;
            })(e);
    }
    var s = n(8).http(),
      u = n(483),
      c = n(484);
    function p(e, t, n, r) {
      if (!t || 'string' != typeof t) throw new Error('Path is required to be a string!');
      if (t.length < 3 || -1 === t.indexOf('/', 1))
        throw new Error('Path has to be of form `/key/[endpoint]`!');
      if ('get' === e && null !== n)
        throw new Error('A body payload with GET requests is not supported!');
      if (r && 'object' !== a(r)) throw new Error('Query has to be an object!');
    }
    var f,
      l = {
        _displayItems: [],
        _endpoints: new Map(),
        _displayed: !1,
        init: function () {
          var e = this;
          this._displayed = !0;
          var t,
            n,
            r,
            u =
              ((t = this._displayItems),
              (n = '<ul id="nav">\n  '.concat(
                t
                  .map(function (e) {
                    return '<li class="item" data-key="'
                      .concat(e.key, '"><span>')
                      .concat(e.title, '</span><span class="badge">')
                      .concat(e.badge, '</span></li>');
                  })
                  .join('\n'),
                '\n  </ul>',
              )),
              c.header + n + c.content),
            f = c.script,
            l = c.css,
            h = {};
          if (
            (this._displayItems.forEach(function (e) {
              h[e.key] = e.content;
            }),
            'object' === ('undefined' == typeof window ? 'undefined' : a(window)))
          ) {
            var d = window.document.createElement('style');
            (d.type = 'text/css'),
              d.styleSheet ? (d.styleSheet.cssText = l) : (d.innerHTML = l),
              window.document.head.appendChild(d);
            var m = window.document.createElement('meta');
            (m.name = 'viewport'),
              (m.content =
                'width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no'),
              window.document.head.appendChild(m),
              (window.document.body.innerHTML = u),
              (window.PROCEED_UI_CONTENTS = h),
              (window.PROCEED_DATA = {
                get: function (t, n) {
                  return e._handleEndpointRequest('get', t, null, n);
                },
                post: function (t, n, r) {
                  return e._handleEndpointRequest('post', t, n, r);
                },
              }),
              f();
          } else {
            this._endpoints.forEach(function (e, t) {
              Object.entries(e).forEach(function (e) {
                var n = o(e, 2),
                  r = n[0],
                  i = n[1];
                if ('function' == typeof i || 'function' == typeof i.get) {
                  var a = 'function' == typeof i ? i : i.get;
                  s.get('/'.concat(t + r), function (e) {
                    return a(e.query).then(JSON.stringify);
                  });
                }
                'function' == typeof i.post &&
                  s.post('/'.concat(t + r), function (e) {
                    return i.post(e.body, e.query).then(JSON.stringify);
                  });
              });
            });
            var y =
              '\n      <!DOCTYPE html>\n      <html>\n        <head>\n          <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">\n          <script type="text/javascript">\n            '
                .concat(p.toString(), '\n            window.PROCEED_UI_CONTENTS = ')
                .concat(
                  ((r = JSON.stringify(h)), r.replace(/<\/script>/gi, '</scr\\ipt>')),
                  ";\n            window.PROCEED_DATA = {\n              get: async (path, query) => {\n                validateEndpointArgs('get', path, null, query);\n                return new Promise((resolve, reject) => {\n                  const xhr = new XMLHttpRequest();\n                  xhr.addEventListener('loadend', (req) => { resolve(JSON.parse(req.target.responseText)); });\n                  const url = query ? path + '?' + Object.entries(query).map(([key, value]) => key + '=' + encodeURIComponent(value)).join('&') : path;\n                  xhr.open('GET', url, true);\n                  xhr.send();\n                });\n              },\n              post: async (path, body, query) => {\n                validateEndpointArgs('post', path, body, query);\n                return new Promise((resolve, reject) => {\n                  const xhr = new XMLHttpRequest();\n                  xhr.addEventListener('loadend', (req) => { resolve(JSON.parse(req.target.responseText)); });\n                  const url = query ? path + '?' + Object.entries(query).map(([key, value]) => key + '=' + encodeURIComponent(value)).join('&') : path;\n                  xhr.open('POST', url, true);\n                  xhr.setRequestHeader('Content-Type', 'application/json');\n                  xhr.send(JSON.stringify(body));\n                });\n              }\n            };\n          </script>\n          <style type=\"text/css\">",
                )
                .concat(l, '</style>\n        </head>\n        <body>\n          ')
                .concat(u, '\n          <script type="text/javascript">(')
                .concat(f.toString(), ')()</script>\n        </body>\n      </html>');
            s.get(
              '/',
              i(
                regeneratorRuntime.mark(function e() {
                  return regeneratorRuntime.wrap(function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt('return', { response: y, mimeType: 'html' });
                        case 1:
                        case 'end':
                          return e.stop();
                      }
                  }, e);
                }),
              ),
            );
          }
        },
        addDisplayItem: function (e) {
          if (this._displayed)
            throw new Error(
              "Trying to add a display item after the UI module's init() call!\nDynamically adding display items is not yet supported!",
            );
          if (!e) throw new Error('No display item was given!');
          if (!(e instanceof u))
            throw new Error('The given argument is not an instance of DisplayItem!');
          if (
            this._displayItems.some(function (t) {
              return t.key === e.key;
            })
          )
            throw new Error(
              'There already exists a display item with that key! ('.concat(e.key, ')'),
            );
          this._displayItems.push(e);
          var t = e.getEndpoints();
          if (!t || 'object' !== a(t)) throw new Error('Endpoints have to be an object!');
          this._endpoints.set(e.key, t);
        },
        _handleEndpointRequest:
          ((f = i(
            regeneratorRuntime.mark(function e(t, n, r, i) {
              var o, a, s, u, c;
              return regeneratorRuntime.wrap(
                function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        if (t && 'string' == typeof t && ['get', 'post'].includes(t)) {
                          e.next = 2;
                          break;
                        }
                        throw new Error('Method has to be either `get` or `post`!');
                      case 2:
                        if (
                          (p(t, n, r, i),
                          (o = n.substring(1, n.indexOf('/', 1))),
                          (a = this._endpoints.get(o)))
                        ) {
                          e.next = 7;
                          break;
                        }
                        throw new Error('There are no endpoints registered for `'.concat(o, '!`'));
                      case 7:
                        if (
                          ((s = n.substring(o.length + 1, n.length)),
                          (u = a[s]) && ('function' == typeof u || 'function' == typeof u[t]))
                        ) {
                          e.next = 11;
                          break;
                        }
                        throw new Error(
                          'No function for the requested endpoint `'.concat(n, '` registered!'),
                        );
                      case 11:
                        if ('get' === t || ('function' != typeof u && 'function' == typeof u[t])) {
                          e.next = 13;
                          break;
                        }
                        throw new Error(
                          'No function for the requested `'
                            .concat(t, '` endpoint `')
                            .concat(n, '` registered!'),
                        );
                      case 13:
                        if (((c = 'function' == typeof u ? u : u[t]), null !== r)) {
                          e.next = 16;
                          break;
                        }
                        return e.abrupt('return', c(i));
                      case 16:
                        return e.abrupt('return', c(r, i));
                      case 17:
                      case 'end':
                        return e.stop();
                    }
                },
                e,
                this,
              );
            }),
          )),
          function (e, t, n, r) {
            return f.apply(this, arguments);
          }),
      };
    e.exports = { ui: l, DisplayItem: u };
  },
  function (e, t) {
    function n(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);
      }
    }
    var r = (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.title = t),
          (this.key = n),
          (this.content = ''),
          (this.badge = '');
      }
      var t, r, i;
      return (
        (t = e),
        (r = [
          {
            key: 'getEndpoints',
            value: function () {
              return {};
            },
          },
        ]) && n(t.prototype, r),
        i && n(t, i),
        e
      );
    })();
    e.exports = r;
  },
  function (e, t) {
    e.exports = {
      header:
        '\n<div id="wrapper">\n  <div id="header">\n    <div class="logo">\n    <svg preserveAspectRatio="none" viewBox="0 0 461 125" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd"><path d="m48.62 87.46h-37.14v37.43h-11.48v-51.17h46.63c3.98 0 5.97-1.21 5.97-3.64v-15.7c0-2.81-1.99-4.21-5.97-4.21h-46.63v-13.74h48.04c10.7 0 16.05 4.96 16.05 14.86v21.59c0 9.63-5.16 14.49-15.47 14.58zm38.83 0v-33.36c0-2.81 1.99-4.21 5.98-4.21h43.11v-13.74h-44.52c-10.7 0-16.05 4.96-16.05 14.86v36.45zm78.4-13.74h29.29c3.98 0 5.97-1.35 5.97-4.06v-15.56c0-2.81-1.99-4.21-5.97-4.21h-29.29c-3.91 0-5.86 1.4-5.86 4.21v15.56c0 2.71 1.95 4.06 5.86 4.06zm30.69 13.74h-31.98c-10.7 0-16.05-4.9-16.05-14.72v-21.73c0-9.9 5.35-14.86 16.05-14.86h31.98c10.7 0 16.05 4.96 16.05 14.86v21.73c0 9.82-5.35 14.72-16.05 14.72zm43.99 0h44.52v-13.74h-43.11c-3.99 0-5.98-1.35-5.98-4.06v-15.56c0-2.81 1.99-4.21 5.98-4.21h43.11v-13.74h-44.52c-10.7 0-16.05 4.96-16.05 14.86v21.73c0 9.82 5.35 14.72 16.05 14.72zm80.32-.05h48.15l19.04-25.49-19.04-25.52h-48.15l19.04 25.52zm0 0"/><path d="m296.22 75.3h25.29l9.97-13.39-9.97-13.39h-25.29l10 13.39zm164.51 13.16v-13.74h-46.63c-3.98 0-5.97-1.35-5.97-4.06v-15.57c0-2.8 1.99-4.2 5.97-4.2h46.63v-50.89h-11.6v37.15h-36.43c-10.7 0-16.06 4.95-16.06 14.86v21.73c0 9.81 5.36 14.72 16.06 14.72zm0 0"/></g></svg></div>\n    <div class="mobileMenu"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bars" class="svg-inline--fa fa-bars fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg></div>',
      content: '\n  </div>\n  <div id="content">\n    <iframe></iframe>\n  </div>\n</div>',
      script: function () {
        var e = window.document;
        function t() {
          e.querySelector('#nav').classList.toggle('expanded'),
            e.querySelector('#header .mobileMenu').classList.toggle('active');
        }
        function n(t) {
          for (var n = t.target; 'LI' === !n.tagName; ) n = n.parentElement;
          Array.from(e.querySelectorAll('#nav li')).forEach(function (e) {
            return e.classList.remove('active');
          }),
            n.classList.add('active');
          var r = e.createElement('iframe'),
            i = e.querySelector('#content');
          (i.innerHTML = ''),
            i.appendChild(r),
            (r.contentWindow.PROCEED_DATA = window.PROCEED_DATA),
            r.contentWindow.document.open(),
            r.contentWindow.document.write(window.PROCEED_UI_CONTENTS[n.dataset.key]),
            r.contentWindow.document.close();
        }
        e.querySelectorAll('#nav .item').forEach(function (e) {
          e.addEventListener('click', function (e) {
            t(), n(e);
          });
        }),
          e.querySelector('#header .mobileMenu').addEventListener('click', t),
          n({ target: e.querySelector('#nav li:first-child') });
      },
      css: '\n  body, html {\n    margin: 0;\n    padding: 0;\n    font-family: sans-serif;\n    color: #464646;\n    background: #fafafa;\n    font-size: 16px;\n  }\n  #header {\n    position: fixed;\n    background-color: white;\n    box-shadow: 0px -3px 6px #00000070;\n    top: 0;\n    left: 0;\n    right: 0;\n    height: 100px;\n    user-select: none;\n  }\n  #header .logo {\n    margin: 0 0 0 45px;\n    height: 100%;\n    width: 218px;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n  }\n  #header .logo svg {\n    width: 218px;\n    height: 49px;\n    fill: rgb(89, 89, 89);\n  }\n  #header .logo svg:hover {\n    fill: #0094a0;\n  }\n  #header .mobileMenu {\n    display: none;\n  }\n  #header .mobileMenu svg {\n    height: 1em;\n    margin: 6.5px;\n  }\n  #nav {\n    list-style: none;\n    margin: 0;\n    padding: 0;\n    position: absolute;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    font-size: 0;\n  }\n  #nav li {\n    display: inline-block;\n    height: 100%;\n    padding: 0 20px;\n    margin: 0;\n    font-size: 1.25rem;\n    line-height: 100px;\n    cursor: pointer;\n    border-right: 1px solid #efefef;\n    position: relative;\n    letter-spacing: 0.5px;\n  }\n  #nav li:hover, #nav li.active {\n    color: #8e8e8e;\n    background-color: #f7f7f7;\n  }\n  #nav li.active {\n    color: #0094a0;\n  }\n  #nav li .badge {\n    position: absolute;\n    top: 50%;\n    right: 6px;\n    line-height: initial;\n    margin-top: -24px;\n    font-size: 10px;\n    color: #007cec;\n    background-color: #f1f1f1;\n    padding: 1px 6px;\n    border-radius: 40px;\n  }\n  #nav li:hover .badge {\n    background-color: #007cec;\n    color: #f1f1f1;\n  }\n  #wrapper {\n    position: absolute;\n    top: 100px;\n    bottom: 0;\n    left: 0;\n    right: 0;\n  }\n  #content {\n    font-size: 0; /* no blank line after iframe */\n  }\n  #content, #content iframe {\n    width: 100%;\n    height: 100%;\n  }\n  #content iframe {\n    border: none;\n  }\n  @media (max-width: 1024px) {\n    html {\n      font-size: 14px;\n    }\n    #wrapper {\n      top: 80px;\n    }\n    #header {\n      height: 80px;\n    }\n    #nav li {\n      line-height: 80px;\n      padding: 0px 16px;\n    }\n    #header .logo svg {\n      width: 173.51px;\n      height: 39px;\n    }\n    #header .logo {\n      width: 173.51px;\n      margin-left: 35px;\n    }\n  }\n  @media (max-width: 768px) {\n    html {\n      font-size: 10px;\n    }\n    #wrapper {\n      top: 50px;\n    }\n    #header {\n      height: 50px;\n    }\n    #nav li {\n      line-height: 50px;\n      padding: 0px 8px;\n    }\n    #header .logo svg {\n      width: 106.78px;\n      height: 24px;\n    }\n    #header .logo {\n      width: 106.78px;\n      margin-left: 25px;\n    }\n  }\n  @media (max-width: 425px) {\n    #nav {\n      display: none;\n    }\n    #header .mobileMenu {\n      display: block;\n      height: 35px;\n      width: 35px;\n      position: absolute;\n      top: 7.5px;\n      right: 15px;\n      font-size: 22px;\n      text-align: center;\n      line-height: 37px;\n      border-radius: 5px;\n      box-shadow: 0px 0px 2px 0px #a9a9a9;\n    }\n    #header .mobileMenu.active {\n      background-color: #dcdcdc;\n      box-shadow: inset 0px 0px 4px #949494;\n    }\n    #nav.expanded {\n      position: relative;\n      display: block;\n    }\n    #nav.expanded li {\n      display: block;\n      background-color: white;\n      border-top: 1px solid #f1f1f1;\n      z-index: 1;\n    }\n    #nav.expanded li:last-child {\n      box-shadow: 0px -3px 6px #00000070;\n      z-index: 0;\n    }\n  }\n  ',
    };
  },
  function (e, t, n) {
    (function (t) {
      function r(e) {
        return (
          (function (e) {
            if (Array.isArray(e)) {
              for (var t = 0, n = new Array(e.length); t < e.length; t++) n[t] = e[t];
              return n;
            }
          })(e) ||
          (function (e) {
            if (
              Symbol.iterator in Object(e) ||
              '[object Arguments]' === Object.prototype.toString.call(e)
            )
              return Array.from(e);
          })(e) ||
          (function () {
            throw new TypeError('Invalid attempt to spread non-iterable instance');
          })()
        );
      }
      function i(e, t, n, r, i, o, a) {
        try {
          var s = e[o](a),
            u = s.value;
        } catch (e) {
          return void n(e);
        }
        s.done ? t(u) : Promise.resolve(u).then(r, i);
      }
      function o(e) {
        return function () {
          var t = this,
            n = arguments;
          return new Promise(function (r, o) {
            var a = e.apply(t, n);
            function s(e) {
              i(a, r, o, s, u, 'next', e);
            }
            function u(e) {
              i(a, r, o, s, u, 'throw', e);
            }
            s(void 0);
          });
        };
      }
      var a,
        s,
        u,
        c,
        p = n(8).http(),
        f = n(74).logging,
        l = n(100),
        h = n(486),
        d = {
          _engines: [],
          createInstance: function (e, t, n) {
            var r = new h(this);
            return (
              this._engines.push(r),
              r
                .startProcess(e, t, n)
                .then(function (e) {
                  return console.log('THEN'), console.log(e), e;
                })
                .catch(function (e) {
                  console.log('CATCH', e);
                }),
              JSON.stringify({ started: !0 })
            );
          },
          removeInstance: function (e) {
            this._engines.splice(this._engines.indexOf(e), 1);
          },
          delegateProcess:
            ((c = o(
              regeneratorRuntime.mark(function e(t, n, r, i, a) {
                var s,
                  u,
                  c,
                  p,
                  h = this;
                return regeneratorRuntime.wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (s = n), (e.next = 3), l.discover(r);
                        case 3:
                          return (
                            (u = e.sent),
                            (c = 'http://'
                              .concat(u.ip, ':')
                              .concat(u.port, '/distribution/process/')
                              .concat(s)),
                            (e.next = 7),
                            f.getLogger({})
                          );
                        case 7:
                          return (
                            e.sent, (e.next = 10), this.sendData(c, JSON.stringify({ bpmn: t }))
                          );
                        case 10:
                          return (e.next = 12), l.db.getAllHTML(n);
                        case 12:
                          return (
                            (p = e.sent).map(
                              (function () {
                                var e = o(
                                  regeneratorRuntime.mark(function e(t) {
                                    var r;
                                    return regeneratorRuntime.wrap(function (e) {
                                      for (;;)
                                        switch ((e.prev = e.next)) {
                                          case 0:
                                            return (e.next = 2), l.db.getHTML(n, t);
                                          case 2:
                                            return (
                                              (r = e.sent),
                                              (e.next = 5),
                                              h.sendData(
                                                ''.concat(c, '/html/').concat(t),
                                                JSON.stringify({ html: r }),
                                              )
                                            );
                                          case 5:
                                          case 'end':
                                            return e.stop();
                                        }
                                    }, e);
                                  }),
                                );
                                return function (t) {
                                  return e.apply(this, arguments);
                                };
                              })(),
                            ),
                            (e.next = 16),
                            Promise.all(p)
                          );
                        case 16:
                          this.startProcessOnNextDevice(
                            { ip: ''.concat(u.ip, ':').concat(u.port), nextProcessId: s },
                            a,
                            i,
                          );
                        case 17:
                        case 'end':
                          return e.stop();
                      }
                  },
                  e,
                  this,
                );
              }),
            )),
            function (e, t, n, r, i) {
              return c.apply(this, arguments);
            }),
          sendData:
            ((u = o(
              regeneratorRuntime.mark(function e(n, r) {
                var i, o;
                return regeneratorRuntime.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (
                          void 0 !== t
                            ? (i = t.byteLength(r))
                            : 'undefined' != typeof TextEncoder &&
                              ((o = new TextEncoder('utf-8').encode(r)), (i = o.length)),
                          e.abrupt(
                            'return',
                            new Promise(function (e, t) {
                              p.request(
                                n,
                                {
                                  method: 'PUT',
                                  formData: r,
                                  headers: {
                                    'Content-Type': 'application/json',
                                    'Content-Length': i,
                                  },
                                },
                                function (n, r, i) {
                                  n ? t(n) : e(r, i);
                                },
                              );
                            }),
                          )
                        );
                      case 2:
                      case 'end':
                        return e.stop();
                    }
                }, e);
              }),
            )),
            function (e, t) {
              return u.apply(this, arguments);
            }),
          chainExecution:
            ((s = o(
              regeneratorRuntime.mark(function e(t, n, r) {
                var i, o, a;
                return regeneratorRuntime.wrap(
                  function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return (e.next = 2), f.getLogger({});
                        case 2:
                          return (i = e.sent), (e.next = 5), l.db.getNextDeviceForProcessWithId(t);
                        case 5:
                          if ((o = e.sent)) {
                            e.next = 9;
                            break;
                          }
                          return (
                            i.info('Could not find a next device, execution chain ends here.'),
                            e.abrupt('return')
                          );
                        case 9:
                          (a = JSON.parse(o)[n]), this.startProcessOnNextDevice(a, r);
                        case 11:
                        case 'end':
                          return e.stop();
                      }
                  },
                  e,
                  this,
                );
              }),
            )),
            function (e, t, n) {
              return s.apply(this, arguments);
            }),
          startProcessOnNextDevice:
            ((a = o(
              regeneratorRuntime.mark(function e(n, r, i) {
                var o, a, s, u, c;
                return regeneratorRuntime.wrap(function (e) {
                  for (;;)
                    switch ((e.prev = e.next)) {
                      case 0:
                        return (
                          (o = JSON.stringify({ variables: r, activityID: i })),
                          (a = 'http://'
                            .concat(n.ip, '/distribution/process/')
                            .concat(n.nextProcessId, '/instance')),
                          (e.next = 4),
                          f.getLogger({})
                        );
                      case 4:
                        (s = e.sent),
                          void 0 !== t
                            ? (u = t.byteLength(o))
                            : 'undefined' != typeof TextEncoder &&
                              ((c = new TextEncoder('utf-8').encode(o)), (u = c.length)),
                          p.request(
                            a,
                            {
                              method: 'POST',
                              formData: o,
                              headers: { 'Content-Type': 'application/json', 'Content-Length': u },
                            },
                            function (e, t, n) {
                              if (e || 200 !== t.statusCode)
                                return (
                                  s.info(
                                    'Calling next process failed with errorCode '.concat(
                                      e || t.statusCode,
                                    ),
                                  ),
                                  void s.error(e)
                                );
                              s.info(n);
                            },
                          );
                      case 7:
                      case 'end':
                        return e.stop();
                    }
                }, e);
              }),
            )),
            function (e, t, n) {
              return a.apply(this, arguments);
            }),
          getEngineWithID: function (e) {
            return this._engines.find(function (t) {
              return t.processID === e;
            });
          },
          getPendingActivities: function () {
            var e = [];
            return (
              this._engines.forEach(function (t) {
                t.getDefinitions()
                  .map(function (e) {
                    return e.getPendingActivities().children.map(function (t) {
                      return e.getChildActivityById(t.id);
                    });
                  })
                  .forEach(function (t) {
                    return e.push.apply(e, r(t));
                  });
              }),
              e
            );
          },
        };
      e.exports = d;
    }.call(this, n(38).Buffer));
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    function i(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function o(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (r, o) {
          var a = e.apply(t, n);
          function s(e) {
            i(a, r, o, s, u, 'next', e);
          }
          function u(e) {
            i(a, r, o, s, u, 'throw', e);
          }
          s(void 0);
        });
      };
    }
    function a(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);
      }
    }
    var s,
      u = n(74).logging,
      c = n(8),
      p = n(198),
      f = n(100),
      l = n(487),
      h = n(614),
      d = n(615).default;
    var m = (function () {
      function e(t) {
        !(function (e, t) {
          if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
        })(this, e),
          s || (s = t),
          (this.succeed = void 0),
          (this.abort = void 0),
          (this.bpmnEngines = []),
          (this.separator = null),
          (this.processID = void 0),
          (this.processVariables = null),
          (this.nextStepCount = 0);
      }
      var t, n, i, m, y, v;
      return (
        (t = e),
        (n = [
          {
            key: 'startProcess',
            value:
              ((v = o(
                regeneratorRuntime.mark(function e(t, n, r) {
                  var i, o, a;
                  return regeneratorRuntime.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (i = u.getLogger({ moduleName: 'proceed/core/engine' })),
                              (o = this._promisedResponse()),
                              (this.processID = t),
                              (this.processVariables = n),
                              (e.next = 6),
                              f.db.getProcess(t)
                            );
                          case 6:
                            return (
                              (a = e.sent),
                              i.debug(a),
                              (this.separator = new d()),
                              (e.next = 11),
                              this.separator.setBPMN(a)
                            );
                          case 11:
                            return (e.next = 13), this.nextStep(r);
                          case 13:
                            return e.abrupt('return', o);
                          case 14:
                          case 'end':
                            return e.stop();
                        }
                    },
                    e,
                    this,
                  );
                }),
              )),
              function (e, t, n) {
                return v.apply(this, arguments);
              }),
          },
          {
            key: '_promisedResponse',
            value:
              ((y = o(
                regeneratorRuntime.mark(function e() {
                  var t = this;
                  return regeneratorRuntime.wrap(function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt(
                            'return',
                            new Promise(function (e, n) {
                              (t.succeed = e), (t.abort = n);
                            }),
                          );
                        case 1:
                        case 'end':
                          return e.stop();
                      }
                  }, e);
                }),
              )),
              function () {
                return y.apply(this, arguments);
              }),
          },
          {
            key: 'nextStep',
            value:
              ((m = o(
                regeneratorRuntime.mark(function e(t) {
                  var n, i, o, a, c, f, h, d;
                  return regeneratorRuntime.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return (
                              (n = u.getLogger({ moduleName: 'proceed/core/engine' })),
                              (this.nextStepCount += 1),
                              (e.next = 4),
                              this.separator.next(t)
                            );
                          case 4:
                            if ('object' !== r((i = e.sent).bpmn)) {
                              e.next = 9;
                              break;
                            }
                            return (
                              (this.nextStepCount -= 1),
                              this.finished(!1, i.bpmn.id),
                              e.abrupt('return')
                            );
                          case 9:
                            return (
                              (o = i.bpmn),
                              (a = i.activity),
                              (c = this.analyzeProcess(a)),
                              n.error({
                                msg: 'requirements: '.concat(JSON.stringify(c)),
                                moduleName: 'foobar',
                                processID: 1,
                              }),
                              (e.next = 14),
                              p.getOwnCapabilities()
                            );
                          case 14:
                            if (
                              ((f = e.sent),
                              c.every(function (e) {
                                return f.includes(e);
                              }))
                            ) {
                              e.next = 24;
                              break;
                            }
                            return (e.next = 18), this.separator.getBPMN();
                          case 18:
                            return (
                              (h = e.sent),
                              (e.next = 21),
                              s.delegateProcess(h, this.processID, c, t, this.processVariables)
                            );
                          case 21:
                            return (this.nextStepCount -= 1), this.finished(!0), e.abrupt('return');
                          case 24:
                            (d = new l.Engine({ name: t, source: o })),
                              this.bpmnEngines.push(d),
                              this._executeAndListenForEvents(d, this.processVariables),
                              (this.nextStepCount -= 1);
                          case 28:
                          case 'end':
                            return e.stop();
                        }
                    },
                    e,
                    this,
                  );
                }),
              )),
              function (e) {
                return m.apply(this, arguments);
              }),
          },
          {
            key: 'analyzeProcess',
            value: function (e) {
              var t = e.get('extensionElements');
              if (!t) return [];
              var n = t.get('values')[0].$children,
                r = [];
              return (
                n.forEach(function (e) {
                  r.push(e.$body);
                }),
                r
              );
            },
          },
          {
            key: '_executeAndListenForEvents',
            value: function (e, t) {
              var n = this;
              e.on('end', this.executionCompleted.bind(this)),
                e.on('error', this.executionErrored.bind(this));
              var r = new h();
              r.on('enter', this.activityEntered.bind(this)),
                r.on('start', this.activityStarted.bind(this)),
                r.on('wait', this.waitForInput.bind(this)),
                r.on('end', this.activityEnded.bind(this)),
                r.on('cancel', this.activityCanceled.bind(this)),
                r.on('leave', this.activityLeft.bind(this)),
                r.on('error', this.activityErrored.bind(this)),
                r.on('taken', this.flowWasTaken.bind(this)),
                e.execute(
                  {
                    variables: t,
                    services: {
                      console: { module: 'console', type: 'global' },
                      system: function () {
                        return c;
                      },
                    },
                    listener: r,
                  },
                  function (e, t) {
                    e && 0 === n.bpmnEngines.length && n.abort(e);
                  },
                );
            },
          },
          {
            key: 'activityEntered',
            value: function () {
              u.getLogger({ moduleName: 'proceed/core/engine' }).debug('ACTIVITY ENTERED');
            },
          },
          {
            key: 'activityStarted',
            value: function () {
              u.getLogger({ moduleName: 'proceed/core/engine' }).debug('ACTIVITY STARTED');
            },
          },
          {
            key: 'waitForInput',
            value: function (e, t) {
              u.getLogger({ moduleName: 'proceed/core/engine' }).debug('WAIT');
            },
          },
          {
            key: 'activityEnded',
            value: function (e) {
              var t = u.getLogger({ moduleName: 'proceed/core/engine' }),
                n = (function (e) {
                  var t = e.variables;
                  return (
                    t.taskInput &&
                      (Object.values(t.taskInput).forEach(function (e) {
                        Object.assign(t, e);
                      }),
                      delete t.taskInput),
                    t
                  );
                })(e.parentContext, e.id);
              (this.processVariables = n),
                t.debug('ACTIVITY ENDED'),
                'bpmn:EndEvent' === e.type && this.encounteredEndEvent(e);
            },
          },
          {
            key: 'activityCanceled',
            value: function () {
              u.getLogger({ moduleName: 'proceed/core/engine' }).debug('ACTIVITY CANCELED');
            },
          },
          {
            key: 'activityLeft',
            value: function () {
              u.getLogger({ moduleName: 'proceed/core/engine' }).debug('ACTIVITY LEFT');
            },
          },
          {
            key: 'activityErrored',
            value: function () {
              u.getLogger({ moduleName: 'proceed/core/engine' }).debug('ACTIVITY ERRORED');
            },
          },
          {
            key: 'flowWasTaken',
            value: function () {
              u.getLogger({ moduleName: 'proceed/core/engine' }).debug('FLOW WAS TAKEN');
            },
          },
          {
            key: 'flowWasDiscarded',
            value: function () {
              u.getLogger({ moduleName: 'proceed/core/engine' }).debug('FLOW WAS DISCARDED');
            },
          },
          {
            key: 'encounteredEndEvent',
            value: function (e) {
              u
                .getLogger({ moduleName: 'proceed/core/engine' })
                .info('childprocess flow ended with endEventID: '.concat(e.id)),
                console.log('eEE: ', this.processVariables),
                this.nextStep(e.id);
            },
          },
          {
            key: 'executionCompleted',
            value: function (e, t) {
              var n = this.bpmnEngines.findIndex(function (t) {
                return Object.is(t.definitions[0], e);
              });
              this.bpmnEngines.splice(n, 1), this.checkDone();
            },
          },
          {
            key: 'checkDone',
            value: function () {
              0 === this.bpmnEngines.length &&
                0 === this.nextStepCount &&
                (s.removeInstance(this), this.succeed({ status: 'done' }));
            },
          },
          {
            key: 'finished',
            value: function (e, t) {
              u.getLogger({ moduleName: 'proceed/core/engine' }).debug('FLOW EXECUTION COMPLETED'),
                this.checkDone(),
                e || s.chainExecution(this.processID, t, this.processVariables);
            },
          },
          {
            key: 'executionErrored',
            value: function () {
              u.getLogger({ moduleName: 'proceed/core/engine' }).error('EXECUTION ERROR'),
                this.abort();
            },
          },
          {
            key: 'getDefinitions',
            value: function () {
              return this.bpmnEngines.map(function (e) {
                return e.definitions[0];
              });
            },
          },
        ]) && a(t.prototype, n),
        i && a(t, i),
        e
      );
    })();
    e.exports = m;
  },
  function (e, t, n) {
    'use strict';
    e.exports = n(488);
  },
  function (e, t, n) {
    'use strict';
    (t.Engine = n(489)), (t.Definition = n(200)), (t.transformer = n(207)), (t.validation = n(140));
  },
  function (e, t, n) {
    'use strict';
    (function (t, r) {
      var i = n(199),
        o = n(75),
        a = n(17)('bpmn-engine:engine'),
        s = n(55).EventEmitter,
        u = n(76),
        c = n(207),
        p = n(140),
        f = n(613).version,
        l = {},
        h = ['name', 'source', 'moddleContext', 'moddleOptions'];
      function d(e) {
        e.on('end', this._onEnd), e.on('error', this._onError);
      }
      function m() {
        var e = this;
        this.definitions.forEach(function (t) {
          t.removeListener('end', e._onEnd), t.removeListener('error', e._onError);
        });
      }
      function y(e, t, n) {
        c.transform(e, t, function (e, t, r) {
          return n(e, r);
        });
      }
      (e.exports = l.Engine =
        function (e) {
          (e = e || {}),
            Object.keys(e).forEach(function (e) {
              if (-1 === h.indexOf(e)) throw new Error('Option '.concat(e, ' is unsupported'));
            }),
            (this.name = e.name || 'undefined'),
            (this.definitions = []),
            (this.sources = []),
            (this.moddleContexts = []),
            (this.moddleOptions = e.moddleOptions),
            e.source &&
              function (e) {
                r.isBuffer(e)
                  ? this.sources.push(e.toString())
                  : 'string' == typeof e
                  ? this.sources.push(e)
                  : this.emit('error', new Error('Unparsable Bpmn source'));
              }.call(this, e.source),
            e.moddleContext &&
              function (e) {
                this.moddleContexts.push(e);
              }.call(this, e.moddleContext),
            (this._onEnd = this.onEnd.bind(this)),
            (this._onError = this.onError.bind(this));
        }),
        (l.Engine.prototype = Object.create(s.prototype)),
        (l.Engine.resume = function (e, n, r) {
          if (!Array.isArray(e.definitions)) throw new Error('State definitions must be an array');
          var o;
          function s(e) {
            return e
              ? (m.call(c), r ? r.apply(null, arguments) : this.emit('error', e))
              : r
              ? r.apply(null, arguments)
              : void 0;
          }
          'function' == typeof n ? ((r = n), (o = {})) : (o = n);
          var c = new l.Engine({ name: e.name });
          return (
            a('<'.concat(c.name, '>'), 'resume'),
            t.nextTick(function () {
              i.each(
                e.definitions,
                function (e, t) {
                  var n = u.Definition.resume(e, o, t);
                  c.definitions.push(n), d.call(c, n);
                },
                function (e) {
                  if (e) return s.call(c, e);
                  s.call(c, null, c.definitions[0], c.definitions);
                },
              );
            }),
            c
          );
        }),
        (l.Engine.prototype.execute = function (e, t) {
          var n = this,
            r = {};
          function o(e) {
            if (t) return t.apply(null, arguments);
            e && this.emit('error', e);
          }
          'function' == typeof e ? ((t = e), (r = {})) : (p.validateOptions(e), (r = e)),
            this.getDefinitions(function (e, t) {
              return e
                ? o.call(n, e)
                : t.length
                ? (a('<'.concat(n.name, '>'), 'start all definitions ('.concat(t.length, ')')),
                  function (e) {
                    e.forEach(d.bind(this));
                  }.call(n, t),
                  (n.started = !0),
                  void i.each(
                    t,
                    function (e, t) {
                      e.execute(r, t);
                    },
                    function (e) {
                      o.call(n, e, t[0], t);
                    },
                  ))
                : o.call(n, new Error('Nothing to execute'));
            });
        }),
        (l.Engine.prototype.getDefinitions = function (e) {
          return this.definitions.length
            ? e(null, this.definitions)
            : function (e) {
                if (this.sources.length)
                  return i.map(
                    this.sources,
                    function (e, t) {
                      var n = this;
                      a('<'.concat(this.name, '>'), 'load definition from source'),
                        y(e, this.moddleOptions, function (e, r) {
                          return e ? t(e) : t(null, n.addDefinitionByModdleContext(r));
                        });
                    }.bind(this),
                    e,
                  );
                if (this.moddleContexts.length)
                  return e(
                    null,
                    this.moddleContexts.map(this.addDefinitionByModdleContext.bind(this)),
                  );
                return e(null, []);
              }.call(this, e);
        }),
        (l.Engine.prototype.getDefinition = function (e) {
          this.getDefinitions(function (t, n) {
            if (t) return e(t);
            if (0 === n.length) return e();
            var r = n[0];
            return e(null, r);
          });
        }),
        (l.Engine.prototype.addDefinitionBySource = function (e, t, n) {
          var r,
            i = this;
          'function' == typeof t ? ((n = t), (r = this.moddleOptions)) : (r = t),
            y(e, r, function (e, t) {
              return e ? n(e) : n(null, i.addDefinitionByModdleContext(t));
            });
        }),
        (l.Engine.prototype.addDefinitionByModdleContext = function (e) {
          var t = this.definitions.findIndex(function (t) {
              return t.id === o.getDefinitionId(e);
            }),
            n = new u.Definition(e);
          return (
            -1 === t
              ? (a('<'.concat(this.name, '>'), 'add definition <'.concat(n.id, '>')),
                this.definitions.push(n))
              : (a('<'.concat(this.name, '>'), 'definition <'.concat(n.id, '> is replaced')),
                (this.definitions[t] = n)),
            n
          );
        }),
        (l.Engine.prototype.getDefinitionById = function (e) {
          return this.definitions.find(function (t) {
            return t.id === e;
          });
        }),
        (l.Engine.prototype.onEnd = function (e) {
          this.definitions.every(function (e) {
            return e.isEnded || e.stopped;
          }) &&
            (a('<'.concat(this.name, '>'), 'end'),
            m.call(this),
            (this.started = !1),
            this.emit('end', e));
        }),
        (l.Engine.prototype.onError = function () {
          var e = Array.prototype.slice.call(arguments);
          m.call(this), (this.started = !1), e.unshift('error'), this.emit.apply(this, e);
        }),
        (l.Engine.prototype.getState = function () {
          var e = { name: this.name, state: this.started ? 'running' : 'idle', engineVersion: f };
          return (
            (e.definitions = this.definitions.map(function (e) {
              return e.getState();
            })),
            e
          );
        }),
        (l.Engine.prototype.getPendingActivities = function () {
          var e = { name: this.name, state: this.started ? 'running' : 'idle' };
          return (
            (e.definitions = this.definitions.map(function (e) {
              return e.getPendingActivities();
            })),
            e
          );
        }),
        (l.Engine.prototype.signal = function (e, t) {
          if (this.started)
            for (var n in this.definitions) {
              var r = this.definitions[n],
                i = r.getChildActivityById(e);
              if (i && i.waiting) return r.signal(e, t);
            }
        }),
        (l.Engine.prototype.stop = function () {
          a('<'.concat(this.name, '>'), 'stop'),
            this.definitions.forEach(function (e) {
              return e.stop();
            });
        });
    }.call(this, n(16), n(38).Buffer));
  },
  function (e, t, n) {
    var r;
    function i(e) {
      function n() {
        if (n.enabled) {
          var e = n,
            i = +new Date(),
            o = i - (r || i);
          (e.diff = o), (e.prev = r), (e.curr = i), (r = i);
          for (var a = new Array(arguments.length), s = 0; s < a.length; s++) a[s] = arguments[s];
          (a[0] = t.coerce(a[0])), 'string' != typeof a[0] && a.unshift('%O');
          var u = 0;
          (a[0] = a[0].replace(/%([a-zA-Z%])/g, function (n, r) {
            if ('%%' === n) return n;
            u++;
            var i = t.formatters[r];
            if ('function' == typeof i) {
              var o = a[u];
              (n = i.call(e, o)), a.splice(u, 1), u--;
            }
            return n;
          })),
            t.formatArgs.call(e, a),
            (n.log || t.log || console.log.bind(console)).apply(e, a);
        }
      }
      return (
        (n.namespace = e),
        (n.enabled = t.enabled(e)),
        (n.useColors = t.useColors()),
        (n.color = (function (e) {
          var n,
            r = 0;
          for (n in e) (r = (r << 5) - r + e.charCodeAt(n)), (r |= 0);
          return t.colors[Math.abs(r) % t.colors.length];
        })(e)),
        'function' == typeof t.init && t.init(n),
        n
      );
    }
    ((t = e.exports = i.debug = i.default = i).coerce = function (e) {
      return e instanceof Error ? e.stack || e.message : e;
    }),
      (t.disable = function () {
        t.enable('');
      }),
      (t.enable = function (e) {
        t.save(e), (t.names = []), (t.skips = []);
        for (
          var n = ('string' == typeof e ? e : '').split(/[\s,]+/), r = n.length, i = 0;
          i < r;
          i++
        )
          n[i] &&
            ('-' === (e = n[i].replace(/\*/g, '.*?'))[0]
              ? t.skips.push(new RegExp('^' + e.substr(1) + '$'))
              : t.names.push(new RegExp('^' + e + '$')));
      }),
      (t.enabled = function (e) {
        var n, r;
        for (n = 0, r = t.skips.length; n < r; n++) if (t.skips[n].test(e)) return !1;
        for (n = 0, r = t.names.length; n < r; n++) if (t.names[n].test(e)) return !0;
        return !1;
      }),
      (t.humanize = n(491)),
      (t.names = []),
      (t.skips = []),
      (t.formatters = {});
  },
  function (e, t) {
    function n(e) {
      return (n =
        '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;
            })(e);
    }
    var r = 1e3,
      i = 60 * r,
      o = 60 * i,
      a = 24 * o,
      s = 365.25 * a;
    function u(e, t, n) {
      if (!(e < t))
        return e < 1.5 * t ? Math.floor(e / t) + ' ' + n : Math.ceil(e / t) + ' ' + n + 's';
    }
    e.exports = function (e, t) {
      t = t || {};
      var c,
        p = n(e);
      if ('string' === p && e.length > 0)
        return (function (e) {
          if ((e = String(e)).length > 100) return;
          var t =
            /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
              e,
            );
          if (!t) return;
          var n = parseFloat(t[1]);
          switch ((t[2] || 'ms').toLowerCase()) {
            case 'years':
            case 'year':
            case 'yrs':
            case 'yr':
            case 'y':
              return n * s;
            case 'days':
            case 'day':
            case 'd':
              return n * a;
            case 'hours':
            case 'hour':
            case 'hrs':
            case 'hr':
            case 'h':
              return n * o;
            case 'minutes':
            case 'minute':
            case 'mins':
            case 'min':
            case 'm':
              return n * i;
            case 'seconds':
            case 'second':
            case 'secs':
            case 'sec':
            case 's':
              return n * r;
            case 'milliseconds':
            case 'millisecond':
            case 'msecs':
            case 'msec':
            case 'ms':
              return n;
            default:
              return;
          }
        })(e);
      if ('number' === p && !1 === isNaN(e))
        return t.long
          ? u((c = e), a, 'day') ||
              u(c, o, 'hour') ||
              u(c, i, 'minute') ||
              u(c, r, 'second') ||
              c + ' ms'
          : (function (e) {
              if (e >= a) return Math.round(e / a) + 'd';
              if (e >= o) return Math.round(e / o) + 'h';
              if (e >= i) return Math.round(e / i) + 'm';
              if (e >= r) return Math.round(e / r) + 's';
              return e + 'ms';
            })(e);
      throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(e));
    };
  },
  function (e, t, n) {
    'use strict';
    (function (t, r, i) {
      var o = n(75),
        a = n(17)('bpmn-engine:context'),
        s = n(76),
        u = n(493);
      function c(e, t, n) {
        (this.id = e),
          (this.moddleContext = t),
          (this.options = n || {}),
          (this.variables = Object.assign({}, this.options.variables)),
          (this.services = Object.assign({}, this.options.services)),
          function (e) {
            var t = this;
            return (
              (this.sequenceFlows = []),
              (this.messageFlows = []),
              o.getAllOutboundSequenceFlows(this.moddleContext, e).map(function (e) {
                var n = new (s(e.element.$type))(e, t);
                t.sequenceFlows.push(n), n.outboundMessage && t.messageFlows.push(n);
              })
            );
          }.call(this, this.id),
          function (e) {
            var t = this;
            a('<'.concat(this.id, '>'), 'load children'),
              (this.children = {}),
              (this.startActivities = []),
              (this.endActivities = []),
              (this.childCount = 0),
              (this.activities = o.getActivities(this.moddleContext, e)),
              this.activities.forEach(function (e) {
                var n = t.children[e.id];
                if (!n) {
                  if ((n = f.call(t, e.id, t, t.options)).placeholder) return;
                  (t.children[n.id] = n), t.childCount++;
                }
                n.isStart && t.startActivities.push(n), n.isEnd && t.endActivities.push(n);
              });
          }.call(this, this.id);
      }
      function p(e) {
        var o;
        return 'function' == typeof e
          ? e
          : e.module
          ? ((o =
              e.type && 'require' !== e.type
                ? 'require' === e.module
                  ? n(203)
                  : t[e.module]
                : n(203)(
                    (function (e) {
                      return e.startsWith('.') ? u.relative(r, u.join(i.cwd(), e)) : e;
                    })(e.module),
                  )),
            e.fnName && (o = o[e.fnName]),
            o)
          : o;
      }
      function f(e, t, n) {
        var r = this.moddleContext.elementsById[e];
        return new (s(r.$type))(r, t, n);
      }
      (c.prototype.getOutboundSequenceFlows = function (e) {
        return this.sequenceFlows.filter(function (t) {
          return t.activity.id === e;
        });
      }),
        (c.prototype.getInboundSequenceFlows = function (e) {
          return this.sequenceFlows.filter(function (t) {
            return !t.outboundMessage && t.targetId === e;
          });
        }),
        (c.prototype.isDefaultSequenceFlow = function (e) {
          return o.isDefaultSequenceFlow(this.moddleContext, e);
        }),
        (c.prototype.getSequenceFlowTargetId = function (e) {
          return o.getSequenceFlowTargetId(this.moddleContext, e);
        }),
        (c.prototype.hasAttachedErrorEvent = function (e) {
          return o.hasAttachedErrorEvent(this.moddleContext, e);
        }),
        (c.prototype.getAttachedToActivity = function (e) {
          var t = o.getAttachedToActivity(this.moddleContext, e);
          if (t) return this.getChildActivityById(t.id);
        }),
        (c.prototype.getChildActivityById = function (e) {
          var t = this.children[e];
          if (!t) {
            if (
              !this.activities.some(function (t) {
                return t.id === e;
              })
            )
              return t;
            (t = f.call(this, e, this, this.options)), (this.children[e] = t);
          }
          return t;
        }),
        (c.prototype.saveChildOutput = function (e, t) {
          var n = this;
          a('<'.concat(this.id, '>'), 'save <'.concat(e, '> output'), t);
          var r = o.getChildOutputNames(this.moddleContext, e);
          r.length
            ? r.forEach(function (r) {
                a(
                  '<'.concat(n.id, '>'),
                  'setting data from <'.concat(e, '> to variables["').concat(r.id, '"]'),
                ),
                  (n.variables[r.id] = t);
              })
            : (a(
                '<'.concat(this.id, '>'),
                'setting data from <'.concat(e, '> to variables.taskInput["').concat(e, '"]'),
              ),
              this.variables.taskInput || (this.variables.taskInput = {}),
              (this.variables.taskInput[e] = t));
        }),
        (c.prototype.getActivityIO = function (e) {
          var t = o.getActivityIO(this.moddleContext, e);
          if (t) return new s.ActivityIO(t, this);
        }),
        (c.prototype.getActivityProperties = function (e) {
          var t = o.getActivityProperties(this.moddleContext, e);
          return t
            ? new s.ActivityProperties(t, this).getValues(this.getFrozenVariablesAndServices())
            : {};
        }),
        (c.prototype.getActivityForm = function (e) {
          if (e) {
            var t = o.getActivityFormData(e);
            if (t) return new s.Form(t, this);
          }
        }),
        (c.prototype.applyMessage = function (e) {
          Object.assign(this.variables, e);
        }),
        (c.prototype.getLoopCharacteristics = function (e) {
          if (e) return new (s(e.$type))(e, this);
        }),
        (c.prototype.getState = function () {
          return {
            variables: JSON.parse(JSON.stringify(this.variables)),
            services: JSON.parse(JSON.stringify(this.services)),
            children:
              ((e = this.children),
              Object.keys(e).reduce(function (t, n) {
                return t.push(e[n].getState()), t;
              }, [])),
          };
          var e;
        }),
        (c.prototype.getPendingActivities = function () {
          return (
            (e = this.children),
            Object.keys(e).reduce(function (t, n) {
              var r = e[n];
              return r.entered && t.push(r.getState()), t;
            }, [])
          );
          var e;
        }),
        (c.prototype.getVariablesAndServices = function (e, t) {
          var n,
            r = Object.assign(e || {}, {
              variables: this.variables,
              services:
                ((n = this.services),
                Object.keys(n).reduce(function (e, t) {
                  var r = n[t];
                  return (e[t] = p(r)), e;
                }, {})),
            });
          return (
            t &&
              ((r.variables = Object.freeze(Object.assign({}, r.variables))),
              (r.services = Object.freeze(Object.assign({}, r.services)))),
            r
          );
        }),
        (c.prototype.getFrozenVariablesAndServices = function (e) {
          return this.getVariablesAndServices(e, !0);
        }),
        (c.prototype.resume = function (e) {
          (this.variables = Object.assign({}, e.variables)),
            (this.services = Object.assign({}, e.services));
        }),
        (c.prototype.getElementService = function (e) {
          var t = o.getElementService(e);
          if (t)
            return t.connector
              ? new (s(t.connector.$type))(t.connector, this)
              : new s.ServiceConnector(t, this);
        }),
        (c.prototype.getServiceByName = function (e) {
          var t = this.services[e];
          if (t) return p(t);
        }),
        (c.prototype.getErrorEventDefinition = function (e) {
          return o.getActivityErrorEventDefinition(e);
        }),
        (e.exports = c);
    }.call(this, n(11), '/', n(16)));
  },
  function (e, t, n) {
    (function (e) {
      function n(e, t) {
        for (var n = 0, r = e.length - 1; r >= 0; r--) {
          var i = e[r];
          '.' === i
            ? e.splice(r, 1)
            : '..' === i
            ? (e.splice(r, 1), n++)
            : n && (e.splice(r, 1), n--);
        }
        if (t) for (; n--; n) e.unshift('..');
        return e;
      }
      function r(e, t) {
        if (e.filter) return e.filter(t);
        for (var n = [], r = 0; r < e.length; r++) t(e[r], r, e) && n.push(e[r]);
        return n;
      }
      (t.resolve = function () {
        for (var t = '', i = !1, o = arguments.length - 1; o >= -1 && !i; o--) {
          var a = o >= 0 ? arguments[o] : e.cwd();
          if ('string' != typeof a)
            throw new TypeError('Arguments to path.resolve must be strings');
          a && ((t = a + '/' + t), (i = '/' === a.charAt(0)));
        }
        return (
          (i ? '/' : '') +
            (t = n(
              r(t.split('/'), function (e) {
                return !!e;
              }),
              !i,
            ).join('/')) || '.'
        );
      }),
        (t.normalize = function (e) {
          var o = t.isAbsolute(e),
            a = '/' === i(e, -1);
          return (
            (e = n(
              r(e.split('/'), function (e) {
                return !!e;
              }),
              !o,
            ).join('/')) ||
              o ||
              (e = '.'),
            e && a && (e += '/'),
            (o ? '/' : '') + e
          );
        }),
        (t.isAbsolute = function (e) {
          return '/' === e.charAt(0);
        }),
        (t.join = function () {
          var e = Array.prototype.slice.call(arguments, 0);
          return t.normalize(
            r(e, function (e, t) {
              if ('string' != typeof e)
                throw new TypeError('Arguments to path.join must be strings');
              return e;
            }).join('/'),
          );
        }),
        (t.relative = function (e, n) {
          function r(e) {
            for (var t = 0; t < e.length && '' === e[t]; t++);
            for (var n = e.length - 1; n >= 0 && '' === e[n]; n--);
            return t > n ? [] : e.slice(t, n - t + 1);
          }
          (e = t.resolve(e).substr(1)), (n = t.resolve(n).substr(1));
          for (
            var i = r(e.split('/')),
              o = r(n.split('/')),
              a = Math.min(i.length, o.length),
              s = a,
              u = 0;
            u < a;
            u++
          )
            if (i[u] !== o[u]) {
              s = u;
              break;
            }
          var c = [];
          for (u = s; u < i.length; u++) c.push('..');
          return (c = c.concat(o.slice(s))).join('/');
        }),
        (t.sep = '/'),
        (t.delimiter = ':'),
        (t.dirname = function (e) {
          if (('string' != typeof e && (e += ''), 0 === e.length)) return '.';
          for (var t = e.charCodeAt(0), n = 47 === t, r = -1, i = !0, o = e.length - 1; o >= 1; --o)
            if (47 === (t = e.charCodeAt(o))) {
              if (!i) {
                r = o;
                break;
              }
            } else i = !1;
          return -1 === r ? (n ? '/' : '.') : n && 1 === r ? '/' : e.slice(0, r);
        }),
        (t.basename = function (e, t) {
          var n = (function (e) {
            'string' != typeof e && (e += '');
            var t,
              n = 0,
              r = -1,
              i = !0;
            for (t = e.length - 1; t >= 0; --t)
              if (47 === e.charCodeAt(t)) {
                if (!i) {
                  n = t + 1;
                  break;
                }
              } else -1 === r && ((i = !1), (r = t + 1));
            return -1 === r ? '' : e.slice(n, r);
          })(e);
          return t && n.substr(-1 * t.length) === t && (n = n.substr(0, n.length - t.length)), n;
        }),
        (t.extname = function (e) {
          'string' != typeof e && (e += '');
          for (var t = -1, n = 0, r = -1, i = !0, o = 0, a = e.length - 1; a >= 0; --a) {
            var s = e.charCodeAt(a);
            if (47 !== s)
              -1 === r && ((i = !1), (r = a + 1)),
                46 === s ? (-1 === t ? (t = a) : 1 !== o && (o = 1)) : -1 !== t && (o = -1);
            else if (!i) {
              n = a + 1;
              break;
            }
          }
          return -1 === t || -1 === r || 0 === o || (1 === o && t === r - 1 && t === n + 1)
            ? ''
            : e.slice(t, r);
        });
      var i =
        'b' === 'ab'.substr(-1)
          ? function (e, t, n) {
              return e.substr(t, n);
            }
          : function (e, t, n) {
              return t < 0 && (t = e.length + t), e.substr(t, n);
            };
    }.call(this, n(16)));
  },
  function (e, t, n) {
    'use strict';
    var r = n(58),
      i = n(205),
      o = n(102);
    function a(e) {
      (this.condition = function (e) {
        if (!e.conditionExpression) return null;
        if (!e.conditionExpression.hasOwnProperty('language'))
          return new u(e.conditionExpression.body);
        if (!o.isJavascript(e.conditionExpression.language))
          throw Error(
            'Script format '
              .concat(e.conditionExpression.language, ' is unsupported (<')
              .concat(e.id, '>)'),
          );
        return new s(o.parse(''.concat(e.id, '.condition'), e.conditionExpression.body));
      }.call(this, e.element)),
        i.apply(this, arguments),
        (this.isDefault = this.parentContext.isDefaultSequenceFlow(this.id));
    }
    function s(e) {
      this.execute = function (t) {
        return o.execute(e, t);
      };
    }
    function u(e) {
      this.execute = function (t) {
        return r(e, t);
      };
    }
    (a.prototype = Object.create(i.prototype)),
      (a.prototype.executeCondition = function (e) {
        var t = this.condition.execute(e);
        return (
          this._debug('<'.concat(this.id, '>'), 'condition result evaluated to '.concat(t), e), t
        );
      }),
      (a.prototype.evaluateCondition = function (e) {
        if (this.condition) {
          var t = this.parentContext.getFrozenVariablesAndServices(
            Object.assign({ flowId: this.id }, e || {}),
          );
          return this.executeCondition(t);
        }
        return !0;
      }),
      (e.exports = a);
  },
  function (module, exports) {
    function _typeof(e) {
      return (_typeof =
        '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;
            })(e);
    }
    var indexOf = function (e, t) {
        if (e.indexOf) return e.indexOf(t);
        for (var n = 0; n < e.length; n++) if (e[n] === t) return n;
        return -1;
      },
      Object_keys = function (e) {
        if (Object.keys) return Object.keys(e);
        var t = [];
        for (var n in e) t.push(n);
        return t;
      },
      forEach = function (e, t) {
        if (e.forEach) return e.forEach(t);
        for (var n = 0; n < e.length; n++) t(e[n], n, e);
      },
      defineProp = (function () {
        try {
          return (
            Object.defineProperty({}, '_', {}),
            function (e, t, n) {
              Object.defineProperty(e, t, {
                writable: !0,
                enumerable: !1,
                configurable: !0,
                value: n,
              });
            }
          );
        } catch (e) {
          return function (e, t, n) {
            e[t] = n;
          };
        }
      })(),
      globals = [
        'Array',
        'Boolean',
        'Date',
        'Error',
        'EvalError',
        'Function',
        'Infinity',
        'JSON',
        'Math',
        'NaN',
        'Number',
        'Object',
        'RangeError',
        'ReferenceError',
        'RegExp',
        'String',
        'SyntaxError',
        'TypeError',
        'URIError',
        'decodeURI',
        'decodeURIComponent',
        'encodeURI',
        'encodeURIComponent',
        'escape',
        'eval',
        'isFinite',
        'isNaN',
        'parseFloat',
        'parseInt',
        'undefined',
        'unescape',
      ];
    function Context() {}
    Context.prototype = {};
    var Script = (exports.Script = function (e) {
      if (!(this instanceof Script)) return new Script(e);
      this.code = e;
    });
    (Script.prototype.runInContext = function (e) {
      if (!(e instanceof Context)) throw new TypeError("needs a 'context' argument.");
      var t = document.createElement('iframe');
      t.style || (t.style = {}), (t.style.display = 'none'), document.body.appendChild(t);
      var n = t.contentWindow,
        r = n.eval,
        i = n.execScript;
      !r && i && (i.call(n, 'null'), (r = n.eval)),
        forEach(Object_keys(e), function (t) {
          n[t] = e[t];
        }),
        forEach(globals, function (t) {
          e[t] && (n[t] = e[t]);
        });
      var o = Object_keys(n),
        a = r.call(n, this.code);
      return (
        forEach(Object_keys(n), function (t) {
          (t in e || -1 === indexOf(o, t)) && (e[t] = n[t]);
        }),
        forEach(globals, function (t) {
          t in e || defineProp(e, t, n[t]);
        }),
        document.body.removeChild(t),
        a
      );
    }),
      (Script.prototype.runInThisContext = function () {
        return eval(this.code);
      }),
      (Script.prototype.runInNewContext = function (e) {
        var t = Script.createContext(e),
          n = this.runInContext(t);
        return (
          e &&
            forEach(Object_keys(t), function (n) {
              e[n] = t[n];
            }),
          n
        );
      }),
      forEach(Object_keys(Script.prototype), function (e) {
        exports[e] = Script[e] = function (t) {
          var n = Script(t);
          return n[e].apply(n, [].slice.call(arguments, 1));
        };
      }),
      (exports.isContext = function (e) {
        return e instanceof Context;
      }),
      (exports.createScript = function (e) {
        return exports.Script(e);
      }),
      (exports.createContext = Script.createContext =
        function (e) {
          var t = new Context();
          return (
            'object' === _typeof(e) &&
              forEach(Object_keys(e), function (n) {
                t[n] = e[n];
              }),
            t
          );
        });
  },
  function (e, t, n) {
    'use strict';
    var r = n(205);
    function i() {
      r.apply(this, arguments), (this.outboundMessage = !0);
    }
    (i.prototype = Object.create(r.prototype)),
      (i.prototype.take = function (e) {
        var t = r.prototype.take.apply(this, arguments);
        return (
          this._debug('<'.concat(this.id, '>'), 'send message:', e),
          this.emit('message', e, this),
          t
        );
      }),
      (e.exports = i);
  },
  function (e, t, n) {
    'use strict';
    var r = n(76);
    e.exports = function (e) {
      var t = Array.prototype.slice.call(arguments),
        n = r(e.eventDefinitions[0].$type);
      return new (Function.prototype.bind.apply(n, [null].concat(t)))();
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(76);
    e.exports = function (e) {
      var t = Array.prototype.slice.call(arguments),
        n = r(e.eventDefinitions[0].$type);
      return new (Function.prototype.bind.apply(n, [null].concat(t)))();
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(57);
    function i() {
      r.apply(this, arguments);
    }
    (i.prototype = Object.create(r.prototype)),
      (i.prototype.run = function () {
        r.prototype.run.call(this);
        var e = this.getInput();
        this.emit('start', this),
          this.emit('end', this, this.getOutput(e)),
          (this.taken = !0),
          function (e, t) {
            this._debug('<'.concat(this.id, '>'), 'take '.concat(e.length, ' sequence flows'));
            for (
              var n,
                r = e.find(function (e) {
                  return e.isDefault;
                }),
                i = e.filter(function (e) {
                  return !e.isDefault;
                }),
                o = [],
                a = 0;
              a < i.length;
              a++
            ) {
              var s = i[a];
              !n && s.evaluateCondition(t) ? (n = s) : o.push(s);
            }
            if (!n && r)
              this._debug('<'.concat(this.id, '> take default flow <').concat(r.id, '>')),
                r.take(),
                i.forEach(function (e) {
                  return e.discard();
                });
            else {
              if (!n)
                return this.emit(
                  'error',
                  new Error('No conditional flow was taken from <'.concat(this.id, '>')),
                  this,
                );
              r && o.push(r),
                this._debug('<'.concat(this.id, '> take conditional flow <').concat(n.id, '>')),
                n.take(),
                o.forEach(function (e) {
                  return e.discard();
                });
            }
            this.leave();
          }.call(this, this.outbound, e);
      }),
      (e.exports = i);
  },
  function (e, t, n) {
    'use strict';
    var r = n(57);
    function i() {
      r.apply(this, arguments),
        (this.join = this.inbound.length > 1),
        (this.fork = this.outbound.length > 1);
    }
    function o() {
      this.join &&
        (this.pendingInbound || (this.pendingInbound = this.inbound.slice()),
        (this.pendingJoin = !0)),
        this.fork &&
          (this.pendingOutbound || (this.pendingOutbound = this.outbound.slice()),
          (this.pendingFork = !0)),
        this.discardedInbound || (this.discardedInbound = []),
        (this.taken = !1),
        r.prototype.run.call(this);
    }
    function a(e) {
      if (!this.pendingJoin)
        return s.call(this)
          ? this.outbound.forEach(function (t) {
              return t.discard(e);
            })
          : this.pendingFork
          ? this.pendingOutbound.forEach(function (t) {
              return t.take(e);
            })
          : this.isEnd
          ? void this.complete()
          : this.outbound.forEach(function (t) {
              return t.take(e);
            });
    }
    function s() {
      return !this.isStart && this.inbound.length === this.discardedInbound.length;
    }
    (i.prototype = Object.create(r.prototype)),
      (i.prototype.run = function () {
        o.call(this), a.call(this);
      }),
      (i.prototype.activate = function () {
        var e = this;
        r.prototype.activate.apply(this, arguments),
          (this._onOutbound = this.onOutbound.bind(this)),
          this.outbound.forEach(function (t) {
            t.on('taken', e._onOutbound), t.on('discarded', e._onOutbound);
          });
      }),
      (i.prototype.deactivate = function () {
        var e = this;
        r.prototype.deactivate.apply(this, arguments),
          this.outbound.forEach(function (t) {
            t.removeListener('taken', e._onOutbound), t.removeListener('discarded', e._onOutbound);
          });
      }),
      (i.prototype.onInbound = function (e, t) {
        return (
          this.discardedInbound || o.call(this),
          this.join
            ? function (e, t) {
                e.discarded && this.discardedInbound.push(e);
                var n = this.pendingInbound.indexOf(e);
                if (
                  (this.pendingInbound.splice(n, 1),
                  this._debug(
                    '<'
                      .concat(this.id, '> join from ')
                      .concat(e.discarded ? 'discarded' : 'taken', ' <')
                      .concat(e.id, '> - pending ')
                      .concat(this.pendingInbound.length),
                  ),
                  0 === this.pendingInbound.length)
                )
                  return (this.pendingJoin = !1), a.call(this, t);
                this.inbound.length - this.pendingInbound.length == 1 &&
                  ((this.taken = !0), this.emit('start', this));
              }.call(this, e, t)
            : function (e, t) {
                e.discarded && this.discardedInbound.push(e);
                return a.call(this, t);
              }.call(this, e, t)
        );
      }),
      (i.prototype.onOutbound = function (e) {
        if (!this.pendingOutbound) return this.complete();
        var t = this.pendingOutbound.indexOf(e);
        this.pendingOutbound.splice(t, 1),
          this._debug(
            '<'
              .concat(this.id, '> outbound flow <')
              .concat(e.id, '> ')
              .concat(e.discarded ? 'discarded' : 'taken', ' (')
              .concat(this.pendingOutbound.length, ')'),
          ),
          this.taken || ((this.taken = !0), this.emit('start', this)),
          0 === this.pendingOutbound.length &&
            (this._debug('<'.concat(this.id, '> all pending outbound completed')), this.complete());
      }),
      (i.prototype.complete = function () {
        var e = s.call(this);
        delete this.pendingInbound,
          delete this.pendingOutbound,
          delete this.discardedInbound,
          (this.pendingJoin = !1),
          (this.pendingFork = !1),
          e ? this._debug('<'.concat(this.id, '>'), 'was discarded') : this.emit('end', this),
          this.leave();
      }),
      (i.prototype.resume = function (e) {
        var t = this;
        e.hasOwnProperty('pendingJoin') && (this.pendingJoin = e.pendingJoin),
          e.pendingInbound &&
            (this.pendingInbound = e.pendingInbound.map(function (e) {
              return t.inbound.find(function (t) {
                return t.id === e;
              });
            })),
          e.discardedInbound &&
            (this.discardedInbound = e.discardedInbound.map(function (e) {
              return t.inbound.find(function (t) {
                return t.id === e;
              });
            })),
          e.pendingOutbound &&
            (this.pendingOutbound = e.pendingOutbound.map(function (e) {
              return t.outbound.find(function (t) {
                return t.id === e;
              });
            })),
          r.prototype.resume.apply(this, arguments);
      }),
      (i.prototype.getState = function () {
        var e = r.prototype.getState.apply(this, arguments);
        return (
          this.pendingJoin && (e.pendingJoin = this.pendingJoin),
          this.pendingInbound &&
            (e.pendingInbound = this.pendingInbound.map(function (e) {
              return e.id;
            })),
          this.discardedInbound &&
            (e.discardedInbound = this.discardedInbound.map(function (e) {
              return e.id;
            })),
          this.pendingOutbound &&
            (e.pendingOutbound = this.pendingOutbound.map(function (e) {
              return e.id;
            })),
          e
        );
      }),
      (e.exports = i);
  },
  function (e, t, n) {
    'use strict';
    var r = n(57);
    function i() {
      r.apply(this, arguments);
    }
    (i.prototype = Object.create(r.prototype)),
      (i.prototype.run = function () {
        r.prototype.run.call(this),
          this._debug('<'.concat(this.id, '>'), 'run'),
          this.emit('start', this),
          function (e) {
            var t = this;
            this._debug('<'.concat(this.id, '>'), 'take '.concat(e.length, ' sequence flows'));
            for (
              var n = this.getInput(),
                r = e.find(function (e) {
                  return e.isDefault;
                }),
                i = e.filter(function (e) {
                  return !e.isDefault;
                }),
                o = [],
                a = [],
                s = 0;
              s < i.length;
              s++
            ) {
              var u = i[s];
              u.evaluateCondition(n) ? o.push(u) : a.push(u);
            }
            if (!o.length && r)
              this._debug('<'.concat(this.id, '> take default flow <').concat(r.id, '>')),
                r.take(),
                i.forEach(function (e) {
                  return e.discard();
                });
            else {
              if (!o.length)
                return this.emit(
                  'error',
                  new Error('No conditional flow was taken from <'.concat(this.id, '>')),
                  this,
                );
              r && a.push(r),
                o.forEach(function (e) {
                  t._debug('<'.concat(t.id, '> take conditional flow <').concat(e.id, '>')),
                    e.take();
                }),
                a.forEach(function (e) {
                  return e.discard();
                });
            }
            this.leave();
          }.call(this, this.outbound, this.parentContext.variables);
      }),
      (e.exports = i);
  },
  function (e, t, n) {
    'use strict';
    var r = n(41);
    function i() {
      r.apply(this, arguments);
    }
    (i.prototype = Object.create(r.prototype)),
      (i.prototype.execute = function () {
        this._debug('<'.concat(this.id, '>'), 'execute'),
          this.emit('start', this),
          (this.waiting = !0),
          this.emit('wait', this);
      }),
      (i.prototype.signal = function (e) {
        if (!this.waiting)
          return this.emit('error', new Error('<'.concat(this.id, '> is not waiting')), this);
        (this.waiting = !1),
          (this.dataOutput = e),
          (this.taken = !0),
          this._debug('<'.concat(this.id, '>'), 'signaled', e),
          this.complete(e);
      }),
      (e.exports = i);
  },
  function (e, t, n) {
    'use strict';
    var r = n(41);
    function i() {
      r.apply(this, arguments);
    }
    (i.prototype = Object.create(r.prototype)),
      (i.prototype.execute = function () {
        this._debug('<'.concat(this.id, '>'), 'execute'),
          this.emit('start', this),
          (this.waiting = !0),
          this.emit('wait', this);
      }),
      (i.prototype.signal = function (e) {
        if (!this.waiting)
          return this.emit('error', new Error('<'.concat(this.id, '> is not waiting')), this);
        (this.waiting = !1),
          (this.dataOutput = e),
          (this.taken = !0),
          this._debug('<'.concat(this.id, '>'), 'signaled', e),
          this.complete(e);
      }),
      (e.exports = i);
  },
  function (e, t, n) {
    'use strict';
    var r = n(202);
    function i() {
      r.apply(this, arguments), (this.isSubProcess = !0);
    }
    (i.prototype = Object.create(r.prototype)),
      (i.prototype.run = function (e) {
        var t = this.getInput(e);
        return r.prototype.run.call(this, t);
      }),
      (e.exports = i);
  },
  function (e, t, n) {
    'use strict';
    var r = n(41),
      i = n(102);
    function o(e) {
      if (!i.isJavascript(e.scriptFormat))
        throw new Error(
          'Script format '.concat(e.scriptFormat, ' is unsupported (<').concat(e.id, '>)'),
        );
      r.apply(this, arguments),
        (this.script = i.parse(''.concat(this.id, '.script'), this.activity.script));
    }
    (o.prototype = Object.create(r.prototype)),
      (o.prototype.execute = function (e) {
        var t = this;
        this._debug('<'.concat(this.id, '>'), 'execute', e),
          (this.taken = !0),
          (this.inboundMessage = e),
          this.emit('start', this);
        var n = this.getInput(e),
          r = this.parentContext.getVariablesAndServices();
        this.executeScript(r, n, function (e, n) {
          e ? t.emit('error', e, t) : t.complete(n);
        });
      }),
      (o.prototype.executeScript = function (e, t, n) {
        i.execute(this.script, e, t, n);
      }),
      (e.exports = o);
  },
  function (e, t, n) {
    'use strict';
    var r = n(41),
      i = n(58);
    function o() {
      if (
        (r.apply(this, arguments),
        (this.service = function (e, t) {
          if (e.expression)
            return (
              this._debug('<'.concat(this.id, '>'), 'use expression '.concat(e.expression)),
              function (e) {
                var t = this;
                return {
                  name: e,
                  execute: function (n, r, o) {
                    var a = i(e, n.parentContext.getVariablesAndServices());
                    if ('function' != typeof a)
                      return t.emit(
                        'error',
                        new Error('Expression '.concat(e, ' did not resolve to a function')),
                        t,
                      );
                    a(r, function (e) {
                      var t = Array.prototype.slice.call(arguments, 1);
                      o(e, t);
                    });
                  },
                };
              }.call(this, e.expression)
            );
          return t.getElementService(e);
        }.call(this, this.activity, this.parentContext)),
        !this.service)
      )
        throw new Error('No service defined for <'.concat(this.id, '>'));
      this.resultVariable = this.activity.resultVariable;
    }
    (o.prototype = Object.create(r.prototype)),
      (o.prototype.execute = function (e) {
        this._debug('<'.concat(this.id, '>'), 'execute '.concat(this.service.name)),
          (this.taken = !0),
          this.emit('start', this);
        var t = this;
        var n = t.getInput(e);
        return this.service.execute(this, n, function (e, n) {
          if (e) return t.emit('error', e, t);
          if (t.resultVariable) {
            var r = {};
            return (r[t.resultVariable] = n), t.complete(r);
          }
          return t.complete(n);
        });
      }),
      (o.prototype.getInput = function (e) {
        return this.io ? this.io.getInput(e, !0) : this.parentContext.getVariablesAndServices(e);
      }),
      (e.exports = o);
  },
  function (e, t, n) {
    'use strict';
    var r = n(41);
    function i() {
      r.apply(this, arguments);
    }
    (i.prototype = Object.create(r.prototype)),
      (i.prototype.execute = function (e) {
        this.emit('start', this), this.complete(e);
      }),
      (e.exports = i);
  },
  function (e, t, n) {
    'use strict';
    var r = n(41);
    function i() {
      r.apply(this, arguments);
    }
    (i.prototype = Object.create(r.prototype)),
      (i.prototype.execute = function (e) {
        this.emit('start', this), this.complete(e);
      }),
      (e.exports = i);
  },
  function (e, t, n) {
    'use strict';
    var r = n(41);
    function i() {
      r.apply(this, arguments),
        this._debug('<'.concat(this.id, '> ').concat(this.uuid), 'init'),
        (this.form = this.parentContext.getActivityForm(this.activity));
    }
    (i.prototype = Object.create(r.prototype)),
      (i.prototype.execute = function (e) {
        this._debug('<'.concat(this.id, '>'), 'execute'),
          this.form && this.form.init(this.getInput(e)),
          this.emit('start', this),
          (this.waiting = !0),
          this.emit('wait', this);
      }),
      (i.prototype.signal = function (e) {
        if (!this.waiting)
          return this.emit('error', new Error('<'.concat(this.id, '> is not waiting')), this);
        (this.waiting = !1),
          (this.dataOutput = e),
          (this.taken = !0),
          this._debug('<'.concat(this.id, '>'), 'signaled', e),
          this.complete(e);
      }),
      (i.prototype.getState = function () {
        var e = r.prototype.getState.call(this);
        return (
          this.waiting && (e.waiting = this.waiting),
          this.form && (e.form = this.form.getState()),
          e
        );
      }),
      (e.exports = i);
  },
  function (e, t, n) {
    'use strict';
    var r = n(57),
      i = {};
    (e.exports = i.StartEvent =
      function (e, t) {
        r.call(this, e, t),
          (this.isStart = !0),
          (this.isStartEvent = !0),
          (this.form = this.parentContext.getActivityForm(e)),
          (this.saveToVariables = !!this.form);
      }),
      (i.StartEvent.prototype = Object.create(r.prototype)),
      (i.StartEvent.prototype.run = function () {
        if ((this.enter(), this.emit('start', this), this.form))
          return this.form.init(), (this.waiting = !0), this.emit('wait', this);
        this.emit('end', this), this.takeAllOutbound();
      }),
      (i.StartEvent.prototype.signal = function (e) {
        if (!this.waiting)
          return this.emit('error', Error('<'.concat(this.id, '> is not waiting')), this);
        (this.waiting = !1), this._debug('<'.concat(this.id, '>'), 'signaled', e), this.complete(e);
      }),
      (i.StartEvent.prototype.complete = function (e) {
        var t = this.getOutput(e);
        this.emit('end', this, t), this.takeAllOutbound(t);
      }),
      (i.StartEvent.prototype.getState = function () {
        var e = r.prototype.getState.call(this);
        return (
          this.waiting && (e.waiting = this.waiting),
          this.form && (e.form = this.form.getState()),
          e
        );
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(75),
      i = n(57),
      o = {};
    (e.exports = o.Event =
      function () {
        i.apply(this, arguments),
          (this.isEnd = !0),
          (this.taken = !1),
          (this.terminate = r.isTerminationElement(this.activity));
      }),
      (o.Event.prototype = Object.create(i.prototype)),
      (o.Event.prototype.run = function () {
        i.prototype.run.call(this), (this.taken = !0), this.emit('end', this), this.leave();
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(141),
      i = n(58),
      o = n(513),
      a = {};
    (e.exports = a.TimerEvent =
      function () {
        r.apply(this, arguments),
          (this.duration = this.eventDefinition.timeDuration.body),
          this._debug('<'.concat(this.id, '>'), 'timeout '.concat(this.duration));
      }),
      (a.TimerEvent.prototype = Object.create(r.prototype)),
      (a.TimerEvent.prototype.run = function () {
        var e = this;
        delete this.stoppedAt,
          (this.startedAt = new Date()),
          (this.timeout = this.hasOwnProperty('timeout')
            ? this.timeout
            : function (e) {
                return (
                  (e = i(e, this.parentContext.getFrozenVariablesAndServices())),
                  1e3 * o.toSeconds(o.parse(e))
                );
              }.call(this, this.duration)),
          this._debug('<'.concat(this.id, '>'), 'run for duration '.concat(this.timeout, 'ms')),
          (this.timer = setTimeout(function () {
            e._debug('<'.concat(e.id, '>'), 'timed out'), delete e.timeout, e.complete();
          }, this.timeout)),
          this.emit('start', this),
          r.prototype.run.call(this);
      }),
      (a.TimerEvent.prototype.discard = function () {
        this._debug('<'.concat(this.id, '>'), 'cancel timeout '.concat(this.timeout, 'ms')),
          clearTimeout(this.timer),
          delete this.timer,
          r.prototype.discard.call(this);
      }),
      (a.TimerEvent.prototype.onAttachedEnd = function (e) {
        this._debug('<'.concat(this.id, '>'), 'activity <'.concat(e.id, '> ended')),
          this.cancelActivity && this.discard();
      }),
      (a.TimerEvent.prototype.resume = function (e) {
        e.hasOwnProperty('timeout') &&
          (this._debug('<'.concat(this.id, '>'), 'resume from '.concat(e.timeout, 'ms')),
          (this.timeout = e.timeout));
      }),
      (a.TimerEvent.prototype.deactivate = function () {
        r.prototype.deactivate.apply(this, arguments),
          (this.stoppedAt = new Date()),
          this.timer && clearTimeout(this.timer);
      }),
      (a.TimerEvent.prototype.getState = function () {
        var e = r.prototype.getState.apply(this, arguments);
        if (!this.entered) return e;
        var t = this.stoppedAt || new Date();
        return Object.assign(e, {
          timeout: this.timeout - (t - this.startedAt),
          attachedToId: this.attachedTo.id,
        });
      });
  },
  function (e, t, n) {
    'use strict';
    Object.defineProperty(t, '__esModule', { value: !0 });
    var r = ['weeks', 'years', 'months', 'days', 'hours', 'minutes', 'seconds'],
      i = (t.pattern = new RegExp(
        'P(?:(\\d+(?:[\\.,]\\d+)?W)|(\\d+(?:[\\.,]\\d+)?Y)?(\\d+(?:[\\.,]\\d+)?M)?(\\d+(?:[\\.,]\\d+)?D)?(?:T(\\d+(?:[\\.,]\\d+)?H)?(\\d+(?:[\\.,]\\d+)?M)?(\\d+(?:[\\.,]\\d+)?S)?)?)',
      )),
      o = (t.parse = function (e) {
        return e
          .match(i)
          .slice(1)
          .reduce(function (e, t, n) {
            return (e[r[n]] = parseFloat(t) || 0), e;
          }, {});
      }),
      a = (t.end = function (e, t) {
        var n = t ? t.getTime() : Date.now(),
          r = new Date(n);
        return (
          r.setFullYear(r.getFullYear() + e.years),
          r.setMonth(r.getMonth() + e.months),
          r.setDate(r.getDate() + e.days),
          r.setHours(r.getHours() + e.hours),
          r.setMinutes(r.getMinutes() + e.minutes),
          r.setMilliseconds(r.getMilliseconds() + 1e3 * e.seconds),
          r.setDate(r.getDate() + 7 * e.weeks),
          r
        );
      }),
      s = (t.toSeconds = function (e, t) {
        var n = t ? t.getTime() : Date.now(),
          r = new Date(n);
        return (a(e, r).getTime() - r.getTime()) / 1e3;
      });
    t.default = { end: a, toSeconds: s, pattern: i, parse: o };
  },
  function (e, t, n) {
    'use strict';
    var r = n(141),
      i = {};
    (e.exports = i.ErrorEventDefinition =
      function () {
        r.apply(this, arguments),
          (this.saveToVariables = !1),
          (this.eventDefinition = this.parentContext.getErrorEventDefinition(this.activity));
      }),
      (i.ErrorEventDefinition.prototype = Object.create(r.prototype)),
      (i.ErrorEventDefinition.prototype.onAttachedError = function (e, t) {
        t &&
          this._debug('<'.concat(this.id, '> error from <').concat(t.id, '> caught:'), e.message);
        var n = function (e) {
          var t = {};
          e.message &&
            this.eventDefinition.errorMessageVariable &&
            ((this.saveToVariables = !0),
            (t[this.eventDefinition.errorMessageVariable] = e.message));
          e.code &&
            this.eventDefinition.errorCodeVariable &&
            ((this.saveToVariables = !0), (t[this.eventDefinition.errorCodeVariable] = e.code));
          if (!this.saveToVariables) return;
          return t;
        }.call(this, e);
        r.prototype.complete.call(this, n);
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(141),
      i = {};
    (e.exports = i.MessageEvent =
      function () {
        r.apply(this, arguments);
      }),
      (i.MessageEvent.prototype = Object.create(r.prototype)),
      (i.MessageEvent.prototype.signal = function (e) {
        (this.message = e),
          (this.taken = !0),
          this._debug('<'.concat(this.id, '>'), 'signaled'),
          this.complete(e);
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(17)('bpmn-engine:bpmn:multiinstanceloopcharacteristics'),
      i = n(58),
      o = n(102),
      a = n(204);
    function s(e, t) {
      if (
        ((this.type = e.$type),
        (this.isSequential = e.isSequential),
        (this.parentContext = t),
        (this.characteristics = (function (e) {
          var t = {};
          e.collection && ((t.type = 'collection'), (t.collection = e.collection));
          e.completionCondition &&
            e.completionCondition.body &&
            (i.isExpression(e.completionCondition.body)
              ? (t.conditionExpression = e.completionCondition.body)
              : (t.condition = o.parse('characteristics.condition', e.completionCondition.body)),
            (t.type = t.type || 'condition'));
          if (e.loopCardinality && e.loopCardinality.body) {
            if (i.isExpression(e.loopCardinality.body))
              t.cardinalityExpression = e.loopCardinality.body;
            else {
              var n = Number(e.loopCardinality.body);
              isNaN(n) || (t.cardinality = n);
            }
            t.type ||
              (!t.cardinalityExpression && isNaN(t.cardinality)) ||
              (t.type = 'cardinality');
          }
          return t;
        })(e)),
        !this.characteristics.type)
      )
        throw new Error('Cardinality, condition expression, or collection must be defined');
      r(''.concat(this.characteristics.type, ' loop type')),
        (this.iteration = 0),
        (this.completed = !1);
    }
    (s.prototype.run = function (e, t, n, s) {
      if (this.stop) return (this.completed = !0), s && s(new a('Stopped'), !0);
      if (
        (r('run', e, t), this.iteration++, (this.completed = !1), this.characteristics.collection)
      ) {
        var u = this.getCollection(e);
        u.length <= 1
          ? ((this.completed = !0), r('completed collection', this.completed))
          : (this.item = u[0]);
      }
      if (
        (this.completed ||
          (!this.characteristics.condition && !this.characteristics.conditionExpression) ||
          ((this.completed = (function (e, t, n) {
            if (e.condition) return o.execute(e.condition, t, n);
            return i(e.conditionExpression, t);
          })(this.characteristics, e, t)),
          r('completed condition', this.completed)),
        !this.completed)
      ) {
        var c = (function (e, t) {
          var n;
          if (e.cardinality > -1) n = e.cardinality;
          else if (
            e.cardinalityExpression &&
            ((n = Number(i(e.cardinalityExpression, t))), isNaN(n))
          )
            throw new Error(
              'Cardinality expression '.concat(e.cardinalityExpression, ' returned not a number'),
            );
          return n;
        })(this.characteristics, e);
        void 0 !== c &&
          ((this.completed = this.iteration >= c), r('cardinality check', this.completed));
      }
      return s && s(null, this.completed), this.completed;
    }),
      (s.prototype.getCollection = function () {
        var e = i(this.characteristics.collection, this.parentContext.getVariablesAndServices());
        return this.iteration > 0 && (e = e.slice(this.iteration)), e;
      }),
      (s.prototype.deactivate = function () {
        r('stopped'), (this.stop = !0);
      }),
      (s.prototype.getState = function () {
        var e = {
          isSequential: this.isSequential,
          iteration: this.iteration,
          characteristics: { type: this.characteristics.type },
        };
        return (
          this.characteristics.hasOwnProperty('cardinality') &&
            (e.characteristics.cardinality = this.characteristics.cardinality),
          e
        );
      }),
      (s.prototype.reset = function () {
        this.iteration = 0;
      }),
      (s.prototype.resume = function (e) {
        (this.iteration = e.iteration + 1), r('resume at iteration '.concat(e.iteration));
      }),
      (e.exports = s);
  },
  function (e, t, n) {
    'use strict';
    var r = n(17),
      i = n(206);
    function o(e, t) {
      (this.type = e.$type),
        (this.parentContext = t),
        (this._debug = r('bpmn-engine:io:'.concat(this.type.toLowerCase()))),
        (this.activity = e),
        function () {
          (this.input = this.activity.inputParameters && this.activity.inputParameters.map(i)),
            (this.output = this.activity.outputParameters && this.activity.outputParameters.map(i));
        }.call(this),
        (this.hasOutput = this.output && this.output.length);
    }
    (o.prototype.getInput = function (e, t) {
      var n = {};
      if (!this.input)
        return (
          this._debug('no input parameters, return variables and services'),
          this.parentContext.getVariablesAndServices(e, !t)
        );
      this._debug('get input from', e || 'variables');
      var r = this.parentContext && this.parentContext.getFrozenVariablesAndServices();
      return (
        this.input.forEach(function (t) {
          n[t.name] = t.getInputValue(e, r);
        }),
        n
      );
    }),
      (o.prototype.getOutput = function (e) {
        var t = {};
        if (!this.output) return e;
        var n = this.parentContext && this.parentContext.getFrozenVariablesAndServices();
        return (
          this._debug('get output', e),
          this.output.forEach(function (r) {
            t[r.name] = r.getOutputValue(e, n);
          }),
          t
        );
      }),
      (e.exports = o);
  },
  function (e, t, n) {
    'use strict';
    var r = n(17),
      i = n(58);
    function o(e) {
      (this.type = e.$type),
        (this._debug = r('bpmn-engine:properties:'.concat(this.type.toLowerCase()))),
        (this.activity = e),
        function () {
          this.propertyValues = this.activity.values.filter(function (e) {
            return e.name;
          });
        }.call(this);
    }
    (o.prototype.getValues = function (e) {
      var t = this,
        n = {};
      return (
        this.propertyValues.forEach(function (r) {
          t._debug('get property value', r.name),
            (n[r.name] = i.hasExpression(r.value) ? i(r.value, e) : r.value);
        }),
        n
      );
    }),
      (e.exports = o);
  },
  function (e, t, n) {
    'use strict';
    var r = n(17)('bpmn-engine:form'),
      i = n(58);
    function o(e, t) {
      (this.formData = e), (this.parentContext = t), (this.fields = []);
    }
    (o.prototype.init = function (e) {
      this.formData.formKey &&
        (this.key = function (e) {
          if (!i.hasExpression(this.formData.formKey)) return this.formData.formKey;
          var t = this.parentContext.getFrozenVariablesAndServices(e);
          return (
            r('resolve formKey "'.concat(this.formData.formKey, '" value expression')),
            i(this.formData.formKey, t)
          );
        }.call(this, e)),
        this.formData.fields &&
          (this.fields = function (e) {
            var t = this.parentContext.getFrozenVariablesAndServices(e);
            return this.formData.fields.map(function (e) {
              var n = Object.assign({}, e);
              return (
                i.hasExpression(n.defaultValue) &&
                  (r('resolve field <'.concat(n.id, '> default value expression')),
                  (n.defaultValue = i(n.defaultValue, t))),
                n
              );
            });
          }.call(this, e));
    }),
      (o.prototype.getFields = function () {
        return this.fields;
      }),
      (o.prototype.getState = function () {
        var e = {};
        return (
          this.key && (e.key = this.key),
          this.formData.fields &&
            (e.fields = this.formData.fields.map(function (e) {
              return { id: e.id, label: e.label, type: e.type };
            })),
          e
        );
      }),
      (e.exports = o);
  },
  function (e, t, n) {
    'use strict';
    var r = n(17)('bpmn-engine:service'),
      i = n(206);
    function o(e, t) {
      (this.type = e.$type || 'string'),
        (this.name = e.connectorId || e.name),
        r('<'.concat(this.name, '>'), 'type', this.type),
        (this.connector = e),
        (this.parentContext = t),
        this.connector.inputOutput &&
          function (e) {
            e.inputOutput.inputParameters && (this.input = e.inputOutput.inputParameters.map(a));
            e.inputOutput.outputParameters && (this.output = e.inputOutput.outputParameters.map(a));
          }.call(this, e);
    }
    function a(e) {
      return i(Object.assign({ positional: !0 }, e));
    }
    (o.prototype.execute = function (e, t, n) {
      var i = this,
        o = this.getInputArguments(t);
      return (
        o.push(function () {
          var e = Array.prototype.slice.call(arguments, 0),
            t = e[0],
            o = i.getOutput(e.slice(1));
          return r('<'.concat(i.name, '>'), 'completed'), n.apply(null, [t, o]);
        }),
        r('<'.concat(this.name, '>'), 'execute with', o),
        i.parentContext.getServiceByName(this.name).apply(null, o)
      );
    }),
      (o.prototype.getInputArguments = function (e) {
        return this.input
          ? this.input.map(function (t) {
              return t.getInputValue(e);
            })
          : [e];
      }),
      (o.prototype.getOutput = function (e) {
        return this.output
          ? this.output.reduce(function (t, n, r) {
              return (t[n.name] = e[r]), t;
            }, {})
          : e;
      }),
      (e.exports = o);
  },
  function (e, t, n) {
    e.exports = n(522);
  },
  function (e, t, n) {
    'use strict';
    var r = n(103),
      i = n(531),
      o = { bpmn: n(608), bpmndi: n(609), dc: n(610), di: n(611), bioc: n(612) };
    e.exports = function (e, t) {
      return new i(r({}, o, e), t);
    };
  },
  function (e, t, n) {
    var r = n(77);
    e.exports = function (e, t, n) {
      for (var i = -1, o = r(t), a = o.length; ++i < a; ) {
        var s = o[i],
          u = e[s],
          c = n(u, t[s], s, e, t);
        ((c == c ? c === u : u != u) && (void 0 !== u || s in e)) || (e[s] = c);
      }
      return e;
    };
  },
  function (e, t, n) {
    var r = n(209),
      i = n(64),
      o = /^\[object .+?Constructor\]$/,
      a = Object.prototype,
      s = Function.prototype.toString,
      u = a.hasOwnProperty,
      c = RegExp(
        '^' +
          s
            .call(u)
            .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
            .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') +
          '$',
      );
    e.exports = function (e) {
      return null != e && (r(e) ? c.test(s.call(e)) : i(e) && o.test(e));
    };
  },
  function (e, t, n) {
    var r = n(212),
      i = n(27),
      o = n(143),
      a = n(65),
      s = n(526),
      u = Object.prototype.hasOwnProperty;
    e.exports = function (e) {
      for (
        var t = s(e),
          n = t.length,
          c = n && e.length,
          p = !!c && a(c) && (i(e) || r(e)),
          f = -1,
          l = [];
        ++f < n;

      ) {
        var h = t[f];
        ((p && o(h, c)) || u.call(e, h)) && l.push(h);
      }
      return l;
    };
  },
  function (e, t, n) {
    var r = n(212),
      i = n(27),
      o = n(143),
      a = n(65),
      s = n(59),
      u = Object.prototype.hasOwnProperty;
    e.exports = function (e) {
      if (null == e) return [];
      s(e) || (e = Object(e));
      var t = e.length;
      t = (t && a(t) && (i(e) || r(e)) && t) || 0;
      for (
        var n = e.constructor,
          c = -1,
          p = 'function' == typeof n && n.prototype === e,
          f = Array(t),
          l = t > 0;
        ++c < t;

      )
        f[c] = c + '';
      for (var h in e) (l && o(h, t)) || ('constructor' == h && (p || !u.call(e, h))) || f.push(h);
      return f;
    };
  },
  function (e, t, n) {
    var r = n(528),
      i = n(77);
    e.exports = function (e, t) {
      return null == t ? e : r(t, i(t), e);
    };
  },
  function (e, t) {
    e.exports = function (e, t, n) {
      n || (n = {});
      for (var r = -1, i = t.length; ++r < i; ) {
        var o = t[r];
        n[o] = e[o];
      }
      return n;
    };
  },
  function (e, t, n) {
    var r = n(144),
      i = n(530),
      o = n(214);
    e.exports = function (e) {
      return o(function (t, n) {
        var o = -1,
          a = null == t ? 0 : n.length,
          s = a > 2 ? n[a - 2] : void 0,
          u = a > 2 ? n[2] : void 0,
          c = a > 1 ? n[a - 1] : void 0;
        for (
          'function' == typeof s
            ? ((s = r(s, c, 5)), (a -= 2))
            : (a -= (s = 'function' == typeof c ? c : void 0) ? 1 : 0),
            u && i(n[0], n[1], u) && ((s = a < 3 ? void 0 : s), (a = 1));
          ++o < a;

        ) {
          var p = n[o];
          p && e(t, p, s);
        }
        return t;
      });
    };
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(104),
      o = n(143),
      a = n(59);
    e.exports = function (e, t, n) {
      if (!a(n)) return !1;
      var s = r(t);
      if ('number' == s ? i(n) && o(t, n.length) : 'string' == s && t in n) {
        var u = n[t];
        return e == e ? e === u : u != u;
      }
      return !1;
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(215),
      i = n(209),
      o = n(103),
      a = n(216),
      s = n(561),
      u = n(601);
    function c(e, t) {
      a.call(this, e, t);
    }
    (c.prototype = Object.create(a.prototype)),
      (e.exports = c),
      (c.prototype.fromXML = function (e, t, n, a) {
        r(t) || ((a = n), (n = t), (t = 'bpmn:Definitions')), i(n) && ((a = n), (n = {}));
        var u = new s(o({ model: this, lax: !0 }, n)),
          c = u.handler(t);
        u.fromXML(e, c, a);
      }),
      (c.prototype.toXML = function (e, t, n) {
        i(t) && ((n = t), (t = {}));
        var r = new u(t);
        try {
          n(null, r.toXML(e));
        } catch (e) {
          n(e);
        }
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(533),
      i = n(66),
      o = n(105),
      a = n(545),
      s = n(547),
      u = n(560),
      c = n(80).parseName;
    function p(e) {
      (this.properties = new u(this)),
        (this.factory = new a(this, this.properties)),
        (this.registry = new s(e, this.properties)),
        (this.typeCache = {});
    }
    (e.exports = p),
      (p.prototype.create = function (e, t) {
        var n = this.getType(e);
        if (!n) throw new Error('unknown type <' + e + '>');
        return new n(t);
      }),
      (p.prototype.getType = function (e) {
        var t = this.typeCache,
          n = r(e) ? e : e.ns.name,
          i = t[n];
        return (
          i ||
            ((e = this.registry.getEffectiveDescriptor(n)),
            (i = t[n] = this.factory.createType(e))),
          i
        );
      }),
      (p.prototype.createAny = function (e, t, n) {
        var r = c(e),
          a = {
            $type: e,
            $instanceOf: function (e) {
              return e === this.$type;
            },
          },
          s = { name: e, isGeneric: !0, ns: { prefix: r.prefix, localName: r.localName, uri: t } };
        return (
          this.properties.defineDescriptor(a, s),
          this.properties.defineModel(a, this),
          this.properties.define(a, '$parent', { enumerable: !1, writable: !0 }),
          o(n, function (e, t) {
            i(e) && void 0 !== e.value ? (a[e.name] = e.value) : (a[t] = e);
          }),
          a
        );
      }),
      (p.prototype.getPackage = function (e) {
        return this.registry.getPackage(e);
      }),
      (p.prototype.getPackages = function () {
        return this.registry.getPackages();
      }),
      (p.prototype.getElementDescriptor = function (e) {
        return e.$descriptor;
      }),
      (p.prototype.hasType = function (e, t) {
        return (
          void 0 === t && ((t = e), (e = this)),
          t in e.$model.getElementDescriptor(e).allTypesByName
        );
      }),
      (p.prototype.getPropertyDescriptor = function (e, t) {
        return this.getElementDescriptor(e).propertiesByName[t];
      }),
      (p.prototype.getTypeDescriptor = function (e) {
        return this.registry.typeMap[e];
      });
  },
  function (e, t, n) {
    var r = n(78),
      i = '[object String]',
      o = Object.prototype.toString;
    e.exports = function (e) {
      return 'string' == typeof e || (r(e) && o.call(e) == i);
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = e.length; ++n < r && !1 !== t(e[n], n, e); );
      return e;
    };
  },
  function (e, t, n) {
    var r = n(536),
      i = n(542)(r);
    e.exports = i;
  },
  function (e, t, n) {
    var r = n(217),
      i = n(146);
    e.exports = function (e, t) {
      return r(e, t, i);
    };
  },
  function (e, t, n) {
    var r = n(145);
    e.exports = function (e) {
      return function (t, n, i) {
        for (var o = r(t), a = i(t), s = a.length, u = e ? s : -1; e ? u-- : ++u < s; ) {
          var c = a[u];
          if (!1 === n(o[c], c, o)) break;
        }
        return t;
      };
    };
  },
  function (e, t, n) {
    var r = n(539),
      i = n(78),
      o = /^\[object .+?Constructor\]$/,
      a = Object.prototype,
      s = Function.prototype.toString,
      u = a.hasOwnProperty,
      c = RegExp(
        '^' +
          s
            .call(u)
            .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
            .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') +
          '$',
      );
    e.exports = function (e) {
      return null != e && (r(e) ? c.test(s.call(e)) : i(e) && o.test(e));
    };
  },
  function (e, t, n) {
    var r = n(66),
      i = '[object Function]',
      o = Object.prototype.toString;
    e.exports = function (e) {
      return r(e) && o.call(e) == i;
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return function (t) {
        return null == t ? void 0 : t[e];
      };
    };
  },
  function (e, t, n) {
    var r = n(147),
      i = n(107),
      o = n(148),
      a = n(79),
      s = n(220),
      u = Object.prototype.hasOwnProperty;
    e.exports = function (e) {
      for (
        var t = s(e),
          n = t.length,
          c = n && e.length,
          p = !!c && a(c) && (i(e) || r(e)),
          f = -1,
          l = [];
        ++f < n;

      ) {
        var h = t[f];
        ((p && o(h, c)) || u.call(e, h)) && l.push(h);
      }
      return l;
    };
  },
  function (e, t, n) {
    var r = n(219),
      i = n(79),
      o = n(145);
    e.exports = function (e, t) {
      return function (n, a) {
        var s = n ? r(n) : 0;
        if (!i(s)) return e(n, a);
        for (var u = t ? s : -1, c = o(n); (t ? u-- : ++u < s) && !1 !== a(c[u], u, c); );
        return n;
      };
    };
  },
  function (e, t, n) {
    var r = n(149),
      i = n(107);
    e.exports = function (e, t) {
      return function (n, o, a) {
        return 'function' == typeof o && void 0 === a && i(n) ? e(n, o) : t(n, r(o, a, 3));
      };
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return e;
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(105),
      i = n(546);
    function o(e, t) {
      (this.model = e), (this.properties = t);
    }
    (e.exports = o),
      (o.prototype.createType = function (e) {
        var t = this.model,
          n = this.properties,
          o = Object.create(i.prototype);
        r(e.properties, function (e) {
          e.isMany || void 0 === e.default || (o[e.name] = e.default);
        }),
          n.defineModel(o, t),
          n.defineDescriptor(o, e);
        var a = e.ns.name;
        function s(e) {
          n.define(this, '$type', { value: a, enumerable: !0 }),
            n.define(this, '$attrs', { value: {} }),
            n.define(this, '$parent', { writable: !0 }),
            r(
              e,
              function (e, t) {
                this.set(t, e);
              },
              this,
            );
        }
        return (
          (s.prototype = o),
          (s.hasType = o.$instanceOf = this.model.hasType),
          n.defineModel(s, t),
          n.defineDescriptor(s, e),
          s
        );
      });
  },
  function (e, t, n) {
    'use strict';
    function r() {}
    (r.prototype.get = function (e) {
      return this.$model.properties.get(this, e);
    }),
      (r.prototype.set = function (e, t) {
        this.$model.properties.set(this, e, t);
      }),
      (e.exports = r);
  },
  function (e, t, n) {
    'use strict';
    var r = n(221),
      i = n(105),
      o = n(150),
      a = n(553),
      s = n(80).parseName,
      u = o.isBuiltIn;
    function c(e, t) {
      (this.packageMap = {}),
        (this.typeMap = {}),
        (this.packages = []),
        (this.properties = t),
        i(e, this.registerPackage, this);
    }
    function p(e, t, n) {
      var r = t[n];
      if (r in e) throw new Error('package with ' + n + ' <' + r + '> already defined');
    }
    (e.exports = c),
      (c.prototype.getPackage = function (e) {
        return this.packageMap[e];
      }),
      (c.prototype.getPackages = function () {
        return this.packages;
      }),
      (c.prototype.registerPackage = function (e) {
        e = r({}, e);
        var t = this.packageMap;
        p(t, e, 'prefix'),
          p(t, e, 'uri'),
          i(
            e.types,
            function (t) {
              this.registerType(t, e);
            },
            this,
          ),
          (t[e.uri] = t[e.prefix] = e),
          this.packages.push(e);
      }),
      (c.prototype.registerType = function (e, t) {
        e = r({}, e, {
          superClass: (e.superClass || []).slice(),
          extends: (e.extends || []).slice(),
          properties: (e.properties || []).slice(),
          meta: r(e.meta || {}),
        });
        var n = s(e.name, t.prefix),
          o = n.name,
          a = {};
        i(e.properties, function (e) {
          var t = s(e.name, n.prefix),
            i = t.name;
          u(e.type) || (e.type = s(e.type, t.prefix).name), r(e, { ns: t, name: i }), (a[i] = e);
        }),
          r(e, { ns: n, name: o, propertiesByName: a }),
          i(
            e.extends,
            function (e) {
              var t = this.typeMap[e];
              (t.traits = t.traits || []), t.traits.push(o);
            },
            this,
          ),
          this.definePackage(e, t),
          (this.typeMap[o] = e);
      }),
      (c.prototype.mapTypes = function (e, t, n) {
        var r = u(e.name) ? { name: e.name } : this.typeMap[e.name],
          o = this;
        function a(e) {
          return c(e, !0);
        }
        function c(n, r) {
          var i = s(n, u(n) ? '' : e.prefix);
          o.mapTypes(i, t, r);
        }
        if (!r) throw new Error('unknown type <' + e.name + '>');
        i(r.superClass, n ? a : c), t(r, !n), i(r.traits, a);
      }),
      (c.prototype.getEffectiveDescriptor = function (e) {
        var t = s(e),
          n = new a(t);
        this.mapTypes(t, function (e, t) {
          n.addTrait(e, t);
        });
        var r = n.build();
        return this.definePackage(r, r.allTypes[r.allTypes.length - 1].$pkg), r;
      }),
      (c.prototype.definePackage = function (e, t) {
        this.properties.define(e, '$pkg', { value: t });
      });
  },
  function (e, t, n) {
    var r = n(146);
    e.exports = function (e, t, n) {
      for (var i = -1, o = r(t), a = o.length; ++i < a; ) {
        var s = o[i],
          u = e[s],
          c = n(u, t[s], s, e, t);
        ((c == c ? c === u : u != u) && (void 0 !== u || s in e)) || (e[s] = c);
      }
      return e;
    };
  },
  function (e, t, n) {
    var r = n(550),
      i = n(146);
    e.exports = function (e, t) {
      return null == t ? e : r(t, i(t), e);
    };
  },
  function (e, t) {
    e.exports = function (e, t, n) {
      n || (n = {});
      for (var r = -1, i = t.length; ++r < i; ) {
        var o = t[r];
        n[o] = e[o];
      }
      return n;
    };
  },
  function (e, t, n) {
    var r = n(149),
      i = n(552),
      o = n(222);
    e.exports = function (e) {
      return o(function (t, n) {
        var o = -1,
          a = null == t ? 0 : n.length,
          s = a > 2 ? n[a - 2] : void 0,
          u = a > 2 ? n[2] : void 0,
          c = a > 1 ? n[a - 1] : void 0;
        for (
          'function' == typeof s
            ? ((s = r(s, c, 5)), (a -= 2))
            : (a -= (s = 'function' == typeof c ? c : void 0) ? 1 : 0),
            u && i(n[0], n[1], u) && ((s = a < 3 ? void 0 : s), (a = 1));
          ++o < a;

        ) {
          var p = n[o];
          p && e(t, p, s);
        }
        return t;
      });
    };
  },
  function (e, t, n) {
    function r(e) {
      return (r =
        'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
          ? function (e) {
              return typeof e;
            }
          : function (e) {
              return e &&
                'function' == typeof Symbol &&
                e.constructor === Symbol &&
                e !== Symbol.prototype
                ? 'symbol'
                : typeof e;
            })(e);
    }
    var i = n(106),
      o = n(148),
      a = n(66);
    e.exports = function (e, t, n) {
      if (!a(n)) return !1;
      var s = r(t);
      if ('number' == s ? i(n) && o(t, n.length) : 'string' == s && t in n) {
        var u = n[t];
        return e == e ? e === u : u != u;
      }
      return !1;
    };
  },
  function (e, t, n) {
    'use strict';
    var r = n(554),
      i = n(221),
      o = n(105),
      a = n(80).parseName;
    function s(e) {
      (this.ns = e),
        (this.name = e.name),
        (this.allTypes = []),
        (this.allTypesByName = {}),
        (this.properties = []),
        (this.propertiesByName = {});
    }
    (e.exports = s),
      (s.prototype.build = function () {
        return r(this, [
          'ns',
          'name',
          'allTypes',
          'allTypesByName',
          'properties',
          'propertiesByName',
          'bodyProperty',
          'idProperty',
        ]);
      }),
      (s.prototype.addProperty = function (e, t, n) {
        'boolean' == typeof t && ((n = t), (t = void 0)), this.addNamedProperty(e, !1 !== n);
        var r = this.properties;
        void 0 !== t ? r.splice(t, 0, e) : r.push(e);
      }),
      (s.prototype.replaceProperty = function (e, t, n) {
        var r = e.ns,
          i = this.properties,
          o = this.propertiesByName,
          a = e.name !== t.name;
        if (e.isId) {
          if (!t.isId)
            throw new Error(
              'property <' + t.ns.name + '> must be id property to refine <' + e.ns.name + '>',
            );
          this.setIdProperty(t, !1);
        }
        if (e.isBody) {
          if (!t.isBody)
            throw new Error(
              'property <' + t.ns.name + '> must be body property to refine <' + e.ns.name + '>',
            );
          this.setBodyProperty(t, !1);
        }
        var s = i.indexOf(e);
        if (-1 === s) throw new Error('property <' + r.name + '> not found in property list');
        i.splice(s, 1), this.addProperty(t, n ? void 0 : s, a), (o[r.name] = o[r.localName] = t);
      }),
      (s.prototype.redefineProperty = function (e, t, n) {
        var r = e.ns.prefix,
          i = t.split('#'),
          o = a(i[0], r),
          s = a(i[1], o.prefix).name,
          u = this.propertiesByName[s];
        if (!u) throw new Error('refined property <' + s + '> not found');
        this.replaceProperty(u, e, n), delete e.redefines;
      }),
      (s.prototype.addNamedProperty = function (e, t) {
        var n = e.ns,
          r = this.propertiesByName;
        t && (this.assertNotDefined(e, n.name), this.assertNotDefined(e, n.localName)),
          (r[n.name] = r[n.localName] = e);
      }),
      (s.prototype.removeNamedProperty = function (e) {
        var t = e.ns,
          n = this.propertiesByName;
        delete n[t.name], delete n[t.localName];
      }),
      (s.prototype.setBodyProperty = function (e, t) {
        if (t && this.bodyProperty)
          throw new Error(
            'body property defined multiple times (<' +
              this.bodyProperty.ns.name +
              '>, <' +
              e.ns.name +
              '>)',
          );
        this.bodyProperty = e;
      }),
      (s.prototype.setIdProperty = function (e, t) {
        if (t && this.idProperty)
          throw new Error(
            'id property defined multiple times (<' +
              this.idProperty.ns.name +
              '>, <' +
              e.ns.name +
              '>)',
          );
        this.idProperty = e;
      }),
      (s.prototype.assertNotDefined = function (e, t) {
        var n = e.name,
          r = this.propertiesByName[n];
        if (r)
          throw new Error(
            'property <' +
              n +
              '> already defined; override of <' +
              r.definedBy.ns.name +
              '#' +
              r.ns.name +
              '> by <' +
              e.definedBy.ns.name +
              '#' +
              e.ns.name +
              '> not allowed without redefines',
          );
      }),
      (s.prototype.hasProperty = function (e) {
        return this.propertiesByName[e];
      }),
      (s.prototype.addTrait = function (e, t) {
        var n = this.allTypesByName,
          r = this.allTypes,
          a = e.name;
        a in n ||
          (o(
            e.properties,
            function (n) {
              (n = i({}, n, { name: n.ns.localName, inherited: t })),
                Object.defineProperty(n, 'definedBy', { value: e });
              var r = n.replaces,
                o = n.redefines;
              r || o
                ? this.redefineProperty(n, r || o, r)
                : (n.isBody && this.setBodyProperty(n),
                  n.isId && this.setIdProperty(n),
                  this.addProperty(n));
            },
            this,
          ),
          r.push(e),
          (n[a] = e));
      });
  },
  function (e, t, n) {
    var r = n(555),
      i = n(149),
      o = n(557),
      a = n(558),
      s = n(222)(function (e, t) {
        return null == e ? {} : 'function' == typeof t[0] ? a(e, i(t[0], t[1], 3)) : o(e, r(t));
      });
    e.exports = s;
  },
  function (e, t, n) {
    var r = n(556),
      i = n(147),
      o = n(107),
      a = n(106),
      s = n(78);
    e.exports = function e(t, n, u, c) {
      c || (c = []);
      for (var p = -1, f = t.length; ++p < f; ) {
        var l = t[p];
        s(l) && a(l) && (u || o(l) || i(l))
          ? n
            ? e(l, n, u, c)
            : r(c, l)
          : u || (c[c.length] = l);
      }
      return c;
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = t.length, i = e.length; ++n < r; ) e[i + n] = t[n];
      return e;
    };
  },
  function (e, t, n) {
    var r = n(145);
    e.exports = function (e, t) {
      e = r(e);
      for (var n = -1, i = t.length, o = {}; ++n < i; ) {
        var a = t[n];
        a in e && (o[a] = e[a]);
      }
      return o;
    };
  },
  function (e, t, n) {
    var r = n(559);
    e.exports = function (e, t) {
      var n = {};
      return (
        r(e, function (e, r, i) {
          t(e, r, i) && (n[r] = e);
        }),
        n
      );
    };
  },
  function (e, t, n) {
    var r = n(217),
      i = n(220);
    e.exports = function (e, t) {
      return r(e, t, i);
    };
  },
  function (e, t, n) {
    'use strict';
    function r(e) {
      this.model = e;
    }
    function i(e, t, n) {
      Object.defineProperty(e, t.name, {
        enumerable: !t.isReference,
        writable: !0,
        value: n,
        configurable: !0,
      });
    }
    (e.exports = r),
      (r.prototype.set = function (e, t, n) {
        var r = this.model.getPropertyDescriptor(e, t),
          o = r && r.name;
        void 0 === n
          ? r
            ? delete e[o]
            : delete e.$attrs[t]
          : r
          ? o in e
            ? (e[o] = n)
            : i(e, r, n)
          : (e.$attrs[t] = n);
      }),
      (r.prototype.get = function (e, t) {
        var n = this.model.getPropertyDescriptor(e, t);
        if (!n) return e.$attrs[t];
        var r = n.name;
        return !e[r] && n.isMany && i(e, n, []), e[r];
      }),
      (r.prototype.define = function (e, t, n) {
        Object.defineProperty(e, t, n);
      }),
      (r.prototype.defineDescriptor = function (e, t) {
        this.define(e, '$descriptor', { value: t });
      }),
      (r.prototype.defineModel = function (e, t) {
        this.define(e, '$model', { value: t });
      });
  },
  function (e, t, n) {
    'use strict';
    var r = n(562),
      i = n(228),
      o = n(588),
      a = n(103),
      s = n(592),
      u = n(594),
      c = n(595).parser,
      p = n(216),
      f = n(80).parseName,
      l = n(150),
      h = l.coerceType,
      d = l.isSimple,
      m = n(229),
      y = m.XSI_TYPE,
      v = m.DEFAULT_NS_MAP.xsi,
      g = m.serializeAsType,
      b = m.aliasToName;
    function w(e, t, n) {
      var r, o;
      if ((r = e.uri || n)) {
        var a = t.getPackage(r);
        (o = a ? a.prefix : e.prefix), (e.prefix = o), (e.uri = r);
      }
      i(e.attributes, function (n) {
        n.uri === v &&
          'type' === n.local &&
          (function (e, t, n) {
            var r,
              i = f(t.value),
              o = e.ns[i.prefix || ''],
              a = i.localName,
              s = o && n.getPackage(o);
            s &&
              ((r = s.xml && s.xml.typePrefix) && 0 === a.indexOf(r) && (a = a.slice(r.length)),
              (t.value = s.prefix + ':' + a));
          })(e, n, t),
          w(n, t, null);
      });
    }
    function x(e) {
      return new Error(e);
    }
    function E(e) {
      return e.$descriptor;
    }
    function S(e) {
      a(this, e),
        (this.elementsById = {}),
        (this.references = []),
        (this.warnings = []),
        (this.addReference = function (e) {
          this.references.push(e);
        }),
        (this.addElement = function (e) {
          if (!e) throw x('expected element');
          var t,
            n = this.elementsById,
            r = E(e).idProperty;
          if (r && (t = e.get(r.name))) {
            if (n[t]) throw x('duplicate ID <' + t + '>');
            n[t] = e;
          }
        }),
        (this.addWarning = function (e) {
          this.warnings.push(e);
        });
    }
    function A() {}
    function R() {}
    function C() {}
    function _(e, t) {
      (this.property = e), (this.context = t);
    }
    function O(e, t) {
      (this.element = t), (this.propertyDesc = e);
    }
    function T() {}
    function P(e, t, n) {
      (this.model = e), (this.type = e.getType(t)), (this.context = n);
    }
    function k(e, t, n) {
      (this.model = e), (this.context = n);
    }
    function I(e) {
      e instanceof p && (e = { model: e }), a(this, { lax: !1 }, e);
    }
    (A.prototype.handleEnd = function () {}),
      (A.prototype.handleText = function () {}),
      (A.prototype.handleNode = function () {}),
      (R.prototype = Object.create(A.prototype)),
      (R.prototype.handleNode = function () {
        return this;
      }),
      (C.prototype = Object.create(A.prototype)),
      (C.prototype.handleText = function (e) {
        this.body = (this.body || '') + e;
      }),
      (_.prototype = Object.create(C.prototype)),
      (_.prototype.handleNode = function (e) {
        if (this.element) throw x('expected no sub nodes');
        return (this.element = this.createReference(e)), this;
      }),
      (_.prototype.handleEnd = function () {
        this.element.id = this.body;
      }),
      (_.prototype.createReference = function (e) {
        return { property: this.property.ns.name, id: '' };
      }),
      (O.prototype = Object.create(C.prototype)),
      (O.prototype.handleEnd = function () {
        var e = this.body || '',
          t = this.element,
          n = this.propertyDesc;
        (e = h(n.type, e)), n.isMany ? t.get(n.name).push(e) : t.set(n.name, e);
      }),
      (T.prototype = Object.create(C.prototype)),
      (T.prototype.handleNode = function (e) {
        var t = this,
          n = this.element;
        return (
          n
            ? (t = this.handleChild(e))
            : ((n = this.element = this.createElement(e)), this.context.addElement(n)),
          t
        );
      }),
      (P.prototype = Object.create(T.prototype)),
      (P.prototype.addReference = function (e) {
        this.context.addReference(e);
      }),
      (P.prototype.handleEnd = function () {
        var e = this.body,
          t = this.element,
          n = E(t).bodyProperty;
        n && void 0 !== e && ((e = h(n.type, e)), t.set(n.name, e));
      }),
      (P.prototype.createElement = function (e) {
        var t = (function (e) {
            var t = e.attributes;
            return r(
              t,
              function (e, t, n) {
                return (e[t.local ? f(t.name, t.prefix).name : t.prefix] = t.value), e;
              },
              {},
            );
          })(e),
          n = this.type,
          o = E(n),
          a = this.context,
          s = new n({});
        return (
          i(t, function (e, t) {
            var n,
              r = o.propertiesByName[t];
            r && r.isReference
              ? r.isMany
                ? ((n = e.split(' ')),
                  i(n, function (e) {
                    a.addReference({ element: s, property: r.ns.name, id: e });
                  }))
                : a.addReference({ element: s, property: r.ns.name, id: e })
              : (r && (e = h(r.type, e)), s.set(t, e));
          }),
          s
        );
      }),
      (P.prototype.getPropertyForNode = function (e) {
        var t,
          n,
          r,
          i = f(e.local, e.prefix),
          s = this.type,
          u = this.model,
          c = E(s),
          p = i.name,
          l = c.propertiesByName[p];
        if (l)
          return g(l) && (r = e.attributes[y])
            ? ((t = r.value), (n = u.getType(t)), a({}, l, { effectiveType: E(n).name }))
            : l;
        if (u.getPackage(i.prefix)) {
          if (
            ((t = i.prefix + ':' + b(i.localName, c.$pkg)),
            (n = u.getType(t)),
            (l = o(c.properties, function (e) {
              return !e.isVirtual && !e.isReference && !e.isAttribute && n.hasType(e.type);
            })))
          )
            return a({}, l, { effectiveType: E(n).name });
        } else if (
          (l = o(c.properties, function (e) {
            return !e.isReference && !e.isAttribute && 'Element' === e.type;
          }))
        )
          return l;
        throw x('unrecognized element <' + i.name + '>');
      }),
      (P.prototype.toString = function () {
        return 'ElementDescriptor[' + E(this.type).name + ']';
      }),
      (P.prototype.valueHandler = function (e, t) {
        return new O(e, t);
      }),
      (P.prototype.referenceHandler = function (e) {
        return new _(e, this.context);
      }),
      (P.prototype.handler = function (e) {
        return 'Element' === e
          ? new k(this.model, e, this.context)
          : new P(this.model, e, this.context);
      }),
      (P.prototype.handleChild = function (e) {
        var t, n, r, i;
        if (
          ((t = this.getPropertyForNode(e)),
          (r = this.element),
          (n = t.effectiveType || t.type),
          d(n))
        )
          return this.valueHandler(t, r);
        var o = (i = t.isReference
          ? this.referenceHandler(t).handleNode(e)
          : this.handler(n).handleNode(e)).element;
        return (
          void 0 !== o &&
            (t.isMany ? r.get(t.name).push(o) : r.set(t.name, o),
            t.isReference ? (a(o, { element: r }), this.context.addReference(o)) : (o.$parent = r)),
          i
        );
      }),
      (k.prototype = Object.create(T.prototype)),
      (k.prototype.createElement = function (e) {
        var t = e.name,
          n = e.prefix,
          r = e.ns[n],
          i = e.attributes;
        return this.model.createAny(t, r, i);
      }),
      (k.prototype.handleChild = function (e) {
        var t = new k(this.model, 'Element', this.context).handleNode(e),
          n = this.element,
          r = t.element;
        return void 0 !== r && ((n.$children = n.$children || []).push(r), (r.$parent = n)), t;
      }),
      (k.prototype.handleText = function (e) {
        this.body = this.body || '' + e;
      }),
      (k.prototype.handleEnd = function () {
        this.body && (this.element.$body = this.body);
      }),
      (I.prototype.fromXML = function (e, t, n) {
        var r = t.rootHandler;
        t instanceof P
          ? ((r = t), (t = {}))
          : 'string' == typeof t
          ? ((r = this.handler(t)), (t = {}))
          : 'string' == typeof r && (r = this.handler(r));
        var i = this.model,
          o = this.lax,
          p = new S(a({}, t, { rootHandler: r })),
          f = new c(!0, { xmlns: !0, trim: !0 }),
          l = new u();
        (r.context = p),
          l.push(r),
          (f.onopentag = function (e) {
            var t = l.peek();
            w(e, i);
            try {
              l.push(t.handleNode(e));
            } catch (t) {
              var n = this.line,
                r = this.column,
                a =
                  'unparsable content <' +
                  e.name +
                  '> detected\n\tline: ' +
                  n +
                  '\n\tcolumn: ' +
                  r +
                  '\n\tnested error: ' +
                  t.message;
              if (!o) throw (console.error('could not parse document'), console.error(t), x(a));
              p.addWarning({ message: a, error: t }),
                console.warn('could not parse node'),
                console.warn(t),
                l.push(new R());
            }
          }),
          (f.oncdata = f.ontext =
            function (e) {
              l.peek().handleText(e);
            }),
          (f.onclosetag = function (e) {
            l.pop().handleEnd();
          }),
          (f.onend = function () {
            var e,
              t,
              n = p.elementsById,
              r = p.references;
            for (e = 0; (t = r[e]); e++) {
              var i = t.element,
                o = n[t.id],
                a = E(i).propertiesByName[t.property];
              if (
                (o ||
                  p.addWarning({
                    message: 'unresolved reference <' + t.id + '>',
                    element: t.element,
                    property: t.property,
                    value: t.id,
                  }),
                a.isMany)
              ) {
                var s = i.get(a.name),
                  u = s.indexOf(t);
                -1 === u && (u = s.length), o ? (s[u] = o) : s.splice(u, 1);
              } else i.set(a.name, o);
            }
          }),
          s(function () {
            var t;
            try {
              f.write(e).close();
            } catch (e) {
              t = e;
            }
            n(t, t ? void 0 : r.element, p);
          });
      }),
      (I.prototype.handler = function (e) {
        return new P(this.model, e);
      }),
      (e.exports = I),
      (e.exports.ElementHandler = P);
  },
  function (e, t, n) {
    var r = n(563),
      i = n(81),
      o = n(568)(r, i);
    e.exports = o;
  },
  function (e, t) {
    e.exports = function (e, t, n, r) {
      var i = -1,
        o = e.length;
      for (r && o && (n = e[++i]); ++i < o; ) n = t(n, e[i], i, e);
      return n;
    };
  },
  function (e, t, n) {
    var r = n(565),
      i = n(77);
    e.exports = function (e, t) {
      return r(e, t, i);
    };
  },
  function (e, t, n) {
    var r = n(566)();
    e.exports = r;
  },
  function (e, t, n) {
    var r = n(42);
    e.exports = function (e) {
      return function (t, n, i) {
        for (var o = r(t), a = i(t), s = a.length, u = e ? s : -1; e ? u-- : ++u < s; ) {
          var c = a[u];
          if (!1 === n(o[c], c, o)) break;
        }
        return t;
      };
    };
  },
  function (e, t, n) {
    var r = n(210),
      i = n(65),
      o = n(42);
    e.exports = function (e, t) {
      return function (n, a) {
        var s = n ? r(n) : 0;
        if (!i(s)) return e(n, a);
        for (var u = t ? s : -1, c = o(n); (t ? u-- : ++u < s) && !1 !== a(c[u], u, c); );
        return n;
      };
    };
  },
  function (e, t, n) {
    var r = n(108),
      i = n(585),
      o = n(27);
    e.exports = function (e, t) {
      return function (n, a, s, u) {
        var c = arguments.length < 3;
        return 'function' == typeof a && void 0 === u && o(n)
          ? e(n, a, s, c)
          : i(n, r(a, u, 4), s, c, t);
      };
    };
  },
  function (e, t, n) {
    var r = n(570),
      i = n(577),
      o = n(42);
    e.exports = function (e) {
      var t = i(e);
      if (1 == t.length && t[0][2]) {
        var n = t[0][0],
          a = t[0][1];
        return function (e) {
          return null != e && e[n] === a && (void 0 !== a || n in o(e));
        };
      }
      return function (e) {
        return r(e, t);
      };
    };
  },
  function (e, t, n) {
    var r = n(223),
      i = n(42);
    e.exports = function (e, t, n) {
      var o = t.length,
        a = o,
        s = !n;
      if (null == e) return !a;
      for (e = i(e); o--; ) {
        var u = t[o];
        if (s && u[2] ? u[1] !== e[u[0]] : !(u[0] in e)) return !1;
      }
      for (; ++o < a; ) {
        var c = (u = t[o])[0],
          p = e[c],
          f = u[1];
        if (s && u[2]) {
          if (void 0 === p && !(c in e)) return !1;
        } else {
          var l = n ? n(p, f, c) : void 0;
          if (!(void 0 === l ? r(f, p, n, !0) : l)) return !1;
        }
      }
      return !0;
    };
  },
  function (e, t, n) {
    var r = n(572),
      i = n(574),
      o = n(575),
      a = n(27),
      s = n(576),
      u = '[object Arguments]',
      c = '[object Array]',
      p = '[object Object]',
      f = Object.prototype,
      l = f.hasOwnProperty,
      h = f.toString;
    e.exports = function (e, t, n, f, d, m, y) {
      var v = a(e),
        g = a(t),
        b = c,
        w = c;
      v || ((b = h.call(e)) == u ? (b = p) : b != p && (v = s(e))),
        g || ((w = h.call(t)) == u ? (w = p) : w != p && (g = s(t)));
      var x = b == p,
        E = w == p,
        S = b == w;
      if (S && !v && !x) return i(e, t, b);
      if (!d) {
        var A = x && l.call(e, '__wrapped__'),
          R = E && l.call(t, '__wrapped__');
        if (A || R) return n(A ? e.value() : e, R ? t.value() : t, f, d, m, y);
      }
      if (!S) return !1;
      m || (m = []), y || (y = []);
      for (var C = m.length; C--; ) if (m[C] == e) return y[C] == t;
      m.push(e), y.push(t);
      var _ = (v ? r : o)(e, t, n, f, d, m, y);
      return m.pop(), y.pop(), _;
    };
  },
  function (e, t, n) {
    var r = n(573);
    e.exports = function (e, t, n, i, o, a, s) {
      var u = -1,
        c = e.length,
        p = t.length;
      if (c != p && !(o && p > c)) return !1;
      for (; ++u < c; ) {
        var f = e[u],
          l = t[u],
          h = i ? i(o ? l : f, o ? f : l, u) : void 0;
        if (void 0 !== h) {
          if (h) continue;
          return !1;
        }
        if (o) {
          if (
            !r(t, function (e) {
              return f === e || n(f, e, i, o, a, s);
            })
          )
            return !1;
        } else if (f !== l && !n(f, l, i, o, a, s)) return !1;
      }
      return !0;
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = e.length; ++n < r; ) if (t(e[n], n, e)) return !0;
      return !1;
    };
  },
  function (e, t) {
    var n = '[object Boolean]',
      r = '[object Date]',
      i = '[object Error]',
      o = '[object Number]',
      a = '[object RegExp]',
      s = '[object String]';
    e.exports = function (e, t, u) {
      switch (u) {
        case n:
        case r:
          return +e == +t;
        case i:
          return e.name == t.name && e.message == t.message;
        case o:
          return e != +e ? t != +t : e == +t;
        case a:
        case s:
          return e == t + '';
      }
      return !1;
    };
  },
  function (e, t, n) {
    var r = n(77),
      i = Object.prototype.hasOwnProperty;
    e.exports = function (e, t, n, o, a, s, u) {
      var c = r(e),
        p = c.length;
      if (p != r(t).length && !a) return !1;
      for (var f = p; f--; ) {
        var l = c[f];
        if (!(a ? l in t : i.call(t, l))) return !1;
      }
      for (var h = a; ++f < p; ) {
        var d = e[(l = c[f])],
          m = t[l],
          y = o ? o(a ? m : d, a ? d : m, l) : void 0;
        if (!(void 0 === y ? n(d, m, o, a, s, u) : y)) return !1;
        h || (h = 'constructor' == l);
      }
      if (!h) {
        var v = e.constructor,
          g = t.constructor;
        if (
          v != g &&
          'constructor' in e &&
          'constructor' in t &&
          !('function' == typeof v && v instanceof v && 'function' == typeof g && g instanceof g)
        )
          return !1;
      }
      return !0;
    };
  },
  function (e, t, n) {
    var r = n(65),
      i = n(64),
      o = {};
    (o['[object Float32Array]'] =
      o['[object Float64Array]'] =
      o['[object Int8Array]'] =
      o['[object Int16Array]'] =
      o['[object Int32Array]'] =
      o['[object Uint8Array]'] =
      o['[object Uint8ClampedArray]'] =
      o['[object Uint16Array]'] =
      o['[object Uint32Array]'] =
        !0),
      (o['[object Arguments]'] =
        o['[object Array]'] =
        o['[object ArrayBuffer]'] =
        o['[object Boolean]'] =
        o['[object Date]'] =
        o['[object Error]'] =
        o['[object Function]'] =
        o['[object Map]'] =
        o['[object Number]'] =
        o['[object Object]'] =
        o['[object RegExp]'] =
        o['[object Set]'] =
        o['[object String]'] =
        o['[object WeakMap]'] =
          !1);
    var a = Object.prototype.toString;
    e.exports = function (e) {
      return i(e) && r(e.length) && !!o[a.call(e)];
    };
  },
  function (e, t, n) {
    var r = n(224),
      i = n(578);
    e.exports = function (e) {
      for (var t = i(e), n = t.length; n--; ) t[n][2] = r(t[n][1]);
      return t;
    };
  },
  function (e, t, n) {
    var r = n(77),
      i = n(42);
    e.exports = function (e) {
      e = i(e);
      for (var t = -1, n = r(e), o = n.length, a = Array(o); ++t < o; ) {
        var s = n[t];
        a[t] = [s, e[s]];
      }
      return a;
    };
  },
  function (e, t, n) {
    var r = n(225),
      i = n(223),
      o = n(580),
      a = n(27),
      s = n(226),
      u = n(224),
      c = n(581),
      p = n(42),
      f = n(227);
    e.exports = function (e, t) {
      var n = a(e),
        l = s(e) && u(t),
        h = e + '';
      return (
        (e = f(e)),
        function (a) {
          if (null == a) return !1;
          var s = h;
          if (((a = p(a)), (n || !l) && !(s in a))) {
            if (null == (a = 1 == e.length ? a : r(a, o(e, 0, -1)))) return !1;
            (s = c(e)), (a = p(a));
          }
          return a[s] === t ? void 0 !== t || s in a : i(t, a[s], void 0, !0);
        }
      );
    };
  },
  function (e, t) {
    e.exports = function (e, t, n) {
      var r = -1,
        i = e.length;
      (t = null == t ? 0 : +t || 0) < 0 && (t = -t > i ? 0 : i + t),
        (n = void 0 === n || n > i ? i : +n || 0) < 0 && (n += i),
        (i = t > n ? 0 : (n - t) >>> 0),
        (t >>>= 0);
      for (var o = Array(i); ++r < i; ) o[r] = e[r + t];
      return o;
    };
  },
  function (e, t) {
    e.exports = function (e) {
      var t = e ? e.length : 0;
      return t ? e[t - 1] : void 0;
    };
  },
  function (e, t) {
    e.exports = function (e) {
      return null == e ? '' : e + '';
    };
  },
  function (e, t, n) {
    var r = n(211),
      i = n(584),
      o = n(226);
    e.exports = function (e) {
      return o(e) ? r(e) : i(e);
    };
  },
  function (e, t, n) {
    var r = n(225),
      i = n(227);
    e.exports = function (e) {
      var t = e + '';
      return (
        (e = i(e)),
        function (n) {
          return r(n, e, t);
        }
      );
    };
  },
  function (e, t) {
    e.exports = function (e, t, n, r, i) {
      return (
        i(e, function (e, i, o) {
          n = r ? ((r = !1), e) : t(n, e, i, o);
        }),
        n
      );
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = e.length; ++n < r && !1 !== t(e[n], n, e); );
      return e;
    };
  },
  function (e, t, n) {
    var r = n(144),
      i = n(27);
    e.exports = function (e, t) {
      return function (n, o, a) {
        return 'function' == typeof o && void 0 === a && i(n) ? e(n, o) : t(n, r(o, a, 3));
      };
    };
  },
  function (e, t, n) {
    var r = n(81),
      i = n(589)(r);
    e.exports = i;
  },
  function (e, t, n) {
    var r = n(108),
      i = n(590),
      o = n(591),
      a = n(27);
    e.exports = function (e, t) {
      return function (n, s, u) {
        if (((s = r(s, u, 3)), a(n))) {
          var c = o(n, s, t);
          return c > -1 ? n[c] : void 0;
        }
        return i(n, s, e);
      };
    };
  },
  function (e, t) {
    e.exports = function (e, t, n, r) {
      var i;
      return (
        n(e, function (e, n, o) {
          if (t(e, n, o)) return (i = r ? n : e), !1;
        }),
        i
      );
    };
  },
  function (e, t) {
    e.exports = function (e, t, n) {
      for (var r = e.length, i = n ? r : -1; n ? i-- : ++i < r; ) if (t(e[i], i, e)) return i;
      return -1;
    };
  },
  function (e, t, n) {
    var r = n(593),
      i = n(214)(function (e, t) {
        return r(e, 1, t);
      });
    e.exports = i;
  },
  function (e, t) {
    var n = 'Expected a function';
    e.exports = function (e, t, r) {
      if ('function' != typeof e) throw new TypeError(n);
      return setTimeout(function () {
        e.apply(void 0, r);
      }, t);
    };
  },
  function (e, t, n) {
    /**
     * Tiny stack for browser or server
     *
     * @author Jason Mulligan <jason.mulligan@avoidwork.com>
     * @copyright 2014 Jason Mulligan
     * @license BSD-3 <https://raw.github.com/avoidwork/tiny-stack/master/LICENSE>
     * @link http://avoidwork.github.io/tiny-stack
     * @module tiny-stack
     * @version 0.1.0
     */
    !(function (t) {
      'use strict';
      function n() {
        (this.data = [null]), (this.top = 0);
      }
      (n.prototype.clear = function () {
        return (this.data = [null]), (this.top = 0), this;
      }),
        (n.prototype.length = function () {
          return this.top;
        }),
        (n.prototype.peek = function () {
          return this.data[this.top];
        }),
        (n.prototype.pop = function () {
          return this.top > 0 ? (this.top--, this.data.pop()) : void 0;
        }),
        (n.prototype.push = function (e) {
          return (this.data[++this.top] = e), this;
        }),
        (e.exports = function () {
          return new n();
        });
    })();
  },
  function (e, t, n) {
    (function (e) {
      function r(e) {
        return (r =
          'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
            ? function (e) {
                return typeof e;
              }
            : function (e) {
                return e &&
                  'function' == typeof Symbol &&
                  e.constructor === Symbol &&
                  e !== Symbol.prototype
                  ? 'symbol'
                  : typeof e;
              })(e);
      }
      !(function (t) {
        (t.parser = function (e, t) {
          return new o(e, t);
        }),
          (t.SAXParser = o),
          (t.SAXStream = u),
          (t.createStream = function (e, t) {
            return new u(e, t);
          }),
          (t.MAX_BUFFER_LENGTH = 65536);
        var i = [
          'comment',
          'sgmlDecl',
          'textNode',
          'tagName',
          'doctype',
          'procInstName',
          'procInstBody',
          'entity',
          'attribName',
          'attribValue',
          'cdata',
          'script',
        ];
        function o(e, n) {
          if (!(this instanceof o)) return new o(e, n);
          !(function (e) {
            for (var t = 0, n = i.length; t < n; t++) e[i[t]] = '';
          })(this),
            (this.q = this.c = ''),
            (this.bufferCheckPosition = t.MAX_BUFFER_LENGTH),
            (this.opt = n || {}),
            (this.opt.lowercase = this.opt.lowercase || this.opt.lowercasetags),
            (this.looseCase = this.opt.lowercase ? 'toLowerCase' : 'toUpperCase'),
            (this.tags = []),
            (this.closed = this.closedRoot = this.sawRoot = !1),
            (this.tag = this.error = null),
            (this.strict = !!e),
            (this.noscript = !(!e && !this.opt.noscript)),
            (this.state = O.BEGIN),
            (this.ENTITIES = Object.create(t.ENTITIES)),
            (this.attribList = []),
            this.opt.xmlns && (this.ns = Object.create(b)),
            (this.trackPosition = !1 !== this.opt.position),
            this.trackPosition && (this.position = this.line = this.column = 0),
            T(this, 'onready');
        }
        (t.EVENTS = [
          'text',
          'processinginstruction',
          'sgmldeclaration',
          'doctype',
          'comment',
          'attribute',
          'opentag',
          'closetag',
          'opencdata',
          'cdata',
          'closecdata',
          'error',
          'end',
          'ready',
          'script',
          'opennamespace',
          'closenamespace',
        ]),
          Object.create ||
            (Object.create = function (e) {
              function t() {
                this.__proto__ = e;
              }
              return (t.prototype = e), new t();
            }),
          Object.getPrototypeOf ||
            (Object.getPrototypeOf = function (e) {
              return e.__proto__;
            }),
          Object.keys ||
            (Object.keys = function (e) {
              var t = [];
              for (var n in e) e.hasOwnProperty(n) && t.push(n);
              return t;
            }),
          (o.prototype = {
            end: function () {
              M(this);
            },
            write: function (e) {
              if (this.error) throw this.error;
              if (this.closed)
                return N(this, 'Cannot write after close. Assign an onready handler.');
              if (null === e) return M(this);
              var n = 0,
                r = '';
              for (; (this.c = r = e.charAt(n++)); )
                switch (
                  (this.trackPosition &&
                    (this.position++,
                    '\n' === r ? (this.line++, (this.column = 0)) : this.column++),
                  this.state)
                ) {
                  case O.BEGIN:
                    '<' === r
                      ? ((this.state = O.OPEN_WAKA), (this.startTagPosition = this.position))
                      : A(c, r) &&
                        (D(this, 'Non-whitespace before first tag.'),
                        (this.textNode = r),
                        (this.state = O.TEXT));
                    continue;
                  case O.TEXT:
                    if (this.sawRoot && !this.closedRoot) {
                      for (var o = n - 1; r && '<' !== r && '&' !== r; )
                        (r = e.charAt(n++)) &&
                          this.trackPosition &&
                          (this.position++,
                          '\n' === r ? (this.line++, (this.column = 0)) : this.column++);
                      this.textNode += e.substring(o, n - 1);
                    }
                    '<' === r
                      ? ((this.state = O.OPEN_WAKA), (this.startTagPosition = this.position))
                      : (!A(c, r) ||
                          (this.sawRoot && !this.closedRoot) ||
                          D(this, 'Text data outside of root node.'),
                        '&' === r ? (this.state = O.TEXT_ENTITY) : (this.textNode += r));
                    continue;
                  case O.SCRIPT:
                    '<' === r ? (this.state = O.SCRIPT_ENDING) : (this.script += r);
                    continue;
                  case O.SCRIPT_ENDING:
                    '/' === r
                      ? (this.state = O.CLOSE_TAG)
                      : ((this.script += '<' + r), (this.state = O.SCRIPT));
                    continue;
                  case O.OPEN_WAKA:
                    if ('!' === r) (this.state = O.SGML_DECL), (this.sgmlDecl = '');
                    else if (S(c, r));
                    else if (S(w, r)) (this.state = O.OPEN_TAG), (this.tagName = r);
                    else if ('/' === r) (this.state = O.CLOSE_TAG), (this.tagName = '');
                    else if ('?' === r)
                      (this.state = O.PROC_INST), (this.procInstName = this.procInstBody = '');
                    else {
                      if ((D(this, 'Unencoded <'), this.startTagPosition + 1 < this.position)) {
                        var a = this.position - this.startTagPosition;
                        r = new Array(a).join(' ') + r;
                      }
                      (this.textNode += '<' + r), (this.state = O.TEXT);
                    }
                    continue;
                  case O.SGML_DECL:
                    (this.sgmlDecl + r).toUpperCase() === m
                      ? (P(this, 'onopencdata'),
                        (this.state = O.CDATA),
                        (this.sgmlDecl = ''),
                        (this.cdata = ''))
                      : this.sgmlDecl + r === '--'
                      ? ((this.state = O.COMMENT), (this.comment = ''), (this.sgmlDecl = ''))
                      : (this.sgmlDecl + r).toUpperCase() === y
                      ? ((this.state = O.DOCTYPE),
                        (this.doctype || this.sawRoot) &&
                          D(this, 'Inappropriately located doctype declaration'),
                        (this.doctype = ''),
                        (this.sgmlDecl = ''))
                      : '>' === r
                      ? (P(this, 'onsgmldeclaration', this.sgmlDecl),
                        (this.sgmlDecl = ''),
                        (this.state = O.TEXT))
                      : S(l, r)
                      ? ((this.state = O.SGML_DECL_QUOTED), (this.sgmlDecl += r))
                      : (this.sgmlDecl += r);
                    continue;
                  case O.SGML_DECL_QUOTED:
                    r === this.q && ((this.state = O.SGML_DECL), (this.q = '')),
                      (this.sgmlDecl += r);
                    continue;
                  case O.DOCTYPE:
                    '>' === r
                      ? ((this.state = O.TEXT),
                        P(this, 'ondoctype', this.doctype),
                        (this.doctype = !0))
                      : ((this.doctype += r),
                        '[' === r
                          ? (this.state = O.DOCTYPE_DTD)
                          : S(l, r) && ((this.state = O.DOCTYPE_QUOTED), (this.q = r)));
                    continue;
                  case O.DOCTYPE_QUOTED:
                    (this.doctype += r), r === this.q && ((this.q = ''), (this.state = O.DOCTYPE));
                    continue;
                  case O.DOCTYPE_DTD:
                    (this.doctype += r),
                      ']' === r
                        ? (this.state = O.DOCTYPE)
                        : S(l, r) && ((this.state = O.DOCTYPE_DTD_QUOTED), (this.q = r));
                    continue;
                  case O.DOCTYPE_DTD_QUOTED:
                    (this.doctype += r),
                      r === this.q && ((this.state = O.DOCTYPE_DTD), (this.q = ''));
                    continue;
                  case O.COMMENT:
                    '-' === r ? (this.state = O.COMMENT_ENDING) : (this.comment += r);
                    continue;
                  case O.COMMENT_ENDING:
                    '-' === r
                      ? ((this.state = O.COMMENT_ENDED),
                        (this.comment = I(this.opt, this.comment)),
                        this.comment && P(this, 'oncomment', this.comment),
                        (this.comment = ''))
                      : ((this.comment += '-' + r), (this.state = O.COMMENT));
                    continue;
                  case O.COMMENT_ENDED:
                    '>' !== r
                      ? (D(this, 'Malformed comment'),
                        (this.comment += '--' + r),
                        (this.state = O.COMMENT))
                      : (this.state = O.TEXT);
                    continue;
                  case O.CDATA:
                    ']' === r ? (this.state = O.CDATA_ENDING) : (this.cdata += r);
                    continue;
                  case O.CDATA_ENDING:
                    ']' === r
                      ? (this.state = O.CDATA_ENDING_2)
                      : ((this.cdata += ']' + r), (this.state = O.CDATA));
                    continue;
                  case O.CDATA_ENDING_2:
                    '>' === r
                      ? (this.cdata && P(this, 'oncdata', this.cdata),
                        P(this, 'onclosecdata'),
                        (this.cdata = ''),
                        (this.state = O.TEXT))
                      : ']' === r
                      ? (this.cdata += ']')
                      : ((this.cdata += ']]' + r), (this.state = O.CDATA));
                    continue;
                  case O.PROC_INST:
                    '?' === r
                      ? (this.state = O.PROC_INST_ENDING)
                      : S(c, r)
                      ? (this.state = O.PROC_INST_BODY)
                      : (this.procInstName += r);
                    continue;
                  case O.PROC_INST_BODY:
                    if (!this.procInstBody && S(c, r)) continue;
                    '?' === r ? (this.state = O.PROC_INST_ENDING) : (this.procInstBody += r);
                    continue;
                  case O.PROC_INST_ENDING:
                    '>' === r
                      ? (P(this, 'onprocessinginstruction', {
                          name: this.procInstName,
                          body: this.procInstBody,
                        }),
                        (this.procInstName = this.procInstBody = ''),
                        (this.state = O.TEXT))
                      : ((this.procInstBody += '?' + r), (this.state = O.PROC_INST_BODY));
                    continue;
                  case O.OPEN_TAG:
                    S(x, r)
                      ? (this.tagName += r)
                      : (j(this),
                        '>' === r
                          ? F(this)
                          : '/' === r
                          ? (this.state = O.OPEN_TAG_SLASH)
                          : (A(c, r) && D(this, 'Invalid character in tag name'),
                            (this.state = O.ATTRIB)));
                    continue;
                  case O.OPEN_TAG_SLASH:
                    '>' === r
                      ? (F(this, !0), U(this))
                      : (D(this, 'Forward-slash in opening tag not followed by >'),
                        (this.state = O.ATTRIB));
                    continue;
                  case O.ATTRIB:
                    if (S(c, r)) continue;
                    '>' === r
                      ? F(this)
                      : '/' === r
                      ? (this.state = O.OPEN_TAG_SLASH)
                      : S(w, r)
                      ? ((this.attribName = r),
                        (this.attribValue = ''),
                        (this.state = O.ATTRIB_NAME))
                      : D(this, 'Invalid attribute name');
                    continue;
                  case O.ATTRIB_NAME:
                    '=' === r
                      ? (this.state = O.ATTRIB_VALUE)
                      : '>' === r
                      ? (D(this, 'Attribute without value'),
                        (this.attribValue = this.attribName),
                        B(this),
                        F(this))
                      : S(c, r)
                      ? (this.state = O.ATTRIB_NAME_SAW_WHITE)
                      : S(x, r)
                      ? (this.attribName += r)
                      : D(this, 'Invalid attribute name');
                    continue;
                  case O.ATTRIB_NAME_SAW_WHITE:
                    if ('=' === r) this.state = O.ATTRIB_VALUE;
                    else {
                      if (S(c, r)) continue;
                      D(this, 'Attribute without value'),
                        (this.tag.attributes[this.attribName] = ''),
                        (this.attribValue = ''),
                        P(this, 'onattribute', { name: this.attribName, value: '' }),
                        (this.attribName = ''),
                        '>' === r
                          ? F(this)
                          : S(w, r)
                          ? ((this.attribName = r), (this.state = O.ATTRIB_NAME))
                          : (D(this, 'Invalid attribute name'), (this.state = O.ATTRIB));
                    }
                    continue;
                  case O.ATTRIB_VALUE:
                    if (S(c, r)) continue;
                    S(l, r)
                      ? ((this.q = r), (this.state = O.ATTRIB_VALUE_QUOTED))
                      : (D(this, 'Unquoted attribute value'),
                        (this.state = O.ATTRIB_VALUE_UNQUOTED),
                        (this.attribValue = r));
                    continue;
                  case O.ATTRIB_VALUE_QUOTED:
                    if (r !== this.q) {
                      '&' === r ? (this.state = O.ATTRIB_VALUE_ENTITY_Q) : (this.attribValue += r);
                      continue;
                    }
                    B(this), (this.q = ''), (this.state = O.ATTRIB_VALUE_CLOSED);
                    continue;
                  case O.ATTRIB_VALUE_CLOSED:
                    S(c, r)
                      ? (this.state = O.ATTRIB)
                      : '>' === r
                      ? F(this)
                      : '/' === r
                      ? (this.state = O.OPEN_TAG_SLASH)
                      : S(w, r)
                      ? (D(this, 'No whitespace between attributes'),
                        (this.attribName = r),
                        (this.attribValue = ''),
                        (this.state = O.ATTRIB_NAME))
                      : D(this, 'Invalid attribute name');
                    continue;
                  case O.ATTRIB_VALUE_UNQUOTED:
                    if (A(d, r)) {
                      '&' === r ? (this.state = O.ATTRIB_VALUE_ENTITY_U) : (this.attribValue += r);
                      continue;
                    }
                    B(this), '>' === r ? F(this) : (this.state = O.ATTRIB);
                    continue;
                  case O.CLOSE_TAG:
                    if (this.tagName)
                      '>' === r
                        ? U(this)
                        : S(x, r)
                        ? (this.tagName += r)
                        : this.script
                        ? ((this.script += '</' + this.tagName),
                          (this.tagName = ''),
                          (this.state = O.SCRIPT))
                        : (A(c, r) && D(this, 'Invalid tagname in closing tag'),
                          (this.state = O.CLOSE_TAG_SAW_WHITE));
                    else {
                      if (S(c, r)) continue;
                      A(w, r)
                        ? this.script
                          ? ((this.script += '</' + r), (this.state = O.SCRIPT))
                          : D(this, 'Invalid tagname in closing tag.')
                        : (this.tagName = r);
                    }
                    continue;
                  case O.CLOSE_TAG_SAW_WHITE:
                    if (S(c, r)) continue;
                    '>' === r ? U(this) : D(this, 'Invalid characters in closing tag');
                    continue;
                  case O.TEXT_ENTITY:
                  case O.ATTRIB_VALUE_ENTITY_Q:
                  case O.ATTRIB_VALUE_ENTITY_U:
                    switch (this.state) {
                      case O.TEXT_ENTITY:
                        var s = O.TEXT,
                          u = 'textNode';
                        break;
                      case O.ATTRIB_VALUE_ENTITY_Q:
                        var s = O.ATTRIB_VALUE_QUOTED,
                          u = 'attribValue';
                        break;
                      case O.ATTRIB_VALUE_ENTITY_U:
                        var s = O.ATTRIB_VALUE_UNQUOTED,
                          u = 'attribValue';
                    }
                    ';' === r
                      ? ((this[u] += V(this)), (this.entity = ''), (this.state = s))
                      : S(h, r)
                      ? (this.entity += r)
                      : (D(this, 'Invalid character entity'),
                        (this[u] += '&' + this.entity + r),
                        (this.entity = ''),
                        (this.state = s));
                    continue;
                  default:
                    throw new Error(this, 'Unknown state: ' + this.state);
                }
              this.position >= this.bufferCheckPosition &&
                (function (e) {
                  for (
                    var n = Math.max(t.MAX_BUFFER_LENGTH, 10), r = 0, o = 0, a = i.length;
                    o < a;
                    o++
                  ) {
                    var s = e[i[o]].length;
                    if (s > n)
                      switch (i[o]) {
                        case 'textNode':
                          k(e);
                          break;
                        case 'cdata':
                          P(e, 'oncdata', e.cdata), (e.cdata = '');
                          break;
                        case 'script':
                          P(e, 'onscript', e.script), (e.script = '');
                          break;
                        default:
                          N(e, 'Max buffer length exceeded: ' + i[o]);
                      }
                    r = Math.max(r, s);
                  }
                  e.bufferCheckPosition = t.MAX_BUFFER_LENGTH - r + e.position;
                })(this);
              return this;
            },
            /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */ resume: function () {
              return (this.error = null), this;
            },
            close: function () {
              return this.write(null);
            },
            flush: function () {
              var e;
              k((e = this)),
                '' !== e.cdata && (P(e, 'oncdata', e.cdata), (e.cdata = '')),
                '' !== e.script && (P(e, 'onscript', e.script), (e.script = ''));
            },
          });
        try {
          var a = n(596).Stream;
        } catch (e) {
          a = function () {};
        }
        var s = t.EVENTS.filter(function (e) {
          return 'error' !== e && 'end' !== e;
        });
        function u(e, t) {
          if (!(this instanceof u)) return new u(e, t);
          a.apply(this), (this._parser = new o(e, t)), (this.writable = !0), (this.readable = !0);
          var n = this;
          (this._parser.onend = function () {
            n.emit('end');
          }),
            (this._parser.onerror = function (e) {
              n.emit('error', e), (n._parser.error = null);
            }),
            (this._decoder = null),
            s.forEach(function (e) {
              Object.defineProperty(n, 'on' + e, {
                get: function () {
                  return n._parser['on' + e];
                },
                set: function (t) {
                  if (!t) return n.removeAllListeners(e), (n._parser['on' + e] = t);
                  n.on(e, t);
                },
                enumerable: !0,
                configurable: !1,
              });
            });
        }
        (u.prototype = Object.create(a.prototype, { constructor: { value: u } })),
          (u.prototype.write = function (t) {
            if ('function' == typeof e && 'function' == typeof e.isBuffer && e.isBuffer(t)) {
              if (!this._decoder) {
                var r = n(138).StringDecoder;
                this._decoder = new r('utf8');
              }
              t = this._decoder.write(t);
            }
            return this._parser.write(t.toString()), this.emit('data', t), !0;
          }),
          (u.prototype.end = function (e) {
            return e && e.length && this.write(e), this._parser.end(), !0;
          }),
          (u.prototype.on = function (e, t) {
            var n = this;
            return (
              n._parser['on' + e] ||
                -1 === s.indexOf(e) ||
                (n._parser['on' + e] = function () {
                  var t = 1 === arguments.length ? [arguments[0]] : Array.apply(null, arguments);
                  t.splice(0, 0, e), n.emit.apply(n, t);
                }),
              a.prototype.on.call(n, e, t)
            );
          });
        var c = '\r\n\t ',
          p = '0124356789',
          f = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
          l = '\'"',
          h = p + f + '#',
          d = c + '>',
          m = '[CDATA[',
          y = 'DOCTYPE',
          v = 'http://www.w3.org/XML/1998/namespace',
          g = 'http://www.w3.org/2000/xmlns/',
          b = { xml: v, xmlns: g };
        (c = E(c)), (p = E(p)), (f = E(f));
        var w =
            /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,
          x =
            /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;
        function E(e) {
          return e.split('').reduce(function (e, t) {
            return (e[t] = !0), e;
          }, {});
        }
        function S(e, t) {
          return (function (e) {
            return '[object RegExp]' === Object.prototype.toString.call(e);
          })(e)
            ? !!t.match(e)
            : e[t];
        }
        function A(e, t) {
          return !S(e, t);
        }
        (l = E(l)), (h = E(h)), (d = E(d));
        var R,
          C,
          _,
          O = 0;
        for (var O in ((t.STATE = {
          BEGIN: O++,
          TEXT: O++,
          TEXT_ENTITY: O++,
          OPEN_WAKA: O++,
          SGML_DECL: O++,
          SGML_DECL_QUOTED: O++,
          DOCTYPE: O++,
          DOCTYPE_QUOTED: O++,
          DOCTYPE_DTD: O++,
          DOCTYPE_DTD_QUOTED: O++,
          COMMENT_STARTING: O++,
          COMMENT: O++,
          COMMENT_ENDING: O++,
          COMMENT_ENDED: O++,
          CDATA: O++,
          CDATA_ENDING: O++,
          CDATA_ENDING_2: O++,
          PROC_INST: O++,
          PROC_INST_BODY: O++,
          PROC_INST_ENDING: O++,
          OPEN_TAG: O++,
          OPEN_TAG_SLASH: O++,
          ATTRIB: O++,
          ATTRIB_NAME: O++,
          ATTRIB_NAME_SAW_WHITE: O++,
          ATTRIB_VALUE: O++,
          ATTRIB_VALUE_QUOTED: O++,
          ATTRIB_VALUE_CLOSED: O++,
          ATTRIB_VALUE_UNQUOTED: O++,
          ATTRIB_VALUE_ENTITY_Q: O++,
          ATTRIB_VALUE_ENTITY_U: O++,
          CLOSE_TAG: O++,
          CLOSE_TAG_SAW_WHITE: O++,
          SCRIPT: O++,
          SCRIPT_ENDING: O++,
        }),
        (t.ENTITIES = {
          amp: '&',
          gt: '>',
          lt: '<',
          quot: '"',
          apos: "'",
          AElig: 198,
          Aacute: 193,
          Acirc: 194,
          Agrave: 192,
          Aring: 197,
          Atilde: 195,
          Auml: 196,
          Ccedil: 199,
          ETH: 208,
          Eacute: 201,
          Ecirc: 202,
          Egrave: 200,
          Euml: 203,
          Iacute: 205,
          Icirc: 206,
          Igrave: 204,
          Iuml: 207,
          Ntilde: 209,
          Oacute: 211,
          Ocirc: 212,
          Ograve: 210,
          Oslash: 216,
          Otilde: 213,
          Ouml: 214,
          THORN: 222,
          Uacute: 218,
          Ucirc: 219,
          Ugrave: 217,
          Uuml: 220,
          Yacute: 221,
          aacute: 225,
          acirc: 226,
          aelig: 230,
          agrave: 224,
          aring: 229,
          atilde: 227,
          auml: 228,
          ccedil: 231,
          eacute: 233,
          ecirc: 234,
          egrave: 232,
          eth: 240,
          euml: 235,
          iacute: 237,
          icirc: 238,
          igrave: 236,
          iuml: 239,
          ntilde: 241,
          oacute: 243,
          ocirc: 244,
          ograve: 242,
          oslash: 248,
          otilde: 245,
          ouml: 246,
          szlig: 223,
          thorn: 254,
          uacute: 250,
          ucirc: 251,
          ugrave: 249,
          uuml: 252,
          yacute: 253,
          yuml: 255,
          copy: 169,
          reg: 174,
          nbsp: 160,
          iexcl: 161,
          cent: 162,
          pound: 163,
          curren: 164,
          yen: 165,
          brvbar: 166,
          sect: 167,
          uml: 168,
          ordf: 170,
          laquo: 171,
          not: 172,
          shy: 173,
          macr: 175,
          deg: 176,
          plusmn: 177,
          sup1: 185,
          sup2: 178,
          sup3: 179,
          acute: 180,
          micro: 181,
          para: 182,
          middot: 183,
          cedil: 184,
          ordm: 186,
          raquo: 187,
          frac14: 188,
          frac12: 189,
          frac34: 190,
          iquest: 191,
          times: 215,
          divide: 247,
          OElig: 338,
          oelig: 339,
          Scaron: 352,
          scaron: 353,
          Yuml: 376,
          fnof: 402,
          circ: 710,
          tilde: 732,
          Alpha: 913,
          Beta: 914,
          Gamma: 915,
          Delta: 916,
          Epsilon: 917,
          Zeta: 918,
          Eta: 919,
          Theta: 920,
          Iota: 921,
          Kappa: 922,
          Lambda: 923,
          Mu: 924,
          Nu: 925,
          Xi: 926,
          Omicron: 927,
          Pi: 928,
          Rho: 929,
          Sigma: 931,
          Tau: 932,
          Upsilon: 933,
          Phi: 934,
          Chi: 935,
          Psi: 936,
          Omega: 937,
          alpha: 945,
          beta: 946,
          gamma: 947,
          delta: 948,
          epsilon: 949,
          zeta: 950,
          eta: 951,
          theta: 952,
          iota: 953,
          kappa: 954,
          lambda: 955,
          mu: 956,
          nu: 957,
          xi: 958,
          omicron: 959,
          pi: 960,
          rho: 961,
          sigmaf: 962,
          sigma: 963,
          tau: 964,
          upsilon: 965,
          phi: 966,
          chi: 967,
          psi: 968,
          omega: 969,
          thetasym: 977,
          upsih: 978,
          piv: 982,
          ensp: 8194,
          emsp: 8195,
          thinsp: 8201,
          zwnj: 8204,
          zwj: 8205,
          lrm: 8206,
          rlm: 8207,
          ndash: 8211,
          mdash: 8212,
          lsquo: 8216,
          rsquo: 8217,
          sbquo: 8218,
          ldquo: 8220,
          rdquo: 8221,
          bdquo: 8222,
          dagger: 8224,
          Dagger: 8225,
          bull: 8226,
          hellip: 8230,
          permil: 8240,
          prime: 8242,
          Prime: 8243,
          lsaquo: 8249,
          rsaquo: 8250,
          oline: 8254,
          frasl: 8260,
          euro: 8364,
          image: 8465,
          weierp: 8472,
          real: 8476,
          trade: 8482,
          alefsym: 8501,
          larr: 8592,
          uarr: 8593,
          rarr: 8594,
          darr: 8595,
          harr: 8596,
          crarr: 8629,
          lArr: 8656,
          uArr: 8657,
          rArr: 8658,
          dArr: 8659,
          hArr: 8660,
          forall: 8704,
          part: 8706,
          exist: 8707,
          empty: 8709,
          nabla: 8711,
          isin: 8712,
          notin: 8713,
          ni: 8715,
          prod: 8719,
          sum: 8721,
          minus: 8722,
          lowast: 8727,
          radic: 8730,
          prop: 8733,
          infin: 8734,
          ang: 8736,
          and: 8743,
          or: 8744,
          cap: 8745,
          cup: 8746,
          int: 8747,
          there4: 8756,
          sim: 8764,
          cong: 8773,
          asymp: 8776,
          ne: 8800,
          equiv: 8801,
          le: 8804,
          ge: 8805,
          sub: 8834,
          sup: 8835,
          nsub: 8836,
          sube: 8838,
          supe: 8839,
          oplus: 8853,
          otimes: 8855,
          perp: 8869,
          sdot: 8901,
          lceil: 8968,
          rceil: 8969,
          lfloor: 8970,
          rfloor: 8971,
          lang: 9001,
          rang: 9002,
          loz: 9674,
          spades: 9824,
          clubs: 9827,
          hearts: 9829,
          diams: 9830,
        }),
        Object.keys(t.ENTITIES).forEach(function (e) {
          var n = t.ENTITIES[e],
            r = 'number' == typeof n ? String.fromCharCode(n) : n;
          t.ENTITIES[e] = r;
        }),
        t.STATE))
          t.STATE[t.STATE[O]] = O;
        function T(e, t, n) {
          e[t] && e[t](n);
        }
        function P(e, t, n) {
          e.textNode && k(e), T(e, t, n);
        }
        function k(e) {
          (e.textNode = I(e.opt, e.textNode)),
            e.textNode && T(e, 'ontext', e.textNode),
            (e.textNode = '');
        }
        function I(e, t) {
          return e.trim && (t = t.trim()), e.normalize && (t = t.replace(/\s+/g, ' ')), t;
        }
        function N(e, t) {
          return (
            k(e),
            e.trackPosition &&
              (t += '\nLine: ' + e.line + '\nColumn: ' + e.column + '\nChar: ' + e.c),
            (t = new Error(t)),
            (e.error = t),
            T(e, 'onerror', t),
            e
          );
        }
        function M(e) {
          return (
            e.closedRoot || D(e, 'Unclosed root tag'),
            e.state !== O.BEGIN && e.state !== O.TEXT && N(e, 'Unexpected end'),
            k(e),
            (e.c = ''),
            (e.closed = !0),
            T(e, 'onend'),
            o.call(e, e.strict, e.opt),
            e
          );
        }
        function D(e, t) {
          if ('object' !== r(e) || !(e instanceof o)) throw new Error('bad call to strictFail');
          e.strict && N(e, t);
        }
        function j(e) {
          e.strict || (e.tagName = e.tagName[e.looseCase]());
          var t = e.tags[e.tags.length - 1] || e,
            n = (e.tag = { name: e.tagName, attributes: {} });
          e.opt.xmlns && (n.ns = t.ns), (e.attribList.length = 0);
        }
        function L(e, t) {
          var n = e.indexOf(':') < 0 ? ['', e] : e.split(':'),
            r = n[0],
            i = n[1];
          return t && 'xmlns' === e && ((r = 'xmlns'), (i = '')), { prefix: r, local: i };
        }
        function B(e) {
          if (
            (e.strict || (e.attribName = e.attribName[e.looseCase]()),
            -1 !== e.attribList.indexOf(e.attribName) ||
              e.tag.attributes.hasOwnProperty(e.attribName))
          )
            return (e.attribName = e.attribValue = '');
          if (e.opt.xmlns) {
            var t = L(e.attribName, !0),
              n = t.prefix,
              r = t.local;
            if ('xmlns' === n)
              if ('xml' === r && e.attribValue !== v)
                D(e, 'xml: prefix must be bound to ' + v + '\nActual: ' + e.attribValue);
              else if ('xmlns' === r && e.attribValue !== g)
                D(e, 'xmlns: prefix must be bound to ' + g + '\nActual: ' + e.attribValue);
              else {
                var i = e.tag,
                  o = e.tags[e.tags.length - 1] || e;
                i.ns === o.ns && (i.ns = Object.create(o.ns)), (i.ns[r] = e.attribValue);
              }
            e.attribList.push([e.attribName, e.attribValue]);
          } else
            (e.tag.attributes[e.attribName] = e.attribValue),
              P(e, 'onattribute', { name: e.attribName, value: e.attribValue });
          e.attribName = e.attribValue = '';
        }
        function F(e, t) {
          if (e.opt.xmlns) {
            var n = e.tag,
              r = L(e.tagName);
            (n.prefix = r.prefix),
              (n.local = r.local),
              (n.uri = n.ns[r.prefix] || ''),
              n.prefix &&
                !n.uri &&
                (D(e, 'Unbound namespace prefix: ' + JSON.stringify(e.tagName)),
                (n.uri = r.prefix));
            var i = e.tags[e.tags.length - 1] || e;
            n.ns &&
              i.ns !== n.ns &&
              Object.keys(n.ns).forEach(function (t) {
                P(e, 'onopennamespace', { prefix: t, uri: n.ns[t] });
              });
            for (var o = 0, a = e.attribList.length; o < a; o++) {
              var s = e.attribList[o],
                u = s[0],
                c = s[1],
                p = L(u, !0),
                f = p.prefix,
                l = p.local,
                h = '' == f ? '' : n.ns[f] || '',
                d = { name: u, value: c, prefix: f, local: l, uri: h };
              f &&
                'xmlns' != f &&
                !h &&
                (D(e, 'Unbound namespace prefix: ' + JSON.stringify(f)), (d.uri = f)),
                (e.tag.attributes[u] = d),
                P(e, 'onattribute', d);
            }
            e.attribList.length = 0;
          }
          (e.tag.isSelfClosing = !!t),
            (e.sawRoot = !0),
            e.tags.push(e.tag),
            P(e, 'onopentag', e.tag),
            t ||
              (e.noscript || 'script' !== e.tagName.toLowerCase()
                ? (e.state = O.TEXT)
                : (e.state = O.SCRIPT),
              (e.tag = null),
              (e.tagName = '')),
            (e.attribName = e.attribValue = ''),
            (e.attribList.length = 0);
        }
        function U(e) {
          if (!e.tagName)
            return D(e, 'Weird empty close tag.'), (e.textNode += '</>'), void (e.state = O.TEXT);
          if (e.script) {
            if ('script' !== e.tagName)
              return (
                (e.script += '</' + e.tagName + '>'), (e.tagName = ''), void (e.state = O.SCRIPT)
              );
            P(e, 'onscript', e.script), (e.script = '');
          }
          var t = e.tags.length,
            n = e.tagName;
          e.strict || (n = n[e.looseCase]());
          for (var r = n; t--; ) {
            if (e.tags[t].name === r) break;
            D(e, 'Unexpected close tag');
          }
          if (t < 0)
            return (
              D(e, 'Unmatched closing tag: ' + e.tagName),
              (e.textNode += '</' + e.tagName + '>'),
              void (e.state = O.TEXT)
            );
          e.tagName = n;
          for (var i = e.tags.length; i-- > t; ) {
            var o = (e.tag = e.tags.pop());
            (e.tagName = e.tag.name), P(e, 'onclosetag', e.tagName);
            var a = {};
            for (var s in o.ns) a[s] = o.ns[s];
            var u = e.tags[e.tags.length - 1] || e;
            e.opt.xmlns &&
              o.ns !== u.ns &&
              Object.keys(o.ns).forEach(function (t) {
                var n = o.ns[t];
                P(e, 'onclosenamespace', { prefix: t, uri: n });
              });
          }
          0 === t && (e.closedRoot = !0),
            (e.tagName = e.attribValue = e.attribName = ''),
            (e.attribList.length = 0),
            (e.state = O.TEXT);
        }
        function V(e) {
          var t,
            n = e.entity,
            r = n.toLowerCase(),
            i = '';
          return e.ENTITIES[n]
            ? e.ENTITIES[n]
            : e.ENTITIES[r]
            ? e.ENTITIES[r]
            : ('#' === (n = r).charAt(0) &&
                ('x' === n.charAt(1)
                  ? ((n = n.slice(2)), (i = (t = parseInt(n, 16)).toString(16)))
                  : ((n = n.slice(1)), (i = (t = parseInt(n, 10)).toString(10)))),
              (n = n.replace(/^0+/, '')),
              i.toLowerCase() !== n
                ? (D(e, 'Invalid character entity'), '&' + e.entity + ';')
                : String.fromCodePoint(t));
        }
        (O = t.STATE),
          String.fromCodePoint ||
            ((R = String.fromCharCode),
            (C = Math.floor),
            (_ = function () {
              var e,
                t,
                n = 16384,
                r = [],
                i = -1,
                o = arguments.length;
              if (!o) return '';
              for (var a = ''; ++i < o; ) {
                var s = Number(arguments[i]);
                if (!isFinite(s) || s < 0 || s > 1114111 || C(s) != s)
                  throw RangeError('Invalid code point: ' + s);
                s <= 65535
                  ? r.push(s)
                  : ((e = 55296 + ((s -= 65536) >> 10)), (t = (s % 1024) + 56320), r.push(e, t)),
                  (i + 1 == o || r.length > n) && ((a += R.apply(null, r)), (r.length = 0));
              }
              return a;
            }),
            Object.defineProperty
              ? Object.defineProperty(String, 'fromCodePoint', {
                  value: _,
                  configurable: !0,
                  writable: !0,
                })
              : (String.fromCodePoint = _));
      })(t);
    }.call(this, n(38).Buffer));
  },
  function (e, t, n) {
    e.exports = i;
    var r = n(55).EventEmitter;
    function i() {
      r.call(this);
    }
    n(39)(i, r),
      (i.Readable = n(72)),
      (i.Writable = n(597)),
      (i.Duplex = n(598)),
      (i.Transform = n(599)),
      (i.PassThrough = n(600)),
      (i.Stream = i),
      (i.prototype.pipe = function (e, t) {
        var n = this;
        function i(t) {
          e.writable && !1 === e.write(t) && n.pause && n.pause();
        }
        function o() {
          n.readable && n.resume && n.resume();
        }
        n.on('data', i),
          e.on('drain', o),
          e._isStdio || (t && !1 === t.end) || (n.on('end', s), n.on('close', u));
        var a = !1;
        function s() {
          a || ((a = !0), e.end());
        }
        function u() {
          a || ((a = !0), 'function' == typeof e.destroy && e.destroy());
        }
        function c(e) {
          if ((p(), 0 === r.listenerCount(this, 'error'))) throw e;
        }
        function p() {
          n.removeListener('data', i),
            e.removeListener('drain', o),
            n.removeListener('end', s),
            n.removeListener('close', u),
            n.removeListener('error', c),
            e.removeListener('error', c),
            n.removeListener('end', p),
            n.removeListener('close', p),
            e.removeListener('close', p);
        }
        return (
          n.on('error', c),
          e.on('error', c),
          n.on('end', p),
          n.on('close', p),
          e.on('close', p),
          e.emit('pipe', n),
          e
        );
      });
  },
  function (e, t, n) {
    e.exports = n(137);
  },
  function (e, t, n) {
    e.exports = n(56);
  },
  function (e, t, n) {
    e.exports = n(72).Transform;
  },
  function (e, t, n) {
    e.exports = n(72).PassThrough;
  },
  function (e, t, n) {
    'use strict';
    var r = n(602),
      i = n(228),
      o = n(215),
      a = n(605),
      s = n(103),
      u = n(150),
      c = n(80).parseName,
      p = n(229),
      f = p.nameToAlias,
      l = p.serializeAsType,
      h = p.serializeAsProperty,
      d = '<?xml version="1.0" encoding="UTF-8"?>\n',
      m = /(<|>|'|"|&|\n\r|\n)/g,
      y = p.DEFAULT_NS_MAP,
      v = p.XSI_TYPE;
    function g(e, t) {
      (e.super_ = t),
        (e.prototype = Object.create(t.prototype, {
          constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 },
        }));
    }
    function b(e) {
      return o(e) ? e : (e.prefix ? e.prefix + ':' : '') + e.localName;
    }
    var w = { '\n': '10', '\n\r': '10', '"': '34', "'": '39', '<': '60', '>': '62', '&': '38' };
    function x(e) {
      return (e = o(e) ? e : '' + e).replace(m, function (e) {
        return '&#' + w[e] + ';';
      });
    }
    function E(e, t) {
      this.ns = t;
    }
    function S() {}
    function A(e) {
      this.ns = e;
    }
    function R(e, t) {
      (this.body = []), (this.attrs = []), (this.parent = e), (this.ns = t);
    }
    function C(e, t) {
      R.call(this, e, t);
    }
    function _() {
      (this.value = ''),
        (this.write = function (e) {
          this.value += e;
        });
    }
    function O(e, t) {
      var n = [''];
      (this.append = function (t) {
        return e.write(t), this;
      }),
        (this.appendNewLine = function () {
          return t && e.write('\n'), this;
        }),
        (this.appendIndent = function () {
          return t && e.write(n.join('  ')), this;
        }),
        (this.indent = function () {
          return n.push(''), this;
        }),
        (this.unindent = function () {
          return n.pop(), this;
        });
    }
    (E.prototype.build = function (e) {
      return (this.element = e), this;
    }),
      (E.prototype.serializeTo = function (e) {
        e.appendIndent()
          .append('<' + b(this.ns) + '>' + this.element.id + '</' + b(this.ns) + '>')
          .appendNewLine();
      }),
      (S.prototype.serializeValue = S.prototype.serializeTo =
        function (e) {
          var t = this.escape;
          t && e.append('<![CDATA['), e.append(this.value), t && e.append(']]>');
        }),
      (S.prototype.build = function (e, t) {
        return (
          (this.value = t), 'String' === e.type && -1 !== t.search(m) && (this.escape = !0), this
        );
      }),
      g(A, S),
      (A.prototype.serializeTo = function (e) {
        e.appendIndent().append('<' + b(this.ns) + '>'),
          this.serializeValue(e),
          e.append('</' + b(this.ns) + '>').appendNewLine();
      }),
      (R.prototype.build = function (e) {
        this.element = e;
        var t = this.parseNsAttributes(e);
        if ((this.ns || (this.ns = this.nsTagName(e.$descriptor)), e.$descriptor.isGeneric))
          this.parseGeneric(e);
        else {
          var n = (function (e) {
            var t = e.$descriptor;
            return a(t.properties, function (t) {
              var n = t.name;
              if (t.isVirtual) return !1;
              if (!e.hasOwnProperty(n)) return !1;
              var r = e[n];
              return r !== t.default && null !== r && (!t.isMany || r.length);
            });
          })(e);
          this.parseAttributes(
            a(n, function (e) {
              return e.isAttr;
            }),
          ),
            this.parseContainments(
              (function (e) {
                return a(e, function (e) {
                  return !e.isAttr;
                });
              })(n),
            ),
            this.parseGenericAttributes(e, t);
        }
        return this;
      }),
      (R.prototype.nsTagName = function (e) {
        return (function (e, t) {
          return t.isGeneric ? t.name : s({ localName: f(t.ns.localName, t.$pkg) }, e);
        })(this.logNamespaceUsed(e.ns), e);
      }),
      (R.prototype.nsPropertyTagName = function (e) {
        return (function (e, t) {
          return s({ localName: t.ns.localName }, e);
        })(this.logNamespaceUsed(e.ns), e);
      }),
      (R.prototype.isLocalNs = function (e) {
        return e.uri === this.ns.uri;
      }),
      (R.prototype.nsAttributeName = function (e) {
        var t;
        if (((t = o(e) ? c(e) : e.ns), e.inherited)) return { localName: t.localName };
        var n = this.logNamespaceUsed(t);
        return this.isLocalNs(n) ? { localName: t.localName } : s({ localName: t.localName }, n);
      }),
      (R.prototype.parseGeneric = function (e) {
        var t = this,
          n = this.body,
          r = this.attrs;
        i(e, function (e, o) {
          '$body' === o
            ? n.push(new S().build({ type: 'String' }, e))
            : '$children' === o
            ? i(e, function (e) {
                n.push(new R(t).build(e));
              })
            : 0 !== o.indexOf('$') && r.push({ name: o, value: x(e) });
        });
      }),
      (R.prototype.parseNsAttributes = function (e) {
        var t = this,
          n = e.$attrs,
          r = e.$model,
          o = [];
        return (
          i(n, function (e, n) {
            var i,
              a = c(n);
            'xmlns' === a.prefix && (i = { prefix: a.localName, uri: e }),
              a.prefix || 'xmlns' !== a.localName || (i = { uri: e }),
              i
                ? r.getPackage(e)
                  ? t.logNamespace(i, !0)
                  : t.logNamespaceUsed(i)
                : o.push({ name: n, value: e });
          }),
          o
        );
      }),
      (R.prototype.parseGenericAttributes = function (e, t) {
        var n = this;
        i(t, function (t) {
          if (t.name !== v)
            try {
              n.addAttribute(n.nsAttributeName(t.name), t.value);
            } catch (n) {
              console.warn('missing namespace information for ', t.name, '=', t.value, 'on', e, n);
            }
        });
      }),
      (R.prototype.parseContainments = function (e) {
        var t = this,
          n = this.body,
          r = this.element;
        i(e, function (e) {
          var o = r.get(e.name),
            a = e.isReference,
            s = e.isMany,
            c = t.nsPropertyTagName(e);
          if ((s || (o = [o]), e.isBody)) n.push(new S().build(e, o[0]));
          else if (u.isSimple(e.type))
            i(o, function (t) {
              n.push(new A(c).build(e, t));
            });
          else if (a)
            i(o, function (e) {
              n.push(new E(t, c).build(e));
            });
          else {
            var p = l(e),
              f = h(e);
            i(o, function (e) {
              var r;
              (r = p ? new C(t, c) : f ? new R(t, c) : new R(t)), n.push(r.build(e));
            });
          }
        });
      }),
      (R.prototype.getNamespaces = function () {
        var e = this.namespaces,
          t = this.parent;
        return (
          e ||
            (e = this.namespaces =
              t
                ? t.getNamespaces()
                : { prefixMap: {}, uriMap: {}, used: {}, wellknown: [], custom: [] }),
          e
        );
      }),
      (R.prototype.logNamespace = function (e, t) {
        var n = this.getNamespaces(),
          r = e.uri;
        return (
          n.uriMap[r] || ((n.uriMap[r] = e), t ? n.wellknown.push(e) : n.custom.push(e)),
          (n.prefixMap[e.prefix] = r),
          e
        );
      }),
      (R.prototype.logNamespaceUsed = function (e) {
        var t = this.element.$model,
          n = this.getNamespaces(),
          r = e.prefix;
        if (void 0 === r) return {};
        var i = y[r] || (t && (t.getPackage(r) || {}).uri),
          o = e.uri || n.prefixMap[r] || i;
        if (!o) throw new Error('no namespace uri given for prefix <' + e.prefix + '>');
        return (
          (e = n.uriMap[o]) || (e = this.logNamespace({ prefix: r, uri: o }, i)),
          n.used[e.uri] || (n.used[e.uri] = e),
          e
        );
      }),
      (R.prototype.parseAttributes = function (e) {
        var t = this,
          n = this.element;
        i(e, function (e) {
          var r = n.get(e.name);
          if (e.isReference)
            if (e.isMany) {
              var o = [];
              i(r, function (e) {
                o.push(e.id);
              }),
                (r = o.join(' '));
            } else r = r.id;
          t.addAttribute(t.nsAttributeName(e), r);
        });
      }),
      (R.prototype.addAttribute = function (e, t) {
        var n = this.attrs;
        o(t) && (t = x(t)), n.push({ name: e, value: t });
      }),
      (R.prototype.serializeAttributes = function (e) {
        var t,
          n,
          o = this.attrs;
        !this.parent &&
          (o = ((t = this.namespaces),
          (n = [].concat(t.wellknown, t.custom)),
          r(
            a(n, function (e) {
              return t.used[e.uri];
            }),
            function (e) {
              return { name: 'xmlns' + (e.prefix ? ':' + e.prefix : ''), value: e.uri };
            },
          )).concat(o)),
          i(o, function (t) {
            e.append(' ').append(b(t.name)).append('="').append(t.value).append('"');
          });
      }),
      (R.prototype.serializeTo = function (e) {
        var t = this.body[0],
          n = t && t.constructor !== S;
        e.appendIndent().append('<' + b(this.ns)),
          this.serializeAttributes(e),
          e.append(t ? '>' : ' />'),
          t &&
            (n && e.appendNewLine().indent(),
            i(this.body, function (t) {
              t.serializeTo(e);
            }),
            n && e.unindent().appendIndent(),
            e.append('</' + b(this.ns) + '>')),
          e.appendNewLine();
      }),
      g(C, R),
      (C.prototype.build = function (e) {
        var t = e.$descriptor;
        (this.element = e), (this.typeNs = this.nsTagName(t));
        var n = this.typeNs,
          r = e.$model.getPackage(n.uri),
          i = (r.xml && r.xml.typePrefix) || '';
        return (
          this.addAttribute(
            this.nsAttributeName(v),
            (n.prefix ? n.prefix + ':' : '') + i + t.ns.localName,
          ),
          R.prototype.build.call(this, e)
        );
      }),
      (C.prototype.isLocalNs = function (e) {
        return e.uri === this.typeNs.uri;
      }),
      (e.exports = function (e) {
        return (
          (e = s({ format: !1, preamble: !0 }, e || {})),
          {
            toXML: function (t, n) {
              var r = n || new _(),
                i = new O(r, e.format);
              if ((e.preamble && i.append(d), new R().build(t).serializeTo(i), !n)) return r.value;
            },
          }
        );
      });
  },
  function (e, t, n) {
    var r = n(603),
      i = n(108),
      o = n(604),
      a = n(27);
    e.exports = function (e, t, n) {
      return (a(e) ? r : o)(e, (t = i(t, n, 3)));
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = e.length, i = Array(r); ++n < r; ) i[n] = t(e[n], n, e);
      return i;
    };
  },
  function (e, t, n) {
    var r = n(81),
      i = n(104);
    e.exports = function (e, t) {
      var n = -1,
        o = i(e) ? Array(e.length) : [];
      return (
        r(e, function (e, r, i) {
          o[++n] = t(e, r, i);
        }),
        o
      );
    };
  },
  function (e, t, n) {
    var r = n(606),
      i = n(108),
      o = n(607),
      a = n(27);
    e.exports = function (e, t, n) {
      return (a(e) ? r : o)(e, (t = i(t, n, 3)));
    };
  },
  function (e, t) {
    e.exports = function (e, t) {
      for (var n = -1, r = e.length, i = -1, o = []; ++n < r; ) {
        var a = e[n];
        t(a, n, e) && (o[++i] = a);
      }
      return o;
    };
  },
  function (e, t, n) {
    var r = n(81);
    e.exports = function (e, t) {
      var n = [];
      return (
        r(e, function (e, r, i) {
          t(e, r, i) && n.push(e);
        }),
        n
      );
    };
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"BPMN20","uri":"http://www.omg.org/spec/BPMN/20100524/MODEL","associations":[],"types":[{"name":"Interface","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"operations","type":"Operation","isMany":true},{"name":"implementationRef","type":"String","isAttr":true}]},{"name":"Operation","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"inMessageRef","type":"Message","isReference":true},{"name":"outMessageRef","type":"Message","isReference":true},{"name":"errorRef","type":"Error","isMany":true,"isReference":true},{"name":"implementationRef","type":"String","isAttr":true}]},{"name":"EndPoint","superClass":["RootElement"]},{"name":"Auditing","superClass":["BaseElement"]},{"name":"GlobalTask","superClass":["CallableElement"],"properties":[{"name":"resources","type":"ResourceRole","isMany":true}]},{"name":"Monitoring","superClass":["BaseElement"]},{"name":"Performer","superClass":["ResourceRole"]},{"name":"Process","superClass":["FlowElementsContainer","CallableElement"],"properties":[{"name":"processType","type":"ProcessType","isAttr":true},{"name":"isClosed","isAttr":true,"type":"Boolean"},{"name":"auditing","type":"Auditing"},{"name":"monitoring","type":"Monitoring"},{"name":"properties","type":"Property","isMany":true},{"name":"laneSets","type":"LaneSet","isMany":true,"replaces":"FlowElementsContainer#laneSets"},{"name":"flowElements","type":"FlowElement","isMany":true,"replaces":"FlowElementsContainer#flowElements"},{"name":"artifacts","type":"Artifact","isMany":true},{"name":"resources","type":"ResourceRole","isMany":true},{"name":"correlationSubscriptions","type":"CorrelationSubscription","isMany":true},{"name":"supports","type":"Process","isMany":true,"isReference":true},{"name":"definitionalCollaborationRef","type":"Collaboration","isAttr":true,"isReference":true},{"name":"isExecutable","isAttr":true,"type":"Boolean"}]},{"name":"LaneSet","superClass":["BaseElement"],"properties":[{"name":"lanes","type":"Lane","isMany":true},{"name":"name","isAttr":true,"type":"String"}]},{"name":"Lane","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"partitionElementRef","type":"BaseElement","isAttr":true,"isReference":true},{"name":"partitionElement","type":"BaseElement"},{"name":"flowNodeRef","type":"FlowNode","isMany":true,"isReference":true},{"name":"childLaneSet","type":"LaneSet","xml":{"serialize":"xsi:type"}}]},{"name":"GlobalManualTask","superClass":["GlobalTask"]},{"name":"ManualTask","superClass":["Task"]},{"name":"UserTask","superClass":["Task"],"properties":[{"name":"renderings","type":"Rendering","isMany":true},{"name":"implementation","isAttr":true,"type":"String"}]},{"name":"Rendering","superClass":["BaseElement"]},{"name":"HumanPerformer","superClass":["Performer"]},{"name":"PotentialOwner","superClass":["HumanPerformer"]},{"name":"GlobalUserTask","superClass":["GlobalTask"],"properties":[{"name":"implementation","isAttr":true,"type":"String"},{"name":"renderings","type":"Rendering","isMany":true}]},{"name":"Gateway","isAbstract":true,"superClass":["FlowNode"],"properties":[{"name":"gatewayDirection","type":"GatewayDirection","default":"Unspecified","isAttr":true}]},{"name":"EventBasedGateway","superClass":["Gateway"],"properties":[{"name":"instantiate","default":false,"isAttr":true,"type":"Boolean"},{"name":"eventGatewayType","type":"EventBasedGatewayType","isAttr":true,"default":"Exclusive"}]},{"name":"ComplexGateway","superClass":["Gateway"],"properties":[{"name":"activationCondition","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"default","type":"SequenceFlow","isAttr":true,"isReference":true}]},{"name":"ExclusiveGateway","superClass":["Gateway"],"properties":[{"name":"default","type":"SequenceFlow","isAttr":true,"isReference":true}]},{"name":"InclusiveGateway","superClass":["Gateway"],"properties":[{"name":"default","type":"SequenceFlow","isAttr":true,"isReference":true}]},{"name":"ParallelGateway","superClass":["Gateway"]},{"name":"RootElement","isAbstract":true,"superClass":["BaseElement"]},{"name":"Relationship","superClass":["BaseElement"],"properties":[{"name":"type","isAttr":true,"type":"String"},{"name":"direction","type":"RelationshipDirection","isAttr":true},{"name":"source","isMany":true,"isReference":true,"type":"Element"},{"name":"target","isMany":true,"isReference":true,"type":"Element"}]},{"name":"BaseElement","isAbstract":true,"properties":[{"name":"id","isAttr":true,"type":"String","isId":true},{"name":"documentation","type":"Documentation","isMany":true},{"name":"extensionDefinitions","type":"ExtensionDefinition","isMany":true,"isReference":true},{"name":"extensionElements","type":"ExtensionElements"}]},{"name":"Extension","properties":[{"name":"mustUnderstand","default":false,"isAttr":true,"type":"Boolean"},{"name":"definition","type":"ExtensionDefinition","isAttr":true,"isReference":true}]},{"name":"ExtensionDefinition","properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"extensionAttributeDefinitions","type":"ExtensionAttributeDefinition","isMany":true}]},{"name":"ExtensionAttributeDefinition","properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"type","isAttr":true,"type":"String"},{"name":"isReference","default":false,"isAttr":true,"type":"Boolean"},{"name":"extensionDefinition","type":"ExtensionDefinition","isAttr":true,"isReference":true}]},{"name":"ExtensionElements","properties":[{"name":"valueRef","isAttr":true,"isReference":true,"type":"Element"},{"name":"values","type":"Element","isMany":true},{"name":"extensionAttributeDefinition","type":"ExtensionAttributeDefinition","isAttr":true,"isReference":true}]},{"name":"Documentation","superClass":["BaseElement"],"properties":[{"name":"text","type":"String","isBody":true},{"name":"textFormat","default":"text/plain","isAttr":true,"type":"String"}]},{"name":"Event","isAbstract":true,"superClass":["FlowNode","InteractionNode"],"properties":[{"name":"properties","type":"Property","isMany":true}]},{"name":"IntermediateCatchEvent","superClass":["CatchEvent"]},{"name":"IntermediateThrowEvent","superClass":["ThrowEvent"]},{"name":"EndEvent","superClass":["ThrowEvent"]},{"name":"StartEvent","superClass":["CatchEvent"],"properties":[{"name":"isInterrupting","default":true,"isAttr":true,"type":"Boolean"}]},{"name":"ThrowEvent","isAbstract":true,"superClass":["Event"],"properties":[{"name":"dataInputs","type":"DataInput","isMany":true},{"name":"dataInputAssociations","type":"DataInputAssociation","isMany":true},{"name":"inputSet","type":"InputSet"},{"name":"eventDefinitions","type":"EventDefinition","isMany":true},{"name":"eventDefinitionRef","type":"EventDefinition","isMany":true,"isReference":true}]},{"name":"CatchEvent","isAbstract":true,"superClass":["Event"],"properties":[{"name":"parallelMultiple","isAttr":true,"type":"Boolean","default":false},{"name":"dataOutputs","type":"DataOutput","isMany":true},{"name":"dataOutputAssociations","type":"DataOutputAssociation","isMany":true},{"name":"outputSet","type":"OutputSet"},{"name":"eventDefinitions","type":"EventDefinition","isMany":true},{"name":"eventDefinitionRef","type":"EventDefinition","isMany":true,"isReference":true}]},{"name":"BoundaryEvent","superClass":["CatchEvent"],"properties":[{"name":"cancelActivity","default":true,"isAttr":true,"type":"Boolean"},{"name":"attachedToRef","type":"Activity","isAttr":true,"isReference":true}]},{"name":"EventDefinition","isAbstract":true,"superClass":["RootElement"]},{"name":"CancelEventDefinition","superClass":["EventDefinition"]},{"name":"ErrorEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"errorRef","type":"Error","isAttr":true,"isReference":true}]},{"name":"TerminateEventDefinition","superClass":["EventDefinition"]},{"name":"EscalationEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"escalationRef","type":"Escalation","isAttr":true,"isReference":true}]},{"name":"Escalation","properties":[{"name":"structureRef","type":"ItemDefinition","isAttr":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"},{"name":"escalationCode","isAttr":true,"type":"String"}],"superClass":["RootElement"]},{"name":"CompensateEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"waitForCompletion","isAttr":true,"type":"Boolean"},{"name":"activityRef","type":"Activity","isAttr":true,"isReference":true}]},{"name":"TimerEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"timeDate","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"timeCycle","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"timeDuration","type":"Expression","xml":{"serialize":"xsi:type"}}]},{"name":"LinkEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"target","type":"LinkEventDefinition","isAttr":true,"isReference":true},{"name":"source","type":"LinkEventDefinition","isMany":true,"isReference":true}]},{"name":"MessageEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"messageRef","type":"Message","isAttr":true,"isReference":true},{"name":"operationRef","type":"Operation","isAttr":true,"isReference":true}]},{"name":"ConditionalEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"condition","type":"Expression","xml":{"serialize":"xsi:type"}}]},{"name":"SignalEventDefinition","superClass":["EventDefinition"],"properties":[{"name":"signalRef","type":"Signal","isAttr":true,"isReference":true}]},{"name":"Signal","superClass":["RootElement"],"properties":[{"name":"structureRef","type":"ItemDefinition","isAttr":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"}]},{"name":"ImplicitThrowEvent","superClass":["ThrowEvent"]},{"name":"DataState","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"}]},{"name":"ItemAwareElement","superClass":["BaseElement"],"properties":[{"name":"itemSubjectRef","type":"ItemDefinition","isAttr":true,"isReference":true},{"name":"dataState","type":"DataState"}]},{"name":"DataAssociation","superClass":["BaseElement"],"properties":[{"name":"assignment","type":"Assignment","isMany":true},{"name":"sourceRef","type":"ItemAwareElement","isMany":true,"isReference":true},{"name":"targetRef","type":"ItemAwareElement","isReference":true},{"name":"transformation","type":"FormalExpression","xml":{"serialize":"property"}}]},{"name":"DataInput","superClass":["ItemAwareElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"isCollection","default":false,"isAttr":true,"type":"Boolean"},{"name":"inputSetRef","type":"InputSet","isVirtual":true,"isMany":true,"isReference":true},{"name":"inputSetWithOptional","type":"InputSet","isVirtual":true,"isMany":true,"isReference":true},{"name":"inputSetWithWhileExecuting","type":"InputSet","isVirtual":true,"isMany":true,"isReference":true}]},{"name":"DataOutput","superClass":["ItemAwareElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"isCollection","default":false,"isAttr":true,"type":"Boolean"},{"name":"outputSetRef","type":"OutputSet","isVirtual":true,"isMany":true,"isReference":true},{"name":"outputSetWithOptional","type":"OutputSet","isVirtual":true,"isMany":true,"isReference":true},{"name":"outputSetWithWhileExecuting","type":"OutputSet","isVirtual":true,"isMany":true,"isReference":true}]},{"name":"InputSet","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"dataInputRefs","type":"DataInput","isMany":true,"isReference":true},{"name":"optionalInputRefs","type":"DataInput","isMany":true,"isReference":true},{"name":"whileExecutingInputRefs","type":"DataInput","isMany":true,"isReference":true},{"name":"outputSetRefs","type":"OutputSet","isMany":true,"isReference":true}]},{"name":"OutputSet","superClass":["BaseElement"],"properties":[{"name":"dataOutputRefs","type":"DataOutput","isMany":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"},{"name":"inputSetRefs","type":"InputSet","isMany":true,"isReference":true},{"name":"optionalOutputRefs","type":"DataOutput","isMany":true,"isReference":true},{"name":"whileExecutingOutputRefs","type":"DataOutput","isMany":true,"isReference":true}]},{"name":"Property","superClass":["ItemAwareElement"],"properties":[{"name":"name","isAttr":true,"type":"String"}]},{"name":"DataInputAssociation","superClass":["DataAssociation"]},{"name":"DataOutputAssociation","superClass":["DataAssociation"]},{"name":"InputOutputSpecification","superClass":["BaseElement"],"properties":[{"name":"dataInputs","type":"DataInput","isMany":true},{"name":"dataOutputs","type":"DataOutput","isMany":true},{"name":"inputSets","type":"InputSet","isMany":true},{"name":"outputSets","type":"OutputSet","isMany":true}]},{"name":"DataObject","superClass":["FlowElement","ItemAwareElement"],"properties":[{"name":"isCollection","default":false,"isAttr":true,"type":"Boolean"}]},{"name":"InputOutputBinding","properties":[{"name":"inputDataRef","type":"InputSet","isAttr":true,"isReference":true},{"name":"outputDataRef","type":"OutputSet","isAttr":true,"isReference":true},{"name":"operationRef","type":"Operation","isAttr":true,"isReference":true}]},{"name":"Assignment","superClass":["BaseElement"],"properties":[{"name":"from","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"to","type":"Expression","xml":{"serialize":"xsi:type"}}]},{"name":"DataStore","superClass":["RootElement","ItemAwareElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"capacity","isAttr":true,"type":"Integer"},{"name":"isUnlimited","default":true,"isAttr":true,"type":"Boolean"}]},{"name":"DataStoreReference","superClass":["ItemAwareElement","FlowElement"],"properties":[{"name":"dataStoreRef","type":"DataStore","isAttr":true,"isReference":true}]},{"name":"DataObjectReference","superClass":["ItemAwareElement","FlowElement"],"properties":[{"name":"dataObjectRef","type":"DataObject","isAttr":true,"isReference":true}]},{"name":"ConversationLink","superClass":["BaseElement"],"properties":[{"name":"sourceRef","type":"InteractionNode","isAttr":true,"isReference":true},{"name":"targetRef","type":"InteractionNode","isAttr":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"}]},{"name":"ConversationAssociation","superClass":["BaseElement"],"properties":[{"name":"innerConversationNodeRef","type":"ConversationNode","isAttr":true,"isReference":true},{"name":"outerConversationNodeRef","type":"ConversationNode","isAttr":true,"isReference":true}]},{"name":"CallConversation","superClass":["ConversationNode"],"properties":[{"name":"calledCollaborationRef","type":"Collaboration","isAttr":true,"isReference":true},{"name":"participantAssociations","type":"ParticipantAssociation","isMany":true}]},{"name":"Conversation","superClass":["ConversationNode"]},{"name":"SubConversation","superClass":["ConversationNode"],"properties":[{"name":"conversationNodes","type":"ConversationNode","isMany":true}]},{"name":"ConversationNode","isAbstract":true,"superClass":["InteractionNode","BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"participantRefs","type":"Participant","isMany":true,"isReference":true},{"name":"messageFlowRefs","type":"MessageFlow","isMany":true,"isReference":true},{"name":"correlationKeys","type":"CorrelationKey","isMany":true}]},{"name":"GlobalConversation","superClass":["Collaboration"]},{"name":"PartnerEntity","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"participantRef","type":"Participant","isMany":true,"isReference":true}]},{"name":"PartnerRole","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"participantRef","type":"Participant","isMany":true,"isReference":true}]},{"name":"CorrelationProperty","superClass":["RootElement"],"properties":[{"name":"correlationPropertyRetrievalExpression","type":"CorrelationPropertyRetrievalExpression","isMany":true},{"name":"name","isAttr":true,"type":"String"},{"name":"type","type":"ItemDefinition","isAttr":true,"isReference":true}]},{"name":"Error","superClass":["RootElement"],"properties":[{"name":"structureRef","type":"ItemDefinition","isAttr":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"},{"name":"errorCode","isAttr":true,"type":"String"}]},{"name":"CorrelationKey","superClass":["BaseElement"],"properties":[{"name":"correlationPropertyRef","type":"CorrelationProperty","isMany":true,"isReference":true},{"name":"name","isAttr":true,"type":"String"}]},{"name":"Expression","superClass":["BaseElement"],"isAbstract":false,"properties":[{"name":"body","type":"String","isBody":true}]},{"name":"FormalExpression","superClass":["Expression"],"properties":[{"name":"language","isAttr":true,"type":"String"},{"name":"evaluatesToTypeRef","type":"ItemDefinition","isAttr":true,"isReference":true}]},{"name":"Message","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"itemRef","type":"ItemDefinition","isAttr":true,"isReference":true}]},{"name":"ItemDefinition","superClass":["RootElement"],"properties":[{"name":"itemKind","type":"ItemKind","isAttr":true},{"name":"structureRef","type":"String","isAttr":true},{"name":"isCollection","default":false,"isAttr":true,"type":"Boolean"},{"name":"import","type":"Import","isAttr":true,"isReference":true}]},{"name":"FlowElement","isAbstract":true,"superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"auditing","type":"Auditing"},{"name":"monitoring","type":"Monitoring"},{"name":"categoryValueRef","type":"CategoryValue","isMany":true,"isReference":true}]},{"name":"SequenceFlow","superClass":["FlowElement"],"properties":[{"name":"isImmediate","isAttr":true,"type":"Boolean"},{"name":"conditionExpression","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"sourceRef","type":"FlowNode","isAttr":true,"isReference":true},{"name":"targetRef","type":"FlowNode","isAttr":true,"isReference":true}]},{"name":"FlowElementsContainer","isAbstract":true,"superClass":["BaseElement"],"properties":[{"name":"laneSets","type":"LaneSet","isMany":true},{"name":"flowElements","type":"FlowElement","isMany":true}]},{"name":"CallableElement","isAbstract":true,"superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"ioSpecification","type":"InputOutputSpecification","xml":{"serialize":"property"}},{"name":"supportedInterfaceRef","type":"Interface","isMany":true,"isReference":true},{"name":"ioBinding","type":"InputOutputBinding","isMany":true,"xml":{"serialize":"property"}}]},{"name":"FlowNode","isAbstract":true,"superClass":["FlowElement"],"properties":[{"name":"incoming","type":"SequenceFlow","isMany":true,"isReference":true},{"name":"outgoing","type":"SequenceFlow","isMany":true,"isReference":true},{"name":"lanes","type":"Lane","isVirtual":true,"isMany":true,"isReference":true}]},{"name":"CorrelationPropertyRetrievalExpression","superClass":["BaseElement"],"properties":[{"name":"messagePath","type":"FormalExpression"},{"name":"messageRef","type":"Message","isAttr":true,"isReference":true}]},{"name":"CorrelationPropertyBinding","superClass":["BaseElement"],"properties":[{"name":"dataPath","type":"FormalExpression"},{"name":"correlationPropertyRef","type":"CorrelationProperty","isAttr":true,"isReference":true}]},{"name":"Resource","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"resourceParameters","type":"ResourceParameter","isMany":true}]},{"name":"ResourceParameter","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"isRequired","isAttr":true,"type":"Boolean"},{"name":"type","type":"ItemDefinition","isAttr":true,"isReference":true}]},{"name":"CorrelationSubscription","superClass":["BaseElement"],"properties":[{"name":"correlationKeyRef","type":"CorrelationKey","isAttr":true,"isReference":true},{"name":"correlationPropertyBinding","type":"CorrelationPropertyBinding","isMany":true}]},{"name":"MessageFlow","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"sourceRef","type":"InteractionNode","isAttr":true,"isReference":true},{"name":"targetRef","type":"InteractionNode","isAttr":true,"isReference":true},{"name":"messageRef","type":"Message","isAttr":true,"isReference":true}]},{"name":"MessageFlowAssociation","superClass":["BaseElement"],"properties":[{"name":"innerMessageFlowRef","type":"MessageFlow","isAttr":true,"isReference":true},{"name":"outerMessageFlowRef","type":"MessageFlow","isAttr":true,"isReference":true}]},{"name":"InteractionNode","isAbstract":true,"properties":[{"name":"incomingConversationLinks","type":"ConversationLink","isVirtual":true,"isMany":true,"isReference":true},{"name":"outgoingConversationLinks","type":"ConversationLink","isVirtual":true,"isMany":true,"isReference":true}]},{"name":"Participant","superClass":["InteractionNode","BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"interfaceRef","type":"Interface","isMany":true,"isReference":true},{"name":"participantMultiplicity","type":"ParticipantMultiplicity"},{"name":"endPointRefs","type":"EndPoint","isMany":true,"isReference":true},{"name":"processRef","type":"Process","isAttr":true,"isReference":true}]},{"name":"ParticipantAssociation","superClass":["BaseElement"],"properties":[{"name":"innerParticipantRef","type":"Participant","isAttr":true,"isReference":true},{"name":"outerParticipantRef","type":"Participant","isAttr":true,"isReference":true}]},{"name":"ParticipantMultiplicity","properties":[{"name":"minimum","default":0,"isAttr":true,"type":"Integer"},{"name":"maximum","default":1,"isAttr":true,"type":"Integer"}]},{"name":"Collaboration","superClass":["RootElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"isClosed","isAttr":true,"type":"Boolean"},{"name":"participants","type":"Participant","isMany":true},{"name":"messageFlows","type":"MessageFlow","isMany":true},{"name":"artifacts","type":"Artifact","isMany":true},{"name":"conversations","type":"ConversationNode","isMany":true},{"name":"conversationAssociations","type":"ConversationAssociation"},{"name":"participantAssociations","type":"ParticipantAssociation","isMany":true},{"name":"messageFlowAssociations","type":"MessageFlowAssociation","isMany":true},{"name":"correlationKeys","type":"CorrelationKey","isMany":true},{"name":"choreographyRef","type":"Choreography","isMany":true,"isReference":true},{"name":"conversationLinks","type":"ConversationLink","isMany":true}]},{"name":"ChoreographyActivity","isAbstract":true,"superClass":["FlowNode"],"properties":[{"name":"participantRefs","type":"Participant","isMany":true,"isReference":true},{"name":"initiatingParticipantRef","type":"Participant","isAttr":true,"isReference":true},{"name":"correlationKeys","type":"CorrelationKey","isMany":true},{"name":"loopType","type":"ChoreographyLoopType","default":"None","isAttr":true}]},{"name":"CallChoreography","superClass":["ChoreographyActivity"],"properties":[{"name":"calledChoreographyRef","type":"Choreography","isAttr":true,"isReference":true},{"name":"participantAssociations","type":"ParticipantAssociation","isMany":true}]},{"name":"SubChoreography","superClass":["ChoreographyActivity","FlowElementsContainer"],"properties":[{"name":"artifacts","type":"Artifact","isMany":true}]},{"name":"ChoreographyTask","superClass":["ChoreographyActivity"],"properties":[{"name":"messageFlowRef","type":"MessageFlow","isMany":true,"isReference":true}]},{"name":"Choreography","superClass":["FlowElementsContainer","Collaboration"]},{"name":"GlobalChoreographyTask","superClass":["Choreography"],"properties":[{"name":"initiatingParticipantRef","type":"Participant","isAttr":true,"isReference":true}]},{"name":"TextAnnotation","superClass":["Artifact"],"properties":[{"name":"text","type":"String"},{"name":"textFormat","default":"text/plain","isAttr":true,"type":"String"}]},{"name":"Group","superClass":["Artifact"],"properties":[{"name":"categoryValueRef","type":"CategoryValue","isAttr":true,"isReference":true}]},{"name":"Association","superClass":["Artifact"],"properties":[{"name":"associationDirection","type":"AssociationDirection","isAttr":true},{"name":"sourceRef","type":"BaseElement","isAttr":true,"isReference":true},{"name":"targetRef","type":"BaseElement","isAttr":true,"isReference":true}]},{"name":"Category","superClass":["RootElement"],"properties":[{"name":"categoryValue","type":"CategoryValue","isMany":true},{"name":"name","isAttr":true,"type":"String"}]},{"name":"Artifact","isAbstract":true,"superClass":["BaseElement"]},{"name":"CategoryValue","superClass":["BaseElement"],"properties":[{"name":"categorizedFlowElements","type":"FlowElement","isVirtual":true,"isMany":true,"isReference":true},{"name":"value","isAttr":true,"type":"String"}]},{"name":"Activity","isAbstract":true,"superClass":["FlowNode"],"properties":[{"name":"isForCompensation","default":false,"isAttr":true,"type":"Boolean"},{"name":"default","type":"SequenceFlow","isAttr":true,"isReference":true},{"name":"ioSpecification","type":"InputOutputSpecification","xml":{"serialize":"property"}},{"name":"boundaryEventRefs","type":"BoundaryEvent","isMany":true,"isReference":true},{"name":"properties","type":"Property","isMany":true},{"name":"dataInputAssociations","type":"DataInputAssociation","isMany":true},{"name":"dataOutputAssociations","type":"DataOutputAssociation","isMany":true},{"name":"startQuantity","default":1,"isAttr":true,"type":"Integer"},{"name":"resources","type":"ResourceRole","isMany":true},{"name":"completionQuantity","default":1,"isAttr":true,"type":"Integer"},{"name":"loopCharacteristics","type":"LoopCharacteristics"}]},{"name":"ServiceTask","superClass":["Task"],"properties":[{"name":"implementation","isAttr":true,"type":"String"},{"name":"operationRef","type":"Operation","isAttr":true,"isReference":true}]},{"name":"SubProcess","superClass":["Activity","FlowElementsContainer","InteractionNode"],"properties":[{"name":"triggeredByEvent","default":false,"isAttr":true,"type":"Boolean"},{"name":"artifacts","type":"Artifact","isMany":true}]},{"name":"LoopCharacteristics","isAbstract":true,"superClass":["BaseElement"]},{"name":"MultiInstanceLoopCharacteristics","superClass":["LoopCharacteristics"],"properties":[{"name":"isSequential","default":false,"isAttr":true,"type":"Boolean"},{"name":"behavior","type":"MultiInstanceBehavior","default":"All","isAttr":true},{"name":"loopCardinality","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"loopDataInputRef","type":"ItemAwareElement","isReference":true},{"name":"loopDataOutputRef","type":"ItemAwareElement","isReference":true},{"name":"inputDataItem","type":"DataInput","xml":{"serialize":"property"}},{"name":"outputDataItem","type":"DataOutput","xml":{"serialize":"property"}},{"name":"complexBehaviorDefinition","type":"ComplexBehaviorDefinition","isMany":true},{"name":"completionCondition","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"oneBehaviorEventRef","type":"EventDefinition","isAttr":true,"isReference":true},{"name":"noneBehaviorEventRef","type":"EventDefinition","isAttr":true,"isReference":true}]},{"name":"StandardLoopCharacteristics","superClass":["LoopCharacteristics"],"properties":[{"name":"testBefore","default":false,"isAttr":true,"type":"Boolean"},{"name":"loopCondition","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"loopMaximum","type":"Expression","xml":{"serialize":"xsi:type"}}]},{"name":"CallActivity","superClass":["Activity"],"properties":[{"name":"calledElement","type":"String","isAttr":true}]},{"name":"Task","superClass":["Activity","InteractionNode"]},{"name":"SendTask","superClass":["Task"],"properties":[{"name":"implementation","isAttr":true,"type":"String"},{"name":"operationRef","type":"Operation","isAttr":true,"isReference":true},{"name":"messageRef","type":"Message","isAttr":true,"isReference":true}]},{"name":"ReceiveTask","superClass":["Task"],"properties":[{"name":"implementation","isAttr":true,"type":"String"},{"name":"instantiate","default":false,"isAttr":true,"type":"Boolean"},{"name":"operationRef","type":"Operation","isAttr":true,"isReference":true},{"name":"messageRef","type":"Message","isAttr":true,"isReference":true}]},{"name":"ScriptTask","superClass":["Task"],"properties":[{"name":"scriptFormat","isAttr":true,"type":"String"},{"name":"script","type":"String"}]},{"name":"BusinessRuleTask","superClass":["Task"],"properties":[{"name":"implementation","isAttr":true,"type":"String"}]},{"name":"AdHocSubProcess","superClass":["SubProcess"],"properties":[{"name":"completionCondition","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"ordering","type":"AdHocOrdering","isAttr":true},{"name":"cancelRemainingInstances","default":true,"isAttr":true,"type":"Boolean"}]},{"name":"Transaction","superClass":["SubProcess"],"properties":[{"name":"protocol","isAttr":true,"type":"String"},{"name":"method","isAttr":true,"type":"String"}]},{"name":"GlobalScriptTask","superClass":["GlobalTask"],"properties":[{"name":"scriptLanguage","isAttr":true,"type":"String"},{"name":"script","isAttr":true,"type":"String"}]},{"name":"GlobalBusinessRuleTask","superClass":["GlobalTask"],"properties":[{"name":"implementation","isAttr":true,"type":"String"}]},{"name":"ComplexBehaviorDefinition","superClass":["BaseElement"],"properties":[{"name":"condition","type":"FormalExpression"},{"name":"event","type":"ImplicitThrowEvent"}]},{"name":"ResourceRole","superClass":["BaseElement"],"properties":[{"name":"resourceRef","type":"Resource","isReference":true},{"name":"resourceParameterBindings","type":"ResourceParameterBinding","isMany":true},{"name":"resourceAssignmentExpression","type":"ResourceAssignmentExpression"},{"name":"name","isAttr":true,"type":"String"}]},{"name":"ResourceParameterBinding","properties":[{"name":"expression","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"parameterRef","type":"ResourceParameter","isAttr":true,"isReference":true}]},{"name":"ResourceAssignmentExpression","properties":[{"name":"expression","type":"Expression","xml":{"serialize":"xsi:type"}}],"superClass":["BaseElement"]},{"name":"Import","properties":[{"name":"importType","isAttr":true,"type":"String"},{"name":"location","isAttr":true,"type":"String"},{"name":"namespace","isAttr":true,"type":"String"}]},{"name":"Definitions","superClass":["BaseElement"],"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"targetNamespace","isAttr":true,"type":"String"},{"name":"expressionLanguage","default":"http://www.w3.org/1999/XPath","isAttr":true,"type":"String"},{"name":"typeLanguage","default":"http://www.w3.org/2001/XMLSchema","isAttr":true,"type":"String"},{"name":"imports","type":"Import","isMany":true},{"name":"extensions","type":"Extension","isMany":true},{"name":"rootElements","type":"RootElement","isMany":true},{"name":"diagrams","isMany":true,"type":"bpmndi:BPMNDiagram"},{"name":"exporter","isAttr":true,"type":"String"},{"name":"relationships","type":"Relationship","isMany":true},{"name":"exporterVersion","isAttr":true,"type":"String"}]}],"enumerations":[{"name":"ProcessType","literalValues":[{"name":"None"},{"name":"Public"},{"name":"Private"}]},{"name":"GatewayDirection","literalValues":[{"name":"Unspecified"},{"name":"Converging"},{"name":"Diverging"},{"name":"Mixed"}]},{"name":"EventBasedGatewayType","literalValues":[{"name":"Parallel"},{"name":"Exclusive"}]},{"name":"RelationshipDirection","literalValues":[{"name":"None"},{"name":"Forward"},{"name":"Backward"},{"name":"Both"}]},{"name":"ItemKind","literalValues":[{"name":"Physical"},{"name":"Information"}]},{"name":"ChoreographyLoopType","literalValues":[{"name":"None"},{"name":"Standard"},{"name":"MultiInstanceSequential"},{"name":"MultiInstanceParallel"}]},{"name":"AssociationDirection","literalValues":[{"name":"None"},{"name":"One"},{"name":"Both"}]},{"name":"MultiInstanceBehavior","literalValues":[{"name":"None"},{"name":"One"},{"name":"All"},{"name":"Complex"}]},{"name":"AdHocOrdering","literalValues":[{"name":"Parallel"},{"name":"Sequential"}]}],"prefix":"bpmn","xml":{"tagAlias":"lowerCase","typePrefix":"t"}}',
    );
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"BPMNDI","uri":"http://www.omg.org/spec/BPMN/20100524/DI","types":[{"name":"BPMNDiagram","properties":[{"name":"plane","type":"BPMNPlane","redefines":"di:Diagram#rootElement"},{"name":"labelStyle","type":"BPMNLabelStyle","isMany":true}],"superClass":["di:Diagram"]},{"name":"BPMNPlane","properties":[{"name":"bpmnElement","isAttr":true,"isReference":true,"type":"bpmn:BaseElement","redefines":"di:DiagramElement#modelElement"}],"superClass":["di:Plane"]},{"name":"BPMNShape","properties":[{"name":"bpmnElement","isAttr":true,"isReference":true,"type":"bpmn:BaseElement","redefines":"di:DiagramElement#modelElement"},{"name":"isHorizontal","isAttr":true,"type":"Boolean"},{"name":"isExpanded","isAttr":true,"type":"Boolean"},{"name":"isMarkerVisible","isAttr":true,"type":"Boolean"},{"name":"label","type":"BPMNLabel"},{"name":"isMessageVisible","isAttr":true,"type":"Boolean"},{"name":"participantBandKind","type":"ParticipantBandKind","isAttr":true},{"name":"choreographyActivityShape","type":"BPMNShape","isAttr":true,"isReference":true}],"superClass":["di:LabeledShape"]},{"name":"BPMNEdge","properties":[{"name":"label","type":"BPMNLabel"},{"name":"bpmnElement","isAttr":true,"isReference":true,"type":"bpmn:BaseElement","redefines":"di:DiagramElement#modelElement"},{"name":"sourceElement","isAttr":true,"isReference":true,"type":"di:DiagramElement","redefines":"di:Edge#source"},{"name":"targetElement","isAttr":true,"isReference":true,"type":"di:DiagramElement","redefines":"di:Edge#target"},{"name":"messageVisibleKind","type":"MessageVisibleKind","isAttr":true,"default":"initiating"}],"superClass":["di:LabeledEdge"]},{"name":"BPMNLabel","properties":[{"name":"labelStyle","type":"BPMNLabelStyle","isAttr":true,"isReference":true,"redefines":"di:DiagramElement#style"}],"superClass":["di:Label"]},{"name":"BPMNLabelStyle","properties":[{"name":"font","type":"dc:Font"}],"superClass":["di:Style"]}],"enumerations":[{"name":"ParticipantBandKind","literalValues":[{"name":"top_initiating"},{"name":"middle_initiating"},{"name":"bottom_initiating"},{"name":"top_non_initiating"},{"name":"middle_non_initiating"},{"name":"bottom_non_initiating"}]},{"name":"MessageVisibleKind","literalValues":[{"name":"initiating"},{"name":"non_initiating"}]}],"associations":[],"prefix":"bpmndi"}',
    );
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"DC","uri":"http://www.omg.org/spec/DD/20100524/DC","types":[{"name":"Boolean"},{"name":"Integer"},{"name":"Real"},{"name":"String"},{"name":"Font","properties":[{"name":"name","type":"String","isAttr":true},{"name":"size","type":"Real","isAttr":true},{"name":"isBold","type":"Boolean","isAttr":true},{"name":"isItalic","type":"Boolean","isAttr":true},{"name":"isUnderline","type":"Boolean","isAttr":true},{"name":"isStrikeThrough","type":"Boolean","isAttr":true}]},{"name":"Point","properties":[{"name":"x","type":"Real","default":"0","isAttr":true},{"name":"y","type":"Real","default":"0","isAttr":true}]},{"name":"Bounds","properties":[{"name":"x","type":"Real","default":"0","isAttr":true},{"name":"y","type":"Real","default":"0","isAttr":true},{"name":"width","type":"Real","isAttr":true},{"name":"height","type":"Real","isAttr":true}]}],"prefix":"dc","associations":[]}',
    );
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"DI","uri":"http://www.omg.org/spec/DD/20100524/DI","types":[{"name":"DiagramElement","isAbstract":true,"properties":[{"name":"id","type":"String","isAttr":true,"isId":true},{"name":"extension","type":"Extension"},{"name":"owningDiagram","type":"Diagram","isReadOnly":true,"isVirtual":true,"isReference":true},{"name":"owningElement","type":"DiagramElement","isReadOnly":true,"isVirtual":true,"isReference":true},{"name":"modelElement","isReadOnly":true,"isVirtual":true,"isReference":true,"type":"Element"},{"name":"style","type":"Style","isReadOnly":true,"isVirtual":true,"isReference":true},{"name":"ownedElement","type":"DiagramElement","isReadOnly":true,"isVirtual":true,"isMany":true}]},{"name":"Node","isAbstract":true,"superClass":["DiagramElement"]},{"name":"Edge","isAbstract":true,"superClass":["DiagramElement"],"properties":[{"name":"source","type":"DiagramElement","isReadOnly":true,"isVirtual":true,"isReference":true},{"name":"target","type":"DiagramElement","isReadOnly":true,"isVirtual":true,"isReference":true},{"name":"waypoint","isUnique":false,"isMany":true,"type":"dc:Point","xml":{"serialize":"xsi:type"}}]},{"name":"Diagram","isAbstract":true,"properties":[{"name":"id","type":"String","isAttr":true,"isId":true},{"name":"rootElement","type":"DiagramElement","isReadOnly":true,"isVirtual":true},{"name":"name","isAttr":true,"type":"String"},{"name":"documentation","isAttr":true,"type":"String"},{"name":"resolution","isAttr":true,"type":"Real"},{"name":"ownedStyle","type":"Style","isReadOnly":true,"isVirtual":true,"isMany":true}]},{"name":"Shape","isAbstract":true,"superClass":["Node"],"properties":[{"name":"bounds","type":"dc:Bounds"}]},{"name":"Plane","isAbstract":true,"superClass":["Node"],"properties":[{"name":"planeElement","type":"DiagramElement","subsettedProperty":"DiagramElement-ownedElement","isMany":true}]},{"name":"LabeledEdge","isAbstract":true,"superClass":["Edge"],"properties":[{"name":"ownedLabel","type":"Label","isReadOnly":true,"subsettedProperty":"DiagramElement-ownedElement","isVirtual":true,"isMany":true}]},{"name":"LabeledShape","isAbstract":true,"superClass":["Shape"],"properties":[{"name":"ownedLabel","type":"Label","isReadOnly":true,"subsettedProperty":"DiagramElement-ownedElement","isVirtual":true,"isMany":true}]},{"name":"Label","isAbstract":true,"superClass":["Node"],"properties":[{"name":"bounds","type":"dc:Bounds"}]},{"name":"Style","isAbstract":true,"properties":[{"name":"id","type":"String","isAttr":true,"isId":true}]},{"name":"Extension","properties":[{"name":"values","type":"Element","isMany":true}]}],"associations":[],"prefix":"di","xml":{"tagAlias":"lowerCase"}}',
    );
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"bpmn.io colors for BPMN","uri":"http://bpmn.io/schema/bpmn/biocolor/1.0","prefix":"bioc","types":[{"name":"ColoredShape","extends":["bpmndi:BPMNShape"],"properties":[{"name":"stroke","isAttr":true,"type":"String"},{"name":"fill","isAttr":true,"type":"String"}]},{"name":"ColoredEdge","extends":["bpmndi:BPMNEdge"],"properties":[{"name":"stroke","isAttr":true,"type":"String"},{"name":"fill","isAttr":true,"type":"String"}]}],"enumerations":[],"associations":[]}',
    );
  },
  function (e) {
    e.exports = JSON.parse(
      '{"name":"processhub-bpmn-engine","description":"BPMN 2.0 execution engine. Open source javascript workflow engine.","version":"4.2.0","author":"Pål Edman <pal.edman@gmail.com> (https://github.com/paed01)","main":"index.js","repository":{"type":"git","url":"git://github.com/paed01/bpmn-engine"},"engines":{"node":">=4"},"files":["API.md","index.js","LICENSE","README.md","lib/"],"scripts":{"test":"make test-cov-lcov","wintest":"node_modules/.bin/lab -v","toc":"node generate-api-toc ./API.md,./docs/Examples.md,./docs/Definition.md,./docs/ServiceTask.md,./docs/Activity.md,./docs/Form.md"},"keywords":["workflow","engine","process","automation","bpmn","bpmn 2"],"devDependencies":{"camunda-bpmn-moddle":"^0.11.0","code":"^4.0.0","coveralls":"^2.13.1","lab":"^13.0.4","markdown-toc":"^1.1.0","nock":"^9.0.13","request":"^2.81.0","unnecessary":"^1.3.3"},"dependencies":{"async":"^2.4.0","bpmn-moddle":"^0.14.0","debug":"^2.6.6","iso8601-duration":"^1.0.6"},"license":"BSD-3-Clause","licenses":[{"type":"BSD-3-Clause","url":"https://github.com/paed01/bpmn-node/master/LICENSE"}]}',
    );
  },
  function (e, t, n) {
    var r;
    function i(e) {
      return (i =
        '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;
            })(e);
    }
    /*!
     * EventEmitter v5.2.6 - git.io/ee
     * Unlicense - http://unlicense.org/
     * Oliver Caldwell - https://oli.me.uk/
     * @preserve
     */ !(function (t) {
      'use strict';
      function o() {}
      var a = o.prototype,
        s = t.EventEmitter;
      function u(e, t) {
        for (var n = e.length; n--; ) if (e[n].listener === t) return n;
        return -1;
      }
      function c(e) {
        return function () {
          return this[e].apply(this, arguments);
        };
      }
      (a.getListeners = function (e) {
        var t,
          n,
          r = this._getEvents();
        if (e instanceof RegExp)
          for (n in ((t = {}), r)) r.hasOwnProperty(n) && e.test(n) && (t[n] = r[n]);
        else t = r[e] || (r[e] = []);
        return t;
      }),
        (a.flattenListeners = function (e) {
          var t,
            n = [];
          for (t = 0; t < e.length; t += 1) n.push(e[t].listener);
          return n;
        }),
        (a.getListenersAsObject = function (e) {
          var t,
            n = this.getListeners(e);
          return n instanceof Array && ((t = {})[e] = n), t || n;
        }),
        (a.addListener = function (e, t) {
          if (
            !(function e(t) {
              return (
                'function' == typeof t ||
                t instanceof RegExp ||
                (!(!t || 'object' !== i(t)) && e(t.listener))
              );
            })(t)
          )
            throw new TypeError('listener must be a function');
          var n,
            r = this.getListenersAsObject(e),
            o = 'object' === i(t);
          for (n in r)
            r.hasOwnProperty(n) &&
              -1 === u(r[n], t) &&
              r[n].push(o ? t : { listener: t, once: !1 });
          return this;
        }),
        (a.on = c('addListener')),
        (a.addOnceListener = function (e, t) {
          return this.addListener(e, { listener: t, once: !0 });
        }),
        (a.once = c('addOnceListener')),
        (a.defineEvent = function (e) {
          return this.getListeners(e), this;
        }),
        (a.defineEvents = function (e) {
          for (var t = 0; t < e.length; t += 1) this.defineEvent(e[t]);
          return this;
        }),
        (a.removeListener = function (e, t) {
          var n,
            r,
            i = this.getListenersAsObject(e);
          for (r in i) i.hasOwnProperty(r) && -1 !== (n = u(i[r], t)) && i[r].splice(n, 1);
          return this;
        }),
        (a.off = c('removeListener')),
        (a.addListeners = function (e, t) {
          return this.manipulateListeners(!1, e, t);
        }),
        (a.removeListeners = function (e, t) {
          return this.manipulateListeners(!0, e, t);
        }),
        (a.manipulateListeners = function (e, t, n) {
          var r,
            o,
            a = e ? this.removeListener : this.addListener,
            s = e ? this.removeListeners : this.addListeners;
          if ('object' !== i(t) || t instanceof RegExp)
            for (r = n.length; r--; ) a.call(this, t, n[r]);
          else
            for (r in t)
              t.hasOwnProperty(r) &&
                (o = t[r]) &&
                ('function' == typeof o ? a.call(this, r, o) : s.call(this, r, o));
          return this;
        }),
        (a.removeEvent = function (e) {
          var t,
            n = i(e),
            r = this._getEvents();
          if ('string' === n) delete r[e];
          else if (e instanceof RegExp)
            for (t in r) r.hasOwnProperty(t) && e.test(t) && delete r[t];
          else delete this._events;
          return this;
        }),
        (a.removeAllListeners = c('removeEvent')),
        (a.emitEvent = function (e, t) {
          var n,
            r,
            i,
            o,
            a = this.getListenersAsObject(e);
          for (o in a)
            if (a.hasOwnProperty(o))
              for (n = a[o].slice(0), i = 0; i < n.length; i++)
                !0 === (r = n[i]).once && this.removeListener(e, r.listener),
                  r.listener.apply(this, t || []) === this._getOnceReturnValue() &&
                    this.removeListener(e, r.listener);
          return this;
        }),
        (a.trigger = c('emitEvent')),
        (a.emit = function (e) {
          var t = Array.prototype.slice.call(arguments, 1);
          return this.emitEvent(e, t);
        }),
        (a.setOnceReturnValue = function (e) {
          return (this._onceReturnValue = e), this;
        }),
        (a._getOnceReturnValue = function () {
          return !this.hasOwnProperty('_onceReturnValue') || this._onceReturnValue;
        }),
        (a._getEvents = function () {
          return this._events || (this._events = {});
        }),
        (o.noConflict = function () {
          return (t.EventEmitter = s), o;
        }),
        void 0 ===
          (r = function () {
            return o;
          }.call(t, n, t, e)) || (e.exports = r);
    })('undefined' != typeof window ? window : this || {});
  },
  function (e, t, n) {
    'use strict';
    n.r(t);
    var r = Object.prototype.toString,
      i = Object.prototype.hasOwnProperty;
    function o(e) {
      return void 0 === e;
    }
    function a(e) {
      return '[object Array]' === r.call(e);
    }
    function s(e) {
      return '[object Object]' === r.call(e);
    }
    function u(e) {
      return '[object Function]' === r.call(e);
    }
    function c(e) {
      return '[object String]' === r.call(e);
    }
    function p(e, t) {
      return i.call(e, t);
    }
    function f(e, t) {
      var n;
      return (
        (t = m(t)),
        h(e, function (e, r) {
          if (t(e, r)) return (n = e), !1;
        }),
        n
      );
    }
    function l(e, t) {
      var n = [];
      return (
        h(e, function (e, r) {
          t(e, r) && n.push(e);
        }),
        n
      );
    }
    function h(e, t) {
      if (!o(e)) {
        var n = a(e) ? v : y;
        for (var r in e) {
          if (p(e, r)) if (!1 === t(e[r], n(r))) return;
        }
      }
    }
    function d(e, t) {
      var n = [];
      return (
        h(e, function (e, r) {
          n.push(t(e, r));
        }),
        n
      );
    }
    function m(e) {
      return u(e)
        ? e
        : function (t) {
            return t === e;
          };
    }
    function y(e) {
      return e;
    }
    function v(e) {
      return Number(e);
    }
    function g(e, t) {
      return e.bind(t);
    }
    var b =
      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;
      };
    function w(e) {
      for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
        n[r - 1] = arguments[r];
      return b.apply(void 0, [e].concat(n));
    }
    function x(e, t) {
      var n = {},
        r = Object(e);
      return (
        h(t, function (t) {
          t in r && (n[t] = e[t]);
        }),
        n
      );
    }
    function E() {}
    function S(e, t) {
      (this.model = e), (this.properties = t);
    }
    (E.prototype.get = function (e) {
      return this.$model.properties.get(this, e);
    }),
      (E.prototype.set = function (e, t) {
        this.$model.properties.set(this, e, t);
      }),
      (S.prototype.createType = function (e) {
        var t = this.model,
          n = this.properties,
          r = Object.create(E.prototype);
        h(e.properties, function (e) {
          e.isMany || void 0 === e.default || (r[e.name] = e.default);
        }),
          n.defineModel(r, t),
          n.defineDescriptor(r, e);
        var i = e.ns.name;
        function o(e) {
          n.define(this, '$type', { value: i, enumerable: !0 }),
            n.define(this, '$attrs', { value: {} }),
            n.define(this, '$parent', { writable: !0 }),
            h(
              e,
              g(function (e, t) {
                this.set(t, e);
              }, this),
            );
        }
        return (
          (o.prototype = r),
          (o.hasType = r.$instanceOf = this.model.hasType),
          n.defineModel(o, t),
          n.defineDescriptor(o, e),
          o
        );
      });
    var A = { String: !0, Boolean: !0, Integer: !0, Real: !0, Element: !0 };
    function R(e) {
      return !!A[e];
    }
    function C(e, t) {
      var n,
        r,
        i = e.split(/:/);
      if (1 === i.length) (n = e), (r = t);
      else {
        if (2 !== i.length) throw new Error('expected <prefix:localName> or <localName>, got ' + e);
        (n = i[1]), (r = i[0]);
      }
      return { name: (e = (r ? r + ':' : '') + n), prefix: r, localName: n };
    }
    function _(e) {
      (this.ns = e),
        (this.name = e.name),
        (this.allTypes = []),
        (this.allTypesByName = {}),
        (this.properties = []),
        (this.propertiesByName = {});
    }
    function O(e, t) {
      (this.packageMap = {}),
        (this.typeMap = {}),
        (this.packages = []),
        (this.properties = t),
        h(e, g(this.registerPackage, this));
    }
    function T(e, t, n) {
      var r = t[n];
      if (r in e) throw new Error('package with ' + n + ' <' + r + '> already defined');
    }
    function P(e) {
      this.model = e;
    }
    function k(e, t, n) {
      Object.defineProperty(e, t.name, {
        enumerable: !t.isReference,
        writable: !0,
        value: n,
        configurable: !0,
      });
    }
    function I(e) {
      (this.properties = new P(this)),
        (this.factory = new S(this, this.properties)),
        (this.registry = new O(e, this.properties)),
        (this.typeCache = {});
    }
    function N(e) {
      return (N =
        '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;
            })(e);
    }
    (_.prototype.build = function () {
      return x(this, [
        'ns',
        'name',
        'allTypes',
        'allTypesByName',
        'properties',
        'propertiesByName',
        'bodyProperty',
        'idProperty',
      ]);
    }),
      (_.prototype.addProperty = function (e, t, n) {
        'boolean' == typeof t && ((n = t), (t = void 0)), this.addNamedProperty(e, !1 !== n);
        var r = this.properties;
        void 0 !== t ? r.splice(t, 0, e) : r.push(e);
      }),
      (_.prototype.replaceProperty = function (e, t, n) {
        var r = e.ns,
          i = this.properties,
          o = this.propertiesByName,
          a = e.name !== t.name;
        if (e.isId) {
          if (!t.isId)
            throw new Error(
              'property <' + t.ns.name + '> must be id property to refine <' + e.ns.name + '>',
            );
          this.setIdProperty(t, !1);
        }
        if (e.isBody) {
          if (!t.isBody)
            throw new Error(
              'property <' + t.ns.name + '> must be body property to refine <' + e.ns.name + '>',
            );
          this.setBodyProperty(t, !1);
        }
        var s = i.indexOf(e);
        if (-1 === s) throw new Error('property <' + r.name + '> not found in property list');
        i.splice(s, 1), this.addProperty(t, n ? void 0 : s, a), (o[r.name] = o[r.localName] = t);
      }),
      (_.prototype.redefineProperty = function (e, t, n) {
        var r = e.ns.prefix,
          i = t.split('#'),
          o = C(i[0], r),
          a = C(i[1], o.prefix).name,
          s = this.propertiesByName[a];
        if (!s) throw new Error('refined property <' + a + '> not found');
        this.replaceProperty(s, e, n), delete e.redefines;
      }),
      (_.prototype.addNamedProperty = function (e, t) {
        var n = e.ns,
          r = this.propertiesByName;
        t && (this.assertNotDefined(e, n.name), this.assertNotDefined(e, n.localName)),
          (r[n.name] = r[n.localName] = e);
      }),
      (_.prototype.removeNamedProperty = function (e) {
        var t = e.ns,
          n = this.propertiesByName;
        delete n[t.name], delete n[t.localName];
      }),
      (_.prototype.setBodyProperty = function (e, t) {
        if (t && this.bodyProperty)
          throw new Error(
            'body property defined multiple times (<' +
              this.bodyProperty.ns.name +
              '>, <' +
              e.ns.name +
              '>)',
          );
        this.bodyProperty = e;
      }),
      (_.prototype.setIdProperty = function (e, t) {
        if (t && this.idProperty)
          throw new Error(
            'id property defined multiple times (<' +
              this.idProperty.ns.name +
              '>, <' +
              e.ns.name +
              '>)',
          );
        this.idProperty = e;
      }),
      (_.prototype.assertNotDefined = function (e, t) {
        var n = e.name,
          r = this.propertiesByName[n];
        if (r)
          throw new Error(
            'property <' +
              n +
              '> already defined; override of <' +
              r.definedBy.ns.name +
              '#' +
              r.ns.name +
              '> by <' +
              e.definedBy.ns.name +
              '#' +
              e.ns.name +
              '> not allowed without redefines',
          );
      }),
      (_.prototype.hasProperty = function (e) {
        return this.propertiesByName[e];
      }),
      (_.prototype.addTrait = function (e, t) {
        var n = this.allTypesByName,
          r = this.allTypes,
          i = e.name;
        i in n ||
          (h(
            e.properties,
            g(function (n) {
              (n = w({}, n, { name: n.ns.localName, inherited: t })),
                Object.defineProperty(n, 'definedBy', { value: e });
              var r = n.replaces,
                i = n.redefines;
              r || i
                ? this.redefineProperty(n, r || i, r)
                : (n.isBody && this.setBodyProperty(n),
                  n.isId && this.setIdProperty(n),
                  this.addProperty(n));
            }, this),
          ),
          r.push(e),
          (n[i] = e));
      }),
      (O.prototype.getPackage = function (e) {
        return this.packageMap[e];
      }),
      (O.prototype.getPackages = function () {
        return this.packages;
      }),
      (O.prototype.registerPackage = function (e) {
        e = w({}, e);
        var t = this.packageMap;
        T(t, e, 'prefix'),
          T(t, e, 'uri'),
          h(
            e.types,
            g(function (t) {
              this.registerType(t, e);
            }, this),
          ),
          (t[e.uri] = t[e.prefix] = e),
          this.packages.push(e);
      }),
      (O.prototype.registerType = function (e, t) {
        var n = C(
            (e = w({}, e, {
              superClass: (e.superClass || []).slice(),
              extends: (e.extends || []).slice(),
              properties: (e.properties || []).slice(),
              meta: w(e.meta || {}),
            })).name,
            t.prefix,
          ),
          r = n.name,
          i = {};
        h(
          e.properties,
          g(function (e) {
            var t = C(e.name, n.prefix),
              r = t.name;
            R(e.type) || (e.type = C(e.type, t.prefix).name), w(e, { ns: t, name: r }), (i[r] = e);
          }, this),
        ),
          w(e, { ns: n, name: r, propertiesByName: i }),
          h(
            e.extends,
            g(function (e) {
              var t = this.typeMap[e];
              (t.traits = t.traits || []), t.traits.push(r);
            }, this),
          ),
          this.definePackage(e, t),
          (this.typeMap[r] = e);
      }),
      (O.prototype.mapTypes = function (e, t, n) {
        var r = R(e.name) ? { name: e.name } : this.typeMap[e.name],
          i = this;
        function o(e) {
          return a(e, !0);
        }
        function a(n, r) {
          var o = C(n, R(n) ? '' : e.prefix);
          i.mapTypes(o, t, r);
        }
        if (!r) throw new Error('unknown type <' + e.name + '>');
        h(r.superClass, n ? o : a), t(r, !n), h(r.traits, o);
      }),
      (O.prototype.getEffectiveDescriptor = function (e) {
        var t = C(e),
          n = new _(t);
        this.mapTypes(t, function (e, t) {
          n.addTrait(e, t);
        });
        var r = n.build();
        return this.definePackage(r, r.allTypes[r.allTypes.length - 1].$pkg), r;
      }),
      (O.prototype.definePackage = function (e, t) {
        this.properties.define(e, '$pkg', { value: t });
      }),
      (P.prototype.set = function (e, t, n) {
        var r = this.model.getPropertyDescriptor(e, t),
          i = r && r.name;
        void 0 === n
          ? r
            ? delete e[i]
            : delete e.$attrs[t]
          : r
          ? i in e
            ? (e[i] = n)
            : k(e, r, n)
          : (e.$attrs[t] = n);
      }),
      (P.prototype.get = function (e, t) {
        var n = this.model.getPropertyDescriptor(e, t);
        if (!n) return e.$attrs[t];
        var r = n.name;
        return !e[r] && n.isMany && k(e, n, []), e[r];
      }),
      (P.prototype.define = function (e, t, n) {
        Object.defineProperty(e, t, n);
      }),
      (P.prototype.defineDescriptor = function (e, t) {
        this.define(e, '$descriptor', { value: t });
      }),
      (P.prototype.defineModel = function (e, t) {
        this.define(e, '$model', { value: t });
      }),
      (I.prototype.create = function (e, t) {
        var n = this.getType(e);
        if (!n) throw new Error('unknown type <' + e + '>');
        return new n(t);
      }),
      (I.prototype.getType = function (e) {
        var t = this.typeCache,
          n = c(e) ? e : e.ns.name,
          r = t[n];
        return (
          r ||
            ((e = this.registry.getEffectiveDescriptor(n)),
            (r = t[n] = this.factory.createType(e))),
          r
        );
      }),
      (I.prototype.createAny = function (e, t, n) {
        var r = C(e),
          i = {
            $type: e,
            $instanceOf: function (e) {
              return e === this.$type;
            },
          },
          o = { name: e, isGeneric: !0, ns: { prefix: r.prefix, localName: r.localName, uri: t } };
        return (
          this.properties.defineDescriptor(i, o),
          this.properties.defineModel(i, this),
          this.properties.define(i, '$parent', { enumerable: !1, writable: !0 }),
          h(n, function (e, t) {
            s(e) && void 0 !== e.value ? (i[e.name] = e.value) : (i[t] = e);
          }),
          i
        );
      }),
      (I.prototype.getPackage = function (e) {
        return this.registry.getPackage(e);
      }),
      (I.prototype.getPackages = function () {
        return this.registry.getPackages();
      }),
      (I.prototype.getElementDescriptor = function (e) {
        return e.$descriptor;
      }),
      (I.prototype.hasType = function (e, t) {
        return (
          void 0 === t && ((t = e), (e = this)),
          t in e.$model.getElementDescriptor(e).allTypesByName
        );
      }),
      (I.prototype.getPropertyDescriptor = function (e, t) {
        return this.getElementDescriptor(e).propertiesByName[t];
      }),
      (I.prototype.getTypeDescriptor = function (e) {
        return this.registry.typeMap[e];
      });
    var M = String.fromCharCode,
      D = Object.prototype.hasOwnProperty,
      j = /&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,
      L = { amp: '&', apos: "'", gt: '>', lt: '<', quot: '"' };
    function B(e, t, n, r) {
      return r ? (D.call(L, r) ? L[r] : '&' + r + ';') : M(t || parseInt(n, 16));
    }
    function F(e) {
      return e.length > 3 && -1 !== e.indexOf('&') ? e.replace(j, B) : e;
    }
    Object.keys(L).forEach(function (e) {
      L[e.toUpperCase()] = L[e];
    });
    var U = 'http://www.w3.org/2001/XMLSchema-instance',
      V = 'xsi',
      q = 'xsi:type',
      z = 'non-whitespace outside of root node';
    function $(e) {
      return new Error(e);
    }
    function G(e) {
      return 'missing namespace for prefix <' + e + '>';
    }
    function W(e) {
      return { get: e, enumerable: !0 };
    }
    function H(e) {
      var t,
        n = {};
      for (t in e) n[t] = e[t];
      return n;
    }
    function Y(e) {
      return e + '$uri';
    }
    function J() {
      return { line: 0, column: 0 };
    }
    function K(e) {
      throw e;
    }
    function X(e) {
      if (!this) return new X(e);
      var t,
        n,
        r,
        i,
        o,
        a,
        s,
        u,
        c,
        p = e && e.proxy,
        f = K,
        l = J,
        h = !1,
        d = !1,
        m = null,
        y = !1;
      function v(e) {
        e instanceof Error || (e = $(e)), (m = e), f(e, l);
      }
      function g(e) {
        o && (e instanceof Error || (e = $(e)), o(e, l));
      }
      (this.on = function (e, c) {
        if ('function' != typeof c) throw $('required args <name, cb>');
        switch (e) {
          case 'openTag':
            n = c;
            break;
          case 'text':
            t = c;
            break;
          case 'closeTag':
            r = c;
            break;
          case 'error':
            f = c;
            break;
          case 'warn':
            o = c;
            break;
          case 'cdata':
            i = c;
            break;
          case 'attention':
            u = c;
            break;
          case 'question':
            s = c;
            break;
          case 'comment':
            a = c;
            break;
          default:
            throw $('unsupported event: ' + e);
        }
        return this;
      }),
        (this.ns = function (e) {
          if ((void 0 === e && (e = {}), 'object' !== N(e))) throw $('required args <nsMap={}>');
          var t,
            n = {};
          for (t in e) n[t] = e[t];
          return (n[U] = V), (d = !0), (c = n), this;
        }),
        (this.parse = function (e) {
          if ('string' != typeof e) throw $('required args <xml=string>');
          return (
            (m = null),
            (function (e) {
              var o,
                f,
                m,
                b,
                w,
                x,
                E,
                S,
                A,
                R,
                C = d ? [] : null,
                _ = d
                  ? (function (e) {
                      var t,
                        n,
                        r = {};
                      for (t in e) (r[(n = e[t])] = n), (r[Y(n)] = t);
                      return r;
                    })(c)
                  : null,
                O = [],
                T = 0,
                P = !1,
                k = !1,
                I = 0,
                N = 0,
                M = '',
                D = 0;
              function j() {
                if (null !== R) return R;
                var e,
                  t,
                  n,
                  r,
                  i,
                  o,
                  a,
                  s,
                  u,
                  p,
                  f,
                  l = d && _.xmlns,
                  m = d && h ? [] : null,
                  y = D,
                  v = M,
                  b = v.length,
                  w = {},
                  x = {};
                e: for (; y < b; y++)
                  if (((u = !1), !(32 === (p = v.charCodeAt(y)) || (p < 14 && p > 8)))) {
                    for (
                      (p < 65 || p > 122 || (p > 90 && p < 97)) &&
                        95 !== p &&
                        58 !== p &&
                        (g('illegal first char attribute name'), (u = !0)),
                        f = y + 1;
                      f < b;
                      f++
                    )
                      if (
                        !(
                          ((p = v.charCodeAt(f)) > 96 && p < 123) ||
                          (p > 64 && p < 91) ||
                          (p > 47 && p < 59) ||
                          46 === p ||
                          45 === p ||
                          95 === p
                        )
                      ) {
                        if (32 === p || (p < 14 && p > 8)) {
                          g('missing attribute value'), (y = f);
                          continue e;
                        }
                        if (61 === p) break;
                        g('illegal attribute name char'), (u = !0);
                      }
                    if (
                      ('xmlns:xmlns' === (s = v.substring(y, f)) &&
                        (g('illegal declaration of xmlns'), (u = !0)),
                      34 === (p = v.charCodeAt(f + 1)))
                    )
                      -1 === (f = v.indexOf('"', (y = f + 2))) &&
                        -1 !== (f = v.indexOf("'", y)) &&
                        (g('attribute value quote missmatch'), (u = !0));
                    else if (39 === p)
                      -1 === (f = v.indexOf("'", (y = f + 2))) &&
                        -1 !== (f = v.indexOf('"', y)) &&
                        (g('attribute value quote missmatch'), (u = !0));
                    else
                      for (
                        g('missing attribute value quotes'), u = !0, f += 1;
                        f < b && !(32 === (p = v.charCodeAt(f + 1)) || (p < 14 && p > 8));
                        f++
                      );
                    for (
                      -1 === f && (g('missing closing quotes'), (f = b), (u = !0)),
                        u || (o = v.substring(y, f)),
                        y = f;
                      f + 1 < b && !(32 === (p = v.charCodeAt(f + 1)) || (p < 14 && p > 8));
                      f++
                    )
                      y === f && (g('illegal character after attribute end'), (u = !0));
                    if (((y = f + 1), !u))
                      if (s in x) g('attribute <' + s + '> already defined');
                      else if (((x[s] = !0), d))
                        if (h) {
                          if (
                            null !==
                            (i =
                              'xmlns' === s
                                ? 'xmlns'
                                : 120 === s.charCodeAt(0) && 'xmlns:' === s.substr(0, 6)
                                ? s.substr(6)
                                : null)
                          ) {
                            if (((e = F(o)), (t = Y(i)), !(a = c[e]))) {
                              if ('xmlns' === i || (t in _ && _[t] !== e))
                                do {
                                  a = 'ns' + T++;
                                } while (void 0 !== _[a]);
                              else a = i;
                              c[e] = a;
                            }
                            _[i] !== a &&
                              (r || ((_ = H(_)), (r = !0)),
                              (_[i] = a),
                              'xmlns' === i && ((_[Y(a)] = e), (l = a)),
                              (_[t] = e)),
                              (w[s] = o);
                            continue;
                          }
                          m.push(s, o);
                        } else
                          -1 !== (p = s.indexOf(':'))
                            ? (n = _[s.substring(0, p)])
                              ? ((s = l === n ? s.substr(p + 1) : n + s.substr(p)) === q &&
                                  (-1 !== (p = o.indexOf(':'))
                                    ? ((n = o.substring(0, p)),
                                      (n = _[n] || n),
                                      (o = n + o.substring(p)))
                                    : (o = l + ':' + o)),
                                (w[s] = o))
                              : g(G(s.substring(0, p)))
                            : (w[s] = o);
                      else w[s] = o;
                  }
                if (h)
                  for (y = 0, b = m.length; y < b; y++) {
                    if (((s = m[y++]), (o = m[y]), -1 !== (p = s.indexOf(':')))) {
                      if (!(n = _[s.substring(0, p)])) {
                        g(G(s.substring(0, p)));
                        continue;
                      }
                      (s = l === n ? s.substr(p + 1) : n + s.substr(p)) === q &&
                        (-1 !== (p = o.indexOf(':'))
                          ? ((n = o.substring(0, p)), (n = _[n] || n), (o = n + o.substring(p)))
                          : (o = l + ':' + o));
                    }
                    w[s] = o;
                  }
                return (R = w);
              }
              (l = function () {
                for (
                  var t, n, r = /(\r\n|\r|\n)/g, i = 0, o = 0, a = 0, s = N;
                  I >= a && (t = r.exec(e)) && !((s = t[0].length + t.index) > I);

                )
                  (i += 1), (a = s);
                return (
                  -1 == I
                    ? ((o = s), (n = e.substring(N)))
                    : 0 === N
                    ? (console.log(I - a), (n = e.substring(N, I)))
                    : ((o = I - a), (n = -1 == N ? e.substring(I) : e.substring(I, N + 1))),
                  { data: n, line: i, column: o }
                );
              }),
                p &&
                  (A = Object.create(
                    {},
                    {
                      name: W(function () {
                        return E;
                      }),
                      originalName: W(function () {
                        return S;
                      }),
                      attrs: W(j),
                      ns: W(function () {
                        return _;
                      }),
                    },
                  ));
              for (; -1 !== N; ) {
                if (-1 === (I = 60 === e.charCodeAt(N) ? N : e.indexOf('<', N)))
                  return O.length
                    ? v('unexpected end of file')
                    : 0 === N
                    ? v('missing start tag')
                    : void (N < e.length && e.substring(N).trim() && g(z));
                if (N !== I)
                  if (O.length) {
                    if (t && (t(e.substring(N, I), F, l), y)) return;
                  } else if (e.substring(N, I).trim() && (g(z), y)) return;
                if (33 !== (w = e.charCodeAt(I + 1)))
                  if (63 !== w) {
                    if (-1 == (N = e.indexOf('>', I + 1))) return v('unclosed tag');
                    if (((R = {}), 47 === w)) {
                      if (((P = !1), (k = !0), !O.length)) return v('missing open tag');
                      if (((f = E = O.pop()), (b = I + 2 + f.length), e.substring(I + 2, b) !== f))
                        return v('closing tag mismatch');
                      for (; b < N; b++)
                        if (!(32 === (w = e.charCodeAt(b)) || (w > 8 && w < 14)))
                          return v('close tag');
                    } else {
                      if (
                        (47 === e.charCodeAt(N - 1)
                          ? ((f = E = e.substring(I + 1, N - 1)), (P = !0), (k = !0))
                          : ((f = E = e.substring(I + 1, N)), (P = !0), (k = !1)),
                        !((w > 96 && w < 123) || (w > 64 && w < 91) || 95 === w || 58 === w))
                      )
                        return v('illegal first char nodeName');
                      for (b = 1, m = f.length; b < m; b++)
                        if (
                          !(
                            ((w = f.charCodeAt(b)) > 96 && w < 123) ||
                            (w > 64 && w < 91) ||
                            (w > 47 && w < 59) ||
                            45 === w ||
                            95 === w ||
                            46 == w
                          )
                        ) {
                          if (32 === w || (w < 14 && w > 8)) {
                            (E = f.substring(0, b)), (R = null);
                            break;
                          }
                          return v('invalid nodeName');
                        }
                      k || O.push(E);
                    }
                    if (d) {
                      if (
                        ((o = _),
                        P &&
                          (k || C.push(o),
                          null === R &&
                            (h = -1 !== f.indexOf('xmlns', b)) &&
                            ((D = b), (M = f), j(), (h = !1))),
                        (S = E),
                        -1 !== (w = E.indexOf(':')))
                      ) {
                        if (!(x = _[E.substring(0, w)]))
                          return v('missing namespace on <' + S + '>');
                        E = E.substr(w + 1);
                      } else x = _.xmlns;
                      x && (E = x + ':' + E);
                    }
                    if (P && ((D = b), (M = f), n && (p ? n(A, F, k, l) : n(E, j, F, k, l), y)))
                      return;
                    if (k) {
                      if (r && (r(p ? A : E, F, P, l), y)) return;
                      d && (_ = P ? o : C.pop());
                    }
                    N += 1;
                  } else {
                    if (-1 === (N = e.indexOf('?>', I))) return v('unclosed question');
                    if (s && (s(e.substring(I, N + 2), l), y)) return;
                    N += 2;
                  }
                else {
                  if (91 === (w = e.charCodeAt(I + 2)) && 'CDATA[' === e.substr(I + 3, 6)) {
                    if (-1 === (N = e.indexOf(']]>', I))) return v('unclosed cdata');
                    if (i && (i(e.substring(I + 9, N), l), y)) return;
                    N += 3;
                    continue;
                  }
                  if (45 === w && 45 === e.charCodeAt(I + 3)) {
                    if (-1 === (N = e.indexOf('--\x3e', I))) return v('unclosed comment');
                    if (a && (a(e.substring(I + 4, N), F, l), y)) return;
                    N += 3;
                    continue;
                  }
                  if (-1 === (N = e.indexOf('>', I + 1))) return v('unclosed tag');
                  if (u && (u(e.substring(I, N + 1), F, l), y)) return;
                  N += 1;
                }
              }
            })(e),
            (l = J),
            (y = !1),
            m
          );
        }),
        (this.stop = function () {
          y = !0;
        });
    }
    function Q() {}
    function Z(e, t) {
      (this.model = e), (this.properties = t);
    }
    (Q.prototype.get = function (e) {
      return this.$model.properties.get(this, e);
    }),
      (Q.prototype.set = function (e, t) {
        this.$model.properties.set(this, e, t);
      }),
      (Z.prototype.createType = function (e) {
        var t = this.model,
          n = this.properties,
          r = Object.create(Q.prototype);
        h(e.properties, function (e) {
          e.isMany || void 0 === e.default || (r[e.name] = e.default);
        }),
          n.defineModel(r, t),
          n.defineDescriptor(r, e);
        var i = e.ns.name;
        function o(e) {
          n.define(this, '$type', { value: i, enumerable: !0 }),
            n.define(this, '$attrs', { value: {} }),
            n.define(this, '$parent', { writable: !0 }),
            h(
              e,
              g(function (e, t) {
                this.set(t, e);
              }, this),
            );
        }
        return (
          (o.prototype = r),
          (o.hasType = r.$instanceOf = this.model.hasType),
          n.defineModel(o, t),
          n.defineDescriptor(o, e),
          o
        );
      });
    var ee = { String: !0, Boolean: !0, Integer: !0, Real: !0, Element: !0 },
      te = {
        String: function (e) {
          return e;
        },
        Boolean: function (e) {
          return 'true' === e;
        },
        Integer: function (e) {
          return parseInt(e, 10);
        },
        Real: function (e) {
          return parseFloat(e, 10);
        },
      };
    function ne(e, t) {
      var n = te[e];
      return n ? n(t) : t;
    }
    function re(e) {
      return !!ee[e];
    }
    function ie(e) {
      return !!te[e];
    }
    function oe(e, t) {
      var n,
        r,
        i = e.split(/:/);
      if (1 === i.length) (n = e), (r = t);
      else {
        if (2 !== i.length) throw new Error('expected <prefix:localName> or <localName>, got ' + e);
        (n = i[1]), (r = i[0]);
      }
      return { name: (e = (r ? r + ':' : '') + n), prefix: r, localName: n };
    }
    function ae(e) {
      (this.ns = e),
        (this.name = e.name),
        (this.allTypes = []),
        (this.allTypesByName = {}),
        (this.properties = []),
        (this.propertiesByName = {});
    }
    function se(e, t) {
      (this.packageMap = {}),
        (this.typeMap = {}),
        (this.packages = []),
        (this.properties = t),
        h(e, g(this.registerPackage, this));
    }
    function ue(e, t, n) {
      var r = t[n];
      if (r in e) throw new Error('package with ' + n + ' <' + r + '> already defined');
    }
    function ce(e) {
      this.model = e;
    }
    function pe(e, t, n) {
      Object.defineProperty(e, t.name, {
        enumerable: !t.isReference,
        writable: !0,
        value: n,
        configurable: !0,
      });
    }
    function fe(e) {
      (this.properties = new ce(this)),
        (this.factory = new Z(this, this.properties)),
        (this.registry = new se(e, this.properties)),
        (this.typeCache = {});
    }
    function le(e) {
      return e.xml && 'lowerCase' === e.xml.tagAlias;
    }
    (ae.prototype.build = function () {
      return x(this, [
        'ns',
        'name',
        'allTypes',
        'allTypesByName',
        'properties',
        'propertiesByName',
        'bodyProperty',
        'idProperty',
      ]);
    }),
      (ae.prototype.addProperty = function (e, t, n) {
        'boolean' == typeof t && ((n = t), (t = void 0)), this.addNamedProperty(e, !1 !== n);
        var r = this.properties;
        void 0 !== t ? r.splice(t, 0, e) : r.push(e);
      }),
      (ae.prototype.replaceProperty = function (e, t, n) {
        var r = e.ns,
          i = this.properties,
          o = this.propertiesByName,
          a = e.name !== t.name;
        if (e.isId) {
          if (!t.isId)
            throw new Error(
              'property <' + t.ns.name + '> must be id property to refine <' + e.ns.name + '>',
            );
          this.setIdProperty(t, !1);
        }
        if (e.isBody) {
          if (!t.isBody)
            throw new Error(
              'property <' + t.ns.name + '> must be body property to refine <' + e.ns.name + '>',
            );
          this.setBodyProperty(t, !1);
        }
        var s = i.indexOf(e);
        if (-1 === s) throw new Error('property <' + r.name + '> not found in property list');
        i.splice(s, 1), this.addProperty(t, n ? void 0 : s, a), (o[r.name] = o[r.localName] = t);
      }),
      (ae.prototype.redefineProperty = function (e, t, n) {
        var r = e.ns.prefix,
          i = t.split('#'),
          o = oe(i[0], r),
          a = oe(i[1], o.prefix).name,
          s = this.propertiesByName[a];
        if (!s) throw new Error('refined property <' + a + '> not found');
        this.replaceProperty(s, e, n), delete e.redefines;
      }),
      (ae.prototype.addNamedProperty = function (e, t) {
        var n = e.ns,
          r = this.propertiesByName;
        t && (this.assertNotDefined(e, n.name), this.assertNotDefined(e, n.localName)),
          (r[n.name] = r[n.localName] = e);
      }),
      (ae.prototype.removeNamedProperty = function (e) {
        var t = e.ns,
          n = this.propertiesByName;
        delete n[t.name], delete n[t.localName];
      }),
      (ae.prototype.setBodyProperty = function (e, t) {
        if (t && this.bodyProperty)
          throw new Error(
            'body property defined multiple times (<' +
              this.bodyProperty.ns.name +
              '>, <' +
              e.ns.name +
              '>)',
          );
        this.bodyProperty = e;
      }),
      (ae.prototype.setIdProperty = function (e, t) {
        if (t && this.idProperty)
          throw new Error(
            'id property defined multiple times (<' +
              this.idProperty.ns.name +
              '>, <' +
              e.ns.name +
              '>)',
          );
        this.idProperty = e;
      }),
      (ae.prototype.assertNotDefined = function (e, t) {
        var n = e.name,
          r = this.propertiesByName[n];
        if (r)
          throw new Error(
            'property <' +
              n +
              '> already defined; override of <' +
              r.definedBy.ns.name +
              '#' +
              r.ns.name +
              '> by <' +
              e.definedBy.ns.name +
              '#' +
              e.ns.name +
              '> not allowed without redefines',
          );
      }),
      (ae.prototype.hasProperty = function (e) {
        return this.propertiesByName[e];
      }),
      (ae.prototype.addTrait = function (e, t) {
        var n = this.allTypesByName,
          r = this.allTypes,
          i = e.name;
        i in n ||
          (h(
            e.properties,
            g(function (n) {
              (n = w({}, n, { name: n.ns.localName, inherited: t })),
                Object.defineProperty(n, 'definedBy', { value: e });
              var r = n.replaces,
                i = n.redefines;
              r || i
                ? this.redefineProperty(n, r || i, r)
                : (n.isBody && this.setBodyProperty(n),
                  n.isId && this.setIdProperty(n),
                  this.addProperty(n));
            }, this),
          ),
          r.push(e),
          (n[i] = e));
      }),
      (se.prototype.getPackage = function (e) {
        return this.packageMap[e];
      }),
      (se.prototype.getPackages = function () {
        return this.packages;
      }),
      (se.prototype.registerPackage = function (e) {
        e = w({}, e);
        var t = this.packageMap;
        ue(t, e, 'prefix'),
          ue(t, e, 'uri'),
          h(
            e.types,
            g(function (t) {
              this.registerType(t, e);
            }, this),
          ),
          (t[e.uri] = t[e.prefix] = e),
          this.packages.push(e);
      }),
      (se.prototype.registerType = function (e, t) {
        var n = oe(
            (e = w({}, e, {
              superClass: (e.superClass || []).slice(),
              extends: (e.extends || []).slice(),
              properties: (e.properties || []).slice(),
              meta: w(e.meta || {}),
            })).name,
            t.prefix,
          ),
          r = n.name,
          i = {};
        h(
          e.properties,
          g(function (e) {
            var t = oe(e.name, n.prefix),
              r = t.name;
            re(e.type) || (e.type = oe(e.type, t.prefix).name),
              w(e, { ns: t, name: r }),
              (i[r] = e);
          }, this),
        ),
          w(e, { ns: n, name: r, propertiesByName: i }),
          h(
            e.extends,
            g(function (e) {
              var t = this.typeMap[e];
              (t.traits = t.traits || []), t.traits.push(r);
            }, this),
          ),
          this.definePackage(e, t),
          (this.typeMap[r] = e);
      }),
      (se.prototype.mapTypes = function (e, t, n) {
        var r = re(e.name) ? { name: e.name } : this.typeMap[e.name],
          i = this;
        function o(e) {
          return a(e, !0);
        }
        function a(n, r) {
          var o = oe(n, re(n) ? '' : e.prefix);
          i.mapTypes(o, t, r);
        }
        if (!r) throw new Error('unknown type <' + e.name + '>');
        h(r.superClass, n ? o : a), t(r, !n), h(r.traits, o);
      }),
      (se.prototype.getEffectiveDescriptor = function (e) {
        var t = oe(e),
          n = new ae(t);
        this.mapTypes(t, function (e, t) {
          n.addTrait(e, t);
        });
        var r = n.build();
        return this.definePackage(r, r.allTypes[r.allTypes.length - 1].$pkg), r;
      }),
      (se.prototype.definePackage = function (e, t) {
        this.properties.define(e, '$pkg', { value: t });
      }),
      (ce.prototype.set = function (e, t, n) {
        var r = this.model.getPropertyDescriptor(e, t),
          i = r && r.name;
        void 0 === n
          ? r
            ? delete e[i]
            : delete e.$attrs[t]
          : r
          ? i in e
            ? (e[i] = n)
            : pe(e, r, n)
          : (e.$attrs[t] = n);
      }),
      (ce.prototype.get = function (e, t) {
        var n = this.model.getPropertyDescriptor(e, t);
        if (!n) return e.$attrs[t];
        var r = n.name;
        return !e[r] && n.isMany && pe(e, n, []), e[r];
      }),
      (ce.prototype.define = function (e, t, n) {
        Object.defineProperty(e, t, n);
      }),
      (ce.prototype.defineDescriptor = function (e, t) {
        this.define(e, '$descriptor', { value: t });
      }),
      (ce.prototype.defineModel = function (e, t) {
        this.define(e, '$model', { value: t });
      }),
      (fe.prototype.create = function (e, t) {
        var n = this.getType(e);
        if (!n) throw new Error('unknown type <' + e + '>');
        return new n(t);
      }),
      (fe.prototype.getType = function (e) {
        var t = this.typeCache,
          n = c(e) ? e : e.ns.name,
          r = t[n];
        return (
          r ||
            ((e = this.registry.getEffectiveDescriptor(n)),
            (r = t[n] = this.factory.createType(e))),
          r
        );
      }),
      (fe.prototype.createAny = function (e, t, n) {
        var r = oe(e),
          i = {
            $type: e,
            $instanceOf: function (e) {
              return e === this.$type;
            },
          },
          o = { name: e, isGeneric: !0, ns: { prefix: r.prefix, localName: r.localName, uri: t } };
        return (
          this.properties.defineDescriptor(i, o),
          this.properties.defineModel(i, this),
          this.properties.define(i, '$parent', { enumerable: !1, writable: !0 }),
          h(n, function (e, t) {
            s(e) && void 0 !== e.value ? (i[e.name] = e.value) : (i[t] = e);
          }),
          i
        );
      }),
      (fe.prototype.getPackage = function (e) {
        return this.registry.getPackage(e);
      }),
      (fe.prototype.getPackages = function () {
        return this.registry.getPackages();
      }),
      (fe.prototype.getElementDescriptor = function (e) {
        return e.$descriptor;
      }),
      (fe.prototype.hasType = function (e, t) {
        return (
          void 0 === t && ((t = e), (e = this)),
          t in e.$model.getElementDescriptor(e).allTypesByName
        );
      }),
      (fe.prototype.getPropertyDescriptor = function (e, t) {
        return this.getElementDescriptor(e).propertiesByName[t];
      }),
      (fe.prototype.getTypeDescriptor = function (e) {
        return this.registry.typeMap[e];
      });
    var he = { xsi: 'http://www.w3.org/2001/XMLSchema-instance' },
      de = 'xsi:type';
    function me(e) {
      return e.xml && e.xml.serialize;
    }
    function ye(e) {
      return me(e) === de;
    }
    function ve(e, t) {
      return le(t)
        ? e.prefix + ':' + ((n = e.localName).charAt(0).toUpperCase() + n.slice(1))
        : e.name;
      var n;
    }
    function ge(e) {
      return new Error(e);
    }
    function be(e) {
      return e.$descriptor;
    }
    function we(e) {
      w(this, e),
        (this.elementsById = {}),
        (this.references = []),
        (this.warnings = []),
        (this.addReference = function (e) {
          this.references.push(e);
        }),
        (this.addElement = function (e) {
          if (!e) throw ge('expected element');
          var t,
            n = this.elementsById,
            r = be(e).idProperty;
          if (r && (t = e.get(r.name))) {
            if (n[t]) throw ge('duplicate ID <' + t + '>');
            n[t] = e;
          }
        }),
        (this.addWarning = function (e) {
          this.warnings.push(e);
        });
    }
    function xe() {}
    function Ee() {}
    function Se() {}
    function Ae(e, t) {
      (this.property = e), (this.context = t);
    }
    function Re(e, t) {
      (this.element = t), (this.propertyDesc = e);
    }
    function Ce() {}
    function _e(e, t, n) {
      (this.model = e), (this.type = e.getType(t)), (this.context = n);
    }
    function Oe(e, t, n) {
      _e.call(this, e, t, n);
    }
    function Te(e, t, n) {
      (this.model = e), (this.context = n);
    }
    function Pe(e) {
      e instanceof fe && (e = { model: e }), w(this, { lax: !1 }, e);
    }
    (xe.prototype.handleEnd = function () {}),
      (xe.prototype.handleText = function () {}),
      (xe.prototype.handleNode = function () {}),
      (Ee.prototype = Object.create(xe.prototype)),
      (Ee.prototype.handleNode = function () {
        return this;
      }),
      (Se.prototype = Object.create(xe.prototype)),
      (Se.prototype.handleText = function (e) {
        this.body = (this.body || '') + e;
      }),
      (Ae.prototype = Object.create(Se.prototype)),
      (Ae.prototype.handleNode = function (e) {
        if (this.element) throw ge('expected no sub nodes');
        return (this.element = this.createReference(e)), this;
      }),
      (Ae.prototype.handleEnd = function () {
        this.element.id = this.body;
      }),
      (Ae.prototype.createReference = function (e) {
        return { property: this.property.ns.name, id: '' };
      }),
      (Re.prototype = Object.create(Se.prototype)),
      (Re.prototype.handleEnd = function () {
        var e = this.body || '',
          t = this.element,
          n = this.propertyDesc;
        (e = ne(n.type, e)), n.isMany ? t.get(n.name).push(e) : t.set(n.name, e);
      }),
      (Ce.prototype = Object.create(Se.prototype)),
      (Ce.prototype.handleNode = function (e) {
        var t = this,
          n = this.element;
        return (
          n
            ? (t = this.handleChild(e))
            : ((n = this.element = this.createElement(e)), this.context.addElement(n)),
          t
        );
      }),
      (_e.prototype = Object.create(Ce.prototype)),
      (_e.prototype.addReference = function (e) {
        this.context.addReference(e);
      }),
      (_e.prototype.handleText = function (e) {
        if (!be(this.element).bodyProperty) throw ge('unexpected body text <' + e + '>');
        Se.prototype.handleText.call(this, e);
      }),
      (_e.prototype.handleEnd = function () {
        var e = this.body,
          t = this.element,
          n = be(t).bodyProperty;
        n && void 0 !== e && ((e = ne(n.type, e)), t.set(n.name, e));
      }),
      (_e.prototype.createElement = function (e) {
        var t,
          n = e.attributes,
          r = this.type,
          i = be(r),
          o = this.context,
          a = new r({}),
          s = this.model;
        return (
          h(n, function (e, n) {
            var r = i.propertiesByName[n];
            r && r.isReference
              ? r.isMany
                ? h(e.split(' '), function (e) {
                    o.addReference({ element: a, property: r.ns.name, id: e });
                  })
                : o.addReference({ element: a, property: r.ns.name, id: e })
              : (r
                  ? (e = ne(r.type, e))
                  : 'xmlns' !== n &&
                    ((t = oe(n, i.ns.prefix)),
                    s.getPackage(t.prefix) &&
                      o.addWarning({
                        message: 'unknown attribute <' + n + '>',
                        element: a,
                        property: n,
                        value: e,
                      })),
                a.set(n, e));
          }),
          a
        );
      }),
      (_e.prototype.getPropertyForNode = function (e) {
        var t,
          n,
          r = oe(e.name),
          i = this.type,
          o = this.model,
          a = be(i),
          s = r.name,
          u = a.propertiesByName[s];
        if (u)
          return ye(u) && (t = e.attributes[de])
            ? ((t = (function (e, t) {
                var n = oe(e);
                return (function (e, t) {
                  var n = e.name,
                    r = e.localName,
                    i = t.xml && t.xml.typePrefix;
                  return i && 0 === r.indexOf(i) ? e.prefix + ':' + r.slice(i.length) : n;
                })(n, t.getPackage(n.prefix));
              })(t, o)),
              w({}, u, { effectiveType: be((n = o.getType(t))).name }))
            : u;
        var c = o.getPackage(r.prefix);
        if (c) {
          if (
            ((t = ve(r, c)),
            (n = o.getType(t)),
            (u = f(a.properties, function (e) {
              return !e.isVirtual && !e.isReference && !e.isAttribute && n.hasType(e.type);
            })))
          )
            return w({}, u, { effectiveType: be(n).name });
        } else if (
          (u = f(a.properties, function (e) {
            return !e.isReference && !e.isAttribute && 'Element' === e.type;
          }))
        )
          return u;
        throw ge('unrecognized element <' + r.name + '>');
      }),
      (_e.prototype.toString = function () {
        return 'ElementDescriptor[' + be(this.type).name + ']';
      }),
      (_e.prototype.valueHandler = function (e, t) {
        return new Re(e, t);
      }),
      (_e.prototype.referenceHandler = function (e) {
        return new Ae(e, this.context);
      }),
      (_e.prototype.handler = function (e) {
        return 'Element' === e
          ? new Te(this.model, e, this.context)
          : new _e(this.model, e, this.context);
      }),
      (_e.prototype.handleChild = function (e) {
        var t, n, r, i;
        if (
          ((t = this.getPropertyForNode(e)),
          (r = this.element),
          ie((n = t.effectiveType || t.type)))
        )
          return this.valueHandler(t, r);
        var o = (i = t.isReference
          ? this.referenceHandler(t).handleNode(e)
          : this.handler(n).handleNode(e)).element;
        return (
          void 0 !== o &&
            (t.isMany ? r.get(t.name).push(o) : r.set(t.name, o),
            t.isReference ? (w(o, { element: r }), this.context.addReference(o)) : (o.$parent = r)),
          i
        );
      }),
      (Oe.prototype = Object.create(_e.prototype)),
      (Oe.prototype.createElement = function (e) {
        var t = e.name,
          n = oe(t),
          r = this.model,
          i = this.type,
          o = r.getPackage(n.prefix),
          a = (o && ve(n, o)) || t;
        if (!i.hasType(a)) throw ge('unexpected element <' + e.originalName + '>');
        return _e.prototype.createElement.call(this, e);
      }),
      (Te.prototype = Object.create(Ce.prototype)),
      (Te.prototype.createElement = function (e) {
        var t = e.name,
          n = oe(t).prefix,
          r = e.ns[n + '$uri'],
          i = e.attributes;
        return this.model.createAny(t, r, i);
      }),
      (Te.prototype.handleChild = function (e) {
        var t = new Te(this.model, 'Element', this.context).handleNode(e),
          n = this.element,
          r = t.element;
        return void 0 !== r && ((n.$children = n.$children || []).push(r), (r.$parent = n)), t;
      }),
      (Te.prototype.handleEnd = function () {
        this.body && (this.element.$body = this.body);
      }),
      (Pe.prototype.fromXML = function (e, t, n) {
        var r = t.rootHandler;
        t instanceof _e
          ? ((r = t), (t = {}))
          : 'string' == typeof t
          ? ((r = this.handler(t)), (t = {}))
          : 'string' == typeof r && (r = this.handler(r));
        var i = this.model,
          o = this.lax,
          a = new we(w({}, t, { rootHandler: r })),
          s = new X({ proxy: !0 }),
          u = (function () {
            var e = [];
            return (
              Object.defineProperty(e, 'peek', {
                value: function () {
                  return this[this.length - 1];
                },
              }),
              e
            );
          })();
        function c(e, t, n) {
          var r = t(),
            i = r.line,
            o = r.column,
            s = r.data;
          '<' === s.charAt(0) && -1 !== s.indexOf(' ') && (s = s.slice(0, s.indexOf(' ')) + '>');
          var u =
            'unparsable content ' +
            (s ? s + ' ' : '') +
            'detected\n\tline: ' +
            i +
            '\n\tcolumn: ' +
            o +
            '\n\tnested error: ' +
            e.message;
          if (n) return a.addWarning({ message: u, error: e }), !0;
          throw ge(u);
        }
        function p(e, t) {
          return c(e, t, !0);
        }
        (r.context = a), u.push(r);
        var f = /^<\?xml /i,
          l = / encoding="([^"]+)"/i,
          h = /^utf-8$/i;
        function d(e, t) {
          try {
            u.peek().handleText(e);
          } catch (e) {
            p(e, t);
          }
        }
        var m = i.getPackages().reduce(function (e, t) {
          return (e[t.uri] = t.prefix), e;
        }, {});
        s
          .ns(m)
          .on('openTag', function (e, t, n, r) {
            var i = e.attrs || {},
              a = Object.keys(i).reduce(function (e, n) {
                var r = t(i[n]);
                return (e[n] = r), e;
              }, {});
            !(function (e, t) {
              var n = u.peek();
              try {
                u.push(n.handleNode(e));
              } catch (e) {
                c(e, t, o) && u.push(new Ee());
              }
            })({ name: e.name, originalName: e.originalName, attributes: a, ns: e.ns }, r);
          })
          .on('question', function (e) {
            if (f.test(e)) {
              var t = l.exec(e),
                n = t && t[1];
              n &&
                !h.test(n) &&
                a.addWarning({
                  message: 'unsupported document encoding <' + n + '>, falling back to UTF-8',
                });
            }
          })
          .on('closeTag', function () {
            u.pop().handleEnd();
          })
          .on('cdata', d)
          .on('text', function (e, t, n) {
            !(function (e, t) {
              (e = e.trim()) && d(e, t);
            })(t(e), n);
          })
          .on('error', c)
          .on('warn', p),
          setTimeout(function () {
            var t;
            try {
              s.parse(e),
                (function () {
                  var e,
                    t,
                    n = a.elementsById,
                    r = a.references;
                  for (e = 0; (t = r[e]); e++) {
                    var i = t.element,
                      o = n[t.id],
                      s = be(i).propertiesByName[t.property];
                    if (
                      (o ||
                        a.addWarning({
                          message: 'unresolved reference <' + t.id + '>',
                          element: t.element,
                          property: t.property,
                          value: t.id,
                        }),
                      s.isMany)
                    ) {
                      var u = i.get(s.name),
                        c = u.indexOf(t);
                      -1 === c && (c = u.length), o ? (u[c] = o) : u.splice(c, 1);
                    } else i.set(s.name, o);
                  }
                })();
            } catch (e) {
              t = e;
            }
            var i = r.element;
            t || i || (t = ge('failed to parse document as <' + r.type.$descriptor.name + '>')),
              n(t, t ? void 0 : i, a);
          }, 0);
      }),
      (Pe.prototype.handler = function (e) {
        return new Oe(this.model, e);
      });
    var ke = '<?xml version="1.0" encoding="UTF-8"?>\n',
      Ie = /<|>|'|"|&|\n\r|\n/g,
      Ne = /<|>|&/g;
    function Me(e) {
      var t = {},
        n = {},
        r = {},
        i = [],
        o = [];
      (this.byUri = function (t) {
        return n[t] || (e && e.byUri(t));
      }),
        (this.add = function (e, t) {
          (n[e.uri] = e), t ? i.push(e) : o.push(e), this.mapPrefix(e.prefix, e.uri);
        }),
        (this.uriByPrefix = function (e) {
          return t[e || 'xmlns'];
        }),
        (this.mapPrefix = function (e, n) {
          t[e || 'xmlns'] = n;
        }),
        (this.logUsed = function (e) {
          var t = e.uri;
          r[t] = this.byUri(t);
        }),
        (this.getUsed = function (e) {
          return [].concat(i, o).filter(function (e) {
            return r[e.uri];
          });
        });
    }
    function De(e, t) {
      (e.super_ = t),
        (e.prototype = Object.create(t.prototype, {
          constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 },
        }));
    }
    function je(e) {
      return c(e) ? e : (e.prefix ? e.prefix + ':' : '') + e.localName;
    }
    var Le = {
        '\n': '#10',
        '\n\r': '#10',
        '"': '#34',
        "'": '#39',
        '<': '#60',
        '>': '#62',
        '&': '#38',
      },
      Be = { '<': 'lt', '>': 'gt', '&': 'amp' };
    function Fe(e, t, n) {
      return (e = c(e) ? e : '' + e).replace(t, function (e) {
        return '&' + n[e] + ';';
      });
    }
    function Ue(e) {
      this.tagName = e;
    }
    function Ve() {}
    function qe(e) {
      this.tagName = e;
    }
    function ze(e, t) {
      (this.body = []), (this.attrs = []), (this.parent = e), (this.propertyDescriptor = t);
    }
    function $e(e, t) {
      ze.call(this, e, t);
    }
    function Ge() {
      (this.value = ''),
        (this.write = function (e) {
          this.value += e;
        });
    }
    function We(e, t) {
      var n = [''];
      (this.append = function (t) {
        return e.write(t), this;
      }),
        (this.appendNewLine = function () {
          return t && e.write('\n'), this;
        }),
        (this.appendIndent = function () {
          return t && e.write(n.join('  ')), this;
        }),
        (this.indent = function () {
          return n.push(''), this;
        }),
        (this.unindent = function () {
          return n.pop(), this;
        });
    }
    function He(e) {
      return (
        (e = w({ format: !1, preamble: !0 }, e || {})),
        {
          toXML: function (t, n) {
            var r = n || new Ge(),
              i = new We(r, e.format);
            if ((e.preamble && i.append(ke), new ze().build(t).serializeTo(i), !n)) return r.value;
          },
        }
      );
    }
    function Ye(e, t) {
      I.call(this, e, t);
    }
    (Ue.prototype.build = function (e) {
      return (this.element = e), this;
    }),
      (Ue.prototype.serializeTo = function (e) {
        e.appendIndent()
          .append('<' + this.tagName + '>' + this.element.id + '</' + this.tagName + '>')
          .appendNewLine();
      }),
      (Ve.prototype.serializeValue = Ve.prototype.serializeTo =
        function (e) {
          e.append(this.escape ? Fe(this.value, Ne, Be) : this.value);
        }),
      (Ve.prototype.build = function (e, t) {
        return (
          (this.value = t), 'String' === e.type && -1 !== t.search(Ne) && (this.escape = !0), this
        );
      }),
      De(qe, Ve),
      (qe.prototype.serializeTo = function (e) {
        e.appendIndent().append('<' + this.tagName + '>'),
          this.serializeValue(e),
          e.append('</' + this.tagName + '>').appendNewLine();
      }),
      (ze.prototype.build = function (e) {
        this.element = e;
        var t,
          n,
          r = e.$descriptor,
          i = this.propertyDescriptor,
          o = r.isGeneric;
        return (
          (t = o ? this.parseGeneric(e) : this.parseNsAttributes(e)),
          (this.ns = i ? this.nsPropertyTagName(i) : this.nsTagName(r)),
          (this.tagName = this.addTagName(this.ns)),
          o ||
            ((n = (function (e) {
              return l(e.$descriptor.properties, function (t) {
                var n = t.name;
                if (t.isVirtual) return !1;
                if (!e.hasOwnProperty(n)) return !1;
                var r = e[n];
                return r !== t.default && null !== r && (!t.isMany || r.length);
              });
            })(e)),
            this.parseAttributes(
              l(n, function (e) {
                return e.isAttr;
              }),
            ),
            this.parseContainments(
              (function (e) {
                return l(e, function (e) {
                  return !e.isAttr;
                });
              })(n),
            )),
          this.parseGenericAttributes(e, t),
          this
        );
      }),
      (ze.prototype.nsTagName = function (e) {
        return (function (e, t) {
          return t.isGeneric
            ? w({ localName: t.ns.localName }, e)
            : w(
                {
                  localName:
                    ((n = t.ns.localName),
                    (r = t.$pkg),
                    le(r) ? (i = n).charAt(0).toLowerCase() + i.slice(1) : n),
                },
                e,
              );
          var n, r, i;
        })(this.logNamespaceUsed(e.ns), e);
      }),
      (ze.prototype.nsPropertyTagName = function (e) {
        return (function (e, t) {
          return w({ localName: t.ns.localName }, e);
        })(this.logNamespaceUsed(e.ns), e);
      }),
      (ze.prototype.isLocalNs = function (e) {
        return e.uri === this.ns.uri;
      }),
      (ze.prototype.nsAttributeName = function (e) {
        var t;
        if (((t = c(e) ? oe(e) : e.ns), e.inherited)) return { localName: t.localName };
        var n = this.logNamespaceUsed(t);
        return (
          this.getNamespaces().logUsed(n),
          this.isLocalNs(n) ? { localName: t.localName } : w({ localName: t.localName }, n)
        );
      }),
      (ze.prototype.parseGeneric = function (e) {
        var t = this,
          n = this.body,
          r = [];
        return (
          h(e, function (i, o) {
            '$body' === o
              ? n.push(new Ve().build({ type: 'String' }, i))
              : '$children' === o
              ? h(i, function (e) {
                  n.push(new ze(t).build(e));
                })
              : 0 !== o.indexOf('$') &&
                t.parseNsAttribute(e, o, i) &&
                r.push({ name: o, value: i });
          }),
          r
        );
      }),
      (ze.prototype.parseNsAttribute = function (e, t, n) {
        var r,
          i = e.$model,
          o = oe(t);
        if (
          ('xmlns' === o.prefix && (r = { prefix: o.localName, uri: n }),
          o.prefix || 'xmlns' !== o.localName || (r = { uri: n }),
          !r)
        )
          return { name: t, value: n };
        if (i && i.getPackage(n)) this.logNamespace(r, !0, !0);
        else {
          var a = this.logNamespaceUsed(r, !0);
          this.getNamespaces().logUsed(a);
        }
      }),
      (ze.prototype.parseNsAttributes = function (e, t) {
        var n = this,
          r = e.$attrs,
          i = [];
        return (
          h(r, function (t, r) {
            var o = n.parseNsAttribute(e, r, t);
            o && i.push(o);
          }),
          i
        );
      }),
      (ze.prototype.parseGenericAttributes = function (e, t) {
        var n = this;
        h(t, function (t) {
          if (t.name !== de)
            try {
              n.addAttribute(n.nsAttributeName(t.name), t.value);
            } catch (n) {
              console.warn('missing namespace information for ', t.name, '=', t.value, 'on', e, n);
            }
        });
      }),
      (ze.prototype.parseContainments = function (e) {
        var t = this,
          n = this.body,
          r = this.element;
        h(e, function (e) {
          var i = r.get(e.name),
            o = e.isReference;
          if ((e.isMany || (i = [i]), e.isBody)) n.push(new Ve().build(e, i[0]));
          else if (ie(e.type))
            h(i, function (r) {
              n.push(new qe(t.addTagName(t.nsPropertyTagName(e))).build(e, r));
            });
          else if (o)
            h(i, function (r) {
              n.push(new Ue(t.addTagName(t.nsPropertyTagName(e))).build(r));
            });
          else {
            var a = ye(e),
              s = (function (e) {
                return 'property' === me(e);
              })(e);
            h(i, function (r) {
              var i;
              (i = a ? new $e(t, e) : s ? new ze(t, e) : new ze(t)), n.push(i.build(r));
            });
          }
        });
      }),
      (ze.prototype.getNamespaces = function (e) {
        var t,
          n = this.namespaces,
          r = this.parent;
        return (
          n ||
            ((t = r && r.getNamespaces()), e || !t ? (this.namespaces = n = new Me(t)) : (n = t)),
          n
        );
      }),
      (ze.prototype.logNamespace = function (e, t, n) {
        var r = this.getNamespaces(n),
          i = e.uri,
          o = e.prefix;
        return r.byUri(i) || r.add(e, t), r.mapPrefix(o, i), e;
      }),
      (ze.prototype.logNamespaceUsed = function (e, t) {
        var n,
          r,
          i,
          o = this.element.$model,
          a = this.getNamespaces(t),
          s = e.prefix,
          u = e.uri;
        if (!s && !u) return { localName: e.localName };
        if (((i = he[s] || (o && (o.getPackage(s) || {}).uri)), !(u = u || i || a.uriByPrefix(s))))
          throw new Error('no namespace uri given for prefix <' + s + '>');
        if (!(e = a.byUri(u))) {
          for (n = s, r = 1; a.uriByPrefix(n); ) n = s + '_' + r++;
          e = this.logNamespace({ prefix: n, uri: u }, i === u);
        }
        return s && a.mapPrefix(s, u), e;
      }),
      (ze.prototype.parseAttributes = function (e) {
        var t = this,
          n = this.element;
        h(e, function (e) {
          var r = n.get(e.name);
          if (e.isReference)
            if (e.isMany) {
              var i = [];
              h(r, function (e) {
                i.push(e.id);
              }),
                (r = i.join(' '));
            } else r = r.id;
          t.addAttribute(t.nsAttributeName(e), r);
        });
      }),
      (ze.prototype.addTagName = function (e) {
        var t = this.logNamespaceUsed(e);
        return this.getNamespaces().logUsed(t), je(e);
      }),
      (ze.prototype.addAttribute = function (e, t) {
        var n = this.attrs;
        c(t) && (t = Fe(t, Ie, Le)), n.push({ name: e, value: t });
      }),
      (ze.prototype.serializeAttributes = function (e) {
        var t = this.attrs,
          n = this.namespaces;
        n &&
          (t = (function (e) {
            return d(e.getUsed(), function (e) {
              return { name: 'xmlns' + (e.prefix ? ':' + e.prefix : ''), value: e.uri };
            });
          })(n).concat(t)),
          h(t, function (t) {
            e.append(' ').append(je(t.name)).append('="').append(t.value).append('"');
          });
      }),
      (ze.prototype.serializeTo = function (e) {
        var t = this.body[0],
          n = t && t.constructor !== Ve;
        e.appendIndent().append('<' + this.tagName),
          this.serializeAttributes(e),
          e.append(t ? '>' : ' />'),
          t &&
            (n && e.appendNewLine().indent(),
            h(this.body, function (t) {
              t.serializeTo(e);
            }),
            n && e.unindent().appendIndent(),
            e.append('</' + this.tagName + '>')),
          e.appendNewLine();
      }),
      De($e, ze),
      ($e.prototype.parseNsAttributes = function (e) {
        var t = ze.prototype.parseNsAttributes.call(this, e),
          n = e.$descriptor;
        if (n.name === this.propertyDescriptor.type) return t;
        var r = (this.typeNs = this.nsTagName(n));
        this.getNamespaces().logUsed(this.typeNs);
        var i = e.$model.getPackage(r.uri),
          o = (i.xml && i.xml.typePrefix) || '';
        return (
          this.addAttribute(
            this.nsAttributeName(de),
            (r.prefix ? r.prefix + ':' : '') + o + n.ns.localName,
          ),
          t
        );
      }),
      ($e.prototype.isLocalNs = function (e) {
        return e.uri === (this.typeNs || this.ns).uri;
      }),
      (Ye.prototype = Object.create(I.prototype)),
      (Ye.prototype.fromXML = function (e, t, n, r) {
        c(t) || ((r = n), (n = t), (t = 'bpmn:Definitions')), u(n) && ((r = n), (n = {}));
        var i = new Pe(w({ model: this, lax: !0 }, n)),
          o = i.handler(t);
        i.fromXML(e, o, r);
      }),
      (Ye.prototype.toXML = function (e, t, n) {
        u(t) && ((n = t), (t = {}));
        var r,
          i,
          o = new He(t);
        try {
          r = o.toXML(e);
        } catch (e) {
          i = e;
        }
        return n(i, r);
      });
    var Je = { bpmn: n(230), bpmndi: n(231), dc: n(232), di: n(233), bioc: n(234) };
    function Ke(e, t) {
      return (
        (function (e) {
          if (Array.isArray(e)) return e;
        })(e) ||
        (function (e, t) {
          var n = [],
            r = !0,
            i = !1,
            o = void 0;
          try {
            for (
              var a, s = e[Symbol.iterator]();
              !(r = (a = s.next()).done) && (n.push(a.value), !t || n.length !== t);
              r = !0
            );
          } catch (e) {
            (i = !0), (o = e);
          } finally {
            try {
              r || null == s.return || s.return();
            } finally {
              if (i) throw o;
            }
          }
          return n;
        })(e, t) ||
        (function () {
          throw new TypeError('Invalid attempt to destructure non-iterable instance');
        })()
      );
    }
    function Xe(e, t, n, r, i, o, a) {
      try {
        var s = e[o](a),
          u = s.value;
      } catch (e) {
        return void n(e);
      }
      s.done ? t(u) : Promise.resolve(u).then(r, i);
    }
    function Qe(e) {
      return function () {
        var t = this,
          n = arguments;
        return new Promise(function (r, i) {
          var o = e.apply(t, n);
          function a(e) {
            Xe(o, r, i, a, s, 'next', e);
          }
          function s(e) {
            Xe(o, r, i, a, s, 'throw', e);
          }
          a(void 0);
        });
      };
    }
    function Ze(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);
      }
    }
    function et(e) {
      return (
        (function (e) {
          if (Array.isArray(e)) {
            for (var t = 0, n = new Array(e.length); t < e.length; t++) n[t] = e[t];
            return n;
          }
        })(e) ||
        (function (e) {
          if (
            Symbol.iterator in Object(e) ||
            '[object Arguments]' === Object.prototype.toString.call(e)
          )
            return Array.from(e);
        })(e) ||
        (function () {
          throw new TypeError('Invalid attempt to spread non-iterable instance');
        })()
      );
    }
    var tt = new (function (e, t) {
      return new Ye(w({}, Je, e), t);
    })();
    function nt(e) {
      return new Promise(function (t, n) {
        tt.fromXML(e, function (e, r) {
          e ? n(e) : t(r);
        });
      });
    }
    function rt(e) {
      return new Promise(function (t, n) {
        tt.toXML(e, function (e, r) {
          e ? n(e) : t(r);
        });
      });
    }
    function it(e) {
      return e.get('rootElements').find(function (e) {
        return 'bpmn:Process' === e.$type && !0 === e.isExecutable;
      });
    }
    function ot(e, t) {
      var n = tt.create('bpmn:SequenceFlow', {
        id: String(Math.random()),
        sourceRef: e,
        targetRef: t,
      });
      return e.get('outgoing').push(n), t.get('incoming').push(n), n;
    }
    function at(e, t, n, r) {
      var i = it(e),
        o = [t, n].concat(et(r));
      t.set('outgoing', []), n.set('incoming', []);
      var a = ot(t, n);
      return (
        o.push(a),
        n.set('outgoing', []),
        r.forEach(function (e) {
          e.set('incoming', []), (a = ot(n, e)), o.push(a);
        }),
        i.set('flowElements', o),
        e
      );
    }
    function st(e) {
      var t = Object.assign({}, e);
      return delete t.$type, tt.create(e.$type, t);
    }
    function ut(e, t) {
      var n, r;
      t
        ? ((n = tt.create('bpmn:StartEvent', { id: String(Math.random()) })),
          (r = e.find(function (e) {
            return e.id === t;
          })))
        : (r = (n = e.find(function (e) {
            return 'bpmn:StartEvent' === e.$type;
          }))
            .get('outgoing')[0]
            .get('targetRef'));
      var i = [];
      return (
        r.get('outgoing').forEach(function (e) {
          i.push(tt.create('bpmn:EndEvent', { id: e.targetRef.id }));
        }),
        [(n = st(n)), (r = st(r)), i]
      );
    }
    var ct = (function () {
      function e() {
        !(function (e, t) {
          if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
        })(this, e),
          (this.definition = null),
          (this.scaffold = '');
      }
      var t, n, r, i, o, a, s;
      return (
        (t = e),
        (n = [
          {
            key: 'setBPMN',
            value:
              ((s = Qe(
                regeneratorRuntime.mark(function e(t) {
                  var n = this;
                  return regeneratorRuntime.wrap(function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt(
                            'return',
                            nt(t).then(function (e) {
                              return (n.definition = e), n._setScaffold(t);
                            }),
                          );
                        case 1:
                        case 'end':
                          return e.stop();
                      }
                  }, e);
                }),
              )),
              function (e) {
                return s.apply(this, arguments);
              }),
          },
          {
            key: 'getBPMN',
            value:
              ((a = Qe(
                regeneratorRuntime.mark(function e() {
                  return regeneratorRuntime.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return e.abrupt('return', rt(this.definition));
                          case 1:
                          case 'end':
                            return e.stop();
                        }
                    },
                    e,
                    this,
                  );
                }),
              )),
              function () {
                return a.apply(this, arguments);
              }),
          },
          {
            key: '_setScaffold',
            value:
              ((o = Qe(
                regeneratorRuntime.mark(function e(t) {
                  var n = this;
                  return regeneratorRuntime.wrap(function (e) {
                    for (;;)
                      switch ((e.prev = e.next)) {
                        case 0:
                          return e.abrupt(
                            'return',
                            nt(t)
                              .then(function (e) {
                                return e.set('diagrams', void 0), it(e).set('flowElements', []), e;
                              })
                              .then(function (e) {
                                return rt(e);
                              })
                              .then(function (e) {
                                n.scaffold = e;
                              }),
                          );
                        case 1:
                        case 'end':
                          return e.stop();
                      }
                  }, e);
                }),
              )),
              function (e) {
                return o.apply(this, arguments);
              }),
          },
          {
            key: 'next',
            value:
              ((i = Qe(
                regeneratorRuntime.mark(function e(t) {
                  var n = this;
                  return regeneratorRuntime.wrap(
                    function (e) {
                      for (;;)
                        switch ((e.prev = e.next)) {
                          case 0:
                            return e.abrupt(
                              'return',
                              nt(this.scaffold).then(
                                (function () {
                                  var e = Qe(
                                    regeneratorRuntime.mark(function e(r) {
                                      var i, o, a, s, u, c, p;
                                      return regeneratorRuntime.wrap(function (e) {
                                        for (;;)
                                          switch ((e.prev = e.next)) {
                                            case 0:
                                              if (
                                                ((i = it(n.definition).get('flowElements')),
                                                (o = ut(i, t)),
                                                (a = Ke(o, 3)),
                                                (s = a[0]),
                                                (u = a[1]),
                                                (c = a[2]),
                                                'bpmn:EndEvent' !== u.$type)
                                              ) {
                                                e.next = 4;
                                                break;
                                              }
                                              return e.abrupt('return', { bpmn: { id: u.id } });
                                            case 4:
                                              return at(r, s, u, c), (e.next = 7), rt(r);
                                            case 7:
                                              return (
                                                (p = e.sent),
                                                e.abrupt('return', { bpmn: p, activity: u })
                                              );
                                            case 9:
                                            case 'end':
                                              return e.stop();
                                          }
                                      }, e);
                                    }),
                                  );
                                  return function (t) {
                                    return e.apply(this, arguments);
                                  };
                                })(),
                              ),
                            );
                          case 1:
                          case 'end':
                            return e.stop();
                        }
                    },
                    e,
                    this,
                  );
                }),
              )),
              function (e) {
                return i.apply(this, arguments);
              }),
          },
        ]) && Ze(t.prototype, n),
        r && Ze(t, r),
        e
      );
    })();
    t.default = ct;
  },
]);