(self.webpackChunkRemoteClient = self.webpackChunkRemoteClient || []).push([
  [5501],
  {
    95501: (e, t, n) => {
      'use strict';
      n.r(t),
        n.d(t, {
          executeScript: () => z,
          extend: () => Z,
          extractFieldLiterals: () => H,
          findFunctionCalls: () => J,
          functionHelper: () => G,
          referencesFunction: () => W,
          referencesMember: () => K,
          validateScript: () => $,
        });
      var r = n(1886),
        o = n(39052),
        a = n(50406),
        c = n(21801),
        i = n(73796),
        l = n(84069),
        s = n(91597),
        u = n(44567),
        h = n(92896),
        f = n(60947);
      function d(e) {
        return e instanceof Error ? (0, a.d1)(e) : (0, a.d1)(new Error(e));
      }
      function p(e) {
        return (0, a.DB)(e);
      }
      function v(e, t) {
        const n = [];
        for (let r = 0; r < t.arguments.length; r++) n.push(y(e, t.arguments[r]));
        return (0, a.$6)(n);
      }
      function g(e, t, n) {
        return (0, a.Ue)((r, o) => {
          v(e, t).then((a) => {
            try {
              r(n(e, t, a));
            } catch (e) {
              o(e);
            }
          }, o);
        });
      }
      function E(e, t, n) {
        try {
          return v(e, t).then((r) => {
            try {
              const c = n(e, t, r);
              return (o = c) && 'function' == typeof o.then ? c : (0, a.DB)(c);
            } catch (e) {
              return d(e);
            }
            var o;
          });
        } catch (e) {
          return d(e);
        }
      }
      function y(e, t, n) {
        try {
          if (t.breakpoint && !0 !== n) return t.breakpoint().then(() => y(e, t, !0));
          switch (t.type) {
            case 'VariableDeclarator':
              return (function (e, t) {
                try {
                  let n = null;
                  return (
                    (n = null === t.init ? (0, a.DB)(null) : y(e, t.init)),
                    null !== e.localScope
                      ? n.then((n) =>
                          (0, a.Ue)((o) => {
                            if ((n === r.v && (n = null), 'Identifier' !== t.id.type))
                              throw new Error('Can only assign a regular variable');
                            const a = t.id.name.toLowerCase();
                            (e.localScope[a] = { value: n, valueset: !0, node: t.init }), o(r.v);
                          }),
                        )
                      : n.then((n) =>
                          (0, a.Ue)((o) => {
                            if ('Identifier' !== t.id.type)
                              throw new Error('Can only assign a regular variable');
                            const a = t.id.name.toLowerCase();
                            n === r.v && (n = null),
                              (e.globalScope[a] = { value: n, valueset: !0, node: t.init }),
                              o(r.v);
                          }),
                        )
                  );
                } catch (e) {
                  return d(e);
                }
              })(e, t);
            case 'VariableDeclaration':
              return T(e, t, 0);
            case 'BlockStatement':
              return (function (e, t) {
                try {
                  return R(e, t, 0);
                } catch (e) {
                  return d(e);
                }
              })(e, t);
            case 'FunctionDeclaration':
              return (function (e, t) {
                try {
                  const n = t.id.name.toLowerCase();
                  return (
                    (e.globalScope[n] = { valueset: !0, node: null, value: new r.F(t, e) }),
                    (0, a.DB)(r.v)
                  );
                } catch (e) {
                  return d(e);
                }
              })(e, t);
            case 'ReturnStatement':
              return (function (e, t) {
                return (0, a.Ue)((n, o) => {
                  null === t.argument
                    ? n(new r.R(r.v))
                    : y(e, t.argument).then((e) => {
                        try {
                          n(new r.R(e));
                        } catch (e) {
                          o(e);
                        }
                      }, o);
                });
              })(e, t);
            case 'IfStatement':
              return (function (e, t) {
                return (0, a.Ue)((n, o) => {
                  'AssignmentExpression' !== t.test.type && 'UpdateExpression' !== t.test.type
                    ? y(e, t.test).then((a) => {
                        try {
                          !0 === a
                            ? y(e, t.consequent).then(n, o)
                            : !1 === a
                            ? null !== t.alternate
                              ? y(e, t.alternate).then(n, o)
                              : n(r.v)
                            : o(
                                new Error(
                                  (0, r.q)(t.test, 'RUNTIME', 'CANNOT_USE_NONBOOLEAN_IN_CONDITION'),
                                ),
                              );
                        } catch (e) {
                          o(e);
                        }
                      }, o)
                    : o(
                        new Error(
                          (0, r.q)(t.test, 'RUNTIME', 'CANNOT_USE_ASSIGNMENT_IN_CONDITION'),
                        ),
                      );
                });
              })(e, t);
            case 'ExpressionStatement':
              return (function (e, t) {
                try {
                  return 'AssignmentExpression' === t.expression.type
                    ? y(e, t.expression)
                    : (t.expression.type,
                      y(e, t.expression).then((e) =>
                        (0, a.Ue)((t) => {
                          t(e === r.v ? r.v : new r.I(e));
                        }),
                      ));
                } catch (e) {
                  return (0, a.d1)(e);
                }
              })(e, t);
            case 'UpdateExpression':
              return (function (e, t) {
                try {
                  const n = t.argument;
                  if ('MemberExpression' === n.type) {
                    const o = { t: null };
                    return y(e, n.object)
                      .then((t) => {
                        let r = null;
                        return (
                          (o.t = t),
                          !0 === n.computed
                            ? (r = y(e, n.property))
                            : 'Identifier' === n.property.type && (r = (0, a.DB)(n.property.name)),
                          r
                        );
                      })
                      .then((e) =>
                        (0, a.Ue)((n) => {
                          const a = o.t;
                          let c;
                          if ((0, r.u)(a)) {
                            if (!(0, r.A)(e)) throw new Error('Invalid Parameter');
                            if ((e < 0 && (e = a.length + e), e < 0 || e >= a.length))
                              throw new Error('Assignment outside of array bounds');
                            (c = (0, r.C)(a[e])), (a[e] = '++' === t.operator ? c + 1 : c - 1);
                          } else if (a instanceof r.D) {
                            if (!1 === (0, r.w)(e))
                              throw new Error('Dictionary accessor must be a string');
                            if (!0 !== a.hasField(e)) throw new Error('Invalid Parameter');
                            (c = (0, r.C)(a.field(e))),
                              a.setField(e, '++' === t.operator ? c + 1 : c - 1);
                          } else {
                            if (!(a instanceof r.y))
                              throw (0, r.x)(a)
                                ? new Error('Array is Immutable')
                                : new Error('Invalid Parameter');
                            if (!1 === (0, r.w)(e))
                              throw new Error('Feature accessor must be a string');
                            if (!0 !== a.hasField(e)) throw new Error('Invalid Parameter');
                            (c = (0, r.C)(a.field(e))),
                              a.setField(e, '++' === t.operator ? c + 1 : c - 1);
                          }
                          !1 === t.prefix ? n(c) : n('++' === t.operator ? c + 1 : c - 1);
                        }),
                      );
                  }
                  return (0, a.Ue)((n, o) => {
                    const a = 'Identifier' === t.argument.type ? t.argument.name.toLowerCase() : '';
                    if (!a) throw new Error('Invalid identifier');
                    let c;
                    return null !== e.localScope && void 0 !== e.localScope[a]
                      ? ((c = (0, r.C)(e.localScope[a].value)),
                        (e.localScope[a] = {
                          value: '++' === t.operator ? c + 1 : c - 1,
                          valueset: !0,
                          node: t,
                        }),
                        void (!1 === t.prefix ? n(c) : n('++' === t.operator ? c + 1 : c - 1)))
                      : void 0 !== e.globalScope[a]
                      ? ((c = (0, r.C)(e.globalScope[a].value)),
                        (e.globalScope[a] = {
                          value: '++' === t.operator ? c + 1 : c - 1,
                          valueset: !0,
                          node: t,
                        }),
                        void (!1 === t.prefix ? n(c) : n('++' === t.operator ? c + 1 : c - 1)))
                      : void o(new Error('Variable not recognised'));
                  });
                } catch (e) {
                  return (0, a.d1)(e);
                }
              })(e, t);
            case 'AssignmentExpression':
              return (function (e, t) {
                return (0, a.Ue)((n, o) => {
                  const c = t.left;
                  if ('MemberExpression' === c.type)
                    y(e, t.right).then((i) => {
                      try {
                        y(e, c.object).then((l) => {
                          try {
                            let s = null;
                            if (!0 === c.computed) s = y(e, c.property);
                            else {
                              if ('Identifier' !== c.property.type)
                                throw new Error(
                                  'Expected computed or identifier for assignemnt target',
                                );
                              s = (0, a.DB)(c.property.name);
                            }
                            s.then((e) => {
                              try {
                                if ((0, r.u)(l)) {
                                  if (!(0, r.A)(e)) throw new Error('Invalid Parameter');
                                  if ((e < 0 && (e = l.length + e), e < 0 || e > l.length))
                                    throw new Error('Assignment outside of array bounds');
                                  if (e === l.length) {
                                    if ('=' !== t.operator) throw new Error('Invalid Parameter');
                                    l[e] = U(i, t.operator, l[e], t);
                                  } else l[e] = U(i, t.operator, l[e], t);
                                } else if (l instanceof r.D) {
                                  if (!1 === (0, r.w)(e))
                                    throw new Error('Dictionary accessor must be a string');
                                  if (!0 === l.hasField(e))
                                    l.setField(e, U(i, t.operator, l.field(e), t));
                                  else {
                                    if ('=' !== t.operator) throw new Error('Invalid Parameter');
                                    l.setField(e, U(i, t.operator, null, t));
                                  }
                                } else {
                                  if (!(l instanceof r.y))
                                    throw (0, r.x)(l)
                                      ? new Error('Array is Immutable')
                                      : new Error('Invalid Parameter');
                                  if (!1 === (0, r.w)(e))
                                    throw new Error('Feature accessor must be a string');
                                  if (!0 === l.hasField(e))
                                    l.setField(e, U(i, t.operator, l.field(e), t));
                                  else {
                                    if ('=' !== t.operator) throw new Error('Invalid Parameter');
                                    l.setField(e, U(i, t.operator, null, t));
                                  }
                                }
                                n(r.v);
                              } catch (e) {
                                o(e);
                              }
                            }, o);
                          } catch (e) {
                            o(e);
                          }
                        }, o);
                      } catch (e) {
                        o(e);
                      }
                    }, o);
                  else {
                    const a = c.name.toLowerCase();
                    if (null !== e.localScope && void 0 !== e.localScope[a])
                      return void y(e, t.right).then((c) => {
                        try {
                          (e.localScope[a] = {
                            value: U(c, t.operator, e.localScope[a].value, t),
                            valueset: !0,
                            node: t.right,
                          }),
                            n(r.v);
                        } catch (e) {
                          o(e);
                        }
                      }, o);
                    void 0 !== e.globalScope[a]
                      ? y(e, t.right).then((c) => {
                          try {
                            (e.globalScope[a] = {
                              value: U(c, t.operator, e.globalScope[a].value, t),
                              valueset: !0,
                              node: t.right,
                            }),
                              n(r.v);
                          } catch (e) {
                            o(e);
                          }
                        }, o)
                      : o(new Error('Cannot assign undeclared variable'));
                  }
                });
              })(e, t);
            case 'ForStatement':
              return (function (e, t) {
                try {
                  return null !== t.init
                    ? y(e, t.init).then(() =>
                        (0, a.Ue)((n, o) => {
                          m(
                            e,
                            t,
                            { testResult: !0, lastAction: r.v },
                            (e) => {
                              n(e);
                            },
                            (e) => {
                              o(e);
                            },
                            0,
                          );
                        }),
                      )
                    : (0, a.Ue)((n, o) => {
                        m(
                          e,
                          t,
                          { testResult: !0, lastAction: r.v },
                          (e) => {
                            n(e);
                          },
                          (e) => {
                            o(e);
                          },
                          0,
                        );
                      });
                } catch (e) {
                  return (0, a.d1)(e);
                }
              })(e, t);
            case 'ForInStatement':
              return (function (e, t) {
                return (0, a.Ue)((n, o) => {
                  y(e, t.right).then((c) => {
                    try {
                      let i = null;
                      (i = 'VariableDeclaration' === t.left.type ? y(e, t.left) : (0, a.DB)()),
                        i.then(() => {
                          try {
                            let a = '';
                            if ('VariableDeclaration' === t.left.type) {
                              const e = t.left.declarations[0].id;
                              'Identifier' === e.type && (a = e.name);
                            } else 'Identifier' === t.left.type && (a = t.left.name);
                            if (!a) throw new Error((0, r.q)(t, 'RUNTIME', 'INVALIDVARIABLE'));
                            a = a.toLowerCase();
                            let i = null;
                            if (
                              (null !== e.localScope &&
                                void 0 !== e.localScope[a] &&
                                (i = e.localScope[a]),
                              null === i && void 0 !== e.globalScope[a] && (i = e.globalScope[a]),
                              null === i)
                            )
                              return void o(
                                new Error((0, r.q)(t, 'RUNTIME', 'VARIABLENOTDECLARED')),
                              );
                            (0, r.u)(c) || (0, r.w)(c)
                              ? b(e, t, c, { reject: o, resolve: n }, i)
                              : (0, r.x)(c)
                              ? (function (e, t, n, o, a, c) {
                                  try {
                                    if ((void 0 === c && (c = 'i'), 0 === n.length))
                                      return void o.resolve(r.v);
                                    I(
                                      e,
                                      t,
                                      n,
                                      a,
                                      0,
                                      c,
                                      (e) => {
                                        o.resolve(e);
                                      },
                                      (e) => {
                                        o.reject(e);
                                      },
                                      0,
                                    );
                                  } catch (e) {
                                    o.reject(e);
                                  }
                                })(e, t, c, { reject: o, resolve: n }, i)
                              : c instanceof r.D || c instanceof r.y
                              ? (function (e, t, n, r, o) {
                                  try {
                                    b(e, t, n.keys(), r, o, 'k');
                                  } catch (e) {
                                    r.reject(e);
                                  }
                                })(e, t, c, { reject: o, resolve: n }, i)
                              : (0, r.z)(c)
                              ? C(
                                  c.iterator(e.abortSignal),
                                  e,
                                  t,
                                  c,
                                  i,
                                  (e) => {
                                    n(e);
                                  },
                                  (e) => {
                                    o(e);
                                  },
                                  0,
                                )
                              : b(e, t, [], { reject: o, resolve: n }, i);
                          } catch (e) {
                            o(e);
                          }
                        }, o);
                    } catch (e) {
                      o(e);
                    }
                  }, o);
                });
              })(e, t);
            case 'BreakStatement':
              return (0, a.DB)(r.h);
            case 'EmptyStatement':
              return (0, a.DB)(r.v);
            case 'ContinueStatement':
              return (0, a.DB)(r.j);
            case 'TemplateElement':
              return (function (e, t) {
                return (0, a.DB)(t.value ? t.value.cooked : '');
              })(0, t);
            case 'TemplateLiteral':
              return (function (e, t) {
                return (0, a.Ue)((n) => {
                  const o = [];
                  (0, r.s)(t.expressions, (t, n, a, c) =>
                    y(e, n).then((e) => {
                      o[a] = (0, r.t)(e);
                    }),
                  ).then(() => {
                    let e = '',
                      r = 0;
                    for (const n of t.quasis)
                      (e += n.value ? n.value.cooked : ''),
                        !1 === n.tail && ((e += o[r] ? o[r] : ''), r++);
                    n(e);
                  });
                });
              })(e, t);
            case 'Identifier':
              return D(e, t);
            case 'MemberExpression':
              return (function (e, t) {
                try {
                  return y(e, t.object).then((n) => {
                    try {
                      return null === n
                        ? (0, a.d1)(new Error((0, r.q)(t, 'RUNTIME', 'NOTFOUND')))
                        : !1 === t.computed
                        ? 'Identifier' === t.property.type
                          ? n instanceof r.D || n instanceof r.y
                            ? (0, a.DB)(n.field(t.property.name))
                            : n instanceof i.Z
                            ? (0, a.DB)(O(n, t.property.name, 0, t))
                            : (0, a.d1)(new Error((0, r.q)(t, 'RUNTIME', 'INVALIDTYPE')))
                          : (0, a.d1)(new Error((0, r.q)(t, 'RUNTIME', 'INVALIDTYPE')))
                        : y(e, t.property).then((e) =>
                            (0, a.Ue)((o, a) => {
                              if (n instanceof r.D || n instanceof r.y)
                                (0, r.w)(e)
                                  ? o(n.field(e))
                                  : a(new Error((0, r.q)(t, 'RUNTIME', 'INVALIDTYPE')));
                              else if (n instanceof i.Z)
                                (0, r.w)(e)
                                  ? o(O(n, e, 0, t))
                                  : a(new Error((0, r.q)(t, 'RUNTIME', 'INVALIDTYPE')));
                              else if ((0, r.u)(n))
                                if ((0, r.A)(e) && isFinite(e) && Math.floor(e) === e) {
                                  if ((e < 0 && (e = n.length + e), e >= n.length || e < 0))
                                    throw new Error((0, r.q)(t, 'RUNTIME', 'OUTOFBOUNDS'));
                                  o(n[e]);
                                } else a(new Error((0, r.q)(t, 'RUNTIME', 'INVALIDTYPE')));
                              else if ((0, r.x)(n))
                                if ((0, r.A)(e) && isFinite(e) && Math.floor(e) === e) {
                                  if ((e < 0 && (e = n.length() + e), e >= n.length() || e < 0))
                                    throw new Error((0, r.q)(t, 'RUNTIME', 'OUTOFBOUNDS'));
                                  o(n.get(e));
                                } else a(new Error((0, r.q)(t, 'RUNTIME', 'INVALIDTYPE')));
                              else if ((0, r.w)(n))
                                if ((0, r.A)(e) && isFinite(e) && Math.floor(e) === e) {
                                  if ((e < 0 && (e = n.length + e), e >= n.length || e < 0))
                                    throw new Error((0, r.q)(t, 'RUNTIME', 'OUTOFBOUNDS'));
                                  o(n[e]);
                                } else a(new Error((0, r.q)(t, 'RUNTIME', 'INVALIDTYPE')));
                              else a(new Error((0, r.q)(t, 'RUNTIME', 'INVALIDTYPE')));
                            }),
                          );
                    } catch (e) {
                      return d(e);
                    }
                  });
                } catch (e) {
                  return d(e);
                }
              })(e, t);
            case 'Literal':
              return p(t.value);
            case 'CallExpression':
              return (function (e, t) {
                try {
                  if ('Identifier' !== t.callee.type)
                    return d((0, r.q)(t, 'RUNTIME', 'ONLYNODESSUPPORTED'));
                  if (
                    null !== e.localScope &&
                    void 0 !== e.localScope[t.callee.name.toLowerCase()]
                  ) {
                    const n = e.localScope[t.callee.name.toLowerCase()];
                    return n.value instanceof r.N
                      ? n.value.fn(e, t)
                      : n.value instanceof r.F
                      ? q(e, t, n.value.definition)
                      : d((0, r.q)(t, 'RUNTIME', 'NOTAFUNCTION'));
                  }
                  if (void 0 !== e.globalScope[t.callee.name.toLowerCase()]) {
                    const n = e.globalScope[t.callee.name.toLowerCase()];
                    return n.value instanceof r.N
                      ? n.value.fn(e, t)
                      : n.value instanceof r.F
                      ? q(e, t, n.value.definition)
                      : d((0, r.q)(t, 'RUNTIME', 'NOTAFUNCTION'));
                  }
                  return d((0, r.q)(t, 'RUNTIME', 'NOTFOUND'));
                } catch (e) {
                  return d(e);
                }
              })(e, t);
            case 'UnaryExpression':
              return (function (e, t) {
                try {
                  return y(e, t.argument).then((e) =>
                    (0, a.Ue)((n, o) => {
                      (0, r.i)(e) && '!' === t.operator
                        ? n(!e)
                        : '-' === t.operator
                        ? n(-1 * (0, r.C)(e))
                        : '+' === t.operator
                        ? n(1 * (0, r.C)(e))
                        : '~' === t.operator
                        ? n(~(0, r.C)(e))
                        : o(new Error((0, r.q)(t, 'RUNTIME', 'NOTSUPPORTEDUNARYOPERATOR')));
                    }),
                  );
                } catch (e) {
                  return d(e);
                }
              })(e, t);
            case 'BinaryExpression':
              return (function (e, t) {
                try {
                  return (0, a.$6)([y(e, t.left), y(e, t.right)]).then((e) =>
                    (0, a.Ue)((n, o) => {
                      const a = e[0],
                        c = e[1];
                      switch (t.operator) {
                        case '|':
                        case '<<':
                        case '>>':
                        case '>>>':
                        case '^':
                        case '&':
                          n((0, r.G)((0, r.C)(a), (0, r.C)(c), t.operator));
                        case '==':
                          n((0, r.f)(a, c));
                          break;
                        case '!=':
                          n(!(0, r.f)(a, c));
                          break;
                        case '<':
                        case '>':
                        case '<=':
                        case '>=':
                          n((0, r.E)(a, c, t.operator));
                          break;
                        case '+':
                          (0, r.w)(a) || (0, r.w)(c)
                            ? n((0, r.t)(a) + (0, r.t)(c))
                            : n((0, r.C)(a) + (0, r.C)(c));
                          break;
                        case '-':
                          n((0, r.C)(a) - (0, r.C)(c));
                          break;
                        case '*':
                          n((0, r.C)(a) * (0, r.C)(c));
                          break;
                        case '/':
                          n((0, r.C)(a) / (0, r.C)(c));
                          break;
                        case '%':
                          n((0, r.C)(a) % (0, r.C)(c));
                          break;
                        default:
                          o(new Error((0, r.q)(t, 'RUNTIME', 'OPERATORNOTRECOGNISED')));
                      }
                    }),
                  );
                } catch (e) {
                  return d(e);
                }
              })(e, t);
            case 'LogicalExpression':
              return (function (e, t) {
                return (0, a.Ue)((n, o) => {
                  'AssignmentExpression' !== t.left.type && 'UpdateExpression' !== t.left.type
                    ? 'AssignmentExpression' !== t.right.type && 'UpdateExpression' !== t.right.type
                      ? y(e, t.left).then((a) => {
                          try {
                            if (!(0, r.i)(a))
                              throw new Error((0, r.q)(t, 'RUNTIME', 'ONLYBOOLEAN'));
                            switch (t.operator) {
                              case '||':
                                !0 === a
                                  ? n(a)
                                  : y(e, t.right).then((e) => {
                                      try {
                                        if (!(0, r.i)(e))
                                          throw new Error((0, r.q)(t, 'RUNTIME', 'ONLYORORAND'));
                                        n(e);
                                      } catch (e) {
                                        o(e);
                                      }
                                    }, o);
                                break;
                              case '&&':
                                !1 === a
                                  ? n(a)
                                  : y(e, t.right).then((e) => {
                                      try {
                                        if (!(0, r.i)(e))
                                          throw new Error((0, r.q)(t, 'RUNTIME', 'ONLYORORAND'));
                                        n(e);
                                      } catch (e) {
                                        o(e);
                                      }
                                    }, o);
                                break;
                              default:
                                throw new Error((0, r.q)(t, 'RUNTIME', 'ONLYORORAND'));
                            }
                          } catch (e) {
                            o(e);
                          }
                        }, o)
                      : o(
                          new Error(
                            (0, r.q)(t.right, 'RUNTIME', 'CANNOT_USE_ASSIGNMENT_IN_CONDITION'),
                          ),
                        )
                    : o(
                        new Error(
                          (0, r.q)(t.left, 'RUNTIME', 'CANNOT_USE_ASSIGNMENT_IN_CONDITION'),
                        ),
                      );
                });
              })(e, t);
            case 'ConditionalExpression':
              return d((0, r.q)(t, 'RUNTIME', 'NOTSUPPORTED'));
            case 'ArrayExpression':
              return (function (e, t) {
                try {
                  const n = [];
                  for (let r = 0; r < t.elements.length; r++) n.push(y(e, t.elements[r]));
                  return (0, a.$6)(n).then((e) =>
                    (0, a.Ue)((n, o) => {
                      for (let n = 0; n < e.length; n++) {
                        if ((0, r.B)(e[n]))
                          return void o(
                            new Error((0, r.q)(t, 'RUNTIME', 'FUNCTIONCONTEXTILLEGAL')),
                          );
                        e[n] === r.v && (e[n] = null);
                      }
                      n(e);
                    }),
                  );
                } catch (e) {
                  return d(e);
                }
              })(e, t);
            case 'ObjectExpression':
              return (function (e, t) {
                try {
                  const n = [];
                  for (let r = 0; r < t.properties.length; r++) n.push(y(e, t.properties[r]));
                  return (0, a.$6)(n).then((e) =>
                    (0, a.Ue)((t) => {
                      const n = {};
                      for (let t = 0; t < e.length; t++) {
                        const o = e[t];
                        if ((0, r.B)(o.value)) throw new Error('Illegal Argument');
                        if (!1 === (0, r.w)(o.key)) throw new Error('Illegal Argument');
                        o.value === r.v
                          ? (n[o.key.toString()] = null)
                          : (n[o.key.toString()] = o.value);
                      }
                      const o = new r.D(n);
                      (o.immutable = !1), t(o);
                    }),
                  );
                } catch (e) {
                  return d(e);
                }
              })(e, t);
            case 'Property':
              return (function (e, t) {
                try {
                  return y(e, t.value).then((n) =>
                    (0, a.Ue)((r) => {
                      'Identifier' === t.key.type
                        ? r({ key: t.key.name, value: n })
                        : y(e, t.key).then((e) => {
                            r({ key: e, value: n });
                          });
                    }),
                  );
                } catch (e) {
                  return (0, a.d1)(e);
                }
              })(e, t);
            default:
              return d((0, r.q)(t, 'RUNTIME', 'UNREOGNISED'));
          }
        } catch (e) {
          return d(e);
        }
      }
      function w(e, t, n) {
        try {
          return y(e, t.body).then((o) => {
            try {
              return (
                (n.lastAction = o),
                n.lastAction === r.h || n.lastAction instanceof r.R
                  ? ((n.testResult = !1), (0, a.DB)(n))
                  : null !== t.update
                  ? y(e, t.update).then(() => (0, a.DB)(n))
                  : (0, a.DB)(n)
              );
            } catch (e) {
              return (0, a.d1)(e);
            }
          });
        } catch (e) {
          return (0, a.d1)(e);
        }
      }
      function m(e, t, n, o, c, i) {
        try {
          (function (e, t, n) {
            try {
              return null !== t.test
                ? y(e, t.test).then((o) => {
                    try {
                      return !0 === e.abortSignal.aborted
                        ? (0, a.d1)(new Error('Cancelled'))
                        : ((n.testResult = o),
                          !1 === n.testResult
                            ? (0, a.DB)(n)
                            : !0 !== n.testResult
                            ? (0, a.d1)(
                                new Error(
                                  (0, r.q)(t, 'RUNTIME', 'CANNOT_USE_NONBOOLEAN_IN_CONDITION'),
                                ),
                              )
                            : w(e, t, n));
                    } catch (e) {
                      return (0, a.d1)(e);
                    }
                  })
                : w(e, t, n);
            } catch (e) {
              return (0, a.d1)(e);
            }
          })(e, t, n).then(
            () => {
              try {
                !0 === n.testResult
                  ? ++i > 100
                    ? ((i = 0),
                      setTimeout(() => {
                        m(e, t, n, o, c, i);
                      }, 0))
                    : m(e, t, n, o, c, i)
                  : n.lastAction instanceof r.R
                  ? o(n.lastAction)
                  : o(r.v);
              } catch (e) {
                c(e);
              }
            },
            (e) => {
              c(e);
            },
          );
        } catch (e) {
          c(e);
        }
      }
      function N(e, t, n, o, a, c, i, l, s, u) {
        try {
          if (o <= c) return void l(r.v);
          (a.value = 'k' === i ? n[c] : c),
            y(e, t.body).then(
              (h) => {
                try {
                  h instanceof r.R
                    ? l(h)
                    : h === r.h
                    ? l(r.v)
                    : ++u > 100
                    ? ((u = 0),
                      setTimeout(() => {
                        N(e, t, n, o, a, c + 1, i, l, s, u);
                      }, 0))
                    : N(e, t, n, o, a, c + 1, i, l, s, u);
                } catch (e) {
                  s(e);
                }
              },
              (e) => {
                s(e);
              },
            );
        } catch (e) {
          s(e);
        }
      }
      function I(e, t, n, o, a, c, i, l, s) {
        try {
          if (n.length() <= a) return void i(r.v);
          (o.value = 'k' === c ? n.get(a) : a),
            y(e, t.body).then(
              (u) => {
                u instanceof r.R
                  ? i(u)
                  : u === r.h
                  ? i(r.v)
                  : ++s > 100
                  ? ((s = 0),
                    setTimeout(() => {
                      I(e, t, n, o, a + 1, c, i, l, s);
                    }, 0))
                  : I(e, t, n, o, a + 1, c, i, l, s);
              },
              (e) => {
                l(e);
              },
            );
        } catch (e) {
          l(e);
        }
      }
      function b(e, t, n, o, a, c) {
        try {
          if ((void 0 === c && (c = 'i'), 0 === n.length)) return void o.resolve(r.v);
          N(
            e,
            t,
            n,
            n.length,
            a,
            0,
            c,
            (e) => {
              o.resolve(e);
            },
            (e) => {
              o.reject(e);
            },
            0,
          );
        } catch (e) {
          o.reject(e);
        }
      }
      function C(e, t, n, o, a, c, i, l) {
        try {
          e.next().then(
            (s) => {
              try {
                if (null === s) c(r.v);
                else {
                  const u = r.y.createFromGraphicLikeObject(s.geometry, s.attributes, o);
                  (u._underlyingGraphic = s),
                    (a.value = u),
                    y(t, n.body).then(
                      (s) => {
                        try {
                          s === r.h
                            ? c(r.v)
                            : s instanceof r.R
                            ? c(s)
                            : ++l > 100
                            ? ((l = 0),
                              setTimeout(() => {
                                C(e, t, n, o, a, c, i, l);
                              }, 0))
                            : C(e, t, n, o, a, c, i, l);
                        } catch (e) {
                          i(e);
                        }
                      },
                      (e) => {
                        i(e);
                      },
                    );
                }
              } catch (e) {
                i(e);
              }
            },
            (e) => {
              i(e);
            },
          );
        } catch (e) {
          i(e);
        }
      }
      function U(e, t, n, o) {
        switch (t) {
          case '=':
            return e === r.v ? null : e;
          case '/=':
            return (0, r.C)(n) / (0, r.C)(e);
          case '*=':
            return (0, r.C)(n) * (0, r.C)(e);
          case '-=':
            return (0, r.C)(n) - (0, r.C)(e);
          case '+=':
            return (0, r.w)(n) || (0, r.w)(e)
              ? (0, r.t)(n) + (0, r.t)(e)
              : (0, r.C)(n) + (0, r.C)(e);
          case '%=':
            return (0, r.C)(n) % (0, r.C)(e);
          default:
            throw new Error((0, r.q)(o, 'RUNTIME', 'OPERATORNOTRECOGNISED'));
        }
      }
      function R(e, t, n) {
        try {
          return n >= t.body.length
            ? (0, a.DB)(r.v)
            : (0, a.Ue)((o, a) => {
                y(e, t.body[n]).then((c) => {
                  try {
                    c instanceof r.R || c === r.h || c === r.j || n === t.body.length - 1
                      ? o(c)
                      : R(e, t, n + 1).then(o, a);
                  } catch (e) {
                    a(e);
                  }
                }, a);
              });
        } catch (e) {
          return d(e);
        }
      }
      function T(e, t, n) {
        return (0, a.Ue)((o, a) => {
          n >= t.declarations.length
            ? o(r.v)
            : y(e, t.declarations[n]).then(() => {
                n === t.declarations.length - 1
                  ? o(r.v)
                  : T(e, t, n + 1).then(() => {
                      o(r.v);
                    }, a);
              }, a);
        });
      }
      n(56240),
        n(40642),
        n(71552),
        n(76506),
        n(3482),
        n(32422),
        n(34250),
        n(92143),
        n(31450),
        n(91306),
        n(86656),
        n(22723),
        n(17533),
        n(81172),
        n(74673),
        n(21972),
        n(23639),
        n(91055),
        n(27794),
        n(6906),
        n(60991),
        n(26341),
        n(2906),
        n(35132),
        n(89623),
        n(97714),
        n(86787),
        n(98380),
        n(97546),
        n(57251),
        n(59465),
        n(9801),
        n(53523),
        n(42911),
        n(46826),
        n(45433),
        n(54732),
        n(40267),
        n(88762),
        n(32101),
        n(21929),
        n(74569),
        n(22781),
        n(92228),
        n(42870),
        n(65514),
        n(46987),
        n(37453),
        n(73173),
        n(82058),
        n(66284),
        n(33921);
      let S = 0;
      function O(e, t, n, o) {
        let a;
        switch ((t = t.toLowerCase())) {
          case 'hasz': {
            const t = e.hasZ;
            return void 0 !== t && t;
          }
          case 'hasm': {
            const t = e.hasM;
            return void 0 !== t && t;
          }
          case 'spatialreference': {
            let t = e.spatialReference._arcadeCacheId;
            if (void 0 === t) {
              let n = !0;
              Object.freeze && Object.isFrozen(e.spatialReference) && (n = !1),
                n && (S++, (e.spatialReference._arcadeCacheId = S), (t = S));
            }
            const n = new r.D({ wkt: e.spatialReference.wkt, wkid: e.spatialReference.wkid });
            return void 0 !== t && (n._arcadeCacheId = 'SPREF' + t.toString()), n;
          }
        }
        switch (e.type) {
          case 'extent':
            switch (t) {
              case 'xmin':
              case 'xmax':
              case 'ymin':
              case 'ymax':
              case 'zmin':
              case 'zmax':
              case 'mmin':
              case 'mmax': {
                const n = e[t];
                return void 0 !== n ? n : null;
              }
              case 'type':
                return 'Extent';
            }
            break;
          case 'polygon':
            switch (t) {
              case 'rings':
                return (
                  (a = e.cache._arcadeCacheId),
                  void 0 === a && (S++, (a = S), (e.cache._arcadeCacheId = a)),
                  new r.K(e.rings, e.spatialReference, !0 === e.hasZ, !0 === e.hasM, a)
                );
              case 'type':
                return 'Polygon';
            }
            break;
          case 'point':
            switch (t) {
              case 'x':
              case 'y':
              case 'z':
              case 'm':
                return void 0 !== e[t] ? e[t] : null;
              case 'type':
                return 'Point';
            }
            break;
          case 'polyline':
            switch (t) {
              case 'paths':
                return (
                  (a = e.cache._arcadeCacheId),
                  void 0 === a && (S++, (a = S), (e.cache._arcadeCacheId = a)),
                  new r.K(e.paths, e.spatialReference, !0 === e.hasZ, !0 === e.hasM, a)
                );
              case 'type':
                return 'Polyline';
            }
            break;
          case 'multipoint':
            switch (t) {
              case 'points':
                return (
                  (a = e.cache._arcadeCacheId),
                  void 0 === a && (S++, (a = S), (e.cache._arcadeCacheId = a)),
                  new r.J(e.points, e.spatialReference, !0 === e.hasZ, !0 === e.hasM, a, 1)
                );
              case 'type':
                return 'Multipoint';
            }
        }
        throw new Error((0, r.q)(o, 'RUNTIME', 'PROPERTYNOTFOUND'));
      }
      function D(e, t) {
        return (0, a.Ue)((n, o) => {
          const a = t.name.toLowerCase();
          if (null === e.localScope || void 0 === e.localScope[a])
            if (void 0 === e.globalScope[a])
              o(new Error((0, r.q)(t, 'RUNTIME', 'VARIABLENOTFOUND')));
            else {
              const t = e.globalScope[a];
              !0 === t.valueset
                ? n(t.value)
                : null !== t.d
                ? t.d.then(n, o)
                : ((t.d = y(e, t.node)),
                  t.d.then((e) => {
                    try {
                      (t.value = e), (t.valueset = !0), n(e);
                    } catch (e) {
                      o(e);
                    }
                  }, o));
            }
          else {
            const t = e.localScope[a];
            !0 === t.valueset
              ? n(t.value)
              : null !== t.d
              ? t.d.then(n, o)
              : ((t.d = y(e, t.node)),
                t.d.then((e) => {
                  try {
                    (t.value = e), (t.valueset = !0), n(e);
                  } catch (e) {
                    o(e);
                  }
                }, o));
          }
        });
      }
      const A = {};
      function x(e) {
        return null === e
          ? ''
          : (0, r.u)(e) || (0, r.x)(e)
          ? 'Array'
          : (0, r.L)(e)
          ? 'Date'
          : (0, r.w)(e)
          ? 'String'
          : (0, r.i)(e)
          ? 'Boolean'
          : (0, r.A)(e)
          ? 'Number'
          : e instanceof r.M
          ? 'Attachment'
          : e instanceof r.O
          ? 'Portal'
          : e instanceof r.D
          ? 'Dictionary'
          : e instanceof r.y
          ? 'Feature'
          : e instanceof s.Z
          ? 'Point'
          : e instanceof u.Z
          ? 'Polygon'
          : e instanceof h.Z
          ? 'Polyline'
          : e instanceof l.Z
          ? 'Multipoint'
          : e instanceof c.Z
          ? 'Extent'
          : (0, r.B)(e)
          ? 'Function'
          : (0, r.z)(e)
          ? 'FeatureSet'
          : (0, r.P)(e)
          ? 'FeatureSetCollection'
          : e === r.v
          ? ''
          : 'number' == typeof e && isNaN(e)
          ? 'Number'
          : 'Unrecognised Type';
      }
      function F(e, t, n, o) {
        return (0, a.Ue)((a, c) => {
          y(e, t.arguments[n]).then((i) => {
            try {
              if ((0, r.f)(i, o)) return void y(e, t.arguments[n + 1]).then(a, c);
              {
                const r = t.arguments.length - n;
                return 1 === r
                  ? void y(e, t.arguments[n]).then(a, c)
                  : (2 === r && a(null),
                    3 === r
                      ? void y(e, t.arguments[n + 2]).then(a, c)
                      : void F(e, t, n + 2, o).then(a, c));
              }
            } catch (e) {
              c(e);
            }
          }, c);
        });
      }
      function M(e, t, n, o) {
        return (0, a.Ue)((a, c) => {
          !0 === o
            ? y(e, t.arguments[n + 1]).then(a, c)
            : 3 == t.arguments.length - n
            ? y(e, t.arguments[n + 2]).then(a, c)
            : y(e, t.arguments[n + 2]).then((o) => {
                try {
                  if (!1 === (0, r.i)(o))
                    return void c(new Error('WHEN needs boolean test conditions'));
                  M(e, t, n + 2, o).then(a, c);
                } catch (e) {
                  c(e);
                }
              });
        });
      }
      function P(e, t) {
        try {
          const n = e.length,
            r = Math.floor(n / 2);
          return 0 === n
            ? (0, a.DB)([])
            : 1 === n
            ? (0, a.DB)([e[0]])
            : (0, a.Ue)((o, c) => {
                const i = [P(e.slice(0, r), t), P(e.slice(r, n), t)];
                (0, a.$6)(i).then((e) => {
                  try {
                    k(e[0], e[1], t, []).then(o, c);
                  } catch (e) {
                    c(e);
                  }
                }, c);
              });
        } catch (e) {
          return d(e);
        }
      }
      function k(e, t, n, r) {
        return (0, a.Ue)((o, a) => {
          const c = r;
          e.length > 0 || t.length > 0
            ? e.length > 0 && t.length > 0
              ? n(e[0], t[0]).then((i) => {
                  try {
                    isNaN(i) && (i = 1),
                      i <= 0 ? (c.push(e[0]), (e = e.slice(1))) : (c.push(t[0]), (t = t.slice(1))),
                      k(e, t, n, r).then(o, a);
                  } catch (e) {
                    a(e);
                  }
                }, a)
              : e.length > 0
              ? (c.push(e[0]), k((e = e.slice(1)), t, n, r).then(o, a))
              : t.length > 0 && (c.push(t[0]), (t = t.slice(1)), k(e, t, n, r).then(o, a))
            : o(r);
        });
      }
      function B(e, t) {
        const n = e.length,
          r = Math.floor(n / 2);
        return (
          t ||
            (t = function (e, t) {
              return e < t ? -1 : e === t ? 0 : 1;
            }),
          0 === n
            ? []
            : 1 === n
            ? [e[0]]
            : (function (e, t, n) {
                const r = [];
                for (; e.length > 0 || t.length > 0; )
                  if (e.length > 0 && t.length > 0) {
                    let o = n(e[0], t[0]);
                    isNaN(o) && (o = 1),
                      o <= 0 ? (r.push(e[0]), (e = e.slice(1))) : (r.push(t[0]), (t = t.slice(1)));
                  } else
                    e.length > 0
                      ? (r.push(e[0]), (e = e.slice(1)))
                      : t.length > 0 && (r.push(t[0]), (t = t.slice(1)));
                return r;
              })(B(e.slice(0, r), t), B(e.slice(r, n), t), t)
        );
      }
      function L(e, t, n) {
        try {
          const o = e.body;
          if (n.length !== e.params.length)
            return d(new Error('Invalid Parameter calls to function.'));
          for (let r = 0; r < n.length; r++) {
            const o = e.params[r];
            'Identifier' === o.type &&
              (t.localScope[o.name.toLowerCase()] = {
                d: null,
                value: n[r],
                valueset: !0,
                node: null,
              });
          }
          return y(t, o).then((e) =>
            (0, a.Ue)((t, n) => {
              e instanceof r.R
                ? t(e.value)
                : e !== r.h
                ? e !== r.j
                  ? t(e instanceof r.I ? e.value : e)
                  : n(new Error('Cannot Continue from a Function'))
                : n(new Error('Cannot Break from a Function'));
            }),
          );
        } catch (e) {
          return (0, a.d1)(e);
        }
      }
      function q(e, t, n) {
        return E(e, t, function (t, r, o) {
          const a = {
            spatialReference: e.spatialReference,
            services: e.services,
            console: e.console,
            lrucache: e.lrucache,
            interceptor: e.interceptor,
            localScope: {},
            abortSignal: e.abortSignal,
            globalScope: e.globalScope,
            depthCounter: e.depthCounter + 1,
          };
          if (a.depthCounter > 64) throw new Error('Exceeded maximum function depth');
          return L(n, a, o);
        });
      }
      function _(e) {
        return function () {
          const t = {
            abortSignal: e.context.abortSignal,
            spatialReference: e.context.spatialReference,
            console: e.context.console,
            lrucache: e.context.lrucache,
            interceptor: e.context.interceptor,
            services: e.context.services,
            localScope: {},
            globalScope: e.context.globalScope,
            depthCounter: e.context.depthCounter + 1,
          };
          if (t.depthCounter > 64) throw new Error('Exceeded maximum function depth');
          return L(e.definition, t, arguments);
        };
      }
      (0, r.r)(A, g),
        (0, r.a)(A, g),
        (0, r.b)(A, g),
        (0, r.c)(A, g),
        (0, r.d)(A, g),
        (0, r.e)(A, g),
        (0, o.registerFunctions)({
          functions: A,
          compiled: !1,
          signatures: null,
          failDefferred: null,
          evaluateIdentifier: null,
          arcadeCustomFunctionHandler: null,
          mode: 'async',
          standardFunction: g,
          standardFunctionAsync: E,
        }),
        (A.typeof = function (e, t) {
          return g(e, t, function (e, t, n) {
            (0, r.p)(n, 1, 1);
            const o = x(n[0]);
            if ('Unrecognised Type' === o) throw new Error('Unrecognised Type');
            return o;
          });
        }),
        (A.iif = function (e, t) {
          return (0, a.Ue)((n, o) => {
            (0, r.p)(null === t.arguments ? [] : t.arguments, 3, 3),
              y(e, t.arguments[0]).then((c) => {
                try {
                  if (!1 === (0, r.i)(c))
                    return void o(new Error('IF Function must have a boolean test condition'));
                  (0, a.$6)([y(e, t.arguments[1]), y(e, t.arguments[2])]).then((e) => {
                    n(c ? e[0] : e[1]);
                  }, o);
                } catch (e) {
                  o(e);
                }
              }, o);
          });
        }),
        (A.decode = function (e, t) {
          return (0, a.Ue)((n, r) => {
            t.arguments.length < 2
              ? r(new Error('Missing Parameters'))
              : 2 !== t.arguments.length
              ? (t.arguments.length - 1) % 2 != 0
                ? y(e, t.arguments[0]).then((o) => {
                    try {
                      F(e, t, 1, o).then(n, r);
                    } catch (e) {
                      r(e);
                    }
                  }, r)
                : r(new Error('Must have a default value result.'))
              : y(e, t.arguments[1]).then(n, r);
          });
        }),
        (A.when = function (e, t) {
          try {
            return t.arguments.length < 3
              ? d('Missing Parameters')
              : t.arguments.length % 2 == 0
              ? d('Must have a default value result.')
              : y(e, t.arguments[0]).then((n) =>
                  (0, a.Ue)((o, a) => {
                    !1 !== (0, r.i)(n)
                      ? M(e, t, 0, n).then(o, a)
                      : a(new Error('WHEN needs boolean test conditions'));
                  }),
                );
          } catch (e) {
            return d(e);
          }
        }),
        (A.sort = function (e, t) {
          return E(e, t, function (e, t, n) {
            (0, r.p)(n, 1, 2);
            let o = n[0];
            if (((0, r.x)(o) && (o = o.toArray()), !1 === (0, r.u)(o)))
              return d(Error('Illegal Argument'));
            if (n.length > 1)
              return !1 === (0, r.B)(n[1]) ? d(Error('Illegal Argument')) : P(o, _(n[1]));
            {
              let e = o;
              if (0 === e.length) return (0, a.DB)([]);
              const t = {};
              for (let n = 0; n < e.length; n++) {
                const r = x(e[n]);
                '' !== r && (t[r] = !0);
              }
              if (
                !0 === t.Array ||
                !0 === t.Dictionary ||
                !0 === t.Feature ||
                !0 === t.Point ||
                !0 === t.Polygon ||
                !0 === t.Polyline ||
                !0 === t.Multipoint ||
                !0 === t.Extent ||
                !0 === t.Function
              )
                return (0, a.DB)(e.slice(0));
              let n = 0,
                c = '';
              for (const e in t) n++, (c = e);
              return (
                n > 1 || 'String' === c
                  ? (e = B(e, function (e, t) {
                      if (null == e || e === r.v) return null == t || t === r.v ? 0 : 1;
                      if (null == t || t === r.v) return -1;
                      const n = (0, r.t)(e),
                        o = (0, r.t)(t);
                      return n < o ? -1 : n === o ? 0 : 1;
                    }))
                  : 'Number' === c
                  ? (e = B(e, function (e, t) {
                      return e - t;
                    }))
                  : 'Boolean' === c
                  ? (e = B(e, function (e, t) {
                      return e === t ? 0 : t ? -1 : 1;
                    }))
                  : 'Date' === c &&
                    (e = B(e, function (e, t) {
                      return t - e;
                    })),
                (0, a.DB)(e)
              );
            }
          });
        });
      const j = {
        failDefferred: d,
        resolveDeffered: p,
        fixSpatialReference: r.H,
        parseArguments: v,
        standardFunction: g,
        standardFunctionAsync: E,
        evaluateIdentifier: D,
        arcadeCustomFunction: _,
      };
      for (const e in A) A[e] = { value: new r.N(A[e]), valueset: !0, node: null };
      const V = function () {};
      function Y(e) {
        console.log(e);
      }
      ((V.prototype = A).infinity = { value: Number.POSITIVE_INFINITY, valueset: !0, node: null }),
        (V.prototype.pi = { value: Math.PI, valueset: !0, node: null });
      const G = j;
      function Z(e) {
        const t = {
          mode: 'async',
          compiled: !1,
          functions: {},
          signatures: [],
          standardFunction: g,
          standardFunctionAsync: E,
          failDefferred: d,
          evaluateIdentifier: D,
          arcadeCustomFunctionHandler: _,
        };
        for (let n = 0; n < e.length; n++) e[n].registerFunctions(t);
        for (const e in t.functions)
          (A[e] = { value: new r.N(t.functions[e]), valueset: !0, node: null }),
            (V.prototype[e] = A[e]);
        for (let e = 0; e < t.signatures.length; e++) (0, r.g)(t.signatures[e], 'async');
      }
      function z(e, t) {
        let n = t.spatialReference;
        null == n && (n = new f.Z({ wkid: 102100 }));
        const o = (function (e, t) {
          const n = new V();
          null == e && (e = {}), null == t && (t = {});
          const o = new r.D({
            newline: '\n',
            tab: '\t',
            singlequote: "'",
            doublequote: '"',
            forwardslash: '/',
            backwardslash: '\\',
          });
          (o.immutable = !1), (n.textformatting = { value: o, valueset: !0, node: null });
          for (const e in t) n[e] = { value: new r.N(t[e]), native: !0, valueset: !0, node: null };
          for (const t in e)
            e[t] && 'esri.Graphic' === e[t].declaredClass
              ? (n[t] = { value: r.y.createFromGraphic(e[t]), valueset: !0, node: null })
              : (n[t] = { value: e[t], valueset: !0, node: null });
          return n;
        })(t.vars, t.customfunctions);
        return y(
          {
            spatialReference: n,
            services: t.services,
            abortSignal:
              void 0 === t.abortSignal || null === t.abortSignal ? { aborted: !1 } : t.abortSignal,
            globalScope: o,
            console: t.console ? t.console : Y,
            lrucache: t.lrucache,
            interceptor: t.interceptor,
            localScope: null,
            depthCounter: 1,
          },
          e.body[0].body,
        ).then((e) =>
          (0, a.Ue)((t, n) => {
            e instanceof r.R && (e = e.value),
              e instanceof r.I && (e = e.value),
              e === r.v && (e = null),
              e !== r.h
                ? e !== r.j
                  ? e instanceof r.N || e instanceof r.F
                    ? n(new Error('Cannot return FUNCTION'))
                    : t(e)
                  : n(new Error('Cannot return CONTINUE'))
                : n(new Error('Cannot return BREAK'));
          }),
        );
      }
      function H(e, t) {
        return (0, r.k)(e);
      }
      function $(e, t) {
        return (0, r.l)(e, t, 'full');
      }
      function K(e, t) {
        return (0, r.m)(e, t);
      }
      function W(e, t) {
        return (0, r.n)(e, t);
      }
      function J(e) {
        return (0, r.o)(e);
      }
    },
  },
]);
