edge/pkg/sdk/client/dist/client.js

24869 lines
942 KiB
JavaScript
Raw Normal View History

var Edge = (() => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a3, b2) => {
for (var prop in b2 || (b2 = {}))
if (__hasOwnProp.call(b2, prop))
__defNormalProp(a3, prop, b2[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b2)) {
if (__propIsEnum.call(b2, prop))
__defNormalProp(a3, prop, b2[prop]);
}
return a3;
};
var __spreadProps = (a3, b2) => __defProps(a3, __getOwnPropDescs(b2));
var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __decorateClass = (decorators, target, key, kind) => {
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
for (var i4 = decorators.length - 1, decorator; i4 >= 0; i4--)
if (decorator = decorators[i4])
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
if (kind && result)
__defProp(target, key, result);
return result;
};
var __async = (__this, __arguments, generator) => {
return new Promise((resolve, reject) => {
var fulfilled = (value) => {
try {
step(generator.next(value));
} catch (e7) {
reject(e7);
}
};
var rejected = (value) => {
try {
step(generator.throw(value));
} catch (e7) {
reject(e7);
}
};
var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected);
step((generator = generator.apply(__this, __arguments)).next());
});
};
// node_modules/core-js/internals/global.js
var require_global = __commonJS({
"node_modules/core-js/internals/global.js"(exports, module) {
var check = function(it) {
return it && it.Math == Math && it;
};
module.exports = // eslint-disable-next-line es/no-global-this -- safe
check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
check(typeof self == "object" && self) || check(typeof window == "object" && window) || // eslint-disable-next-line no-new-func -- fallback
function() {
return this;
}() || Function("return this")();
}
});
// node_modules/core-js/internals/fails.js
var require_fails = __commonJS({
"node_modules/core-js/internals/fails.js"(exports, module) {
module.exports = function(exec) {
try {
return !!exec();
} catch (error) {
return true;
}
};
}
});
// node_modules/core-js/internals/descriptors.js
var require_descriptors = __commonJS({
"node_modules/core-js/internals/descriptors.js"(exports, module) {
var fails = require_fails();
module.exports = !fails(function() {
return Object.defineProperty({}, 1, { get: function() {
return 7;
} })[1] != 7;
});
}
});
// node_modules/core-js/internals/function-bind-native.js
var require_function_bind_native = __commonJS({
"node_modules/core-js/internals/function-bind-native.js"(exports, module) {
var fails = require_fails();
module.exports = !fails(function() {
var test = function() {
}.bind();
return typeof test != "function" || test.hasOwnProperty("prototype");
});
}
});
// node_modules/core-js/internals/function-call.js
var require_function_call = __commonJS({
"node_modules/core-js/internals/function-call.js"(exports, module) {
var NATIVE_BIND = require_function_bind_native();
var call = Function.prototype.call;
module.exports = NATIVE_BIND ? call.bind(call) : function() {
return call.apply(call, arguments);
};
}
});
// node_modules/core-js/internals/object-property-is-enumerable.js
var require_object_property_is_enumerable = __commonJS({
"node_modules/core-js/internals/object-property-is-enumerable.js"(exports) {
"use strict";
var $propertyIsEnumerable = {}.propertyIsEnumerable;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V2) {
var descriptor = getOwnPropertyDescriptor(this, V2);
return !!descriptor && descriptor.enumerable;
} : $propertyIsEnumerable;
}
});
// node_modules/core-js/internals/create-property-descriptor.js
var require_create_property_descriptor = __commonJS({
"node_modules/core-js/internals/create-property-descriptor.js"(exports, module) {
module.exports = function(bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value
};
};
}
});
// node_modules/core-js/internals/function-uncurry-this.js
var require_function_uncurry_this = __commonJS({
"node_modules/core-js/internals/function-uncurry-this.js"(exports, module) {
var NATIVE_BIND = require_function_bind_native();
var FunctionPrototype = Function.prototype;
var call = FunctionPrototype.call;
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
module.exports = NATIVE_BIND ? uncurryThisWithBind : function(fn) {
return function() {
return call.apply(fn, arguments);
};
};
}
});
// node_modules/core-js/internals/classof-raw.js
var require_classof_raw = __commonJS({
"node_modules/core-js/internals/classof-raw.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var toString = uncurryThis({}.toString);
var stringSlice = uncurryThis("".slice);
module.exports = function(it) {
return stringSlice(toString(it), 8, -1);
};
}
});
// node_modules/core-js/internals/indexed-object.js
var require_indexed_object = __commonJS({
"node_modules/core-js/internals/indexed-object.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var classof = require_classof_raw();
var $Object = Object;
var split = uncurryThis("".split);
module.exports = fails(function() {
return !$Object("z").propertyIsEnumerable(0);
}) ? function(it) {
return classof(it) == "String" ? split(it, "") : $Object(it);
} : $Object;
}
});
// node_modules/core-js/internals/is-null-or-undefined.js
var require_is_null_or_undefined = __commonJS({
"node_modules/core-js/internals/is-null-or-undefined.js"(exports, module) {
module.exports = function(it) {
return it === null || it === void 0;
};
}
});
// node_modules/core-js/internals/require-object-coercible.js
var require_require_object_coercible = __commonJS({
"node_modules/core-js/internals/require-object-coercible.js"(exports, module) {
var isNullOrUndefined = require_is_null_or_undefined();
var $TypeError = TypeError;
module.exports = function(it) {
if (isNullOrUndefined(it))
throw $TypeError("Can't call method on " + it);
return it;
};
}
});
// node_modules/core-js/internals/to-indexed-object.js
var require_to_indexed_object = __commonJS({
"node_modules/core-js/internals/to-indexed-object.js"(exports, module) {
var IndexedObject = require_indexed_object();
var requireObjectCoercible = require_require_object_coercible();
module.exports = function(it) {
return IndexedObject(requireObjectCoercible(it));
};
}
});
// node_modules/core-js/internals/document-all.js
var require_document_all = __commonJS({
"node_modules/core-js/internals/document-all.js"(exports, module) {
var documentAll = typeof document == "object" && document.all;
var IS_HTMLDDA = typeof documentAll == "undefined" && documentAll !== void 0;
module.exports = {
all: documentAll,
IS_HTMLDDA
};
}
});
// node_modules/core-js/internals/is-callable.js
var require_is_callable = __commonJS({
"node_modules/core-js/internals/is-callable.js"(exports, module) {
var $documentAll = require_document_all();
var documentAll = $documentAll.all;
module.exports = $documentAll.IS_HTMLDDA ? function(argument) {
return typeof argument == "function" || argument === documentAll;
} : function(argument) {
return typeof argument == "function";
};
}
});
// node_modules/core-js/internals/is-object.js
var require_is_object = __commonJS({
"node_modules/core-js/internals/is-object.js"(exports, module) {
var isCallable = require_is_callable();
var $documentAll = require_document_all();
var documentAll = $documentAll.all;
module.exports = $documentAll.IS_HTMLDDA ? function(it) {
return typeof it == "object" ? it !== null : isCallable(it) || it === documentAll;
} : function(it) {
return typeof it == "object" ? it !== null : isCallable(it);
};
}
});
// node_modules/core-js/internals/get-built-in.js
var require_get_built_in = __commonJS({
"node_modules/core-js/internals/get-built-in.js"(exports, module) {
var global2 = require_global();
var isCallable = require_is_callable();
var aFunction = function(argument) {
return isCallable(argument) ? argument : void 0;
};
module.exports = function(namespace, method) {
return arguments.length < 2 ? aFunction(global2[namespace]) : global2[namespace] && global2[namespace][method];
};
}
});
// node_modules/core-js/internals/object-is-prototype-of.js
var require_object_is_prototype_of = __commonJS({
"node_modules/core-js/internals/object-is-prototype-of.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
module.exports = uncurryThis({}.isPrototypeOf);
}
});
// node_modules/core-js/internals/engine-user-agent.js
var require_engine_user_agent = __commonJS({
"node_modules/core-js/internals/engine-user-agent.js"(exports, module) {
module.exports = typeof navigator != "undefined" && String(navigator.userAgent) || "";
}
});
// node_modules/core-js/internals/engine-v8-version.js
var require_engine_v8_version = __commonJS({
"node_modules/core-js/internals/engine-v8-version.js"(exports, module) {
var global2 = require_global();
var userAgent = require_engine_user_agent();
var process2 = global2.process;
var Deno2 = global2.Deno;
var versions = process2 && process2.versions || Deno2 && Deno2.version;
var v8 = versions && versions.v8;
var match;
var version;
if (v8) {
match = v8.split(".");
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
}
if (!version && userAgent) {
match = userAgent.match(/Edge\/(\d+)/);
if (!match || match[1] >= 74) {
match = userAgent.match(/Chrome\/(\d+)/);
if (match)
version = +match[1];
}
}
module.exports = version;
}
});
// node_modules/core-js/internals/symbol-constructor-detection.js
var require_symbol_constructor_detection = __commonJS({
"node_modules/core-js/internals/symbol-constructor-detection.js"(exports, module) {
var V8_VERSION = require_engine_v8_version();
var fails = require_fails();
module.exports = !!Object.getOwnPropertySymbols && !fails(function() {
var symbol = Symbol();
return !String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
});
}
});
// node_modules/core-js/internals/use-symbol-as-uid.js
var require_use_symbol_as_uid = __commonJS({
"node_modules/core-js/internals/use-symbol-as-uid.js"(exports, module) {
var NATIVE_SYMBOL = require_symbol_constructor_detection();
module.exports = NATIVE_SYMBOL && !Symbol.sham && typeof Symbol.iterator == "symbol";
}
});
// node_modules/core-js/internals/is-symbol.js
var require_is_symbol = __commonJS({
"node_modules/core-js/internals/is-symbol.js"(exports, module) {
var getBuiltIn = require_get_built_in();
var isCallable = require_is_callable();
var isPrototypeOf = require_object_is_prototype_of();
var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
var $Object = Object;
module.exports = USE_SYMBOL_AS_UID ? function(it) {
return typeof it == "symbol";
} : function(it) {
var $Symbol = getBuiltIn("Symbol");
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
};
}
});
// node_modules/core-js/internals/try-to-string.js
var require_try_to_string = __commonJS({
"node_modules/core-js/internals/try-to-string.js"(exports, module) {
var $String = String;
module.exports = function(argument) {
try {
return $String(argument);
} catch (error) {
return "Object";
}
};
}
});
// node_modules/core-js/internals/a-callable.js
var require_a_callable = __commonJS({
"node_modules/core-js/internals/a-callable.js"(exports, module) {
var isCallable = require_is_callable();
var tryToString = require_try_to_string();
var $TypeError = TypeError;
module.exports = function(argument) {
if (isCallable(argument))
return argument;
throw $TypeError(tryToString(argument) + " is not a function");
};
}
});
// node_modules/core-js/internals/get-method.js
var require_get_method = __commonJS({
"node_modules/core-js/internals/get-method.js"(exports, module) {
var aCallable = require_a_callable();
var isNullOrUndefined = require_is_null_or_undefined();
module.exports = function(V2, P2) {
var func = V2[P2];
return isNullOrUndefined(func) ? void 0 : aCallable(func);
};
}
});
// node_modules/core-js/internals/ordinary-to-primitive.js
var require_ordinary_to_primitive = __commonJS({
"node_modules/core-js/internals/ordinary-to-primitive.js"(exports, module) {
var call = require_function_call();
var isCallable = require_is_callable();
var isObject = require_is_object();
var $TypeError = TypeError;
module.exports = function(input, pref) {
var fn, val;
if (pref === "string" && isCallable(fn = input.toString) && !isObject(val = call(fn, input)))
return val;
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input)))
return val;
if (pref !== "string" && isCallable(fn = input.toString) && !isObject(val = call(fn, input)))
return val;
throw $TypeError("Can't convert object to primitive value");
};
}
});
// node_modules/core-js/internals/is-pure.js
var require_is_pure = __commonJS({
"node_modules/core-js/internals/is-pure.js"(exports, module) {
module.exports = false;
}
});
// node_modules/core-js/internals/define-global-property.js
var require_define_global_property = __commonJS({
"node_modules/core-js/internals/define-global-property.js"(exports, module) {
var global2 = require_global();
var defineProperty = Object.defineProperty;
module.exports = function(key, value) {
try {
defineProperty(global2, key, { value, configurable: true, writable: true });
} catch (error) {
global2[key] = value;
}
return value;
};
}
});
// node_modules/core-js/internals/shared-store.js
var require_shared_store = __commonJS({
"node_modules/core-js/internals/shared-store.js"(exports, module) {
var global2 = require_global();
var defineGlobalProperty = require_define_global_property();
var SHARED = "__core-js_shared__";
var store = global2[SHARED] || defineGlobalProperty(SHARED, {});
module.exports = store;
}
});
// node_modules/core-js/internals/shared.js
var require_shared = __commonJS({
"node_modules/core-js/internals/shared.js"(exports, module) {
var IS_PURE = require_is_pure();
var store = require_shared_store();
(module.exports = function(key, value) {
return store[key] || (store[key] = value !== void 0 ? value : {});
})("versions", []).push({
version: "3.30.1",
mode: IS_PURE ? "pure" : "global",
copyright: "\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",
license: "https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",
source: "https://github.com/zloirock/core-js"
});
}
});
// node_modules/core-js/internals/to-object.js
var require_to_object = __commonJS({
"node_modules/core-js/internals/to-object.js"(exports, module) {
var requireObjectCoercible = require_require_object_coercible();
var $Object = Object;
module.exports = function(argument) {
return $Object(requireObjectCoercible(argument));
};
}
});
// node_modules/core-js/internals/has-own-property.js
var require_has_own_property = __commonJS({
"node_modules/core-js/internals/has-own-property.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var toObject = require_to_object();
var hasOwnProperty = uncurryThis({}.hasOwnProperty);
module.exports = Object.hasOwn || function hasOwn(it, key) {
return hasOwnProperty(toObject(it), key);
};
}
});
// node_modules/core-js/internals/uid.js
var require_uid = __commonJS({
"node_modules/core-js/internals/uid.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var id = 0;
var postfix = Math.random();
var toString = uncurryThis(1 .toString);
module.exports = function(key) {
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString(++id + postfix, 36);
};
}
});
// node_modules/core-js/internals/well-known-symbol.js
var require_well_known_symbol = __commonJS({
"node_modules/core-js/internals/well-known-symbol.js"(exports, module) {
var global2 = require_global();
var shared = require_shared();
var hasOwn = require_has_own_property();
var uid = require_uid();
var NATIVE_SYMBOL = require_symbol_constructor_detection();
var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
var Symbol2 = global2.Symbol;
var WellKnownSymbolsStore = shared("wks");
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2["for"] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;
module.exports = function(name) {
if (!hasOwn(WellKnownSymbolsStore, name)) {
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol2, name) ? Symbol2[name] : createWellKnownSymbol("Symbol." + name);
}
return WellKnownSymbolsStore[name];
};
}
});
// node_modules/core-js/internals/to-primitive.js
var require_to_primitive = __commonJS({
"node_modules/core-js/internals/to-primitive.js"(exports, module) {
var call = require_function_call();
var isObject = require_is_object();
var isSymbol = require_is_symbol();
var getMethod = require_get_method();
var ordinaryToPrimitive = require_ordinary_to_primitive();
var wellKnownSymbol = require_well_known_symbol();
var $TypeError = TypeError;
var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
module.exports = function(input, pref) {
if (!isObject(input) || isSymbol(input))
return input;
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
var result;
if (exoticToPrim) {
if (pref === void 0)
pref = "default";
result = call(exoticToPrim, input, pref);
if (!isObject(result) || isSymbol(result))
return result;
throw $TypeError("Can't convert object to primitive value");
}
if (pref === void 0)
pref = "number";
return ordinaryToPrimitive(input, pref);
};
}
});
// node_modules/core-js/internals/to-property-key.js
var require_to_property_key = __commonJS({
"node_modules/core-js/internals/to-property-key.js"(exports, module) {
var toPrimitive = require_to_primitive();
var isSymbol = require_is_symbol();
module.exports = function(argument) {
var key = toPrimitive(argument, "string");
return isSymbol(key) ? key : key + "";
};
}
});
// node_modules/core-js/internals/document-create-element.js
var require_document_create_element = __commonJS({
"node_modules/core-js/internals/document-create-element.js"(exports, module) {
var global2 = require_global();
var isObject = require_is_object();
var document2 = global2.document;
var EXISTS = isObject(document2) && isObject(document2.createElement);
module.exports = function(it) {
return EXISTS ? document2.createElement(it) : {};
};
}
});
// node_modules/core-js/internals/ie8-dom-define.js
var require_ie8_dom_define = __commonJS({
"node_modules/core-js/internals/ie8-dom-define.js"(exports, module) {
var DESCRIPTORS = require_descriptors();
var fails = require_fails();
var createElement = require_document_create_element();
module.exports = !DESCRIPTORS && !fails(function() {
return Object.defineProperty(createElement("div"), "a", {
get: function() {
return 7;
}
}).a != 7;
});
}
});
// node_modules/core-js/internals/object-get-own-property-descriptor.js
var require_object_get_own_property_descriptor = __commonJS({
"node_modules/core-js/internals/object-get-own-property-descriptor.js"(exports) {
var DESCRIPTORS = require_descriptors();
var call = require_function_call();
var propertyIsEnumerableModule = require_object_property_is_enumerable();
var createPropertyDescriptor = require_create_property_descriptor();
var toIndexedObject = require_to_indexed_object();
var toPropertyKey = require_to_property_key();
var hasOwn = require_has_own_property();
var IE8_DOM_DEFINE = require_ie8_dom_define();
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P2) {
O = toIndexedObject(O);
P2 = toPropertyKey(P2);
if (IE8_DOM_DEFINE)
try {
return $getOwnPropertyDescriptor(O, P2);
} catch (error) {
}
if (hasOwn(O, P2))
return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P2), O[P2]);
};
}
});
// node_modules/core-js/internals/v8-prototype-define-bug.js
var require_v8_prototype_define_bug = __commonJS({
"node_modules/core-js/internals/v8-prototype-define-bug.js"(exports, module) {
var DESCRIPTORS = require_descriptors();
var fails = require_fails();
module.exports = DESCRIPTORS && fails(function() {
return Object.defineProperty(function() {
}, "prototype", {
value: 42,
writable: false
}).prototype != 42;
});
}
});
// node_modules/core-js/internals/an-object.js
var require_an_object = __commonJS({
"node_modules/core-js/internals/an-object.js"(exports, module) {
var isObject = require_is_object();
var $String = String;
var $TypeError = TypeError;
module.exports = function(argument) {
if (isObject(argument))
return argument;
throw $TypeError($String(argument) + " is not an object");
};
}
});
// node_modules/core-js/internals/object-define-property.js
var require_object_define_property = __commonJS({
"node_modules/core-js/internals/object-define-property.js"(exports) {
var DESCRIPTORS = require_descriptors();
var IE8_DOM_DEFINE = require_ie8_dom_define();
var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();
var anObject = require_an_object();
var toPropertyKey = require_to_property_key();
var $TypeError = TypeError;
var $defineProperty = Object.defineProperty;
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var ENUMERABLE = "enumerable";
var CONFIGURABLE = "configurable";
var WRITABLE = "writable";
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P2, Attributes) {
anObject(O);
P2 = toPropertyKey(P2);
anObject(Attributes);
if (typeof O === "function" && P2 === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
var current = $getOwnPropertyDescriptor(O, P2);
if (current && current[WRITABLE]) {
O[P2] = Attributes.value;
Attributes = {
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
writable: false
};
}
}
return $defineProperty(O, P2, Attributes);
} : $defineProperty : function defineProperty(O, P2, Attributes) {
anObject(O);
P2 = toPropertyKey(P2);
anObject(Attributes);
if (IE8_DOM_DEFINE)
try {
return $defineProperty(O, P2, Attributes);
} catch (error) {
}
if ("get" in Attributes || "set" in Attributes)
throw $TypeError("Accessors not supported");
if ("value" in Attributes)
O[P2] = Attributes.value;
return O;
};
}
});
// node_modules/core-js/internals/create-non-enumerable-property.js
var require_create_non_enumerable_property = __commonJS({
"node_modules/core-js/internals/create-non-enumerable-property.js"(exports, module) {
var DESCRIPTORS = require_descriptors();
var definePropertyModule = require_object_define_property();
var createPropertyDescriptor = require_create_property_descriptor();
module.exports = DESCRIPTORS ? function(object, key, value) {
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
} : function(object, key, value) {
object[key] = value;
return object;
};
}
});
// node_modules/core-js/internals/function-name.js
var require_function_name = __commonJS({
"node_modules/core-js/internals/function-name.js"(exports, module) {
var DESCRIPTORS = require_descriptors();
var hasOwn = require_has_own_property();
var FunctionPrototype = Function.prototype;
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
var EXISTS = hasOwn(FunctionPrototype, "name");
var PROPER = EXISTS && function something() {
}.name === "something";
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || DESCRIPTORS && getDescriptor(FunctionPrototype, "name").configurable);
module.exports = {
EXISTS,
PROPER,
CONFIGURABLE
};
}
});
// node_modules/core-js/internals/inspect-source.js
var require_inspect_source = __commonJS({
"node_modules/core-js/internals/inspect-source.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var isCallable = require_is_callable();
var store = require_shared_store();
var functionToString = uncurryThis(Function.toString);
if (!isCallable(store.inspectSource)) {
store.inspectSource = function(it) {
return functionToString(it);
};
}
module.exports = store.inspectSource;
}
});
// node_modules/core-js/internals/weak-map-basic-detection.js
var require_weak_map_basic_detection = __commonJS({
"node_modules/core-js/internals/weak-map-basic-detection.js"(exports, module) {
var global2 = require_global();
var isCallable = require_is_callable();
var WeakMap2 = global2.WeakMap;
module.exports = isCallable(WeakMap2) && /native code/.test(String(WeakMap2));
}
});
// node_modules/core-js/internals/shared-key.js
var require_shared_key = __commonJS({
"node_modules/core-js/internals/shared-key.js"(exports, module) {
var shared = require_shared();
var uid = require_uid();
var keys = shared("keys");
module.exports = function(key) {
return keys[key] || (keys[key] = uid(key));
};
}
});
// node_modules/core-js/internals/hidden-keys.js
var require_hidden_keys = __commonJS({
"node_modules/core-js/internals/hidden-keys.js"(exports, module) {
module.exports = {};
}
});
// node_modules/core-js/internals/internal-state.js
var require_internal_state = __commonJS({
"node_modules/core-js/internals/internal-state.js"(exports, module) {
var NATIVE_WEAK_MAP = require_weak_map_basic_detection();
var global2 = require_global();
var isObject = require_is_object();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var hasOwn = require_has_own_property();
var shared = require_shared_store();
var sharedKey = require_shared_key();
var hiddenKeys = require_hidden_keys();
var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
var TypeError2 = global2.TypeError;
var WeakMap2 = global2.WeakMap;
var set;
var get;
var has;
var enforce = function(it) {
return has(it) ? get(it) : set(it, {});
};
var getterFor = function(TYPE) {
return function(it) {
var state2;
if (!isObject(it) || (state2 = get(it)).type !== TYPE) {
throw TypeError2("Incompatible receiver, " + TYPE + " required");
}
return state2;
};
};
if (NATIVE_WEAK_MAP || shared.state) {
store = shared.state || (shared.state = new WeakMap2());
store.get = store.get;
store.has = store.has;
store.set = store.set;
set = function(it, metadata) {
if (store.has(it))
throw TypeError2(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it;
store.set(it, metadata);
return metadata;
};
get = function(it) {
return store.get(it) || {};
};
has = function(it) {
return store.has(it);
};
} else {
STATE = sharedKey("state");
hiddenKeys[STATE] = true;
set = function(it, metadata) {
if (hasOwn(it, STATE))
throw TypeError2(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it;
createNonEnumerableProperty(it, STATE, metadata);
return metadata;
};
get = function(it) {
return hasOwn(it, STATE) ? it[STATE] : {};
};
has = function(it) {
return hasOwn(it, STATE);
};
}
var store;
var STATE;
module.exports = {
set,
get,
has,
enforce,
getterFor
};
}
});
// node_modules/core-js/internals/make-built-in.js
var require_make_built_in = __commonJS({
"node_modules/core-js/internals/make-built-in.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var isCallable = require_is_callable();
var hasOwn = require_has_own_property();
var DESCRIPTORS = require_descriptors();
var CONFIGURABLE_FUNCTION_NAME = require_function_name().CONFIGURABLE;
var inspectSource = require_inspect_source();
var InternalStateModule = require_internal_state();
var enforceInternalState = InternalStateModule.enforce;
var getInternalState = InternalStateModule.get;
var $String = String;
var defineProperty = Object.defineProperty;
var stringSlice = uncurryThis("".slice);
var replace = uncurryThis("".replace);
var join = uncurryThis([].join);
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function() {
return defineProperty(function() {
}, "length", { value: 8 }).length !== 8;
});
var TEMPLATE = String(String).split("String");
var makeBuiltIn = module.exports = function(value, name, options) {
if (stringSlice($String(name), 0, 7) === "Symbol(") {
name = "[" + replace($String(name), /^Symbol\(([^)]*)\)/, "$1") + "]";
}
if (options && options.getter)
name = "get " + name;
if (options && options.setter)
name = "set " + name;
if (!hasOwn(value, "name") || CONFIGURABLE_FUNCTION_NAME && value.name !== name) {
if (DESCRIPTORS)
defineProperty(value, "name", { value: name, configurable: true });
else
value.name = name;
}
if (CONFIGURABLE_LENGTH && options && hasOwn(options, "arity") && value.length !== options.arity) {
defineProperty(value, "length", { value: options.arity });
}
try {
if (options && hasOwn(options, "constructor") && options.constructor) {
if (DESCRIPTORS)
defineProperty(value, "prototype", { writable: false });
} else if (value.prototype)
value.prototype = void 0;
} catch (error) {
}
var state2 = enforceInternalState(value);
if (!hasOwn(state2, "source")) {
state2.source = join(TEMPLATE, typeof name == "string" ? name : "");
}
return value;
};
Function.prototype.toString = makeBuiltIn(function toString() {
return isCallable(this) && getInternalState(this).source || inspectSource(this);
}, "toString");
}
});
// node_modules/core-js/internals/define-built-in.js
var require_define_built_in = __commonJS({
"node_modules/core-js/internals/define-built-in.js"(exports, module) {
var isCallable = require_is_callable();
var definePropertyModule = require_object_define_property();
var makeBuiltIn = require_make_built_in();
var defineGlobalProperty = require_define_global_property();
module.exports = function(O, key, value, options) {
if (!options)
options = {};
var simple = options.enumerable;
var name = options.name !== void 0 ? options.name : key;
if (isCallable(value))
makeBuiltIn(value, name, options);
if (options.global) {
if (simple)
O[key] = value;
else
defineGlobalProperty(key, value);
} else {
try {
if (!options.unsafe)
delete O[key];
else if (O[key])
simple = true;
} catch (error) {
}
if (simple)
O[key] = value;
else
definePropertyModule.f(O, key, {
value,
enumerable: false,
configurable: !options.nonConfigurable,
writable: !options.nonWritable
});
}
return O;
};
}
});
// node_modules/core-js/internals/math-trunc.js
var require_math_trunc = __commonJS({
"node_modules/core-js/internals/math-trunc.js"(exports, module) {
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = Math.trunc || function trunc(x2) {
var n6 = +x2;
return (n6 > 0 ? floor : ceil)(n6);
};
}
});
// node_modules/core-js/internals/to-integer-or-infinity.js
var require_to_integer_or_infinity = __commonJS({
"node_modules/core-js/internals/to-integer-or-infinity.js"(exports, module) {
var trunc = require_math_trunc();
module.exports = function(argument) {
var number = +argument;
return number !== number || number === 0 ? 0 : trunc(number);
};
}
});
// node_modules/core-js/internals/to-absolute-index.js
var require_to_absolute_index = __commonJS({
"node_modules/core-js/internals/to-absolute-index.js"(exports, module) {
var toIntegerOrInfinity = require_to_integer_or_infinity();
var max = Math.max;
var min = Math.min;
module.exports = function(index, length) {
var integer = toIntegerOrInfinity(index);
return integer < 0 ? max(integer + length, 0) : min(integer, length);
};
}
});
// node_modules/core-js/internals/to-length.js
var require_to_length = __commonJS({
"node_modules/core-js/internals/to-length.js"(exports, module) {
var toIntegerOrInfinity = require_to_integer_or_infinity();
var min = Math.min;
module.exports = function(argument) {
return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
};
}
});
// node_modules/core-js/internals/length-of-array-like.js
var require_length_of_array_like = __commonJS({
"node_modules/core-js/internals/length-of-array-like.js"(exports, module) {
var toLength = require_to_length();
module.exports = function(obj) {
return toLength(obj.length);
};
}
});
// node_modules/core-js/internals/array-includes.js
var require_array_includes = __commonJS({
"node_modules/core-js/internals/array-includes.js"(exports, module) {
var toIndexedObject = require_to_indexed_object();
var toAbsoluteIndex = require_to_absolute_index();
var lengthOfArrayLike = require_length_of_array_like();
var createMethod = function(IS_INCLUDES) {
return function($this, el, fromIndex) {
var O = toIndexedObject($this);
var length = lengthOfArrayLike(O);
var index = toAbsoluteIndex(fromIndex, length);
var value;
if (IS_INCLUDES && el != el)
while (length > index) {
value = O[index++];
if (value != value)
return true;
}
else
for (; length > index; index++) {
if ((IS_INCLUDES || index in O) && O[index] === el)
return IS_INCLUDES || index || 0;
}
return !IS_INCLUDES && -1;
};
};
module.exports = {
// `Array.prototype.includes` method
// https://tc39.es/ecma262/#sec-array.prototype.includes
includes: createMethod(true),
// `Array.prototype.indexOf` method
// https://tc39.es/ecma262/#sec-array.prototype.indexof
indexOf: createMethod(false)
};
}
});
// node_modules/core-js/internals/object-keys-internal.js
var require_object_keys_internal = __commonJS({
"node_modules/core-js/internals/object-keys-internal.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var hasOwn = require_has_own_property();
var toIndexedObject = require_to_indexed_object();
var indexOf = require_array_includes().indexOf;
var hiddenKeys = require_hidden_keys();
var push = uncurryThis([].push);
module.exports = function(object, names) {
var O = toIndexedObject(object);
var i4 = 0;
var result = [];
var key;
for (key in O)
!hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
while (names.length > i4)
if (hasOwn(O, key = names[i4++])) {
~indexOf(result, key) || push(result, key);
}
return result;
};
}
});
// node_modules/core-js/internals/enum-bug-keys.js
var require_enum_bug_keys = __commonJS({
"node_modules/core-js/internals/enum-bug-keys.js"(exports, module) {
module.exports = [
"constructor",
"hasOwnProperty",
"isPrototypeOf",
"propertyIsEnumerable",
"toLocaleString",
"toString",
"valueOf"
];
}
});
// node_modules/core-js/internals/object-get-own-property-names.js
var require_object_get_own_property_names = __commonJS({
"node_modules/core-js/internals/object-get-own-property-names.js"(exports) {
var internalObjectKeys = require_object_keys_internal();
var enumBugKeys = require_enum_bug_keys();
var hiddenKeys = enumBugKeys.concat("length", "prototype");
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return internalObjectKeys(O, hiddenKeys);
};
}
});
// node_modules/core-js/internals/object-get-own-property-symbols.js
var require_object_get_own_property_symbols = __commonJS({
"node_modules/core-js/internals/object-get-own-property-symbols.js"(exports) {
exports.f = Object.getOwnPropertySymbols;
}
});
// node_modules/core-js/internals/own-keys.js
var require_own_keys = __commonJS({
"node_modules/core-js/internals/own-keys.js"(exports, module) {
var getBuiltIn = require_get_built_in();
var uncurryThis = require_function_uncurry_this();
var getOwnPropertyNamesModule = require_object_get_own_property_names();
var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
var anObject = require_an_object();
var concat = uncurryThis([].concat);
module.exports = getBuiltIn("Reflect", "ownKeys") || function ownKeys(it) {
var keys = getOwnPropertyNamesModule.f(anObject(it));
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
};
}
});
// node_modules/core-js/internals/copy-constructor-properties.js
var require_copy_constructor_properties = __commonJS({
"node_modules/core-js/internals/copy-constructor-properties.js"(exports, module) {
var hasOwn = require_has_own_property();
var ownKeys = require_own_keys();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var definePropertyModule = require_object_define_property();
module.exports = function(target, source, exceptions) {
var keys = ownKeys(source);
var defineProperty = definePropertyModule.f;
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
for (var i4 = 0; i4 < keys.length; i4++) {
var key = keys[i4];
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
}
}
};
}
});
// node_modules/core-js/internals/is-forced.js
var require_is_forced = __commonJS({
"node_modules/core-js/internals/is-forced.js"(exports, module) {
var fails = require_fails();
var isCallable = require_is_callable();
var replacement = /#|\.prototype\./;
var isForced = function(feature, detection) {
var value = data[normalize(feature)];
return value == POLYFILL ? true : value == NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection;
};
var normalize = isForced.normalize = function(string) {
return String(string).replace(replacement, ".").toLowerCase();
};
var data = isForced.data = {};
var NATIVE = isForced.NATIVE = "N";
var POLYFILL = isForced.POLYFILL = "P";
module.exports = isForced;
}
});
// node_modules/core-js/internals/export.js
var require_export = __commonJS({
"node_modules/core-js/internals/export.js"(exports, module) {
var global2 = require_global();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var createNonEnumerableProperty = require_create_non_enumerable_property();
var defineBuiltIn = require_define_built_in();
var defineGlobalProperty = require_define_global_property();
var copyConstructorProperties = require_copy_constructor_properties();
var isForced = require_is_forced();
module.exports = function(options, source) {
var TARGET = options.target;
var GLOBAL = options.global;
var STATIC = options.stat;
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
if (GLOBAL) {
target = global2;
} else if (STATIC) {
target = global2[TARGET] || defineGlobalProperty(TARGET, {});
} else {
target = (global2[TARGET] || {}).prototype;
}
if (target)
for (key in source) {
sourceProperty = source[key];
if (options.dontCallGetSet) {
descriptor = getOwnPropertyDescriptor(target, key);
targetProperty = descriptor && descriptor.value;
} else
targetProperty = target[key];
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
if (!FORCED && targetProperty !== void 0) {
if (typeof sourceProperty == typeof targetProperty)
continue;
copyConstructorProperties(sourceProperty, targetProperty);
}
if (options.sham || targetProperty && targetProperty.sham) {
createNonEnumerableProperty(sourceProperty, "sham", true);
}
defineBuiltIn(target, key, sourceProperty, options);
}
};
}
});
// node_modules/core-js/internals/to-string-tag-support.js
var require_to_string_tag_support = __commonJS({
"node_modules/core-js/internals/to-string-tag-support.js"(exports, module) {
var wellKnownSymbol = require_well_known_symbol();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var test = {};
test[TO_STRING_TAG] = "z";
module.exports = String(test) === "[object z]";
}
});
// node_modules/core-js/internals/classof.js
var require_classof = __commonJS({
"node_modules/core-js/internals/classof.js"(exports, module) {
var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();
var isCallable = require_is_callable();
var classofRaw = require_classof_raw();
var wellKnownSymbol = require_well_known_symbol();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var $Object = Object;
var CORRECT_ARGUMENTS = classofRaw(function() {
return arguments;
}()) == "Arguments";
var tryGet = function(it, key) {
try {
return it[key];
} catch (error) {
}
};
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
var O, tag, result;
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) == "Object" && isCallable(O.callee) ? "Arguments" : result;
};
}
});
// node_modules/core-js/internals/to-string.js
var require_to_string = __commonJS({
"node_modules/core-js/internals/to-string.js"(exports, module) {
var classof = require_classof();
var $String = String;
module.exports = function(argument) {
if (classof(argument) === "Symbol")
throw TypeError("Cannot convert a Symbol value to a string");
return $String(argument);
};
}
});
// node_modules/core-js/internals/object-keys.js
var require_object_keys = __commonJS({
"node_modules/core-js/internals/object-keys.js"(exports, module) {
var internalObjectKeys = require_object_keys_internal();
var enumBugKeys = require_enum_bug_keys();
module.exports = Object.keys || function keys(O) {
return internalObjectKeys(O, enumBugKeys);
};
}
});
// node_modules/core-js/internals/object-define-properties.js
var require_object_define_properties = __commonJS({
"node_modules/core-js/internals/object-define-properties.js"(exports) {
var DESCRIPTORS = require_descriptors();
var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();
var definePropertyModule = require_object_define_property();
var anObject = require_an_object();
var toIndexedObject = require_to_indexed_object();
var objectKeys = require_object_keys();
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var props = toIndexedObject(Properties);
var keys = objectKeys(Properties);
var length = keys.length;
var index = 0;
var key;
while (length > index)
definePropertyModule.f(O, key = keys[index++], props[key]);
return O;
};
}
});
// node_modules/core-js/internals/html.js
var require_html = __commonJS({
"node_modules/core-js/internals/html.js"(exports, module) {
var getBuiltIn = require_get_built_in();
module.exports = getBuiltIn("document", "documentElement");
}
});
// node_modules/core-js/internals/object-create.js
var require_object_create = __commonJS({
"node_modules/core-js/internals/object-create.js"(exports, module) {
var anObject = require_an_object();
var definePropertiesModule = require_object_define_properties();
var enumBugKeys = require_enum_bug_keys();
var hiddenKeys = require_hidden_keys();
var html = require_html();
var documentCreateElement = require_document_create_element();
var sharedKey = require_shared_key();
var GT = ">";
var LT = "<";
var PROTOTYPE = "prototype";
var SCRIPT = "script";
var IE_PROTO = sharedKey("IE_PROTO");
var EmptyConstructor = function() {
};
var scriptTag = function(content) {
return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT;
};
var NullProtoObjectViaActiveX = function(activeXDocument2) {
activeXDocument2.write(scriptTag(""));
activeXDocument2.close();
var temp = activeXDocument2.parentWindow.Object;
activeXDocument2 = null;
return temp;
};
var NullProtoObjectViaIFrame = function() {
var iframe = documentCreateElement("iframe");
var JS = "java" + SCRIPT + ":";
var iframeDocument;
iframe.style.display = "none";
html.appendChild(iframe);
iframe.src = String(JS);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(scriptTag("document.F=Object"));
iframeDocument.close();
return iframeDocument.F;
};
var activeXDocument;
var NullProtoObject = function() {
try {
activeXDocument = new ActiveXObject("htmlfile");
} catch (error) {
}
NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
var length = enumBugKeys.length;
while (length--)
delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
return NullProtoObject();
};
hiddenKeys[IE_PROTO] = true;
module.exports = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
EmptyConstructor[PROTOTYPE] = anObject(O);
result = new EmptyConstructor();
EmptyConstructor[PROTOTYPE] = null;
result[IE_PROTO] = O;
} else
result = NullProtoObject();
return Properties === void 0 ? result : definePropertiesModule.f(result, Properties);
};
}
});
// node_modules/core-js/internals/create-property.js
var require_create_property = __commonJS({
"node_modules/core-js/internals/create-property.js"(exports, module) {
"use strict";
var toPropertyKey = require_to_property_key();
var definePropertyModule = require_object_define_property();
var createPropertyDescriptor = require_create_property_descriptor();
module.exports = function(object, key, value) {
var propertyKey = toPropertyKey(key);
if (propertyKey in object)
definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
else
object[propertyKey] = value;
};
}
});
// node_modules/core-js/internals/array-slice-simple.js
var require_array_slice_simple = __commonJS({
"node_modules/core-js/internals/array-slice-simple.js"(exports, module) {
var toAbsoluteIndex = require_to_absolute_index();
var lengthOfArrayLike = require_length_of_array_like();
var createProperty = require_create_property();
var $Array = Array;
var max = Math.max;
module.exports = function(O, start, end) {
var length = lengthOfArrayLike(O);
var k2 = toAbsoluteIndex(start, length);
var fin = toAbsoluteIndex(end === void 0 ? length : end, length);
var result = $Array(max(fin - k2, 0));
for (var n6 = 0; k2 < fin; k2++, n6++)
createProperty(result, n6, O[k2]);
result.length = n6;
return result;
};
}
});
// node_modules/core-js/internals/object-get-own-property-names-external.js
var require_object_get_own_property_names_external = __commonJS({
"node_modules/core-js/internals/object-get-own-property-names-external.js"(exports, module) {
var classof = require_classof_raw();
var toIndexedObject = require_to_indexed_object();
var $getOwnPropertyNames = require_object_get_own_property_names().f;
var arraySlice = require_array_slice_simple();
var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function(it) {
try {
return $getOwnPropertyNames(it);
} catch (error) {
return arraySlice(windowNames);
}
};
module.exports.f = function getOwnPropertyNames(it) {
return windowNames && classof(it) == "Window" ? getWindowNames(it) : $getOwnPropertyNames(toIndexedObject(it));
};
}
});
// node_modules/core-js/internals/define-built-in-accessor.js
var require_define_built_in_accessor = __commonJS({
"node_modules/core-js/internals/define-built-in-accessor.js"(exports, module) {
var makeBuiltIn = require_make_built_in();
var defineProperty = require_object_define_property();
module.exports = function(target, name, descriptor) {
if (descriptor.get)
makeBuiltIn(descriptor.get, name, { getter: true });
if (descriptor.set)
makeBuiltIn(descriptor.set, name, { setter: true });
return defineProperty.f(target, name, descriptor);
};
}
});
// node_modules/core-js/internals/well-known-symbol-wrapped.js
var require_well_known_symbol_wrapped = __commonJS({
"node_modules/core-js/internals/well-known-symbol-wrapped.js"(exports) {
var wellKnownSymbol = require_well_known_symbol();
exports.f = wellKnownSymbol;
}
});
// node_modules/core-js/internals/path.js
var require_path = __commonJS({
"node_modules/core-js/internals/path.js"(exports, module) {
var global2 = require_global();
module.exports = global2;
}
});
// node_modules/core-js/internals/well-known-symbol-define.js
var require_well_known_symbol_define = __commonJS({
"node_modules/core-js/internals/well-known-symbol-define.js"(exports, module) {
var path = require_path();
var hasOwn = require_has_own_property();
var wrappedWellKnownSymbolModule = require_well_known_symbol_wrapped();
var defineProperty = require_object_define_property().f;
module.exports = function(NAME) {
var Symbol2 = path.Symbol || (path.Symbol = {});
if (!hasOwn(Symbol2, NAME))
defineProperty(Symbol2, NAME, {
value: wrappedWellKnownSymbolModule.f(NAME)
});
};
}
});
// node_modules/core-js/internals/symbol-define-to-primitive.js
var require_symbol_define_to_primitive = __commonJS({
"node_modules/core-js/internals/symbol-define-to-primitive.js"(exports, module) {
var call = require_function_call();
var getBuiltIn = require_get_built_in();
var wellKnownSymbol = require_well_known_symbol();
var defineBuiltIn = require_define_built_in();
module.exports = function() {
var Symbol2 = getBuiltIn("Symbol");
var SymbolPrototype = Symbol2 && Symbol2.prototype;
var valueOf = SymbolPrototype && SymbolPrototype.valueOf;
var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {
defineBuiltIn(SymbolPrototype, TO_PRIMITIVE, function(hint) {
return call(valueOf, this);
}, { arity: 1 });
}
};
}
});
// node_modules/core-js/internals/set-to-string-tag.js
var require_set_to_string_tag = __commonJS({
"node_modules/core-js/internals/set-to-string-tag.js"(exports, module) {
var defineProperty = require_object_define_property().f;
var hasOwn = require_has_own_property();
var wellKnownSymbol = require_well_known_symbol();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
module.exports = function(target, TAG, STATIC) {
if (target && !STATIC)
target = target.prototype;
if (target && !hasOwn(target, TO_STRING_TAG)) {
defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
}
};
}
});
// node_modules/core-js/internals/function-uncurry-this-clause.js
var require_function_uncurry_this_clause = __commonJS({
"node_modules/core-js/internals/function-uncurry-this-clause.js"(exports, module) {
var classofRaw = require_classof_raw();
var uncurryThis = require_function_uncurry_this();
module.exports = function(fn) {
if (classofRaw(fn) === "Function")
return uncurryThis(fn);
};
}
});
// node_modules/core-js/internals/function-bind-context.js
var require_function_bind_context = __commonJS({
"node_modules/core-js/internals/function-bind-context.js"(exports, module) {
var uncurryThis = require_function_uncurry_this_clause();
var aCallable = require_a_callable();
var NATIVE_BIND = require_function_bind_native();
var bind = uncurryThis(uncurryThis.bind);
module.exports = function(fn, that) {
aCallable(fn);
return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() {
return fn.apply(that, arguments);
};
};
}
});
// node_modules/core-js/internals/is-array.js
var require_is_array = __commonJS({
"node_modules/core-js/internals/is-array.js"(exports, module) {
var classof = require_classof_raw();
module.exports = Array.isArray || function isArray(argument) {
return classof(argument) == "Array";
};
}
});
// node_modules/core-js/internals/is-constructor.js
var require_is_constructor = __commonJS({
"node_modules/core-js/internals/is-constructor.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var isCallable = require_is_callable();
var classof = require_classof();
var getBuiltIn = require_get_built_in();
var inspectSource = require_inspect_source();
var noop = function() {
};
var empty = [];
var construct = getBuiltIn("Reflect", "construct");
var constructorRegExp = /^\s*(?:class|function)\b/;
var exec = uncurryThis(constructorRegExp.exec);
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
var isConstructorModern = function isConstructor(argument) {
if (!isCallable(argument))
return false;
try {
construct(noop, empty, argument);
return true;
} catch (error) {
return false;
}
};
var isConstructorLegacy = function isConstructor(argument) {
if (!isCallable(argument))
return false;
switch (classof(argument)) {
case "AsyncFunction":
case "GeneratorFunction":
case "AsyncGeneratorFunction":
return false;
}
try {
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
} catch (error) {
return true;
}
};
isConstructorLegacy.sham = true;
module.exports = !construct || fails(function() {
var called;
return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function() {
called = true;
}) || called;
}) ? isConstructorLegacy : isConstructorModern;
}
});
// node_modules/core-js/internals/array-species-constructor.js
var require_array_species_constructor = __commonJS({
"node_modules/core-js/internals/array-species-constructor.js"(exports, module) {
var isArray = require_is_array();
var isConstructor = require_is_constructor();
var isObject = require_is_object();
var wellKnownSymbol = require_well_known_symbol();
var SPECIES = wellKnownSymbol("species");
var $Array = Array;
module.exports = function(originalArray) {
var C2;
if (isArray(originalArray)) {
C2 = originalArray.constructor;
if (isConstructor(C2) && (C2 === $Array || isArray(C2.prototype)))
C2 = void 0;
else if (isObject(C2)) {
C2 = C2[SPECIES];
if (C2 === null)
C2 = void 0;
}
}
return C2 === void 0 ? $Array : C2;
};
}
});
// node_modules/core-js/internals/array-species-create.js
var require_array_species_create = __commonJS({
"node_modules/core-js/internals/array-species-create.js"(exports, module) {
var arraySpeciesConstructor = require_array_species_constructor();
module.exports = function(originalArray, length) {
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
};
}
});
// node_modules/core-js/internals/array-iteration.js
var require_array_iteration = __commonJS({
"node_modules/core-js/internals/array-iteration.js"(exports, module) {
var bind = require_function_bind_context();
var uncurryThis = require_function_uncurry_this();
var IndexedObject = require_indexed_object();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var arraySpeciesCreate = require_array_species_create();
var push = uncurryThis([].push);
var createMethod = function(TYPE) {
var IS_MAP = TYPE == 1;
var IS_FILTER = TYPE == 2;
var IS_SOME = TYPE == 3;
var IS_EVERY = TYPE == 4;
var IS_FIND_INDEX = TYPE == 6;
var IS_FILTER_REJECT = TYPE == 7;
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
return function($this, callbackfn, that, specificCreate) {
var O = toObject($this);
var self2 = IndexedObject(O);
var boundFunction = bind(callbackfn, that);
var length = lengthOfArrayLike(self2);
var index = 0;
var create = specificCreate || arraySpeciesCreate;
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : void 0;
var value, result;
for (; length > index; index++)
if (NO_HOLES || index in self2) {
value = self2[index];
result = boundFunction(value, index, O);
if (TYPE) {
if (IS_MAP)
target[index] = result;
else if (result)
switch (TYPE) {
case 3:
return true;
case 5:
return value;
case 6:
return index;
case 2:
push(target, value);
}
else
switch (TYPE) {
case 4:
return false;
case 7:
push(target, value);
}
}
}
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
};
};
module.exports = {
// `Array.prototype.forEach` method
// https://tc39.es/ecma262/#sec-array.prototype.foreach
forEach: createMethod(0),
// `Array.prototype.map` method
// https://tc39.es/ecma262/#sec-array.prototype.map
map: createMethod(1),
// `Array.prototype.filter` method
// https://tc39.es/ecma262/#sec-array.prototype.filter
filter: createMethod(2),
// `Array.prototype.some` method
// https://tc39.es/ecma262/#sec-array.prototype.some
some: createMethod(3),
// `Array.prototype.every` method
// https://tc39.es/ecma262/#sec-array.prototype.every
every: createMethod(4),
// `Array.prototype.find` method
// https://tc39.es/ecma262/#sec-array.prototype.find
find: createMethod(5),
// `Array.prototype.findIndex` method
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
findIndex: createMethod(6),
// `Array.prototype.filterReject` method
// https://github.com/tc39/proposal-array-filtering
filterReject: createMethod(7)
};
}
});
// node_modules/core-js/modules/es.symbol.constructor.js
var require_es_symbol_constructor = __commonJS({
"node_modules/core-js/modules/es.symbol.constructor.js"() {
"use strict";
var $2 = require_export();
var global2 = require_global();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var IS_PURE = require_is_pure();
var DESCRIPTORS = require_descriptors();
var NATIVE_SYMBOL = require_symbol_constructor_detection();
var fails = require_fails();
var hasOwn = require_has_own_property();
var isPrototypeOf = require_object_is_prototype_of();
var anObject = require_an_object();
var toIndexedObject = require_to_indexed_object();
var toPropertyKey = require_to_property_key();
var $toString = require_to_string();
var createPropertyDescriptor = require_create_property_descriptor();
var nativeObjectCreate = require_object_create();
var objectKeys = require_object_keys();
var getOwnPropertyNamesModule = require_object_get_own_property_names();
var getOwnPropertyNamesExternal = require_object_get_own_property_names_external();
var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var definePropertyModule = require_object_define_property();
var definePropertiesModule = require_object_define_properties();
var propertyIsEnumerableModule = require_object_property_is_enumerable();
var defineBuiltIn = require_define_built_in();
var defineBuiltInAccessor = require_define_built_in_accessor();
var shared = require_shared();
var sharedKey = require_shared_key();
var hiddenKeys = require_hidden_keys();
var uid = require_uid();
var wellKnownSymbol = require_well_known_symbol();
var wrappedWellKnownSymbolModule = require_well_known_symbol_wrapped();
var defineWellKnownSymbol = require_well_known_symbol_define();
var defineSymbolToPrimitive = require_symbol_define_to_primitive();
var setToStringTag = require_set_to_string_tag();
var InternalStateModule = require_internal_state();
var $forEach = require_array_iteration().forEach;
var HIDDEN = sharedKey("hidden");
var SYMBOL = "Symbol";
var PROTOTYPE = "prototype";
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(SYMBOL);
var ObjectPrototype = Object[PROTOTYPE];
var $Symbol = global2.Symbol;
var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];
var TypeError2 = global2.TypeError;
var QObject = global2.QObject;
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
var push = uncurryThis([].push);
var AllSymbols = shared("symbols");
var ObjectPrototypeSymbols = shared("op-symbols");
var WellKnownSymbolsStore = shared("wks");
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
var setSymbolDescriptor = DESCRIPTORS && fails(function() {
return nativeObjectCreate(nativeDefineProperty({}, "a", {
get: function() {
return nativeDefineProperty(this, "a", { value: 7 }).a;
}
})).a != 7;
}) ? function(O, P2, Attributes) {
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P2);
if (ObjectPrototypeDescriptor)
delete ObjectPrototype[P2];
nativeDefineProperty(O, P2, Attributes);
if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
nativeDefineProperty(ObjectPrototype, P2, ObjectPrototypeDescriptor);
}
} : nativeDefineProperty;
var wrap = function(tag, description) {
var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype);
setInternalState(symbol, {
type: SYMBOL,
tag,
description
});
if (!DESCRIPTORS)
symbol.description = description;
return symbol;
};
var $defineProperty = function defineProperty(O, P2, Attributes) {
if (O === ObjectPrototype)
$defineProperty(ObjectPrototypeSymbols, P2, Attributes);
anObject(O);
var key = toPropertyKey(P2);
anObject(Attributes);
if (hasOwn(AllSymbols, key)) {
if (!Attributes.enumerable) {
if (!hasOwn(O, HIDDEN))
nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
O[HIDDEN][key] = true;
} else {
if (hasOwn(O, HIDDEN) && O[HIDDEN][key])
O[HIDDEN][key] = false;
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
}
return setSymbolDescriptor(O, key, Attributes);
}
return nativeDefineProperty(O, key, Attributes);
};
var $defineProperties = function defineProperties(O, Properties) {
anObject(O);
var properties = toIndexedObject(Properties);
var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
$forEach(keys, function(key) {
if (!DESCRIPTORS || call($propertyIsEnumerable, properties, key))
$defineProperty(O, key, properties[key]);
});
return O;
};
var $create = function create(O, Properties) {
return Properties === void 0 ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
};
var $propertyIsEnumerable = function propertyIsEnumerable(V2) {
var P2 = toPropertyKey(V2);
var enumerable = call(nativePropertyIsEnumerable, this, P2);
if (this === ObjectPrototype && hasOwn(AllSymbols, P2) && !hasOwn(ObjectPrototypeSymbols, P2))
return false;
return enumerable || !hasOwn(this, P2) || !hasOwn(AllSymbols, P2) || hasOwn(this, HIDDEN) && this[HIDDEN][P2] ? enumerable : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P2) {
var it = toIndexedObject(O);
var key = toPropertyKey(P2);
if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key))
return;
var descriptor = nativeGetOwnPropertyDescriptor(it, key);
if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) {
descriptor.enumerable = true;
}
return descriptor;
};
var $getOwnPropertyNames = function getOwnPropertyNames(O) {
var names = nativeGetOwnPropertyNames(toIndexedObject(O));
var result = [];
$forEach(names, function(key) {
if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key))
push(result, key);
});
return result;
};
var $getOwnPropertySymbols = function(O) {
var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
var result = [];
$forEach(names, function(key) {
if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) {
push(result, AllSymbols[key]);
}
});
return result;
};
if (!NATIVE_SYMBOL) {
$Symbol = function Symbol2() {
if (isPrototypeOf(SymbolPrototype, this))
throw TypeError2("Symbol is not a constructor");
var description = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]);
var tag = uid(description);
var setter = function(value) {
if (this === ObjectPrototype)
call(setter, ObjectPrototypeSymbols, value);
if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag))
this[HIDDEN][tag] = false;
setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
};
if (DESCRIPTORS && USE_SETTER)
setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
return wrap(tag, description);
};
SymbolPrototype = $Symbol[PROTOTYPE];
defineBuiltIn(SymbolPrototype, "toString", function toString() {
return getInternalState(this).tag;
});
defineBuiltIn($Symbol, "withoutSetter", function(description) {
return wrap(uid(description), description);
});
propertyIsEnumerableModule.f = $propertyIsEnumerable;
definePropertyModule.f = $defineProperty;
definePropertiesModule.f = $defineProperties;
getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
wrappedWellKnownSymbolModule.f = function(name) {
return wrap(wellKnownSymbol(name), name);
};
if (DESCRIPTORS) {
defineBuiltInAccessor(SymbolPrototype, "description", {
configurable: true,
get: function description() {
return getInternalState(this).description;
}
});
if (!IS_PURE) {
defineBuiltIn(ObjectPrototype, "propertyIsEnumerable", $propertyIsEnumerable, { unsafe: true });
}
}
}
$2({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
Symbol: $Symbol
});
$forEach(objectKeys(WellKnownSymbolsStore), function(name) {
defineWellKnownSymbol(name);
});
$2({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
useSetter: function() {
USE_SETTER = true;
},
useSimple: function() {
USE_SETTER = false;
}
});
$2({ target: "Object", stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
// `Object.create` method
// https://tc39.es/ecma262/#sec-object.create
create: $create,
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
defineProperty: $defineProperty,
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
defineProperties: $defineProperties,
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
});
$2({ target: "Object", stat: true, forced: !NATIVE_SYMBOL }, {
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
getOwnPropertyNames: $getOwnPropertyNames
});
defineSymbolToPrimitive();
setToStringTag($Symbol, SYMBOL);
hiddenKeys[HIDDEN] = true;
}
});
// node_modules/core-js/internals/symbol-registry-detection.js
var require_symbol_registry_detection = __commonJS({
"node_modules/core-js/internals/symbol-registry-detection.js"(exports, module) {
var NATIVE_SYMBOL = require_symbol_constructor_detection();
module.exports = NATIVE_SYMBOL && !!Symbol["for"] && !!Symbol.keyFor;
}
});
// node_modules/core-js/modules/es.symbol.for.js
var require_es_symbol_for = __commonJS({
"node_modules/core-js/modules/es.symbol.for.js"() {
var $2 = require_export();
var getBuiltIn = require_get_built_in();
var hasOwn = require_has_own_property();
var toString = require_to_string();
var shared = require_shared();
var NATIVE_SYMBOL_REGISTRY = require_symbol_registry_detection();
var StringToSymbolRegistry = shared("string-to-symbol-registry");
var SymbolToStringRegistry = shared("symbol-to-string-registry");
$2({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
"for": function(key) {
var string = toString(key);
if (hasOwn(StringToSymbolRegistry, string))
return StringToSymbolRegistry[string];
var symbol = getBuiltIn("Symbol")(string);
StringToSymbolRegistry[string] = symbol;
SymbolToStringRegistry[symbol] = string;
return symbol;
}
});
}
});
// node_modules/core-js/modules/es.symbol.key-for.js
var require_es_symbol_key_for = __commonJS({
"node_modules/core-js/modules/es.symbol.key-for.js"() {
var $2 = require_export();
var hasOwn = require_has_own_property();
var isSymbol = require_is_symbol();
var tryToString = require_try_to_string();
var shared = require_shared();
var NATIVE_SYMBOL_REGISTRY = require_symbol_registry_detection();
var SymbolToStringRegistry = shared("symbol-to-string-registry");
$2({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
keyFor: function keyFor(sym) {
if (!isSymbol(sym))
throw TypeError(tryToString(sym) + " is not a symbol");
if (hasOwn(SymbolToStringRegistry, sym))
return SymbolToStringRegistry[sym];
}
});
}
});
// node_modules/core-js/internals/function-apply.js
var require_function_apply = __commonJS({
"node_modules/core-js/internals/function-apply.js"(exports, module) {
var NATIVE_BIND = require_function_bind_native();
var FunctionPrototype = Function.prototype;
var apply = FunctionPrototype.apply;
var call = FunctionPrototype.call;
module.exports = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function() {
return call.apply(apply, arguments);
});
}
});
// node_modules/core-js/internals/array-slice.js
var require_array_slice = __commonJS({
"node_modules/core-js/internals/array-slice.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
module.exports = uncurryThis([].slice);
}
});
// node_modules/core-js/internals/get-json-replacer-function.js
var require_get_json_replacer_function = __commonJS({
"node_modules/core-js/internals/get-json-replacer-function.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var isArray = require_is_array();
var isCallable = require_is_callable();
var classof = require_classof_raw();
var toString = require_to_string();
var push = uncurryThis([].push);
module.exports = function(replacer) {
if (isCallable(replacer))
return replacer;
if (!isArray(replacer))
return;
var rawLength = replacer.length;
var keys = [];
for (var i4 = 0; i4 < rawLength; i4++) {
var element = replacer[i4];
if (typeof element == "string")
push(keys, element);
else if (typeof element == "number" || classof(element) == "Number" || classof(element) == "String")
push(keys, toString(element));
}
var keysLength = keys.length;
var root = true;
return function(key, value) {
if (root) {
root = false;
return value;
}
if (isArray(this))
return value;
for (var j2 = 0; j2 < keysLength; j2++)
if (keys[j2] === key)
return value;
};
};
}
});
// node_modules/core-js/modules/es.json.stringify.js
var require_es_json_stringify = __commonJS({
"node_modules/core-js/modules/es.json.stringify.js"() {
var $2 = require_export();
var getBuiltIn = require_get_built_in();
var apply = require_function_apply();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var isCallable = require_is_callable();
var isSymbol = require_is_symbol();
var arraySlice = require_array_slice();
var getReplacerFunction = require_get_json_replacer_function();
var NATIVE_SYMBOL = require_symbol_constructor_detection();
var $String = String;
var $stringify = getBuiltIn("JSON", "stringify");
var exec = uncurryThis(/./.exec);
var charAt = uncurryThis("".charAt);
var charCodeAt = uncurryThis("".charCodeAt);
var replace = uncurryThis("".replace);
var numberToString = uncurryThis(1 .toString);
var tester = /[\uD800-\uDFFF]/g;
var low = /^[\uD800-\uDBFF]$/;
var hi = /^[\uDC00-\uDFFF]$/;
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function() {
var symbol = getBuiltIn("Symbol")();
return $stringify([symbol]) != "[null]" || $stringify({ a: symbol }) != "{}" || $stringify(Object(symbol)) != "{}";
});
var ILL_FORMED_UNICODE = fails(function() {
return $stringify("\uDF06\uD834") !== '"\\udf06\\ud834"' || $stringify("\uDEAD") !== '"\\udead"';
});
var stringifyWithSymbolsFix = function(it, replacer) {
var args = arraySlice(arguments);
var $replacer = getReplacerFunction(replacer);
if (!isCallable($replacer) && (it === void 0 || isSymbol(it)))
return;
args[1] = function(key, value) {
if (isCallable($replacer))
value = call($replacer, this, $String(key), value);
if (!isSymbol(value))
return value;
};
return apply($stringify, null, args);
};
var fixIllFormed = function(match, offset, string) {
var prev = charAt(string, offset - 1);
var next = charAt(string, offset + 1);
if (exec(low, match) && !exec(hi, next) || exec(hi, match) && !exec(low, prev)) {
return "\\u" + numberToString(charCodeAt(match, 0), 16);
}
return match;
};
if ($stringify) {
$2({ target: "JSON", stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
stringify: function stringify(it, replacer, space) {
var args = arraySlice(arguments);
var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
return ILL_FORMED_UNICODE && typeof result == "string" ? replace(result, tester, fixIllFormed) : result;
}
});
}
}
});
// node_modules/core-js/modules/es.object.get-own-property-symbols.js
var require_es_object_get_own_property_symbols = __commonJS({
"node_modules/core-js/modules/es.object.get-own-property-symbols.js"() {
var $2 = require_export();
var NATIVE_SYMBOL = require_symbol_constructor_detection();
var fails = require_fails();
var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
var toObject = require_to_object();
var FORCED = !NATIVE_SYMBOL || fails(function() {
getOwnPropertySymbolsModule.f(1);
});
$2({ target: "Object", stat: true, forced: FORCED }, {
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : [];
}
});
}
});
// node_modules/core-js/modules/es.symbol.js
var require_es_symbol = __commonJS({
"node_modules/core-js/modules/es.symbol.js"() {
require_es_symbol_constructor();
require_es_symbol_for();
require_es_symbol_key_for();
require_es_json_stringify();
require_es_object_get_own_property_symbols();
}
});
// node_modules/core-js/modules/es.symbol.description.js
var require_es_symbol_description = __commonJS({
"node_modules/core-js/modules/es.symbol.description.js"() {
"use strict";
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var hasOwn = require_has_own_property();
var isCallable = require_is_callable();
var isPrototypeOf = require_object_is_prototype_of();
var toString = require_to_string();
var defineBuiltInAccessor = require_define_built_in_accessor();
var copyConstructorProperties = require_copy_constructor_properties();
var NativeSymbol = global2.Symbol;
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
if (DESCRIPTORS && isCallable(NativeSymbol) && (!("description" in SymbolPrototype) || // Safari 12 bug
NativeSymbol().description !== void 0)) {
EmptyStringDescriptionStore = {};
SymbolWrapper = function Symbol2() {
var description = arguments.length < 1 || arguments[0] === void 0 ? void 0 : toString(arguments[0]);
var result = isPrototypeOf(SymbolPrototype, this) ? new NativeSymbol(description) : description === void 0 ? NativeSymbol() : NativeSymbol(description);
if (description === "")
EmptyStringDescriptionStore[result] = true;
return result;
};
copyConstructorProperties(SymbolWrapper, NativeSymbol);
SymbolWrapper.prototype = SymbolPrototype;
SymbolPrototype.constructor = SymbolWrapper;
NATIVE_SYMBOL = String(NativeSymbol("test")) == "Symbol(test)";
thisSymbolValue = uncurryThis(SymbolPrototype.valueOf);
symbolDescriptiveString = uncurryThis(SymbolPrototype.toString);
regexp = /^Symbol\((.*)\)[^)]+$/;
replace = uncurryThis("".replace);
stringSlice = uncurryThis("".slice);
defineBuiltInAccessor(SymbolPrototype, "description", {
configurable: true,
get: function description() {
var symbol = thisSymbolValue(this);
if (hasOwn(EmptyStringDescriptionStore, symbol))
return "";
var string = symbolDescriptiveString(symbol);
var desc = NATIVE_SYMBOL ? stringSlice(string, 7, -1) : replace(string, regexp, "$1");
return desc === "" ? void 0 : desc;
}
});
$2({ global: true, constructor: true, forced: true }, {
Symbol: SymbolWrapper
});
}
var EmptyStringDescriptionStore;
var SymbolWrapper;
var NATIVE_SYMBOL;
var thisSymbolValue;
var symbolDescriptiveString;
var regexp;
var replace;
var stringSlice;
}
});
// node_modules/core-js/modules/es.symbol.async-iterator.js
var require_es_symbol_async_iterator = __commonJS({
"node_modules/core-js/modules/es.symbol.async-iterator.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("asyncIterator");
}
});
// node_modules/core-js/modules/es.symbol.has-instance.js
var require_es_symbol_has_instance = __commonJS({
"node_modules/core-js/modules/es.symbol.has-instance.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("hasInstance");
}
});
// node_modules/core-js/modules/es.symbol.is-concat-spreadable.js
var require_es_symbol_is_concat_spreadable = __commonJS({
"node_modules/core-js/modules/es.symbol.is-concat-spreadable.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("isConcatSpreadable");
}
});
// node_modules/core-js/modules/es.symbol.iterator.js
var require_es_symbol_iterator = __commonJS({
"node_modules/core-js/modules/es.symbol.iterator.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("iterator");
}
});
// node_modules/core-js/modules/es.symbol.match.js
var require_es_symbol_match = __commonJS({
"node_modules/core-js/modules/es.symbol.match.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("match");
}
});
// node_modules/core-js/modules/es.symbol.match-all.js
var require_es_symbol_match_all = __commonJS({
"node_modules/core-js/modules/es.symbol.match-all.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("matchAll");
}
});
// node_modules/core-js/modules/es.symbol.replace.js
var require_es_symbol_replace = __commonJS({
"node_modules/core-js/modules/es.symbol.replace.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("replace");
}
});
// node_modules/core-js/modules/es.symbol.search.js
var require_es_symbol_search = __commonJS({
"node_modules/core-js/modules/es.symbol.search.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("search");
}
});
// node_modules/core-js/modules/es.symbol.species.js
var require_es_symbol_species = __commonJS({
"node_modules/core-js/modules/es.symbol.species.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("species");
}
});
// node_modules/core-js/modules/es.symbol.split.js
var require_es_symbol_split = __commonJS({
"node_modules/core-js/modules/es.symbol.split.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("split");
}
});
// node_modules/core-js/modules/es.symbol.to-primitive.js
var require_es_symbol_to_primitive = __commonJS({
"node_modules/core-js/modules/es.symbol.to-primitive.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
var defineSymbolToPrimitive = require_symbol_define_to_primitive();
defineWellKnownSymbol("toPrimitive");
defineSymbolToPrimitive();
}
});
// node_modules/core-js/modules/es.symbol.to-string-tag.js
var require_es_symbol_to_string_tag = __commonJS({
"node_modules/core-js/modules/es.symbol.to-string-tag.js"() {
var getBuiltIn = require_get_built_in();
var defineWellKnownSymbol = require_well_known_symbol_define();
var setToStringTag = require_set_to_string_tag();
defineWellKnownSymbol("toStringTag");
setToStringTag(getBuiltIn("Symbol"), "Symbol");
}
});
// node_modules/core-js/modules/es.symbol.unscopables.js
var require_es_symbol_unscopables = __commonJS({
"node_modules/core-js/modules/es.symbol.unscopables.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("unscopables");
}
});
// node_modules/core-js/internals/function-uncurry-this-accessor.js
var require_function_uncurry_this_accessor = __commonJS({
"node_modules/core-js/internals/function-uncurry-this-accessor.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var aCallable = require_a_callable();
module.exports = function(object, key, method) {
try {
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
} catch (error) {
}
};
}
});
// node_modules/core-js/internals/a-possible-prototype.js
var require_a_possible_prototype = __commonJS({
"node_modules/core-js/internals/a-possible-prototype.js"(exports, module) {
var isCallable = require_is_callable();
var $String = String;
var $TypeError = TypeError;
module.exports = function(argument) {
if (typeof argument == "object" || isCallable(argument))
return argument;
throw $TypeError("Can't set " + $String(argument) + " as a prototype");
};
}
});
// node_modules/core-js/internals/object-set-prototype-of.js
var require_object_set_prototype_of = __commonJS({
"node_modules/core-js/internals/object-set-prototype-of.js"(exports, module) {
var uncurryThisAccessor = require_function_uncurry_this_accessor();
var anObject = require_an_object();
var aPossiblePrototype = require_a_possible_prototype();
module.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
var CORRECT_SETTER = false;
var test = {};
var setter;
try {
setter = uncurryThisAccessor(Object.prototype, "__proto__", "set");
setter(test, []);
CORRECT_SETTER = test instanceof Array;
} catch (error) {
}
return function setPrototypeOf(O, proto) {
anObject(O);
aPossiblePrototype(proto);
if (CORRECT_SETTER)
setter(O, proto);
else
O.__proto__ = proto;
return O;
};
}() : void 0);
}
});
// node_modules/core-js/internals/proxy-accessor.js
var require_proxy_accessor = __commonJS({
"node_modules/core-js/internals/proxy-accessor.js"(exports, module) {
var defineProperty = require_object_define_property().f;
module.exports = function(Target, Source, key) {
key in Target || defineProperty(Target, key, {
configurable: true,
get: function() {
return Source[key];
},
set: function(it) {
Source[key] = it;
}
});
};
}
});
// node_modules/core-js/internals/inherit-if-required.js
var require_inherit_if_required = __commonJS({
"node_modules/core-js/internals/inherit-if-required.js"(exports, module) {
var isCallable = require_is_callable();
var isObject = require_is_object();
var setPrototypeOf = require_object_set_prototype_of();
module.exports = function($this, dummy, Wrapper) {
var NewTarget, NewTargetPrototype;
if (
// it can work only with native `setPrototypeOf`
setPrototypeOf && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
isCallable(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype
)
setPrototypeOf($this, NewTargetPrototype);
return $this;
};
}
});
// node_modules/core-js/internals/normalize-string-argument.js
var require_normalize_string_argument = __commonJS({
"node_modules/core-js/internals/normalize-string-argument.js"(exports, module) {
var toString = require_to_string();
module.exports = function(argument, $default) {
return argument === void 0 ? arguments.length < 2 ? "" : $default : toString(argument);
};
}
});
// node_modules/core-js/internals/install-error-cause.js
var require_install_error_cause = __commonJS({
"node_modules/core-js/internals/install-error-cause.js"(exports, module) {
var isObject = require_is_object();
var createNonEnumerableProperty = require_create_non_enumerable_property();
module.exports = function(O, options) {
if (isObject(options) && "cause" in options) {
createNonEnumerableProperty(O, "cause", options.cause);
}
};
}
});
// node_modules/core-js/internals/error-stack-clear.js
var require_error_stack_clear = __commonJS({
"node_modules/core-js/internals/error-stack-clear.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var $Error = Error;
var replace = uncurryThis("".replace);
var TEST = function(arg) {
return String($Error(arg).stack);
}("zxcasd");
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
module.exports = function(stack, dropEntries) {
if (IS_V8_OR_CHAKRA_STACK && typeof stack == "string" && !$Error.prepareStackTrace) {
while (dropEntries--)
stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, "");
}
return stack;
};
}
});
// node_modules/core-js/internals/error-stack-installable.js
var require_error_stack_installable = __commonJS({
"node_modules/core-js/internals/error-stack-installable.js"(exports, module) {
var fails = require_fails();
var createPropertyDescriptor = require_create_property_descriptor();
module.exports = !fails(function() {
var error = Error("a");
if (!("stack" in error))
return true;
Object.defineProperty(error, "stack", createPropertyDescriptor(1, 7));
return error.stack !== 7;
});
}
});
// node_modules/core-js/internals/error-stack-install.js
var require_error_stack_install = __commonJS({
"node_modules/core-js/internals/error-stack-install.js"(exports, module) {
var createNonEnumerableProperty = require_create_non_enumerable_property();
var clearErrorStack = require_error_stack_clear();
var ERROR_STACK_INSTALLABLE = require_error_stack_installable();
var captureStackTrace = Error.captureStackTrace;
module.exports = function(error, C2, stack, dropEntries) {
if (ERROR_STACK_INSTALLABLE) {
if (captureStackTrace)
captureStackTrace(error, C2);
else
createNonEnumerableProperty(error, "stack", clearErrorStack(stack, dropEntries));
}
};
}
});
// node_modules/core-js/internals/wrap-error-constructor-with-cause.js
var require_wrap_error_constructor_with_cause = __commonJS({
"node_modules/core-js/internals/wrap-error-constructor-with-cause.js"(exports, module) {
"use strict";
var getBuiltIn = require_get_built_in();
var hasOwn = require_has_own_property();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var isPrototypeOf = require_object_is_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var copyConstructorProperties = require_copy_constructor_properties();
var proxyAccessor = require_proxy_accessor();
var inheritIfRequired = require_inherit_if_required();
var normalizeStringArgument = require_normalize_string_argument();
var installErrorCause = require_install_error_cause();
var installErrorStack = require_error_stack_install();
var DESCRIPTORS = require_descriptors();
var IS_PURE = require_is_pure();
module.exports = function(FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
var STACK_TRACE_LIMIT = "stackTraceLimit";
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
var path = FULL_NAME.split(".");
var ERROR_NAME = path[path.length - 1];
var OriginalError = getBuiltIn.apply(null, path);
if (!OriginalError)
return;
var OriginalErrorPrototype = OriginalError.prototype;
if (!IS_PURE && hasOwn(OriginalErrorPrototype, "cause"))
delete OriginalErrorPrototype.cause;
if (!FORCED)
return OriginalError;
var BaseError = getBuiltIn("Error");
var WrappedError = wrapper(function(a3, b2) {
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b2 : a3, void 0);
var result = IS_AGGREGATE_ERROR ? new OriginalError(a3) : new OriginalError();
if (message !== void 0)
createNonEnumerableProperty(result, "message", message);
installErrorStack(result, WrappedError, result.stack, 2);
if (this && isPrototypeOf(OriginalErrorPrototype, this))
inheritIfRequired(result, this, WrappedError);
if (arguments.length > OPTIONS_POSITION)
installErrorCause(result, arguments[OPTIONS_POSITION]);
return result;
});
WrappedError.prototype = OriginalErrorPrototype;
if (ERROR_NAME !== "Error") {
if (setPrototypeOf)
setPrototypeOf(WrappedError, BaseError);
else
copyConstructorProperties(WrappedError, BaseError, { name: true });
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
proxyAccessor(WrappedError, OriginalError, "prepareStackTrace");
}
copyConstructorProperties(WrappedError, OriginalError);
if (!IS_PURE)
try {
if (OriginalErrorPrototype.name !== ERROR_NAME) {
createNonEnumerableProperty(OriginalErrorPrototype, "name", ERROR_NAME);
}
OriginalErrorPrototype.constructor = WrappedError;
} catch (error) {
}
return WrappedError;
};
}
});
// node_modules/core-js/modules/es.error.cause.js
var require_es_error_cause = __commonJS({
"node_modules/core-js/modules/es.error.cause.js"() {
var $2 = require_export();
var global2 = require_global();
var apply = require_function_apply();
var wrapErrorConstructorWithCause = require_wrap_error_constructor_with_cause();
var WEB_ASSEMBLY = "WebAssembly";
var WebAssembly = global2[WEB_ASSEMBLY];
var FORCED = Error("e", { cause: 7 }).cause !== 7;
var exportGlobalErrorCauseWrapper = function(ERROR_NAME, wrapper) {
var O = {};
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
$2({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
};
var exportWebAssemblyErrorCauseWrapper = function(ERROR_NAME, wrapper) {
if (WebAssembly && WebAssembly[ERROR_NAME]) {
var O = {};
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + "." + ERROR_NAME, wrapper, FORCED);
$2({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
}
};
exportGlobalErrorCauseWrapper("Error", function(init) {
return function Error2(message) {
return apply(init, this, arguments);
};
});
exportGlobalErrorCauseWrapper("EvalError", function(init) {
return function EvalError(message) {
return apply(init, this, arguments);
};
});
exportGlobalErrorCauseWrapper("RangeError", function(init) {
return function RangeError2(message) {
return apply(init, this, arguments);
};
});
exportGlobalErrorCauseWrapper("ReferenceError", function(init) {
return function ReferenceError2(message) {
return apply(init, this, arguments);
};
});
exportGlobalErrorCauseWrapper("SyntaxError", function(init) {
return function SyntaxError2(message) {
return apply(init, this, arguments);
};
});
exportGlobalErrorCauseWrapper("TypeError", function(init) {
return function TypeError2(message) {
return apply(init, this, arguments);
};
});
exportGlobalErrorCauseWrapper("URIError", function(init) {
return function URIError(message) {
return apply(init, this, arguments);
};
});
exportWebAssemblyErrorCauseWrapper("CompileError", function(init) {
return function CompileError(message) {
return apply(init, this, arguments);
};
});
exportWebAssemblyErrorCauseWrapper("LinkError", function(init) {
return function LinkError(message) {
return apply(init, this, arguments);
};
});
exportWebAssemblyErrorCauseWrapper("RuntimeError", function(init) {
return function RuntimeError(message) {
return apply(init, this, arguments);
};
});
}
});
// node_modules/core-js/internals/error-to-string.js
var require_error_to_string = __commonJS({
"node_modules/core-js/internals/error-to-string.js"(exports, module) {
"use strict";
var DESCRIPTORS = require_descriptors();
var fails = require_fails();
var anObject = require_an_object();
var create = require_object_create();
var normalizeStringArgument = require_normalize_string_argument();
var nativeErrorToString = Error.prototype.toString;
var INCORRECT_TO_STRING = fails(function() {
if (DESCRIPTORS) {
var object = create(Object.defineProperty({}, "name", { get: function() {
return this === object;
} }));
if (nativeErrorToString.call(object) !== "true")
return true;
}
return nativeErrorToString.call({ message: 1, name: 2 }) !== "2: 1" || nativeErrorToString.call({}) !== "Error";
});
module.exports = INCORRECT_TO_STRING ? function toString() {
var O = anObject(this);
var name = normalizeStringArgument(O.name, "Error");
var message = normalizeStringArgument(O.message);
return !name ? message : !message ? name : name + ": " + message;
} : nativeErrorToString;
}
});
// node_modules/core-js/modules/es.error.to-string.js
var require_es_error_to_string = __commonJS({
"node_modules/core-js/modules/es.error.to-string.js"() {
var defineBuiltIn = require_define_built_in();
var errorToString = require_error_to_string();
var ErrorPrototype = Error.prototype;
if (ErrorPrototype.toString !== errorToString) {
defineBuiltIn(ErrorPrototype, "toString", errorToString);
}
}
});
// node_modules/core-js/internals/correct-prototype-getter.js
var require_correct_prototype_getter = __commonJS({
"node_modules/core-js/internals/correct-prototype-getter.js"(exports, module) {
var fails = require_fails();
module.exports = !fails(function() {
function F() {
}
F.prototype.constructor = null;
return Object.getPrototypeOf(new F()) !== F.prototype;
});
}
});
// node_modules/core-js/internals/object-get-prototype-of.js
var require_object_get_prototype_of = __commonJS({
"node_modules/core-js/internals/object-get-prototype-of.js"(exports, module) {
var hasOwn = require_has_own_property();
var isCallable = require_is_callable();
var toObject = require_to_object();
var sharedKey = require_shared_key();
var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter();
var IE_PROTO = sharedKey("IE_PROTO");
var $Object = Object;
var ObjectPrototype = $Object.prototype;
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function(O) {
var object = toObject(O);
if (hasOwn(object, IE_PROTO))
return object[IE_PROTO];
var constructor = object.constructor;
if (isCallable(constructor) && object instanceof constructor) {
return constructor.prototype;
}
return object instanceof $Object ? ObjectPrototype : null;
};
}
});
// node_modules/core-js/internals/iterators.js
var require_iterators = __commonJS({
"node_modules/core-js/internals/iterators.js"(exports, module) {
module.exports = {};
}
});
// node_modules/core-js/internals/is-array-iterator-method.js
var require_is_array_iterator_method = __commonJS({
"node_modules/core-js/internals/is-array-iterator-method.js"(exports, module) {
var wellKnownSymbol = require_well_known_symbol();
var Iterators = require_iterators();
var ITERATOR = wellKnownSymbol("iterator");
var ArrayPrototype = Array.prototype;
module.exports = function(it) {
return it !== void 0 && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
};
}
});
// node_modules/core-js/internals/get-iterator-method.js
var require_get_iterator_method = __commonJS({
"node_modules/core-js/internals/get-iterator-method.js"(exports, module) {
var classof = require_classof();
var getMethod = require_get_method();
var isNullOrUndefined = require_is_null_or_undefined();
var Iterators = require_iterators();
var wellKnownSymbol = require_well_known_symbol();
var ITERATOR = wellKnownSymbol("iterator");
module.exports = function(it) {
if (!isNullOrUndefined(it))
return getMethod(it, ITERATOR) || getMethod(it, "@@iterator") || Iterators[classof(it)];
};
}
});
// node_modules/core-js/internals/get-iterator.js
var require_get_iterator = __commonJS({
"node_modules/core-js/internals/get-iterator.js"(exports, module) {
var call = require_function_call();
var aCallable = require_a_callable();
var anObject = require_an_object();
var tryToString = require_try_to_string();
var getIteratorMethod = require_get_iterator_method();
var $TypeError = TypeError;
module.exports = function(argument, usingIterator) {
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
if (aCallable(iteratorMethod))
return anObject(call(iteratorMethod, argument));
throw $TypeError(tryToString(argument) + " is not iterable");
};
}
});
// node_modules/core-js/internals/iterator-close.js
var require_iterator_close = __commonJS({
"node_modules/core-js/internals/iterator-close.js"(exports, module) {
var call = require_function_call();
var anObject = require_an_object();
var getMethod = require_get_method();
module.exports = function(iterator, kind, value) {
var innerResult, innerError;
anObject(iterator);
try {
innerResult = getMethod(iterator, "return");
if (!innerResult) {
if (kind === "throw")
throw value;
return value;
}
innerResult = call(innerResult, iterator);
} catch (error) {
innerError = true;
innerResult = error;
}
if (kind === "throw")
throw value;
if (innerError)
throw innerResult;
anObject(innerResult);
return value;
};
}
});
// node_modules/core-js/internals/iterate.js
var require_iterate = __commonJS({
"node_modules/core-js/internals/iterate.js"(exports, module) {
var bind = require_function_bind_context();
var call = require_function_call();
var anObject = require_an_object();
var tryToString = require_try_to_string();
var isArrayIteratorMethod = require_is_array_iterator_method();
var lengthOfArrayLike = require_length_of_array_like();
var isPrototypeOf = require_object_is_prototype_of();
var getIterator = require_get_iterator();
var getIteratorMethod = require_get_iterator_method();
var iteratorClose = require_iterator_close();
var $TypeError = TypeError;
var Result = function(stopped, result) {
this.stopped = stopped;
this.result = result;
};
var ResultPrototype = Result.prototype;
module.exports = function(iterable, unboundFunction, options) {
var that = options && options.that;
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
var IS_RECORD = !!(options && options.IS_RECORD);
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
var INTERRUPTED = !!(options && options.INTERRUPTED);
var fn = bind(unboundFunction, that);
var iterator, iterFn, index, length, result, next, step;
var stop = function(condition) {
if (iterator)
iteratorClose(iterator, "normal", condition);
return new Result(true, condition);
};
var callFn = function(value) {
if (AS_ENTRIES) {
anObject(value);
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
}
return INTERRUPTED ? fn(value, stop) : fn(value);
};
if (IS_RECORD) {
iterator = iterable.iterator;
} else if (IS_ITERATOR) {
iterator = iterable;
} else {
iterFn = getIteratorMethod(iterable);
if (!iterFn)
throw $TypeError(tryToString(iterable) + " is not iterable");
if (isArrayIteratorMethod(iterFn)) {
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
result = callFn(iterable[index]);
if (result && isPrototypeOf(ResultPrototype, result))
return result;
}
return new Result(false);
}
iterator = getIterator(iterable, iterFn);
}
next = IS_RECORD ? iterable.next : iterator.next;
while (!(step = call(next, iterator)).done) {
try {
result = callFn(step.value);
} catch (error) {
iteratorClose(iterator, "throw", error);
}
if (typeof result == "object" && result && isPrototypeOf(ResultPrototype, result))
return result;
}
return new Result(false);
};
}
});
// node_modules/core-js/modules/es.aggregate-error.constructor.js
var require_es_aggregate_error_constructor = __commonJS({
"node_modules/core-js/modules/es.aggregate-error.constructor.js"() {
"use strict";
var $2 = require_export();
var isPrototypeOf = require_object_is_prototype_of();
var getPrototypeOf = require_object_get_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var copyConstructorProperties = require_copy_constructor_properties();
var create = require_object_create();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var createPropertyDescriptor = require_create_property_descriptor();
var installErrorCause = require_install_error_cause();
var installErrorStack = require_error_stack_install();
var iterate = require_iterate();
var normalizeStringArgument = require_normalize_string_argument();
var wellKnownSymbol = require_well_known_symbol();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var $Error = Error;
var push = [].push;
var $AggregateError = function AggregateError(errors, message) {
var isInstance = isPrototypeOf(AggregateErrorPrototype, this);
var that;
if (setPrototypeOf) {
that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);
} else {
that = isInstance ? this : create(AggregateErrorPrototype);
createNonEnumerableProperty(that, TO_STRING_TAG, "Error");
}
if (message !== void 0)
createNonEnumerableProperty(that, "message", normalizeStringArgument(message));
installErrorStack(that, $AggregateError, that.stack, 1);
if (arguments.length > 2)
installErrorCause(that, arguments[2]);
var errorsArray = [];
iterate(errors, push, { that: errorsArray });
createNonEnumerableProperty(that, "errors", errorsArray);
return that;
};
if (setPrototypeOf)
setPrototypeOf($AggregateError, $Error);
else
copyConstructorProperties($AggregateError, $Error, { name: true });
var AggregateErrorPrototype = $AggregateError.prototype = create($Error.prototype, {
constructor: createPropertyDescriptor(1, $AggregateError),
message: createPropertyDescriptor(1, ""),
name: createPropertyDescriptor(1, "AggregateError")
});
$2({ global: true, constructor: true, arity: 2 }, {
AggregateError: $AggregateError
});
}
});
// node_modules/core-js/modules/es.aggregate-error.js
var require_es_aggregate_error = __commonJS({
"node_modules/core-js/modules/es.aggregate-error.js"() {
require_es_aggregate_error_constructor();
}
});
// node_modules/core-js/modules/es.aggregate-error.cause.js
var require_es_aggregate_error_cause = __commonJS({
"node_modules/core-js/modules/es.aggregate-error.cause.js"() {
var $2 = require_export();
var getBuiltIn = require_get_built_in();
var apply = require_function_apply();
var fails = require_fails();
var wrapErrorConstructorWithCause = require_wrap_error_constructor_with_cause();
var AGGREGATE_ERROR = "AggregateError";
var $AggregateError = getBuiltIn(AGGREGATE_ERROR);
var FORCED = !fails(function() {
return $AggregateError([1]).errors[0] !== 1;
}) && fails(function() {
return $AggregateError([1], AGGREGATE_ERROR, { cause: 7 }).cause !== 7;
});
$2({ global: true, constructor: true, arity: 2, forced: FORCED }, {
AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function(init) {
return function AggregateError(errors, message) {
return apply(init, this, arguments);
};
}, FORCED, true)
});
}
});
// node_modules/core-js/internals/add-to-unscopables.js
var require_add_to_unscopables = __commonJS({
"node_modules/core-js/internals/add-to-unscopables.js"(exports, module) {
var wellKnownSymbol = require_well_known_symbol();
var create = require_object_create();
var defineProperty = require_object_define_property().f;
var UNSCOPABLES = wellKnownSymbol("unscopables");
var ArrayPrototype = Array.prototype;
if (ArrayPrototype[UNSCOPABLES] == void 0) {
defineProperty(ArrayPrototype, UNSCOPABLES, {
configurable: true,
value: create(null)
});
}
module.exports = function(key) {
ArrayPrototype[UNSCOPABLES][key] = true;
};
}
});
// node_modules/core-js/modules/es.array.at.js
var require_es_array_at = __commonJS({
"node_modules/core-js/modules/es.array.at.js"() {
"use strict";
var $2 = require_export();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var addToUnscopables = require_add_to_unscopables();
$2({ target: "Array", proto: true }, {
at: function at(index) {
var O = toObject(this);
var len = lengthOfArrayLike(O);
var relativeIndex = toIntegerOrInfinity(index);
var k2 = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return k2 < 0 || k2 >= len ? void 0 : O[k2];
}
});
addToUnscopables("at");
}
});
// node_modules/core-js/internals/does-not-exceed-safe-integer.js
var require_does_not_exceed_safe_integer = __commonJS({
"node_modules/core-js/internals/does-not-exceed-safe-integer.js"(exports, module) {
var $TypeError = TypeError;
var MAX_SAFE_INTEGER = 9007199254740991;
module.exports = function(it) {
if (it > MAX_SAFE_INTEGER)
throw $TypeError("Maximum allowed index exceeded");
return it;
};
}
});
// node_modules/core-js/internals/array-method-has-species-support.js
var require_array_method_has_species_support = __commonJS({
"node_modules/core-js/internals/array-method-has-species-support.js"(exports, module) {
var fails = require_fails();
var wellKnownSymbol = require_well_known_symbol();
var V8_VERSION = require_engine_v8_version();
var SPECIES = wellKnownSymbol("species");
module.exports = function(METHOD_NAME) {
return V8_VERSION >= 51 || !fails(function() {
var array = [];
var constructor = array.constructor = {};
constructor[SPECIES] = function() {
return { foo: 1 };
};
return array[METHOD_NAME](Boolean).foo !== 1;
});
};
}
});
// node_modules/core-js/modules/es.array.concat.js
var require_es_array_concat = __commonJS({
"node_modules/core-js/modules/es.array.concat.js"() {
"use strict";
var $2 = require_export();
var fails = require_fails();
var isArray = require_is_array();
var isObject = require_is_object();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
var createProperty = require_create_property();
var arraySpeciesCreate = require_array_species_create();
var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
var wellKnownSymbol = require_well_known_symbol();
var V8_VERSION = require_engine_v8_version();
var IS_CONCAT_SPREADABLE = wellKnownSymbol("isConcatSpreadable");
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function() {
var array = [];
array[IS_CONCAT_SPREADABLE] = false;
return array.concat()[0] !== array;
});
var isConcatSpreadable = function(O) {
if (!isObject(O))
return false;
var spreadable = O[IS_CONCAT_SPREADABLE];
return spreadable !== void 0 ? !!spreadable : isArray(O);
};
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport("concat");
$2({ target: "Array", proto: true, arity: 1, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
concat: function concat(arg) {
var O = toObject(this);
var A2 = arraySpeciesCreate(O, 0);
var n6 = 0;
var i4, k2, length, len, E2;
for (i4 = -1, length = arguments.length; i4 < length; i4++) {
E2 = i4 === -1 ? O : arguments[i4];
if (isConcatSpreadable(E2)) {
len = lengthOfArrayLike(E2);
doesNotExceedSafeInteger(n6 + len);
for (k2 = 0; k2 < len; k2++, n6++)
if (k2 in E2)
createProperty(A2, n6, E2[k2]);
} else {
doesNotExceedSafeInteger(n6 + 1);
createProperty(A2, n6++, E2);
}
}
A2.length = n6;
return A2;
}
});
}
});
// node_modules/core-js/internals/delete-property-or-throw.js
var require_delete_property_or_throw = __commonJS({
"node_modules/core-js/internals/delete-property-or-throw.js"(exports, module) {
"use strict";
var tryToString = require_try_to_string();
var $TypeError = TypeError;
module.exports = function(O, P2) {
if (!delete O[P2])
throw $TypeError("Cannot delete property " + tryToString(P2) + " of " + tryToString(O));
};
}
});
// node_modules/core-js/internals/array-copy-within.js
var require_array_copy_within = __commonJS({
"node_modules/core-js/internals/array-copy-within.js"(exports, module) {
"use strict";
var toObject = require_to_object();
var toAbsoluteIndex = require_to_absolute_index();
var lengthOfArrayLike = require_length_of_array_like();
var deletePropertyOrThrow = require_delete_property_or_throw();
var min = Math.min;
module.exports = [].copyWithin || function copyWithin(target, start) {
var O = toObject(this);
var len = lengthOfArrayLike(O);
var to = toAbsoluteIndex(target, len);
var from = toAbsoluteIndex(start, len);
var end = arguments.length > 2 ? arguments[2] : void 0;
var count = min((end === void 0 ? len : toAbsoluteIndex(end, len)) - from, len - to);
var inc = 1;
if (from < to && to < from + count) {
inc = -1;
from += count - 1;
to += count - 1;
}
while (count-- > 0) {
if (from in O)
O[to] = O[from];
else
deletePropertyOrThrow(O, to);
to += inc;
from += inc;
}
return O;
};
}
});
// node_modules/core-js/modules/es.array.copy-within.js
var require_es_array_copy_within = __commonJS({
"node_modules/core-js/modules/es.array.copy-within.js"() {
var $2 = require_export();
var copyWithin = require_array_copy_within();
var addToUnscopables = require_add_to_unscopables();
$2({ target: "Array", proto: true }, {
copyWithin
});
addToUnscopables("copyWithin");
}
});
// node_modules/core-js/internals/array-method-is-strict.js
var require_array_method_is_strict = __commonJS({
"node_modules/core-js/internals/array-method-is-strict.js"(exports, module) {
"use strict";
var fails = require_fails();
module.exports = function(METHOD_NAME, argument) {
var method = [][METHOD_NAME];
return !!method && fails(function() {
method.call(null, argument || function() {
return 1;
}, 1);
});
};
}
});
// node_modules/core-js/modules/es.array.every.js
var require_es_array_every = __commonJS({
"node_modules/core-js/modules/es.array.every.js"() {
"use strict";
var $2 = require_export();
var $every = require_array_iteration().every;
var arrayMethodIsStrict = require_array_method_is_strict();
var STRICT_METHOD = arrayMethodIsStrict("every");
$2({ target: "Array", proto: true, forced: !STRICT_METHOD }, {
every: function every(callbackfn) {
return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/internals/array-fill.js
var require_array_fill = __commonJS({
"node_modules/core-js/internals/array-fill.js"(exports, module) {
"use strict";
var toObject = require_to_object();
var toAbsoluteIndex = require_to_absolute_index();
var lengthOfArrayLike = require_length_of_array_like();
module.exports = function fill(value) {
var O = toObject(this);
var length = lengthOfArrayLike(O);
var argumentsLength = arguments.length;
var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : void 0, length);
var end = argumentsLength > 2 ? arguments[2] : void 0;
var endPos = end === void 0 ? length : toAbsoluteIndex(end, length);
while (endPos > index)
O[index++] = value;
return O;
};
}
});
// node_modules/core-js/modules/es.array.fill.js
var require_es_array_fill = __commonJS({
"node_modules/core-js/modules/es.array.fill.js"() {
var $2 = require_export();
var fill = require_array_fill();
var addToUnscopables = require_add_to_unscopables();
$2({ target: "Array", proto: true }, {
fill
});
addToUnscopables("fill");
}
});
// node_modules/core-js/modules/es.array.filter.js
var require_es_array_filter = __commonJS({
"node_modules/core-js/modules/es.array.filter.js"() {
"use strict";
var $2 = require_export();
var $filter = require_array_iteration().filter;
var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("filter");
$2({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
filter: function filter(callbackfn) {
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.array.find.js
var require_es_array_find = __commonJS({
"node_modules/core-js/modules/es.array.find.js"() {
"use strict";
var $2 = require_export();
var $find = require_array_iteration().find;
var addToUnscopables = require_add_to_unscopables();
var FIND = "find";
var SKIPS_HOLES = true;
if (FIND in [])
Array(1)[FIND](function() {
SKIPS_HOLES = false;
});
$2({ target: "Array", proto: true, forced: SKIPS_HOLES }, {
find: function find(callbackfn) {
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
addToUnscopables(FIND);
}
});
// node_modules/core-js/modules/es.array.find-index.js
var require_es_array_find_index = __commonJS({
"node_modules/core-js/modules/es.array.find-index.js"() {
"use strict";
var $2 = require_export();
var $findIndex = require_array_iteration().findIndex;
var addToUnscopables = require_add_to_unscopables();
var FIND_INDEX = "findIndex";
var SKIPS_HOLES = true;
if (FIND_INDEX in [])
Array(1)[FIND_INDEX](function() {
SKIPS_HOLES = false;
});
$2({ target: "Array", proto: true, forced: SKIPS_HOLES }, {
findIndex: function findIndex(callbackfn) {
return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
addToUnscopables(FIND_INDEX);
}
});
// node_modules/core-js/internals/array-iteration-from-last.js
var require_array_iteration_from_last = __commonJS({
"node_modules/core-js/internals/array-iteration-from-last.js"(exports, module) {
var bind = require_function_bind_context();
var IndexedObject = require_indexed_object();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var createMethod = function(TYPE) {
var IS_FIND_LAST_INDEX = TYPE == 1;
return function($this, callbackfn, that) {
var O = toObject($this);
var self2 = IndexedObject(O);
var boundFunction = bind(callbackfn, that);
var index = lengthOfArrayLike(self2);
var value, result;
while (index-- > 0) {
value = self2[index];
result = boundFunction(value, index, O);
if (result)
switch (TYPE) {
case 0:
return value;
case 1:
return index;
}
}
return IS_FIND_LAST_INDEX ? -1 : void 0;
};
};
module.exports = {
// `Array.prototype.findLast` method
// https://github.com/tc39/proposal-array-find-from-last
findLast: createMethod(0),
// `Array.prototype.findLastIndex` method
// https://github.com/tc39/proposal-array-find-from-last
findLastIndex: createMethod(1)
};
}
});
// node_modules/core-js/modules/es.array.find-last.js
var require_es_array_find_last = __commonJS({
"node_modules/core-js/modules/es.array.find-last.js"() {
"use strict";
var $2 = require_export();
var $findLast = require_array_iteration_from_last().findLast;
var addToUnscopables = require_add_to_unscopables();
$2({ target: "Array", proto: true }, {
findLast: function findLast(callbackfn) {
return $findLast(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
addToUnscopables("findLast");
}
});
// node_modules/core-js/modules/es.array.find-last-index.js
var require_es_array_find_last_index = __commonJS({
"node_modules/core-js/modules/es.array.find-last-index.js"() {
"use strict";
var $2 = require_export();
var $findLastIndex = require_array_iteration_from_last().findLastIndex;
var addToUnscopables = require_add_to_unscopables();
$2({ target: "Array", proto: true }, {
findLastIndex: function findLastIndex(callbackfn) {
return $findLastIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
addToUnscopables("findLastIndex");
}
});
// node_modules/core-js/internals/flatten-into-array.js
var require_flatten_into_array = __commonJS({
"node_modules/core-js/internals/flatten-into-array.js"(exports, module) {
"use strict";
var isArray = require_is_array();
var lengthOfArrayLike = require_length_of_array_like();
var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
var bind = require_function_bind_context();
var flattenIntoArray = function(target, original, source, sourceLen, start, depth, mapper, thisArg) {
var targetIndex = start;
var sourceIndex = 0;
var mapFn = mapper ? bind(mapper, thisArg) : false;
var element, elementLen;
while (sourceIndex < sourceLen) {
if (sourceIndex in source) {
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
if (depth > 0 && isArray(element)) {
elementLen = lengthOfArrayLike(element);
targetIndex = flattenIntoArray(target, original, element, elementLen, targetIndex, depth - 1) - 1;
} else {
doesNotExceedSafeInteger(targetIndex + 1);
target[targetIndex] = element;
}
targetIndex++;
}
sourceIndex++;
}
return targetIndex;
};
module.exports = flattenIntoArray;
}
});
// node_modules/core-js/modules/es.array.flat.js
var require_es_array_flat = __commonJS({
"node_modules/core-js/modules/es.array.flat.js"() {
"use strict";
var $2 = require_export();
var flattenIntoArray = require_flatten_into_array();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var arraySpeciesCreate = require_array_species_create();
$2({ target: "Array", proto: true }, {
flat: function flat() {
var depthArg = arguments.length ? arguments[0] : void 0;
var O = toObject(this);
var sourceLen = lengthOfArrayLike(O);
var A2 = arraySpeciesCreate(O, 0);
A2.length = flattenIntoArray(A2, O, O, sourceLen, 0, depthArg === void 0 ? 1 : toIntegerOrInfinity(depthArg));
return A2;
}
});
}
});
// node_modules/core-js/modules/es.array.flat-map.js
var require_es_array_flat_map = __commonJS({
"node_modules/core-js/modules/es.array.flat-map.js"() {
"use strict";
var $2 = require_export();
var flattenIntoArray = require_flatten_into_array();
var aCallable = require_a_callable();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var arraySpeciesCreate = require_array_species_create();
$2({ target: "Array", proto: true }, {
flatMap: function flatMap(callbackfn) {
var O = toObject(this);
var sourceLen = lengthOfArrayLike(O);
var A2;
aCallable(callbackfn);
A2 = arraySpeciesCreate(O, 0);
A2.length = flattenIntoArray(A2, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
return A2;
}
});
}
});
// node_modules/core-js/internals/array-for-each.js
var require_array_for_each = __commonJS({
"node_modules/core-js/internals/array-for-each.js"(exports, module) {
"use strict";
var $forEach = require_array_iteration().forEach;
var arrayMethodIsStrict = require_array_method_is_strict();
var STRICT_METHOD = arrayMethodIsStrict("forEach");
module.exports = !STRICT_METHOD ? function forEach(callbackfn) {
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
} : [].forEach;
}
});
// node_modules/core-js/modules/es.array.for-each.js
var require_es_array_for_each = __commonJS({
"node_modules/core-js/modules/es.array.for-each.js"() {
"use strict";
var $2 = require_export();
var forEach = require_array_for_each();
$2({ target: "Array", proto: true, forced: [].forEach != forEach }, {
forEach
});
}
});
// node_modules/core-js/internals/call-with-safe-iteration-closing.js
var require_call_with_safe_iteration_closing = __commonJS({
"node_modules/core-js/internals/call-with-safe-iteration-closing.js"(exports, module) {
var anObject = require_an_object();
var iteratorClose = require_iterator_close();
module.exports = function(iterator, fn, value, ENTRIES) {
try {
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
} catch (error) {
iteratorClose(iterator, "throw", error);
}
};
}
});
// node_modules/core-js/internals/array-from.js
var require_array_from = __commonJS({
"node_modules/core-js/internals/array-from.js"(exports, module) {
"use strict";
var bind = require_function_bind_context();
var call = require_function_call();
var toObject = require_to_object();
var callWithSafeIterationClosing = require_call_with_safe_iteration_closing();
var isArrayIteratorMethod = require_is_array_iterator_method();
var isConstructor = require_is_constructor();
var lengthOfArrayLike = require_length_of_array_like();
var createProperty = require_create_property();
var getIterator = require_get_iterator();
var getIteratorMethod = require_get_iterator_method();
var $Array = Array;
module.exports = function from(arrayLike) {
var O = toObject(arrayLike);
var IS_CONSTRUCTOR = isConstructor(this);
var argumentsLength = arguments.length;
var mapfn = argumentsLength > 1 ? arguments[1] : void 0;
var mapping = mapfn !== void 0;
if (mapping)
mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0);
var iteratorMethod = getIteratorMethod(O);
var index = 0;
var length, result, step, iterator, next, value;
if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
iterator = getIterator(O, iteratorMethod);
next = iterator.next;
result = IS_CONSTRUCTOR ? new this() : [];
for (; !(step = call(next, iterator)).done; index++) {
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
createProperty(result, index, value);
}
} else {
length = lengthOfArrayLike(O);
result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
for (; length > index; index++) {
value = mapping ? mapfn(O[index], index) : O[index];
createProperty(result, index, value);
}
}
result.length = index;
return result;
};
}
});
// node_modules/core-js/internals/check-correctness-of-iteration.js
var require_check_correctness_of_iteration = __commonJS({
"node_modules/core-js/internals/check-correctness-of-iteration.js"(exports, module) {
var wellKnownSymbol = require_well_known_symbol();
var ITERATOR = wellKnownSymbol("iterator");
var SAFE_CLOSING = false;
try {
called = 0;
iteratorWithReturn = {
next: function() {
return { done: !!called++ };
},
"return": function() {
SAFE_CLOSING = true;
}
};
iteratorWithReturn[ITERATOR] = function() {
return this;
};
Array.from(iteratorWithReturn, function() {
throw 2;
});
} catch (error) {
}
var called;
var iteratorWithReturn;
module.exports = function(exec, SKIP_CLOSING) {
if (!SKIP_CLOSING && !SAFE_CLOSING)
return false;
var ITERATION_SUPPORT = false;
try {
var object = {};
object[ITERATOR] = function() {
return {
next: function() {
return { done: ITERATION_SUPPORT = true };
}
};
};
exec(object);
} catch (error) {
}
return ITERATION_SUPPORT;
};
}
});
// node_modules/core-js/modules/es.array.from.js
var require_es_array_from = __commonJS({
"node_modules/core-js/modules/es.array.from.js"() {
var $2 = require_export();
var from = require_array_from();
var checkCorrectnessOfIteration = require_check_correctness_of_iteration();
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function(iterable) {
Array.from(iterable);
});
$2({ target: "Array", stat: true, forced: INCORRECT_ITERATION }, {
from
});
}
});
// node_modules/core-js/modules/es.array.includes.js
var require_es_array_includes = __commonJS({
"node_modules/core-js/modules/es.array.includes.js"() {
"use strict";
var $2 = require_export();
var $includes = require_array_includes().includes;
var fails = require_fails();
var addToUnscopables = require_add_to_unscopables();
var BROKEN_ON_SPARSE = fails(function() {
return !Array(1).includes();
});
$2({ target: "Array", proto: true, forced: BROKEN_ON_SPARSE }, {
includes: function includes(el) {
return $includes(this, el, arguments.length > 1 ? arguments[1] : void 0);
}
});
addToUnscopables("includes");
}
});
// node_modules/core-js/modules/es.array.index-of.js
var require_es_array_index_of = __commonJS({
"node_modules/core-js/modules/es.array.index-of.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this_clause();
var $indexOf = require_array_includes().indexOf;
var arrayMethodIsStrict = require_array_method_is_strict();
var nativeIndexOf = uncurryThis([].indexOf);
var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
var FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict("indexOf");
$2({ target: "Array", proto: true, forced: FORCED }, {
indexOf: function indexOf(searchElement) {
var fromIndex = arguments.length > 1 ? arguments[1] : void 0;
return NEGATIVE_ZERO ? nativeIndexOf(this, searchElement, fromIndex) || 0 : $indexOf(this, searchElement, fromIndex);
}
});
}
});
// node_modules/core-js/modules/es.array.is-array.js
var require_es_array_is_array = __commonJS({
"node_modules/core-js/modules/es.array.is-array.js"() {
var $2 = require_export();
var isArray = require_is_array();
$2({ target: "Array", stat: true }, {
isArray
});
}
});
// node_modules/core-js/internals/iterators-core.js
var require_iterators_core = __commonJS({
"node_modules/core-js/internals/iterators-core.js"(exports, module) {
"use strict";
var fails = require_fails();
var isCallable = require_is_callable();
var isObject = require_is_object();
var create = require_object_create();
var getPrototypeOf = require_object_get_prototype_of();
var defineBuiltIn = require_define_built_in();
var wellKnownSymbol = require_well_known_symbol();
var IS_PURE = require_is_pure();
var ITERATOR = wellKnownSymbol("iterator");
var BUGGY_SAFARI_ITERATORS = false;
var IteratorPrototype;
var PrototypeOfArrayIteratorPrototype;
var arrayIterator;
if ([].keys) {
arrayIterator = [].keys();
if (!("next" in arrayIterator))
BUGGY_SAFARI_ITERATORS = true;
else {
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
IteratorPrototype = PrototypeOfArrayIteratorPrototype;
}
}
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function() {
var test = {};
return IteratorPrototype[ITERATOR].call(test) !== test;
});
if (NEW_ITERATOR_PROTOTYPE)
IteratorPrototype = {};
else if (IS_PURE)
IteratorPrototype = create(IteratorPrototype);
if (!isCallable(IteratorPrototype[ITERATOR])) {
defineBuiltIn(IteratorPrototype, ITERATOR, function() {
return this;
});
}
module.exports = {
IteratorPrototype,
BUGGY_SAFARI_ITERATORS
};
}
});
// node_modules/core-js/internals/iterator-create-constructor.js
var require_iterator_create_constructor = __commonJS({
"node_modules/core-js/internals/iterator-create-constructor.js"(exports, module) {
"use strict";
var IteratorPrototype = require_iterators_core().IteratorPrototype;
var create = require_object_create();
var createPropertyDescriptor = require_create_property_descriptor();
var setToStringTag = require_set_to_string_tag();
var Iterators = require_iterators();
var returnThis = function() {
return this;
};
module.exports = function(IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
var TO_STRING_TAG = NAME + " Iterator";
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
Iterators[TO_STRING_TAG] = returnThis;
return IteratorConstructor;
};
}
});
// node_modules/core-js/internals/iterator-define.js
var require_iterator_define = __commonJS({
"node_modules/core-js/internals/iterator-define.js"(exports, module) {
"use strict";
var $2 = require_export();
var call = require_function_call();
var IS_PURE = require_is_pure();
var FunctionName = require_function_name();
var isCallable = require_is_callable();
var createIteratorConstructor = require_iterator_create_constructor();
var getPrototypeOf = require_object_get_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var setToStringTag = require_set_to_string_tag();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var defineBuiltIn = require_define_built_in();
var wellKnownSymbol = require_well_known_symbol();
var Iterators = require_iterators();
var IteratorsCore = require_iterators_core();
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
var IteratorPrototype = IteratorsCore.IteratorPrototype;
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
var ITERATOR = wellKnownSymbol("iterator");
var KEYS = "keys";
var VALUES = "values";
var ENTRIES = "entries";
var returnThis = function() {
return this;
};
module.exports = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
createIteratorConstructor(IteratorConstructor, NAME, next);
var getIterationMethod = function(KIND) {
if (KIND === DEFAULT && defaultIterator)
return defaultIterator;
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype)
return IterablePrototype[KIND];
switch (KIND) {
case KEYS:
return function keys() {
return new IteratorConstructor(this, KIND);
};
case VALUES:
return function values() {
return new IteratorConstructor(this, KIND);
};
case ENTRIES:
return function entries() {
return new IteratorConstructor(this, KIND);
};
}
return function() {
return new IteratorConstructor(this);
};
};
var TO_STRING_TAG = NAME + " Iterator";
var INCORRECT_VALUES_NAME = false;
var IterablePrototype = Iterable.prototype;
var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype["@@iterator"] || DEFAULT && IterablePrototype[DEFAULT];
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
var anyNativeIterator = NAME == "Array" ? IterablePrototype.entries || nativeIterator : nativeIterator;
var CurrentIteratorPrototype, methods, KEY;
if (anyNativeIterator) {
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
if (setPrototypeOf) {
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);
}
}
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
if (IS_PURE)
Iterators[TO_STRING_TAG] = returnThis;
}
}
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
createNonEnumerableProperty(IterablePrototype, "name", VALUES);
} else {
INCORRECT_VALUES_NAME = true;
defaultIterator = function values() {
return call(nativeIterator, this);
};
}
}
if (DEFAULT) {
methods = {
values: getIterationMethod(VALUES),
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
entries: getIterationMethod(ENTRIES)
};
if (FORCED)
for (KEY in methods) {
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
}
}
else
$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
}
if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
}
Iterators[NAME] = defaultIterator;
return methods;
};
}
});
// node_modules/core-js/internals/create-iter-result-object.js
var require_create_iter_result_object = __commonJS({
"node_modules/core-js/internals/create-iter-result-object.js"(exports, module) {
module.exports = function(value, done) {
return { value, done };
};
}
});
// node_modules/core-js/modules/es.array.iterator.js
var require_es_array_iterator = __commonJS({
"node_modules/core-js/modules/es.array.iterator.js"(exports, module) {
"use strict";
var toIndexedObject = require_to_indexed_object();
var addToUnscopables = require_add_to_unscopables();
var Iterators = require_iterators();
var InternalStateModule = require_internal_state();
var defineProperty = require_object_define_property().f;
var defineIterator = require_iterator_define();
var createIterResultObject = require_create_iter_result_object();
var IS_PURE = require_is_pure();
var DESCRIPTORS = require_descriptors();
var ARRAY_ITERATOR = "Array Iterator";
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
module.exports = defineIterator(Array, "Array", function(iterated, kind) {
setInternalState(this, {
type: ARRAY_ITERATOR,
target: toIndexedObject(iterated),
// target
index: 0,
// next index
kind
// kind
});
}, function() {
var state2 = getInternalState(this);
var target = state2.target;
var kind = state2.kind;
var index = state2.index++;
if (!target || index >= target.length) {
state2.target = void 0;
return createIterResultObject(void 0, true);
}
if (kind == "keys")
return createIterResultObject(index, false);
if (kind == "values")
return createIterResultObject(target[index], false);
return createIterResultObject([index, target[index]], false);
}, "values");
var values = Iterators.Arguments = Iterators.Array;
addToUnscopables("keys");
addToUnscopables("values");
addToUnscopables("entries");
if (!IS_PURE && DESCRIPTORS && values.name !== "values")
try {
defineProperty(values, "name", { value: "values" });
} catch (error) {
}
}
});
// node_modules/core-js/modules/es.array.join.js
var require_es_array_join = __commonJS({
"node_modules/core-js/modules/es.array.join.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var IndexedObject = require_indexed_object();
var toIndexedObject = require_to_indexed_object();
var arrayMethodIsStrict = require_array_method_is_strict();
var nativeJoin = uncurryThis([].join);
var ES3_STRINGS = IndexedObject != Object;
var FORCED = ES3_STRINGS || !arrayMethodIsStrict("join", ",");
$2({ target: "Array", proto: true, forced: FORCED }, {
join: function join(separator) {
return nativeJoin(toIndexedObject(this), separator === void 0 ? "," : separator);
}
});
}
});
// node_modules/core-js/internals/array-last-index-of.js
var require_array_last_index_of = __commonJS({
"node_modules/core-js/internals/array-last-index-of.js"(exports, module) {
"use strict";
var apply = require_function_apply();
var toIndexedObject = require_to_indexed_object();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var lengthOfArrayLike = require_length_of_array_like();
var arrayMethodIsStrict = require_array_method_is_strict();
var min = Math.min;
var $lastIndexOf = [].lastIndexOf;
var NEGATIVE_ZERO = !!$lastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;
var STRICT_METHOD = arrayMethodIsStrict("lastIndexOf");
var FORCED = NEGATIVE_ZERO || !STRICT_METHOD;
module.exports = FORCED ? function lastIndexOf(searchElement) {
if (NEGATIVE_ZERO)
return apply($lastIndexOf, this, arguments) || 0;
var O = toIndexedObject(this);
var length = lengthOfArrayLike(O);
var index = length - 1;
if (arguments.length > 1)
index = min(index, toIntegerOrInfinity(arguments[1]));
if (index < 0)
index = length + index;
for (; index >= 0; index--)
if (index in O && O[index] === searchElement)
return index || 0;
return -1;
} : $lastIndexOf;
}
});
// node_modules/core-js/modules/es.array.last-index-of.js
var require_es_array_last_index_of = __commonJS({
"node_modules/core-js/modules/es.array.last-index-of.js"() {
var $2 = require_export();
var lastIndexOf = require_array_last_index_of();
$2({ target: "Array", proto: true, forced: lastIndexOf !== [].lastIndexOf }, {
lastIndexOf
});
}
});
// node_modules/core-js/modules/es.array.map.js
var require_es_array_map = __commonJS({
"node_modules/core-js/modules/es.array.map.js"() {
"use strict";
var $2 = require_export();
var $map = require_array_iteration().map;
var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("map");
$2({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
map: function map(callbackfn) {
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.array.of.js
var require_es_array_of = __commonJS({
"node_modules/core-js/modules/es.array.of.js"() {
"use strict";
var $2 = require_export();
var fails = require_fails();
var isConstructor = require_is_constructor();
var createProperty = require_create_property();
var $Array = Array;
var ISNT_GENERIC = fails(function() {
function F() {
}
return !($Array.of.call(F) instanceof F);
});
$2({ target: "Array", stat: true, forced: ISNT_GENERIC }, {
of: function of() {
var index = 0;
var argumentsLength = arguments.length;
var result = new (isConstructor(this) ? this : $Array)(argumentsLength);
while (argumentsLength > index)
createProperty(result, index, arguments[index++]);
result.length = argumentsLength;
return result;
}
});
}
});
// node_modules/core-js/internals/array-set-length.js
var require_array_set_length = __commonJS({
"node_modules/core-js/internals/array-set-length.js"(exports, module) {
"use strict";
var DESCRIPTORS = require_descriptors();
var isArray = require_is_array();
var $TypeError = TypeError;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function() {
if (this !== void 0)
return true;
try {
Object.defineProperty([], "length", { writable: false }).length = 1;
} catch (error) {
return error instanceof TypeError;
}
}();
module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length) {
if (isArray(O) && !getOwnPropertyDescriptor(O, "length").writable) {
throw $TypeError("Cannot set read only .length");
}
return O.length = length;
} : function(O, length) {
return O.length = length;
};
}
});
// node_modules/core-js/modules/es.array.push.js
var require_es_array_push = __commonJS({
"node_modules/core-js/modules/es.array.push.js"() {
"use strict";
var $2 = require_export();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var setArrayLength = require_array_set_length();
var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
var fails = require_fails();
var INCORRECT_TO_LENGTH = fails(function() {
return [].push.call({ length: 4294967296 }, 1) !== 4294967297;
});
var properErrorOnNonWritableLength = function() {
try {
Object.defineProperty([], "length", { writable: false }).push();
} catch (error) {
return error instanceof TypeError;
}
};
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
$2({ target: "Array", proto: true, arity: 1, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
push: function push(item) {
var O = toObject(this);
var len = lengthOfArrayLike(O);
var argCount = arguments.length;
doesNotExceedSafeInteger(len + argCount);
for (var i4 = 0; i4 < argCount; i4++) {
O[len] = arguments[i4];
len++;
}
setArrayLength(O, len);
return len;
}
});
}
});
// node_modules/core-js/internals/array-reduce.js
var require_array_reduce = __commonJS({
"node_modules/core-js/internals/array-reduce.js"(exports, module) {
var aCallable = require_a_callable();
var toObject = require_to_object();
var IndexedObject = require_indexed_object();
var lengthOfArrayLike = require_length_of_array_like();
var $TypeError = TypeError;
var createMethod = function(IS_RIGHT) {
return function(that, callbackfn, argumentsLength, memo) {
aCallable(callbackfn);
var O = toObject(that);
var self2 = IndexedObject(O);
var length = lengthOfArrayLike(O);
var index = IS_RIGHT ? length - 1 : 0;
var i4 = IS_RIGHT ? -1 : 1;
if (argumentsLength < 2)
while (true) {
if (index in self2) {
memo = self2[index];
index += i4;
break;
}
index += i4;
if (IS_RIGHT ? index < 0 : length <= index) {
throw $TypeError("Reduce of empty array with no initial value");
}
}
for (; IS_RIGHT ? index >= 0 : length > index; index += i4)
if (index in self2) {
memo = callbackfn(memo, self2[index], index, O);
}
return memo;
};
};
module.exports = {
// `Array.prototype.reduce` method
// https://tc39.es/ecma262/#sec-array.prototype.reduce
left: createMethod(false),
// `Array.prototype.reduceRight` method
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
right: createMethod(true)
};
}
});
// node_modules/core-js/internals/engine-is-node.js
var require_engine_is_node = __commonJS({
"node_modules/core-js/internals/engine-is-node.js"(exports, module) {
var classof = require_classof_raw();
module.exports = typeof process != "undefined" && classof(process) == "process";
}
});
// node_modules/core-js/modules/es.array.reduce.js
var require_es_array_reduce = __commonJS({
"node_modules/core-js/modules/es.array.reduce.js"() {
"use strict";
var $2 = require_export();
var $reduce = require_array_reduce().left;
var arrayMethodIsStrict = require_array_method_is_strict();
var CHROME_VERSION = require_engine_v8_version();
var IS_NODE = require_engine_is_node();
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
var FORCED = CHROME_BUG || !arrayMethodIsStrict("reduce");
$2({ target: "Array", proto: true, forced: FORCED }, {
reduce: function reduce(callbackfn) {
var length = arguments.length;
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.array.reduce-right.js
var require_es_array_reduce_right = __commonJS({
"node_modules/core-js/modules/es.array.reduce-right.js"() {
"use strict";
var $2 = require_export();
var $reduceRight = require_array_reduce().right;
var arrayMethodIsStrict = require_array_method_is_strict();
var CHROME_VERSION = require_engine_v8_version();
var IS_NODE = require_engine_is_node();
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
var FORCED = CHROME_BUG || !arrayMethodIsStrict("reduceRight");
$2({ target: "Array", proto: true, forced: FORCED }, {
reduceRight: function reduceRight(callbackfn) {
return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.array.reverse.js
var require_es_array_reverse = __commonJS({
"node_modules/core-js/modules/es.array.reverse.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var isArray = require_is_array();
var nativeReverse = uncurryThis([].reverse);
var test = [1, 2];
$2({ target: "Array", proto: true, forced: String(test) === String(test.reverse()) }, {
reverse: function reverse() {
if (isArray(this))
this.length = this.length;
return nativeReverse(this);
}
});
}
});
// node_modules/core-js/modules/es.array.slice.js
var require_es_array_slice = __commonJS({
"node_modules/core-js/modules/es.array.slice.js"() {
"use strict";
var $2 = require_export();
var isArray = require_is_array();
var isConstructor = require_is_constructor();
var isObject = require_is_object();
var toAbsoluteIndex = require_to_absolute_index();
var lengthOfArrayLike = require_length_of_array_like();
var toIndexedObject = require_to_indexed_object();
var createProperty = require_create_property();
var wellKnownSymbol = require_well_known_symbol();
var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
var nativeSlice = require_array_slice();
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("slice");
var SPECIES = wellKnownSymbol("species");
var $Array = Array;
var max = Math.max;
$2({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
slice: function slice(start, end) {
var O = toIndexedObject(this);
var length = lengthOfArrayLike(O);
var k2 = toAbsoluteIndex(start, length);
var fin = toAbsoluteIndex(end === void 0 ? length : end, length);
var Constructor, result, n6;
if (isArray(O)) {
Constructor = O.constructor;
if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) {
Constructor = void 0;
} else if (isObject(Constructor)) {
Constructor = Constructor[SPECIES];
if (Constructor === null)
Constructor = void 0;
}
if (Constructor === $Array || Constructor === void 0) {
return nativeSlice(O, k2, fin);
}
}
result = new (Constructor === void 0 ? $Array : Constructor)(max(fin - k2, 0));
for (n6 = 0; k2 < fin; k2++, n6++)
if (k2 in O)
createProperty(result, n6, O[k2]);
result.length = n6;
return result;
}
});
}
});
// node_modules/core-js/modules/es.array.some.js
var require_es_array_some = __commonJS({
"node_modules/core-js/modules/es.array.some.js"() {
"use strict";
var $2 = require_export();
var $some = require_array_iteration().some;
var arrayMethodIsStrict = require_array_method_is_strict();
var STRICT_METHOD = arrayMethodIsStrict("some");
$2({ target: "Array", proto: true, forced: !STRICT_METHOD }, {
some: function some(callbackfn) {
return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/internals/array-sort.js
var require_array_sort = __commonJS({
"node_modules/core-js/internals/array-sort.js"(exports, module) {
var arraySlice = require_array_slice_simple();
var floor = Math.floor;
var mergeSort = function(array, comparefn) {
var length = array.length;
var middle = floor(length / 2);
return length < 8 ? insertionSort(array, comparefn) : merge(
array,
mergeSort(arraySlice(array, 0, middle), comparefn),
mergeSort(arraySlice(array, middle), comparefn),
comparefn
);
};
var insertionSort = function(array, comparefn) {
var length = array.length;
var i4 = 1;
var element, j2;
while (i4 < length) {
j2 = i4;
element = array[i4];
while (j2 && comparefn(array[j2 - 1], element) > 0) {
array[j2] = array[--j2];
}
if (j2 !== i4++)
array[j2] = element;
}
return array;
};
var merge = function(array, left, right, comparefn) {
var llength = left.length;
var rlength = right.length;
var lindex = 0;
var rindex = 0;
while (lindex < llength || rindex < rlength) {
array[lindex + rindex] = lindex < llength && rindex < rlength ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++] : lindex < llength ? left[lindex++] : right[rindex++];
}
return array;
};
module.exports = mergeSort;
}
});
// node_modules/core-js/internals/engine-ff-version.js
var require_engine_ff_version = __commonJS({
"node_modules/core-js/internals/engine-ff-version.js"(exports, module) {
var userAgent = require_engine_user_agent();
var firefox = userAgent.match(/firefox\/(\d+)/i);
module.exports = !!firefox && +firefox[1];
}
});
// node_modules/core-js/internals/engine-is-ie-or-edge.js
var require_engine_is_ie_or_edge = __commonJS({
"node_modules/core-js/internals/engine-is-ie-or-edge.js"(exports, module) {
var UA = require_engine_user_agent();
module.exports = /MSIE|Trident/.test(UA);
}
});
// node_modules/core-js/internals/engine-webkit-version.js
var require_engine_webkit_version = __commonJS({
"node_modules/core-js/internals/engine-webkit-version.js"(exports, module) {
var userAgent = require_engine_user_agent();
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
module.exports = !!webkit && +webkit[1];
}
});
// node_modules/core-js/modules/es.array.sort.js
var require_es_array_sort = __commonJS({
"node_modules/core-js/modules/es.array.sort.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var aCallable = require_a_callable();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var deletePropertyOrThrow = require_delete_property_or_throw();
var toString = require_to_string();
var fails = require_fails();
var internalSort = require_array_sort();
var arrayMethodIsStrict = require_array_method_is_strict();
var FF = require_engine_ff_version();
var IE_OR_EDGE = require_engine_is_ie_or_edge();
var V8 = require_engine_v8_version();
var WEBKIT = require_engine_webkit_version();
var test = [];
var nativeSort = uncurryThis(test.sort);
var push = uncurryThis(test.push);
var FAILS_ON_UNDEFINED = fails(function() {
test.sort(void 0);
});
var FAILS_ON_NULL = fails(function() {
test.sort(null);
});
var STRICT_METHOD = arrayMethodIsStrict("sort");
var STABLE_SORT = !fails(function() {
if (V8)
return V8 < 70;
if (FF && FF > 3)
return;
if (IE_OR_EDGE)
return true;
if (WEBKIT)
return WEBKIT < 603;
var result = "";
var code, chr, value, index;
for (code = 65; code < 76; code++) {
chr = String.fromCharCode(code);
switch (code) {
case 66:
case 69:
case 70:
case 72:
value = 3;
break;
case 68:
case 71:
value = 4;
break;
default:
value = 2;
}
for (index = 0; index < 47; index++) {
test.push({ k: chr + index, v: value });
}
}
test.sort(function(a3, b2) {
return b2.v - a3.v;
});
for (index = 0; index < test.length; index++) {
chr = test[index].k.charAt(0);
if (result.charAt(result.length - 1) !== chr)
result += chr;
}
return result !== "DGBEFHACIJK";
});
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
var getSortCompare = function(comparefn) {
return function(x2, y2) {
if (y2 === void 0)
return -1;
if (x2 === void 0)
return 1;
if (comparefn !== void 0)
return +comparefn(x2, y2) || 0;
return toString(x2) > toString(y2) ? 1 : -1;
};
};
$2({ target: "Array", proto: true, forced: FORCED }, {
sort: function sort(comparefn) {
if (comparefn !== void 0)
aCallable(comparefn);
var array = toObject(this);
if (STABLE_SORT)
return comparefn === void 0 ? nativeSort(array) : nativeSort(array, comparefn);
var items = [];
var arrayLength = lengthOfArrayLike(array);
var itemsLength, index;
for (index = 0; index < arrayLength; index++) {
if (index in array)
push(items, array[index]);
}
internalSort(items, getSortCompare(comparefn));
itemsLength = lengthOfArrayLike(items);
index = 0;
while (index < itemsLength)
array[index] = items[index++];
while (index < arrayLength)
deletePropertyOrThrow(array, index++);
return array;
}
});
}
});
// node_modules/core-js/internals/set-species.js
var require_set_species = __commonJS({
"node_modules/core-js/internals/set-species.js"(exports, module) {
"use strict";
var getBuiltIn = require_get_built_in();
var defineBuiltInAccessor = require_define_built_in_accessor();
var wellKnownSymbol = require_well_known_symbol();
var DESCRIPTORS = require_descriptors();
var SPECIES = wellKnownSymbol("species");
module.exports = function(CONSTRUCTOR_NAME) {
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
defineBuiltInAccessor(Constructor, SPECIES, {
configurable: true,
get: function() {
return this;
}
});
}
};
}
});
// node_modules/core-js/modules/es.array.species.js
var require_es_array_species = __commonJS({
"node_modules/core-js/modules/es.array.species.js"() {
var setSpecies = require_set_species();
setSpecies("Array");
}
});
// node_modules/core-js/modules/es.array.splice.js
var require_es_array_splice = __commonJS({
"node_modules/core-js/modules/es.array.splice.js"() {
"use strict";
var $2 = require_export();
var toObject = require_to_object();
var toAbsoluteIndex = require_to_absolute_index();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var lengthOfArrayLike = require_length_of_array_like();
var setArrayLength = require_array_set_length();
var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
var arraySpeciesCreate = require_array_species_create();
var createProperty = require_create_property();
var deletePropertyOrThrow = require_delete_property_or_throw();
var arrayMethodHasSpeciesSupport = require_array_method_has_species_support();
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport("splice");
var max = Math.max;
var min = Math.min;
$2({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT }, {
splice: function splice(start, deleteCount) {
var O = toObject(this);
var len = lengthOfArrayLike(O);
var actualStart = toAbsoluteIndex(start, len);
var argumentsLength = arguments.length;
var insertCount, actualDeleteCount, A2, k2, from, to;
if (argumentsLength === 0) {
insertCount = actualDeleteCount = 0;
} else if (argumentsLength === 1) {
insertCount = 0;
actualDeleteCount = len - actualStart;
} else {
insertCount = argumentsLength - 2;
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
}
doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
A2 = arraySpeciesCreate(O, actualDeleteCount);
for (k2 = 0; k2 < actualDeleteCount; k2++) {
from = actualStart + k2;
if (from in O)
createProperty(A2, k2, O[from]);
}
A2.length = actualDeleteCount;
if (insertCount < actualDeleteCount) {
for (k2 = actualStart; k2 < len - actualDeleteCount; k2++) {
from = k2 + actualDeleteCount;
to = k2 + insertCount;
if (from in O)
O[to] = O[from];
else
deletePropertyOrThrow(O, to);
}
for (k2 = len; k2 > len - actualDeleteCount + insertCount; k2--)
deletePropertyOrThrow(O, k2 - 1);
} else if (insertCount > actualDeleteCount) {
for (k2 = len - actualDeleteCount; k2 > actualStart; k2--) {
from = k2 + actualDeleteCount - 1;
to = k2 + insertCount - 1;
if (from in O)
O[to] = O[from];
else
deletePropertyOrThrow(O, to);
}
}
for (k2 = 0; k2 < insertCount; k2++) {
O[k2 + actualStart] = arguments[k2 + 2];
}
setArrayLength(O, len - actualDeleteCount + insertCount);
return A2;
}
});
}
});
// node_modules/core-js/internals/array-to-reversed.js
var require_array_to_reversed = __commonJS({
"node_modules/core-js/internals/array-to-reversed.js"(exports, module) {
var lengthOfArrayLike = require_length_of_array_like();
module.exports = function(O, C2) {
var len = lengthOfArrayLike(O);
var A2 = new C2(len);
var k2 = 0;
for (; k2 < len; k2++)
A2[k2] = O[len - k2 - 1];
return A2;
};
}
});
// node_modules/core-js/modules/es.array.to-reversed.js
var require_es_array_to_reversed = __commonJS({
"node_modules/core-js/modules/es.array.to-reversed.js"() {
"use strict";
var $2 = require_export();
var arrayToReversed = require_array_to_reversed();
var toIndexedObject = require_to_indexed_object();
var addToUnscopables = require_add_to_unscopables();
var $Array = Array;
$2({ target: "Array", proto: true }, {
toReversed: function toReversed() {
return arrayToReversed(toIndexedObject(this), $Array);
}
});
addToUnscopables("toReversed");
}
});
// node_modules/core-js/internals/array-from-constructor-and-list.js
var require_array_from_constructor_and_list = __commonJS({
"node_modules/core-js/internals/array-from-constructor-and-list.js"(exports, module) {
var lengthOfArrayLike = require_length_of_array_like();
module.exports = function(Constructor, list) {
var index = 0;
var length = lengthOfArrayLike(list);
var result = new Constructor(length);
while (length > index)
result[index] = list[index++];
return result;
};
}
});
// node_modules/core-js/internals/entry-virtual.js
var require_entry_virtual = __commonJS({
"node_modules/core-js/internals/entry-virtual.js"(exports, module) {
var global2 = require_global();
module.exports = function(CONSTRUCTOR) {
return global2[CONSTRUCTOR].prototype;
};
}
});
// node_modules/core-js/modules/es.array.to-sorted.js
var require_es_array_to_sorted = __commonJS({
"node_modules/core-js/modules/es.array.to-sorted.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var aCallable = require_a_callable();
var toIndexedObject = require_to_indexed_object();
var arrayFromConstructorAndList = require_array_from_constructor_and_list();
var getVirtual = require_entry_virtual();
var addToUnscopables = require_add_to_unscopables();
var $Array = Array;
var sort = uncurryThis(getVirtual("Array").sort);
$2({ target: "Array", proto: true }, {
toSorted: function toSorted(compareFn) {
if (compareFn !== void 0)
aCallable(compareFn);
var O = toIndexedObject(this);
var A2 = arrayFromConstructorAndList($Array, O);
return sort(A2, compareFn);
}
});
addToUnscopables("toSorted");
}
});
// node_modules/core-js/modules/es.array.to-spliced.js
var require_es_array_to_spliced = __commonJS({
"node_modules/core-js/modules/es.array.to-spliced.js"() {
"use strict";
var $2 = require_export();
var addToUnscopables = require_add_to_unscopables();
var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
var lengthOfArrayLike = require_length_of_array_like();
var toAbsoluteIndex = require_to_absolute_index();
var toIndexedObject = require_to_indexed_object();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var $Array = Array;
var max = Math.max;
var min = Math.min;
$2({ target: "Array", proto: true }, {
toSpliced: function toSpliced(start, deleteCount) {
var O = toIndexedObject(this);
var len = lengthOfArrayLike(O);
var actualStart = toAbsoluteIndex(start, len);
var argumentsLength = arguments.length;
var k2 = 0;
var insertCount, actualDeleteCount, newLen, A2;
if (argumentsLength === 0) {
insertCount = actualDeleteCount = 0;
} else if (argumentsLength === 1) {
insertCount = 0;
actualDeleteCount = len - actualStart;
} else {
insertCount = argumentsLength - 2;
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
}
newLen = doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
A2 = $Array(newLen);
for (; k2 < actualStart; k2++)
A2[k2] = O[k2];
for (; k2 < actualStart + insertCount; k2++)
A2[k2] = arguments[k2 - actualStart + 2];
for (; k2 < newLen; k2++)
A2[k2] = O[k2 + actualDeleteCount - insertCount];
return A2;
}
});
addToUnscopables("toSpliced");
}
});
// node_modules/core-js/modules/es.array.unscopables.flat.js
var require_es_array_unscopables_flat = __commonJS({
"node_modules/core-js/modules/es.array.unscopables.flat.js"() {
var addToUnscopables = require_add_to_unscopables();
addToUnscopables("flat");
}
});
// node_modules/core-js/modules/es.array.unscopables.flat-map.js
var require_es_array_unscopables_flat_map = __commonJS({
"node_modules/core-js/modules/es.array.unscopables.flat-map.js"() {
var addToUnscopables = require_add_to_unscopables();
addToUnscopables("flatMap");
}
});
// node_modules/core-js/modules/es.array.unshift.js
var require_es_array_unshift = __commonJS({
"node_modules/core-js/modules/es.array.unshift.js"() {
"use strict";
var $2 = require_export();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var setArrayLength = require_array_set_length();
var deletePropertyOrThrow = require_delete_property_or_throw();
var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
var INCORRECT_RESULT = [].unshift(0) !== 1;
var properErrorOnNonWritableLength = function() {
try {
Object.defineProperty([], "length", { writable: false }).unshift();
} catch (error) {
return error instanceof TypeError;
}
};
var FORCED = INCORRECT_RESULT || !properErrorOnNonWritableLength();
$2({ target: "Array", proto: true, arity: 1, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
unshift: function unshift(item) {
var O = toObject(this);
var len = lengthOfArrayLike(O);
var argCount = arguments.length;
if (argCount) {
doesNotExceedSafeInteger(len + argCount);
var k2 = len;
while (k2--) {
var to = k2 + argCount;
if (k2 in O)
O[to] = O[k2];
else
deletePropertyOrThrow(O, to);
}
for (var j2 = 0; j2 < argCount; j2++) {
O[j2] = arguments[j2];
}
}
return setArrayLength(O, len + argCount);
}
});
}
});
// node_modules/core-js/internals/array-with.js
var require_array_with = __commonJS({
"node_modules/core-js/internals/array-with.js"(exports, module) {
var lengthOfArrayLike = require_length_of_array_like();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var $RangeError = RangeError;
module.exports = function(O, C2, index, value) {
var len = lengthOfArrayLike(O);
var relativeIndex = toIntegerOrInfinity(index);
var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;
if (actualIndex >= len || actualIndex < 0)
throw $RangeError("Incorrect index");
var A2 = new C2(len);
var k2 = 0;
for (; k2 < len; k2++)
A2[k2] = k2 === actualIndex ? value : O[k2];
return A2;
};
}
});
// node_modules/core-js/modules/es.array.with.js
var require_es_array_with = __commonJS({
"node_modules/core-js/modules/es.array.with.js"() {
"use strict";
var $2 = require_export();
var arrayWith = require_array_with();
var toIndexedObject = require_to_indexed_object();
var $Array = Array;
$2({ target: "Array", proto: true }, {
"with": function(index, value) {
return arrayWith(toIndexedObject(this), $Array, index, value);
}
});
}
});
// node_modules/core-js/internals/array-buffer-basic-detection.js
var require_array_buffer_basic_detection = __commonJS({
"node_modules/core-js/internals/array-buffer-basic-detection.js"(exports, module) {
module.exports = typeof ArrayBuffer != "undefined" && typeof DataView != "undefined";
}
});
// node_modules/core-js/internals/define-built-ins.js
var require_define_built_ins = __commonJS({
"node_modules/core-js/internals/define-built-ins.js"(exports, module) {
var defineBuiltIn = require_define_built_in();
module.exports = function(target, src, options) {
for (var key in src)
defineBuiltIn(target, key, src[key], options);
return target;
};
}
});
// node_modules/core-js/internals/an-instance.js
var require_an_instance = __commonJS({
"node_modules/core-js/internals/an-instance.js"(exports, module) {
var isPrototypeOf = require_object_is_prototype_of();
var $TypeError = TypeError;
module.exports = function(it, Prototype) {
if (isPrototypeOf(Prototype, it))
return it;
throw $TypeError("Incorrect invocation");
};
}
});
// node_modules/core-js/internals/to-index.js
var require_to_index = __commonJS({
"node_modules/core-js/internals/to-index.js"(exports, module) {
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toLength = require_to_length();
var $RangeError = RangeError;
module.exports = function(it) {
if (it === void 0)
return 0;
var number = toIntegerOrInfinity(it);
var length = toLength(number);
if (number !== length)
throw $RangeError("Wrong length or index");
return length;
};
}
});
// node_modules/core-js/internals/ieee754.js
var require_ieee754 = __commonJS({
"node_modules/core-js/internals/ieee754.js"(exports, module) {
var $Array = Array;
var abs = Math.abs;
var pow = Math.pow;
var floor = Math.floor;
var log = Math.log;
var LN2 = Math.LN2;
var pack = function(number, mantissaLength, bytes) {
var buffer = $Array(bytes);
var exponentLength = bytes * 8 - mantissaLength - 1;
var eMax = (1 << exponentLength) - 1;
var eBias = eMax >> 1;
var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;
var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;
var index = 0;
var exponent, mantissa, c3;
number = abs(number);
if (number != number || number === Infinity) {
mantissa = number != number ? 1 : 0;
exponent = eMax;
} else {
exponent = floor(log(number) / LN2);
c3 = pow(2, -exponent);
if (number * c3 < 1) {
exponent--;
c3 *= 2;
}
if (exponent + eBias >= 1) {
number += rt / c3;
} else {
number += rt * pow(2, 1 - eBias);
}
if (number * c3 >= 2) {
exponent++;
c3 /= 2;
}
if (exponent + eBias >= eMax) {
mantissa = 0;
exponent = eMax;
} else if (exponent + eBias >= 1) {
mantissa = (number * c3 - 1) * pow(2, mantissaLength);
exponent = exponent + eBias;
} else {
mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);
exponent = 0;
}
}
while (mantissaLength >= 8) {
buffer[index++] = mantissa & 255;
mantissa /= 256;
mantissaLength -= 8;
}
exponent = exponent << mantissaLength | mantissa;
exponentLength += mantissaLength;
while (exponentLength > 0) {
buffer[index++] = exponent & 255;
exponent /= 256;
exponentLength -= 8;
}
buffer[--index] |= sign * 128;
return buffer;
};
var unpack = function(buffer, mantissaLength) {
var bytes = buffer.length;
var exponentLength = bytes * 8 - mantissaLength - 1;
var eMax = (1 << exponentLength) - 1;
var eBias = eMax >> 1;
var nBits = exponentLength - 7;
var index = bytes - 1;
var sign = buffer[index--];
var exponent = sign & 127;
var mantissa;
sign >>= 7;
while (nBits > 0) {
exponent = exponent * 256 + buffer[index--];
nBits -= 8;
}
mantissa = exponent & (1 << -nBits) - 1;
exponent >>= -nBits;
nBits += mantissaLength;
while (nBits > 0) {
mantissa = mantissa * 256 + buffer[index--];
nBits -= 8;
}
if (exponent === 0) {
exponent = 1 - eBias;
} else if (exponent === eMax) {
return mantissa ? NaN : sign ? -Infinity : Infinity;
} else {
mantissa = mantissa + pow(2, mantissaLength);
exponent = exponent - eBias;
}
return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
};
module.exports = {
pack,
unpack
};
}
});
// node_modules/core-js/internals/array-buffer.js
var require_array_buffer = __commonJS({
"node_modules/core-js/internals/array-buffer.js"(exports, module) {
"use strict";
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var DESCRIPTORS = require_descriptors();
var NATIVE_ARRAY_BUFFER = require_array_buffer_basic_detection();
var FunctionName = require_function_name();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var defineBuiltInAccessor = require_define_built_in_accessor();
var defineBuiltIns = require_define_built_ins();
var fails = require_fails();
var anInstance = require_an_instance();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toLength = require_to_length();
var toIndex = require_to_index();
var IEEE754 = require_ieee754();
var getPrototypeOf = require_object_get_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var getOwnPropertyNames = require_object_get_own_property_names().f;
var arrayFill = require_array_fill();
var arraySlice = require_array_slice_simple();
var setToStringTag = require_set_to_string_tag();
var InternalStateModule = require_internal_state();
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
var ARRAY_BUFFER = "ArrayBuffer";
var DATA_VIEW = "DataView";
var PROTOTYPE = "prototype";
var WRONG_LENGTH = "Wrong length";
var WRONG_INDEX = "Wrong index";
var getInternalArrayBufferState = InternalStateModule.getterFor(ARRAY_BUFFER);
var getInternalDataViewState = InternalStateModule.getterFor(DATA_VIEW);
var setInternalState = InternalStateModule.set;
var NativeArrayBuffer = global2[ARRAY_BUFFER];
var $ArrayBuffer = NativeArrayBuffer;
var ArrayBufferPrototype = $ArrayBuffer && $ArrayBuffer[PROTOTYPE];
var $DataView = global2[DATA_VIEW];
var DataViewPrototype = $DataView && $DataView[PROTOTYPE];
var ObjectPrototype = Object.prototype;
var Array2 = global2.Array;
var RangeError2 = global2.RangeError;
var fill = uncurryThis(arrayFill);
var reverse = uncurryThis([].reverse);
var packIEEE754 = IEEE754.pack;
var unpackIEEE754 = IEEE754.unpack;
var packInt8 = function(number) {
return [number & 255];
};
var packInt16 = function(number) {
return [number & 255, number >> 8 & 255];
};
var packInt32 = function(number) {
return [number & 255, number >> 8 & 255, number >> 16 & 255, number >> 24 & 255];
};
var unpackInt32 = function(buffer) {
return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0];
};
var packFloat32 = function(number) {
return packIEEE754(number, 23, 4);
};
var packFloat64 = function(number) {
return packIEEE754(number, 52, 8);
};
var addGetter = function(Constructor, key2, getInternalState) {
defineBuiltInAccessor(Constructor[PROTOTYPE], key2, {
configurable: true,
get: function() {
return getInternalState(this)[key2];
}
});
};
var get = function(view, count, index, isLittleEndian) {
var intIndex = toIndex(index);
var store = getInternalDataViewState(view);
if (intIndex + count > store.byteLength)
throw RangeError2(WRONG_INDEX);
var bytes = store.bytes;
var start = intIndex + store.byteOffset;
var pack = arraySlice(bytes, start, start + count);
return isLittleEndian ? pack : reverse(pack);
};
var set = function(view, count, index, conversion, value, isLittleEndian) {
var intIndex = toIndex(index);
var store = getInternalDataViewState(view);
if (intIndex + count > store.byteLength)
throw RangeError2(WRONG_INDEX);
var bytes = store.bytes;
var start = intIndex + store.byteOffset;
var pack = conversion(+value);
for (var i4 = 0; i4 < count; i4++)
bytes[start + i4] = pack[isLittleEndian ? i4 : count - i4 - 1];
};
if (!NATIVE_ARRAY_BUFFER) {
$ArrayBuffer = function ArrayBuffer2(length) {
anInstance(this, ArrayBufferPrototype);
var byteLength = toIndex(length);
setInternalState(this, {
type: ARRAY_BUFFER,
bytes: fill(Array2(byteLength), 0),
byteLength
});
if (!DESCRIPTORS) {
this.byteLength = byteLength;
this.detached = false;
}
};
ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE];
$DataView = function DataView2(buffer, byteOffset, byteLength) {
anInstance(this, DataViewPrototype);
anInstance(buffer, ArrayBufferPrototype);
var bufferState = getInternalArrayBufferState(buffer);
var bufferLength = bufferState.byteLength;
var offset = toIntegerOrInfinity(byteOffset);
if (offset < 0 || offset > bufferLength)
throw RangeError2("Wrong offset");
byteLength = byteLength === void 0 ? bufferLength - offset : toLength(byteLength);
if (offset + byteLength > bufferLength)
throw RangeError2(WRONG_LENGTH);
setInternalState(this, {
type: DATA_VIEW,
buffer,
byteLength,
byteOffset: offset,
bytes: bufferState.bytes
});
if (!DESCRIPTORS) {
this.buffer = buffer;
this.byteLength = byteLength;
this.byteOffset = offset;
}
};
DataViewPrototype = $DataView[PROTOTYPE];
if (DESCRIPTORS) {
addGetter($ArrayBuffer, "byteLength", getInternalArrayBufferState);
addGetter($DataView, "buffer", getInternalDataViewState);
addGetter($DataView, "byteLength", getInternalDataViewState);
addGetter($DataView, "byteOffset", getInternalDataViewState);
}
defineBuiltIns(DataViewPrototype, {
getInt8: function getInt8(byteOffset) {
return get(this, 1, byteOffset)[0] << 24 >> 24;
},
getUint8: function getUint8(byteOffset) {
return get(this, 1, byteOffset)[0];
},
getInt16: function getInt16(byteOffset) {
var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : void 0);
return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
},
getUint16: function getUint16(byteOffset) {
var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : void 0);
return bytes[1] << 8 | bytes[0];
},
getInt32: function getInt32(byteOffset) {
return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : void 0));
},
getUint32: function getUint32(byteOffset) {
return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : void 0)) >>> 0;
},
getFloat32: function getFloat32(byteOffset) {
return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : void 0), 23);
},
getFloat64: function getFloat64(byteOffset) {
return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : void 0), 52);
},
setInt8: function setInt8(byteOffset, value) {
set(this, 1, byteOffset, packInt8, value);
},
setUint8: function setUint8(byteOffset, value) {
set(this, 1, byteOffset, packInt8, value);
},
setInt16: function setInt16(byteOffset, value) {
set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : void 0);
},
setUint16: function setUint16(byteOffset, value) {
set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : void 0);
},
setInt32: function setInt32(byteOffset, value) {
set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : void 0);
},
setUint32: function setUint32(byteOffset, value) {
set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : void 0);
},
setFloat32: function setFloat32(byteOffset, value) {
set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : void 0);
},
setFloat64: function setFloat64(byteOffset, value) {
set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : void 0);
}
});
} else {
INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER;
if (!fails(function() {
NativeArrayBuffer(1);
}) || !fails(function() {
new NativeArrayBuffer(-1);
}) || fails(function() {
new NativeArrayBuffer();
new NativeArrayBuffer(1.5);
new NativeArrayBuffer(NaN);
return NativeArrayBuffer.length != 1 || INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME;
})) {
$ArrayBuffer = function ArrayBuffer2(length) {
anInstance(this, ArrayBufferPrototype);
return new NativeArrayBuffer(toIndex(length));
};
$ArrayBuffer[PROTOTYPE] = ArrayBufferPrototype;
for (keys = getOwnPropertyNames(NativeArrayBuffer), j2 = 0; keys.length > j2; ) {
if (!((key = keys[j2++]) in $ArrayBuffer)) {
createNonEnumerableProperty($ArrayBuffer, key, NativeArrayBuffer[key]);
}
}
ArrayBufferPrototype.constructor = $ArrayBuffer;
} else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) {
createNonEnumerableProperty(NativeArrayBuffer, "name", ARRAY_BUFFER);
}
if (setPrototypeOf && getPrototypeOf(DataViewPrototype) !== ObjectPrototype) {
setPrototypeOf(DataViewPrototype, ObjectPrototype);
}
testView = new $DataView(new $ArrayBuffer(2));
$setInt8 = uncurryThis(DataViewPrototype.setInt8);
testView.setInt8(0, 2147483648);
testView.setInt8(1, 2147483649);
if (testView.getInt8(0) || !testView.getInt8(1))
defineBuiltIns(DataViewPrototype, {
setInt8: function setInt8(byteOffset, value) {
$setInt8(this, byteOffset, value << 24 >> 24);
},
setUint8: function setUint8(byteOffset, value) {
$setInt8(this, byteOffset, value << 24 >> 24);
}
}, { unsafe: true });
}
var INCORRECT_ARRAY_BUFFER_NAME;
var keys;
var j2;
var key;
var testView;
var $setInt8;
setToStringTag($ArrayBuffer, ARRAY_BUFFER);
setToStringTag($DataView, DATA_VIEW);
module.exports = {
ArrayBuffer: $ArrayBuffer,
DataView: $DataView
};
}
});
// node_modules/core-js/modules/es.array-buffer.constructor.js
var require_es_array_buffer_constructor = __commonJS({
"node_modules/core-js/modules/es.array-buffer.constructor.js"() {
"use strict";
var $2 = require_export();
var global2 = require_global();
var arrayBufferModule = require_array_buffer();
var setSpecies = require_set_species();
var ARRAY_BUFFER = "ArrayBuffer";
var ArrayBuffer2 = arrayBufferModule[ARRAY_BUFFER];
var NativeArrayBuffer = global2[ARRAY_BUFFER];
$2({ global: true, constructor: true, forced: NativeArrayBuffer !== ArrayBuffer2 }, {
ArrayBuffer: ArrayBuffer2
});
setSpecies(ARRAY_BUFFER);
}
});
// node_modules/core-js/internals/array-buffer-view-core.js
var require_array_buffer_view_core = __commonJS({
"node_modules/core-js/internals/array-buffer-view-core.js"(exports, module) {
"use strict";
var NATIVE_ARRAY_BUFFER = require_array_buffer_basic_detection();
var DESCRIPTORS = require_descriptors();
var global2 = require_global();
var isCallable = require_is_callable();
var isObject = require_is_object();
var hasOwn = require_has_own_property();
var classof = require_classof();
var tryToString = require_try_to_string();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var defineBuiltIn = require_define_built_in();
var defineBuiltInAccessor = require_define_built_in_accessor();
var isPrototypeOf = require_object_is_prototype_of();
var getPrototypeOf = require_object_get_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var wellKnownSymbol = require_well_known_symbol();
var uid = require_uid();
var InternalStateModule = require_internal_state();
var enforceInternalState = InternalStateModule.enforce;
var getInternalState = InternalStateModule.get;
var Int8Array2 = global2.Int8Array;
var Int8ArrayPrototype = Int8Array2 && Int8Array2.prototype;
var Uint8ClampedArray2 = global2.Uint8ClampedArray;
var Uint8ClampedArrayPrototype = Uint8ClampedArray2 && Uint8ClampedArray2.prototype;
var TypedArray = Int8Array2 && getPrototypeOf(Int8Array2);
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
var ObjectPrototype = Object.prototype;
var TypeError2 = global2.TypeError;
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var TYPED_ARRAY_TAG = uid("TYPED_ARRAY_TAG");
var TYPED_ARRAY_CONSTRUCTOR = "TypedArrayConstructor";
var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global2.opera) !== "Opera";
var TYPED_ARRAY_TAG_REQUIRED = false;
var NAME;
var Constructor;
var Prototype;
var TypedArrayConstructorsList = {
Int8Array: 1,
Uint8Array: 1,
Uint8ClampedArray: 1,
Int16Array: 2,
Uint16Array: 2,
Int32Array: 4,
Uint32Array: 4,
Float32Array: 4,
Float64Array: 8
};
var BigIntArrayConstructorsList = {
BigInt64Array: 8,
BigUint64Array: 8
};
var isView = function isView2(it) {
if (!isObject(it))
return false;
var klass = classof(it);
return klass === "DataView" || hasOwn(TypedArrayConstructorsList, klass) || hasOwn(BigIntArrayConstructorsList, klass);
};
var getTypedArrayConstructor = function(it) {
var proto = getPrototypeOf(it);
if (!isObject(proto))
return;
var state2 = getInternalState(proto);
return state2 && hasOwn(state2, TYPED_ARRAY_CONSTRUCTOR) ? state2[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto);
};
var isTypedArray = function(it) {
if (!isObject(it))
return false;
var klass = classof(it);
return hasOwn(TypedArrayConstructorsList, klass) || hasOwn(BigIntArrayConstructorsList, klass);
};
var aTypedArray = function(it) {
if (isTypedArray(it))
return it;
throw TypeError2("Target is not a typed array");
};
var aTypedArrayConstructor = function(C2) {
if (isCallable(C2) && (!setPrototypeOf || isPrototypeOf(TypedArray, C2)))
return C2;
throw TypeError2(tryToString(C2) + " is not a typed array constructor");
};
var exportTypedArrayMethod = function(KEY, property, forced, options) {
if (!DESCRIPTORS)
return;
if (forced)
for (var ARRAY in TypedArrayConstructorsList) {
var TypedArrayConstructor = global2[ARRAY];
if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY))
try {
delete TypedArrayConstructor.prototype[KEY];
} catch (error) {
try {
TypedArrayConstructor.prototype[KEY] = property;
} catch (error2) {
}
}
}
if (!TypedArrayPrototype[KEY] || forced) {
defineBuiltIn(TypedArrayPrototype, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);
}
};
var exportTypedArrayStaticMethod = function(KEY, property, forced) {
var ARRAY, TypedArrayConstructor;
if (!DESCRIPTORS)
return;
if (setPrototypeOf) {
if (forced)
for (ARRAY in TypedArrayConstructorsList) {
TypedArrayConstructor = global2[ARRAY];
if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY))
try {
delete TypedArrayConstructor[KEY];
} catch (error) {
}
}
if (!TypedArray[KEY] || forced) {
try {
return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);
} catch (error) {
}
} else
return;
}
for (ARRAY in TypedArrayConstructorsList) {
TypedArrayConstructor = global2[ARRAY];
if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
defineBuiltIn(TypedArrayConstructor, KEY, property);
}
}
};
for (NAME in TypedArrayConstructorsList) {
Constructor = global2[NAME];
Prototype = Constructor && Constructor.prototype;
if (Prototype)
enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
else
NATIVE_ARRAY_BUFFER_VIEWS = false;
}
for (NAME in BigIntArrayConstructorsList) {
Constructor = global2[NAME];
Prototype = Constructor && Constructor.prototype;
if (Prototype)
enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
}
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
TypedArray = function TypedArray2() {
throw TypeError2("Incorrect invocation");
};
if (NATIVE_ARRAY_BUFFER_VIEWS)
for (NAME in TypedArrayConstructorsList) {
if (global2[NAME])
setPrototypeOf(global2[NAME], TypedArray);
}
}
if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
TypedArrayPrototype = TypedArray.prototype;
if (NATIVE_ARRAY_BUFFER_VIEWS)
for (NAME in TypedArrayConstructorsList) {
if (global2[NAME])
setPrototypeOf(global2[NAME].prototype, TypedArrayPrototype);
}
}
if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
}
if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {
TYPED_ARRAY_TAG_REQUIRED = true;
defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, {
configurable: true,
get: function() {
return isObject(this) ? this[TYPED_ARRAY_TAG] : void 0;
}
});
for (NAME in TypedArrayConstructorsList)
if (global2[NAME]) {
createNonEnumerableProperty(global2[NAME], TYPED_ARRAY_TAG, NAME);
}
}
module.exports = {
NATIVE_ARRAY_BUFFER_VIEWS,
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,
aTypedArray,
aTypedArrayConstructor,
exportTypedArrayMethod,
exportTypedArrayStaticMethod,
getTypedArrayConstructor,
isView,
isTypedArray,
TypedArray,
TypedArrayPrototype
};
}
});
// node_modules/core-js/modules/es.array-buffer.is-view.js
var require_es_array_buffer_is_view = __commonJS({
"node_modules/core-js/modules/es.array-buffer.is-view.js"() {
var $2 = require_export();
var ArrayBufferViewCore = require_array_buffer_view_core();
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
$2({ target: "ArrayBuffer", stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
isView: ArrayBufferViewCore.isView
});
}
});
// node_modules/core-js/internals/a-constructor.js
var require_a_constructor = __commonJS({
"node_modules/core-js/internals/a-constructor.js"(exports, module) {
var isConstructor = require_is_constructor();
var tryToString = require_try_to_string();
var $TypeError = TypeError;
module.exports = function(argument) {
if (isConstructor(argument))
return argument;
throw $TypeError(tryToString(argument) + " is not a constructor");
};
}
});
// node_modules/core-js/internals/species-constructor.js
var require_species_constructor = __commonJS({
"node_modules/core-js/internals/species-constructor.js"(exports, module) {
var anObject = require_an_object();
var aConstructor = require_a_constructor();
var isNullOrUndefined = require_is_null_or_undefined();
var wellKnownSymbol = require_well_known_symbol();
var SPECIES = wellKnownSymbol("species");
module.exports = function(O, defaultConstructor) {
var C2 = anObject(O).constructor;
var S3;
return C2 === void 0 || isNullOrUndefined(S3 = anObject(C2)[SPECIES]) ? defaultConstructor : aConstructor(S3);
};
}
});
// node_modules/core-js/modules/es.array-buffer.slice.js
var require_es_array_buffer_slice = __commonJS({
"node_modules/core-js/modules/es.array-buffer.slice.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this_clause();
var fails = require_fails();
var ArrayBufferModule = require_array_buffer();
var anObject = require_an_object();
var toAbsoluteIndex = require_to_absolute_index();
var toLength = require_to_length();
var speciesConstructor = require_species_constructor();
var ArrayBuffer2 = ArrayBufferModule.ArrayBuffer;
var DataView2 = ArrayBufferModule.DataView;
var DataViewPrototype = DataView2.prototype;
var nativeArrayBufferSlice = uncurryThis(ArrayBuffer2.prototype.slice);
var getUint8 = uncurryThis(DataViewPrototype.getUint8);
var setUint8 = uncurryThis(DataViewPrototype.setUint8);
var INCORRECT_SLICE = fails(function() {
return !new ArrayBuffer2(2).slice(1, void 0).byteLength;
});
$2({ target: "ArrayBuffer", proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
slice: function slice(start, end) {
if (nativeArrayBufferSlice && end === void 0) {
return nativeArrayBufferSlice(anObject(this), start);
}
var length = anObject(this).byteLength;
var first = toAbsoluteIndex(start, length);
var fin = toAbsoluteIndex(end === void 0 ? length : end, length);
var result = new (speciesConstructor(this, ArrayBuffer2))(toLength(fin - first));
var viewSource = new DataView2(this);
var viewTarget = new DataView2(result);
var index = 0;
while (first < fin) {
setUint8(viewTarget, index++, getUint8(viewSource, first++));
}
return result;
}
});
}
});
// node_modules/core-js/modules/es.data-view.constructor.js
var require_es_data_view_constructor = __commonJS({
"node_modules/core-js/modules/es.data-view.constructor.js"() {
var $2 = require_export();
var ArrayBufferModule = require_array_buffer();
var NATIVE_ARRAY_BUFFER = require_array_buffer_basic_detection();
$2({ global: true, constructor: true, forced: !NATIVE_ARRAY_BUFFER }, {
DataView: ArrayBufferModule.DataView
});
}
});
// node_modules/core-js/modules/es.data-view.js
var require_es_data_view = __commonJS({
"node_modules/core-js/modules/es.data-view.js"() {
require_es_data_view_constructor();
}
});
// node_modules/core-js/modules/es.date.get-year.js
var require_es_date_get_year = __commonJS({
"node_modules/core-js/modules/es.date.get-year.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var FORCED = fails(function() {
return (/* @__PURE__ */ new Date(16e11)).getYear() !== 120;
});
var getFullYear = uncurryThis(Date.prototype.getFullYear);
$2({ target: "Date", proto: true, forced: FORCED }, {
getYear: function getYear() {
return getFullYear(this) - 1900;
}
});
}
});
// node_modules/core-js/modules/es.date.now.js
var require_es_date_now = __commonJS({
"node_modules/core-js/modules/es.date.now.js"() {
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var $Date = Date;
var thisTimeValue = uncurryThis($Date.prototype.getTime);
$2({ target: "Date", stat: true }, {
now: function now() {
return thisTimeValue(new $Date());
}
});
}
});
// node_modules/core-js/modules/es.date.set-year.js
var require_es_date_set_year = __commonJS({
"node_modules/core-js/modules/es.date.set-year.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var DatePrototype = Date.prototype;
var thisTimeValue = uncurryThis(DatePrototype.getTime);
var setFullYear = uncurryThis(DatePrototype.setFullYear);
$2({ target: "Date", proto: true }, {
setYear: function setYear(year) {
thisTimeValue(this);
var yi = toIntegerOrInfinity(year);
var yyyy = 0 <= yi && yi <= 99 ? yi + 1900 : yi;
return setFullYear(this, yyyy);
}
});
}
});
// node_modules/core-js/modules/es.date.to-gmt-string.js
var require_es_date_to_gmt_string = __commonJS({
"node_modules/core-js/modules/es.date.to-gmt-string.js"() {
var $2 = require_export();
$2({ target: "Date", proto: true }, {
toGMTString: Date.prototype.toUTCString
});
}
});
// node_modules/core-js/internals/string-repeat.js
var require_string_repeat = __commonJS({
"node_modules/core-js/internals/string-repeat.js"(exports, module) {
"use strict";
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toString = require_to_string();
var requireObjectCoercible = require_require_object_coercible();
var $RangeError = RangeError;
module.exports = function repeat(count) {
var str = toString(requireObjectCoercible(this));
var result = "";
var n6 = toIntegerOrInfinity(count);
if (n6 < 0 || n6 == Infinity)
throw $RangeError("Wrong number of repetitions");
for (; n6 > 0; (n6 >>>= 1) && (str += str))
if (n6 & 1)
result += str;
return result;
};
}
});
// node_modules/core-js/internals/string-pad.js
var require_string_pad = __commonJS({
"node_modules/core-js/internals/string-pad.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var toLength = require_to_length();
var toString = require_to_string();
var $repeat = require_string_repeat();
var requireObjectCoercible = require_require_object_coercible();
var repeat = uncurryThis($repeat);
var stringSlice = uncurryThis("".slice);
var ceil = Math.ceil;
var createMethod = function(IS_END) {
return function($this, maxLength, fillString) {
var S3 = toString(requireObjectCoercible($this));
var intMaxLength = toLength(maxLength);
var stringLength = S3.length;
var fillStr = fillString === void 0 ? " " : toString(fillString);
var fillLen, stringFiller;
if (intMaxLength <= stringLength || fillStr == "")
return S3;
fillLen = intMaxLength - stringLength;
stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
if (stringFiller.length > fillLen)
stringFiller = stringSlice(stringFiller, 0, fillLen);
return IS_END ? S3 + stringFiller : stringFiller + S3;
};
};
module.exports = {
// `String.prototype.padStart` method
// https://tc39.es/ecma262/#sec-string.prototype.padstart
start: createMethod(false),
// `String.prototype.padEnd` method
// https://tc39.es/ecma262/#sec-string.prototype.padend
end: createMethod(true)
};
}
});
// node_modules/core-js/internals/date-to-iso-string.js
var require_date_to_iso_string = __commonJS({
"node_modules/core-js/internals/date-to-iso-string.js"(exports, module) {
"use strict";
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var padStart = require_string_pad().start;
var $RangeError = RangeError;
var $isFinite = isFinite;
var abs = Math.abs;
var DatePrototype = Date.prototype;
var nativeDateToISOString = DatePrototype.toISOString;
var thisTimeValue = uncurryThis(DatePrototype.getTime);
var getUTCDate = uncurryThis(DatePrototype.getUTCDate);
var getUTCFullYear = uncurryThis(DatePrototype.getUTCFullYear);
var getUTCHours = uncurryThis(DatePrototype.getUTCHours);
var getUTCMilliseconds = uncurryThis(DatePrototype.getUTCMilliseconds);
var getUTCMinutes = uncurryThis(DatePrototype.getUTCMinutes);
var getUTCMonth = uncurryThis(DatePrototype.getUTCMonth);
var getUTCSeconds = uncurryThis(DatePrototype.getUTCSeconds);
module.exports = fails(function() {
return nativeDateToISOString.call(new Date(-5e13 - 1)) != "0385-07-25T07:06:39.999Z";
}) || !fails(function() {
nativeDateToISOString.call(/* @__PURE__ */ new Date(NaN));
}) ? function toISOString() {
if (!$isFinite(thisTimeValue(this)))
throw $RangeError("Invalid time value");
var date = this;
var year = getUTCFullYear(date);
var milliseconds = getUTCMilliseconds(date);
var sign = year < 0 ? "-" : year > 9999 ? "+" : "";
return sign + padStart(abs(year), sign ? 6 : 4, 0) + "-" + padStart(getUTCMonth(date) + 1, 2, 0) + "-" + padStart(getUTCDate(date), 2, 0) + "T" + padStart(getUTCHours(date), 2, 0) + ":" + padStart(getUTCMinutes(date), 2, 0) + ":" + padStart(getUTCSeconds(date), 2, 0) + "." + padStart(milliseconds, 3, 0) + "Z";
} : nativeDateToISOString;
}
});
// node_modules/core-js/modules/es.date.to-iso-string.js
var require_es_date_to_iso_string = __commonJS({
"node_modules/core-js/modules/es.date.to-iso-string.js"() {
var $2 = require_export();
var toISOString = require_date_to_iso_string();
$2({ target: "Date", proto: true, forced: Date.prototype.toISOString !== toISOString }, {
toISOString
});
}
});
// node_modules/core-js/modules/es.date.to-json.js
var require_es_date_to_json = __commonJS({
"node_modules/core-js/modules/es.date.to-json.js"() {
"use strict";
var $2 = require_export();
var fails = require_fails();
var toObject = require_to_object();
var toPrimitive = require_to_primitive();
var FORCED = fails(function() {
return (/* @__PURE__ */ new Date(NaN)).toJSON() !== null || Date.prototype.toJSON.call({ toISOString: function() {
return 1;
} }) !== 1;
});
$2({ target: "Date", proto: true, arity: 1, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
toJSON: function toJSON(key) {
var O = toObject(this);
var pv = toPrimitive(O, "number");
return typeof pv == "number" && !isFinite(pv) ? null : O.toISOString();
}
});
}
});
// node_modules/core-js/internals/date-to-primitive.js
var require_date_to_primitive = __commonJS({
"node_modules/core-js/internals/date-to-primitive.js"(exports, module) {
"use strict";
var anObject = require_an_object();
var ordinaryToPrimitive = require_ordinary_to_primitive();
var $TypeError = TypeError;
module.exports = function(hint) {
anObject(this);
if (hint === "string" || hint === "default")
hint = "string";
else if (hint !== "number")
throw $TypeError("Incorrect hint");
return ordinaryToPrimitive(this, hint);
};
}
});
// node_modules/core-js/modules/es.date.to-primitive.js
var require_es_date_to_primitive = __commonJS({
"node_modules/core-js/modules/es.date.to-primitive.js"() {
var hasOwn = require_has_own_property();
var defineBuiltIn = require_define_built_in();
var dateToPrimitive = require_date_to_primitive();
var wellKnownSymbol = require_well_known_symbol();
var TO_PRIMITIVE = wellKnownSymbol("toPrimitive");
var DatePrototype = Date.prototype;
if (!hasOwn(DatePrototype, TO_PRIMITIVE)) {
defineBuiltIn(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
}
}
});
// node_modules/core-js/modules/es.date.to-string.js
var require_es_date_to_string = __commonJS({
"node_modules/core-js/modules/es.date.to-string.js"() {
var uncurryThis = require_function_uncurry_this();
var defineBuiltIn = require_define_built_in();
var DatePrototype = Date.prototype;
var INVALID_DATE = "Invalid Date";
var TO_STRING = "toString";
var nativeDateToString = uncurryThis(DatePrototype[TO_STRING]);
var thisTimeValue = uncurryThis(DatePrototype.getTime);
if (String(/* @__PURE__ */ new Date(NaN)) != INVALID_DATE) {
defineBuiltIn(DatePrototype, TO_STRING, function toString() {
var value = thisTimeValue(this);
return value === value ? nativeDateToString(this) : INVALID_DATE;
});
}
}
});
// node_modules/core-js/modules/es.escape.js
var require_es_escape = __commonJS({
"node_modules/core-js/modules/es.escape.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var toString = require_to_string();
var charAt = uncurryThis("".charAt);
var charCodeAt = uncurryThis("".charCodeAt);
var exec = uncurryThis(/./.exec);
var numberToString = uncurryThis(1 .toString);
var toUpperCase = uncurryThis("".toUpperCase);
var raw = /[\w*+\-./@]/;
var hex = function(code, length) {
var result = numberToString(code, 16);
while (result.length < length)
result = "0" + result;
return result;
};
$2({ global: true }, {
escape: function escape(string) {
var str = toString(string);
var result = "";
var length = str.length;
var index = 0;
var chr, code;
while (index < length) {
chr = charAt(str, index++);
if (exec(raw, chr)) {
result += chr;
} else {
code = charCodeAt(chr, 0);
if (code < 256) {
result += "%" + hex(code, 2);
} else {
result += "%u" + toUpperCase(hex(code, 4));
}
}
}
return result;
}
});
}
});
// node_modules/core-js/internals/function-bind.js
var require_function_bind = __commonJS({
"node_modules/core-js/internals/function-bind.js"(exports, module) {
"use strict";
var uncurryThis = require_function_uncurry_this();
var aCallable = require_a_callable();
var isObject = require_is_object();
var hasOwn = require_has_own_property();
var arraySlice = require_array_slice();
var NATIVE_BIND = require_function_bind_native();
var $Function = Function;
var concat = uncurryThis([].concat);
var join = uncurryThis([].join);
var factories = {};
var construct = function(C2, argsLength, args) {
if (!hasOwn(factories, argsLength)) {
for (var list = [], i4 = 0; i4 < argsLength; i4++)
list[i4] = "a[" + i4 + "]";
factories[argsLength] = $Function("C,a", "return new C(" + join(list, ",") + ")");
}
return factories[argsLength](C2, args);
};
module.exports = NATIVE_BIND ? $Function.bind : function bind(that) {
var F = aCallable(this);
var Prototype = F.prototype;
var partArgs = arraySlice(arguments, 1);
var boundFunction = function bound() {
var args = concat(partArgs, arraySlice(arguments));
return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);
};
if (isObject(Prototype))
boundFunction.prototype = Prototype;
return boundFunction;
};
}
});
// node_modules/core-js/modules/es.function.bind.js
var require_es_function_bind = __commonJS({
"node_modules/core-js/modules/es.function.bind.js"() {
var $2 = require_export();
var bind = require_function_bind();
$2({ target: "Function", proto: true, forced: Function.bind !== bind }, {
bind
});
}
});
// node_modules/core-js/modules/es.function.has-instance.js
var require_es_function_has_instance = __commonJS({
"node_modules/core-js/modules/es.function.has-instance.js"() {
"use strict";
var isCallable = require_is_callable();
var isObject = require_is_object();
var definePropertyModule = require_object_define_property();
var getPrototypeOf = require_object_get_prototype_of();
var wellKnownSymbol = require_well_known_symbol();
var makeBuiltIn = require_make_built_in();
var HAS_INSTANCE = wellKnownSymbol("hasInstance");
var FunctionPrototype = Function.prototype;
if (!(HAS_INSTANCE in FunctionPrototype)) {
definePropertyModule.f(FunctionPrototype, HAS_INSTANCE, { value: makeBuiltIn(function(O) {
if (!isCallable(this) || !isObject(O))
return false;
var P2 = this.prototype;
if (!isObject(P2))
return O instanceof this;
while (O = getPrototypeOf(O))
if (P2 === O)
return true;
return false;
}, HAS_INSTANCE) });
}
}
});
// node_modules/core-js/modules/es.function.name.js
var require_es_function_name = __commonJS({
"node_modules/core-js/modules/es.function.name.js"() {
var DESCRIPTORS = require_descriptors();
var FUNCTION_NAME_EXISTS = require_function_name().EXISTS;
var uncurryThis = require_function_uncurry_this();
var defineBuiltInAccessor = require_define_built_in_accessor();
var FunctionPrototype = Function.prototype;
var functionToString = uncurryThis(FunctionPrototype.toString);
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
var regExpExec = uncurryThis(nameRE.exec);
var NAME = "name";
if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
defineBuiltInAccessor(FunctionPrototype, NAME, {
configurable: true,
get: function() {
try {
return regExpExec(nameRE, functionToString(this))[1];
} catch (error) {
return "";
}
}
});
}
}
});
// node_modules/core-js/modules/es.global-this.js
var require_es_global_this = __commonJS({
"node_modules/core-js/modules/es.global-this.js"() {
var $2 = require_export();
var global2 = require_global();
$2({ global: true, forced: global2.globalThis !== global2 }, {
globalThis: global2
});
}
});
// node_modules/core-js/modules/es.json.to-string-tag.js
var require_es_json_to_string_tag = __commonJS({
"node_modules/core-js/modules/es.json.to-string-tag.js"() {
var global2 = require_global();
var setToStringTag = require_set_to_string_tag();
setToStringTag(global2.JSON, "JSON", true);
}
});
// node_modules/core-js/internals/array-buffer-non-extensible.js
var require_array_buffer_non_extensible = __commonJS({
"node_modules/core-js/internals/array-buffer-non-extensible.js"(exports, module) {
var fails = require_fails();
module.exports = fails(function() {
if (typeof ArrayBuffer == "function") {
var buffer = new ArrayBuffer(8);
if (Object.isExtensible(buffer))
Object.defineProperty(buffer, "a", { value: 8 });
}
});
}
});
// node_modules/core-js/internals/object-is-extensible.js
var require_object_is_extensible = __commonJS({
"node_modules/core-js/internals/object-is-extensible.js"(exports, module) {
var fails = require_fails();
var isObject = require_is_object();
var classof = require_classof_raw();
var ARRAY_BUFFER_NON_EXTENSIBLE = require_array_buffer_non_extensible();
var $isExtensible = Object.isExtensible;
var FAILS_ON_PRIMITIVES = fails(function() {
$isExtensible(1);
});
module.exports = FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it) {
if (!isObject(it))
return false;
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == "ArrayBuffer")
return false;
return $isExtensible ? $isExtensible(it) : true;
} : $isExtensible;
}
});
// node_modules/core-js/internals/freezing.js
var require_freezing = __commonJS({
"node_modules/core-js/internals/freezing.js"(exports, module) {
var fails = require_fails();
module.exports = !fails(function() {
return Object.isExtensible(Object.preventExtensions({}));
});
}
});
// node_modules/core-js/internals/internal-metadata.js
var require_internal_metadata = __commonJS({
"node_modules/core-js/internals/internal-metadata.js"(exports, module) {
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var hiddenKeys = require_hidden_keys();
var isObject = require_is_object();
var hasOwn = require_has_own_property();
var defineProperty = require_object_define_property().f;
var getOwnPropertyNamesModule = require_object_get_own_property_names();
var getOwnPropertyNamesExternalModule = require_object_get_own_property_names_external();
var isExtensible = require_object_is_extensible();
var uid = require_uid();
var FREEZING = require_freezing();
var REQUIRED = false;
var METADATA = uid("meta");
var id = 0;
var setMetadata = function(it) {
defineProperty(it, METADATA, { value: {
objectID: "O" + id++,
// object ID
weakData: {}
// weak collections IDs
} });
};
var fastKey = function(it, create) {
if (!isObject(it))
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
if (!hasOwn(it, METADATA)) {
if (!isExtensible(it))
return "F";
if (!create)
return "E";
setMetadata(it);
}
return it[METADATA].objectID;
};
var getWeakData = function(it, create) {
if (!hasOwn(it, METADATA)) {
if (!isExtensible(it))
return true;
if (!create)
return false;
setMetadata(it);
}
return it[METADATA].weakData;
};
var onFreeze = function(it) {
if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA))
setMetadata(it);
return it;
};
var enable = function() {
meta.enable = function() {
};
REQUIRED = true;
var getOwnPropertyNames = getOwnPropertyNamesModule.f;
var splice = uncurryThis([].splice);
var test = {};
test[METADATA] = 1;
if (getOwnPropertyNames(test).length) {
getOwnPropertyNamesModule.f = function(it) {
var result = getOwnPropertyNames(it);
for (var i4 = 0, length = result.length; i4 < length; i4++) {
if (result[i4] === METADATA) {
splice(result, i4, 1);
break;
}
}
return result;
};
$2({ target: "Object", stat: true, forced: true }, {
getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
});
}
};
var meta = module.exports = {
enable,
fastKey,
getWeakData,
onFreeze
};
hiddenKeys[METADATA] = true;
}
});
// node_modules/core-js/internals/collection.js
var require_collection = __commonJS({
"node_modules/core-js/internals/collection.js"(exports, module) {
"use strict";
var $2 = require_export();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var isForced = require_is_forced();
var defineBuiltIn = require_define_built_in();
var InternalMetadataModule = require_internal_metadata();
var iterate = require_iterate();
var anInstance = require_an_instance();
var isCallable = require_is_callable();
var isNullOrUndefined = require_is_null_or_undefined();
var isObject = require_is_object();
var fails = require_fails();
var checkCorrectnessOfIteration = require_check_correctness_of_iteration();
var setToStringTag = require_set_to_string_tag();
var inheritIfRequired = require_inherit_if_required();
module.exports = function(CONSTRUCTOR_NAME, wrapper, common) {
var IS_MAP = CONSTRUCTOR_NAME.indexOf("Map") !== -1;
var IS_WEAK = CONSTRUCTOR_NAME.indexOf("Weak") !== -1;
var ADDER = IS_MAP ? "set" : "add";
var NativeConstructor = global2[CONSTRUCTOR_NAME];
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
var Constructor = NativeConstructor;
var exported = {};
var fixMethod = function(KEY) {
var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);
defineBuiltIn(
NativePrototype,
KEY,
KEY == "add" ? function add(value) {
uncurriedNativeMethod(this, value === 0 ? 0 : value);
return this;
} : KEY == "delete" ? function(key) {
return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
} : KEY == "get" ? function get(key) {
return IS_WEAK && !isObject(key) ? void 0 : uncurriedNativeMethod(this, key === 0 ? 0 : key);
} : KEY == "has" ? function has(key) {
return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
} : function set(key, value) {
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
return this;
}
);
};
var REPLACE = isForced(
CONSTRUCTOR_NAME,
!isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function() {
new NativeConstructor().entries().next();
}))
);
if (REPLACE) {
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
InternalMetadataModule.enable();
} else if (isForced(CONSTRUCTOR_NAME, true)) {
var instance = new Constructor();
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
var THROWS_ON_PRIMITIVES = fails(function() {
instance.has(1);
});
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function(iterable) {
new NativeConstructor(iterable);
});
var BUGGY_ZERO = !IS_WEAK && fails(function() {
var $instance = new NativeConstructor();
var index = 5;
while (index--)
$instance[ADDER](index, index);
return !$instance.has(-0);
});
if (!ACCEPT_ITERABLES) {
Constructor = wrapper(function(dummy, iterable) {
anInstance(dummy, NativePrototype);
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
if (!isNullOrUndefined(iterable))
iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
return that;
});
Constructor.prototype = NativePrototype;
NativePrototype.constructor = Constructor;
}
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
fixMethod("delete");
fixMethod("has");
IS_MAP && fixMethod("get");
}
if (BUGGY_ZERO || HASNT_CHAINING)
fixMethod(ADDER);
if (IS_WEAK && NativePrototype.clear)
delete NativePrototype.clear;
}
exported[CONSTRUCTOR_NAME] = Constructor;
$2({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);
setToStringTag(Constructor, CONSTRUCTOR_NAME);
if (!IS_WEAK)
common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
return Constructor;
};
}
});
// node_modules/core-js/internals/collection-strong.js
var require_collection_strong = __commonJS({
"node_modules/core-js/internals/collection-strong.js"(exports, module) {
"use strict";
var create = require_object_create();
var defineBuiltInAccessor = require_define_built_in_accessor();
var defineBuiltIns = require_define_built_ins();
var bind = require_function_bind_context();
var anInstance = require_an_instance();
var isNullOrUndefined = require_is_null_or_undefined();
var iterate = require_iterate();
var defineIterator = require_iterator_define();
var createIterResultObject = require_create_iter_result_object();
var setSpecies = require_set_species();
var DESCRIPTORS = require_descriptors();
var fastKey = require_internal_metadata().fastKey;
var InternalStateModule = require_internal_state();
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
module.exports = {
getConstructor: function(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var Constructor = wrapper(function(that, iterable) {
anInstance(that, Prototype);
setInternalState(that, {
type: CONSTRUCTOR_NAME,
index: create(null),
first: void 0,
last: void 0,
size: 0
});
if (!DESCRIPTORS)
that.size = 0;
if (!isNullOrUndefined(iterable))
iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
});
var Prototype = Constructor.prototype;
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
var define2 = function(that, key, value) {
var state2 = getInternalState(that);
var entry = getEntry(that, key);
var previous, index;
if (entry) {
entry.value = value;
} else {
state2.last = entry = {
index: index = fastKey(key, true),
key,
value,
previous: previous = state2.last,
next: void 0,
removed: false
};
if (!state2.first)
state2.first = entry;
if (previous)
previous.next = entry;
if (DESCRIPTORS)
state2.size++;
else
that.size++;
if (index !== "F")
state2.index[index] = entry;
}
return that;
};
var getEntry = function(that, key) {
var state2 = getInternalState(that);
var index = fastKey(key);
var entry;
if (index !== "F")
return state2.index[index];
for (entry = state2.first; entry; entry = entry.next) {
if (entry.key == key)
return entry;
}
};
defineBuiltIns(Prototype, {
// `{ Map, Set }.prototype.clear()` methods
// https://tc39.es/ecma262/#sec-map.prototype.clear
// https://tc39.es/ecma262/#sec-set.prototype.clear
clear: function clear() {
var that = this;
var state2 = getInternalState(that);
var data = state2.index;
var entry = state2.first;
while (entry) {
entry.removed = true;
if (entry.previous)
entry.previous = entry.previous.next = void 0;
delete data[entry.index];
entry = entry.next;
}
state2.first = state2.last = void 0;
if (DESCRIPTORS)
state2.size = 0;
else
that.size = 0;
},
// `{ Map, Set }.prototype.delete(key)` methods
// https://tc39.es/ecma262/#sec-map.prototype.delete
// https://tc39.es/ecma262/#sec-set.prototype.delete
"delete": function(key) {
var that = this;
var state2 = getInternalState(that);
var entry = getEntry(that, key);
if (entry) {
var next = entry.next;
var prev = entry.previous;
delete state2.index[entry.index];
entry.removed = true;
if (prev)
prev.next = next;
if (next)
next.previous = prev;
if (state2.first == entry)
state2.first = next;
if (state2.last == entry)
state2.last = prev;
if (DESCRIPTORS)
state2.size--;
else
that.size--;
}
return !!entry;
},
// `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods
// https://tc39.es/ecma262/#sec-map.prototype.foreach
// https://tc39.es/ecma262/#sec-set.prototype.foreach
forEach: function forEach(callbackfn) {
var state2 = getInternalState(this);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : void 0);
var entry;
while (entry = entry ? entry.next : state2.first) {
boundFunction(entry.value, entry.key, this);
while (entry && entry.removed)
entry = entry.previous;
}
},
// `{ Map, Set}.prototype.has(key)` methods
// https://tc39.es/ecma262/#sec-map.prototype.has
// https://tc39.es/ecma262/#sec-set.prototype.has
has: function has(key) {
return !!getEntry(this, key);
}
});
defineBuiltIns(Prototype, IS_MAP ? {
// `Map.prototype.get(key)` method
// https://tc39.es/ecma262/#sec-map.prototype.get
get: function get(key) {
var entry = getEntry(this, key);
return entry && entry.value;
},
// `Map.prototype.set(key, value)` method
// https://tc39.es/ecma262/#sec-map.prototype.set
set: function set(key, value) {
return define2(this, key === 0 ? 0 : key, value);
}
} : {
// `Set.prototype.add(value)` method
// https://tc39.es/ecma262/#sec-set.prototype.add
add: function add(value) {
return define2(this, value = value === 0 ? 0 : value, value);
}
});
if (DESCRIPTORS)
defineBuiltInAccessor(Prototype, "size", {
configurable: true,
get: function() {
return getInternalState(this).size;
}
});
return Constructor;
},
setStrong: function(Constructor, CONSTRUCTOR_NAME, IS_MAP) {
var ITERATOR_NAME = CONSTRUCTOR_NAME + " Iterator";
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
defineIterator(Constructor, CONSTRUCTOR_NAME, function(iterated, kind) {
setInternalState(this, {
type: ITERATOR_NAME,
target: iterated,
state: getInternalCollectionState(iterated),
kind,
last: void 0
});
}, function() {
var state2 = getInternalIteratorState(this);
var kind = state2.kind;
var entry = state2.last;
while (entry && entry.removed)
entry = entry.previous;
if (!state2.target || !(state2.last = entry = entry ? entry.next : state2.state.first)) {
state2.target = void 0;
return createIterResultObject(void 0, true);
}
if (kind == "keys")
return createIterResultObject(entry.key, false);
if (kind == "values")
return createIterResultObject(entry.value, false);
return createIterResultObject([entry.key, entry.value], false);
}, IS_MAP ? "entries" : "values", !IS_MAP, true);
setSpecies(CONSTRUCTOR_NAME);
}
};
}
});
// node_modules/core-js/modules/es.map.constructor.js
var require_es_map_constructor = __commonJS({
"node_modules/core-js/modules/es.map.constructor.js"() {
"use strict";
var collection = require_collection();
var collectionStrong = require_collection_strong();
collection("Map", function(init) {
return function Map2() {
return init(this, arguments.length ? arguments[0] : void 0);
};
}, collectionStrong);
}
});
// node_modules/core-js/modules/es.map.js
var require_es_map = __commonJS({
"node_modules/core-js/modules/es.map.js"() {
require_es_map_constructor();
}
});
// node_modules/core-js/internals/math-log1p.js
var require_math_log1p = __commonJS({
"node_modules/core-js/internals/math-log1p.js"(exports, module) {
var log = Math.log;
module.exports = Math.log1p || function log1p(x2) {
var n6 = +x2;
return n6 > -1e-8 && n6 < 1e-8 ? n6 - n6 * n6 / 2 : log(1 + n6);
};
}
});
// node_modules/core-js/modules/es.math.acosh.js
var require_es_math_acosh = __commonJS({
"node_modules/core-js/modules/es.math.acosh.js"() {
var $2 = require_export();
var log1p = require_math_log1p();
var $acosh = Math.acosh;
var log = Math.log;
var sqrt = Math.sqrt;
var LN2 = Math.LN2;
var FORCED = !$acosh || Math.floor($acosh(Number.MAX_VALUE)) != 710 || $acosh(Infinity) != Infinity;
$2({ target: "Math", stat: true, forced: FORCED }, {
acosh: function acosh(x2) {
var n6 = +x2;
return n6 < 1 ? NaN : n6 > 9490626562425156e-8 ? log(n6) + LN2 : log1p(n6 - 1 + sqrt(n6 - 1) * sqrt(n6 + 1));
}
});
}
});
// node_modules/core-js/modules/es.math.asinh.js
var require_es_math_asinh = __commonJS({
"node_modules/core-js/modules/es.math.asinh.js"() {
var $2 = require_export();
var $asinh = Math.asinh;
var log = Math.log;
var sqrt = Math.sqrt;
function asinh(x2) {
var n6 = +x2;
return !isFinite(n6) || n6 == 0 ? n6 : n6 < 0 ? -asinh(-n6) : log(n6 + sqrt(n6 * n6 + 1));
}
var FORCED = !($asinh && 1 / $asinh(0) > 0);
$2({ target: "Math", stat: true, forced: FORCED }, {
asinh
});
}
});
// node_modules/core-js/modules/es.math.atanh.js
var require_es_math_atanh = __commonJS({
"node_modules/core-js/modules/es.math.atanh.js"() {
var $2 = require_export();
var $atanh = Math.atanh;
var log = Math.log;
var FORCED = !($atanh && 1 / $atanh(-0) < 0);
$2({ target: "Math", stat: true, forced: FORCED }, {
atanh: function atanh(x2) {
var n6 = +x2;
return n6 == 0 ? n6 : log((1 + n6) / (1 - n6)) / 2;
}
});
}
});
// node_modules/core-js/internals/math-sign.js
var require_math_sign = __commonJS({
"node_modules/core-js/internals/math-sign.js"(exports, module) {
module.exports = Math.sign || function sign(x2) {
var n6 = +x2;
return n6 == 0 || n6 != n6 ? n6 : n6 < 0 ? -1 : 1;
};
}
});
// node_modules/core-js/modules/es.math.cbrt.js
var require_es_math_cbrt = __commonJS({
"node_modules/core-js/modules/es.math.cbrt.js"() {
var $2 = require_export();
var sign = require_math_sign();
var abs = Math.abs;
var pow = Math.pow;
$2({ target: "Math", stat: true }, {
cbrt: function cbrt(x2) {
var n6 = +x2;
return sign(n6) * pow(abs(n6), 1 / 3);
}
});
}
});
// node_modules/core-js/modules/es.math.clz32.js
var require_es_math_clz32 = __commonJS({
"node_modules/core-js/modules/es.math.clz32.js"() {
var $2 = require_export();
var floor = Math.floor;
var log = Math.log;
var LOG2E = Math.LOG2E;
$2({ target: "Math", stat: true }, {
clz32: function clz32(x2) {
var n6 = x2 >>> 0;
return n6 ? 31 - floor(log(n6 + 0.5) * LOG2E) : 32;
}
});
}
});
// node_modules/core-js/internals/math-expm1.js
var require_math_expm1 = __commonJS({
"node_modules/core-js/internals/math-expm1.js"(exports, module) {
var $expm1 = Math.expm1;
var exp = Math.exp;
module.exports = !$expm1 || $expm1(10) > 22025.465794806718 || $expm1(10) < 22025.465794806718 || $expm1(-2e-17) != -2e-17 ? function expm1(x2) {
var n6 = +x2;
return n6 == 0 ? n6 : n6 > -1e-6 && n6 < 1e-6 ? n6 + n6 * n6 / 2 : exp(n6) - 1;
} : $expm1;
}
});
// node_modules/core-js/modules/es.math.cosh.js
var require_es_math_cosh = __commonJS({
"node_modules/core-js/modules/es.math.cosh.js"() {
var $2 = require_export();
var expm1 = require_math_expm1();
var $cosh = Math.cosh;
var abs = Math.abs;
var E2 = Math.E;
var FORCED = !$cosh || $cosh(710) === Infinity;
$2({ target: "Math", stat: true, forced: FORCED }, {
cosh: function cosh(x2) {
var t4 = expm1(abs(x2) - 1) + 1;
return (t4 + 1 / (t4 * E2 * E2)) * (E2 / 2);
}
});
}
});
// node_modules/core-js/modules/es.math.expm1.js
var require_es_math_expm1 = __commonJS({
"node_modules/core-js/modules/es.math.expm1.js"() {
var $2 = require_export();
var expm1 = require_math_expm1();
$2({ target: "Math", stat: true, forced: expm1 != Math.expm1 }, { expm1 });
}
});
// node_modules/core-js/internals/math-fround.js
var require_math_fround = __commonJS({
"node_modules/core-js/internals/math-fround.js"(exports, module) {
var sign = require_math_sign();
var abs = Math.abs;
var pow = Math.pow;
var EPSILON = pow(2, -52);
var EPSILON32 = pow(2, -23);
var MAX32 = pow(2, 127) * (2 - EPSILON32);
var MIN32 = pow(2, -126);
var roundTiesToEven = function(n6) {
return n6 + 1 / EPSILON - 1 / EPSILON;
};
module.exports = Math.fround || function fround(x2) {
var n6 = +x2;
var $abs = abs(n6);
var $sign = sign(n6);
var a3, result;
if ($abs < MIN32)
return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
a3 = (1 + EPSILON32 / EPSILON) * $abs;
result = a3 - (a3 - $abs);
if (result > MAX32 || result != result)
return $sign * Infinity;
return $sign * result;
};
}
});
// node_modules/core-js/modules/es.math.fround.js
var require_es_math_fround = __commonJS({
"node_modules/core-js/modules/es.math.fround.js"() {
var $2 = require_export();
var fround = require_math_fround();
$2({ target: "Math", stat: true }, { fround });
}
});
// node_modules/core-js/modules/es.math.hypot.js
var require_es_math_hypot = __commonJS({
"node_modules/core-js/modules/es.math.hypot.js"() {
var $2 = require_export();
var $hypot = Math.hypot;
var abs = Math.abs;
var sqrt = Math.sqrt;
var FORCED = !!$hypot && $hypot(Infinity, NaN) !== Infinity;
$2({ target: "Math", stat: true, arity: 2, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
hypot: function hypot(value1, value2) {
var sum = 0;
var i4 = 0;
var aLen = arguments.length;
var larg = 0;
var arg, div;
while (i4 < aLen) {
arg = abs(arguments[i4++]);
if (larg < arg) {
div = larg / arg;
sum = sum * div * div + 1;
larg = arg;
} else if (arg > 0) {
div = arg / larg;
sum += div * div;
} else
sum += arg;
}
return larg === Infinity ? Infinity : larg * sqrt(sum);
}
});
}
});
// node_modules/core-js/modules/es.math.imul.js
var require_es_math_imul = __commonJS({
"node_modules/core-js/modules/es.math.imul.js"() {
var $2 = require_export();
var fails = require_fails();
var $imul = Math.imul;
var FORCED = fails(function() {
return $imul(4294967295, 5) != -5 || $imul.length != 2;
});
$2({ target: "Math", stat: true, forced: FORCED }, {
imul: function imul(x2, y2) {
var UINT16 = 65535;
var xn = +x2;
var yn = +y2;
var xl = UINT16 & xn;
var yl = UINT16 & yn;
return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);
}
});
}
});
// node_modules/core-js/internals/math-log10.js
var require_math_log10 = __commonJS({
"node_modules/core-js/internals/math-log10.js"(exports, module) {
var log = Math.log;
var LOG10E = Math.LOG10E;
module.exports = Math.log10 || function log10(x2) {
return log(x2) * LOG10E;
};
}
});
// node_modules/core-js/modules/es.math.log10.js
var require_es_math_log10 = __commonJS({
"node_modules/core-js/modules/es.math.log10.js"() {
var $2 = require_export();
var log10 = require_math_log10();
$2({ target: "Math", stat: true }, {
log10
});
}
});
// node_modules/core-js/modules/es.math.log1p.js
var require_es_math_log1p = __commonJS({
"node_modules/core-js/modules/es.math.log1p.js"() {
var $2 = require_export();
var log1p = require_math_log1p();
$2({ target: "Math", stat: true }, { log1p });
}
});
// node_modules/core-js/modules/es.math.log2.js
var require_es_math_log2 = __commonJS({
"node_modules/core-js/modules/es.math.log2.js"() {
var $2 = require_export();
var log = Math.log;
var LN2 = Math.LN2;
$2({ target: "Math", stat: true }, {
log2: function log2(x2) {
return log(x2) / LN2;
}
});
}
});
// node_modules/core-js/modules/es.math.sign.js
var require_es_math_sign = __commonJS({
"node_modules/core-js/modules/es.math.sign.js"() {
var $2 = require_export();
var sign = require_math_sign();
$2({ target: "Math", stat: true }, {
sign
});
}
});
// node_modules/core-js/modules/es.math.sinh.js
var require_es_math_sinh = __commonJS({
"node_modules/core-js/modules/es.math.sinh.js"() {
var $2 = require_export();
var fails = require_fails();
var expm1 = require_math_expm1();
var abs = Math.abs;
var exp = Math.exp;
var E2 = Math.E;
var FORCED = fails(function() {
return Math.sinh(-2e-17) != -2e-17;
});
$2({ target: "Math", stat: true, forced: FORCED }, {
sinh: function sinh(x2) {
var n6 = +x2;
return abs(n6) < 1 ? (expm1(n6) - expm1(-n6)) / 2 : (exp(n6 - 1) - exp(-n6 - 1)) * (E2 / 2);
}
});
}
});
// node_modules/core-js/modules/es.math.tanh.js
var require_es_math_tanh = __commonJS({
"node_modules/core-js/modules/es.math.tanh.js"() {
var $2 = require_export();
var expm1 = require_math_expm1();
var exp = Math.exp;
$2({ target: "Math", stat: true }, {
tanh: function tanh(x2) {
var n6 = +x2;
var a3 = expm1(n6);
var b2 = expm1(-n6);
return a3 == Infinity ? 1 : b2 == Infinity ? -1 : (a3 - b2) / (exp(n6) + exp(-n6));
}
});
}
});
// node_modules/core-js/modules/es.math.to-string-tag.js
var require_es_math_to_string_tag = __commonJS({
"node_modules/core-js/modules/es.math.to-string-tag.js"() {
var setToStringTag = require_set_to_string_tag();
setToStringTag(Math, "Math", true);
}
});
// node_modules/core-js/modules/es.math.trunc.js
var require_es_math_trunc = __commonJS({
"node_modules/core-js/modules/es.math.trunc.js"() {
var $2 = require_export();
var trunc = require_math_trunc();
$2({ target: "Math", stat: true }, {
trunc
});
}
});
// node_modules/core-js/internals/this-number-value.js
var require_this_number_value = __commonJS({
"node_modules/core-js/internals/this-number-value.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
module.exports = uncurryThis(1 .valueOf);
}
});
// node_modules/core-js/internals/whitespaces.js
var require_whitespaces = __commonJS({
"node_modules/core-js/internals/whitespaces.js"(exports, module) {
module.exports = " \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF";
}
});
// node_modules/core-js/internals/string-trim.js
var require_string_trim = __commonJS({
"node_modules/core-js/internals/string-trim.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var toString = require_to_string();
var whitespaces = require_whitespaces();
var replace = uncurryThis("".replace);
var ltrim = RegExp("^[" + whitespaces + "]+");
var rtrim = RegExp("(^|[^" + whitespaces + "])[" + whitespaces + "]+$");
var createMethod = function(TYPE) {
return function($this) {
var string = toString(requireObjectCoercible($this));
if (TYPE & 1)
string = replace(string, ltrim, "");
if (TYPE & 2)
string = replace(string, rtrim, "$1");
return string;
};
};
module.exports = {
// `String.prototype.{ trimLeft, trimStart }` methods
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
start: createMethod(1),
// `String.prototype.{ trimRight, trimEnd }` methods
// https://tc39.es/ecma262/#sec-string.prototype.trimend
end: createMethod(2),
// `String.prototype.trim` method
// https://tc39.es/ecma262/#sec-string.prototype.trim
trim: createMethod(3)
};
}
});
// node_modules/core-js/modules/es.number.constructor.js
var require_es_number_constructor = __commonJS({
"node_modules/core-js/modules/es.number.constructor.js"() {
"use strict";
var $2 = require_export();
var IS_PURE = require_is_pure();
var DESCRIPTORS = require_descriptors();
var global2 = require_global();
var path = require_path();
var uncurryThis = require_function_uncurry_this();
var isForced = require_is_forced();
var hasOwn = require_has_own_property();
var inheritIfRequired = require_inherit_if_required();
var isPrototypeOf = require_object_is_prototype_of();
var isSymbol = require_is_symbol();
var toPrimitive = require_to_primitive();
var fails = require_fails();
var getOwnPropertyNames = require_object_get_own_property_names().f;
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var defineProperty = require_object_define_property().f;
var thisNumberValue = require_this_number_value();
var trim = require_string_trim().trim;
var NUMBER = "Number";
var NativeNumber = global2[NUMBER];
var PureNumberNamespace = path[NUMBER];
var NumberPrototype = NativeNumber.prototype;
var TypeError2 = global2.TypeError;
var stringSlice = uncurryThis("".slice);
var charCodeAt = uncurryThis("".charCodeAt);
var toNumeric = function(value) {
var primValue = toPrimitive(value, "number");
return typeof primValue == "bigint" ? primValue : toNumber(primValue);
};
var toNumber = function(argument) {
var it = toPrimitive(argument, "number");
var first, third, radix, maxCode, digits, length, index, code;
if (isSymbol(it))
throw TypeError2("Cannot convert a Symbol value to a number");
if (typeof it == "string" && it.length > 2) {
it = trim(it);
first = charCodeAt(it, 0);
if (first === 43 || first === 45) {
third = charCodeAt(it, 2);
if (third === 88 || third === 120)
return NaN;
} else if (first === 48) {
switch (charCodeAt(it, 1)) {
case 66:
case 98:
radix = 2;
maxCode = 49;
break;
case 79:
case 111:
radix = 8;
maxCode = 55;
break;
default:
return +it;
}
digits = stringSlice(it, 2);
length = digits.length;
for (index = 0; index < length; index++) {
code = charCodeAt(digits, index);
if (code < 48 || code > maxCode)
return NaN;
}
return parseInt(digits, radix);
}
}
return +it;
};
var FORCED = isForced(NUMBER, !NativeNumber(" 0o1") || !NativeNumber("0b1") || NativeNumber("+0x1"));
var calledWithNew = function(dummy) {
return isPrototypeOf(NumberPrototype, dummy) && fails(function() {
thisNumberValue(dummy);
});
};
var NumberWrapper = function Number2(value) {
var n6 = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
return calledWithNew(this) ? inheritIfRequired(Object(n6), this, NumberWrapper) : n6;
};
NumberWrapper.prototype = NumberPrototype;
if (FORCED && !IS_PURE)
NumberPrototype.constructor = NumberWrapper;
$2({ global: true, constructor: true, wrap: true, forced: FORCED }, {
Number: NumberWrapper
});
var copyConstructorProperties = function(target, source) {
for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (
// ES3:
"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(",")
), j2 = 0, key; keys.length > j2; j2++) {
if (hasOwn(source, key = keys[j2]) && !hasOwn(target, key)) {
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
}
}
};
if (IS_PURE && PureNumberNamespace)
copyConstructorProperties(path[NUMBER], PureNumberNamespace);
if (FORCED || IS_PURE)
copyConstructorProperties(path[NUMBER], NativeNumber);
}
});
// node_modules/core-js/modules/es.number.epsilon.js
var require_es_number_epsilon = __commonJS({
"node_modules/core-js/modules/es.number.epsilon.js"() {
var $2 = require_export();
$2({ target: "Number", stat: true, nonConfigurable: true, nonWritable: true }, {
EPSILON: Math.pow(2, -52)
});
}
});
// node_modules/core-js/internals/number-is-finite.js
var require_number_is_finite = __commonJS({
"node_modules/core-js/internals/number-is-finite.js"(exports, module) {
var global2 = require_global();
var globalIsFinite = global2.isFinite;
module.exports = Number.isFinite || function isFinite2(it) {
return typeof it == "number" && globalIsFinite(it);
};
}
});
// node_modules/core-js/modules/es.number.is-finite.js
var require_es_number_is_finite = __commonJS({
"node_modules/core-js/modules/es.number.is-finite.js"() {
var $2 = require_export();
var numberIsFinite = require_number_is_finite();
$2({ target: "Number", stat: true }, { isFinite: numberIsFinite });
}
});
// node_modules/core-js/internals/is-integral-number.js
var require_is_integral_number = __commonJS({
"node_modules/core-js/internals/is-integral-number.js"(exports, module) {
var isObject = require_is_object();
var floor = Math.floor;
module.exports = Number.isInteger || function isInteger(it) {
return !isObject(it) && isFinite(it) && floor(it) === it;
};
}
});
// node_modules/core-js/modules/es.number.is-integer.js
var require_es_number_is_integer = __commonJS({
"node_modules/core-js/modules/es.number.is-integer.js"() {
var $2 = require_export();
var isIntegralNumber = require_is_integral_number();
$2({ target: "Number", stat: true }, {
isInteger: isIntegralNumber
});
}
});
// node_modules/core-js/modules/es.number.is-nan.js
var require_es_number_is_nan = __commonJS({
"node_modules/core-js/modules/es.number.is-nan.js"() {
var $2 = require_export();
$2({ target: "Number", stat: true }, {
isNaN: function isNaN2(number) {
return number != number;
}
});
}
});
// node_modules/core-js/modules/es.number.is-safe-integer.js
var require_es_number_is_safe_integer = __commonJS({
"node_modules/core-js/modules/es.number.is-safe-integer.js"() {
var $2 = require_export();
var isIntegralNumber = require_is_integral_number();
var abs = Math.abs;
$2({ target: "Number", stat: true }, {
isSafeInteger: function isSafeInteger(number) {
return isIntegralNumber(number) && abs(number) <= 9007199254740991;
}
});
}
});
// node_modules/core-js/modules/es.number.max-safe-integer.js
var require_es_number_max_safe_integer = __commonJS({
"node_modules/core-js/modules/es.number.max-safe-integer.js"() {
var $2 = require_export();
$2({ target: "Number", stat: true, nonConfigurable: true, nonWritable: true }, {
MAX_SAFE_INTEGER: 9007199254740991
});
}
});
// node_modules/core-js/modules/es.number.min-safe-integer.js
var require_es_number_min_safe_integer = __commonJS({
"node_modules/core-js/modules/es.number.min-safe-integer.js"() {
var $2 = require_export();
$2({ target: "Number", stat: true, nonConfigurable: true, nonWritable: true }, {
MIN_SAFE_INTEGER: -9007199254740991
});
}
});
// node_modules/core-js/internals/number-parse-float.js
var require_number_parse_float = __commonJS({
"node_modules/core-js/internals/number-parse-float.js"(exports, module) {
var global2 = require_global();
var fails = require_fails();
var uncurryThis = require_function_uncurry_this();
var toString = require_to_string();
var trim = require_string_trim().trim;
var whitespaces = require_whitespaces();
var charAt = uncurryThis("".charAt);
var $parseFloat = global2.parseFloat;
var Symbol2 = global2.Symbol;
var ITERATOR = Symbol2 && Symbol2.iterator;
var FORCED = 1 / $parseFloat(whitespaces + "-0") !== -Infinity || ITERATOR && !fails(function() {
$parseFloat(Object(ITERATOR));
});
module.exports = FORCED ? function parseFloat2(string) {
var trimmedString = trim(toString(string));
var result = $parseFloat(trimmedString);
return result === 0 && charAt(trimmedString, 0) == "-" ? -0 : result;
} : $parseFloat;
}
});
// node_modules/core-js/modules/es.number.parse-float.js
var require_es_number_parse_float = __commonJS({
"node_modules/core-js/modules/es.number.parse-float.js"() {
var $2 = require_export();
var parseFloat2 = require_number_parse_float();
$2({ target: "Number", stat: true, forced: Number.parseFloat != parseFloat2 }, {
parseFloat: parseFloat2
});
}
});
// node_modules/core-js/internals/number-parse-int.js
var require_number_parse_int = __commonJS({
"node_modules/core-js/internals/number-parse-int.js"(exports, module) {
var global2 = require_global();
var fails = require_fails();
var uncurryThis = require_function_uncurry_this();
var toString = require_to_string();
var trim = require_string_trim().trim;
var whitespaces = require_whitespaces();
var $parseInt = global2.parseInt;
var Symbol2 = global2.Symbol;
var ITERATOR = Symbol2 && Symbol2.iterator;
var hex = /^[+-]?0x/i;
var exec = uncurryThis(hex.exec);
var FORCED = $parseInt(whitespaces + "08") !== 8 || $parseInt(whitespaces + "0x16") !== 22 || ITERATOR && !fails(function() {
$parseInt(Object(ITERATOR));
});
module.exports = FORCED ? function parseInt2(string, radix) {
var S3 = trim(toString(string));
return $parseInt(S3, radix >>> 0 || (exec(hex, S3) ? 16 : 10));
} : $parseInt;
}
});
// node_modules/core-js/modules/es.number.parse-int.js
var require_es_number_parse_int = __commonJS({
"node_modules/core-js/modules/es.number.parse-int.js"() {
var $2 = require_export();
var parseInt2 = require_number_parse_int();
$2({ target: "Number", stat: true, forced: Number.parseInt != parseInt2 }, {
parseInt: parseInt2
});
}
});
// node_modules/core-js/modules/es.number.to-exponential.js
var require_es_number_to_exponential = __commonJS({
"node_modules/core-js/modules/es.number.to-exponential.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var thisNumberValue = require_this_number_value();
var $repeat = require_string_repeat();
var log10 = require_math_log10();
var fails = require_fails();
var $RangeError = RangeError;
var $String = String;
var $isFinite = isFinite;
var abs = Math.abs;
var floor = Math.floor;
var pow = Math.pow;
var round = Math.round;
var nativeToExponential = uncurryThis(1 .toExponential);
var repeat = uncurryThis($repeat);
var stringSlice = uncurryThis("".slice);
var ROUNDS_PROPERLY = nativeToExponential(-69e-12, 4) === "-6.9000e-11" && nativeToExponential(1.255, 2) === "1.25e+0" && nativeToExponential(12345, 3) === "1.235e+4" && nativeToExponential(25, 0) === "3e+1";
var throwsOnInfinityFraction = function() {
return fails(function() {
nativeToExponential(1, Infinity);
}) && fails(function() {
nativeToExponential(1, -Infinity);
});
};
var properNonFiniteThisCheck = function() {
return !fails(function() {
nativeToExponential(Infinity, Infinity);
nativeToExponential(NaN, Infinity);
});
};
var FORCED = !ROUNDS_PROPERLY || !throwsOnInfinityFraction() || !properNonFiniteThisCheck();
$2({ target: "Number", proto: true, forced: FORCED }, {
toExponential: function toExponential(fractionDigits) {
var x2 = thisNumberValue(this);
if (fractionDigits === void 0)
return nativeToExponential(x2);
var f2 = toIntegerOrInfinity(fractionDigits);
if (!$isFinite(x2))
return String(x2);
if (f2 < 0 || f2 > 20)
throw $RangeError("Incorrect fraction digits");
if (ROUNDS_PROPERLY)
return nativeToExponential(x2, f2);
var s5 = "";
var m2 = "";
var e7 = 0;
var c3 = "";
var d3 = "";
if (x2 < 0) {
s5 = "-";
x2 = -x2;
}
if (x2 === 0) {
e7 = 0;
m2 = repeat("0", f2 + 1);
} else {
var l5 = log10(x2);
e7 = floor(l5);
var n6 = 0;
var w2 = pow(10, e7 - f2);
n6 = round(x2 / w2);
if (2 * x2 >= (2 * n6 + 1) * w2) {
n6 += 1;
}
if (n6 >= pow(10, f2 + 1)) {
n6 /= 10;
e7 += 1;
}
m2 = $String(n6);
}
if (f2 !== 0) {
m2 = stringSlice(m2, 0, 1) + "." + stringSlice(m2, 1);
}
if (e7 === 0) {
c3 = "+";
d3 = "0";
} else {
c3 = e7 > 0 ? "+" : "-";
d3 = $String(abs(e7));
}
m2 += "e" + c3 + d3;
return s5 + m2;
}
});
}
});
// node_modules/core-js/modules/es.number.to-fixed.js
var require_es_number_to_fixed = __commonJS({
"node_modules/core-js/modules/es.number.to-fixed.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var thisNumberValue = require_this_number_value();
var $repeat = require_string_repeat();
var fails = require_fails();
var $RangeError = RangeError;
var $String = String;
var floor = Math.floor;
var repeat = uncurryThis($repeat);
var stringSlice = uncurryThis("".slice);
var nativeToFixed = uncurryThis(1 .toFixed);
var pow = function(x2, n6, acc) {
return n6 === 0 ? acc : n6 % 2 === 1 ? pow(x2, n6 - 1, acc * x2) : pow(x2 * x2, n6 / 2, acc);
};
var log = function(x2) {
var n6 = 0;
var x22 = x2;
while (x22 >= 4096) {
n6 += 12;
x22 /= 4096;
}
while (x22 >= 2) {
n6 += 1;
x22 /= 2;
}
return n6;
};
var multiply = function(data, n6, c3) {
var index = -1;
var c22 = c3;
while (++index < 6) {
c22 += n6 * data[index];
data[index] = c22 % 1e7;
c22 = floor(c22 / 1e7);
}
};
var divide = function(data, n6) {
var index = 6;
var c3 = 0;
while (--index >= 0) {
c3 += data[index];
data[index] = floor(c3 / n6);
c3 = c3 % n6 * 1e7;
}
};
var dataToString = function(data) {
var index = 6;
var s5 = "";
while (--index >= 0) {
if (s5 !== "" || index === 0 || data[index] !== 0) {
var t4 = $String(data[index]);
s5 = s5 === "" ? t4 : s5 + repeat("0", 7 - t4.length) + t4;
}
}
return s5;
};
var FORCED = fails(function() {
return nativeToFixed(8e-5, 3) !== "0.000" || nativeToFixed(0.9, 0) !== "1" || nativeToFixed(1.255, 2) !== "1.25" || nativeToFixed(1000000000000000100, 0) !== "1000000000000000128";
}) || !fails(function() {
nativeToFixed({});
});
$2({ target: "Number", proto: true, forced: FORCED }, {
toFixed: function toFixed(fractionDigits) {
var number = thisNumberValue(this);
var fractDigits = toIntegerOrInfinity(fractionDigits);
var data = [0, 0, 0, 0, 0, 0];
var sign = "";
var result = "0";
var e7, z2, j2, k2;
if (fractDigits < 0 || fractDigits > 20)
throw $RangeError("Incorrect fraction digits");
if (number != number)
return "NaN";
if (number <= -1e21 || number >= 1e21)
return $String(number);
if (number < 0) {
sign = "-";
number = -number;
}
if (number > 1e-21) {
e7 = log(number * pow(2, 69, 1)) - 69;
z2 = e7 < 0 ? number * pow(2, -e7, 1) : number / pow(2, e7, 1);
z2 *= 4503599627370496;
e7 = 52 - e7;
if (e7 > 0) {
multiply(data, 0, z2);
j2 = fractDigits;
while (j2 >= 7) {
multiply(data, 1e7, 0);
j2 -= 7;
}
multiply(data, pow(10, j2, 1), 0);
j2 = e7 - 1;
while (j2 >= 23) {
divide(data, 1 << 23);
j2 -= 23;
}
divide(data, 1 << j2);
multiply(data, 1, 1);
divide(data, 2);
result = dataToString(data);
} else {
multiply(data, 0, z2);
multiply(data, 1 << -e7, 0);
result = dataToString(data) + repeat("0", fractDigits);
}
}
if (fractDigits > 0) {
k2 = result.length;
result = sign + (k2 <= fractDigits ? "0." + repeat("0", fractDigits - k2) + result : stringSlice(result, 0, k2 - fractDigits) + "." + stringSlice(result, k2 - fractDigits));
} else {
result = sign + result;
}
return result;
}
});
}
});
// node_modules/core-js/modules/es.number.to-precision.js
var require_es_number_to_precision = __commonJS({
"node_modules/core-js/modules/es.number.to-precision.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var thisNumberValue = require_this_number_value();
var nativeToPrecision = uncurryThis(1 .toPrecision);
var FORCED = fails(function() {
return nativeToPrecision(1, void 0) !== "1";
}) || !fails(function() {
nativeToPrecision({});
});
$2({ target: "Number", proto: true, forced: FORCED }, {
toPrecision: function toPrecision(precision) {
return precision === void 0 ? nativeToPrecision(thisNumberValue(this)) : nativeToPrecision(thisNumberValue(this), precision);
}
});
}
});
// node_modules/core-js/internals/object-assign.js
var require_object_assign = __commonJS({
"node_modules/core-js/internals/object-assign.js"(exports, module) {
"use strict";
var DESCRIPTORS = require_descriptors();
var uncurryThis = require_function_uncurry_this();
var call = require_function_call();
var fails = require_fails();
var objectKeys = require_object_keys();
var getOwnPropertySymbolsModule = require_object_get_own_property_symbols();
var propertyIsEnumerableModule = require_object_property_is_enumerable();
var toObject = require_to_object();
var IndexedObject = require_indexed_object();
var $assign = Object.assign;
var defineProperty = Object.defineProperty;
var concat = uncurryThis([].concat);
module.exports = !$assign || fails(function() {
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, "a", {
enumerable: true,
get: function() {
defineProperty(this, "b", {
value: 3,
enumerable: false
});
}
}), { b: 2 })).b !== 1)
return true;
var A2 = {};
var B2 = {};
var symbol = Symbol();
var alphabet = "abcdefghijklmnopqrst";
A2[symbol] = 7;
alphabet.split("").forEach(function(chr) {
B2[chr] = chr;
});
return $assign({}, A2)[symbol] != 7 || objectKeys($assign({}, B2)).join("") != alphabet;
}) ? function assign(target, source) {
var T2 = toObject(target);
var argumentsLength = arguments.length;
var index = 1;
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
var propertyIsEnumerable = propertyIsEnumerableModule.f;
while (argumentsLength > index) {
var S3 = IndexedObject(arguments[index++]);
var keys = getOwnPropertySymbols ? concat(objectKeys(S3), getOwnPropertySymbols(S3)) : objectKeys(S3);
var length = keys.length;
var j2 = 0;
var key;
while (length > j2) {
key = keys[j2++];
if (!DESCRIPTORS || call(propertyIsEnumerable, S3, key))
T2[key] = S3[key];
}
}
return T2;
} : $assign;
}
});
// node_modules/core-js/modules/es.object.assign.js
var require_es_object_assign = __commonJS({
"node_modules/core-js/modules/es.object.assign.js"() {
var $2 = require_export();
var assign = require_object_assign();
$2({ target: "Object", stat: true, arity: 2, forced: Object.assign !== assign }, {
assign
});
}
});
// node_modules/core-js/modules/es.object.create.js
var require_es_object_create = __commonJS({
"node_modules/core-js/modules/es.object.create.js"() {
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var create = require_object_create();
$2({ target: "Object", stat: true, sham: !DESCRIPTORS }, {
create
});
}
});
// node_modules/core-js/internals/object-prototype-accessors-forced.js
var require_object_prototype_accessors_forced = __commonJS({
"node_modules/core-js/internals/object-prototype-accessors-forced.js"(exports, module) {
"use strict";
var IS_PURE = require_is_pure();
var global2 = require_global();
var fails = require_fails();
var WEBKIT = require_engine_webkit_version();
module.exports = IS_PURE || !fails(function() {
if (WEBKIT && WEBKIT < 535)
return;
var key = Math.random();
__defineSetter__.call(null, key, function() {
});
delete global2[key];
});
}
});
// node_modules/core-js/modules/es.object.define-getter.js
var require_es_object_define_getter = __commonJS({
"node_modules/core-js/modules/es.object.define-getter.js"() {
"use strict";
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var FORCED = require_object_prototype_accessors_forced();
var aCallable = require_a_callable();
var toObject = require_to_object();
var definePropertyModule = require_object_define_property();
if (DESCRIPTORS) {
$2({ target: "Object", proto: true, forced: FORCED }, {
__defineGetter__: function __defineGetter__(P2, getter) {
definePropertyModule.f(toObject(this), P2, { get: aCallable(getter), enumerable: true, configurable: true });
}
});
}
}
});
// node_modules/core-js/modules/es.object.define-properties.js
var require_es_object_define_properties = __commonJS({
"node_modules/core-js/modules/es.object.define-properties.js"() {
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var defineProperties = require_object_define_properties().f;
$2({ target: "Object", stat: true, forced: Object.defineProperties !== defineProperties, sham: !DESCRIPTORS }, {
defineProperties
});
}
});
// node_modules/core-js/modules/es.object.define-property.js
var require_es_object_define_property = __commonJS({
"node_modules/core-js/modules/es.object.define-property.js"() {
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var defineProperty = require_object_define_property().f;
$2({ target: "Object", stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, {
defineProperty
});
}
});
// node_modules/core-js/modules/es.object.define-setter.js
var require_es_object_define_setter = __commonJS({
"node_modules/core-js/modules/es.object.define-setter.js"() {
"use strict";
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var FORCED = require_object_prototype_accessors_forced();
var aCallable = require_a_callable();
var toObject = require_to_object();
var definePropertyModule = require_object_define_property();
if (DESCRIPTORS) {
$2({ target: "Object", proto: true, forced: FORCED }, {
__defineSetter__: function __defineSetter__2(P2, setter) {
definePropertyModule.f(toObject(this), P2, { set: aCallable(setter), enumerable: true, configurable: true });
}
});
}
}
});
// node_modules/core-js/internals/object-to-array.js
var require_object_to_array = __commonJS({
"node_modules/core-js/internals/object-to-array.js"(exports, module) {
var DESCRIPTORS = require_descriptors();
var uncurryThis = require_function_uncurry_this();
var objectKeys = require_object_keys();
var toIndexedObject = require_to_indexed_object();
var $propertyIsEnumerable = require_object_property_is_enumerable().f;
var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
var push = uncurryThis([].push);
var createMethod = function(TO_ENTRIES) {
return function(it) {
var O = toIndexedObject(it);
var keys = objectKeys(O);
var length = keys.length;
var i4 = 0;
var result = [];
var key;
while (length > i4) {
key = keys[i4++];
if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {
push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
}
}
return result;
};
};
module.exports = {
// `Object.entries` method
// https://tc39.es/ecma262/#sec-object.entries
entries: createMethod(true),
// `Object.values` method
// https://tc39.es/ecma262/#sec-object.values
values: createMethod(false)
};
}
});
// node_modules/core-js/modules/es.object.entries.js
var require_es_object_entries = __commonJS({
"node_modules/core-js/modules/es.object.entries.js"() {
var $2 = require_export();
var $entries = require_object_to_array().entries;
$2({ target: "Object", stat: true }, {
entries: function entries(O) {
return $entries(O);
}
});
}
});
// node_modules/core-js/modules/es.object.freeze.js
var require_es_object_freeze = __commonJS({
"node_modules/core-js/modules/es.object.freeze.js"() {
var $2 = require_export();
var FREEZING = require_freezing();
var fails = require_fails();
var isObject = require_is_object();
var onFreeze = require_internal_metadata().onFreeze;
var $freeze = Object.freeze;
var FAILS_ON_PRIMITIVES = fails(function() {
$freeze(1);
});
$2({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
freeze: function freeze(it) {
return $freeze && isObject(it) ? $freeze(onFreeze(it)) : it;
}
});
}
});
// node_modules/core-js/modules/es.object.from-entries.js
var require_es_object_from_entries = __commonJS({
"node_modules/core-js/modules/es.object.from-entries.js"() {
var $2 = require_export();
var iterate = require_iterate();
var createProperty = require_create_property();
$2({ target: "Object", stat: true }, {
fromEntries: function fromEntries(iterable) {
var obj = {};
iterate(iterable, function(k2, v2) {
createProperty(obj, k2, v2);
}, { AS_ENTRIES: true });
return obj;
}
});
}
});
// node_modules/core-js/modules/es.object.get-own-property-descriptor.js
var require_es_object_get_own_property_descriptor = __commonJS({
"node_modules/core-js/modules/es.object.get-own-property-descriptor.js"() {
var $2 = require_export();
var fails = require_fails();
var toIndexedObject = require_to_indexed_object();
var nativeGetOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var DESCRIPTORS = require_descriptors();
var FORCED = !DESCRIPTORS || fails(function() {
nativeGetOwnPropertyDescriptor(1);
});
$2({ target: "Object", stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
}
});
}
});
// node_modules/core-js/modules/es.object.get-own-property-descriptors.js
var require_es_object_get_own_property_descriptors = __commonJS({
"node_modules/core-js/modules/es.object.get-own-property-descriptors.js"() {
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var ownKeys = require_own_keys();
var toIndexedObject = require_to_indexed_object();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var createProperty = require_create_property();
$2({ target: "Object", stat: true, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
var O = toIndexedObject(object);
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var keys = ownKeys(O);
var result = {};
var index = 0;
var key, descriptor;
while (keys.length > index) {
descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
if (descriptor !== void 0)
createProperty(result, key, descriptor);
}
return result;
}
});
}
});
// node_modules/core-js/modules/es.object.get-own-property-names.js
var require_es_object_get_own_property_names = __commonJS({
"node_modules/core-js/modules/es.object.get-own-property-names.js"() {
var $2 = require_export();
var fails = require_fails();
var getOwnPropertyNames = require_object_get_own_property_names_external().f;
var FAILS_ON_PRIMITIVES = fails(function() {
return !Object.getOwnPropertyNames(1);
});
$2({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES }, {
getOwnPropertyNames
});
}
});
// node_modules/core-js/modules/es.object.get-prototype-of.js
var require_es_object_get_prototype_of = __commonJS({
"node_modules/core-js/modules/es.object.get-prototype-of.js"() {
var $2 = require_export();
var fails = require_fails();
var toObject = require_to_object();
var nativeGetPrototypeOf = require_object_get_prototype_of();
var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter();
var FAILS_ON_PRIMITIVES = fails(function() {
nativeGetPrototypeOf(1);
});
$2({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
getPrototypeOf: function getPrototypeOf(it) {
return nativeGetPrototypeOf(toObject(it));
}
});
}
});
// node_modules/core-js/modules/es.object.has-own.js
var require_es_object_has_own = __commonJS({
"node_modules/core-js/modules/es.object.has-own.js"() {
var $2 = require_export();
var hasOwn = require_has_own_property();
$2({ target: "Object", stat: true }, {
hasOwn
});
}
});
// node_modules/core-js/internals/same-value.js
var require_same_value = __commonJS({
"node_modules/core-js/internals/same-value.js"(exports, module) {
module.exports = Object.is || function is(x2, y2) {
return x2 === y2 ? x2 !== 0 || 1 / x2 === 1 / y2 : x2 != x2 && y2 != y2;
};
}
});
// node_modules/core-js/modules/es.object.is.js
var require_es_object_is = __commonJS({
"node_modules/core-js/modules/es.object.is.js"() {
var $2 = require_export();
var is = require_same_value();
$2({ target: "Object", stat: true }, {
is
});
}
});
// node_modules/core-js/modules/es.object.is-extensible.js
var require_es_object_is_extensible = __commonJS({
"node_modules/core-js/modules/es.object.is-extensible.js"() {
var $2 = require_export();
var $isExtensible = require_object_is_extensible();
$2({ target: "Object", stat: true, forced: Object.isExtensible !== $isExtensible }, {
isExtensible: $isExtensible
});
}
});
// node_modules/core-js/modules/es.object.is-frozen.js
var require_es_object_is_frozen = __commonJS({
"node_modules/core-js/modules/es.object.is-frozen.js"() {
var $2 = require_export();
var fails = require_fails();
var isObject = require_is_object();
var classof = require_classof_raw();
var ARRAY_BUFFER_NON_EXTENSIBLE = require_array_buffer_non_extensible();
var $isFrozen = Object.isFrozen;
var FORCED = ARRAY_BUFFER_NON_EXTENSIBLE || fails(function() {
$isFrozen(1);
});
$2({ target: "Object", stat: true, forced: FORCED }, {
isFrozen: function isFrozen(it) {
if (!isObject(it))
return true;
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == "ArrayBuffer")
return true;
return $isFrozen ? $isFrozen(it) : false;
}
});
}
});
// node_modules/core-js/modules/es.object.is-sealed.js
var require_es_object_is_sealed = __commonJS({
"node_modules/core-js/modules/es.object.is-sealed.js"() {
var $2 = require_export();
var fails = require_fails();
var isObject = require_is_object();
var classof = require_classof_raw();
var ARRAY_BUFFER_NON_EXTENSIBLE = require_array_buffer_non_extensible();
var $isSealed = Object.isSealed;
var FORCED = ARRAY_BUFFER_NON_EXTENSIBLE || fails(function() {
$isSealed(1);
});
$2({ target: "Object", stat: true, forced: FORCED }, {
isSealed: function isSealed(it) {
if (!isObject(it))
return true;
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == "ArrayBuffer")
return true;
return $isSealed ? $isSealed(it) : false;
}
});
}
});
// node_modules/core-js/modules/es.object.keys.js
var require_es_object_keys = __commonJS({
"node_modules/core-js/modules/es.object.keys.js"() {
var $2 = require_export();
var toObject = require_to_object();
var nativeKeys = require_object_keys();
var fails = require_fails();
var FAILS_ON_PRIMITIVES = fails(function() {
nativeKeys(1);
});
$2({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES }, {
keys: function keys(it) {
return nativeKeys(toObject(it));
}
});
}
});
// node_modules/core-js/modules/es.object.lookup-getter.js
var require_es_object_lookup_getter = __commonJS({
"node_modules/core-js/modules/es.object.lookup-getter.js"() {
"use strict";
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var FORCED = require_object_prototype_accessors_forced();
var toObject = require_to_object();
var toPropertyKey = require_to_property_key();
var getPrototypeOf = require_object_get_prototype_of();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
if (DESCRIPTORS) {
$2({ target: "Object", proto: true, forced: FORCED }, {
__lookupGetter__: function __lookupGetter__(P2) {
var O = toObject(this);
var key = toPropertyKey(P2);
var desc;
do {
if (desc = getOwnPropertyDescriptor(O, key))
return desc.get;
} while (O = getPrototypeOf(O));
}
});
}
}
});
// node_modules/core-js/modules/es.object.lookup-setter.js
var require_es_object_lookup_setter = __commonJS({
"node_modules/core-js/modules/es.object.lookup-setter.js"() {
"use strict";
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var FORCED = require_object_prototype_accessors_forced();
var toObject = require_to_object();
var toPropertyKey = require_to_property_key();
var getPrototypeOf = require_object_get_prototype_of();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
if (DESCRIPTORS) {
$2({ target: "Object", proto: true, forced: FORCED }, {
__lookupSetter__: function __lookupSetter__(P2) {
var O = toObject(this);
var key = toPropertyKey(P2);
var desc;
do {
if (desc = getOwnPropertyDescriptor(O, key))
return desc.set;
} while (O = getPrototypeOf(O));
}
});
}
}
});
// node_modules/core-js/modules/es.object.prevent-extensions.js
var require_es_object_prevent_extensions = __commonJS({
"node_modules/core-js/modules/es.object.prevent-extensions.js"() {
var $2 = require_export();
var isObject = require_is_object();
var onFreeze = require_internal_metadata().onFreeze;
var FREEZING = require_freezing();
var fails = require_fails();
var $preventExtensions = Object.preventExtensions;
var FAILS_ON_PRIMITIVES = fails(function() {
$preventExtensions(1);
});
$2({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
preventExtensions: function preventExtensions(it) {
return $preventExtensions && isObject(it) ? $preventExtensions(onFreeze(it)) : it;
}
});
}
});
// node_modules/core-js/modules/es.object.proto.js
var require_es_object_proto = __commonJS({
"node_modules/core-js/modules/es.object.proto.js"() {
"use strict";
var DESCRIPTORS = require_descriptors();
var defineBuiltInAccessor = require_define_built_in_accessor();
var isObject = require_is_object();
var toObject = require_to_object();
var requireObjectCoercible = require_require_object_coercible();
var getPrototypeOf = Object.getPrototypeOf;
var setPrototypeOf = Object.setPrototypeOf;
var ObjectPrototype = Object.prototype;
var PROTO = "__proto__";
if (DESCRIPTORS && getPrototypeOf && setPrototypeOf && !(PROTO in ObjectPrototype))
try {
defineBuiltInAccessor(ObjectPrototype, PROTO, {
configurable: true,
get: function __proto__() {
return getPrototypeOf(toObject(this));
},
set: function __proto__(proto) {
var O = requireObjectCoercible(this);
if (!isObject(proto) && proto !== null || !isObject(O))
return;
setPrototypeOf(O, proto);
}
});
} catch (error) {
}
}
});
// node_modules/core-js/modules/es.object.seal.js
var require_es_object_seal = __commonJS({
"node_modules/core-js/modules/es.object.seal.js"() {
var $2 = require_export();
var isObject = require_is_object();
var onFreeze = require_internal_metadata().onFreeze;
var FREEZING = require_freezing();
var fails = require_fails();
var $seal = Object.seal;
var FAILS_ON_PRIMITIVES = fails(function() {
$seal(1);
});
$2({ target: "Object", stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
seal: function seal(it) {
return $seal && isObject(it) ? $seal(onFreeze(it)) : it;
}
});
}
});
// node_modules/core-js/modules/es.object.set-prototype-of.js
var require_es_object_set_prototype_of = __commonJS({
"node_modules/core-js/modules/es.object.set-prototype-of.js"() {
var $2 = require_export();
var setPrototypeOf = require_object_set_prototype_of();
$2({ target: "Object", stat: true }, {
setPrototypeOf
});
}
});
// node_modules/core-js/internals/object-to-string.js
var require_object_to_string = __commonJS({
"node_modules/core-js/internals/object-to-string.js"(exports, module) {
"use strict";
var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();
var classof = require_classof();
module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
return "[object " + classof(this) + "]";
};
}
});
// node_modules/core-js/modules/es.object.to-string.js
var require_es_object_to_string = __commonJS({
"node_modules/core-js/modules/es.object.to-string.js"() {
var TO_STRING_TAG_SUPPORT = require_to_string_tag_support();
var defineBuiltIn = require_define_built_in();
var toString = require_object_to_string();
if (!TO_STRING_TAG_SUPPORT) {
defineBuiltIn(Object.prototype, "toString", toString, { unsafe: true });
}
}
});
// node_modules/core-js/modules/es.object.values.js
var require_es_object_values = __commonJS({
"node_modules/core-js/modules/es.object.values.js"() {
var $2 = require_export();
var $values = require_object_to_array().values;
$2({ target: "Object", stat: true }, {
values: function values(O) {
return $values(O);
}
});
}
});
// node_modules/core-js/modules/es.parse-float.js
var require_es_parse_float = __commonJS({
"node_modules/core-js/modules/es.parse-float.js"() {
var $2 = require_export();
var $parseFloat = require_number_parse_float();
$2({ global: true, forced: parseFloat != $parseFloat }, {
parseFloat: $parseFloat
});
}
});
// node_modules/core-js/modules/es.parse-int.js
var require_es_parse_int = __commonJS({
"node_modules/core-js/modules/es.parse-int.js"() {
var $2 = require_export();
var $parseInt = require_number_parse_int();
$2({ global: true, forced: parseInt != $parseInt }, {
parseInt: $parseInt
});
}
});
// node_modules/core-js/internals/validate-arguments-length.js
var require_validate_arguments_length = __commonJS({
"node_modules/core-js/internals/validate-arguments-length.js"(exports, module) {
var $TypeError = TypeError;
module.exports = function(passed, required) {
if (passed < required)
throw $TypeError("Not enough arguments");
return passed;
};
}
});
// node_modules/core-js/internals/engine-is-ios.js
var require_engine_is_ios = __commonJS({
"node_modules/core-js/internals/engine-is-ios.js"(exports, module) {
var userAgent = require_engine_user_agent();
module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);
}
});
// node_modules/core-js/internals/task.js
var require_task = __commonJS({
"node_modules/core-js/internals/task.js"(exports, module) {
var global2 = require_global();
var apply = require_function_apply();
var bind = require_function_bind_context();
var isCallable = require_is_callable();
var hasOwn = require_has_own_property();
var fails = require_fails();
var html = require_html();
var arraySlice = require_array_slice();
var createElement = require_document_create_element();
var validateArgumentsLength = require_validate_arguments_length();
var IS_IOS = require_engine_is_ios();
var IS_NODE = require_engine_is_node();
var set = global2.setImmediate;
var clear = global2.clearImmediate;
var process2 = global2.process;
var Dispatch = global2.Dispatch;
var Function2 = global2.Function;
var MessageChannel = global2.MessageChannel;
var String2 = global2.String;
var counter = 0;
var queue = {};
var ONREADYSTATECHANGE = "onreadystatechange";
var $location;
var defer;
var channel;
var port;
fails(function() {
$location = global2.location;
});
var run = function(id) {
if (hasOwn(queue, id)) {
var fn = queue[id];
delete queue[id];
fn();
}
};
var runner = function(id) {
return function() {
run(id);
};
};
var eventListener = function(event) {
run(event.data);
};
var globalPostMessageDefer = function(id) {
global2.postMessage(String2(id), $location.protocol + "//" + $location.host);
};
if (!set || !clear) {
set = function setImmediate(handler) {
validateArgumentsLength(arguments.length, 1);
var fn = isCallable(handler) ? handler : Function2(handler);
var args = arraySlice(arguments, 1);
queue[++counter] = function() {
apply(fn, void 0, args);
};
defer(counter);
return counter;
};
clear = function clearImmediate(id) {
delete queue[id];
};
if (IS_NODE) {
defer = function(id) {
process2.nextTick(runner(id));
};
} else if (Dispatch && Dispatch.now) {
defer = function(id) {
Dispatch.now(runner(id));
};
} else if (MessageChannel && !IS_IOS) {
channel = new MessageChannel();
port = channel.port2;
channel.port1.onmessage = eventListener;
defer = bind(port.postMessage, port);
} else if (global2.addEventListener && isCallable(global2.postMessage) && !global2.importScripts && $location && $location.protocol !== "file:" && !fails(globalPostMessageDefer)) {
defer = globalPostMessageDefer;
global2.addEventListener("message", eventListener, false);
} else if (ONREADYSTATECHANGE in createElement("script")) {
defer = function(id) {
html.appendChild(createElement("script"))[ONREADYSTATECHANGE] = function() {
html.removeChild(this);
run(id);
};
};
} else {
defer = function(id) {
setTimeout(runner(id), 0);
};
}
}
module.exports = {
set,
clear
};
}
});
// node_modules/core-js/internals/queue.js
var require_queue = __commonJS({
"node_modules/core-js/internals/queue.js"(exports, module) {
var Queue = function() {
this.head = null;
this.tail = null;
};
Queue.prototype = {
add: function(item) {
var entry = { item, next: null };
var tail = this.tail;
if (tail)
tail.next = entry;
else
this.head = entry;
this.tail = entry;
},
get: function() {
var entry = this.head;
if (entry) {
var next = this.head = entry.next;
if (next === null)
this.tail = null;
return entry.item;
}
}
};
module.exports = Queue;
}
});
// node_modules/core-js/internals/engine-is-ios-pebble.js
var require_engine_is_ios_pebble = __commonJS({
"node_modules/core-js/internals/engine-is-ios-pebble.js"(exports, module) {
var userAgent = require_engine_user_agent();
module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != "undefined";
}
});
// node_modules/core-js/internals/engine-is-webos-webkit.js
var require_engine_is_webos_webkit = __commonJS({
"node_modules/core-js/internals/engine-is-webos-webkit.js"(exports, module) {
var userAgent = require_engine_user_agent();
module.exports = /web0s(?!.*chrome)/i.test(userAgent);
}
});
// node_modules/core-js/internals/microtask.js
var require_microtask = __commonJS({
"node_modules/core-js/internals/microtask.js"(exports, module) {
var global2 = require_global();
var bind = require_function_bind_context();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var macrotask = require_task().set;
var Queue = require_queue();
var IS_IOS = require_engine_is_ios();
var IS_IOS_PEBBLE = require_engine_is_ios_pebble();
var IS_WEBOS_WEBKIT = require_engine_is_webos_webkit();
var IS_NODE = require_engine_is_node();
var MutationObserver2 = global2.MutationObserver || global2.WebKitMutationObserver;
var document2 = global2.document;
var process2 = global2.process;
var Promise2 = global2.Promise;
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global2, "queueMicrotask");
var microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
var notify;
var toggle;
var node;
var promise;
var then;
if (!microtask) {
queue = new Queue();
flush = function() {
var parent2, fn;
if (IS_NODE && (parent2 = process2.domain))
parent2.exit();
while (fn = queue.get())
try {
fn();
} catch (error) {
if (queue.head)
notify();
throw error;
}
if (parent2)
parent2.enter();
};
if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver2 && document2) {
toggle = true;
node = document2.createTextNode("");
new MutationObserver2(flush).observe(node, { characterData: true });
notify = function() {
node.data = toggle = !toggle;
};
} else if (!IS_IOS_PEBBLE && Promise2 && Promise2.resolve) {
promise = Promise2.resolve(void 0);
promise.constructor = Promise2;
then = bind(promise.then, promise);
notify = function() {
then(flush);
};
} else if (IS_NODE) {
notify = function() {
process2.nextTick(flush);
};
} else {
macrotask = bind(macrotask, global2);
notify = function() {
macrotask(flush);
};
}
microtask = function(fn) {
if (!queue.head)
notify();
queue.add(fn);
};
}
var queue;
var flush;
module.exports = microtask;
}
});
// node_modules/core-js/internals/host-report-errors.js
var require_host_report_errors = __commonJS({
"node_modules/core-js/internals/host-report-errors.js"(exports, module) {
module.exports = function(a3, b2) {
try {
arguments.length == 1 ? console.error(a3) : console.error(a3, b2);
} catch (error) {
}
};
}
});
// node_modules/core-js/internals/perform.js
var require_perform = __commonJS({
"node_modules/core-js/internals/perform.js"(exports, module) {
module.exports = function(exec) {
try {
return { error: false, value: exec() };
} catch (error) {
return { error: true, value: error };
}
};
}
});
// node_modules/core-js/internals/promise-native-constructor.js
var require_promise_native_constructor = __commonJS({
"node_modules/core-js/internals/promise-native-constructor.js"(exports, module) {
var global2 = require_global();
module.exports = global2.Promise;
}
});
// node_modules/core-js/internals/engine-is-deno.js
var require_engine_is_deno = __commonJS({
"node_modules/core-js/internals/engine-is-deno.js"(exports, module) {
module.exports = typeof Deno == "object" && Deno && typeof Deno.version == "object";
}
});
// node_modules/core-js/internals/engine-is-browser.js
var require_engine_is_browser = __commonJS({
"node_modules/core-js/internals/engine-is-browser.js"(exports, module) {
var IS_DENO = require_engine_is_deno();
var IS_NODE = require_engine_is_node();
module.exports = !IS_DENO && !IS_NODE && typeof window == "object" && typeof document == "object";
}
});
// node_modules/core-js/internals/promise-constructor-detection.js
var require_promise_constructor_detection = __commonJS({
"node_modules/core-js/internals/promise-constructor-detection.js"(exports, module) {
var global2 = require_global();
var NativePromiseConstructor = require_promise_native_constructor();
var isCallable = require_is_callable();
var isForced = require_is_forced();
var inspectSource = require_inspect_source();
var wellKnownSymbol = require_well_known_symbol();
var IS_BROWSER = require_engine_is_browser();
var IS_DENO = require_engine_is_deno();
var IS_PURE = require_is_pure();
var V8_VERSION = require_engine_v8_version();
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
var SPECIES = wellKnownSymbol("species");
var SUBCLASSING = false;
var NATIVE_PROMISE_REJECTION_EVENT = isCallable(global2.PromiseRejectionEvent);
var FORCED_PROMISE_CONSTRUCTOR = isForced("Promise", function() {
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66)
return true;
if (IS_PURE && !(NativePromisePrototype["catch"] && NativePromisePrototype["finally"]))
return true;
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
var promise = new NativePromiseConstructor(function(resolve) {
resolve(1);
});
var FakePromise = function(exec) {
exec(function() {
}, function() {
});
};
var constructor = promise.constructor = {};
constructor[SPECIES] = FakePromise;
SUBCLASSING = promise.then(function() {
}) instanceof FakePromise;
if (!SUBCLASSING)
return true;
}
return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;
});
module.exports = {
CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,
REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,
SUBCLASSING
};
}
});
// node_modules/core-js/internals/new-promise-capability.js
var require_new_promise_capability = __commonJS({
"node_modules/core-js/internals/new-promise-capability.js"(exports, module) {
"use strict";
var aCallable = require_a_callable();
var $TypeError = TypeError;
var PromiseCapability = function(C2) {
var resolve, reject;
this.promise = new C2(function($$resolve, $$reject) {
if (resolve !== void 0 || reject !== void 0)
throw $TypeError("Bad Promise constructor");
resolve = $$resolve;
reject = $$reject;
});
this.resolve = aCallable(resolve);
this.reject = aCallable(reject);
};
module.exports.f = function(C2) {
return new PromiseCapability(C2);
};
}
});
// node_modules/core-js/modules/es.promise.constructor.js
var require_es_promise_constructor = __commonJS({
"node_modules/core-js/modules/es.promise.constructor.js"() {
"use strict";
var $2 = require_export();
var IS_PURE = require_is_pure();
var IS_NODE = require_engine_is_node();
var global2 = require_global();
var call = require_function_call();
var defineBuiltIn = require_define_built_in();
var setPrototypeOf = require_object_set_prototype_of();
var setToStringTag = require_set_to_string_tag();
var setSpecies = require_set_species();
var aCallable = require_a_callable();
var isCallable = require_is_callable();
var isObject = require_is_object();
var anInstance = require_an_instance();
var speciesConstructor = require_species_constructor();
var task = require_task().set;
var microtask = require_microtask();
var hostReportErrors = require_host_report_errors();
var perform = require_perform();
var Queue = require_queue();
var InternalStateModule = require_internal_state();
var NativePromiseConstructor = require_promise_native_constructor();
var PromiseConstructorDetection = require_promise_constructor_detection();
var newPromiseCapabilityModule = require_new_promise_capability();
var PROMISE = "Promise";
var FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;
var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
var setInternalState = InternalStateModule.set;
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
var PromiseConstructor = NativePromiseConstructor;
var PromisePrototype = NativePromisePrototype;
var TypeError2 = global2.TypeError;
var document2 = global2.document;
var process2 = global2.process;
var newPromiseCapability = newPromiseCapabilityModule.f;
var newGenericPromiseCapability = newPromiseCapability;
var DISPATCH_EVENT = !!(document2 && document2.createEvent && global2.dispatchEvent);
var UNHANDLED_REJECTION = "unhandledrejection";
var REJECTION_HANDLED = "rejectionhandled";
var PENDING = 0;
var FULFILLED = 1;
var REJECTED = 2;
var HANDLED = 1;
var UNHANDLED = 2;
var Internal;
var OwnPromiseCapability;
var PromiseWrapper;
var nativeThen;
var isThenable = function(it) {
var then;
return isObject(it) && isCallable(then = it.then) ? then : false;
};
var callReaction = function(reaction, state2) {
var value = state2.value;
var ok = state2.state == FULFILLED;
var handler = ok ? reaction.ok : reaction.fail;
var resolve = reaction.resolve;
var reject = reaction.reject;
var domain = reaction.domain;
var result, then, exited;
try {
if (handler) {
if (!ok) {
if (state2.rejection === UNHANDLED)
onHandleUnhandled(state2);
state2.rejection = HANDLED;
}
if (handler === true)
result = value;
else {
if (domain)
domain.enter();
result = handler(value);
if (domain) {
domain.exit();
exited = true;
}
}
if (result === reaction.promise) {
reject(TypeError2("Promise-chain cycle"));
} else if (then = isThenable(result)) {
call(then, result, resolve, reject);
} else
resolve(result);
} else
reject(value);
} catch (error) {
if (domain && !exited)
domain.exit();
reject(error);
}
};
var notify = function(state2, isReject) {
if (state2.notified)
return;
state2.notified = true;
microtask(function() {
var reactions = state2.reactions;
var reaction;
while (reaction = reactions.get()) {
callReaction(reaction, state2);
}
state2.notified = false;
if (isReject && !state2.rejection)
onUnhandled(state2);
});
};
var dispatchEvent = function(name, promise, reason) {
var event, handler;
if (DISPATCH_EVENT) {
event = document2.createEvent("Event");
event.promise = promise;
event.reason = reason;
event.initEvent(name, false, true);
global2.dispatchEvent(event);
} else
event = { promise, reason };
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global2["on" + name]))
handler(event);
else if (name === UNHANDLED_REJECTION)
hostReportErrors("Unhandled promise rejection", reason);
};
var onUnhandled = function(state2) {
call(task, global2, function() {
var promise = state2.facade;
var value = state2.value;
var IS_UNHANDLED = isUnhandled(state2);
var result;
if (IS_UNHANDLED) {
result = perform(function() {
if (IS_NODE) {
process2.emit("unhandledRejection", value, promise);
} else
dispatchEvent(UNHANDLED_REJECTION, promise, value);
});
state2.rejection = IS_NODE || isUnhandled(state2) ? UNHANDLED : HANDLED;
if (result.error)
throw result.value;
}
});
};
var isUnhandled = function(state2) {
return state2.rejection !== HANDLED && !state2.parent;
};
var onHandleUnhandled = function(state2) {
call(task, global2, function() {
var promise = state2.facade;
if (IS_NODE) {
process2.emit("rejectionHandled", promise);
} else
dispatchEvent(REJECTION_HANDLED, promise, state2.value);
});
};
var bind = function(fn, state2, unwrap) {
return function(value) {
fn(state2, value, unwrap);
};
};
var internalReject = function(state2, value, unwrap) {
if (state2.done)
return;
state2.done = true;
if (unwrap)
state2 = unwrap;
state2.value = value;
state2.state = REJECTED;
notify(state2, true);
};
var internalResolve = function(state2, value, unwrap) {
if (state2.done)
return;
state2.done = true;
if (unwrap)
state2 = unwrap;
try {
if (state2.facade === value)
throw TypeError2("Promise can't be resolved itself");
var then = isThenable(value);
if (then) {
microtask(function() {
var wrapper = { done: false };
try {
call(
then,
value,
bind(internalResolve, wrapper, state2),
bind(internalReject, wrapper, state2)
);
} catch (error) {
internalReject(wrapper, error, state2);
}
});
} else {
state2.value = value;
state2.state = FULFILLED;
notify(state2, false);
}
} catch (error) {
internalReject({ done: false }, error, state2);
}
};
if (FORCED_PROMISE_CONSTRUCTOR) {
PromiseConstructor = function Promise2(executor) {
anInstance(this, PromisePrototype);
aCallable(executor);
call(Internal, this);
var state2 = getInternalPromiseState(this);
try {
executor(bind(internalResolve, state2), bind(internalReject, state2));
} catch (error) {
internalReject(state2, error);
}
};
PromisePrototype = PromiseConstructor.prototype;
Internal = function Promise2(executor) {
setInternalState(this, {
type: PROMISE,
done: false,
notified: false,
parent: false,
reactions: new Queue(),
rejection: false,
state: PENDING,
value: void 0
});
};
Internal.prototype = defineBuiltIn(PromisePrototype, "then", function then(onFulfilled, onRejected) {
var state2 = getInternalPromiseState(this);
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
state2.parent = true;
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
reaction.fail = isCallable(onRejected) && onRejected;
reaction.domain = IS_NODE ? process2.domain : void 0;
if (state2.state == PENDING)
state2.reactions.add(reaction);
else
microtask(function() {
callReaction(reaction, state2);
});
return reaction.promise;
});
OwnPromiseCapability = function() {
var promise = new Internal();
var state2 = getInternalPromiseState(promise);
this.promise = promise;
this.resolve = bind(internalResolve, state2);
this.reject = bind(internalReject, state2);
};
newPromiseCapabilityModule.f = newPromiseCapability = function(C2) {
return C2 === PromiseConstructor || C2 === PromiseWrapper ? new OwnPromiseCapability(C2) : newGenericPromiseCapability(C2);
};
if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {
nativeThen = NativePromisePrototype.then;
if (!NATIVE_PROMISE_SUBCLASSING) {
defineBuiltIn(NativePromisePrototype, "then", function then(onFulfilled, onRejected) {
var that = this;
return new PromiseConstructor(function(resolve, reject) {
call(nativeThen, that, resolve, reject);
}).then(onFulfilled, onRejected);
}, { unsafe: true });
}
try {
delete NativePromisePrototype.constructor;
} catch (error) {
}
if (setPrototypeOf) {
setPrototypeOf(NativePromisePrototype, PromisePrototype);
}
}
}
$2({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
Promise: PromiseConstructor
});
setToStringTag(PromiseConstructor, PROMISE, false, true);
setSpecies(PROMISE);
}
});
// node_modules/core-js/internals/promise-statics-incorrect-iteration.js
var require_promise_statics_incorrect_iteration = __commonJS({
"node_modules/core-js/internals/promise-statics-incorrect-iteration.js"(exports, module) {
var NativePromiseConstructor = require_promise_native_constructor();
var checkCorrectnessOfIteration = require_check_correctness_of_iteration();
var FORCED_PROMISE_CONSTRUCTOR = require_promise_constructor_detection().CONSTRUCTOR;
module.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function(iterable) {
NativePromiseConstructor.all(iterable).then(void 0, function() {
});
});
}
});
// node_modules/core-js/modules/es.promise.all.js
var require_es_promise_all = __commonJS({
"node_modules/core-js/modules/es.promise.all.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var aCallable = require_a_callable();
var newPromiseCapabilityModule = require_new_promise_capability();
var perform = require_perform();
var iterate = require_iterate();
var PROMISE_STATICS_INCORRECT_ITERATION = require_promise_statics_incorrect_iteration();
$2({ target: "Promise", stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
all: function all(iterable) {
var C2 = this;
var capability = newPromiseCapabilityModule.f(C2);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform(function() {
var $promiseResolve = aCallable(C2.resolve);
var values = [];
var counter = 0;
var remaining = 1;
iterate(iterable, function(promise) {
var index = counter++;
var alreadyCalled = false;
remaining++;
call($promiseResolve, C2, promise).then(function(value) {
if (alreadyCalled)
return;
alreadyCalled = true;
values[index] = value;
--remaining || resolve(values);
}, reject);
});
--remaining || resolve(values);
});
if (result.error)
reject(result.value);
return capability.promise;
}
});
}
});
// node_modules/core-js/modules/es.promise.catch.js
var require_es_promise_catch = __commonJS({
"node_modules/core-js/modules/es.promise.catch.js"() {
"use strict";
var $2 = require_export();
var IS_PURE = require_is_pure();
var FORCED_PROMISE_CONSTRUCTOR = require_promise_constructor_detection().CONSTRUCTOR;
var NativePromiseConstructor = require_promise_native_constructor();
var getBuiltIn = require_get_built_in();
var isCallable = require_is_callable();
var defineBuiltIn = require_define_built_in();
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
$2({ target: "Promise", proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {
"catch": function(onRejected) {
return this.then(void 0, onRejected);
}
});
if (!IS_PURE && isCallable(NativePromiseConstructor)) {
method = getBuiltIn("Promise").prototype["catch"];
if (NativePromisePrototype["catch"] !== method) {
defineBuiltIn(NativePromisePrototype, "catch", method, { unsafe: true });
}
}
var method;
}
});
// node_modules/core-js/modules/es.promise.race.js
var require_es_promise_race = __commonJS({
"node_modules/core-js/modules/es.promise.race.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var aCallable = require_a_callable();
var newPromiseCapabilityModule = require_new_promise_capability();
var perform = require_perform();
var iterate = require_iterate();
var PROMISE_STATICS_INCORRECT_ITERATION = require_promise_statics_incorrect_iteration();
$2({ target: "Promise", stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
race: function race(iterable) {
var C2 = this;
var capability = newPromiseCapabilityModule.f(C2);
var reject = capability.reject;
var result = perform(function() {
var $promiseResolve = aCallable(C2.resolve);
iterate(iterable, function(promise) {
call($promiseResolve, C2, promise).then(capability.resolve, reject);
});
});
if (result.error)
reject(result.value);
return capability.promise;
}
});
}
});
// node_modules/core-js/modules/es.promise.reject.js
var require_es_promise_reject = __commonJS({
"node_modules/core-js/modules/es.promise.reject.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var newPromiseCapabilityModule = require_new_promise_capability();
var FORCED_PROMISE_CONSTRUCTOR = require_promise_constructor_detection().CONSTRUCTOR;
$2({ target: "Promise", stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
reject: function reject(r4) {
var capability = newPromiseCapabilityModule.f(this);
call(capability.reject, void 0, r4);
return capability.promise;
}
});
}
});
// node_modules/core-js/internals/promise-resolve.js
var require_promise_resolve = __commonJS({
"node_modules/core-js/internals/promise-resolve.js"(exports, module) {
var anObject = require_an_object();
var isObject = require_is_object();
var newPromiseCapability = require_new_promise_capability();
module.exports = function(C2, x2) {
anObject(C2);
if (isObject(x2) && x2.constructor === C2)
return x2;
var promiseCapability = newPromiseCapability.f(C2);
var resolve = promiseCapability.resolve;
resolve(x2);
return promiseCapability.promise;
};
}
});
// node_modules/core-js/modules/es.promise.resolve.js
var require_es_promise_resolve = __commonJS({
"node_modules/core-js/modules/es.promise.resolve.js"() {
"use strict";
var $2 = require_export();
var getBuiltIn = require_get_built_in();
var IS_PURE = require_is_pure();
var NativePromiseConstructor = require_promise_native_constructor();
var FORCED_PROMISE_CONSTRUCTOR = require_promise_constructor_detection().CONSTRUCTOR;
var promiseResolve = require_promise_resolve();
var PromiseConstructorWrapper = getBuiltIn("Promise");
var CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;
$2({ target: "Promise", stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {
resolve: function resolve(x2) {
return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x2);
}
});
}
});
// node_modules/core-js/modules/es.promise.js
var require_es_promise = __commonJS({
"node_modules/core-js/modules/es.promise.js"() {
require_es_promise_constructor();
require_es_promise_all();
require_es_promise_catch();
require_es_promise_race();
require_es_promise_reject();
require_es_promise_resolve();
}
});
// node_modules/core-js/modules/es.promise.all-settled.js
var require_es_promise_all_settled = __commonJS({
"node_modules/core-js/modules/es.promise.all-settled.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var aCallable = require_a_callable();
var newPromiseCapabilityModule = require_new_promise_capability();
var perform = require_perform();
var iterate = require_iterate();
var PROMISE_STATICS_INCORRECT_ITERATION = require_promise_statics_incorrect_iteration();
$2({ target: "Promise", stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
allSettled: function allSettled(iterable) {
var C2 = this;
var capability = newPromiseCapabilityModule.f(C2);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform(function() {
var promiseResolve = aCallable(C2.resolve);
var values = [];
var counter = 0;
var remaining = 1;
iterate(iterable, function(promise) {
var index = counter++;
var alreadyCalled = false;
remaining++;
call(promiseResolve, C2, promise).then(function(value) {
if (alreadyCalled)
return;
alreadyCalled = true;
values[index] = { status: "fulfilled", value };
--remaining || resolve(values);
}, function(error) {
if (alreadyCalled)
return;
alreadyCalled = true;
values[index] = { status: "rejected", reason: error };
--remaining || resolve(values);
});
});
--remaining || resolve(values);
});
if (result.error)
reject(result.value);
return capability.promise;
}
});
}
});
// node_modules/core-js/modules/es.promise.any.js
var require_es_promise_any = __commonJS({
"node_modules/core-js/modules/es.promise.any.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var aCallable = require_a_callable();
var getBuiltIn = require_get_built_in();
var newPromiseCapabilityModule = require_new_promise_capability();
var perform = require_perform();
var iterate = require_iterate();
var PROMISE_STATICS_INCORRECT_ITERATION = require_promise_statics_incorrect_iteration();
var PROMISE_ANY_ERROR = "No one promise resolved";
$2({ target: "Promise", stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
any: function any(iterable) {
var C2 = this;
var AggregateError = getBuiltIn("AggregateError");
var capability = newPromiseCapabilityModule.f(C2);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform(function() {
var promiseResolve = aCallable(C2.resolve);
var errors = [];
var counter = 0;
var remaining = 1;
var alreadyResolved = false;
iterate(iterable, function(promise) {
var index = counter++;
var alreadyRejected = false;
remaining++;
call(promiseResolve, C2, promise).then(function(value) {
if (alreadyRejected || alreadyResolved)
return;
alreadyResolved = true;
resolve(value);
}, function(error) {
if (alreadyRejected || alreadyResolved)
return;
alreadyRejected = true;
errors[index] = error;
--remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));
});
});
--remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));
});
if (result.error)
reject(result.value);
return capability.promise;
}
});
}
});
// node_modules/core-js/modules/es.promise.finally.js
var require_es_promise_finally = __commonJS({
"node_modules/core-js/modules/es.promise.finally.js"() {
"use strict";
var $2 = require_export();
var IS_PURE = require_is_pure();
var NativePromiseConstructor = require_promise_native_constructor();
var fails = require_fails();
var getBuiltIn = require_get_built_in();
var isCallable = require_is_callable();
var speciesConstructor = require_species_constructor();
var promiseResolve = require_promise_resolve();
var defineBuiltIn = require_define_built_in();
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
var NON_GENERIC = !!NativePromiseConstructor && fails(function() {
NativePromisePrototype["finally"].call({ then: function() {
} }, function() {
});
});
$2({ target: "Promise", proto: true, real: true, forced: NON_GENERIC }, {
"finally": function(onFinally) {
var C2 = speciesConstructor(this, getBuiltIn("Promise"));
var isFunction = isCallable(onFinally);
return this.then(
isFunction ? function(x2) {
return promiseResolve(C2, onFinally()).then(function() {
return x2;
});
} : onFinally,
isFunction ? function(e7) {
return promiseResolve(C2, onFinally()).then(function() {
throw e7;
});
} : onFinally
);
}
});
if (!IS_PURE && isCallable(NativePromiseConstructor)) {
method = getBuiltIn("Promise").prototype["finally"];
if (NativePromisePrototype["finally"] !== method) {
defineBuiltIn(NativePromisePrototype, "finally", method, { unsafe: true });
}
}
var method;
}
});
// node_modules/core-js/modules/es.reflect.apply.js
var require_es_reflect_apply = __commonJS({
"node_modules/core-js/modules/es.reflect.apply.js"() {
var $2 = require_export();
var functionApply = require_function_apply();
var aCallable = require_a_callable();
var anObject = require_an_object();
var fails = require_fails();
var OPTIONAL_ARGUMENTS_LIST = !fails(function() {
Reflect.apply(function() {
});
});
$2({ target: "Reflect", stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, {
apply: function apply(target, thisArgument, argumentsList) {
return functionApply(aCallable(target), thisArgument, anObject(argumentsList));
}
});
}
});
// node_modules/core-js/modules/es.reflect.construct.js
var require_es_reflect_construct = __commonJS({
"node_modules/core-js/modules/es.reflect.construct.js"() {
var $2 = require_export();
var getBuiltIn = require_get_built_in();
var apply = require_function_apply();
var bind = require_function_bind();
var aConstructor = require_a_constructor();
var anObject = require_an_object();
var isObject = require_is_object();
var create = require_object_create();
var fails = require_fails();
var nativeConstruct = getBuiltIn("Reflect", "construct");
var ObjectPrototype = Object.prototype;
var push = [].push;
var NEW_TARGET_BUG = fails(function() {
function F() {
}
return !(nativeConstruct(function() {
}, [], F) instanceof F);
});
var ARGS_BUG = !fails(function() {
nativeConstruct(function() {
});
});
var FORCED = NEW_TARGET_BUG || ARGS_BUG;
$2({ target: "Reflect", stat: true, forced: FORCED, sham: FORCED }, {
construct: function construct(Target, args) {
aConstructor(Target);
anObject(args);
var newTarget = arguments.length < 3 ? Target : aConstructor(arguments[2]);
if (ARGS_BUG && !NEW_TARGET_BUG)
return nativeConstruct(Target, args, newTarget);
if (Target == newTarget) {
switch (args.length) {
case 0:
return new Target();
case 1:
return new Target(args[0]);
case 2:
return new Target(args[0], args[1]);
case 3:
return new Target(args[0], args[1], args[2]);
case 4:
return new Target(args[0], args[1], args[2], args[3]);
}
var $args = [null];
apply(push, $args, args);
return new (apply(bind, Target, $args))();
}
var proto = newTarget.prototype;
var instance = create(isObject(proto) ? proto : ObjectPrototype);
var result = apply(Target, instance, args);
return isObject(result) ? result : instance;
}
});
}
});
// node_modules/core-js/modules/es.reflect.define-property.js
var require_es_reflect_define_property = __commonJS({
"node_modules/core-js/modules/es.reflect.define-property.js"() {
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var anObject = require_an_object();
var toPropertyKey = require_to_property_key();
var definePropertyModule = require_object_define_property();
var fails = require_fails();
var ERROR_INSTEAD_OF_FALSE = fails(function() {
Reflect.defineProperty(definePropertyModule.f({}, 1, { value: 1 }), 1, { value: 2 });
});
$2({ target: "Reflect", stat: true, forced: ERROR_INSTEAD_OF_FALSE, sham: !DESCRIPTORS }, {
defineProperty: function defineProperty(target, propertyKey, attributes) {
anObject(target);
var key = toPropertyKey(propertyKey);
anObject(attributes);
try {
definePropertyModule.f(target, key, attributes);
return true;
} catch (error) {
return false;
}
}
});
}
});
// node_modules/core-js/modules/es.reflect.delete-property.js
var require_es_reflect_delete_property = __commonJS({
"node_modules/core-js/modules/es.reflect.delete-property.js"() {
var $2 = require_export();
var anObject = require_an_object();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
$2({ target: "Reflect", stat: true }, {
deleteProperty: function deleteProperty(target, propertyKey) {
var descriptor = getOwnPropertyDescriptor(anObject(target), propertyKey);
return descriptor && !descriptor.configurable ? false : delete target[propertyKey];
}
});
}
});
// node_modules/core-js/internals/is-data-descriptor.js
var require_is_data_descriptor = __commonJS({
"node_modules/core-js/internals/is-data-descriptor.js"(exports, module) {
var hasOwn = require_has_own_property();
module.exports = function(descriptor) {
return descriptor !== void 0 && (hasOwn(descriptor, "value") || hasOwn(descriptor, "writable"));
};
}
});
// node_modules/core-js/modules/es.reflect.get.js
var require_es_reflect_get = __commonJS({
"node_modules/core-js/modules/es.reflect.get.js"() {
var $2 = require_export();
var call = require_function_call();
var isObject = require_is_object();
var anObject = require_an_object();
var isDataDescriptor = require_is_data_descriptor();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var getPrototypeOf = require_object_get_prototype_of();
function get(target, propertyKey) {
var receiver = arguments.length < 3 ? target : arguments[2];
var descriptor, prototype;
if (anObject(target) === receiver)
return target[propertyKey];
descriptor = getOwnPropertyDescriptorModule.f(target, propertyKey);
if (descriptor)
return isDataDescriptor(descriptor) ? descriptor.value : descriptor.get === void 0 ? void 0 : call(descriptor.get, receiver);
if (isObject(prototype = getPrototypeOf(target)))
return get(prototype, propertyKey, receiver);
}
$2({ target: "Reflect", stat: true }, {
get
});
}
});
// node_modules/core-js/modules/es.reflect.get-own-property-descriptor.js
var require_es_reflect_get_own_property_descriptor = __commonJS({
"node_modules/core-js/modules/es.reflect.get-own-property-descriptor.js"() {
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var anObject = require_an_object();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
$2({ target: "Reflect", stat: true, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
return getOwnPropertyDescriptorModule.f(anObject(target), propertyKey);
}
});
}
});
// node_modules/core-js/modules/es.reflect.get-prototype-of.js
var require_es_reflect_get_prototype_of = __commonJS({
"node_modules/core-js/modules/es.reflect.get-prototype-of.js"() {
var $2 = require_export();
var anObject = require_an_object();
var objectGetPrototypeOf = require_object_get_prototype_of();
var CORRECT_PROTOTYPE_GETTER = require_correct_prototype_getter();
$2({ target: "Reflect", stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, {
getPrototypeOf: function getPrototypeOf(target) {
return objectGetPrototypeOf(anObject(target));
}
});
}
});
// node_modules/core-js/modules/es.reflect.has.js
var require_es_reflect_has = __commonJS({
"node_modules/core-js/modules/es.reflect.has.js"() {
var $2 = require_export();
$2({ target: "Reflect", stat: true }, {
has: function has(target, propertyKey) {
return propertyKey in target;
}
});
}
});
// node_modules/core-js/modules/es.reflect.is-extensible.js
var require_es_reflect_is_extensible = __commonJS({
"node_modules/core-js/modules/es.reflect.is-extensible.js"() {
var $2 = require_export();
var anObject = require_an_object();
var $isExtensible = require_object_is_extensible();
$2({ target: "Reflect", stat: true }, {
isExtensible: function isExtensible(target) {
anObject(target);
return $isExtensible(target);
}
});
}
});
// node_modules/core-js/modules/es.reflect.own-keys.js
var require_es_reflect_own_keys = __commonJS({
"node_modules/core-js/modules/es.reflect.own-keys.js"() {
var $2 = require_export();
var ownKeys = require_own_keys();
$2({ target: "Reflect", stat: true }, {
ownKeys
});
}
});
// node_modules/core-js/modules/es.reflect.prevent-extensions.js
var require_es_reflect_prevent_extensions = __commonJS({
"node_modules/core-js/modules/es.reflect.prevent-extensions.js"() {
var $2 = require_export();
var getBuiltIn = require_get_built_in();
var anObject = require_an_object();
var FREEZING = require_freezing();
$2({ target: "Reflect", stat: true, sham: !FREEZING }, {
preventExtensions: function preventExtensions(target) {
anObject(target);
try {
var objectPreventExtensions = getBuiltIn("Object", "preventExtensions");
if (objectPreventExtensions)
objectPreventExtensions(target);
return true;
} catch (error) {
return false;
}
}
});
}
});
// node_modules/core-js/modules/es.reflect.set.js
var require_es_reflect_set = __commonJS({
"node_modules/core-js/modules/es.reflect.set.js"() {
var $2 = require_export();
var call = require_function_call();
var anObject = require_an_object();
var isObject = require_is_object();
var isDataDescriptor = require_is_data_descriptor();
var fails = require_fails();
var definePropertyModule = require_object_define_property();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var getPrototypeOf = require_object_get_prototype_of();
var createPropertyDescriptor = require_create_property_descriptor();
function set(target, propertyKey, V2) {
var receiver = arguments.length < 4 ? target : arguments[3];
var ownDescriptor = getOwnPropertyDescriptorModule.f(anObject(target), propertyKey);
var existingDescriptor, prototype, setter;
if (!ownDescriptor) {
if (isObject(prototype = getPrototypeOf(target))) {
return set(prototype, propertyKey, V2, receiver);
}
ownDescriptor = createPropertyDescriptor(0);
}
if (isDataDescriptor(ownDescriptor)) {
if (ownDescriptor.writable === false || !isObject(receiver))
return false;
if (existingDescriptor = getOwnPropertyDescriptorModule.f(receiver, propertyKey)) {
if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false)
return false;
existingDescriptor.value = V2;
definePropertyModule.f(receiver, propertyKey, existingDescriptor);
} else
definePropertyModule.f(receiver, propertyKey, createPropertyDescriptor(0, V2));
} else {
setter = ownDescriptor.set;
if (setter === void 0)
return false;
call(setter, receiver, V2);
}
return true;
}
var MS_EDGE_BUG = fails(function() {
var Constructor = function() {
};
var object = definePropertyModule.f(new Constructor(), "a", { configurable: true });
return Reflect.set(Constructor.prototype, "a", 1, object) !== false;
});
$2({ target: "Reflect", stat: true, forced: MS_EDGE_BUG }, {
set
});
}
});
// node_modules/core-js/modules/es.reflect.set-prototype-of.js
var require_es_reflect_set_prototype_of = __commonJS({
"node_modules/core-js/modules/es.reflect.set-prototype-of.js"() {
var $2 = require_export();
var anObject = require_an_object();
var aPossiblePrototype = require_a_possible_prototype();
var objectSetPrototypeOf = require_object_set_prototype_of();
if (objectSetPrototypeOf)
$2({ target: "Reflect", stat: true }, {
setPrototypeOf: function setPrototypeOf(target, proto) {
anObject(target);
aPossiblePrototype(proto);
try {
objectSetPrototypeOf(target, proto);
return true;
} catch (error) {
return false;
}
}
});
}
});
// node_modules/core-js/modules/es.reflect.to-string-tag.js
var require_es_reflect_to_string_tag = __commonJS({
"node_modules/core-js/modules/es.reflect.to-string-tag.js"() {
var $2 = require_export();
var global2 = require_global();
var setToStringTag = require_set_to_string_tag();
$2({ global: true }, { Reflect: {} });
setToStringTag(global2.Reflect, "Reflect", true);
}
});
// node_modules/core-js/internals/is-regexp.js
var require_is_regexp = __commonJS({
"node_modules/core-js/internals/is-regexp.js"(exports, module) {
var isObject = require_is_object();
var classof = require_classof_raw();
var wellKnownSymbol = require_well_known_symbol();
var MATCH = wellKnownSymbol("match");
module.exports = function(it) {
var isRegExp;
return isObject(it) && ((isRegExp = it[MATCH]) !== void 0 ? !!isRegExp : classof(it) == "RegExp");
};
}
});
// node_modules/core-js/internals/regexp-flags.js
var require_regexp_flags = __commonJS({
"node_modules/core-js/internals/regexp-flags.js"(exports, module) {
"use strict";
var anObject = require_an_object();
module.exports = function() {
var that = anObject(this);
var result = "";
if (that.hasIndices)
result += "d";
if (that.global)
result += "g";
if (that.ignoreCase)
result += "i";
if (that.multiline)
result += "m";
if (that.dotAll)
result += "s";
if (that.unicode)
result += "u";
if (that.unicodeSets)
result += "v";
if (that.sticky)
result += "y";
return result;
};
}
});
// node_modules/core-js/internals/regexp-get-flags.js
var require_regexp_get_flags = __commonJS({
"node_modules/core-js/internals/regexp-get-flags.js"(exports, module) {
var call = require_function_call();
var hasOwn = require_has_own_property();
var isPrototypeOf = require_object_is_prototype_of();
var regExpFlags = require_regexp_flags();
var RegExpPrototype = RegExp.prototype;
module.exports = function(R2) {
var flags = R2.flags;
return flags === void 0 && !("flags" in RegExpPrototype) && !hasOwn(R2, "flags") && isPrototypeOf(RegExpPrototype, R2) ? call(regExpFlags, R2) : flags;
};
}
});
// node_modules/core-js/internals/regexp-sticky-helpers.js
var require_regexp_sticky_helpers = __commonJS({
"node_modules/core-js/internals/regexp-sticky-helpers.js"(exports, module) {
var fails = require_fails();
var global2 = require_global();
var $RegExp = global2.RegExp;
var UNSUPPORTED_Y = fails(function() {
var re = $RegExp("a", "y");
re.lastIndex = 2;
return re.exec("abcd") != null;
});
var MISSED_STICKY = UNSUPPORTED_Y || fails(function() {
return !$RegExp("a", "y").sticky;
});
var BROKEN_CARET = UNSUPPORTED_Y || fails(function() {
var re = $RegExp("^r", "gy");
re.lastIndex = 2;
return re.exec("str") != null;
});
module.exports = {
BROKEN_CARET,
MISSED_STICKY,
UNSUPPORTED_Y
};
}
});
// node_modules/core-js/internals/regexp-unsupported-dot-all.js
var require_regexp_unsupported_dot_all = __commonJS({
"node_modules/core-js/internals/regexp-unsupported-dot-all.js"(exports, module) {
var fails = require_fails();
var global2 = require_global();
var $RegExp = global2.RegExp;
module.exports = fails(function() {
var re = $RegExp(".", "s");
return !(re.dotAll && re.exec("\n") && re.flags === "s");
});
}
});
// node_modules/core-js/internals/regexp-unsupported-ncg.js
var require_regexp_unsupported_ncg = __commonJS({
"node_modules/core-js/internals/regexp-unsupported-ncg.js"(exports, module) {
var fails = require_fails();
var global2 = require_global();
var $RegExp = global2.RegExp;
module.exports = fails(function() {
var re = $RegExp("(?<a>b)", "g");
return re.exec("b").groups.a !== "b" || "b".replace(re, "$<a>c") !== "bc";
});
}
});
// node_modules/core-js/modules/es.regexp.constructor.js
var require_es_regexp_constructor = __commonJS({
"node_modules/core-js/modules/es.regexp.constructor.js"() {
var DESCRIPTORS = require_descriptors();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var isForced = require_is_forced();
var inheritIfRequired = require_inherit_if_required();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var getOwnPropertyNames = require_object_get_own_property_names().f;
var isPrototypeOf = require_object_is_prototype_of();
var isRegExp = require_is_regexp();
var toString = require_to_string();
var getRegExpFlags = require_regexp_get_flags();
var stickyHelpers = require_regexp_sticky_helpers();
var proxyAccessor = require_proxy_accessor();
var defineBuiltIn = require_define_built_in();
var fails = require_fails();
var hasOwn = require_has_own_property();
var enforceInternalState = require_internal_state().enforce;
var setSpecies = require_set_species();
var wellKnownSymbol = require_well_known_symbol();
var UNSUPPORTED_DOT_ALL = require_regexp_unsupported_dot_all();
var UNSUPPORTED_NCG = require_regexp_unsupported_ncg();
var MATCH = wellKnownSymbol("match");
var NativeRegExp = global2.RegExp;
var RegExpPrototype = NativeRegExp.prototype;
var SyntaxError2 = global2.SyntaxError;
var exec = uncurryThis(RegExpPrototype.exec);
var charAt = uncurryThis("".charAt);
var replace = uncurryThis("".replace);
var stringIndexOf = uncurryThis("".indexOf);
var stringSlice = uncurryThis("".slice);
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
var re1 = /a/g;
var re2 = /a/g;
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
var MISSED_STICKY = stickyHelpers.MISSED_STICKY;
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
var BASE_FORCED = DESCRIPTORS && (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function() {
re2[MATCH] = false;
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, "i") != "/a/i";
}));
var handleDotAll = function(string) {
var length = string.length;
var index2 = 0;
var result = "";
var brackets = false;
var chr;
for (; index2 <= length; index2++) {
chr = charAt(string, index2);
if (chr === "\\") {
result += chr + charAt(string, ++index2);
continue;
}
if (!brackets && chr === ".") {
result += "[\\s\\S]";
} else {
if (chr === "[") {
brackets = true;
} else if (chr === "]") {
brackets = false;
}
result += chr;
}
}
return result;
};
var handleNCG = function(string) {
var length = string.length;
var index2 = 0;
var result = "";
var named = [];
var names = {};
var brackets = false;
var ncg = false;
var groupid = 0;
var groupname = "";
var chr;
for (; index2 <= length; index2++) {
chr = charAt(string, index2);
if (chr === "\\") {
chr = chr + charAt(string, ++index2);
} else if (chr === "]") {
brackets = false;
} else if (!brackets)
switch (true) {
case chr === "[":
brackets = true;
break;
case chr === "(":
if (exec(IS_NCG, stringSlice(string, index2 + 1))) {
index2 += 2;
ncg = true;
}
result += chr;
groupid++;
continue;
case (chr === ">" && ncg):
if (groupname === "" || hasOwn(names, groupname)) {
throw new SyntaxError2("Invalid capture group name");
}
names[groupname] = true;
named[named.length] = [groupname, groupid];
ncg = false;
groupname = "";
continue;
}
if (ncg)
groupname += chr;
else
result += chr;
}
return [result, named];
};
if (isForced("RegExp", BASE_FORCED)) {
RegExpWrapper = function RegExp2(pattern, flags) {
var thisIsRegExp = isPrototypeOf(RegExpPrototype, this);
var patternIsRegExp = isRegExp(pattern);
var flagsAreUndefined = flags === void 0;
var groups = [];
var rawPattern = pattern;
var rawFlags, dotAll, sticky, handled, result, state2;
if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
return pattern;
}
if (patternIsRegExp || isPrototypeOf(RegExpPrototype, pattern)) {
pattern = pattern.source;
if (flagsAreUndefined)
flags = getRegExpFlags(rawPattern);
}
pattern = pattern === void 0 ? "" : toString(pattern);
flags = flags === void 0 ? "" : toString(flags);
rawPattern = pattern;
if (UNSUPPORTED_DOT_ALL && "dotAll" in re1) {
dotAll = !!flags && stringIndexOf(flags, "s") > -1;
if (dotAll)
flags = replace(flags, /s/g, "");
}
rawFlags = flags;
if (MISSED_STICKY && "sticky" in re1) {
sticky = !!flags && stringIndexOf(flags, "y") > -1;
if (sticky && UNSUPPORTED_Y)
flags = replace(flags, /y/g, "");
}
if (UNSUPPORTED_NCG) {
handled = handleNCG(pattern);
pattern = handled[0];
groups = handled[1];
}
result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper);
if (dotAll || sticky || groups.length) {
state2 = enforceInternalState(result);
if (dotAll) {
state2.dotAll = true;
state2.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
}
if (sticky)
state2.sticky = true;
if (groups.length)
state2.groups = groups;
}
if (pattern !== rawPattern)
try {
createNonEnumerableProperty(result, "source", rawPattern === "" ? "(?:)" : rawPattern);
} catch (error) {
}
return result;
};
for (keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index; ) {
proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]);
}
RegExpPrototype.constructor = RegExpWrapper;
RegExpWrapper.prototype = RegExpPrototype;
defineBuiltIn(global2, "RegExp", RegExpWrapper, { constructor: true });
}
var RegExpWrapper;
var keys;
var index;
setSpecies("RegExp");
}
});
// node_modules/core-js/modules/es.regexp.dot-all.js
var require_es_regexp_dot_all = __commonJS({
"node_modules/core-js/modules/es.regexp.dot-all.js"() {
var DESCRIPTORS = require_descriptors();
var UNSUPPORTED_DOT_ALL = require_regexp_unsupported_dot_all();
var classof = require_classof_raw();
var defineBuiltInAccessor = require_define_built_in_accessor();
var getInternalState = require_internal_state().get;
var RegExpPrototype = RegExp.prototype;
var $TypeError = TypeError;
if (DESCRIPTORS && UNSUPPORTED_DOT_ALL) {
defineBuiltInAccessor(RegExpPrototype, "dotAll", {
configurable: true,
get: function dotAll() {
if (this === RegExpPrototype)
return void 0;
if (classof(this) === "RegExp") {
return !!getInternalState(this).dotAll;
}
throw $TypeError("Incompatible receiver, RegExp required");
}
});
}
}
});
// node_modules/core-js/internals/regexp-exec.js
var require_regexp_exec = __commonJS({
"node_modules/core-js/internals/regexp-exec.js"(exports, module) {
"use strict";
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var toString = require_to_string();
var regexpFlags = require_regexp_flags();
var stickyHelpers = require_regexp_sticky_helpers();
var shared = require_shared();
var create = require_object_create();
var getInternalState = require_internal_state().get;
var UNSUPPORTED_DOT_ALL = require_regexp_unsupported_dot_all();
var UNSUPPORTED_NCG = require_regexp_unsupported_ncg();
var nativeReplace = shared("native-string-replace", String.prototype.replace);
var nativeExec = RegExp.prototype.exec;
var patchedExec = nativeExec;
var charAt = uncurryThis("".charAt);
var indexOf = uncurryThis("".indexOf);
var replace = uncurryThis("".replace);
var stringSlice = uncurryThis("".slice);
var UPDATES_LAST_INDEX_WRONG = function() {
var re1 = /a/;
var re2 = /b*/g;
call(nativeExec, re1, "a");
call(nativeExec, re2, "a");
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
}();
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
var NPCG_INCLUDED = /()??/.exec("")[1] !== void 0;
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
if (PATCH) {
patchedExec = function exec(string) {
var re = this;
var state2 = getInternalState(re);
var str = toString(string);
var raw = state2.raw;
var result, reCopy, lastIndex, match, i4, object, group;
if (raw) {
raw.lastIndex = re.lastIndex;
result = call(patchedExec, raw, str);
re.lastIndex = raw.lastIndex;
return result;
}
var groups = state2.groups;
var sticky = UNSUPPORTED_Y && re.sticky;
var flags = call(regexpFlags, re);
var source = re.source;
var charsAdded = 0;
var strCopy = str;
if (sticky) {
flags = replace(flags, "y", "");
if (indexOf(flags, "g") === -1) {
flags += "g";
}
strCopy = stringSlice(str, re.lastIndex);
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== "\n")) {
source = "(?: " + source + ")";
strCopy = " " + strCopy;
charsAdded++;
}
reCopy = new RegExp("^(?:" + source + ")", flags);
}
if (NPCG_INCLUDED) {
reCopy = new RegExp("^" + source + "$(?!\\s)", flags);
}
if (UPDATES_LAST_INDEX_WRONG)
lastIndex = re.lastIndex;
match = call(nativeExec, sticky ? reCopy : re, strCopy);
if (sticky) {
if (match) {
match.input = stringSlice(match.input, charsAdded);
match[0] = stringSlice(match[0], charsAdded);
match.index = re.lastIndex;
re.lastIndex += match[0].length;
} else
re.lastIndex = 0;
} else if (UPDATES_LAST_INDEX_WRONG && match) {
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
}
if (NPCG_INCLUDED && match && match.length > 1) {
call(nativeReplace, match[0], reCopy, function() {
for (i4 = 1; i4 < arguments.length - 2; i4++) {
if (arguments[i4] === void 0)
match[i4] = void 0;
}
});
}
if (match && groups) {
match.groups = object = create(null);
for (i4 = 0; i4 < groups.length; i4++) {
group = groups[i4];
object[group[0]] = match[group[1]];
}
}
return match;
};
}
module.exports = patchedExec;
}
});
// node_modules/core-js/modules/es.regexp.exec.js
var require_es_regexp_exec = __commonJS({
"node_modules/core-js/modules/es.regexp.exec.js"() {
"use strict";
var $2 = require_export();
var exec = require_regexp_exec();
$2({ target: "RegExp", proto: true, forced: /./.exec !== exec }, {
exec
});
}
});
// node_modules/core-js/modules/es.regexp.flags.js
var require_es_regexp_flags = __commonJS({
"node_modules/core-js/modules/es.regexp.flags.js"() {
var global2 = require_global();
var DESCRIPTORS = require_descriptors();
var defineBuiltInAccessor = require_define_built_in_accessor();
var regExpFlags = require_regexp_flags();
var fails = require_fails();
var RegExp2 = global2.RegExp;
var RegExpPrototype = RegExp2.prototype;
var FORCED = DESCRIPTORS && fails(function() {
var INDICES_SUPPORT = true;
try {
RegExp2(".", "d");
} catch (error) {
INDICES_SUPPORT = false;
}
var O = {};
var calls = "";
var expected = INDICES_SUPPORT ? "dgimsy" : "gimsy";
var addGetter = function(key2, chr) {
Object.defineProperty(O, key2, { get: function() {
calls += chr;
return true;
} });
};
var pairs = {
dotAll: "s",
global: "g",
ignoreCase: "i",
multiline: "m",
sticky: "y"
};
if (INDICES_SUPPORT)
pairs.hasIndices = "d";
for (var key in pairs)
addGetter(key, pairs[key]);
var result = Object.getOwnPropertyDescriptor(RegExpPrototype, "flags").get.call(O);
return result !== expected || calls !== expected;
});
if (FORCED)
defineBuiltInAccessor(RegExpPrototype, "flags", {
configurable: true,
get: regExpFlags
});
}
});
// node_modules/core-js/modules/es.regexp.sticky.js
var require_es_regexp_sticky = __commonJS({
"node_modules/core-js/modules/es.regexp.sticky.js"() {
var DESCRIPTORS = require_descriptors();
var MISSED_STICKY = require_regexp_sticky_helpers().MISSED_STICKY;
var classof = require_classof_raw();
var defineBuiltInAccessor = require_define_built_in_accessor();
var getInternalState = require_internal_state().get;
var RegExpPrototype = RegExp.prototype;
var $TypeError = TypeError;
if (DESCRIPTORS && MISSED_STICKY) {
defineBuiltInAccessor(RegExpPrototype, "sticky", {
configurable: true,
get: function sticky() {
if (this === RegExpPrototype)
return;
if (classof(this) === "RegExp") {
return !!getInternalState(this).sticky;
}
throw $TypeError("Incompatible receiver, RegExp required");
}
});
}
}
});
// node_modules/core-js/modules/es.regexp.test.js
var require_es_regexp_test = __commonJS({
"node_modules/core-js/modules/es.regexp.test.js"() {
"use strict";
require_es_regexp_exec();
var $2 = require_export();
var call = require_function_call();
var isCallable = require_is_callable();
var anObject = require_an_object();
var toString = require_to_string();
var DELEGATES_TO_EXEC = function() {
var execCalled = false;
var re = /[ac]/;
re.exec = function() {
execCalled = true;
return /./.exec.apply(this, arguments);
};
return re.test("abc") === true && execCalled;
}();
var nativeTest = /./.test;
$2({ target: "RegExp", proto: true, forced: !DELEGATES_TO_EXEC }, {
test: function(S3) {
var R2 = anObject(this);
var string = toString(S3);
var exec = R2.exec;
if (!isCallable(exec))
return call(nativeTest, R2, string);
var result = call(exec, R2, string);
if (result === null)
return false;
anObject(result);
return true;
}
});
}
});
// node_modules/core-js/modules/es.regexp.to-string.js
var require_es_regexp_to_string = __commonJS({
"node_modules/core-js/modules/es.regexp.to-string.js"() {
"use strict";
var PROPER_FUNCTION_NAME = require_function_name().PROPER;
var defineBuiltIn = require_define_built_in();
var anObject = require_an_object();
var $toString = require_to_string();
var fails = require_fails();
var getRegExpFlags = require_regexp_get_flags();
var TO_STRING = "toString";
var RegExpPrototype = RegExp.prototype;
var nativeToString = RegExpPrototype[TO_STRING];
var NOT_GENERIC = fails(function() {
return nativeToString.call({ source: "a", flags: "b" }) != "/a/b";
});
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
if (NOT_GENERIC || INCORRECT_NAME) {
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
var R2 = anObject(this);
var pattern = $toString(R2.source);
var flags = $toString(getRegExpFlags(R2));
return "/" + pattern + "/" + flags;
}, { unsafe: true });
}
}
});
// node_modules/core-js/modules/es.set.constructor.js
var require_es_set_constructor = __commonJS({
"node_modules/core-js/modules/es.set.constructor.js"() {
"use strict";
var collection = require_collection();
var collectionStrong = require_collection_strong();
collection("Set", function(init) {
return function Set2() {
return init(this, arguments.length ? arguments[0] : void 0);
};
}, collectionStrong);
}
});
// node_modules/core-js/modules/es.set.js
var require_es_set = __commonJS({
"node_modules/core-js/modules/es.set.js"() {
require_es_set_constructor();
}
});
// node_modules/core-js/modules/es.string.at-alternative.js
var require_es_string_at_alternative = __commonJS({
"node_modules/core-js/modules/es.string.at-alternative.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toString = require_to_string();
var fails = require_fails();
var charAt = uncurryThis("".charAt);
var FORCED = fails(function() {
return "\u{20BB7}".at(-2) !== "\uD842";
});
$2({ target: "String", proto: true, forced: FORCED }, {
at: function at(index) {
var S3 = toString(requireObjectCoercible(this));
var len = S3.length;
var relativeIndex = toIntegerOrInfinity(index);
var k2 = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return k2 < 0 || k2 >= len ? void 0 : charAt(S3, k2);
}
});
}
});
// node_modules/core-js/internals/string-multibyte.js
var require_string_multibyte = __commonJS({
"node_modules/core-js/internals/string-multibyte.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toString = require_to_string();
var requireObjectCoercible = require_require_object_coercible();
var charAt = uncurryThis("".charAt);
var charCodeAt = uncurryThis("".charCodeAt);
var stringSlice = uncurryThis("".slice);
var createMethod = function(CONVERT_TO_STRING) {
return function($this, pos) {
var S3 = toString(requireObjectCoercible($this));
var position = toIntegerOrInfinity(pos);
var size = S3.length;
var first, second;
if (position < 0 || position >= size)
return CONVERT_TO_STRING ? "" : void 0;
first = charCodeAt(S3, position);
return first < 55296 || first > 56319 || position + 1 === size || (second = charCodeAt(S3, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt(S3, position) : first : CONVERT_TO_STRING ? stringSlice(S3, position, position + 2) : (first - 55296 << 10) + (second - 56320) + 65536;
};
};
module.exports = {
// `String.prototype.codePointAt` method
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
codeAt: createMethod(false),
// `String.prototype.at` method
// https://github.com/mathiasbynens/String.prototype.at
charAt: createMethod(true)
};
}
});
// node_modules/core-js/modules/es.string.code-point-at.js
var require_es_string_code_point_at = __commonJS({
"node_modules/core-js/modules/es.string.code-point-at.js"() {
"use strict";
var $2 = require_export();
var codeAt = require_string_multibyte().codeAt;
$2({ target: "String", proto: true }, {
codePointAt: function codePointAt(pos) {
return codeAt(this, pos);
}
});
}
});
// node_modules/core-js/internals/not-a-regexp.js
var require_not_a_regexp = __commonJS({
"node_modules/core-js/internals/not-a-regexp.js"(exports, module) {
var isRegExp = require_is_regexp();
var $TypeError = TypeError;
module.exports = function(it) {
if (isRegExp(it)) {
throw $TypeError("The method doesn't accept regular expressions");
}
return it;
};
}
});
// node_modules/core-js/internals/correct-is-regexp-logic.js
var require_correct_is_regexp_logic = __commonJS({
"node_modules/core-js/internals/correct-is-regexp-logic.js"(exports, module) {
var wellKnownSymbol = require_well_known_symbol();
var MATCH = wellKnownSymbol("match");
module.exports = function(METHOD_NAME) {
var regexp = /./;
try {
"/./"[METHOD_NAME](regexp);
} catch (error1) {
try {
regexp[MATCH] = false;
return "/./"[METHOD_NAME](regexp);
} catch (error2) {
}
}
return false;
};
}
});
// node_modules/core-js/modules/es.string.ends-with.js
var require_es_string_ends_with = __commonJS({
"node_modules/core-js/modules/es.string.ends-with.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this_clause();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var toLength = require_to_length();
var toString = require_to_string();
var notARegExp = require_not_a_regexp();
var requireObjectCoercible = require_require_object_coercible();
var correctIsRegExpLogic = require_correct_is_regexp_logic();
var IS_PURE = require_is_pure();
var nativeEndsWith = uncurryThis("".endsWith);
var slice = uncurryThis("".slice);
var min = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic("endsWith");
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function() {
var descriptor = getOwnPropertyDescriptor(String.prototype, "endsWith");
return descriptor && !descriptor.writable;
}();
$2({ target: "String", proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
endsWith: function endsWith(searchString) {
var that = toString(requireObjectCoercible(this));
notARegExp(searchString);
var endPosition = arguments.length > 1 ? arguments[1] : void 0;
var len = that.length;
var end = endPosition === void 0 ? len : min(toLength(endPosition), len);
var search = toString(searchString);
return nativeEndsWith ? nativeEndsWith(that, search, end) : slice(that, end - search.length, end) === search;
}
});
}
});
// node_modules/core-js/modules/es.string.from-code-point.js
var require_es_string_from_code_point = __commonJS({
"node_modules/core-js/modules/es.string.from-code-point.js"() {
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var toAbsoluteIndex = require_to_absolute_index();
var $RangeError = RangeError;
var fromCharCode = String.fromCharCode;
var $fromCodePoint = String.fromCodePoint;
var join = uncurryThis([].join);
var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length != 1;
$2({ target: "String", stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
fromCodePoint: function fromCodePoint(x2) {
var elements = [];
var length = arguments.length;
var i4 = 0;
var code;
while (length > i4) {
code = +arguments[i4++];
if (toAbsoluteIndex(code, 1114111) !== code)
throw $RangeError(code + " is not a valid code point");
elements[i4] = code < 65536 ? fromCharCode(code) : fromCharCode(((code -= 65536) >> 10) + 55296, code % 1024 + 56320);
}
return join(elements, "");
}
});
}
});
// node_modules/core-js/modules/es.string.includes.js
var require_es_string_includes = __commonJS({
"node_modules/core-js/modules/es.string.includes.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var notARegExp = require_not_a_regexp();
var requireObjectCoercible = require_require_object_coercible();
var toString = require_to_string();
var correctIsRegExpLogic = require_correct_is_regexp_logic();
var stringIndexOf = uncurryThis("".indexOf);
$2({ target: "String", proto: true, forced: !correctIsRegExpLogic("includes") }, {
includes: function includes(searchString) {
return !!~stringIndexOf(
toString(requireObjectCoercible(this)),
toString(notARegExp(searchString)),
arguments.length > 1 ? arguments[1] : void 0
);
}
});
}
});
// node_modules/core-js/modules/es.string.iterator.js
var require_es_string_iterator = __commonJS({
"node_modules/core-js/modules/es.string.iterator.js"() {
"use strict";
var charAt = require_string_multibyte().charAt;
var toString = require_to_string();
var InternalStateModule = require_internal_state();
var defineIterator = require_iterator_define();
var createIterResultObject = require_create_iter_result_object();
var STRING_ITERATOR = "String Iterator";
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
defineIterator(String, "String", function(iterated) {
setInternalState(this, {
type: STRING_ITERATOR,
string: toString(iterated),
index: 0
});
}, function next() {
var state2 = getInternalState(this);
var string = state2.string;
var index = state2.index;
var point;
if (index >= string.length)
return createIterResultObject(void 0, true);
point = charAt(string, index);
state2.index += point.length;
return createIterResultObject(point, false);
});
}
});
// node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js
var require_fix_regexp_well_known_symbol_logic = __commonJS({
"node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"(exports, module) {
"use strict";
require_es_regexp_exec();
var uncurryThis = require_function_uncurry_this_clause();
var defineBuiltIn = require_define_built_in();
var regexpExec = require_regexp_exec();
var fails = require_fails();
var wellKnownSymbol = require_well_known_symbol();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var SPECIES = wellKnownSymbol("species");
var RegExpPrototype = RegExp.prototype;
module.exports = function(KEY, exec, FORCED, SHAM) {
var SYMBOL = wellKnownSymbol(KEY);
var DELEGATES_TO_SYMBOL = !fails(function() {
var O = {};
O[SYMBOL] = function() {
return 7;
};
return ""[KEY](O) != 7;
});
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function() {
var execCalled = false;
var re = /a/;
if (KEY === "split") {
re = {};
re.constructor = {};
re.constructor[SPECIES] = function() {
return re;
};
re.flags = "";
re[SYMBOL] = /./[SYMBOL];
}
re.exec = function() {
execCalled = true;
return null;
};
re[SYMBOL]("");
return !execCalled;
});
if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED) {
var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]);
var methods = exec(SYMBOL, ""[KEY], function(nativeMethod, regexp, str, arg2, forceStringMethod) {
var uncurriedNativeMethod = uncurryThis(nativeMethod);
var $exec = regexp.exec;
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
}
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
}
return { done: false };
});
defineBuiltIn(String.prototype, KEY, methods[0]);
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
}
if (SHAM)
createNonEnumerableProperty(RegExpPrototype[SYMBOL], "sham", true);
};
}
});
// node_modules/core-js/internals/advance-string-index.js
var require_advance_string_index = __commonJS({
"node_modules/core-js/internals/advance-string-index.js"(exports, module) {
"use strict";
var charAt = require_string_multibyte().charAt;
module.exports = function(S3, index, unicode) {
return index + (unicode ? charAt(S3, index).length : 1);
};
}
});
// node_modules/core-js/internals/regexp-exec-abstract.js
var require_regexp_exec_abstract = __commonJS({
"node_modules/core-js/internals/regexp-exec-abstract.js"(exports, module) {
var call = require_function_call();
var anObject = require_an_object();
var isCallable = require_is_callable();
var classof = require_classof_raw();
var regexpExec = require_regexp_exec();
var $TypeError = TypeError;
module.exports = function(R2, S3) {
var exec = R2.exec;
if (isCallable(exec)) {
var result = call(exec, R2, S3);
if (result !== null)
anObject(result);
return result;
}
if (classof(R2) === "RegExp")
return call(regexpExec, R2, S3);
throw $TypeError("RegExp#exec called on incompatible receiver");
};
}
});
// node_modules/core-js/modules/es.string.match.js
var require_es_string_match = __commonJS({
"node_modules/core-js/modules/es.string.match.js"() {
"use strict";
var call = require_function_call();
var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic();
var anObject = require_an_object();
var isNullOrUndefined = require_is_null_or_undefined();
var toLength = require_to_length();
var toString = require_to_string();
var requireObjectCoercible = require_require_object_coercible();
var getMethod = require_get_method();
var advanceStringIndex = require_advance_string_index();
var regExpExec = require_regexp_exec_abstract();
fixRegExpWellKnownSymbolLogic("match", function(MATCH, nativeMatch, maybeCallNative) {
return [
// `String.prototype.match` method
// https://tc39.es/ecma262/#sec-string.prototype.match
function match(regexp) {
var O = requireObjectCoercible(this);
var matcher = isNullOrUndefined(regexp) ? void 0 : getMethod(regexp, MATCH);
return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O));
},
// `RegExp.prototype[@@match]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
function(string) {
var rx = anObject(this);
var S3 = toString(string);
var res = maybeCallNative(nativeMatch, rx, S3);
if (res.done)
return res.value;
if (!rx.global)
return regExpExec(rx, S3);
var fullUnicode = rx.unicode;
rx.lastIndex = 0;
var A2 = [];
var n6 = 0;
var result;
while ((result = regExpExec(rx, S3)) !== null) {
var matchStr = toString(result[0]);
A2[n6] = matchStr;
if (matchStr === "")
rx.lastIndex = advanceStringIndex(S3, toLength(rx.lastIndex), fullUnicode);
n6++;
}
return n6 === 0 ? null : A2;
}
];
});
}
});
// node_modules/core-js/modules/es.string.match-all.js
var require_es_string_match_all = __commonJS({
"node_modules/core-js/modules/es.string.match-all.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this_clause();
var createIteratorConstructor = require_iterator_create_constructor();
var createIterResultObject = require_create_iter_result_object();
var requireObjectCoercible = require_require_object_coercible();
var toLength = require_to_length();
var toString = require_to_string();
var anObject = require_an_object();
var isNullOrUndefined = require_is_null_or_undefined();
var classof = require_classof_raw();
var isRegExp = require_is_regexp();
var getRegExpFlags = require_regexp_get_flags();
var getMethod = require_get_method();
var defineBuiltIn = require_define_built_in();
var fails = require_fails();
var wellKnownSymbol = require_well_known_symbol();
var speciesConstructor = require_species_constructor();
var advanceStringIndex = require_advance_string_index();
var regExpExec = require_regexp_exec_abstract();
var InternalStateModule = require_internal_state();
var IS_PURE = require_is_pure();
var MATCH_ALL = wellKnownSymbol("matchAll");
var REGEXP_STRING = "RegExp String";
var REGEXP_STRING_ITERATOR = REGEXP_STRING + " Iterator";
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(REGEXP_STRING_ITERATOR);
var RegExpPrototype = RegExp.prototype;
var $TypeError = TypeError;
var stringIndexOf = uncurryThis("".indexOf);
var nativeMatchAll = uncurryThis("".matchAll);
var WORKS_WITH_NON_GLOBAL_REGEX = !!nativeMatchAll && !fails(function() {
nativeMatchAll("a", /./);
});
var $RegExpStringIterator = createIteratorConstructor(function RegExpStringIterator(regexp, string, $global, fullUnicode) {
setInternalState(this, {
type: REGEXP_STRING_ITERATOR,
regexp,
string,
global: $global,
unicode: fullUnicode,
done: false
});
}, REGEXP_STRING, function next() {
var state2 = getInternalState(this);
if (state2.done)
return createIterResultObject(void 0, true);
var R2 = state2.regexp;
var S3 = state2.string;
var match = regExpExec(R2, S3);
if (match === null) {
state2.done = true;
return createIterResultObject(void 0, true);
}
if (state2.global) {
if (toString(match[0]) === "")
R2.lastIndex = advanceStringIndex(S3, toLength(R2.lastIndex), state2.unicode);
return createIterResultObject(match, false);
}
state2.done = true;
return createIterResultObject(match, false);
});
var $matchAll = function(string) {
var R2 = anObject(this);
var S3 = toString(string);
var C2 = speciesConstructor(R2, RegExp);
var flags = toString(getRegExpFlags(R2));
var matcher, $global, fullUnicode;
matcher = new C2(C2 === RegExp ? R2.source : R2, flags);
$global = !!~stringIndexOf(flags, "g");
fullUnicode = !!~stringIndexOf(flags, "u");
matcher.lastIndex = toLength(R2.lastIndex);
return new $RegExpStringIterator(matcher, S3, $global, fullUnicode);
};
$2({ target: "String", proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, {
matchAll: function matchAll(regexp) {
var O = requireObjectCoercible(this);
var flags, S3, matcher, rx;
if (!isNullOrUndefined(regexp)) {
if (isRegExp(regexp)) {
flags = toString(requireObjectCoercible(getRegExpFlags(regexp)));
if (!~stringIndexOf(flags, "g"))
throw $TypeError("`.matchAll` does not allow non-global regexes");
}
if (WORKS_WITH_NON_GLOBAL_REGEX)
return nativeMatchAll(O, regexp);
matcher = getMethod(regexp, MATCH_ALL);
if (matcher === void 0 && IS_PURE && classof(regexp) == "RegExp")
matcher = $matchAll;
if (matcher)
return call(matcher, regexp, O);
} else if (WORKS_WITH_NON_GLOBAL_REGEX)
return nativeMatchAll(O, regexp);
S3 = toString(O);
rx = new RegExp(regexp, "g");
return IS_PURE ? call($matchAll, rx, S3) : rx[MATCH_ALL](S3);
}
});
IS_PURE || MATCH_ALL in RegExpPrototype || defineBuiltIn(RegExpPrototype, MATCH_ALL, $matchAll);
}
});
// node_modules/core-js/internals/string-pad-webkit-bug.js
var require_string_pad_webkit_bug = __commonJS({
"node_modules/core-js/internals/string-pad-webkit-bug.js"(exports, module) {
var userAgent = require_engine_user_agent();
module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
}
});
// node_modules/core-js/modules/es.string.pad-end.js
var require_es_string_pad_end = __commonJS({
"node_modules/core-js/modules/es.string.pad-end.js"() {
"use strict";
var $2 = require_export();
var $padEnd = require_string_pad().end;
var WEBKIT_BUG = require_string_pad_webkit_bug();
$2({ target: "String", proto: true, forced: WEBKIT_BUG }, {
padEnd: function padEnd(maxLength) {
return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.string.pad-start.js
var require_es_string_pad_start = __commonJS({
"node_modules/core-js/modules/es.string.pad-start.js"() {
"use strict";
var $2 = require_export();
var $padStart = require_string_pad().start;
var WEBKIT_BUG = require_string_pad_webkit_bug();
$2({ target: "String", proto: true, forced: WEBKIT_BUG }, {
padStart: function padStart(maxLength) {
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : void 0);
}
});
}
});
// node_modules/core-js/modules/es.string.raw.js
var require_es_string_raw = __commonJS({
"node_modules/core-js/modules/es.string.raw.js"() {
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var toIndexedObject = require_to_indexed_object();
var toObject = require_to_object();
var toString = require_to_string();
var lengthOfArrayLike = require_length_of_array_like();
var push = uncurryThis([].push);
var join = uncurryThis([].join);
$2({ target: "String", stat: true }, {
raw: function raw(template) {
var rawTemplate = toIndexedObject(toObject(template).raw);
var literalSegments = lengthOfArrayLike(rawTemplate);
if (!literalSegments)
return "";
var argumentsLength = arguments.length;
var elements = [];
var i4 = 0;
while (true) {
push(elements, toString(rawTemplate[i4++]));
if (i4 === literalSegments)
return join(elements, "");
if (i4 < argumentsLength)
push(elements, toString(arguments[i4]));
}
}
});
}
});
// node_modules/core-js/modules/es.string.repeat.js
var require_es_string_repeat = __commonJS({
"node_modules/core-js/modules/es.string.repeat.js"() {
var $2 = require_export();
var repeat = require_string_repeat();
$2({ target: "String", proto: true }, {
repeat
});
}
});
// node_modules/core-js/internals/get-substitution.js
var require_get_substitution = __commonJS({
"node_modules/core-js/internals/get-substitution.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var toObject = require_to_object();
var floor = Math.floor;
var charAt = uncurryThis("".charAt);
var replace = uncurryThis("".replace);
var stringSlice = uncurryThis("".slice);
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
module.exports = function(matched, str, position, captures, namedCaptures, replacement) {
var tailPos = position + matched.length;
var m2 = captures.length;
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
if (namedCaptures !== void 0) {
namedCaptures = toObject(namedCaptures);
symbols = SUBSTITUTION_SYMBOLS;
}
return replace(replacement, symbols, function(match, ch) {
var capture;
switch (charAt(ch, 0)) {
case "$":
return "$";
case "&":
return matched;
case "`":
return stringSlice(str, 0, position);
case "'":
return stringSlice(str, tailPos);
case "<":
capture = namedCaptures[stringSlice(ch, 1, -1)];
break;
default:
var n6 = +ch;
if (n6 === 0)
return match;
if (n6 > m2) {
var f2 = floor(n6 / 10);
if (f2 === 0)
return match;
if (f2 <= m2)
return captures[f2 - 1] === void 0 ? charAt(ch, 1) : captures[f2 - 1] + charAt(ch, 1);
return match;
}
capture = captures[n6 - 1];
}
return capture === void 0 ? "" : capture;
});
};
}
});
// node_modules/core-js/modules/es.string.replace.js
var require_es_string_replace = __commonJS({
"node_modules/core-js/modules/es.string.replace.js"() {
"use strict";
var apply = require_function_apply();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic();
var fails = require_fails();
var anObject = require_an_object();
var isCallable = require_is_callable();
var isNullOrUndefined = require_is_null_or_undefined();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toLength = require_to_length();
var toString = require_to_string();
var requireObjectCoercible = require_require_object_coercible();
var advanceStringIndex = require_advance_string_index();
var getMethod = require_get_method();
var getSubstitution = require_get_substitution();
var regExpExec = require_regexp_exec_abstract();
var wellKnownSymbol = require_well_known_symbol();
var REPLACE = wellKnownSymbol("replace");
var max = Math.max;
var min = Math.min;
var concat = uncurryThis([].concat);
var push = uncurryThis([].push);
var stringIndexOf = uncurryThis("".indexOf);
var stringSlice = uncurryThis("".slice);
var maybeToString = function(it) {
return it === void 0 ? it : String(it);
};
var REPLACE_KEEPS_$0 = function() {
return "a".replace(/./, "$0") === "$0";
}();
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = function() {
if (/./[REPLACE]) {
return /./[REPLACE]("a", "$0") === "";
}
return false;
}();
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function() {
var re = /./;
re.exec = function() {
var result = [];
result.groups = { a: "7" };
return result;
};
return "".replace(re, "$<a>") !== "7";
});
fixRegExpWellKnownSymbolLogic("replace", function(_2, nativeReplace, maybeCallNative) {
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? "$" : "$0";
return [
// `String.prototype.replace` method
// https://tc39.es/ecma262/#sec-string.prototype.replace
function replace(searchValue, replaceValue) {
var O = requireObjectCoercible(this);
var replacer = isNullOrUndefined(searchValue) ? void 0 : getMethod(searchValue, REPLACE);
return replacer ? call(replacer, searchValue, O, replaceValue) : call(nativeReplace, toString(O), searchValue, replaceValue);
},
// `RegExp.prototype[@@replace]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
function(string, replaceValue) {
var rx = anObject(this);
var S3 = toString(string);
if (typeof replaceValue == "string" && stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && stringIndexOf(replaceValue, "$<") === -1) {
var res = maybeCallNative(nativeReplace, rx, S3, replaceValue);
if (res.done)
return res.value;
}
var functionalReplace = isCallable(replaceValue);
if (!functionalReplace)
replaceValue = toString(replaceValue);
var global2 = rx.global;
if (global2) {
var fullUnicode = rx.unicode;
rx.lastIndex = 0;
}
var results = [];
while (true) {
var result = regExpExec(rx, S3);
if (result === null)
break;
push(results, result);
if (!global2)
break;
var matchStr = toString(result[0]);
if (matchStr === "")
rx.lastIndex = advanceStringIndex(S3, toLength(rx.lastIndex), fullUnicode);
}
var accumulatedResult = "";
var nextSourcePosition = 0;
for (var i4 = 0; i4 < results.length; i4++) {
result = results[i4];
var matched = toString(result[0]);
var position = max(min(toIntegerOrInfinity(result.index), S3.length), 0);
var captures = [];
for (var j2 = 1; j2 < result.length; j2++)
push(captures, maybeToString(result[j2]));
var namedCaptures = result.groups;
if (functionalReplace) {
var replacerArgs = concat([matched], captures, position, S3);
if (namedCaptures !== void 0)
push(replacerArgs, namedCaptures);
var replacement = toString(apply(replaceValue, void 0, replacerArgs));
} else {
replacement = getSubstitution(matched, S3, position, captures, namedCaptures, replaceValue);
}
if (position >= nextSourcePosition) {
accumulatedResult += stringSlice(S3, nextSourcePosition, position) + replacement;
nextSourcePosition = position + matched.length;
}
}
return accumulatedResult + stringSlice(S3, nextSourcePosition);
}
];
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
}
});
// node_modules/core-js/modules/es.string.replace-all.js
var require_es_string_replace_all = __commonJS({
"node_modules/core-js/modules/es.string.replace-all.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var isCallable = require_is_callable();
var isNullOrUndefined = require_is_null_or_undefined();
var isRegExp = require_is_regexp();
var toString = require_to_string();
var getMethod = require_get_method();
var getRegExpFlags = require_regexp_get_flags();
var getSubstitution = require_get_substitution();
var wellKnownSymbol = require_well_known_symbol();
var IS_PURE = require_is_pure();
var REPLACE = wellKnownSymbol("replace");
var $TypeError = TypeError;
var indexOf = uncurryThis("".indexOf);
var replace = uncurryThis("".replace);
var stringSlice = uncurryThis("".slice);
var max = Math.max;
var stringIndexOf = function(string, searchValue, fromIndex) {
if (fromIndex > string.length)
return -1;
if (searchValue === "")
return fromIndex;
return indexOf(string, searchValue, fromIndex);
};
$2({ target: "String", proto: true }, {
replaceAll: function replaceAll(searchValue, replaceValue) {
var O = requireObjectCoercible(this);
var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;
var position = 0;
var endOfLastMatch = 0;
var result = "";
if (!isNullOrUndefined(searchValue)) {
IS_REG_EXP = isRegExp(searchValue);
if (IS_REG_EXP) {
flags = toString(requireObjectCoercible(getRegExpFlags(searchValue)));
if (!~indexOf(flags, "g"))
throw $TypeError("`.replaceAll` does not allow non-global regexes");
}
replacer = getMethod(searchValue, REPLACE);
if (replacer) {
return call(replacer, searchValue, O, replaceValue);
} else if (IS_PURE && IS_REG_EXP) {
return replace(toString(O), searchValue, replaceValue);
}
}
string = toString(O);
searchString = toString(searchValue);
functionalReplace = isCallable(replaceValue);
if (!functionalReplace)
replaceValue = toString(replaceValue);
searchLength = searchString.length;
advanceBy = max(1, searchLength);
position = stringIndexOf(string, searchString, 0);
while (position !== -1) {
replacement = functionalReplace ? toString(replaceValue(searchString, position, string)) : getSubstitution(searchString, string, position, [], void 0, replaceValue);
result += stringSlice(string, endOfLastMatch, position) + replacement;
endOfLastMatch = position + searchLength;
position = stringIndexOf(string, searchString, position + advanceBy);
}
if (endOfLastMatch < string.length) {
result += stringSlice(string, endOfLastMatch);
}
return result;
}
});
}
});
// node_modules/core-js/modules/es.string.search.js
var require_es_string_search = __commonJS({
"node_modules/core-js/modules/es.string.search.js"() {
"use strict";
var call = require_function_call();
var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic();
var anObject = require_an_object();
var isNullOrUndefined = require_is_null_or_undefined();
var requireObjectCoercible = require_require_object_coercible();
var sameValue = require_same_value();
var toString = require_to_string();
var getMethod = require_get_method();
var regExpExec = require_regexp_exec_abstract();
fixRegExpWellKnownSymbolLogic("search", function(SEARCH, nativeSearch, maybeCallNative) {
return [
// `String.prototype.search` method
// https://tc39.es/ecma262/#sec-string.prototype.search
function search(regexp) {
var O = requireObjectCoercible(this);
var searcher = isNullOrUndefined(regexp) ? void 0 : getMethod(regexp, SEARCH);
return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
},
// `RegExp.prototype[@@search]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
function(string) {
var rx = anObject(this);
var S3 = toString(string);
var res = maybeCallNative(nativeSearch, rx, S3);
if (res.done)
return res.value;
var previousLastIndex = rx.lastIndex;
if (!sameValue(previousLastIndex, 0))
rx.lastIndex = 0;
var result = regExpExec(rx, S3);
if (!sameValue(rx.lastIndex, previousLastIndex))
rx.lastIndex = previousLastIndex;
return result === null ? -1 : result.index;
}
];
});
}
});
// node_modules/core-js/modules/es.string.split.js
var require_es_string_split = __commonJS({
"node_modules/core-js/modules/es.string.split.js"() {
"use strict";
var apply = require_function_apply();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic();
var anObject = require_an_object();
var isNullOrUndefined = require_is_null_or_undefined();
var isRegExp = require_is_regexp();
var requireObjectCoercible = require_require_object_coercible();
var speciesConstructor = require_species_constructor();
var advanceStringIndex = require_advance_string_index();
var toLength = require_to_length();
var toString = require_to_string();
var getMethod = require_get_method();
var arraySlice = require_array_slice_simple();
var callRegExpExec = require_regexp_exec_abstract();
var regexpExec = require_regexp_exec();
var stickyHelpers = require_regexp_sticky_helpers();
var fails = require_fails();
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
var MAX_UINT32 = 4294967295;
var min = Math.min;
var $push = [].push;
var exec = uncurryThis(/./.exec);
var push = uncurryThis($push);
var stringSlice = uncurryThis("".slice);
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function() {
var re = /(?:)/;
var originalExec = re.exec;
re.exec = function() {
return originalExec.apply(this, arguments);
};
var result = "ab".split(re);
return result.length !== 2 || result[0] !== "a" || result[1] !== "b";
});
fixRegExpWellKnownSymbolLogic("split", function(SPLIT, nativeSplit, maybeCallNative) {
var internalSplit;
if ("abbc".split(/(b)*/)[1] == "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
"test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
".".split(/()()/).length > 1 || "".split(/.?/).length) {
internalSplit = function(separator, limit) {
var string = toString(requireObjectCoercible(this));
var lim = limit === void 0 ? MAX_UINT32 : limit >>> 0;
if (lim === 0)
return [];
if (separator === void 0)
return [string];
if (!isRegExp(separator)) {
return call(nativeSplit, string, separator, lim);
}
var output = [];
var flags = (separator.ignoreCase ? "i" : "") + (separator.multiline ? "m" : "") + (separator.unicode ? "u" : "") + (separator.sticky ? "y" : "");
var lastLastIndex = 0;
var separatorCopy = new RegExp(separator.source, flags + "g");
var match, lastIndex, lastLength;
while (match = call(regexpExec, separatorCopy, string)) {
lastIndex = separatorCopy.lastIndex;
if (lastIndex > lastLastIndex) {
push(output, stringSlice(string, lastLastIndex, match.index));
if (match.length > 1 && match.index < string.length)
apply($push, output, arraySlice(match, 1));
lastLength = match[0].length;
lastLastIndex = lastIndex;
if (output.length >= lim)
break;
}
if (separatorCopy.lastIndex === match.index)
separatorCopy.lastIndex++;
}
if (lastLastIndex === string.length) {
if (lastLength || !exec(separatorCopy, ""))
push(output, "");
} else
push(output, stringSlice(string, lastLastIndex));
return output.length > lim ? arraySlice(output, 0, lim) : output;
};
} else if ("0".split(void 0, 0).length) {
internalSplit = function(separator, limit) {
return separator === void 0 && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
};
} else
internalSplit = nativeSplit;
return [
// `String.prototype.split` method
// https://tc39.es/ecma262/#sec-string.prototype.split
function split(separator, limit) {
var O = requireObjectCoercible(this);
var splitter = isNullOrUndefined(separator) ? void 0 : getMethod(separator, SPLIT);
return splitter ? call(splitter, separator, O, limit) : call(internalSplit, toString(O), separator, limit);
},
// `RegExp.prototype[@@split]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
//
// NOTE: This cannot be properly polyfilled in engines that don't support
// the 'y' flag.
function(string, limit) {
var rx = anObject(this);
var S3 = toString(string);
var res = maybeCallNative(internalSplit, rx, S3, limit, internalSplit !== nativeSplit);
if (res.done)
return res.value;
var C2 = speciesConstructor(rx, RegExp);
var unicodeMatching = rx.unicode;
var flags = (rx.ignoreCase ? "i" : "") + (rx.multiline ? "m" : "") + (rx.unicode ? "u" : "") + (UNSUPPORTED_Y ? "g" : "y");
var splitter = new C2(UNSUPPORTED_Y ? "^(?:" + rx.source + ")" : rx, flags);
var lim = limit === void 0 ? MAX_UINT32 : limit >>> 0;
if (lim === 0)
return [];
if (S3.length === 0)
return callRegExpExec(splitter, S3) === null ? [S3] : [];
var p2 = 0;
var q = 0;
var A2 = [];
while (q < S3.length) {
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
var z2 = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S3, q) : S3);
var e7;
if (z2 === null || (e7 = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S3.length)) === p2) {
q = advanceStringIndex(S3, q, unicodeMatching);
} else {
push(A2, stringSlice(S3, p2, q));
if (A2.length === lim)
return A2;
for (var i4 = 1; i4 <= z2.length - 1; i4++) {
push(A2, z2[i4]);
if (A2.length === lim)
return A2;
}
q = p2 = e7;
}
}
push(A2, stringSlice(S3, p2));
return A2;
}
];
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
}
});
// node_modules/core-js/modules/es.string.starts-with.js
var require_es_string_starts_with = __commonJS({
"node_modules/core-js/modules/es.string.starts-with.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this_clause();
var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
var toLength = require_to_length();
var toString = require_to_string();
var notARegExp = require_not_a_regexp();
var requireObjectCoercible = require_require_object_coercible();
var correctIsRegExpLogic = require_correct_is_regexp_logic();
var IS_PURE = require_is_pure();
var nativeStartsWith = uncurryThis("".startsWith);
var stringSlice = uncurryThis("".slice);
var min = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic("startsWith");
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function() {
var descriptor = getOwnPropertyDescriptor(String.prototype, "startsWith");
return descriptor && !descriptor.writable;
}();
$2({ target: "String", proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
startsWith: function startsWith(searchString) {
var that = toString(requireObjectCoercible(this));
notARegExp(searchString);
var index = toLength(min(arguments.length > 1 ? arguments[1] : void 0, that.length));
var search = toString(searchString);
return nativeStartsWith ? nativeStartsWith(that, search, index) : stringSlice(that, index, index + search.length) === search;
}
});
}
});
// node_modules/core-js/modules/es.string.substr.js
var require_es_string_substr = __commonJS({
"node_modules/core-js/modules/es.string.substr.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toString = require_to_string();
var stringSlice = uncurryThis("".slice);
var max = Math.max;
var min = Math.min;
var FORCED = !"".substr || "ab".substr(-1) !== "b";
$2({ target: "String", proto: true, forced: FORCED }, {
substr: function substr(start, length) {
var that = toString(requireObjectCoercible(this));
var size = that.length;
var intStart = toIntegerOrInfinity(start);
var intLength, intEnd;
if (intStart === Infinity)
intStart = 0;
if (intStart < 0)
intStart = max(size + intStart, 0);
intLength = length === void 0 ? size : toIntegerOrInfinity(length);
if (intLength <= 0 || intLength === Infinity)
return "";
intEnd = min(intStart + intLength, size);
return intStart >= intEnd ? "" : stringSlice(that, intStart, intEnd);
}
});
}
});
// node_modules/core-js/internals/string-trim-forced.js
var require_string_trim_forced = __commonJS({
"node_modules/core-js/internals/string-trim-forced.js"(exports, module) {
var PROPER_FUNCTION_NAME = require_function_name().PROPER;
var fails = require_fails();
var whitespaces = require_whitespaces();
var non = "\u200B\x85\u180E";
module.exports = function(METHOD_NAME) {
return fails(function() {
return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() !== non || PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME;
});
};
}
});
// node_modules/core-js/modules/es.string.trim.js
var require_es_string_trim = __commonJS({
"node_modules/core-js/modules/es.string.trim.js"() {
"use strict";
var $2 = require_export();
var $trim = require_string_trim().trim;
var forcedStringTrimMethod = require_string_trim_forced();
$2({ target: "String", proto: true, forced: forcedStringTrimMethod("trim") }, {
trim: function trim() {
return $trim(this);
}
});
}
});
// node_modules/core-js/internals/string-trim-end.js
var require_string_trim_end = __commonJS({
"node_modules/core-js/internals/string-trim-end.js"(exports, module) {
"use strict";
var $trimEnd = require_string_trim().end;
var forcedStringTrimMethod = require_string_trim_forced();
module.exports = forcedStringTrimMethod("trimEnd") ? function trimEnd() {
return $trimEnd(this);
} : "".trimEnd;
}
});
// node_modules/core-js/modules/es.string.trim-right.js
var require_es_string_trim_right = __commonJS({
"node_modules/core-js/modules/es.string.trim-right.js"() {
var $2 = require_export();
var trimEnd = require_string_trim_end();
$2({ target: "String", proto: true, name: "trimEnd", forced: "".trimRight !== trimEnd }, {
trimRight: trimEnd
});
}
});
// node_modules/core-js/modules/es.string.trim-end.js
var require_es_string_trim_end = __commonJS({
"node_modules/core-js/modules/es.string.trim-end.js"() {
require_es_string_trim_right();
var $2 = require_export();
var trimEnd = require_string_trim_end();
$2({ target: "String", proto: true, name: "trimEnd", forced: "".trimEnd !== trimEnd }, {
trimEnd
});
}
});
// node_modules/core-js/internals/string-trim-start.js
var require_string_trim_start = __commonJS({
"node_modules/core-js/internals/string-trim-start.js"(exports, module) {
"use strict";
var $trimStart = require_string_trim().start;
var forcedStringTrimMethod = require_string_trim_forced();
module.exports = forcedStringTrimMethod("trimStart") ? function trimStart() {
return $trimStart(this);
} : "".trimStart;
}
});
// node_modules/core-js/modules/es.string.trim-left.js
var require_es_string_trim_left = __commonJS({
"node_modules/core-js/modules/es.string.trim-left.js"() {
var $2 = require_export();
var trimStart = require_string_trim_start();
$2({ target: "String", proto: true, name: "trimStart", forced: "".trimLeft !== trimStart }, {
trimLeft: trimStart
});
}
});
// node_modules/core-js/modules/es.string.trim-start.js
var require_es_string_trim_start = __commonJS({
"node_modules/core-js/modules/es.string.trim-start.js"() {
require_es_string_trim_left();
var $2 = require_export();
var trimStart = require_string_trim_start();
$2({ target: "String", proto: true, name: "trimStart", forced: "".trimStart !== trimStart }, {
trimStart
});
}
});
// node_modules/core-js/internals/create-html.js
var require_create_html = __commonJS({
"node_modules/core-js/internals/create-html.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var toString = require_to_string();
var quot = /"/g;
var replace = uncurryThis("".replace);
module.exports = function(string, tag, attribute, value) {
var S3 = toString(requireObjectCoercible(string));
var p1 = "<" + tag;
if (attribute !== "")
p1 += " " + attribute + '="' + replace(toString(value), quot, "&quot;") + '"';
return p1 + ">" + S3 + "</" + tag + ">";
};
}
});
// node_modules/core-js/internals/string-html-forced.js
var require_string_html_forced = __commonJS({
"node_modules/core-js/internals/string-html-forced.js"(exports, module) {
var fails = require_fails();
module.exports = function(METHOD_NAME) {
return fails(function() {
var test = ""[METHOD_NAME]('"');
return test !== test.toLowerCase() || test.split('"').length > 3;
});
};
}
});
// node_modules/core-js/modules/es.string.anchor.js
var require_es_string_anchor = __commonJS({
"node_modules/core-js/modules/es.string.anchor.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("anchor") }, {
anchor: function anchor(name) {
return createHTML(this, "a", "name", name);
}
});
}
});
// node_modules/core-js/modules/es.string.big.js
var require_es_string_big = __commonJS({
"node_modules/core-js/modules/es.string.big.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("big") }, {
big: function big() {
return createHTML(this, "big", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.blink.js
var require_es_string_blink = __commonJS({
"node_modules/core-js/modules/es.string.blink.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("blink") }, {
blink: function blink() {
return createHTML(this, "blink", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.bold.js
var require_es_string_bold = __commonJS({
"node_modules/core-js/modules/es.string.bold.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("bold") }, {
bold: function bold() {
return createHTML(this, "b", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.fixed.js
var require_es_string_fixed = __commonJS({
"node_modules/core-js/modules/es.string.fixed.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("fixed") }, {
fixed: function fixed() {
return createHTML(this, "tt", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.fontcolor.js
var require_es_string_fontcolor = __commonJS({
"node_modules/core-js/modules/es.string.fontcolor.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("fontcolor") }, {
fontcolor: function fontcolor(color) {
return createHTML(this, "font", "color", color);
}
});
}
});
// node_modules/core-js/modules/es.string.fontsize.js
var require_es_string_fontsize = __commonJS({
"node_modules/core-js/modules/es.string.fontsize.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("fontsize") }, {
fontsize: function fontsize(size) {
return createHTML(this, "font", "size", size);
}
});
}
});
// node_modules/core-js/modules/es.string.italics.js
var require_es_string_italics = __commonJS({
"node_modules/core-js/modules/es.string.italics.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("italics") }, {
italics: function italics() {
return createHTML(this, "i", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.link.js
var require_es_string_link = __commonJS({
"node_modules/core-js/modules/es.string.link.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("link") }, {
link: function link(url) {
return createHTML(this, "a", "href", url);
}
});
}
});
// node_modules/core-js/modules/es.string.small.js
var require_es_string_small = __commonJS({
"node_modules/core-js/modules/es.string.small.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("small") }, {
small: function small() {
return createHTML(this, "small", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.strike.js
var require_es_string_strike = __commonJS({
"node_modules/core-js/modules/es.string.strike.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("strike") }, {
strike: function strike() {
return createHTML(this, "strike", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.sub.js
var require_es_string_sub = __commonJS({
"node_modules/core-js/modules/es.string.sub.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("sub") }, {
sub: function sub() {
return createHTML(this, "sub", "", "");
}
});
}
});
// node_modules/core-js/modules/es.string.sup.js
var require_es_string_sup = __commonJS({
"node_modules/core-js/modules/es.string.sup.js"() {
"use strict";
var $2 = require_export();
var createHTML = require_create_html();
var forcedStringHTMLMethod = require_string_html_forced();
$2({ target: "String", proto: true, forced: forcedStringHTMLMethod("sup") }, {
sup: function sup() {
return createHTML(this, "sup", "", "");
}
});
}
});
// node_modules/core-js/internals/typed-array-constructors-require-wrappers.js
var require_typed_array_constructors_require_wrappers = __commonJS({
"node_modules/core-js/internals/typed-array-constructors-require-wrappers.js"(exports, module) {
var global2 = require_global();
var fails = require_fails();
var checkCorrectnessOfIteration = require_check_correctness_of_iteration();
var NATIVE_ARRAY_BUFFER_VIEWS = require_array_buffer_view_core().NATIVE_ARRAY_BUFFER_VIEWS;
var ArrayBuffer2 = global2.ArrayBuffer;
var Int8Array2 = global2.Int8Array;
module.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function() {
Int8Array2(1);
}) || !fails(function() {
new Int8Array2(-1);
}) || !checkCorrectnessOfIteration(function(iterable) {
new Int8Array2();
new Int8Array2(null);
new Int8Array2(1.5);
new Int8Array2(iterable);
}, true) || fails(function() {
return new Int8Array2(new ArrayBuffer2(2), 1, void 0).length !== 1;
});
}
});
// node_modules/core-js/internals/to-positive-integer.js
var require_to_positive_integer = __commonJS({
"node_modules/core-js/internals/to-positive-integer.js"(exports, module) {
var toIntegerOrInfinity = require_to_integer_or_infinity();
var $RangeError = RangeError;
module.exports = function(it) {
var result = toIntegerOrInfinity(it);
if (result < 0)
throw $RangeError("The argument can't be less than 0");
return result;
};
}
});
// node_modules/core-js/internals/to-offset.js
var require_to_offset = __commonJS({
"node_modules/core-js/internals/to-offset.js"(exports, module) {
var toPositiveInteger = require_to_positive_integer();
var $RangeError = RangeError;
module.exports = function(it, BYTES) {
var offset = toPositiveInteger(it);
if (offset % BYTES)
throw $RangeError("Wrong offset");
return offset;
};
}
});
// node_modules/core-js/internals/is-big-int-array.js
var require_is_big_int_array = __commonJS({
"node_modules/core-js/internals/is-big-int-array.js"(exports, module) {
var classof = require_classof();
module.exports = function(it) {
var klass = classof(it);
return klass == "BigInt64Array" || klass == "BigUint64Array";
};
}
});
// node_modules/core-js/internals/to-big-int.js
var require_to_big_int = __commonJS({
"node_modules/core-js/internals/to-big-int.js"(exports, module) {
var toPrimitive = require_to_primitive();
var $TypeError = TypeError;
module.exports = function(argument) {
var prim = toPrimitive(argument, "number");
if (typeof prim == "number")
throw $TypeError("Can't convert number to bigint");
return BigInt(prim);
};
}
});
// node_modules/core-js/internals/typed-array-from.js
var require_typed_array_from = __commonJS({
"node_modules/core-js/internals/typed-array-from.js"(exports, module) {
var bind = require_function_bind_context();
var call = require_function_call();
var aConstructor = require_a_constructor();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var getIterator = require_get_iterator();
var getIteratorMethod = require_get_iterator_method();
var isArrayIteratorMethod = require_is_array_iterator_method();
var isBigIntArray = require_is_big_int_array();
var aTypedArrayConstructor = require_array_buffer_view_core().aTypedArrayConstructor;
var toBigInt = require_to_big_int();
module.exports = function from(source) {
var C2 = aConstructor(this);
var O = toObject(source);
var argumentsLength = arguments.length;
var mapfn = argumentsLength > 1 ? arguments[1] : void 0;
var mapping = mapfn !== void 0;
var iteratorMethod = getIteratorMethod(O);
var i4, length, result, thisIsBigIntArray, value, step, iterator, next;
if (iteratorMethod && !isArrayIteratorMethod(iteratorMethod)) {
iterator = getIterator(O, iteratorMethod);
next = iterator.next;
O = [];
while (!(step = call(next, iterator)).done) {
O.push(step.value);
}
}
if (mapping && argumentsLength > 2) {
mapfn = bind(mapfn, arguments[2]);
}
length = lengthOfArrayLike(O);
result = new (aTypedArrayConstructor(C2))(length);
thisIsBigIntArray = isBigIntArray(result);
for (i4 = 0; length > i4; i4++) {
value = mapping ? mapfn(O[i4], i4) : O[i4];
result[i4] = thisIsBigIntArray ? toBigInt(value) : +value;
}
return result;
};
}
});
// node_modules/core-js/internals/typed-array-constructor.js
var require_typed_array_constructor = __commonJS({
"node_modules/core-js/internals/typed-array-constructor.js"(exports, module) {
"use strict";
var $2 = require_export();
var global2 = require_global();
var call = require_function_call();
var DESCRIPTORS = require_descriptors();
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require_typed_array_constructors_require_wrappers();
var ArrayBufferViewCore = require_array_buffer_view_core();
var ArrayBufferModule = require_array_buffer();
var anInstance = require_an_instance();
var createPropertyDescriptor = require_create_property_descriptor();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var isIntegralNumber = require_is_integral_number();
var toLength = require_to_length();
var toIndex = require_to_index();
var toOffset = require_to_offset();
var toPropertyKey = require_to_property_key();
var hasOwn = require_has_own_property();
var classof = require_classof();
var isObject = require_is_object();
var isSymbol = require_is_symbol();
var create = require_object_create();
var isPrototypeOf = require_object_is_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var getOwnPropertyNames = require_object_get_own_property_names().f;
var typedArrayFrom = require_typed_array_from();
var forEach = require_array_iteration().forEach;
var setSpecies = require_set_species();
var defineBuiltInAccessor = require_define_built_in_accessor();
var definePropertyModule = require_object_define_property();
var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor();
var InternalStateModule = require_internal_state();
var inheritIfRequired = require_inherit_if_required();
var getInternalState = InternalStateModule.get;
var setInternalState = InternalStateModule.set;
var enforceInternalState = InternalStateModule.enforce;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var round = Math.round;
var RangeError2 = global2.RangeError;
var ArrayBuffer2 = ArrayBufferModule.ArrayBuffer;
var ArrayBufferPrototype = ArrayBuffer2.prototype;
var DataView2 = ArrayBufferModule.DataView;
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
var TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG;
var TypedArray = ArrayBufferViewCore.TypedArray;
var TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var isTypedArray = ArrayBufferViewCore.isTypedArray;
var BYTES_PER_ELEMENT = "BYTES_PER_ELEMENT";
var WRONG_LENGTH = "Wrong length";
var fromList = function(C2, list) {
aTypedArrayConstructor(C2);
var index = 0;
var length = list.length;
var result = new C2(length);
while (length > index)
result[index] = list[index++];
return result;
};
var addGetter = function(it, key) {
defineBuiltInAccessor(it, key, {
configurable: true,
get: function() {
return getInternalState(this)[key];
}
});
};
var isArrayBuffer = function(it) {
var klass;
return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof(it)) == "ArrayBuffer" || klass == "SharedArrayBuffer";
};
var isTypedArrayIndex = function(target, key) {
return isTypedArray(target) && !isSymbol(key) && key in target && isIntegralNumber(+key) && key >= 0;
};
var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {
key = toPropertyKey(key);
return isTypedArrayIndex(target, key) ? createPropertyDescriptor(2, target[key]) : nativeGetOwnPropertyDescriptor(target, key);
};
var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
key = toPropertyKey(key);
if (isTypedArrayIndex(target, key) && isObject(descriptor) && hasOwn(descriptor, "value") && !hasOwn(descriptor, "get") && !hasOwn(descriptor, "set") && !descriptor.configurable && (!hasOwn(descriptor, "writable") || descriptor.writable) && (!hasOwn(descriptor, "enumerable") || descriptor.enumerable)) {
target[key] = descriptor.value;
return target;
}
return nativeDefineProperty(target, key, descriptor);
};
if (DESCRIPTORS) {
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor;
definePropertyModule.f = wrappedDefineProperty;
addGetter(TypedArrayPrototype, "buffer");
addGetter(TypedArrayPrototype, "byteOffset");
addGetter(TypedArrayPrototype, "byteLength");
addGetter(TypedArrayPrototype, "length");
}
$2({ target: "Object", stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
defineProperty: wrappedDefineProperty
});
module.exports = function(TYPE, wrapper, CLAMPED) {
var BYTES = TYPE.match(/\d+/)[0] / 8;
var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? "Clamped" : "") + "Array";
var GETTER = "get" + TYPE;
var SETTER = "set" + TYPE;
var NativeTypedArrayConstructor = global2[CONSTRUCTOR_NAME];
var TypedArrayConstructor = NativeTypedArrayConstructor;
var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;
var exported = {};
var getter = function(that, index) {
var data = getInternalState(that);
return data.view[GETTER](index * BYTES + data.byteOffset, true);
};
var setter = function(that, index, value) {
var data = getInternalState(that);
if (CLAMPED)
value = (value = round(value)) < 0 ? 0 : value > 255 ? 255 : value & 255;
data.view[SETTER](index * BYTES + data.byteOffset, value, true);
};
var addElement = function(that, index) {
nativeDefineProperty(that, index, {
get: function() {
return getter(this, index);
},
set: function(value) {
return setter(this, index, value);
},
enumerable: true
});
};
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
TypedArrayConstructor = wrapper(function(that, data, offset, $length) {
anInstance(that, TypedArrayConstructorPrototype);
var index = 0;
var byteOffset = 0;
var buffer, byteLength, length;
if (!isObject(data)) {
length = toIndex(data);
byteLength = length * BYTES;
buffer = new ArrayBuffer2(byteLength);
} else if (isArrayBuffer(data)) {
buffer = data;
byteOffset = toOffset(offset, BYTES);
var $len = data.byteLength;
if ($length === void 0) {
if ($len % BYTES)
throw RangeError2(WRONG_LENGTH);
byteLength = $len - byteOffset;
if (byteLength < 0)
throw RangeError2(WRONG_LENGTH);
} else {
byteLength = toLength($length) * BYTES;
if (byteLength + byteOffset > $len)
throw RangeError2(WRONG_LENGTH);
}
length = byteLength / BYTES;
} else if (isTypedArray(data)) {
return fromList(TypedArrayConstructor, data);
} else {
return call(typedArrayFrom, TypedArrayConstructor, data);
}
setInternalState(that, {
buffer,
byteOffset,
byteLength,
length,
view: new DataView2(buffer)
});
while (index < length)
addElement(that, index++);
});
if (setPrototypeOf)
setPrototypeOf(TypedArrayConstructor, TypedArray);
TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype);
} else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {
TypedArrayConstructor = wrapper(function(dummy, data, typedArrayOffset, $length) {
anInstance(dummy, TypedArrayConstructorPrototype);
return inheritIfRequired(function() {
if (!isObject(data))
return new NativeTypedArrayConstructor(toIndex(data));
if (isArrayBuffer(data))
return $length !== void 0 ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length) : typedArrayOffset !== void 0 ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES)) : new NativeTypedArrayConstructor(data);
if (isTypedArray(data))
return fromList(TypedArrayConstructor, data);
return call(typedArrayFrom, TypedArrayConstructor, data);
}(), dummy, TypedArrayConstructor);
});
if (setPrototypeOf)
setPrototypeOf(TypedArrayConstructor, TypedArray);
forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function(key) {
if (!(key in TypedArrayConstructor)) {
createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]);
}
});
TypedArrayConstructor.prototype = TypedArrayConstructorPrototype;
}
if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) {
createNonEnumerableProperty(TypedArrayConstructorPrototype, "constructor", TypedArrayConstructor);
}
enforceInternalState(TypedArrayConstructorPrototype).TypedArrayConstructor = TypedArrayConstructor;
if (TYPED_ARRAY_TAG) {
createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
}
var FORCED = TypedArrayConstructor != NativeTypedArrayConstructor;
exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
$2({ global: true, constructor: true, forced: FORCED, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported);
if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
}
if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) {
createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES);
}
setSpecies(CONSTRUCTOR_NAME);
};
} else
module.exports = function() {
};
}
});
// node_modules/core-js/modules/es.typed-array.float32-array.js
var require_es_typed_array_float32_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.float32-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Float32", function(init) {
return function Float32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.float64-array.js
var require_es_typed_array_float64_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.float64-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Float64", function(init) {
return function Float64Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.int8-array.js
var require_es_typed_array_int8_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.int8-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Int8", function(init) {
return function Int8Array2(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.int16-array.js
var require_es_typed_array_int16_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.int16-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Int16", function(init) {
return function Int16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.int32-array.js
var require_es_typed_array_int32_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.int32-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Int32", function(init) {
return function Int32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.uint8-array.js
var require_es_typed_array_uint8_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.uint8-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Uint8", function(init) {
return function Uint8Array2(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js
var require_es_typed_array_uint8_clamped_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Uint8", function(init) {
return function Uint8ClampedArray2(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
}, true);
}
});
// node_modules/core-js/modules/es.typed-array.uint16-array.js
var require_es_typed_array_uint16_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.uint16-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Uint16", function(init) {
return function Uint16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.uint32-array.js
var require_es_typed_array_uint32_array = __commonJS({
"node_modules/core-js/modules/es.typed-array.uint32-array.js"() {
var createTypedArrayConstructor = require_typed_array_constructor();
createTypedArrayConstructor("Uint32", function(init) {
return function Uint32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
}
});
// node_modules/core-js/modules/es.typed-array.at.js
var require_es_typed_array_at = __commonJS({
"node_modules/core-js/modules/es.typed-array.at.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var lengthOfArrayLike = require_length_of_array_like();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("at", function at(index) {
var O = aTypedArray(this);
var len = lengthOfArrayLike(O);
var relativeIndex = toIntegerOrInfinity(index);
var k2 = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return k2 < 0 || k2 >= len ? void 0 : O[k2];
});
}
});
// node_modules/core-js/modules/es.typed-array.copy-within.js
var require_es_typed_array_copy_within = __commonJS({
"node_modules/core-js/modules/es.typed-array.copy-within.js"() {
"use strict";
var uncurryThis = require_function_uncurry_this();
var ArrayBufferViewCore = require_array_buffer_view_core();
var $ArrayCopyWithin = require_array_copy_within();
var u$ArrayCopyWithin = uncurryThis($ArrayCopyWithin);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("copyWithin", function copyWithin(target, start) {
return u$ArrayCopyWithin(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.every.js
var require_es_typed_array_every = __commonJS({
"node_modules/core-js/modules/es.typed-array.every.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $every = require_array_iteration().every;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("every", function every(callbackfn) {
return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.fill.js
var require_es_typed_array_fill = __commonJS({
"node_modules/core-js/modules/es.typed-array.fill.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $fill = require_array_fill();
var toBigInt = require_to_big_int();
var classof = require_classof();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var slice = uncurryThis("".slice);
var CONVERSION_BUG = fails(function() {
var count = 0;
new Int8Array(2).fill({ valueOf: function() {
return count++;
} });
return count !== 1;
});
exportTypedArrayMethod("fill", function fill(value) {
var length = arguments.length;
aTypedArray(this);
var actualValue = slice(classof(this), 0, 3) === "Big" ? toBigInt(value) : +value;
return call($fill, this, actualValue, length > 1 ? arguments[1] : void 0, length > 2 ? arguments[2] : void 0);
}, CONVERSION_BUG);
}
});
// node_modules/core-js/internals/typed-array-species-constructor.js
var require_typed_array_species_constructor = __commonJS({
"node_modules/core-js/internals/typed-array-species-constructor.js"(exports, module) {
var ArrayBufferViewCore = require_array_buffer_view_core();
var speciesConstructor = require_species_constructor();
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
module.exports = function(originalArray) {
return aTypedArrayConstructor(speciesConstructor(originalArray, getTypedArrayConstructor(originalArray)));
};
}
});
// node_modules/core-js/internals/typed-array-from-species-and-list.js
var require_typed_array_from_species_and_list = __commonJS({
"node_modules/core-js/internals/typed-array-from-species-and-list.js"(exports, module) {
var arrayFromConstructorAndList = require_array_from_constructor_and_list();
var typedArraySpeciesConstructor = require_typed_array_species_constructor();
module.exports = function(instance, list) {
return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance), list);
};
}
});
// node_modules/core-js/modules/es.typed-array.filter.js
var require_es_typed_array_filter = __commonJS({
"node_modules/core-js/modules/es.typed-array.filter.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $filter = require_array_iteration().filter;
var fromSpeciesAndList = require_typed_array_from_species_and_list();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("filter", function filter(callbackfn) {
var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
return fromSpeciesAndList(this, list);
});
}
});
// node_modules/core-js/modules/es.typed-array.find.js
var require_es_typed_array_find = __commonJS({
"node_modules/core-js/modules/es.typed-array.find.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $find = require_array_iteration().find;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("find", function find(predicate) {
return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.find-index.js
var require_es_typed_array_find_index = __commonJS({
"node_modules/core-js/modules/es.typed-array.find-index.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $findIndex = require_array_iteration().findIndex;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("findIndex", function findIndex(predicate) {
return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.find-last.js
var require_es_typed_array_find_last = __commonJS({
"node_modules/core-js/modules/es.typed-array.find-last.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $findLast = require_array_iteration_from_last().findLast;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("findLast", function findLast(predicate) {
return $findLast(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.find-last-index.js
var require_es_typed_array_find_last_index = __commonJS({
"node_modules/core-js/modules/es.typed-array.find-last-index.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $findLastIndex = require_array_iteration_from_last().findLastIndex;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("findLastIndex", function findLastIndex(predicate) {
return $findLastIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.for-each.js
var require_es_typed_array_for_each = __commonJS({
"node_modules/core-js/modules/es.typed-array.for-each.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $forEach = require_array_iteration().forEach;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("forEach", function forEach(callbackfn) {
$forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.from.js
var require_es_typed_array_from = __commonJS({
"node_modules/core-js/modules/es.typed-array.from.js"() {
"use strict";
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require_typed_array_constructors_require_wrappers();
var exportTypedArrayStaticMethod = require_array_buffer_view_core().exportTypedArrayStaticMethod;
var typedArrayFrom = require_typed_array_from();
exportTypedArrayStaticMethod("from", typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
}
});
// node_modules/core-js/modules/es.typed-array.includes.js
var require_es_typed_array_includes = __commonJS({
"node_modules/core-js/modules/es.typed-array.includes.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $includes = require_array_includes().includes;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("includes", function includes(searchElement) {
return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.index-of.js
var require_es_typed_array_index_of = __commonJS({
"node_modules/core-js/modules/es.typed-array.index-of.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $indexOf = require_array_includes().indexOf;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("indexOf", function indexOf(searchElement) {
return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.iterator.js
var require_es_typed_array_iterator = __commonJS({
"node_modules/core-js/modules/es.typed-array.iterator.js"() {
"use strict";
var global2 = require_global();
var fails = require_fails();
var uncurryThis = require_function_uncurry_this();
var ArrayBufferViewCore = require_array_buffer_view_core();
var ArrayIterators = require_es_array_iterator();
var wellKnownSymbol = require_well_known_symbol();
var ITERATOR = wellKnownSymbol("iterator");
var Uint8Array2 = global2.Uint8Array;
var arrayValues = uncurryThis(ArrayIterators.values);
var arrayKeys = uncurryThis(ArrayIterators.keys);
var arrayEntries = uncurryThis(ArrayIterators.entries);
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var TypedArrayPrototype = Uint8Array2 && Uint8Array2.prototype;
var GENERIC = !fails(function() {
TypedArrayPrototype[ITERATOR].call([1]);
});
var ITERATOR_IS_VALUES = !!TypedArrayPrototype && TypedArrayPrototype.values && TypedArrayPrototype[ITERATOR] === TypedArrayPrototype.values && TypedArrayPrototype.values.name === "values";
var typedArrayValues = function values() {
return arrayValues(aTypedArray(this));
};
exportTypedArrayMethod("entries", function entries() {
return arrayEntries(aTypedArray(this));
}, GENERIC);
exportTypedArrayMethod("keys", function keys() {
return arrayKeys(aTypedArray(this));
}, GENERIC);
exportTypedArrayMethod("values", typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: "values" });
exportTypedArrayMethod(ITERATOR, typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: "values" });
}
});
// node_modules/core-js/modules/es.typed-array.join.js
var require_es_typed_array_join = __commonJS({
"node_modules/core-js/modules/es.typed-array.join.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var uncurryThis = require_function_uncurry_this();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $join = uncurryThis([].join);
exportTypedArrayMethod("join", function join(separator) {
return $join(aTypedArray(this), separator);
});
}
});
// node_modules/core-js/modules/es.typed-array.last-index-of.js
var require_es_typed_array_last_index_of = __commonJS({
"node_modules/core-js/modules/es.typed-array.last-index-of.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var apply = require_function_apply();
var $lastIndexOf = require_array_last_index_of();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("lastIndexOf", function lastIndexOf(searchElement) {
var length = arguments.length;
return apply($lastIndexOf, aTypedArray(this), length > 1 ? [searchElement, arguments[1]] : [searchElement]);
});
}
});
// node_modules/core-js/modules/es.typed-array.map.js
var require_es_typed_array_map = __commonJS({
"node_modules/core-js/modules/es.typed-array.map.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $map = require_array_iteration().map;
var typedArraySpeciesConstructor = require_typed_array_species_constructor();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("map", function map(mapfn) {
return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : void 0, function(O, length) {
return new (typedArraySpeciesConstructor(O))(length);
});
});
}
});
// node_modules/core-js/modules/es.typed-array.of.js
var require_es_typed_array_of = __commonJS({
"node_modules/core-js/modules/es.typed-array.of.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require_typed_array_constructors_require_wrappers();
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod;
exportTypedArrayStaticMethod("of", function of() {
var index = 0;
var length = arguments.length;
var result = new (aTypedArrayConstructor(this))(length);
while (length > index)
result[index] = arguments[index++];
return result;
}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
}
});
// node_modules/core-js/modules/es.typed-array.reduce.js
var require_es_typed_array_reduce = __commonJS({
"node_modules/core-js/modules/es.typed-array.reduce.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $reduce = require_array_reduce().left;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("reduce", function reduce(callbackfn) {
var length = arguments.length;
return $reduce(aTypedArray(this), callbackfn, length, length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.reduce-right.js
var require_es_typed_array_reduce_right = __commonJS({
"node_modules/core-js/modules/es.typed-array.reduce-right.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $reduceRight = require_array_reduce().right;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("reduceRight", function reduceRight(callbackfn) {
var length = arguments.length;
return $reduceRight(aTypedArray(this), callbackfn, length, length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.reverse.js
var require_es_typed_array_reverse = __commonJS({
"node_modules/core-js/modules/es.typed-array.reverse.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var floor = Math.floor;
exportTypedArrayMethod("reverse", function reverse() {
var that = this;
var length = aTypedArray(that).length;
var middle = floor(length / 2);
var index = 0;
var value;
while (index < middle) {
value = that[index];
that[index++] = that[--length];
that[length] = value;
}
return that;
});
}
});
// node_modules/core-js/modules/es.typed-array.set.js
var require_es_typed_array_set = __commonJS({
"node_modules/core-js/modules/es.typed-array.set.js"() {
"use strict";
var global2 = require_global();
var call = require_function_call();
var ArrayBufferViewCore = require_array_buffer_view_core();
var lengthOfArrayLike = require_length_of_array_like();
var toOffset = require_to_offset();
var toIndexedObject = require_to_object();
var fails = require_fails();
var RangeError2 = global2.RangeError;
var Int8Array2 = global2.Int8Array;
var Int8ArrayPrototype = Int8Array2 && Int8Array2.prototype;
var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails(function() {
var array = new Uint8ClampedArray(2);
call($set, array, { length: 1, 0: 3 }, 1);
return array[1] !== 3;
});
var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function() {
var array = new Int8Array2(2);
array.set(1);
array.set("2", 1);
return array[0] !== 0 || array[1] !== 2;
});
exportTypedArrayMethod("set", function set(arrayLike) {
aTypedArray(this);
var offset = toOffset(arguments.length > 1 ? arguments[1] : void 0, 1);
var src = toIndexedObject(arrayLike);
if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS)
return call($set, this, src, offset);
var length = this.length;
var len = lengthOfArrayLike(src);
var index = 0;
if (len + offset > length)
throw RangeError2("Wrong length");
while (index < len)
this[offset + index] = src[index++];
}, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);
}
});
// node_modules/core-js/modules/es.typed-array.slice.js
var require_es_typed_array_slice = __commonJS({
"node_modules/core-js/modules/es.typed-array.slice.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var typedArraySpeciesConstructor = require_typed_array_species_constructor();
var fails = require_fails();
var arraySlice = require_array_slice();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var FORCED = fails(function() {
new Int8Array(1).slice();
});
exportTypedArrayMethod("slice", function slice(start, end) {
var list = arraySlice(aTypedArray(this), start, end);
var C2 = typedArraySpeciesConstructor(this);
var index = 0;
var length = list.length;
var result = new C2(length);
while (length > index)
result[index] = list[index++];
return result;
}, FORCED);
}
});
// node_modules/core-js/modules/es.typed-array.some.js
var require_es_typed_array_some = __commonJS({
"node_modules/core-js/modules/es.typed-array.some.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var $some = require_array_iteration().some;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("some", function some(callbackfn) {
return $some(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : void 0);
});
}
});
// node_modules/core-js/modules/es.typed-array.sort.js
var require_es_typed_array_sort = __commonJS({
"node_modules/core-js/modules/es.typed-array.sort.js"() {
"use strict";
var global2 = require_global();
var uncurryThis = require_function_uncurry_this_clause();
var fails = require_fails();
var aCallable = require_a_callable();
var internalSort = require_array_sort();
var ArrayBufferViewCore = require_array_buffer_view_core();
var FF = require_engine_ff_version();
var IE_OR_EDGE = require_engine_is_ie_or_edge();
var V8 = require_engine_v8_version();
var WEBKIT = require_engine_webkit_version();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var Uint16Array = global2.Uint16Array;
var nativeSort = Uint16Array && uncurryThis(Uint16Array.prototype.sort);
var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort && !(fails(function() {
nativeSort(new Uint16Array(2), null);
}) && fails(function() {
nativeSort(new Uint16Array(2), {});
}));
var STABLE_SORT = !!nativeSort && !fails(function() {
if (V8)
return V8 < 74;
if (FF)
return FF < 67;
if (IE_OR_EDGE)
return true;
if (WEBKIT)
return WEBKIT < 602;
var array = new Uint16Array(516);
var expected = Array(516);
var index, mod;
for (index = 0; index < 516; index++) {
mod = index % 4;
array[index] = 515 - index;
expected[index] = index - 2 * mod + 3;
}
nativeSort(array, function(a3, b2) {
return (a3 / 4 | 0) - (b2 / 4 | 0);
});
for (index = 0; index < 516; index++) {
if (array[index] !== expected[index])
return true;
}
});
var getSortCompare = function(comparefn) {
return function(x2, y2) {
if (comparefn !== void 0)
return +comparefn(x2, y2) || 0;
if (y2 !== y2)
return -1;
if (x2 !== x2)
return 1;
if (x2 === 0 && y2 === 0)
return 1 / x2 > 0 && 1 / y2 < 0 ? 1 : -1;
return x2 > y2;
};
};
exportTypedArrayMethod("sort", function sort(comparefn) {
if (comparefn !== void 0)
aCallable(comparefn);
if (STABLE_SORT)
return nativeSort(this, comparefn);
return internalSort(aTypedArray(this), getSortCompare(comparefn));
}, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);
}
});
// node_modules/core-js/modules/es.typed-array.subarray.js
var require_es_typed_array_subarray = __commonJS({
"node_modules/core-js/modules/es.typed-array.subarray.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var toLength = require_to_length();
var toAbsoluteIndex = require_to_absolute_index();
var typedArraySpeciesConstructor = require_typed_array_species_constructor();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
exportTypedArrayMethod("subarray", function subarray(begin, end) {
var O = aTypedArray(this);
var length = O.length;
var beginIndex = toAbsoluteIndex(begin, length);
var C2 = typedArraySpeciesConstructor(O);
return new C2(
O.buffer,
O.byteOffset + beginIndex * O.BYTES_PER_ELEMENT,
toLength((end === void 0 ? length : toAbsoluteIndex(end, length)) - beginIndex)
);
});
}
});
// node_modules/core-js/modules/es.typed-array.to-locale-string.js
var require_es_typed_array_to_locale_string = __commonJS({
"node_modules/core-js/modules/es.typed-array.to-locale-string.js"() {
"use strict";
var global2 = require_global();
var apply = require_function_apply();
var ArrayBufferViewCore = require_array_buffer_view_core();
var fails = require_fails();
var arraySlice = require_array_slice();
var Int8Array2 = global2.Int8Array;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $toLocaleString = [].toLocaleString;
var TO_LOCALE_STRING_BUG = !!Int8Array2 && fails(function() {
$toLocaleString.call(new Int8Array2(1));
});
var FORCED = fails(function() {
return [1, 2].toLocaleString() != new Int8Array2([1, 2]).toLocaleString();
}) || !fails(function() {
Int8Array2.prototype.toLocaleString.call([1, 2]);
});
exportTypedArrayMethod("toLocaleString", function toLocaleString() {
return apply(
$toLocaleString,
TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray(this)) : aTypedArray(this),
arraySlice(arguments)
);
}, FORCED);
}
});
// node_modules/core-js/modules/es.typed-array.to-reversed.js
var require_es_typed_array_to_reversed = __commonJS({
"node_modules/core-js/modules/es.typed-array.to-reversed.js"() {
"use strict";
var arrayToReversed = require_array_to_reversed();
var ArrayBufferViewCore = require_array_buffer_view_core();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
exportTypedArrayMethod("toReversed", function toReversed() {
return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
});
}
});
// node_modules/core-js/modules/es.typed-array.to-sorted.js
var require_es_typed_array_to_sorted = __commonJS({
"node_modules/core-js/modules/es.typed-array.to-sorted.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var uncurryThis = require_function_uncurry_this();
var aCallable = require_a_callable();
var arrayFromConstructorAndList = require_array_from_constructor_and_list();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort);
exportTypedArrayMethod("toSorted", function toSorted(compareFn) {
if (compareFn !== void 0)
aCallable(compareFn);
var O = aTypedArray(this);
var A2 = arrayFromConstructorAndList(getTypedArrayConstructor(O), O);
return sort(A2, compareFn);
});
}
});
// node_modules/core-js/modules/es.typed-array.to-string.js
var require_es_typed_array_to_string = __commonJS({
"node_modules/core-js/modules/es.typed-array.to-string.js"() {
"use strict";
var exportTypedArrayMethod = require_array_buffer_view_core().exportTypedArrayMethod;
var fails = require_fails();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var Uint8Array2 = global2.Uint8Array;
var Uint8ArrayPrototype = Uint8Array2 && Uint8Array2.prototype || {};
var arrayToString = [].toString;
var join = uncurryThis([].join);
if (fails(function() {
arrayToString.call({});
})) {
arrayToString = function toString() {
return join(this);
};
}
var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString;
exportTypedArrayMethod("toString", arrayToString, IS_NOT_ARRAY_METHOD);
}
});
// node_modules/core-js/modules/es.typed-array.with.js
var require_es_typed_array_with = __commonJS({
"node_modules/core-js/modules/es.typed-array.with.js"() {
"use strict";
var arrayWith = require_array_with();
var ArrayBufferViewCore = require_array_buffer_view_core();
var isBigIntArray = require_is_big_int_array();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var toBigInt = require_to_big_int();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var PROPER_ORDER = !!function() {
try {
new Int8Array(1)["with"](2, { valueOf: function() {
throw 8;
} });
} catch (error) {
return error === 8;
}
}();
exportTypedArrayMethod("with", { "with": function(index, value) {
var O = aTypedArray(this);
var relativeIndex = toIntegerOrInfinity(index);
var actualValue = isBigIntArray(O) ? toBigInt(value) : +value;
return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue);
} }["with"], !PROPER_ORDER);
}
});
// node_modules/core-js/modules/es.unescape.js
var require_es_unescape = __commonJS({
"node_modules/core-js/modules/es.unescape.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var toString = require_to_string();
var fromCharCode = String.fromCharCode;
var charAt = uncurryThis("".charAt);
var exec = uncurryThis(/./.exec);
var stringSlice = uncurryThis("".slice);
var hex2 = /^[\da-f]{2}$/i;
var hex4 = /^[\da-f]{4}$/i;
$2({ global: true }, {
unescape: function unescape2(string) {
var str = toString(string);
var result = "";
var length = str.length;
var index = 0;
var chr, part;
while (index < length) {
chr = charAt(str, index++);
if (chr === "%") {
if (charAt(str, index) === "u") {
part = stringSlice(str, index + 1, index + 5);
if (exec(hex4, part)) {
result += fromCharCode(parseInt(part, 16));
index += 5;
continue;
}
} else {
part = stringSlice(str, index, index + 2);
if (exec(hex2, part)) {
result += fromCharCode(parseInt(part, 16));
index += 2;
continue;
}
}
}
result += chr;
}
return result;
}
});
}
});
// node_modules/core-js/internals/collection-weak.js
var require_collection_weak = __commonJS({
"node_modules/core-js/internals/collection-weak.js"(exports, module) {
"use strict";
var uncurryThis = require_function_uncurry_this();
var defineBuiltIns = require_define_built_ins();
var getWeakData = require_internal_metadata().getWeakData;
var anInstance = require_an_instance();
var anObject = require_an_object();
var isNullOrUndefined = require_is_null_or_undefined();
var isObject = require_is_object();
var iterate = require_iterate();
var ArrayIterationModule = require_array_iteration();
var hasOwn = require_has_own_property();
var InternalStateModule = require_internal_state();
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
var find = ArrayIterationModule.find;
var findIndex = ArrayIterationModule.findIndex;
var splice = uncurryThis([].splice);
var id = 0;
var uncaughtFrozenStore = function(state2) {
return state2.frozen || (state2.frozen = new UncaughtFrozenStore());
};
var UncaughtFrozenStore = function() {
this.entries = [];
};
var findUncaughtFrozen = function(store, key) {
return find(store.entries, function(it) {
return it[0] === key;
});
};
UncaughtFrozenStore.prototype = {
get: function(key) {
var entry = findUncaughtFrozen(this, key);
if (entry)
return entry[1];
},
has: function(key) {
return !!findUncaughtFrozen(this, key);
},
set: function(key, value) {
var entry = findUncaughtFrozen(this, key);
if (entry)
entry[1] = value;
else
this.entries.push([key, value]);
},
"delete": function(key) {
var index = findIndex(this.entries, function(it) {
return it[0] === key;
});
if (~index)
splice(this.entries, index, 1);
return !!~index;
}
};
module.exports = {
getConstructor: function(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var Constructor = wrapper(function(that, iterable) {
anInstance(that, Prototype);
setInternalState(that, {
type: CONSTRUCTOR_NAME,
id: id++,
frozen: void 0
});
if (!isNullOrUndefined(iterable))
iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
});
var Prototype = Constructor.prototype;
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
var define2 = function(that, key, value) {
var state2 = getInternalState(that);
var data = getWeakData(anObject(key), true);
if (data === true)
uncaughtFrozenStore(state2).set(key, value);
else
data[state2.id] = value;
return that;
};
defineBuiltIns(Prototype, {
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
"delete": function(key) {
var state2 = getInternalState(this);
if (!isObject(key))
return false;
var data = getWeakData(key);
if (data === true)
return uncaughtFrozenStore(state2)["delete"](key);
return data && hasOwn(data, state2.id) && delete data[state2.id];
},
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
// https://tc39.es/ecma262/#sec-weakset.prototype.has
has: function has(key) {
var state2 = getInternalState(this);
if (!isObject(key))
return false;
var data = getWeakData(key);
if (data === true)
return uncaughtFrozenStore(state2).has(key);
return data && hasOwn(data, state2.id);
}
});
defineBuiltIns(Prototype, IS_MAP ? {
// `WeakMap.prototype.get(key)` method
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
get: function get(key) {
var state2 = getInternalState(this);
if (isObject(key)) {
var data = getWeakData(key);
if (data === true)
return uncaughtFrozenStore(state2).get(key);
return data ? data[state2.id] : void 0;
}
},
// `WeakMap.prototype.set(key, value)` method
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
set: function set(key, value) {
return define2(this, key, value);
}
} : {
// `WeakSet.prototype.add(value)` method
// https://tc39.es/ecma262/#sec-weakset.prototype.add
add: function add(value) {
return define2(this, value, true);
}
});
return Constructor;
}
};
}
});
// node_modules/core-js/modules/es.weak-map.constructor.js
var require_es_weak_map_constructor = __commonJS({
"node_modules/core-js/modules/es.weak-map.constructor.js"() {
"use strict";
var FREEZING = require_freezing();
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var defineBuiltIns = require_define_built_ins();
var InternalMetadataModule = require_internal_metadata();
var collection = require_collection();
var collectionWeak = require_collection_weak();
var isObject = require_is_object();
var enforceInternalState = require_internal_state().enforce;
var fails = require_fails();
var NATIVE_WEAK_MAP = require_weak_map_basic_detection();
var $Object = Object;
var isArray = Array.isArray;
var isExtensible = $Object.isExtensible;
var isFrozen = $Object.isFrozen;
var isSealed = $Object.isSealed;
var freeze = $Object.freeze;
var seal = $Object.seal;
var FROZEN = {};
var SEALED = {};
var IS_IE11 = !global2.ActiveXObject && "ActiveXObject" in global2;
var InternalWeakMap;
var wrapper = function(init) {
return function WeakMap2() {
return init(this, arguments.length ? arguments[0] : void 0);
};
};
var $WeakMap = collection("WeakMap", wrapper, collectionWeak);
var WeakMapPrototype = $WeakMap.prototype;
var nativeSet = uncurryThis(WeakMapPrototype.set);
var hasMSEdgeFreezingBug = function() {
return FREEZING && fails(function() {
var frozenArray = freeze([]);
nativeSet(new $WeakMap(), frozenArray, 1);
return !isFrozen(frozenArray);
});
};
if (NATIVE_WEAK_MAP) {
if (IS_IE11) {
InternalWeakMap = collectionWeak.getConstructor(wrapper, "WeakMap", true);
InternalMetadataModule.enable();
nativeDelete = uncurryThis(WeakMapPrototype["delete"]);
nativeHas = uncurryThis(WeakMapPrototype.has);
nativeGet = uncurryThis(WeakMapPrototype.get);
defineBuiltIns(WeakMapPrototype, {
"delete": function(key) {
if (isObject(key) && !isExtensible(key)) {
var state2 = enforceInternalState(this);
if (!state2.frozen)
state2.frozen = new InternalWeakMap();
return nativeDelete(this, key) || state2.frozen["delete"](key);
}
return nativeDelete(this, key);
},
has: function has(key) {
if (isObject(key) && !isExtensible(key)) {
var state2 = enforceInternalState(this);
if (!state2.frozen)
state2.frozen = new InternalWeakMap();
return nativeHas(this, key) || state2.frozen.has(key);
}
return nativeHas(this, key);
},
get: function get(key) {
if (isObject(key) && !isExtensible(key)) {
var state2 = enforceInternalState(this);
if (!state2.frozen)
state2.frozen = new InternalWeakMap();
return nativeHas(this, key) ? nativeGet(this, key) : state2.frozen.get(key);
}
return nativeGet(this, key);
},
set: function set(key, value) {
if (isObject(key) && !isExtensible(key)) {
var state2 = enforceInternalState(this);
if (!state2.frozen)
state2.frozen = new InternalWeakMap();
nativeHas(this, key) ? nativeSet(this, key, value) : state2.frozen.set(key, value);
} else
nativeSet(this, key, value);
return this;
}
});
} else if (hasMSEdgeFreezingBug()) {
defineBuiltIns(WeakMapPrototype, {
set: function set(key, value) {
var arrayIntegrityLevel;
if (isArray(key)) {
if (isFrozen(key))
arrayIntegrityLevel = FROZEN;
else if (isSealed(key))
arrayIntegrityLevel = SEALED;
}
nativeSet(this, key, value);
if (arrayIntegrityLevel == FROZEN)
freeze(key);
if (arrayIntegrityLevel == SEALED)
seal(key);
return this;
}
});
}
}
var nativeDelete;
var nativeHas;
var nativeGet;
}
});
// node_modules/core-js/modules/es.weak-map.js
var require_es_weak_map = __commonJS({
"node_modules/core-js/modules/es.weak-map.js"() {
require_es_weak_map_constructor();
}
});
// node_modules/core-js/modules/es.weak-set.constructor.js
var require_es_weak_set_constructor = __commonJS({
"node_modules/core-js/modules/es.weak-set.constructor.js"() {
"use strict";
var collection = require_collection();
var collectionWeak = require_collection_weak();
collection("WeakSet", function(init) {
return function WeakSet2() {
return init(this, arguments.length ? arguments[0] : void 0);
};
}, collectionWeak);
}
});
// node_modules/core-js/modules/es.weak-set.js
var require_es_weak_set = __commonJS({
"node_modules/core-js/modules/es.weak-set.js"() {
require_es_weak_set_constructor();
}
});
// node_modules/core-js/internals/base64-map.js
var require_base64_map = __commonJS({
"node_modules/core-js/internals/base64-map.js"(exports, module) {
var itoc = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var ctoi = {};
for (index = 0; index < 66; index++)
ctoi[itoc.charAt(index)] = index;
var index;
module.exports = {
itoc,
ctoi
};
}
});
// node_modules/core-js/modules/web.atob.js
var require_web_atob = __commonJS({
"node_modules/core-js/modules/web.atob.js"() {
var $2 = require_export();
var global2 = require_global();
var getBuiltIn = require_get_built_in();
var uncurryThis = require_function_uncurry_this();
var call = require_function_call();
var fails = require_fails();
var toString = require_to_string();
var hasOwn = require_has_own_property();
var validateArgumentsLength = require_validate_arguments_length();
var ctoi = require_base64_map().ctoi;
var disallowed = /[^\d+/a-z]/i;
var whitespaces = /[\t\n\f\r ]+/g;
var finalEq = /[=]{1,2}$/;
var $atob = getBuiltIn("atob");
var fromCharCode = String.fromCharCode;
var charAt = uncurryThis("".charAt);
var replace = uncurryThis("".replace);
var exec = uncurryThis(disallowed.exec);
var NO_SPACES_IGNORE = fails(function() {
return $atob(" ") !== "";
});
var NO_ENCODING_CHECK = !fails(function() {
$atob("a");
});
var NO_ARG_RECEIVING_CHECK = !NO_SPACES_IGNORE && !NO_ENCODING_CHECK && !fails(function() {
$atob();
});
var WRONG_ARITY = !NO_SPACES_IGNORE && !NO_ENCODING_CHECK && $atob.length !== 1;
$2({ global: true, bind: true, enumerable: true, forced: NO_SPACES_IGNORE || NO_ENCODING_CHECK || NO_ARG_RECEIVING_CHECK || WRONG_ARITY }, {
atob: function atob(data) {
validateArgumentsLength(arguments.length, 1);
if (NO_ARG_RECEIVING_CHECK || WRONG_ARITY)
return call($atob, global2, data);
var string = replace(toString(data), whitespaces, "");
var output = "";
var position = 0;
var bc = 0;
var chr, bs;
if (string.length % 4 == 0) {
string = replace(string, finalEq, "");
}
if (string.length % 4 == 1 || exec(disallowed, string)) {
throw new (getBuiltIn("DOMException"))("The string is not correctly encoded", "InvalidCharacterError");
}
while (chr = charAt(string, position++)) {
if (hasOwn(ctoi, chr)) {
bs = bc % 4 ? bs * 64 + ctoi[chr] : ctoi[chr];
if (bc++ % 4)
output += fromCharCode(255 & bs >> (-2 * bc & 6));
}
}
return output;
}
});
}
});
// node_modules/core-js/modules/web.btoa.js
var require_web_btoa = __commonJS({
"node_modules/core-js/modules/web.btoa.js"() {
var $2 = require_export();
var global2 = require_global();
var getBuiltIn = require_get_built_in();
var uncurryThis = require_function_uncurry_this();
var call = require_function_call();
var fails = require_fails();
var toString = require_to_string();
var validateArgumentsLength = require_validate_arguments_length();
var itoc = require_base64_map().itoc;
var $btoa = getBuiltIn("btoa");
var charAt = uncurryThis("".charAt);
var charCodeAt = uncurryThis("".charCodeAt);
var NO_ARG_RECEIVING_CHECK = !!$btoa && !fails(function() {
$btoa();
});
var WRONG_ARG_CONVERSION = !!$btoa && fails(function() {
return $btoa(null) !== "bnVsbA==";
});
var WRONG_ARITY = !!$btoa && $btoa.length !== 1;
$2({ global: true, bind: true, enumerable: true, forced: NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY }, {
btoa: function btoa(data) {
validateArgumentsLength(arguments.length, 1);
if (NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY)
return call($btoa, global2, toString(data));
var string = toString(data);
var output = "";
var position = 0;
var map = itoc;
var block, charCode;
while (charAt(string, position) || (map = "=", position % 1)) {
charCode = charCodeAt(string, position += 3 / 4);
if (charCode > 255) {
throw new (getBuiltIn("DOMException"))("The string contains characters outside of the Latin1 range", "InvalidCharacterError");
}
block = block << 8 | charCode;
output += charAt(map, 63 & block >> 8 - position % 1 * 8);
}
return output;
}
});
}
});
// node_modules/core-js/internals/dom-iterables.js
var require_dom_iterables = __commonJS({
"node_modules/core-js/internals/dom-iterables.js"(exports, module) {
module.exports = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0
};
}
});
// node_modules/core-js/internals/dom-token-list-prototype.js
var require_dom_token_list_prototype = __commonJS({
"node_modules/core-js/internals/dom-token-list-prototype.js"(exports, module) {
var documentCreateElement = require_document_create_element();
var classList = documentCreateElement("span").classList;
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
module.exports = DOMTokenListPrototype === Object.prototype ? void 0 : DOMTokenListPrototype;
}
});
// node_modules/core-js/modules/web.dom-collections.for-each.js
var require_web_dom_collections_for_each = __commonJS({
"node_modules/core-js/modules/web.dom-collections.for-each.js"() {
var global2 = require_global();
var DOMIterables = require_dom_iterables();
var DOMTokenListPrototype = require_dom_token_list_prototype();
var forEach = require_array_for_each();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var handlePrototype = function(CollectionPrototype) {
if (CollectionPrototype && CollectionPrototype.forEach !== forEach)
try {
createNonEnumerableProperty(CollectionPrototype, "forEach", forEach);
} catch (error) {
CollectionPrototype.forEach = forEach;
}
};
for (COLLECTION_NAME in DOMIterables) {
if (DOMIterables[COLLECTION_NAME]) {
handlePrototype(global2[COLLECTION_NAME] && global2[COLLECTION_NAME].prototype);
}
}
var COLLECTION_NAME;
handlePrototype(DOMTokenListPrototype);
}
});
// node_modules/core-js/modules/web.dom-collections.iterator.js
var require_web_dom_collections_iterator = __commonJS({
"node_modules/core-js/modules/web.dom-collections.iterator.js"() {
var global2 = require_global();
var DOMIterables = require_dom_iterables();
var DOMTokenListPrototype = require_dom_token_list_prototype();
var ArrayIteratorMethods = require_es_array_iterator();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var wellKnownSymbol = require_well_known_symbol();
var ITERATOR = wellKnownSymbol("iterator");
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var ArrayValues = ArrayIteratorMethods.values;
var handlePrototype = function(CollectionPrototype, COLLECTION_NAME2) {
if (CollectionPrototype) {
if (CollectionPrototype[ITERATOR] !== ArrayValues)
try {
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
} catch (error) {
CollectionPrototype[ITERATOR] = ArrayValues;
}
if (!CollectionPrototype[TO_STRING_TAG]) {
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME2);
}
if (DOMIterables[COLLECTION_NAME2])
for (var METHOD_NAME in ArrayIteratorMethods) {
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME])
try {
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
} catch (error) {
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
}
}
}
};
for (COLLECTION_NAME in DOMIterables) {
handlePrototype(global2[COLLECTION_NAME] && global2[COLLECTION_NAME].prototype, COLLECTION_NAME);
}
var COLLECTION_NAME;
handlePrototype(DOMTokenListPrototype, "DOMTokenList");
}
});
// node_modules/core-js/internals/try-node-require.js
var require_try_node_require = __commonJS({
"node_modules/core-js/internals/try-node-require.js"(exports, module) {
var IS_NODE = require_engine_is_node();
module.exports = function(name) {
try {
if (IS_NODE)
return Function('return require("' + name + '")')();
} catch (error) {
}
};
}
});
// node_modules/core-js/internals/dom-exception-constants.js
var require_dom_exception_constants = __commonJS({
"node_modules/core-js/internals/dom-exception-constants.js"(exports, module) {
module.exports = {
IndexSizeError: { s: "INDEX_SIZE_ERR", c: 1, m: 1 },
DOMStringSizeError: { s: "DOMSTRING_SIZE_ERR", c: 2, m: 0 },
HierarchyRequestError: { s: "HIERARCHY_REQUEST_ERR", c: 3, m: 1 },
WrongDocumentError: { s: "WRONG_DOCUMENT_ERR", c: 4, m: 1 },
InvalidCharacterError: { s: "INVALID_CHARACTER_ERR", c: 5, m: 1 },
NoDataAllowedError: { s: "NO_DATA_ALLOWED_ERR", c: 6, m: 0 },
NoModificationAllowedError: { s: "NO_MODIFICATION_ALLOWED_ERR", c: 7, m: 1 },
NotFoundError: { s: "NOT_FOUND_ERR", c: 8, m: 1 },
NotSupportedError: { s: "NOT_SUPPORTED_ERR", c: 9, m: 1 },
InUseAttributeError: { s: "INUSE_ATTRIBUTE_ERR", c: 10, m: 1 },
InvalidStateError: { s: "INVALID_STATE_ERR", c: 11, m: 1 },
SyntaxError: { s: "SYNTAX_ERR", c: 12, m: 1 },
InvalidModificationError: { s: "INVALID_MODIFICATION_ERR", c: 13, m: 1 },
NamespaceError: { s: "NAMESPACE_ERR", c: 14, m: 1 },
InvalidAccessError: { s: "INVALID_ACCESS_ERR", c: 15, m: 1 },
ValidationError: { s: "VALIDATION_ERR", c: 16, m: 0 },
TypeMismatchError: { s: "TYPE_MISMATCH_ERR", c: 17, m: 1 },
SecurityError: { s: "SECURITY_ERR", c: 18, m: 1 },
NetworkError: { s: "NETWORK_ERR", c: 19, m: 1 },
AbortError: { s: "ABORT_ERR", c: 20, m: 1 },
URLMismatchError: { s: "URL_MISMATCH_ERR", c: 21, m: 1 },
QuotaExceededError: { s: "QUOTA_EXCEEDED_ERR", c: 22, m: 1 },
TimeoutError: { s: "TIMEOUT_ERR", c: 23, m: 1 },
InvalidNodeTypeError: { s: "INVALID_NODE_TYPE_ERR", c: 24, m: 1 },
DataCloneError: { s: "DATA_CLONE_ERR", c: 25, m: 1 }
};
}
});
// node_modules/core-js/modules/web.dom-exception.constructor.js
var require_web_dom_exception_constructor = __commonJS({
"node_modules/core-js/modules/web.dom-exception.constructor.js"() {
"use strict";
var $2 = require_export();
var tryNodeRequire = require_try_node_require();
var getBuiltIn = require_get_built_in();
var fails = require_fails();
var create = require_object_create();
var createPropertyDescriptor = require_create_property_descriptor();
var defineProperty = require_object_define_property().f;
var defineBuiltIn = require_define_built_in();
var defineBuiltInAccessor = require_define_built_in_accessor();
var hasOwn = require_has_own_property();
var anInstance = require_an_instance();
var anObject = require_an_object();
var errorToString = require_error_to_string();
var normalizeStringArgument = require_normalize_string_argument();
var DOMExceptionConstants = require_dom_exception_constants();
var clearErrorStack = require_error_stack_clear();
var InternalStateModule = require_internal_state();
var DESCRIPTORS = require_descriptors();
var IS_PURE = require_is_pure();
var DOM_EXCEPTION = "DOMException";
var DATA_CLONE_ERR = "DATA_CLONE_ERR";
var Error2 = getBuiltIn("Error");
var NativeDOMException = getBuiltIn(DOM_EXCEPTION) || function() {
try {
var MessageChannel = getBuiltIn("MessageChannel") || tryNodeRequire("worker_threads").MessageChannel;
new MessageChannel().port1.postMessage(/* @__PURE__ */ new WeakMap());
} catch (error) {
if (error.name == DATA_CLONE_ERR && error.code == 25)
return error.constructor;
}
}();
var NativeDOMExceptionPrototype = NativeDOMException && NativeDOMException.prototype;
var ErrorPrototype = Error2.prototype;
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(DOM_EXCEPTION);
var HAS_STACK = "stack" in Error2(DOM_EXCEPTION);
var codeFor = function(name) {
return hasOwn(DOMExceptionConstants, name) && DOMExceptionConstants[name].m ? DOMExceptionConstants[name].c : 0;
};
var $DOMException = function DOMException() {
anInstance(this, DOMExceptionPrototype);
var argumentsLength = arguments.length;
var message = normalizeStringArgument(argumentsLength < 1 ? void 0 : arguments[0]);
var name = normalizeStringArgument(argumentsLength < 2 ? void 0 : arguments[1], "Error");
var code = codeFor(name);
setInternalState(this, {
type: DOM_EXCEPTION,
name,
message,
code
});
if (!DESCRIPTORS) {
this.name = name;
this.message = message;
this.code = code;
}
if (HAS_STACK) {
var error = Error2(message);
error.name = DOM_EXCEPTION;
defineProperty(this, "stack", createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));
}
};
var DOMExceptionPrototype = $DOMException.prototype = create(ErrorPrototype);
var createGetterDescriptor = function(get) {
return { enumerable: true, configurable: true, get };
};
var getterFor = function(key2) {
return createGetterDescriptor(function() {
return getInternalState(this)[key2];
});
};
if (DESCRIPTORS) {
defineBuiltInAccessor(DOMExceptionPrototype, "code", getterFor("code"));
defineBuiltInAccessor(DOMExceptionPrototype, "message", getterFor("message"));
defineBuiltInAccessor(DOMExceptionPrototype, "name", getterFor("name"));
}
defineProperty(DOMExceptionPrototype, "constructor", createPropertyDescriptor(1, $DOMException));
var INCORRECT_CONSTRUCTOR = fails(function() {
return !(new NativeDOMException() instanceof Error2);
});
var INCORRECT_TO_STRING = INCORRECT_CONSTRUCTOR || fails(function() {
return ErrorPrototype.toString !== errorToString || String(new NativeDOMException(1, 2)) !== "2: 1";
});
var INCORRECT_CODE = INCORRECT_CONSTRUCTOR || fails(function() {
return new NativeDOMException(1, "DataCloneError").code !== 25;
});
var MISSED_CONSTANTS = INCORRECT_CONSTRUCTOR || NativeDOMException[DATA_CLONE_ERR] !== 25 || NativeDOMExceptionPrototype[DATA_CLONE_ERR] !== 25;
var FORCED_CONSTRUCTOR = IS_PURE ? INCORRECT_TO_STRING || INCORRECT_CODE || MISSED_CONSTANTS : INCORRECT_CONSTRUCTOR;
$2({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR }, {
DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
});
var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);
var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;
if (INCORRECT_TO_STRING && (IS_PURE || NativeDOMException === PolyfilledDOMException)) {
defineBuiltIn(PolyfilledDOMExceptionPrototype, "toString", errorToString);
}
if (INCORRECT_CODE && DESCRIPTORS && NativeDOMException === PolyfilledDOMException) {
defineBuiltInAccessor(PolyfilledDOMExceptionPrototype, "code", createGetterDescriptor(function() {
return codeFor(anObject(this).name);
}));
}
for (key in DOMExceptionConstants)
if (hasOwn(DOMExceptionConstants, key)) {
constant = DOMExceptionConstants[key];
constantName = constant.s;
descriptor = createPropertyDescriptor(6, constant.c);
if (!hasOwn(PolyfilledDOMException, constantName)) {
defineProperty(PolyfilledDOMException, constantName, descriptor);
}
if (!hasOwn(PolyfilledDOMExceptionPrototype, constantName)) {
defineProperty(PolyfilledDOMExceptionPrototype, constantName, descriptor);
}
}
var constant;
var constantName;
var descriptor;
var key;
}
});
// node_modules/core-js/modules/web.dom-exception.stack.js
var require_web_dom_exception_stack = __commonJS({
"node_modules/core-js/modules/web.dom-exception.stack.js"() {
"use strict";
var $2 = require_export();
var global2 = require_global();
var getBuiltIn = require_get_built_in();
var createPropertyDescriptor = require_create_property_descriptor();
var defineProperty = require_object_define_property().f;
var hasOwn = require_has_own_property();
var anInstance = require_an_instance();
var inheritIfRequired = require_inherit_if_required();
var normalizeStringArgument = require_normalize_string_argument();
var DOMExceptionConstants = require_dom_exception_constants();
var clearErrorStack = require_error_stack_clear();
var DESCRIPTORS = require_descriptors();
var IS_PURE = require_is_pure();
var DOM_EXCEPTION = "DOMException";
var Error2 = getBuiltIn("Error");
var NativeDOMException = getBuiltIn(DOM_EXCEPTION);
var $DOMException = function DOMException() {
anInstance(this, DOMExceptionPrototype);
var argumentsLength = arguments.length;
var message = normalizeStringArgument(argumentsLength < 1 ? void 0 : arguments[0]);
var name = normalizeStringArgument(argumentsLength < 2 ? void 0 : arguments[1], "Error");
var that = new NativeDOMException(message, name);
var error = Error2(message);
error.name = DOM_EXCEPTION;
defineProperty(that, "stack", createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));
inheritIfRequired(that, this, $DOMException);
return that;
};
var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;
var ERROR_HAS_STACK = "stack" in Error2(DOM_EXCEPTION);
var DOM_EXCEPTION_HAS_STACK = "stack" in new NativeDOMException(1, 2);
var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global2, DOM_EXCEPTION);
var BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable);
var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;
$2({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, {
// TODO: fix export logic
DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
});
var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);
var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;
if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {
if (!IS_PURE) {
defineProperty(PolyfilledDOMExceptionPrototype, "constructor", createPropertyDescriptor(1, PolyfilledDOMException));
}
for (key in DOMExceptionConstants)
if (hasOwn(DOMExceptionConstants, key)) {
constant = DOMExceptionConstants[key];
constantName = constant.s;
if (!hasOwn(PolyfilledDOMException, constantName)) {
defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));
}
}
}
var constant;
var constantName;
var key;
}
});
// node_modules/core-js/modules/web.dom-exception.to-string-tag.js
var require_web_dom_exception_to_string_tag = __commonJS({
"node_modules/core-js/modules/web.dom-exception.to-string-tag.js"() {
var getBuiltIn = require_get_built_in();
var setToStringTag = require_set_to_string_tag();
var DOM_EXCEPTION = "DOMException";
setToStringTag(getBuiltIn(DOM_EXCEPTION), DOM_EXCEPTION);
}
});
// node_modules/core-js/modules/web.clear-immediate.js
var require_web_clear_immediate = __commonJS({
"node_modules/core-js/modules/web.clear-immediate.js"() {
var $2 = require_export();
var global2 = require_global();
var clearImmediate = require_task().clear;
$2({ global: true, bind: true, enumerable: true, forced: global2.clearImmediate !== clearImmediate }, {
clearImmediate
});
}
});
// node_modules/core-js/internals/engine-is-bun.js
var require_engine_is_bun = __commonJS({
"node_modules/core-js/internals/engine-is-bun.js"(exports, module) {
module.exports = typeof Bun == "function" && Bun && typeof Bun.version == "string";
}
});
// node_modules/core-js/internals/schedulers-fix.js
var require_schedulers_fix = __commonJS({
"node_modules/core-js/internals/schedulers-fix.js"(exports, module) {
"use strict";
var global2 = require_global();
var apply = require_function_apply();
var isCallable = require_is_callable();
var ENGINE_IS_BUN = require_engine_is_bun();
var USER_AGENT = require_engine_user_agent();
var arraySlice = require_array_slice();
var validateArgumentsLength = require_validate_arguments_length();
var Function2 = global2.Function;
var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && function() {
var version = global2.Bun.version.split(".");
return version.length < 3 || version[0] == 0 && (version[1] < 3 || version[1] == 3 && version[2] == 0);
}();
module.exports = function(scheduler, hasTimeArg) {
var firstParamIndex = hasTimeArg ? 2 : 1;
return WRAP ? function(handler, timeout) {
var boundArgs = validateArgumentsLength(arguments.length, 1) > firstParamIndex;
var fn = isCallable(handler) ? handler : Function2(handler);
var params = boundArgs ? arraySlice(arguments, firstParamIndex) : [];
var callback = boundArgs ? function() {
apply(fn, this, params);
} : fn;
return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);
} : scheduler;
};
}
});
// node_modules/core-js/modules/web.set-immediate.js
var require_web_set_immediate = __commonJS({
"node_modules/core-js/modules/web.set-immediate.js"() {
var $2 = require_export();
var global2 = require_global();
var setTask = require_task().set;
var schedulersFix = require_schedulers_fix();
var setImmediate = global2.setImmediate ? schedulersFix(setTask, false) : setTask;
$2({ global: true, bind: true, enumerable: true, forced: global2.setImmediate !== setImmediate }, {
setImmediate
});
}
});
// node_modules/core-js/modules/web.immediate.js
var require_web_immediate = __commonJS({
"node_modules/core-js/modules/web.immediate.js"() {
require_web_clear_immediate();
require_web_set_immediate();
}
});
// node_modules/core-js/modules/web.queue-microtask.js
var require_web_queue_microtask = __commonJS({
"node_modules/core-js/modules/web.queue-microtask.js"() {
var $2 = require_export();
var global2 = require_global();
var microtask = require_microtask();
var aCallable = require_a_callable();
var validateArgumentsLength = require_validate_arguments_length();
var IS_NODE = require_engine_is_node();
var process2 = global2.process;
$2({ global: true, enumerable: true, dontCallGetSet: true }, {
queueMicrotask: function queueMicrotask(fn) {
validateArgumentsLength(arguments.length, 1);
aCallable(fn);
var domain = IS_NODE && process2.domain;
microtask(domain ? domain.bind(fn) : fn);
}
});
}
});
// node_modules/core-js/modules/web.self.js
var require_web_self = __commonJS({
"node_modules/core-js/modules/web.self.js"() {
"use strict";
var $2 = require_export();
var global2 = require_global();
var defineBuiltInAccessor = require_define_built_in_accessor();
var DESCRIPTORS = require_descriptors();
var $TypeError = TypeError;
var defineProperty = Object.defineProperty;
var INCORRECT_VALUE = global2.self !== global2;
try {
if (DESCRIPTORS) {
descriptor = Object.getOwnPropertyDescriptor(global2, "self");
if (INCORRECT_VALUE || !descriptor || !descriptor.get || !descriptor.enumerable) {
defineBuiltInAccessor(global2, "self", {
get: function self2() {
return global2;
},
set: function self2(value) {
if (this !== global2)
throw $TypeError("Illegal invocation");
defineProperty(global2, "self", {
value,
writable: true,
configurable: true,
enumerable: true
});
},
configurable: true,
enumerable: true
});
}
} else
$2({ global: true, simple: true, forced: INCORRECT_VALUE }, {
self: global2
});
} catch (error) {
}
var descriptor;
}
});
// node_modules/core-js/internals/map-helpers.js
var require_map_helpers = __commonJS({
"node_modules/core-js/internals/map-helpers.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var MapPrototype = Map.prototype;
module.exports = {
// eslint-disable-next-line es/no-map -- safe
Map,
set: uncurryThis(MapPrototype.set),
get: uncurryThis(MapPrototype.get),
has: uncurryThis(MapPrototype.has),
remove: uncurryThis(MapPrototype["delete"]),
proto: MapPrototype
};
}
});
// node_modules/core-js/internals/set-helpers.js
var require_set_helpers = __commonJS({
"node_modules/core-js/internals/set-helpers.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var SetPrototype = Set.prototype;
module.exports = {
// eslint-disable-next-line es/no-set -- safe
Set,
add: uncurryThis(SetPrototype.add),
has: uncurryThis(SetPrototype.has),
remove: uncurryThis(SetPrototype["delete"]),
proto: SetPrototype
};
}
});
// node_modules/core-js/internals/structured-clone-proper-transfer.js
var require_structured_clone_proper_transfer = __commonJS({
"node_modules/core-js/internals/structured-clone-proper-transfer.js"(exports, module) {
var global2 = require_global();
var fails = require_fails();
var V8 = require_engine_v8_version();
var IS_BROWSER = require_engine_is_browser();
var IS_DENO = require_engine_is_deno();
var IS_NODE = require_engine_is_node();
var structuredClone = global2.structuredClone;
module.exports = !!structuredClone && !fails(function() {
if (IS_DENO && V8 > 92 || IS_NODE && V8 > 94 || IS_BROWSER && V8 > 97)
return false;
var buffer = new ArrayBuffer(8);
var clone = structuredClone(buffer, { transfer: [buffer] });
return buffer.byteLength != 0 || clone.byteLength != 8;
});
}
});
// node_modules/core-js/modules/web.structured-clone.js
var require_web_structured_clone = __commonJS({
"node_modules/core-js/modules/web.structured-clone.js"() {
var IS_PURE = require_is_pure();
var $2 = require_export();
var global2 = require_global();
var getBuiltin = require_get_built_in();
var uncurryThis = require_function_uncurry_this();
var fails = require_fails();
var uid = require_uid();
var isCallable = require_is_callable();
var isConstructor = require_is_constructor();
var isNullOrUndefined = require_is_null_or_undefined();
var isObject = require_is_object();
var isSymbol = require_is_symbol();
var iterate = require_iterate();
var anObject = require_an_object();
var classof = require_classof();
var hasOwn = require_has_own_property();
var createProperty = require_create_property();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var lengthOfArrayLike = require_length_of_array_like();
var validateArgumentsLength = require_validate_arguments_length();
var getRegExpFlags = require_regexp_get_flags();
var MapHelpers = require_map_helpers();
var SetHelpers = require_set_helpers();
var ERROR_STACK_INSTALLABLE = require_error_stack_installable();
var PROPER_TRANSFER = require_structured_clone_proper_transfer();
var Object2 = global2.Object;
var Array2 = global2.Array;
var Date2 = global2.Date;
var Error2 = global2.Error;
var EvalError = global2.EvalError;
var RangeError2 = global2.RangeError;
var ReferenceError2 = global2.ReferenceError;
var SyntaxError2 = global2.SyntaxError;
var TypeError2 = global2.TypeError;
var URIError = global2.URIError;
var PerformanceMark = global2.PerformanceMark;
var WebAssembly = global2.WebAssembly;
var CompileError = WebAssembly && WebAssembly.CompileError || Error2;
var LinkError = WebAssembly && WebAssembly.LinkError || Error2;
var RuntimeError = WebAssembly && WebAssembly.RuntimeError || Error2;
var DOMException = getBuiltin("DOMException");
var Map2 = MapHelpers.Map;
var mapHas = MapHelpers.has;
var mapGet = MapHelpers.get;
var mapSet = MapHelpers.set;
var Set2 = SetHelpers.Set;
var setAdd = SetHelpers.add;
var objectKeys = getBuiltin("Object", "keys");
var push = uncurryThis([].push);
var thisBooleanValue = uncurryThis(true.valueOf);
var thisNumberValue = uncurryThis(1 .valueOf);
var thisStringValue = uncurryThis("".valueOf);
var thisTimeValue = uncurryThis(Date2.prototype.getTime);
var PERFORMANCE_MARK = uid("structuredClone");
var DATA_CLONE_ERROR = "DataCloneError";
var TRANSFERRING = "Transferring";
var checkBasicSemantic = function(structuredCloneImplementation) {
return !fails(function() {
var set1 = new global2.Set([7]);
var set2 = structuredCloneImplementation(set1);
var number = structuredCloneImplementation(Object2(7));
return set2 == set1 || !set2.has(7) || typeof number != "object" || number != 7;
}) && structuredCloneImplementation;
};
var checkErrorsCloning = function(structuredCloneImplementation, $Error) {
return !fails(function() {
var error = new $Error();
var test = structuredCloneImplementation({ a: error, b: error });
return !(test && test.a === test.b && test.a instanceof $Error && test.a.stack === error.stack);
});
};
var checkNewErrorsCloningSemantic = function(structuredCloneImplementation) {
return !fails(function() {
var test = structuredCloneImplementation(new global2.AggregateError([1], PERFORMANCE_MARK, { cause: 3 }));
return test.name != "AggregateError" || test.errors[0] != 1 || test.message != PERFORMANCE_MARK || test.cause != 3;
});
};
var nativeStructuredClone = global2.structuredClone;
var FORCED_REPLACEMENT = IS_PURE || !checkErrorsCloning(nativeStructuredClone, Error2) || !checkErrorsCloning(nativeStructuredClone, DOMException) || !checkNewErrorsCloningSemantic(nativeStructuredClone);
var structuredCloneFromMark = !nativeStructuredClone && checkBasicSemantic(function(value) {
return new PerformanceMark(PERFORMANCE_MARK, { detail: value }).detail;
});
var nativeRestrictedStructuredClone = checkBasicSemantic(nativeStructuredClone) || structuredCloneFromMark;
var throwUncloneable = function(type) {
throw new DOMException("Uncloneable type: " + type, DATA_CLONE_ERROR);
};
var throwUnpolyfillable = function(type, action) {
throw new DOMException((action || "Cloning") + " of " + type + " cannot be properly polyfilled in this engine", DATA_CLONE_ERROR);
};
var createDataTransfer = function() {
var dataTransfer;
try {
dataTransfer = new global2.DataTransfer();
} catch (error) {
try {
dataTransfer = new global2.ClipboardEvent("").clipboardData;
} catch (error2) {
}
}
return dataTransfer && dataTransfer.items && dataTransfer.files ? dataTransfer : null;
};
var structuredCloneInternal = function(value, map) {
if (isSymbol(value))
throwUncloneable("Symbol");
if (!isObject(value))
return value;
if (map) {
if (mapHas(map, value))
return mapGet(map, value);
} else
map = new Map2();
var type = classof(value);
var deep = false;
var C2, name, cloned, dataTransfer, i4, length, keys, key, source, target, options;
switch (type) {
case "Array":
cloned = Array2(lengthOfArrayLike(value));
deep = true;
break;
case "Object":
cloned = {};
deep = true;
break;
case "Map":
cloned = new Map2();
deep = true;
break;
case "Set":
cloned = new Set2();
deep = true;
break;
case "RegExp":
cloned = new RegExp(value.source, getRegExpFlags(value));
break;
case "Error":
name = value.name;
switch (name) {
case "AggregateError":
cloned = getBuiltin("AggregateError")([]);
break;
case "EvalError":
cloned = EvalError();
break;
case "RangeError":
cloned = RangeError2();
break;
case "ReferenceError":
cloned = ReferenceError2();
break;
case "SyntaxError":
cloned = SyntaxError2();
break;
case "TypeError":
cloned = TypeError2();
break;
case "URIError":
cloned = URIError();
break;
case "CompileError":
cloned = CompileError();
break;
case "LinkError":
cloned = LinkError();
break;
case "RuntimeError":
cloned = RuntimeError();
break;
default:
cloned = Error2();
}
deep = true;
break;
case "DOMException":
cloned = new DOMException(value.message, value.name);
deep = true;
break;
case "DataView":
case "Int8Array":
case "Uint8Array":
case "Uint8ClampedArray":
case "Int16Array":
case "Uint16Array":
case "Int32Array":
case "Uint32Array":
case "Float32Array":
case "Float64Array":
case "BigInt64Array":
case "BigUint64Array":
C2 = global2[type];
if (!isObject(C2))
throwUnpolyfillable(type);
cloned = new C2(
// this is safe, since arraybuffer cannot have circular references
structuredCloneInternal(value.buffer, map),
value.byteOffset,
type === "DataView" ? value.byteLength : value.length
);
break;
case "DOMQuad":
try {
cloned = new DOMQuad(
structuredCloneInternal(value.p1, map),
structuredCloneInternal(value.p2, map),
structuredCloneInternal(value.p3, map),
structuredCloneInternal(value.p4, map)
);
} catch (error) {
if (nativeRestrictedStructuredClone) {
cloned = nativeRestrictedStructuredClone(value);
} else
throwUnpolyfillable(type);
}
break;
case "FileList":
dataTransfer = createDataTransfer();
if (dataTransfer) {
for (i4 = 0, length = lengthOfArrayLike(value); i4 < length; i4++) {
dataTransfer.items.add(structuredCloneInternal(value[i4], map));
}
cloned = dataTransfer.files;
} else if (nativeRestrictedStructuredClone) {
cloned = nativeRestrictedStructuredClone(value);
} else
throwUnpolyfillable(type);
break;
case "ImageData":
try {
cloned = new ImageData(
structuredCloneInternal(value.data, map),
value.width,
value.height,
{ colorSpace: value.colorSpace }
);
} catch (error) {
if (nativeRestrictedStructuredClone) {
cloned = nativeRestrictedStructuredClone(value);
} else
throwUnpolyfillable(type);
}
break;
default:
if (nativeRestrictedStructuredClone) {
cloned = nativeRestrictedStructuredClone(value);
} else
switch (type) {
case "BigInt":
cloned = Object2(value.valueOf());
break;
case "Boolean":
cloned = Object2(thisBooleanValue(value));
break;
case "Number":
cloned = Object2(thisNumberValue(value));
break;
case "String":
cloned = Object2(thisStringValue(value));
break;
case "Date":
cloned = new Date2(thisTimeValue(value));
break;
case "ArrayBuffer":
C2 = global2.DataView;
if (!C2 && typeof value.slice != "function")
throwUnpolyfillable(type);
try {
if (typeof value.slice == "function" && !value.resizable) {
cloned = value.slice(0);
} else {
length = value.byteLength;
options = "maxByteLength" in value ? { maxByteLength: value.maxByteLength } : void 0;
cloned = new ArrayBuffer(length, options);
source = new C2(value);
target = new C2(cloned);
for (i4 = 0; i4 < length; i4++) {
target.setUint8(i4, source.getUint8(i4));
}
}
} catch (error) {
throw new DOMException("ArrayBuffer is detached", DATA_CLONE_ERROR);
}
break;
case "SharedArrayBuffer":
cloned = value;
break;
case "Blob":
try {
cloned = value.slice(0, value.size, value.type);
} catch (error) {
throwUnpolyfillable(type);
}
break;
case "DOMPoint":
case "DOMPointReadOnly":
C2 = global2[type];
try {
cloned = C2.fromPoint ? C2.fromPoint(value) : new C2(value.x, value.y, value.z, value.w);
} catch (error) {
throwUnpolyfillable(type);
}
break;
case "DOMRect":
case "DOMRectReadOnly":
C2 = global2[type];
try {
cloned = C2.fromRect ? C2.fromRect(value) : new C2(value.x, value.y, value.width, value.height);
} catch (error) {
throwUnpolyfillable(type);
}
break;
case "DOMMatrix":
case "DOMMatrixReadOnly":
C2 = global2[type];
try {
cloned = C2.fromMatrix ? C2.fromMatrix(value) : new C2(value);
} catch (error) {
throwUnpolyfillable(type);
}
break;
case "AudioData":
case "VideoFrame":
if (!isCallable(value.clone))
throwUnpolyfillable(type);
try {
cloned = value.clone();
} catch (error) {
throwUncloneable(type);
}
break;
case "File":
try {
cloned = new File([value], value.name, value);
} catch (error) {
throwUnpolyfillable(type);
}
break;
case "CropTarget":
case "CryptoKey":
case "FileSystemDirectoryHandle":
case "FileSystemFileHandle":
case "FileSystemHandle":
case "GPUCompilationInfo":
case "GPUCompilationMessage":
case "ImageBitmap":
case "RTCCertificate":
case "WebAssembly.Module":
throwUnpolyfillable(type);
default:
throwUncloneable(type);
}
}
mapSet(map, value, cloned);
if (deep)
switch (type) {
case "Array":
case "Object":
keys = objectKeys(value);
for (i4 = 0, length = lengthOfArrayLike(keys); i4 < length; i4++) {
key = keys[i4];
createProperty(cloned, key, structuredCloneInternal(value[key], map));
}
break;
case "Map":
value.forEach(function(v2, k2) {
mapSet(cloned, structuredCloneInternal(k2, map), structuredCloneInternal(v2, map));
});
break;
case "Set":
value.forEach(function(v2) {
setAdd(cloned, structuredCloneInternal(v2, map));
});
break;
case "Error":
createNonEnumerableProperty(cloned, "message", structuredCloneInternal(value.message, map));
if (hasOwn(value, "cause")) {
createNonEnumerableProperty(cloned, "cause", structuredCloneInternal(value.cause, map));
}
if (name == "AggregateError") {
cloned.errors = structuredCloneInternal(value.errors, map);
}
case "DOMException":
if (ERROR_STACK_INSTALLABLE) {
createNonEnumerableProperty(cloned, "stack", structuredCloneInternal(value.stack, map));
}
}
return cloned;
};
var tryToTransfer = function(rawTransfer, map) {
if (!isObject(rawTransfer))
throw TypeError2("Transfer option cannot be converted to a sequence");
var transfer = [];
iterate(rawTransfer, function(value2) {
push(transfer, anObject(value2));
});
var i4 = 0;
var length = lengthOfArrayLike(transfer);
var value, type, C2, transferredArray, transferred, canvas, context;
if (PROPER_TRANSFER) {
transferredArray = nativeStructuredClone(transfer, { transfer });
while (i4 < length)
mapSet(map, transfer[i4], transferredArray[i4++]);
} else
while (i4 < length) {
value = transfer[i4++];
if (mapHas(map, value))
throw new DOMException("Duplicate transferable", DATA_CLONE_ERROR);
type = classof(value);
switch (type) {
case "ImageBitmap":
C2 = global2.OffscreenCanvas;
if (!isConstructor(C2))
throwUnpolyfillable(type, TRANSFERRING);
try {
canvas = new C2(value.width, value.height);
context = canvas.getContext("bitmaprenderer");
context.transferFromImageBitmap(value);
transferred = canvas.transferToImageBitmap();
} catch (error) {
}
break;
case "AudioData":
case "VideoFrame":
if (!isCallable(value.clone) || !isCallable(value.close))
throwUnpolyfillable(type, TRANSFERRING);
try {
transferred = value.clone();
value.close();
} catch (error) {
}
break;
case "ArrayBuffer":
if (!isCallable(value.transfer))
throwUnpolyfillable(type, TRANSFERRING);
transferred = value.transfer();
break;
case "MediaSourceHandle":
case "MessagePort":
case "OffscreenCanvas":
case "ReadableStream":
case "TransformStream":
case "WritableStream":
throwUnpolyfillable(type, TRANSFERRING);
}
if (transferred === void 0)
throw new DOMException("This object cannot be transferred: " + type, DATA_CLONE_ERROR);
mapSet(map, value, transferred);
}
};
$2({ global: true, enumerable: true, sham: !PROPER_TRANSFER, forced: FORCED_REPLACEMENT }, {
structuredClone: function structuredClone(value) {
var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : void 0;
var transfer = options ? options.transfer : void 0;
var map;
if (transfer !== void 0) {
map = new Map2();
tryToTransfer(transfer, map);
}
return structuredCloneInternal(value, map);
}
});
}
});
// node_modules/core-js/modules/web.set-interval.js
var require_web_set_interval = __commonJS({
"node_modules/core-js/modules/web.set-interval.js"() {
var $2 = require_export();
var global2 = require_global();
var schedulersFix = require_schedulers_fix();
var setInterval = schedulersFix(global2.setInterval, true);
$2({ global: true, bind: true, forced: global2.setInterval !== setInterval }, {
setInterval
});
}
});
// node_modules/core-js/modules/web.set-timeout.js
var require_web_set_timeout = __commonJS({
"node_modules/core-js/modules/web.set-timeout.js"() {
var $2 = require_export();
var global2 = require_global();
var schedulersFix = require_schedulers_fix();
var setTimeout2 = schedulersFix(global2.setTimeout, true);
$2({ global: true, bind: true, forced: global2.setTimeout !== setTimeout2 }, {
setTimeout: setTimeout2
});
}
});
// node_modules/core-js/modules/web.timers.js
var require_web_timers = __commonJS({
"node_modules/core-js/modules/web.timers.js"() {
require_web_set_interval();
require_web_set_timeout();
}
});
// node_modules/core-js/internals/url-constructor-detection.js
var require_url_constructor_detection = __commonJS({
"node_modules/core-js/internals/url-constructor-detection.js"(exports, module) {
var fails = require_fails();
var wellKnownSymbol = require_well_known_symbol();
var DESCRIPTORS = require_descriptors();
var IS_PURE = require_is_pure();
var ITERATOR = wellKnownSymbol("iterator");
module.exports = !fails(function() {
var url = new URL("b?a=1&b=2&c=3", "http://a");
var searchParams = url.searchParams;
var result = "";
url.pathname = "c%20d";
searchParams.forEach(function(value, key) {
searchParams["delete"]("b");
result += key + value;
});
return IS_PURE && !url.toJSON || !searchParams.size && (IS_PURE || !DESCRIPTORS) || !searchParams.sort || url.href !== "http://a/c%20d?a=1&c=3" || searchParams.get("c") !== "3" || String(new URLSearchParams("?a=1")) !== "a=1" || !searchParams[ITERATOR] || new URL("https://a@b").username !== "a" || new URLSearchParams(new URLSearchParams("a=b")).get("a") !== "b" || new URL("http://\u0442\u0435\u0441\u0442").host !== "xn--e1aybc" || new URL("http://a#\u0431").hash !== "#%D0%B1" || result !== "a1c3" || new URL("http://x", void 0).host !== "x";
});
}
});
// node_modules/core-js/internals/string-punycode-to-ascii.js
var require_string_punycode_to_ascii = __commonJS({
"node_modules/core-js/internals/string-punycode-to-ascii.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var maxInt = 2147483647;
var base = 36;
var tMin = 1;
var tMax = 26;
var skew = 38;
var damp = 700;
var initialBias = 72;
var initialN = 128;
var delimiter = "-";
var regexNonASCII = /[^\0-\u007E]/;
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g;
var OVERFLOW_ERROR = "Overflow: input needs wider integers to process";
var baseMinusTMin = base - tMin;
var $RangeError = RangeError;
var exec = uncurryThis(regexSeparators.exec);
var floor = Math.floor;
var fromCharCode = String.fromCharCode;
var charCodeAt = uncurryThis("".charCodeAt);
var join = uncurryThis([].join);
var push = uncurryThis([].push);
var replace = uncurryThis("".replace);
var split = uncurryThis("".split);
var toLowerCase = uncurryThis("".toLowerCase);
var ucs2decode = function(string) {
var output = [];
var counter = 0;
var length = string.length;
while (counter < length) {
var value = charCodeAt(string, counter++);
if (value >= 55296 && value <= 56319 && counter < length) {
var extra = charCodeAt(string, counter++);
if ((extra & 64512) == 56320) {
push(output, ((value & 1023) << 10) + (extra & 1023) + 65536);
} else {
push(output, value);
counter--;
}
} else {
push(output, value);
}
}
return output;
};
var digitToBasic = function(digit) {
return digit + 22 + 75 * (digit < 26);
};
var adapt = function(delta, numPoints, firstTime) {
var k2 = 0;
delta = firstTime ? floor(delta / damp) : delta >> 1;
delta += floor(delta / numPoints);
while (delta > baseMinusTMin * tMax >> 1) {
delta = floor(delta / baseMinusTMin);
k2 += base;
}
return floor(k2 + (baseMinusTMin + 1) * delta / (delta + skew));
};
var encode = function(input) {
var output = [];
input = ucs2decode(input);
var inputLength = input.length;
var n6 = initialN;
var delta = 0;
var bias = initialBias;
var i4, currentValue;
for (i4 = 0; i4 < input.length; i4++) {
currentValue = input[i4];
if (currentValue < 128) {
push(output, fromCharCode(currentValue));
}
}
var basicLength = output.length;
var handledCPCount = basicLength;
if (basicLength) {
push(output, delimiter);
}
while (handledCPCount < inputLength) {
var m2 = maxInt;
for (i4 = 0; i4 < input.length; i4++) {
currentValue = input[i4];
if (currentValue >= n6 && currentValue < m2) {
m2 = currentValue;
}
}
var handledCPCountPlusOne = handledCPCount + 1;
if (m2 - n6 > floor((maxInt - delta) / handledCPCountPlusOne)) {
throw $RangeError(OVERFLOW_ERROR);
}
delta += (m2 - n6) * handledCPCountPlusOne;
n6 = m2;
for (i4 = 0; i4 < input.length; i4++) {
currentValue = input[i4];
if (currentValue < n6 && ++delta > maxInt) {
throw $RangeError(OVERFLOW_ERROR);
}
if (currentValue == n6) {
var q = delta;
var k2 = base;
while (true) {
var t4 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
if (q < t4)
break;
var qMinusT = q - t4;
var baseMinusT = base - t4;
push(output, fromCharCode(digitToBasic(t4 + qMinusT % baseMinusT)));
q = floor(qMinusT / baseMinusT);
k2 += base;
}
push(output, fromCharCode(digitToBasic(q)));
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
delta = 0;
handledCPCount++;
}
}
delta++;
n6++;
}
return join(output, "");
};
module.exports = function(input) {
var encoded = [];
var labels = split(replace(toLowerCase(input), regexSeparators, "."), ".");
var i4, label;
for (i4 = 0; i4 < labels.length; i4++) {
label = labels[i4];
push(encoded, exec(regexNonASCII, label) ? "xn--" + encode(label) : label);
}
return join(encoded, ".");
};
}
});
// node_modules/core-js/modules/web.url-search-params.constructor.js
var require_web_url_search_params_constructor = __commonJS({
"node_modules/core-js/modules/web.url-search-params.constructor.js"(exports, module) {
"use strict";
require_es_array_iterator();
var $2 = require_export();
var global2 = require_global();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var DESCRIPTORS = require_descriptors();
var USE_NATIVE_URL = require_url_constructor_detection();
var defineBuiltIn = require_define_built_in();
var defineBuiltInAccessor = require_define_built_in_accessor();
var defineBuiltIns = require_define_built_ins();
var setToStringTag = require_set_to_string_tag();
var createIteratorConstructor = require_iterator_create_constructor();
var InternalStateModule = require_internal_state();
var anInstance = require_an_instance();
var isCallable = require_is_callable();
var hasOwn = require_has_own_property();
var bind = require_function_bind_context();
var classof = require_classof();
var anObject = require_an_object();
var isObject = require_is_object();
var $toString = require_to_string();
var create = require_object_create();
var createPropertyDescriptor = require_create_property_descriptor();
var getIterator = require_get_iterator();
var getIteratorMethod = require_get_iterator_method();
var validateArgumentsLength = require_validate_arguments_length();
var wellKnownSymbol = require_well_known_symbol();
var arraySort = require_array_sort();
var ITERATOR = wellKnownSymbol("iterator");
var URL_SEARCH_PARAMS = "URLSearchParams";
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + "Iterator";
var setInternalState = InternalStateModule.set;
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var safeGetBuiltIn = function(name) {
if (!DESCRIPTORS)
return global2[name];
var descriptor = getOwnPropertyDescriptor(global2, name);
return descriptor && descriptor.value;
};
var nativeFetch = safeGetBuiltIn("fetch");
var NativeRequest = safeGetBuiltIn("Request");
var Headers = safeGetBuiltIn("Headers");
var RequestPrototype = NativeRequest && NativeRequest.prototype;
var HeadersPrototype = Headers && Headers.prototype;
var RegExp2 = global2.RegExp;
var TypeError2 = global2.TypeError;
var decodeURIComponent2 = global2.decodeURIComponent;
var encodeURIComponent2 = global2.encodeURIComponent;
var charAt = uncurryThis("".charAt);
var join = uncurryThis([].join);
var push = uncurryThis([].push);
var replace = uncurryThis("".replace);
var shift = uncurryThis([].shift);
var splice = uncurryThis([].splice);
var split = uncurryThis("".split);
var stringSlice = uncurryThis("".slice);
var plus = /\+/g;
var sequences = Array(4);
var percentSequence = function(bytes) {
return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp2("((?:%[\\da-f]{2}){" + bytes + "})", "gi"));
};
var percentDecode = function(sequence) {
try {
return decodeURIComponent2(sequence);
} catch (error) {
return sequence;
}
};
var deserialize = function(it) {
var result = replace(it, plus, " ");
var bytes = 4;
try {
return decodeURIComponent2(result);
} catch (error) {
while (bytes) {
result = replace(result, percentSequence(bytes--), percentDecode);
}
return result;
}
};
var find = /[!'()~]|%20/g;
var replacements = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+"
};
var replacer = function(match) {
return replacements[match];
};
var serialize = function(it) {
return replace(encodeURIComponent2(it), find, replacer);
};
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
setInternalState(this, {
type: URL_SEARCH_PARAMS_ITERATOR,
iterator: getIterator(getInternalParamsState(params).entries),
kind
});
}, "Iterator", function next() {
var state2 = getInternalIteratorState(this);
var kind = state2.kind;
var step = state2.iterator.next();
var entry = step.value;
if (!step.done) {
step.value = kind === "keys" ? entry.key : kind === "values" ? entry.value : [entry.key, entry.value];
}
return step;
}, true);
var URLSearchParamsState = function(init) {
this.entries = [];
this.url = null;
if (init !== void 0) {
if (isObject(init))
this.parseObject(init);
else
this.parseQuery(typeof init == "string" ? charAt(init, 0) === "?" ? stringSlice(init, 1) : init : $toString(init));
}
};
URLSearchParamsState.prototype = {
type: URL_SEARCH_PARAMS,
bindURL: function(url) {
this.url = url;
this.update();
},
parseObject: function(object) {
var iteratorMethod = getIteratorMethod(object);
var iterator, next, step, entryIterator, entryNext, first, second;
if (iteratorMethod) {
iterator = getIterator(object, iteratorMethod);
next = iterator.next;
while (!(step = call(next, iterator)).done) {
entryIterator = getIterator(anObject(step.value));
entryNext = entryIterator.next;
if ((first = call(entryNext, entryIterator)).done || (second = call(entryNext, entryIterator)).done || !call(entryNext, entryIterator).done)
throw TypeError2("Expected sequence with length 2");
push(this.entries, { key: $toString(first.value), value: $toString(second.value) });
}
} else
for (var key in object)
if (hasOwn(object, key)) {
push(this.entries, { key, value: $toString(object[key]) });
}
},
parseQuery: function(query) {
if (query) {
var attributes = split(query, "&");
var index = 0;
var attribute, entry;
while (index < attributes.length) {
attribute = attributes[index++];
if (attribute.length) {
entry = split(attribute, "=");
push(this.entries, {
key: deserialize(shift(entry)),
value: deserialize(join(entry, "="))
});
}
}
}
},
serialize: function() {
var entries = this.entries;
var result = [];
var index = 0;
var entry;
while (index < entries.length) {
entry = entries[index++];
push(result, serialize(entry.key) + "=" + serialize(entry.value));
}
return join(result, "&");
},
update: function() {
this.entries.length = 0;
this.parseQuery(this.url.query);
},
updateURL: function() {
if (this.url)
this.url.update();
}
};
var URLSearchParamsConstructor = function URLSearchParams2() {
anInstance(this, URLSearchParamsPrototype);
var init = arguments.length > 0 ? arguments[0] : void 0;
var state2 = setInternalState(this, new URLSearchParamsState(init));
if (!DESCRIPTORS)
this.length = state2.entries.length;
};
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
defineBuiltIns(URLSearchParamsPrototype, {
// `URLSearchParams.prototype.append` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
append: function append(name, value) {
validateArgumentsLength(arguments.length, 2);
var state2 = getInternalParamsState(this);
push(state2.entries, { key: $toString(name), value: $toString(value) });
if (!DESCRIPTORS)
this.length++;
state2.updateURL();
},
// `URLSearchParams.prototype.delete` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
"delete": function(name) {
validateArgumentsLength(arguments.length, 1);
var state2 = getInternalParamsState(this);
var entries = state2.entries;
var key = $toString(name);
var index = 0;
while (index < entries.length) {
if (entries[index].key === key)
splice(entries, index, 1);
else
index++;
}
if (!DESCRIPTORS)
this.length = entries.length;
state2.updateURL();
},
// `URLSearchParams.prototype.get` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
get: function get(name) {
validateArgumentsLength(arguments.length, 1);
var entries = getInternalParamsState(this).entries;
var key = $toString(name);
var index = 0;
for (; index < entries.length; index++) {
if (entries[index].key === key)
return entries[index].value;
}
return null;
},
// `URLSearchParams.prototype.getAll` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
getAll: function getAll(name) {
validateArgumentsLength(arguments.length, 1);
var entries = getInternalParamsState(this).entries;
var key = $toString(name);
var result = [];
var index = 0;
for (; index < entries.length; index++) {
if (entries[index].key === key)
push(result, entries[index].value);
}
return result;
},
// `URLSearchParams.prototype.has` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
has: function has(name) {
validateArgumentsLength(arguments.length, 1);
var entries = getInternalParamsState(this).entries;
var key = $toString(name);
var index = 0;
while (index < entries.length) {
if (entries[index++].key === key)
return true;
}
return false;
},
// `URLSearchParams.prototype.set` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
set: function set(name, value) {
validateArgumentsLength(arguments.length, 1);
var state2 = getInternalParamsState(this);
var entries = state2.entries;
var found = false;
var key = $toString(name);
var val = $toString(value);
var index = 0;
var entry;
for (; index < entries.length; index++) {
entry = entries[index];
if (entry.key === key) {
if (found)
splice(entries, index--, 1);
else {
found = true;
entry.value = val;
}
}
}
if (!found)
push(entries, { key, value: val });
if (!DESCRIPTORS)
this.length = entries.length;
state2.updateURL();
},
// `URLSearchParams.prototype.sort` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
sort: function sort() {
var state2 = getInternalParamsState(this);
arraySort(state2.entries, function(a3, b2) {
return a3.key > b2.key ? 1 : -1;
});
state2.updateURL();
},
// `URLSearchParams.prototype.forEach` method
forEach: function forEach(callback) {
var entries = getInternalParamsState(this).entries;
var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : void 0);
var index = 0;
var entry;
while (index < entries.length) {
entry = entries[index++];
boundFunction(entry.value, entry.key, this);
}
},
// `URLSearchParams.prototype.keys` method
keys: function keys() {
return new URLSearchParamsIterator(this, "keys");
},
// `URLSearchParams.prototype.values` method
values: function values() {
return new URLSearchParamsIterator(this, "values");
},
// `URLSearchParams.prototype.entries` method
entries: function entries() {
return new URLSearchParamsIterator(this, "entries");
}
}, { enumerable: true });
defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: "entries" });
defineBuiltIn(URLSearchParamsPrototype, "toString", function toString() {
return getInternalParamsState(this).serialize();
}, { enumerable: true });
if (DESCRIPTORS)
defineBuiltInAccessor(URLSearchParamsPrototype, "size", {
get: function size() {
return getInternalParamsState(this).entries.length;
},
configurable: true,
enumerable: true
});
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
$2({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
URLSearchParams: URLSearchParamsConstructor
});
if (!USE_NATIVE_URL && isCallable(Headers)) {
headersHas = uncurryThis(HeadersPrototype.has);
headersSet = uncurryThis(HeadersPrototype.set);
wrapRequestOptions = function(init) {
if (isObject(init)) {
var body = init.body;
var headers;
if (classof(body) === URL_SEARCH_PARAMS) {
headers = init.headers ? new Headers(init.headers) : new Headers();
if (!headersHas(headers, "content-type")) {
headersSet(headers, "content-type", "application/x-www-form-urlencoded;charset=UTF-8");
}
return create(init, {
body: createPropertyDescriptor(0, $toString(body)),
headers: createPropertyDescriptor(0, headers)
});
}
}
return init;
};
if (isCallable(nativeFetch)) {
$2({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
fetch: function fetch2(input) {
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
}
});
}
if (isCallable(NativeRequest)) {
RequestConstructor = function Request(input) {
anInstance(this, RequestPrototype);
return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
};
RequestPrototype.constructor = RequestConstructor;
RequestConstructor.prototype = RequestPrototype;
$2({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
Request: RequestConstructor
});
}
}
var headersHas;
var headersSet;
var wrapRequestOptions;
var RequestConstructor;
module.exports = {
URLSearchParams: URLSearchParamsConstructor,
getState: getInternalParamsState
};
}
});
// node_modules/core-js/modules/web.url.constructor.js
var require_web_url_constructor = __commonJS({
"node_modules/core-js/modules/web.url.constructor.js"() {
"use strict";
require_es_string_iterator();
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var USE_NATIVE_URL = require_url_constructor_detection();
var global2 = require_global();
var bind = require_function_bind_context();
var uncurryThis = require_function_uncurry_this();
var defineBuiltIn = require_define_built_in();
var defineBuiltInAccessor = require_define_built_in_accessor();
var anInstance = require_an_instance();
var hasOwn = require_has_own_property();
var assign = require_object_assign();
var arrayFrom = require_array_from();
var arraySlice = require_array_slice_simple();
var codeAt = require_string_multibyte().codeAt;
var toASCII = require_string_punycode_to_ascii();
var $toString = require_to_string();
var setToStringTag = require_set_to_string_tag();
var validateArgumentsLength = require_validate_arguments_length();
var URLSearchParamsModule = require_web_url_search_params_constructor();
var InternalStateModule = require_internal_state();
var setInternalState = InternalStateModule.set;
var getInternalURLState = InternalStateModule.getterFor("URL");
var URLSearchParams2 = URLSearchParamsModule.URLSearchParams;
var getInternalSearchParamsState = URLSearchParamsModule.getState;
var NativeURL = global2.URL;
var TypeError2 = global2.TypeError;
var parseInt2 = global2.parseInt;
var floor = Math.floor;
var pow = Math.pow;
var charAt = uncurryThis("".charAt);
var exec = uncurryThis(/./.exec);
var join = uncurryThis([].join);
var numberToString = uncurryThis(1 .toString);
var pop = uncurryThis([].pop);
var push = uncurryThis([].push);
var replace = uncurryThis("".replace);
var shift = uncurryThis([].shift);
var split = uncurryThis("".split);
var stringSlice = uncurryThis("".slice);
var toLowerCase = uncurryThis("".toLowerCase);
var unshift = uncurryThis([].unshift);
var INVALID_AUTHORITY = "Invalid authority";
var INVALID_SCHEME = "Invalid scheme";
var INVALID_HOST = "Invalid host";
var INVALID_PORT = "Invalid port";
var ALPHA = /[a-z]/i;
var ALPHANUMERIC = /[\d+-.a-z]/i;
var DIGIT = /\d/;
var HEX_START = /^0x/i;
var OCT = /^[0-7]+$/;
var DEC = /^\d+$/;
var HEX = /^[\da-f]+$/i;
var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
var LEADING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+/;
var TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/;
var TAB_AND_NEW_LINE = /[\t\n\r]/g;
var EOF;
var parseIPv4 = function(input) {
var parts = split(input, ".");
var partsLength, numbers, index, part, radix, number, ipv4;
if (parts.length && parts[parts.length - 1] == "") {
parts.length--;
}
partsLength = parts.length;
if (partsLength > 4)
return input;
numbers = [];
for (index = 0; index < partsLength; index++) {
part = parts[index];
if (part == "")
return input;
radix = 10;
if (part.length > 1 && charAt(part, 0) == "0") {
radix = exec(HEX_START, part) ? 16 : 8;
part = stringSlice(part, radix == 8 ? 1 : 2);
}
if (part === "") {
number = 0;
} else {
if (!exec(radix == 10 ? DEC : radix == 8 ? OCT : HEX, part))
return input;
number = parseInt2(part, radix);
}
push(numbers, number);
}
for (index = 0; index < partsLength; index++) {
number = numbers[index];
if (index == partsLength - 1) {
if (number >= pow(256, 5 - partsLength))
return null;
} else if (number > 255)
return null;
}
ipv4 = pop(numbers);
for (index = 0; index < numbers.length; index++) {
ipv4 += numbers[index] * pow(256, 3 - index);
}
return ipv4;
};
var parseIPv6 = function(input) {
var address = [0, 0, 0, 0, 0, 0, 0, 0];
var pieceIndex = 0;
var compress = null;
var pointer = 0;
var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
var chr = function() {
return charAt(input, pointer);
};
if (chr() == ":") {
if (charAt(input, 1) != ":")
return;
pointer += 2;
pieceIndex++;
compress = pieceIndex;
}
while (chr()) {
if (pieceIndex == 8)
return;
if (chr() == ":") {
if (compress !== null)
return;
pointer++;
pieceIndex++;
compress = pieceIndex;
continue;
}
value = length = 0;
while (length < 4 && exec(HEX, chr())) {
value = value * 16 + parseInt2(chr(), 16);
pointer++;
length++;
}
if (chr() == ".") {
if (length == 0)
return;
pointer -= length;
if (pieceIndex > 6)
return;
numbersSeen = 0;
while (chr()) {
ipv4Piece = null;
if (numbersSeen > 0) {
if (chr() == "." && numbersSeen < 4)
pointer++;
else
return;
}
if (!exec(DIGIT, chr()))
return;
while (exec(DIGIT, chr())) {
number = parseInt2(chr(), 10);
if (ipv4Piece === null)
ipv4Piece = number;
else if (ipv4Piece == 0)
return;
else
ipv4Piece = ipv4Piece * 10 + number;
if (ipv4Piece > 255)
return;
pointer++;
}
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
numbersSeen++;
if (numbersSeen == 2 || numbersSeen == 4)
pieceIndex++;
}
if (numbersSeen != 4)
return;
break;
} else if (chr() == ":") {
pointer++;
if (!chr())
return;
} else if (chr())
return;
address[pieceIndex++] = value;
}
if (compress !== null) {
swaps = pieceIndex - compress;
pieceIndex = 7;
while (pieceIndex != 0 && swaps > 0) {
swap = address[pieceIndex];
address[pieceIndex--] = address[compress + swaps - 1];
address[compress + --swaps] = swap;
}
} else if (pieceIndex != 8)
return;
return address;
};
var findLongestZeroSequence = function(ipv6) {
var maxIndex = null;
var maxLength = 1;
var currStart = null;
var currLength = 0;
var index = 0;
for (; index < 8; index++) {
if (ipv6[index] !== 0) {
if (currLength > maxLength) {
maxIndex = currStart;
maxLength = currLength;
}
currStart = null;
currLength = 0;
} else {
if (currStart === null)
currStart = index;
++currLength;
}
}
if (currLength > maxLength) {
maxIndex = currStart;
maxLength = currLength;
}
return maxIndex;
};
var serializeHost = function(host) {
var result, index, compress, ignore0;
if (typeof host == "number") {
result = [];
for (index = 0; index < 4; index++) {
unshift(result, host % 256);
host = floor(host / 256);
}
return join(result, ".");
} else if (typeof host == "object") {
result = "";
compress = findLongestZeroSequence(host);
for (index = 0; index < 8; index++) {
if (ignore0 && host[index] === 0)
continue;
if (ignore0)
ignore0 = false;
if (compress === index) {
result += index ? ":" : "::";
ignore0 = true;
} else {
result += numberToString(host[index], 16);
if (index < 7)
result += ":";
}
}
return "[" + result + "]";
}
return host;
};
var C0ControlPercentEncodeSet = {};
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
" ": 1,
'"': 1,
"<": 1,
">": 1,
"`": 1
});
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
"#": 1,
"?": 1,
"{": 1,
"}": 1
});
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
"/": 1,
":": 1,
";": 1,
"=": 1,
"@": 1,
"[": 1,
"\\": 1,
"]": 1,
"^": 1,
"|": 1
});
var percentEncode = function(chr, set) {
var code = codeAt(chr, 0);
return code > 32 && code < 127 && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
};
var specialSchemes = {
ftp: 21,
file: null,
http: 80,
https: 443,
ws: 80,
wss: 443
};
var isWindowsDriveLetter = function(string, normalized) {
var second;
return string.length == 2 && exec(ALPHA, charAt(string, 0)) && ((second = charAt(string, 1)) == ":" || !normalized && second == "|");
};
var startsWithWindowsDriveLetter = function(string) {
var third;
return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (string.length == 2 || ((third = charAt(string, 2)) === "/" || third === "\\" || third === "?" || third === "#"));
};
var isSingleDot = function(segment) {
return segment === "." || toLowerCase(segment) === "%2e";
};
var isDoubleDot = function(segment) {
segment = toLowerCase(segment);
return segment === ".." || segment === "%2e." || segment === ".%2e" || segment === "%2e%2e";
};
var SCHEME_START = {};
var SCHEME = {};
var NO_SCHEME = {};
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
var PATH_OR_AUTHORITY = {};
var RELATIVE = {};
var RELATIVE_SLASH = {};
var SPECIAL_AUTHORITY_SLASHES = {};
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
var AUTHORITY = {};
var HOST = {};
var HOSTNAME = {};
var PORT = {};
var FILE = {};
var FILE_SLASH = {};
var FILE_HOST = {};
var PATH_START = {};
var PATH = {};
var CANNOT_BE_A_BASE_URL_PATH = {};
var QUERY = {};
var FRAGMENT = {};
var URLState = function(url, isBase, base) {
var urlString = $toString(url);
var baseState, failure, searchParams;
if (isBase) {
failure = this.parse(urlString);
if (failure)
throw TypeError2(failure);
this.searchParams = null;
} else {
if (base !== void 0)
baseState = new URLState(base, true);
failure = this.parse(urlString, null, baseState);
if (failure)
throw TypeError2(failure);
searchParams = getInternalSearchParamsState(new URLSearchParams2());
searchParams.bindURL(this);
this.searchParams = searchParams;
}
};
URLState.prototype = {
type: "URL",
// https://url.spec.whatwg.org/#url-parsing
// eslint-disable-next-line max-statements -- TODO
parse: function(input, stateOverride, base) {
var url = this;
var state2 = stateOverride || SCHEME_START;
var pointer = 0;
var buffer = "";
var seenAt = false;
var seenBracket = false;
var seenPasswordToken = false;
var codePoints, chr, bufferCodePoints, failure;
input = $toString(input);
if (!stateOverride) {
url.scheme = "";
url.username = "";
url.password = "";
url.host = null;
url.port = null;
url.path = [];
url.query = null;
url.fragment = null;
url.cannotBeABaseURL = false;
input = replace(input, LEADING_C0_CONTROL_OR_SPACE, "");
input = replace(input, TRAILING_C0_CONTROL_OR_SPACE, "$1");
}
input = replace(input, TAB_AND_NEW_LINE, "");
codePoints = arrayFrom(input);
while (pointer <= codePoints.length) {
chr = codePoints[pointer];
switch (state2) {
case SCHEME_START:
if (chr && exec(ALPHA, chr)) {
buffer += toLowerCase(chr);
state2 = SCHEME;
} else if (!stateOverride) {
state2 = NO_SCHEME;
continue;
} else
return INVALID_SCHEME;
break;
case SCHEME:
if (chr && (exec(ALPHANUMERIC, chr) || chr == "+" || chr == "-" || chr == ".")) {
buffer += toLowerCase(chr);
} else if (chr == ":") {
if (stateOverride && (url.isSpecial() != hasOwn(specialSchemes, buffer) || buffer == "file" && (url.includesCredentials() || url.port !== null) || url.scheme == "file" && !url.host))
return;
url.scheme = buffer;
if (stateOverride) {
if (url.isSpecial() && specialSchemes[url.scheme] == url.port)
url.port = null;
return;
}
buffer = "";
if (url.scheme == "file") {
state2 = FILE;
} else if (url.isSpecial() && base && base.scheme == url.scheme) {
state2 = SPECIAL_RELATIVE_OR_AUTHORITY;
} else if (url.isSpecial()) {
state2 = SPECIAL_AUTHORITY_SLASHES;
} else if (codePoints[pointer + 1] == "/") {
state2 = PATH_OR_AUTHORITY;
pointer++;
} else {
url.cannotBeABaseURL = true;
push(url.path, "");
state2 = CANNOT_BE_A_BASE_URL_PATH;
}
} else if (!stateOverride) {
buffer = "";
state2 = NO_SCHEME;
pointer = 0;
continue;
} else
return INVALID_SCHEME;
break;
case NO_SCHEME:
if (!base || base.cannotBeABaseURL && chr != "#")
return INVALID_SCHEME;
if (base.cannotBeABaseURL && chr == "#") {
url.scheme = base.scheme;
url.path = arraySlice(base.path);
url.query = base.query;
url.fragment = "";
url.cannotBeABaseURL = true;
state2 = FRAGMENT;
break;
}
state2 = base.scheme == "file" ? FILE : RELATIVE;
continue;
case SPECIAL_RELATIVE_OR_AUTHORITY:
if (chr == "/" && codePoints[pointer + 1] == "/") {
state2 = SPECIAL_AUTHORITY_IGNORE_SLASHES;
pointer++;
} else {
state2 = RELATIVE;
continue;
}
break;
case PATH_OR_AUTHORITY:
if (chr == "/") {
state2 = AUTHORITY;
break;
} else {
state2 = PATH;
continue;
}
case RELATIVE:
url.scheme = base.scheme;
if (chr == EOF) {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = arraySlice(base.path);
url.query = base.query;
} else if (chr == "/" || chr == "\\" && url.isSpecial()) {
state2 = RELATIVE_SLASH;
} else if (chr == "?") {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = arraySlice(base.path);
url.query = "";
state2 = QUERY;
} else if (chr == "#") {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = arraySlice(base.path);
url.query = base.query;
url.fragment = "";
state2 = FRAGMENT;
} else {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = arraySlice(base.path);
url.path.length--;
state2 = PATH;
continue;
}
break;
case RELATIVE_SLASH:
if (url.isSpecial() && (chr == "/" || chr == "\\")) {
state2 = SPECIAL_AUTHORITY_IGNORE_SLASHES;
} else if (chr == "/") {
state2 = AUTHORITY;
} else {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
state2 = PATH;
continue;
}
break;
case SPECIAL_AUTHORITY_SLASHES:
state2 = SPECIAL_AUTHORITY_IGNORE_SLASHES;
if (chr != "/" || charAt(buffer, pointer + 1) != "/")
continue;
pointer++;
break;
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
if (chr != "/" && chr != "\\") {
state2 = AUTHORITY;
continue;
}
break;
case AUTHORITY:
if (chr == "@") {
if (seenAt)
buffer = "%40" + buffer;
seenAt = true;
bufferCodePoints = arrayFrom(buffer);
for (var i4 = 0; i4 < bufferCodePoints.length; i4++) {
var codePoint = bufferCodePoints[i4];
if (codePoint == ":" && !seenPasswordToken) {
seenPasswordToken = true;
continue;
}
var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
if (seenPasswordToken)
url.password += encodedCodePoints;
else
url.username += encodedCodePoints;
}
buffer = "";
} else if (chr == EOF || chr == "/" || chr == "?" || chr == "#" || chr == "\\" && url.isSpecial()) {
if (seenAt && buffer == "")
return INVALID_AUTHORITY;
pointer -= arrayFrom(buffer).length + 1;
buffer = "";
state2 = HOST;
} else
buffer += chr;
break;
case HOST:
case HOSTNAME:
if (stateOverride && url.scheme == "file") {
state2 = FILE_HOST;
continue;
} else if (chr == ":" && !seenBracket) {
if (buffer == "")
return INVALID_HOST;
failure = url.parseHost(buffer);
if (failure)
return failure;
buffer = "";
state2 = PORT;
if (stateOverride == HOSTNAME)
return;
} else if (chr == EOF || chr == "/" || chr == "?" || chr == "#" || chr == "\\" && url.isSpecial()) {
if (url.isSpecial() && buffer == "")
return INVALID_HOST;
if (stateOverride && buffer == "" && (url.includesCredentials() || url.port !== null))
return;
failure = url.parseHost(buffer);
if (failure)
return failure;
buffer = "";
state2 = PATH_START;
if (stateOverride)
return;
continue;
} else {
if (chr == "[")
seenBracket = true;
else if (chr == "]")
seenBracket = false;
buffer += chr;
}
break;
case PORT:
if (exec(DIGIT, chr)) {
buffer += chr;
} else if (chr == EOF || chr == "/" || chr == "?" || chr == "#" || chr == "\\" && url.isSpecial() || stateOverride) {
if (buffer != "") {
var port = parseInt2(buffer, 10);
if (port > 65535)
return INVALID_PORT;
url.port = url.isSpecial() && port === specialSchemes[url.scheme] ? null : port;
buffer = "";
}
if (stateOverride)
return;
state2 = PATH_START;
continue;
} else
return INVALID_PORT;
break;
case FILE:
url.scheme = "file";
if (chr == "/" || chr == "\\")
state2 = FILE_SLASH;
else if (base && base.scheme == "file") {
if (chr == EOF) {
url.host = base.host;
url.path = arraySlice(base.path);
url.query = base.query;
} else if (chr == "?") {
url.host = base.host;
url.path = arraySlice(base.path);
url.query = "";
state2 = QUERY;
} else if (chr == "#") {
url.host = base.host;
url.path = arraySlice(base.path);
url.query = base.query;
url.fragment = "";
state2 = FRAGMENT;
} else {
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ""))) {
url.host = base.host;
url.path = arraySlice(base.path);
url.shortenPath();
}
state2 = PATH;
continue;
}
} else {
state2 = PATH;
continue;
}
break;
case FILE_SLASH:
if (chr == "/" || chr == "\\") {
state2 = FILE_HOST;
break;
}
if (base && base.scheme == "file" && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ""))) {
if (isWindowsDriveLetter(base.path[0], true))
push(url.path, base.path[0]);
else
url.host = base.host;
}
state2 = PATH;
continue;
case FILE_HOST:
if (chr == EOF || chr == "/" || chr == "\\" || chr == "?" || chr == "#") {
if (!stateOverride && isWindowsDriveLetter(buffer)) {
state2 = PATH;
} else if (buffer == "") {
url.host = "";
if (stateOverride)
return;
state2 = PATH_START;
} else {
failure = url.parseHost(buffer);
if (failure)
return failure;
if (url.host == "localhost")
url.host = "";
if (stateOverride)
return;
buffer = "";
state2 = PATH_START;
}
continue;
} else
buffer += chr;
break;
case PATH_START:
if (url.isSpecial()) {
state2 = PATH;
if (chr != "/" && chr != "\\")
continue;
} else if (!stateOverride && chr == "?") {
url.query = "";
state2 = QUERY;
} else if (!stateOverride && chr == "#") {
url.fragment = "";
state2 = FRAGMENT;
} else if (chr != EOF) {
state2 = PATH;
if (chr != "/")
continue;
}
break;
case PATH:
if (chr == EOF || chr == "/" || chr == "\\" && url.isSpecial() || !stateOverride && (chr == "?" || chr == "#")) {
if (isDoubleDot(buffer)) {
url.shortenPath();
if (chr != "/" && !(chr == "\\" && url.isSpecial())) {
push(url.path, "");
}
} else if (isSingleDot(buffer)) {
if (chr != "/" && !(chr == "\\" && url.isSpecial())) {
push(url.path, "");
}
} else {
if (url.scheme == "file" && !url.path.length && isWindowsDriveLetter(buffer)) {
if (url.host)
url.host = "";
buffer = charAt(buffer, 0) + ":";
}
push(url.path, buffer);
}
buffer = "";
if (url.scheme == "file" && (chr == EOF || chr == "?" || chr == "#")) {
while (url.path.length > 1 && url.path[0] === "") {
shift(url.path);
}
}
if (chr == "?") {
url.query = "";
state2 = QUERY;
} else if (chr == "#") {
url.fragment = "";
state2 = FRAGMENT;
}
} else {
buffer += percentEncode(chr, pathPercentEncodeSet);
}
break;
case CANNOT_BE_A_BASE_URL_PATH:
if (chr == "?") {
url.query = "";
state2 = QUERY;
} else if (chr == "#") {
url.fragment = "";
state2 = FRAGMENT;
} else if (chr != EOF) {
url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
}
break;
case QUERY:
if (!stateOverride && chr == "#") {
url.fragment = "";
state2 = FRAGMENT;
} else if (chr != EOF) {
if (chr == "'" && url.isSpecial())
url.query += "%27";
else if (chr == "#")
url.query += "%23";
else
url.query += percentEncode(chr, C0ControlPercentEncodeSet);
}
break;
case FRAGMENT:
if (chr != EOF)
url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
break;
}
pointer++;
}
},
// https://url.spec.whatwg.org/#host-parsing
parseHost: function(input) {
var result, codePoints, index;
if (charAt(input, 0) == "[") {
if (charAt(input, input.length - 1) != "]")
return INVALID_HOST;
result = parseIPv6(stringSlice(input, 1, -1));
if (!result)
return INVALID_HOST;
this.host = result;
} else if (!this.isSpecial()) {
if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input))
return INVALID_HOST;
result = "";
codePoints = arrayFrom(input);
for (index = 0; index < codePoints.length; index++) {
result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
}
this.host = result;
} else {
input = toASCII(input);
if (exec(FORBIDDEN_HOST_CODE_POINT, input))
return INVALID_HOST;
result = parseIPv4(input);
if (result === null)
return INVALID_HOST;
this.host = result;
}
},
// https://url.spec.whatwg.org/#cannot-have-a-username-password-port
cannotHaveUsernamePasswordPort: function() {
return !this.host || this.cannotBeABaseURL || this.scheme == "file";
},
// https://url.spec.whatwg.org/#include-credentials
includesCredentials: function() {
return this.username != "" || this.password != "";
},
// https://url.spec.whatwg.org/#is-special
isSpecial: function() {
return hasOwn(specialSchemes, this.scheme);
},
// https://url.spec.whatwg.org/#shorten-a-urls-path
shortenPath: function() {
var path = this.path;
var pathSize = path.length;
if (pathSize && (this.scheme != "file" || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
path.length--;
}
},
// https://url.spec.whatwg.org/#concept-url-serializer
serialize: function() {
var url = this;
var scheme = url.scheme;
var username = url.username;
var password = url.password;
var host = url.host;
var port = url.port;
var path = url.path;
var query = url.query;
var fragment = url.fragment;
var output = scheme + ":";
if (host !== null) {
output += "//";
if (url.includesCredentials()) {
output += username + (password ? ":" + password : "") + "@";
}
output += serializeHost(host);
if (port !== null)
output += ":" + port;
} else if (scheme == "file")
output += "//";
output += url.cannotBeABaseURL ? path[0] : path.length ? "/" + join(path, "/") : "";
if (query !== null)
output += "?" + query;
if (fragment !== null)
output += "#" + fragment;
return output;
},
// https://url.spec.whatwg.org/#dom-url-href
setHref: function(href) {
var failure = this.parse(href);
if (failure)
throw TypeError2(failure);
this.searchParams.update();
},
// https://url.spec.whatwg.org/#dom-url-origin
getOrigin: function() {
var scheme = this.scheme;
var port = this.port;
if (scheme == "blob")
try {
return new URLConstructor(scheme.path[0]).origin;
} catch (error) {
return "null";
}
if (scheme == "file" || !this.isSpecial())
return "null";
return scheme + "://" + serializeHost(this.host) + (port !== null ? ":" + port : "");
},
// https://url.spec.whatwg.org/#dom-url-protocol
getProtocol: function() {
return this.scheme + ":";
},
setProtocol: function(protocol) {
this.parse($toString(protocol) + ":", SCHEME_START);
},
// https://url.spec.whatwg.org/#dom-url-username
getUsername: function() {
return this.username;
},
setUsername: function(username) {
var codePoints = arrayFrom($toString(username));
if (this.cannotHaveUsernamePasswordPort())
return;
this.username = "";
for (var i4 = 0; i4 < codePoints.length; i4++) {
this.username += percentEncode(codePoints[i4], userinfoPercentEncodeSet);
}
},
// https://url.spec.whatwg.org/#dom-url-password
getPassword: function() {
return this.password;
},
setPassword: function(password) {
var codePoints = arrayFrom($toString(password));
if (this.cannotHaveUsernamePasswordPort())
return;
this.password = "";
for (var i4 = 0; i4 < codePoints.length; i4++) {
this.password += percentEncode(codePoints[i4], userinfoPercentEncodeSet);
}
},
// https://url.spec.whatwg.org/#dom-url-host
getHost: function() {
var host = this.host;
var port = this.port;
return host === null ? "" : port === null ? serializeHost(host) : serializeHost(host) + ":" + port;
},
setHost: function(host) {
if (this.cannotBeABaseURL)
return;
this.parse(host, HOST);
},
// https://url.spec.whatwg.org/#dom-url-hostname
getHostname: function() {
var host = this.host;
return host === null ? "" : serializeHost(host);
},
setHostname: function(hostname) {
if (this.cannotBeABaseURL)
return;
this.parse(hostname, HOSTNAME);
},
// https://url.spec.whatwg.org/#dom-url-port
getPort: function() {
var port = this.port;
return port === null ? "" : $toString(port);
},
setPort: function(port) {
if (this.cannotHaveUsernamePasswordPort())
return;
port = $toString(port);
if (port == "")
this.port = null;
else
this.parse(port, PORT);
},
// https://url.spec.whatwg.org/#dom-url-pathname
getPathname: function() {
var path = this.path;
return this.cannotBeABaseURL ? path[0] : path.length ? "/" + join(path, "/") : "";
},
setPathname: function(pathname) {
if (this.cannotBeABaseURL)
return;
this.path = [];
this.parse(pathname, PATH_START);
},
// https://url.spec.whatwg.org/#dom-url-search
getSearch: function() {
var query = this.query;
return query ? "?" + query : "";
},
setSearch: function(search) {
search = $toString(search);
if (search == "") {
this.query = null;
} else {
if ("?" == charAt(search, 0))
search = stringSlice(search, 1);
this.query = "";
this.parse(search, QUERY);
}
this.searchParams.update();
},
// https://url.spec.whatwg.org/#dom-url-searchparams
getSearchParams: function() {
return this.searchParams.facade;
},
// https://url.spec.whatwg.org/#dom-url-hash
getHash: function() {
var fragment = this.fragment;
return fragment ? "#" + fragment : "";
},
setHash: function(hash) {
hash = $toString(hash);
if (hash == "") {
this.fragment = null;
return;
}
if ("#" == charAt(hash, 0))
hash = stringSlice(hash, 1);
this.fragment = "";
this.parse(hash, FRAGMENT);
},
update: function() {
this.query = this.searchParams.serialize() || null;
}
};
var URLConstructor = function URL2(url) {
var that = anInstance(this, URLPrototype);
var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : void 0;
var state2 = setInternalState(that, new URLState(url, false, base));
if (!DESCRIPTORS) {
that.href = state2.serialize();
that.origin = state2.getOrigin();
that.protocol = state2.getProtocol();
that.username = state2.getUsername();
that.password = state2.getPassword();
that.host = state2.getHost();
that.hostname = state2.getHostname();
that.port = state2.getPort();
that.pathname = state2.getPathname();
that.search = state2.getSearch();
that.searchParams = state2.getSearchParams();
that.hash = state2.getHash();
}
};
var URLPrototype = URLConstructor.prototype;
var accessorDescriptor = function(getter, setter) {
return {
get: function() {
return getInternalURLState(this)[getter]();
},
set: setter && function(value) {
return getInternalURLState(this)[setter](value);
},
configurable: true,
enumerable: true
};
};
if (DESCRIPTORS) {
defineBuiltInAccessor(URLPrototype, "href", accessorDescriptor("serialize", "setHref"));
defineBuiltInAccessor(URLPrototype, "origin", accessorDescriptor("getOrigin"));
defineBuiltInAccessor(URLPrototype, "protocol", accessorDescriptor("getProtocol", "setProtocol"));
defineBuiltInAccessor(URLPrototype, "username", accessorDescriptor("getUsername", "setUsername"));
defineBuiltInAccessor(URLPrototype, "password", accessorDescriptor("getPassword", "setPassword"));
defineBuiltInAccessor(URLPrototype, "host", accessorDescriptor("getHost", "setHost"));
defineBuiltInAccessor(URLPrototype, "hostname", accessorDescriptor("getHostname", "setHostname"));
defineBuiltInAccessor(URLPrototype, "port", accessorDescriptor("getPort", "setPort"));
defineBuiltInAccessor(URLPrototype, "pathname", accessorDescriptor("getPathname", "setPathname"));
defineBuiltInAccessor(URLPrototype, "search", accessorDescriptor("getSearch", "setSearch"));
defineBuiltInAccessor(URLPrototype, "searchParams", accessorDescriptor("getSearchParams"));
defineBuiltInAccessor(URLPrototype, "hash", accessorDescriptor("getHash", "setHash"));
}
defineBuiltIn(URLPrototype, "toJSON", function toJSON() {
return getInternalURLState(this).serialize();
}, { enumerable: true });
defineBuiltIn(URLPrototype, "toString", function toString() {
return getInternalURLState(this).serialize();
}, { enumerable: true });
if (NativeURL) {
nativeCreateObjectURL = NativeURL.createObjectURL;
nativeRevokeObjectURL = NativeURL.revokeObjectURL;
if (nativeCreateObjectURL)
defineBuiltIn(URLConstructor, "createObjectURL", bind(nativeCreateObjectURL, NativeURL));
if (nativeRevokeObjectURL)
defineBuiltIn(URLConstructor, "revokeObjectURL", bind(nativeRevokeObjectURL, NativeURL));
}
var nativeCreateObjectURL;
var nativeRevokeObjectURL;
setToStringTag(URLConstructor, "URL");
$2({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
URL: URLConstructor
});
}
});
// node_modules/core-js/modules/web.url.js
var require_web_url = __commonJS({
"node_modules/core-js/modules/web.url.js"() {
require_web_url_constructor();
}
});
// node_modules/core-js/modules/web.url.can-parse.js
var require_web_url_can_parse = __commonJS({
"node_modules/core-js/modules/web.url.can-parse.js"() {
var $2 = require_export();
var getBuiltIn = require_get_built_in();
var fails = require_fails();
var validateArgumentsLength = require_validate_arguments_length();
var toString = require_to_string();
var USE_NATIVE_URL = require_url_constructor_detection();
var URL2 = getBuiltIn("URL");
var THROWS_WITHOUT_ARGUMENTS = USE_NATIVE_URL && fails(function() {
URL2.canParse();
});
$2({ target: "URL", stat: true, forced: !THROWS_WITHOUT_ARGUMENTS }, {
canParse: function canParse(url) {
var length = validateArgumentsLength(arguments.length, 1);
var urlString = toString(url);
var base = length < 2 || arguments[1] === void 0 ? void 0 : toString(arguments[1]);
try {
return !!new URL2(urlString, base);
} catch (error) {
return false;
}
}
});
}
});
// node_modules/core-js/modules/web.url.to-json.js
var require_web_url_to_json = __commonJS({
"node_modules/core-js/modules/web.url.to-json.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
$2({ target: "URL", proto: true, enumerable: true }, {
toJSON: function toJSON() {
return call(URL.prototype.toString, this);
}
});
}
});
// node_modules/core-js/modules/web.url-search-params.js
var require_web_url_search_params = __commonJS({
"node_modules/core-js/modules/web.url-search-params.js"() {
require_web_url_search_params_constructor();
}
});
// node_modules/core-js/modules/web.url-search-params.size.js
var require_web_url_search_params_size = __commonJS({
"node_modules/core-js/modules/web.url-search-params.size.js"() {
"use strict";
var DESCRIPTORS = require_descriptors();
var uncurryThis = require_function_uncurry_this();
var defineBuiltInAccessor = require_define_built_in_accessor();
var URLSearchParamsPrototype = URLSearchParams.prototype;
var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
if (DESCRIPTORS && !("size" in URLSearchParamsPrototype)) {
defineBuiltInAccessor(URLSearchParamsPrototype, "size", {
get: function size() {
var count = 0;
forEach(this, function() {
count++;
});
return count;
},
configurable: true,
enumerable: true
});
}
}
});
// node_modules/core-js/stable/index.js
var require_stable = __commonJS({
"node_modules/core-js/stable/index.js"(exports, module) {
require_es_symbol();
require_es_symbol_description();
require_es_symbol_async_iterator();
require_es_symbol_has_instance();
require_es_symbol_is_concat_spreadable();
require_es_symbol_iterator();
require_es_symbol_match();
require_es_symbol_match_all();
require_es_symbol_replace();
require_es_symbol_search();
require_es_symbol_species();
require_es_symbol_split();
require_es_symbol_to_primitive();
require_es_symbol_to_string_tag();
require_es_symbol_unscopables();
require_es_error_cause();
require_es_error_to_string();
require_es_aggregate_error();
require_es_aggregate_error_cause();
require_es_array_at();
require_es_array_concat();
require_es_array_copy_within();
require_es_array_every();
require_es_array_fill();
require_es_array_filter();
require_es_array_find();
require_es_array_find_index();
require_es_array_find_last();
require_es_array_find_last_index();
require_es_array_flat();
require_es_array_flat_map();
require_es_array_for_each();
require_es_array_from();
require_es_array_includes();
require_es_array_index_of();
require_es_array_is_array();
require_es_array_iterator();
require_es_array_join();
require_es_array_last_index_of();
require_es_array_map();
require_es_array_of();
require_es_array_push();
require_es_array_reduce();
require_es_array_reduce_right();
require_es_array_reverse();
require_es_array_slice();
require_es_array_some();
require_es_array_sort();
require_es_array_species();
require_es_array_splice();
require_es_array_to_reversed();
require_es_array_to_sorted();
require_es_array_to_spliced();
require_es_array_unscopables_flat();
require_es_array_unscopables_flat_map();
require_es_array_unshift();
require_es_array_with();
require_es_array_buffer_constructor();
require_es_array_buffer_is_view();
require_es_array_buffer_slice();
require_es_data_view();
require_es_date_get_year();
require_es_date_now();
require_es_date_set_year();
require_es_date_to_gmt_string();
require_es_date_to_iso_string();
require_es_date_to_json();
require_es_date_to_primitive();
require_es_date_to_string();
require_es_escape();
require_es_function_bind();
require_es_function_has_instance();
require_es_function_name();
require_es_global_this();
require_es_json_stringify();
require_es_json_to_string_tag();
require_es_map();
require_es_math_acosh();
require_es_math_asinh();
require_es_math_atanh();
require_es_math_cbrt();
require_es_math_clz32();
require_es_math_cosh();
require_es_math_expm1();
require_es_math_fround();
require_es_math_hypot();
require_es_math_imul();
require_es_math_log10();
require_es_math_log1p();
require_es_math_log2();
require_es_math_sign();
require_es_math_sinh();
require_es_math_tanh();
require_es_math_to_string_tag();
require_es_math_trunc();
require_es_number_constructor();
require_es_number_epsilon();
require_es_number_is_finite();
require_es_number_is_integer();
require_es_number_is_nan();
require_es_number_is_safe_integer();
require_es_number_max_safe_integer();
require_es_number_min_safe_integer();
require_es_number_parse_float();
require_es_number_parse_int();
require_es_number_to_exponential();
require_es_number_to_fixed();
require_es_number_to_precision();
require_es_object_assign();
require_es_object_create();
require_es_object_define_getter();
require_es_object_define_properties();
require_es_object_define_property();
require_es_object_define_setter();
require_es_object_entries();
require_es_object_freeze();
require_es_object_from_entries();
require_es_object_get_own_property_descriptor();
require_es_object_get_own_property_descriptors();
require_es_object_get_own_property_names();
require_es_object_get_prototype_of();
require_es_object_has_own();
require_es_object_is();
require_es_object_is_extensible();
require_es_object_is_frozen();
require_es_object_is_sealed();
require_es_object_keys();
require_es_object_lookup_getter();
require_es_object_lookup_setter();
require_es_object_prevent_extensions();
require_es_object_proto();
require_es_object_seal();
require_es_object_set_prototype_of();
require_es_object_to_string();
require_es_object_values();
require_es_parse_float();
require_es_parse_int();
require_es_promise();
require_es_promise_all_settled();
require_es_promise_any();
require_es_promise_finally();
require_es_reflect_apply();
require_es_reflect_construct();
require_es_reflect_define_property();
require_es_reflect_delete_property();
require_es_reflect_get();
require_es_reflect_get_own_property_descriptor();
require_es_reflect_get_prototype_of();
require_es_reflect_has();
require_es_reflect_is_extensible();
require_es_reflect_own_keys();
require_es_reflect_prevent_extensions();
require_es_reflect_set();
require_es_reflect_set_prototype_of();
require_es_reflect_to_string_tag();
require_es_regexp_constructor();
require_es_regexp_dot_all();
require_es_regexp_exec();
require_es_regexp_flags();
require_es_regexp_sticky();
require_es_regexp_test();
require_es_regexp_to_string();
require_es_set();
require_es_string_at_alternative();
require_es_string_code_point_at();
require_es_string_ends_with();
require_es_string_from_code_point();
require_es_string_includes();
require_es_string_iterator();
require_es_string_match();
require_es_string_match_all();
require_es_string_pad_end();
require_es_string_pad_start();
require_es_string_raw();
require_es_string_repeat();
require_es_string_replace();
require_es_string_replace_all();
require_es_string_search();
require_es_string_split();
require_es_string_starts_with();
require_es_string_substr();
require_es_string_trim();
require_es_string_trim_end();
require_es_string_trim_start();
require_es_string_anchor();
require_es_string_big();
require_es_string_blink();
require_es_string_bold();
require_es_string_fixed();
require_es_string_fontcolor();
require_es_string_fontsize();
require_es_string_italics();
require_es_string_link();
require_es_string_small();
require_es_string_strike();
require_es_string_sub();
require_es_string_sup();
require_es_typed_array_float32_array();
require_es_typed_array_float64_array();
require_es_typed_array_int8_array();
require_es_typed_array_int16_array();
require_es_typed_array_int32_array();
require_es_typed_array_uint8_array();
require_es_typed_array_uint8_clamped_array();
require_es_typed_array_uint16_array();
require_es_typed_array_uint32_array();
require_es_typed_array_at();
require_es_typed_array_copy_within();
require_es_typed_array_every();
require_es_typed_array_fill();
require_es_typed_array_filter();
require_es_typed_array_find();
require_es_typed_array_find_index();
require_es_typed_array_find_last();
require_es_typed_array_find_last_index();
require_es_typed_array_for_each();
require_es_typed_array_from();
require_es_typed_array_includes();
require_es_typed_array_index_of();
require_es_typed_array_iterator();
require_es_typed_array_join();
require_es_typed_array_last_index_of();
require_es_typed_array_map();
require_es_typed_array_of();
require_es_typed_array_reduce();
require_es_typed_array_reduce_right();
require_es_typed_array_reverse();
require_es_typed_array_set();
require_es_typed_array_slice();
require_es_typed_array_some();
require_es_typed_array_sort();
require_es_typed_array_subarray();
require_es_typed_array_to_locale_string();
require_es_typed_array_to_reversed();
require_es_typed_array_to_sorted();
require_es_typed_array_to_string();
require_es_typed_array_with();
require_es_unescape();
require_es_weak_map();
require_es_weak_set();
require_web_atob();
require_web_btoa();
require_web_dom_collections_for_each();
require_web_dom_collections_iterator();
require_web_dom_exception_constructor();
require_web_dom_exception_stack();
require_web_dom_exception_to_string_tag();
require_web_immediate();
require_web_queue_microtask();
require_web_self();
require_web_structured_clone();
require_web_timers();
require_web_url();
require_web_url_can_parse();
require_web_url_to_json();
require_web_url_search_params();
require_web_url_search_params_size();
module.exports = require_path();
}
});
// node_modules/core-js/modules/esnext.object.has-own.js
var require_esnext_object_has_own = __commonJS({
"node_modules/core-js/modules/esnext.object.has-own.js"() {
require_es_object_has_own();
}
});
// node_modules/core-js/proposals/accessible-object-hasownproperty.js
var require_accessible_object_hasownproperty = __commonJS({
"node_modules/core-js/proposals/accessible-object-hasownproperty.js"() {
require_esnext_object_has_own();
}
});
// node_modules/core-js/modules/esnext.array.find-last.js
var require_esnext_array_find_last = __commonJS({
"node_modules/core-js/modules/esnext.array.find-last.js"() {
require_es_array_find_last();
}
});
// node_modules/core-js/modules/esnext.array.find-last-index.js
var require_esnext_array_find_last_index = __commonJS({
"node_modules/core-js/modules/esnext.array.find-last-index.js"() {
require_es_array_find_last_index();
}
});
// node_modules/core-js/modules/esnext.typed-array.find-last.js
var require_esnext_typed_array_find_last = __commonJS({
"node_modules/core-js/modules/esnext.typed-array.find-last.js"() {
require_es_typed_array_find_last();
}
});
// node_modules/core-js/modules/esnext.typed-array.find-last-index.js
var require_esnext_typed_array_find_last_index = __commonJS({
"node_modules/core-js/modules/esnext.typed-array.find-last-index.js"() {
require_es_typed_array_find_last_index();
}
});
// node_modules/core-js/proposals/array-find-from-last.js
var require_array_find_from_last = __commonJS({
"node_modules/core-js/proposals/array-find-from-last.js"() {
require_esnext_array_find_last();
require_esnext_array_find_last_index();
require_esnext_typed_array_find_last();
require_esnext_typed_array_find_last_index();
}
});
// node_modules/core-js/modules/esnext.array.to-reversed.js
var require_esnext_array_to_reversed = __commonJS({
"node_modules/core-js/modules/esnext.array.to-reversed.js"() {
require_es_array_to_reversed();
}
});
// node_modules/core-js/modules/esnext.array.to-sorted.js
var require_esnext_array_to_sorted = __commonJS({
"node_modules/core-js/modules/esnext.array.to-sorted.js"() {
require_es_array_to_sorted();
}
});
// node_modules/core-js/modules/esnext.array.to-spliced.js
var require_esnext_array_to_spliced = __commonJS({
"node_modules/core-js/modules/esnext.array.to-spliced.js"() {
require_es_array_to_spliced();
}
});
// node_modules/core-js/modules/esnext.array.with.js
var require_esnext_array_with = __commonJS({
"node_modules/core-js/modules/esnext.array.with.js"() {
require_es_array_with();
}
});
// node_modules/core-js/modules/esnext.typed-array.to-reversed.js
var require_esnext_typed_array_to_reversed = __commonJS({
"node_modules/core-js/modules/esnext.typed-array.to-reversed.js"() {
require_es_typed_array_to_reversed();
}
});
// node_modules/core-js/modules/esnext.typed-array.to-sorted.js
var require_esnext_typed_array_to_sorted = __commonJS({
"node_modules/core-js/modules/esnext.typed-array.to-sorted.js"() {
require_es_typed_array_to_sorted();
}
});
// node_modules/core-js/modules/esnext.typed-array.with.js
var require_esnext_typed_array_with = __commonJS({
"node_modules/core-js/modules/esnext.typed-array.with.js"() {
require_es_typed_array_with();
}
});
// node_modules/core-js/proposals/change-array-by-copy-stage-4.js
var require_change_array_by_copy_stage_4 = __commonJS({
"node_modules/core-js/proposals/change-array-by-copy-stage-4.js"() {
require_esnext_array_to_reversed();
require_esnext_array_to_sorted();
require_esnext_array_to_spliced();
require_esnext_array_with();
require_esnext_typed_array_to_reversed();
require_esnext_typed_array_to_sorted();
require_esnext_typed_array_with();
}
});
// node_modules/core-js/modules/esnext.global-this.js
var require_esnext_global_this = __commonJS({
"node_modules/core-js/modules/esnext.global-this.js"() {
require_es_global_this();
}
});
// node_modules/core-js/proposals/global-this.js
var require_global_this = __commonJS({
"node_modules/core-js/proposals/global-this.js"(exports, module) {
require_esnext_global_this();
var global2 = require_global();
module.exports = global2;
}
});
// node_modules/core-js/modules/esnext.promise.all-settled.js
var require_esnext_promise_all_settled = __commonJS({
"node_modules/core-js/modules/esnext.promise.all-settled.js"() {
require_es_promise_all_settled();
}
});
// node_modules/core-js/proposals/promise-all-settled.js
var require_promise_all_settled = __commonJS({
"node_modules/core-js/proposals/promise-all-settled.js"() {
require_esnext_promise_all_settled();
}
});
// node_modules/core-js/modules/esnext.aggregate-error.js
var require_esnext_aggregate_error = __commonJS({
"node_modules/core-js/modules/esnext.aggregate-error.js"() {
require_es_aggregate_error();
}
});
// node_modules/core-js/modules/esnext.promise.any.js
var require_esnext_promise_any = __commonJS({
"node_modules/core-js/modules/esnext.promise.any.js"() {
require_es_promise_any();
}
});
// node_modules/core-js/proposals/promise-any.js
var require_promise_any = __commonJS({
"node_modules/core-js/proposals/promise-any.js"() {
require_esnext_aggregate_error();
require_esnext_promise_any();
}
});
// node_modules/core-js/modules/esnext.array.at.js
var require_esnext_array_at = __commonJS({
"node_modules/core-js/modules/esnext.array.at.js"() {
require_es_array_at();
}
});
// node_modules/core-js/modules/esnext.typed-array.at.js
var require_esnext_typed_array_at = __commonJS({
"node_modules/core-js/modules/esnext.typed-array.at.js"() {
require_es_typed_array_at();
}
});
// node_modules/core-js/proposals/relative-indexing-method.js
var require_relative_indexing_method = __commonJS({
"node_modules/core-js/proposals/relative-indexing-method.js"() {
require_es_string_at_alternative();
require_esnext_array_at();
require_esnext_typed_array_at();
}
});
// node_modules/core-js/modules/esnext.string.match-all.js
var require_esnext_string_match_all = __commonJS({
"node_modules/core-js/modules/esnext.string.match-all.js"() {
require_es_string_match_all();
}
});
// node_modules/core-js/proposals/string-match-all.js
var require_string_match_all = __commonJS({
"node_modules/core-js/proposals/string-match-all.js"() {
require_esnext_string_match_all();
}
});
// node_modules/core-js/modules/esnext.string.replace-all.js
var require_esnext_string_replace_all = __commonJS({
"node_modules/core-js/modules/esnext.string.replace-all.js"() {
require_es_string_replace_all();
}
});
// node_modules/core-js/proposals/string-replace-all-stage-4.js
var require_string_replace_all_stage_4 = __commonJS({
"node_modules/core-js/proposals/string-replace-all-stage-4.js"() {
require_esnext_string_replace_all();
}
});
// node_modules/core-js/stage/4.js
var require__ = __commonJS({
"node_modules/core-js/stage/4.js"(exports, module) {
require_accessible_object_hasownproperty();
require_array_find_from_last();
require_change_array_by_copy_stage_4();
require_global_this();
require_promise_all_settled();
require_promise_any();
require_relative_indexing_method();
require_string_match_all();
require_string_replace_all_stage_4();
var path = require_path();
module.exports = path;
}
});
// node_modules/core-js/internals/async-iterator-prototype.js
var require_async_iterator_prototype = __commonJS({
"node_modules/core-js/internals/async-iterator-prototype.js"(exports, module) {
var global2 = require_global();
var shared = require_shared_store();
var isCallable = require_is_callable();
var create = require_object_create();
var getPrototypeOf = require_object_get_prototype_of();
var defineBuiltIn = require_define_built_in();
var wellKnownSymbol = require_well_known_symbol();
var IS_PURE = require_is_pure();
var USE_FUNCTION_CONSTRUCTOR = "USE_FUNCTION_CONSTRUCTOR";
var ASYNC_ITERATOR = wellKnownSymbol("asyncIterator");
var AsyncIterator = global2.AsyncIterator;
var PassedAsyncIteratorPrototype = shared.AsyncIteratorPrototype;
var AsyncIteratorPrototype;
var prototype;
if (PassedAsyncIteratorPrototype) {
AsyncIteratorPrototype = PassedAsyncIteratorPrototype;
} else if (isCallable(AsyncIterator)) {
AsyncIteratorPrototype = AsyncIterator.prototype;
} else if (shared[USE_FUNCTION_CONSTRUCTOR] || global2[USE_FUNCTION_CONSTRUCTOR]) {
try {
prototype = getPrototypeOf(getPrototypeOf(getPrototypeOf(Function("return async function*(){}()")())));
if (getPrototypeOf(prototype) === Object.prototype)
AsyncIteratorPrototype = prototype;
} catch (error) {
}
}
if (!AsyncIteratorPrototype)
AsyncIteratorPrototype = {};
else if (IS_PURE)
AsyncIteratorPrototype = create(AsyncIteratorPrototype);
if (!isCallable(AsyncIteratorPrototype[ASYNC_ITERATOR])) {
defineBuiltIn(AsyncIteratorPrototype, ASYNC_ITERATOR, function() {
return this;
});
}
module.exports = AsyncIteratorPrototype;
}
});
// node_modules/core-js/internals/async-from-sync-iterator.js
var require_async_from_sync_iterator = __commonJS({
"node_modules/core-js/internals/async-from-sync-iterator.js"(exports, module) {
"use strict";
var call = require_function_call();
var anObject = require_an_object();
var create = require_object_create();
var getMethod = require_get_method();
var defineBuiltIns = require_define_built_ins();
var InternalStateModule = require_internal_state();
var getBuiltIn = require_get_built_in();
var AsyncIteratorPrototype = require_async_iterator_prototype();
var createIterResultObject = require_create_iter_result_object();
var Promise2 = getBuiltIn("Promise");
var ASYNC_FROM_SYNC_ITERATOR = "AsyncFromSyncIterator";
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(ASYNC_FROM_SYNC_ITERATOR);
var asyncFromSyncIteratorContinuation = function(result, resolve, reject) {
var done = result.done;
Promise2.resolve(result.value).then(function(value) {
resolve(createIterResultObject(value, done));
}, reject);
};
var AsyncFromSyncIterator = function AsyncIterator(iteratorRecord) {
iteratorRecord.type = ASYNC_FROM_SYNC_ITERATOR;
setInternalState(this, iteratorRecord);
};
AsyncFromSyncIterator.prototype = defineBuiltIns(create(AsyncIteratorPrototype), {
next: function next() {
var state2 = getInternalState(this);
return new Promise2(function(resolve, reject) {
var result = anObject(call(state2.next, state2.iterator));
asyncFromSyncIteratorContinuation(result, resolve, reject);
});
},
"return": function() {
var iterator = getInternalState(this).iterator;
return new Promise2(function(resolve, reject) {
var $return = getMethod(iterator, "return");
if ($return === void 0)
return resolve(createIterResultObject(void 0, true));
var result = anObject(call($return, iterator));
asyncFromSyncIteratorContinuation(result, resolve, reject);
});
}
});
module.exports = AsyncFromSyncIterator;
}
});
// node_modules/core-js/internals/get-iterator-direct.js
var require_get_iterator_direct = __commonJS({
"node_modules/core-js/internals/get-iterator-direct.js"(exports, module) {
var aCallable = require_a_callable();
module.exports = function(obj) {
return {
iterator: obj,
next: aCallable(obj.next)
};
};
}
});
// node_modules/core-js/internals/get-async-iterator.js
var require_get_async_iterator = __commonJS({
"node_modules/core-js/internals/get-async-iterator.js"(exports, module) {
var call = require_function_call();
var AsyncFromSyncIterator = require_async_from_sync_iterator();
var anObject = require_an_object();
var getIterator = require_get_iterator();
var getIteratorDirect = require_get_iterator_direct();
var getMethod = require_get_method();
var wellKnownSymbol = require_well_known_symbol();
var ASYNC_ITERATOR = wellKnownSymbol("asyncIterator");
module.exports = function(it, usingIterator) {
var method = arguments.length < 2 ? getMethod(it, ASYNC_ITERATOR) : usingIterator;
return method ? anObject(call(method, it)) : new AsyncFromSyncIterator(getIteratorDirect(getIterator(it)));
};
}
});
// node_modules/core-js/internals/async-iterator-close.js
var require_async_iterator_close = __commonJS({
"node_modules/core-js/internals/async-iterator-close.js"(exports, module) {
var call = require_function_call();
var getBuiltIn = require_get_built_in();
var getMethod = require_get_method();
module.exports = function(iterator, method, argument, reject) {
try {
var returnMethod = getMethod(iterator, "return");
if (returnMethod) {
return getBuiltIn("Promise").resolve(call(returnMethod, iterator)).then(function() {
method(argument);
}, function(error) {
reject(error);
});
}
} catch (error2) {
return reject(error2);
}
method(argument);
};
}
});
// node_modules/core-js/internals/async-iterator-iteration.js
var require_async_iterator_iteration = __commonJS({
"node_modules/core-js/internals/async-iterator-iteration.js"(exports, module) {
"use strict";
var call = require_function_call();
var aCallable = require_a_callable();
var anObject = require_an_object();
var isObject = require_is_object();
var doesNotExceedSafeInteger = require_does_not_exceed_safe_integer();
var getBuiltIn = require_get_built_in();
var getIteratorDirect = require_get_iterator_direct();
var closeAsyncIteration = require_async_iterator_close();
var createMethod = function(TYPE) {
var IS_TO_ARRAY = TYPE == 0;
var IS_FOR_EACH = TYPE == 1;
var IS_EVERY = TYPE == 2;
var IS_SOME = TYPE == 3;
return function(object, fn, target) {
anObject(object);
var MAPPING = fn !== void 0;
if (MAPPING || !IS_TO_ARRAY)
aCallable(fn);
var record = getIteratorDirect(object);
var Promise2 = getBuiltIn("Promise");
var iterator = record.iterator;
var next = record.next;
var counter = 0;
return new Promise2(function(resolve, reject) {
var ifAbruptCloseAsyncIterator = function(error) {
closeAsyncIteration(iterator, reject, error, reject);
};
var loop = function() {
try {
if (MAPPING)
try {
doesNotExceedSafeInteger(counter);
} catch (error5) {
ifAbruptCloseAsyncIterator(error5);
}
Promise2.resolve(anObject(call(next, iterator))).then(function(step) {
try {
if (anObject(step).done) {
if (IS_TO_ARRAY) {
target.length = counter;
resolve(target);
} else
resolve(IS_SOME ? false : IS_EVERY || void 0);
} else {
var value = step.value;
try {
if (MAPPING) {
var result = fn(value, counter);
var handler = function($result) {
if (IS_FOR_EACH) {
loop();
} else if (IS_EVERY) {
$result ? loop() : closeAsyncIteration(iterator, resolve, false, reject);
} else if (IS_TO_ARRAY) {
try {
target[counter++] = $result;
loop();
} catch (error4) {
ifAbruptCloseAsyncIterator(error4);
}
} else {
$result ? closeAsyncIteration(iterator, resolve, IS_SOME || value, reject) : loop();
}
};
if (isObject(result))
Promise2.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
else
handler(result);
} else {
target[counter++] = value;
loop();
}
} catch (error3) {
ifAbruptCloseAsyncIterator(error3);
}
}
} catch (error2) {
reject(error2);
}
}, reject);
} catch (error) {
reject(error);
}
};
loop();
});
};
};
module.exports = {
toArray: createMethod(0),
forEach: createMethod(1),
every: createMethod(2),
some: createMethod(3),
find: createMethod(4)
};
}
});
// node_modules/core-js/internals/array-from-async.js
var require_array_from_async = __commonJS({
"node_modules/core-js/internals/array-from-async.js"(exports, module) {
"use strict";
var bind = require_function_bind_context();
var uncurryThis = require_function_uncurry_this();
var toObject = require_to_object();
var isConstructor = require_is_constructor();
var getAsyncIterator = require_get_async_iterator();
var getIterator = require_get_iterator();
var getIteratorDirect = require_get_iterator_direct();
var getIteratorMethod = require_get_iterator_method();
var getMethod = require_get_method();
var getVirtual = require_entry_virtual();
var getBuiltIn = require_get_built_in();
var wellKnownSymbol = require_well_known_symbol();
var AsyncFromSyncIterator = require_async_from_sync_iterator();
var toArray = require_async_iterator_iteration().toArray;
var ASYNC_ITERATOR = wellKnownSymbol("asyncIterator");
var arrayIterator = uncurryThis(getVirtual("Array").values);
var arrayIteratorNext = uncurryThis(arrayIterator([]).next);
var safeArrayIterator = function() {
return new SafeArrayIterator(this);
};
var SafeArrayIterator = function(O) {
this.iterator = arrayIterator(O);
};
SafeArrayIterator.prototype.next = function() {
return arrayIteratorNext(this.iterator);
};
module.exports = function fromAsync(asyncItems) {
var C2 = this;
var argumentsLength = arguments.length;
var mapfn = argumentsLength > 1 ? arguments[1] : void 0;
var thisArg = argumentsLength > 2 ? arguments[2] : void 0;
return new (getBuiltIn("Promise"))(function(resolve) {
var O = toObject(asyncItems);
if (mapfn !== void 0)
mapfn = bind(mapfn, thisArg);
var usingAsyncIterator = getMethod(O, ASYNC_ITERATOR);
var usingSyncIterator = usingAsyncIterator ? void 0 : getIteratorMethod(O) || safeArrayIterator;
var A2 = isConstructor(C2) ? new C2() : [];
var iterator = usingAsyncIterator ? getAsyncIterator(O, usingAsyncIterator) : new AsyncFromSyncIterator(getIteratorDirect(getIterator(O, usingSyncIterator)));
resolve(toArray(iterator, mapfn, A2));
});
};
}
});
// node_modules/core-js/modules/esnext.array.from-async.js
var require_esnext_array_from_async = __commonJS({
"node_modules/core-js/modules/esnext.array.from-async.js"() {
var $2 = require_export();
var fromAsync = require_array_from_async();
$2({ target: "Array", stat: true }, {
fromAsync
});
}
});
// node_modules/core-js/proposals/array-from-async-stage-2.js
var require_array_from_async_stage_2 = __commonJS({
"node_modules/core-js/proposals/array-from-async-stage-2.js"() {
require_esnext_array_from_async();
}
});
// node_modules/core-js/internals/array-group.js
var require_array_group = __commonJS({
"node_modules/core-js/internals/array-group.js"(exports, module) {
var bind = require_function_bind_context();
var uncurryThis = require_function_uncurry_this();
var IndexedObject = require_indexed_object();
var toObject = require_to_object();
var toPropertyKey = require_to_property_key();
var lengthOfArrayLike = require_length_of_array_like();
var objectCreate = require_object_create();
var arrayFromConstructorAndList = require_array_from_constructor_and_list();
var $Array = Array;
var push = uncurryThis([].push);
module.exports = function($this, callbackfn, that, specificConstructor) {
var O = toObject($this);
var self2 = IndexedObject(O);
var boundFunction = bind(callbackfn, that);
var target = objectCreate(null);
var length = lengthOfArrayLike(self2);
var index = 0;
var Constructor, key, value;
for (; length > index; index++) {
value = self2[index];
key = toPropertyKey(boundFunction(value, index, O));
if (key in target)
push(target[key], value);
else
target[key] = [value];
}
if (specificConstructor) {
Constructor = specificConstructor(O);
if (Constructor !== $Array) {
for (key in target)
target[key] = arrayFromConstructorAndList(Constructor, target[key]);
}
}
return target;
};
}
});
// node_modules/core-js/modules/esnext.array.group.js
var require_esnext_array_group = __commonJS({
"node_modules/core-js/modules/esnext.array.group.js"() {
"use strict";
var $2 = require_export();
var $group = require_array_group();
var addToUnscopables = require_add_to_unscopables();
$2({ target: "Array", proto: true }, {
group: function group(callbackfn) {
var thisArg = arguments.length > 1 ? arguments[1] : void 0;
return $group(this, callbackfn, thisArg);
}
});
addToUnscopables("group");
}
});
// node_modules/core-js/internals/array-group-to-map.js
var require_array_group_to_map = __commonJS({
"node_modules/core-js/internals/array-group-to-map.js"(exports, module) {
"use strict";
var bind = require_function_bind_context();
var uncurryThis = require_function_uncurry_this();
var IndexedObject = require_indexed_object();
var toObject = require_to_object();
var lengthOfArrayLike = require_length_of_array_like();
var MapHelpers = require_map_helpers();
var Map2 = MapHelpers.Map;
var mapGet = MapHelpers.get;
var mapHas = MapHelpers.has;
var mapSet = MapHelpers.set;
var push = uncurryThis([].push);
module.exports = function groupToMap(callbackfn) {
var O = toObject(this);
var self2 = IndexedObject(O);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : void 0);
var map = new Map2();
var length = lengthOfArrayLike(self2);
var index = 0;
var key, value;
for (; length > index; index++) {
value = self2[index];
key = boundFunction(value, index, O);
if (mapHas(map, key))
push(mapGet(map, key), value);
else
mapSet(map, key, [value]);
}
return map;
};
}
});
// node_modules/core-js/modules/esnext.array.group-to-map.js
var require_esnext_array_group_to_map = __commonJS({
"node_modules/core-js/modules/esnext.array.group-to-map.js"() {
var $2 = require_export();
var addToUnscopables = require_add_to_unscopables();
var $groupToMap = require_array_group_to_map();
var IS_PURE = require_is_pure();
$2({ target: "Array", proto: true, forced: IS_PURE }, {
groupToMap: $groupToMap
});
addToUnscopables("groupToMap");
}
});
// node_modules/core-js/proposals/array-grouping-stage-3-2.js
var require_array_grouping_stage_3_2 = __commonJS({
"node_modules/core-js/proposals/array-grouping-stage-3-2.js"() {
require_esnext_array_group();
require_esnext_array_group_to_map();
}
});
// node_modules/core-js/internals/array-buffer-byte-length.js
var require_array_buffer_byte_length = __commonJS({
"node_modules/core-js/internals/array-buffer-byte-length.js"(exports, module) {
var uncurryThisAccessor = require_function_uncurry_this_accessor();
var classof = require_classof_raw();
var $TypeError = TypeError;
module.exports = uncurryThisAccessor(ArrayBuffer.prototype, "byteLength", "get") || function(O) {
if (classof(O) != "ArrayBuffer")
throw $TypeError("ArrayBuffer expected");
return O.byteLength;
};
}
});
// node_modules/core-js/internals/array-buffer-is-detached.js
var require_array_buffer_is_detached = __commonJS({
"node_modules/core-js/internals/array-buffer-is-detached.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var arrayBufferByteLength = require_array_buffer_byte_length();
var slice = uncurryThis(ArrayBuffer.prototype.slice);
module.exports = function(O) {
if (arrayBufferByteLength(O) !== 0)
return false;
try {
slice(O, 0, 0);
return false;
} catch (error) {
return true;
}
};
}
});
// node_modules/core-js/modules/esnext.array-buffer.detached.js
var require_esnext_array_buffer_detached = __commonJS({
"node_modules/core-js/modules/esnext.array-buffer.detached.js"() {
"use strict";
var DESCRIPTORS = require_descriptors();
var defineBuiltInAccessor = require_define_built_in_accessor();
var isDetached = require_array_buffer_is_detached();
var ArrayBufferPrototype = ArrayBuffer.prototype;
if (DESCRIPTORS && !("detached" in ArrayBufferPrototype)) {
defineBuiltInAccessor(ArrayBufferPrototype, "detached", {
configurable: true,
get: function detached() {
return isDetached(this);
}
});
}
}
});
// node_modules/core-js/internals/array-buffer-transfer.js
var require_array_buffer_transfer = __commonJS({
"node_modules/core-js/internals/array-buffer-transfer.js"(exports, module) {
var global2 = require_global();
var uncurryThis = require_function_uncurry_this();
var uncurryThisAccessor = require_function_uncurry_this_accessor();
var toIndex = require_to_index();
var isDetached = require_array_buffer_is_detached();
var arrayBufferByteLength = require_array_buffer_byte_length();
var PROPER_TRANSFER = require_structured_clone_proper_transfer();
var TypeError2 = global2.TypeError;
var structuredClone = global2.structuredClone;
var ArrayBuffer2 = global2.ArrayBuffer;
var DataView2 = global2.DataView;
var min = Math.min;
var ArrayBufferPrototype = ArrayBuffer2.prototype;
var DataViewPrototype = DataView2.prototype;
var slice = uncurryThis(ArrayBufferPrototype.slice);
var isResizable = uncurryThisAccessor(ArrayBufferPrototype, "resizable", "get");
var maxByteLength = uncurryThisAccessor(ArrayBufferPrototype, "maxByteLength", "get");
var getInt8 = uncurryThis(DataViewPrototype.getInt8);
var setInt8 = uncurryThis(DataViewPrototype.setInt8);
module.exports = PROPER_TRANSFER && function(arrayBuffer, newLength, preserveResizability) {
var byteLength = arrayBufferByteLength(arrayBuffer);
var newByteLength = newLength === void 0 ? byteLength : min(toIndex(newLength), byteLength);
var fixedLength = !isResizable || !isResizable(arrayBuffer);
if (isDetached(arrayBuffer))
throw TypeError2("ArrayBuffer is detached");
var newBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
if (byteLength == newByteLength && (preserveResizability || fixedLength))
return newBuffer;
if (!preserveResizability || fixedLength)
return slice(newBuffer, 0, newByteLength);
var newNewBuffer = new ArrayBuffer2(newByteLength, maxByteLength && { maxByteLength: maxByteLength(newBuffer) });
var a3 = new DataView2(newBuffer);
var b2 = new DataView2(newNewBuffer);
for (var i4 = 0; i4 < newByteLength; i4++)
setInt8(b2, i4, getInt8(a3, i4));
return newNewBuffer;
};
}
});
// node_modules/core-js/modules/esnext.array-buffer.transfer.js
var require_esnext_array_buffer_transfer = __commonJS({
"node_modules/core-js/modules/esnext.array-buffer.transfer.js"() {
"use strict";
var $2 = require_export();
var $transfer = require_array_buffer_transfer();
if ($transfer)
$2({ target: "ArrayBuffer", proto: true }, {
transfer: function transfer() {
return $transfer(this, arguments.length ? arguments[0] : void 0, true);
}
});
}
});
// node_modules/core-js/modules/esnext.array-buffer.transfer-to-fixed-length.js
var require_esnext_array_buffer_transfer_to_fixed_length = __commonJS({
"node_modules/core-js/modules/esnext.array-buffer.transfer-to-fixed-length.js"() {
"use strict";
var $2 = require_export();
var $transfer = require_array_buffer_transfer();
if ($transfer)
$2({ target: "ArrayBuffer", proto: true }, {
transferToFixedLength: function transferToFixedLength() {
return $transfer(this, arguments.length ? arguments[0] : void 0, false);
}
});
}
});
// node_modules/core-js/proposals/array-buffer-transfer.js
var require_array_buffer_transfer2 = __commonJS({
"node_modules/core-js/proposals/array-buffer-transfer.js"() {
require_esnext_array_buffer_detached();
require_esnext_array_buffer_transfer();
require_esnext_array_buffer_transfer_to_fixed_length();
}
});
// node_modules/core-js/modules/esnext.suppressed-error.constructor.js
var require_esnext_suppressed_error_constructor = __commonJS({
"node_modules/core-js/modules/esnext.suppressed-error.constructor.js"() {
"use strict";
var $2 = require_export();
var isPrototypeOf = require_object_is_prototype_of();
var getPrototypeOf = require_object_get_prototype_of();
var setPrototypeOf = require_object_set_prototype_of();
var copyConstructorProperties = require_copy_constructor_properties();
var create = require_object_create();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var createPropertyDescriptor = require_create_property_descriptor();
var installErrorStack = require_error_stack_install();
var normalizeStringArgument = require_normalize_string_argument();
var wellKnownSymbol = require_well_known_symbol();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var $Error = Error;
var $SuppressedError = function SuppressedError(error, suppressed, message) {
var isInstance = isPrototypeOf(SuppressedErrorPrototype, this);
var that;
if (setPrototypeOf) {
that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : SuppressedErrorPrototype);
} else {
that = isInstance ? this : create(SuppressedErrorPrototype);
createNonEnumerableProperty(that, TO_STRING_TAG, "Error");
}
if (message !== void 0)
createNonEnumerableProperty(that, "message", normalizeStringArgument(message));
installErrorStack(that, $SuppressedError, that.stack, 1);
createNonEnumerableProperty(that, "error", error);
createNonEnumerableProperty(that, "suppressed", suppressed);
return that;
};
if (setPrototypeOf)
setPrototypeOf($SuppressedError, $Error);
else
copyConstructorProperties($SuppressedError, $Error, { name: true });
var SuppressedErrorPrototype = $SuppressedError.prototype = create($Error.prototype, {
constructor: createPropertyDescriptor(1, $SuppressedError),
message: createPropertyDescriptor(1, ""),
name: createPropertyDescriptor(1, "SuppressedError")
});
$2({ global: true, constructor: true, arity: 3 }, {
SuppressedError: $SuppressedError
});
}
});
// node_modules/core-js/internals/add-disposable-resource.js
var require_add_disposable_resource = __commonJS({
"node_modules/core-js/internals/add-disposable-resource.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var bind = require_function_bind_context();
var anObject = require_an_object();
var isNullOrUndefined = require_is_null_or_undefined();
var getMethod = require_get_method();
var wellKnownSymbol = require_well_known_symbol();
var ASYNC_DISPOSE = wellKnownSymbol("asyncDispose");
var DISPOSE = wellKnownSymbol("dispose");
var push = uncurryThis([].push);
var getDisposeMethod = function(V2, hint) {
if (hint == "async-dispose") {
return getMethod(V2, ASYNC_DISPOSE) || getMethod(V2, DISPOSE);
}
return getMethod(V2, DISPOSE);
};
var createDisposableResource = function(V2, hint, method) {
return bind(method || getDisposeMethod(V2, hint), V2);
};
module.exports = function(disposable, V2, hint, method) {
var resource;
if (!method) {
if (isNullOrUndefined(V2))
return;
resource = createDisposableResource(anObject(V2), hint);
} else {
resource = createDisposableResource(void 0, hint, method);
}
push(disposable.stack, resource);
};
}
});
// node_modules/core-js/modules/esnext.disposable-stack.constructor.js
var require_esnext_disposable_stack_constructor = __commonJS({
"node_modules/core-js/modules/esnext.disposable-stack.constructor.js"() {
"use strict";
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var getBuiltIn = require_get_built_in();
var aCallable = require_a_callable();
var anInstance = require_an_instance();
var defineBuiltIn = require_define_built_in();
var defineBuiltIns = require_define_built_ins();
var defineBuiltInAccessor = require_define_built_in_accessor();
var wellKnownSymbol = require_well_known_symbol();
var InternalStateModule = require_internal_state();
var addDisposableResource = require_add_disposable_resource();
var SuppressedError = getBuiltIn("SuppressedError");
var $ReferenceError = ReferenceError;
var DISPOSE = wellKnownSymbol("dispose");
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var DISPOSABLE_STACK = "DisposableStack";
var setInternalState = InternalStateModule.set;
var getDisposableStackInternalState = InternalStateModule.getterFor(DISPOSABLE_STACK);
var HINT = "sync-dispose";
var DISPOSED = "disposed";
var PENDING = "pending";
var getPendingDisposableStackInternalState = function(stack) {
var internalState = getDisposableStackInternalState(stack);
if (internalState.state == DISPOSED)
throw $ReferenceError(DISPOSABLE_STACK + " already disposed");
return internalState;
};
var $DisposableStack = function DisposableStack() {
setInternalState(anInstance(this, DisposableStackPrototype), {
type: DISPOSABLE_STACK,
state: PENDING,
stack: []
});
if (!DESCRIPTORS)
this.disposed = false;
};
var DisposableStackPrototype = $DisposableStack.prototype;
defineBuiltIns(DisposableStackPrototype, {
dispose: function dispose() {
var internalState = getDisposableStackInternalState(this);
if (internalState.state == DISPOSED)
return;
internalState.state = DISPOSED;
if (!DESCRIPTORS)
this.disposed = true;
var stack = internalState.stack;
var i4 = stack.length;
var thrown = false;
var suppressed;
while (i4) {
var disposeMethod = stack[--i4];
stack[i4] = null;
try {
disposeMethod();
} catch (errorResult) {
if (thrown) {
suppressed = new SuppressedError(errorResult, suppressed);
} else {
thrown = true;
suppressed = errorResult;
}
}
}
internalState.stack = null;
if (thrown)
throw suppressed;
},
use: function use(value) {
addDisposableResource(getPendingDisposableStackInternalState(this), value, HINT);
return value;
},
adopt: function adopt(value, onDispose) {
var internalState = getPendingDisposableStackInternalState(this);
aCallable(onDispose);
addDisposableResource(internalState, void 0, HINT, function() {
onDispose(value);
});
return value;
},
defer: function defer(onDispose) {
var internalState = getPendingDisposableStackInternalState(this);
aCallable(onDispose);
addDisposableResource(internalState, void 0, HINT, onDispose);
},
move: function move() {
var internalState = getPendingDisposableStackInternalState(this);
var newDisposableStack = new $DisposableStack();
getDisposableStackInternalState(newDisposableStack).stack = internalState.stack;
internalState.stack = [];
internalState.state = DISPOSED;
if (!DESCRIPTORS)
this.disposed = true;
return newDisposableStack;
}
});
if (DESCRIPTORS)
defineBuiltInAccessor(DisposableStackPrototype, "disposed", {
configurable: true,
get: function disposed() {
return getDisposableStackInternalState(this).state == DISPOSED;
}
});
defineBuiltIn(DisposableStackPrototype, DISPOSE, DisposableStackPrototype.dispose, { name: "dispose" });
defineBuiltIn(DisposableStackPrototype, TO_STRING_TAG, DISPOSABLE_STACK, { nonWritable: true });
$2({ global: true, constructor: true }, {
DisposableStack: $DisposableStack
});
}
});
// node_modules/core-js/modules/esnext.iterator.dispose.js
var require_esnext_iterator_dispose = __commonJS({
"node_modules/core-js/modules/esnext.iterator.dispose.js"() {
"use strict";
var call = require_function_call();
var defineBuiltIn = require_define_built_in();
var getMethod = require_get_method();
var hasOwn = require_has_own_property();
var wellKnownSymbol = require_well_known_symbol();
var IteratorPrototype = require_iterators_core().IteratorPrototype;
var DISPOSE = wellKnownSymbol("dispose");
if (!hasOwn(IteratorPrototype, DISPOSE)) {
defineBuiltIn(IteratorPrototype, DISPOSE, function() {
var $return = getMethod(this, "return");
if ($return)
call($return, this);
});
}
}
});
// node_modules/core-js/modules/esnext.symbol.dispose.js
var require_esnext_symbol_dispose = __commonJS({
"node_modules/core-js/modules/esnext.symbol.dispose.js"() {
var defineWellKnownSymbol = require_well_known_symbol_define();
defineWellKnownSymbol("dispose");
}
});
// node_modules/core-js/proposals/explicit-resource-management.js
var require_explicit_resource_management = __commonJS({
"node_modules/core-js/proposals/explicit-resource-management.js"() {
require_esnext_suppressed_error_constructor();
require_esnext_disposable_stack_constructor();
require_esnext_iterator_dispose();
require_esnext_symbol_dispose();
}
});
// node_modules/core-js/modules/esnext.iterator.constructor.js
var require_esnext_iterator_constructor = __commonJS({
"node_modules/core-js/modules/esnext.iterator.constructor.js"() {
"use strict";
var $2 = require_export();
var global2 = require_global();
var anInstance = require_an_instance();
var isCallable = require_is_callable();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var fails = require_fails();
var hasOwn = require_has_own_property();
var wellKnownSymbol = require_well_known_symbol();
var IteratorPrototype = require_iterators_core().IteratorPrototype;
var IS_PURE = require_is_pure();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var NativeIterator = global2.Iterator;
var FORCED = IS_PURE || !isCallable(NativeIterator) || NativeIterator.prototype !== IteratorPrototype || !fails(function() {
NativeIterator({});
});
var IteratorConstructor = function Iterator() {
anInstance(this, IteratorPrototype);
};
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) {
createNonEnumerableProperty(IteratorPrototype, TO_STRING_TAG, "Iterator");
}
if (FORCED || !hasOwn(IteratorPrototype, "constructor") || IteratorPrototype.constructor === Object) {
createNonEnumerableProperty(IteratorPrototype, "constructor", IteratorConstructor);
}
IteratorConstructor.prototype = IteratorPrototype;
$2({ global: true, constructor: true, forced: FORCED }, {
Iterator: IteratorConstructor
});
}
});
// node_modules/core-js/internals/not-a-nan.js
var require_not_a_nan = __commonJS({
"node_modules/core-js/internals/not-a-nan.js"(exports, module) {
var $RangeError = RangeError;
module.exports = function(it) {
if (it === it)
return it;
throw $RangeError("NaN is not allowed");
};
}
});
// node_modules/core-js/internals/iterator-create-proxy.js
var require_iterator_create_proxy = __commonJS({
"node_modules/core-js/internals/iterator-create-proxy.js"(exports, module) {
"use strict";
var call = require_function_call();
var create = require_object_create();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var defineBuiltIns = require_define_built_ins();
var wellKnownSymbol = require_well_known_symbol();
var InternalStateModule = require_internal_state();
var getMethod = require_get_method();
var IteratorPrototype = require_iterators_core().IteratorPrototype;
var createIterResultObject = require_create_iter_result_object();
var iteratorClose = require_iterator_close();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var ITERATOR_HELPER = "IteratorHelper";
var WRAP_FOR_VALID_ITERATOR = "WrapForValidIterator";
var setInternalState = InternalStateModule.set;
var createIteratorProxyPrototype = function(IS_ITERATOR) {
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
return defineBuiltIns(create(IteratorPrototype), {
next: function next() {
var state2 = getInternalState(this);
if (IS_ITERATOR)
return state2.nextHandler();
try {
var result = state2.done ? void 0 : state2.nextHandler();
return createIterResultObject(result, state2.done);
} catch (error) {
state2.done = true;
throw error;
}
},
"return": function() {
var state2 = getInternalState(this);
var iterator = state2.iterator;
state2.done = true;
if (IS_ITERATOR) {
var returnMethod = getMethod(iterator, "return");
return returnMethod ? call(returnMethod, iterator) : createIterResultObject(void 0, true);
}
if (state2.inner)
try {
iteratorClose(state2.inner.iterator, "normal");
} catch (error) {
return iteratorClose(iterator, "throw", error);
}
iteratorClose(iterator, "normal");
return createIterResultObject(void 0, true);
}
});
};
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, "Iterator Helper");
module.exports = function(nextHandler, IS_ITERATOR) {
var IteratorProxy = function Iterator(record, state2) {
if (state2) {
state2.iterator = record.iterator;
state2.next = record.next;
} else
state2 = record;
state2.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
state2.nextHandler = nextHandler;
state2.counter = 0;
state2.done = false;
setInternalState(this, state2);
};
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
return IteratorProxy;
};
}
});
// node_modules/core-js/modules/esnext.iterator.drop.js
var require_esnext_iterator_drop = __commonJS({
"node_modules/core-js/modules/esnext.iterator.drop.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
var notANaN = require_not_a_nan();
var toPositiveInteger = require_to_positive_integer();
var createIteratorProxy = require_iterator_create_proxy();
var IteratorProxy = createIteratorProxy(function() {
var iterator = this.iterator;
var next = this.next;
var result, done;
while (this.remaining) {
this.remaining--;
result = anObject(call(next, iterator));
done = this.done = !!result.done;
if (done)
return;
}
result = anObject(call(next, iterator));
done = this.done = !!result.done;
if (!done)
return result.value;
});
$2({ target: "Iterator", proto: true, real: true }, {
drop: function drop(limit) {
anObject(this);
var remaining = toPositiveInteger(notANaN(+limit));
return new IteratorProxy(getIteratorDirect(this), {
remaining
});
}
});
}
});
// node_modules/core-js/modules/esnext.iterator.every.js
var require_esnext_iterator_every = __commonJS({
"node_modules/core-js/modules/esnext.iterator.every.js"() {
"use strict";
var $2 = require_export();
var iterate = require_iterate();
var aCallable = require_a_callable();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
$2({ target: "Iterator", proto: true, real: true }, {
every: function every(predicate) {
anObject(this);
aCallable(predicate);
var record = getIteratorDirect(this);
var counter = 0;
return !iterate(record, function(value, stop) {
if (!predicate(value, counter++))
return stop();
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
}
});
}
});
// node_modules/core-js/modules/esnext.iterator.filter.js
var require_esnext_iterator_filter = __commonJS({
"node_modules/core-js/modules/esnext.iterator.filter.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var aCallable = require_a_callable();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
var createIteratorProxy = require_iterator_create_proxy();
var callWithSafeIterationClosing = require_call_with_safe_iteration_closing();
var IteratorProxy = createIteratorProxy(function() {
var iterator = this.iterator;
var predicate = this.predicate;
var next = this.next;
var result, done, value;
while (true) {
result = anObject(call(next, iterator));
done = this.done = !!result.done;
if (done)
return;
value = result.value;
if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true))
return value;
}
});
$2({ target: "Iterator", proto: true, real: true }, {
filter: function filter(predicate) {
anObject(this);
aCallable(predicate);
return new IteratorProxy(getIteratorDirect(this), {
predicate
});
}
});
}
});
// node_modules/core-js/modules/esnext.iterator.find.js
var require_esnext_iterator_find = __commonJS({
"node_modules/core-js/modules/esnext.iterator.find.js"() {
"use strict";
var $2 = require_export();
var iterate = require_iterate();
var aCallable = require_a_callable();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
$2({ target: "Iterator", proto: true, real: true }, {
find: function find(predicate) {
anObject(this);
aCallable(predicate);
var record = getIteratorDirect(this);
var counter = 0;
return iterate(record, function(value, stop) {
if (predicate(value, counter++))
return stop(value);
}, { IS_RECORD: true, INTERRUPTED: true }).result;
}
});
}
});
// node_modules/core-js/internals/get-iterator-flattenable.js
var require_get_iterator_flattenable = __commonJS({
"node_modules/core-js/internals/get-iterator-flattenable.js"(exports, module) {
var call = require_function_call();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
var getIteratorMethod = require_get_iterator_method();
module.exports = function(obj) {
var object = anObject(obj);
var method = getIteratorMethod(object);
return getIteratorDirect(anObject(method !== void 0 ? call(method, object) : object));
};
}
});
// node_modules/core-js/modules/esnext.iterator.flat-map.js
var require_esnext_iterator_flat_map = __commonJS({
"node_modules/core-js/modules/esnext.iterator.flat-map.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var aCallable = require_a_callable();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
var getIteratorFlattenable = require_get_iterator_flattenable();
var createIteratorProxy = require_iterator_create_proxy();
var iteratorClose = require_iterator_close();
var IteratorProxy = createIteratorProxy(function() {
var iterator = this.iterator;
var mapper = this.mapper;
var result, inner;
while (true) {
if (inner = this.inner)
try {
result = anObject(call(inner.next, inner.iterator));
if (!result.done)
return result.value;
this.inner = null;
} catch (error) {
iteratorClose(iterator, "throw", error);
}
result = anObject(call(this.next, iterator));
if (this.done = !!result.done)
return;
try {
this.inner = getIteratorFlattenable(mapper(result.value, this.counter++));
} catch (error) {
iteratorClose(iterator, "throw", error);
}
}
});
$2({ target: "Iterator", proto: true, real: true }, {
flatMap: function flatMap(mapper) {
anObject(this);
aCallable(mapper);
return new IteratorProxy(getIteratorDirect(this), {
mapper,
inner: null
});
}
});
}
});
// node_modules/core-js/modules/esnext.iterator.for-each.js
var require_esnext_iterator_for_each = __commonJS({
"node_modules/core-js/modules/esnext.iterator.for-each.js"() {
"use strict";
var $2 = require_export();
var iterate = require_iterate();
var aCallable = require_a_callable();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
$2({ target: "Iterator", proto: true, real: true }, {
forEach: function forEach(fn) {
anObject(this);
aCallable(fn);
var record = getIteratorDirect(this);
var counter = 0;
iterate(record, function(value) {
fn(value, counter++);
}, { IS_RECORD: true });
}
});
}
});
// node_modules/core-js/modules/esnext.iterator.from.js
var require_esnext_iterator_from = __commonJS({
"node_modules/core-js/modules/esnext.iterator.from.js"() {
var $2 = require_export();
var call = require_function_call();
var toObject = require_to_object();
var isPrototypeOf = require_object_is_prototype_of();
var IteratorPrototype = require_iterators_core().IteratorPrototype;
var createIteratorProxy = require_iterator_create_proxy();
var getIteratorFlattenable = require_get_iterator_flattenable();
var IteratorProxy = createIteratorProxy(function() {
return call(this.next, this.iterator);
}, true);
$2({ target: "Iterator", stat: true }, {
from: function from(O) {
var iteratorRecord = getIteratorFlattenable(typeof O == "string" ? toObject(O) : O);
return isPrototypeOf(IteratorPrototype, iteratorRecord.iterator) ? iteratorRecord.iterator : new IteratorProxy(iteratorRecord);
}
});
}
});
// node_modules/core-js/internals/iterator-map.js
var require_iterator_map = __commonJS({
"node_modules/core-js/internals/iterator-map.js"(exports, module) {
"use strict";
var call = require_function_call();
var aCallable = require_a_callable();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
var createIteratorProxy = require_iterator_create_proxy();
var callWithSafeIterationClosing = require_call_with_safe_iteration_closing();
var IteratorProxy = createIteratorProxy(function() {
var iterator = this.iterator;
var result = anObject(call(this.next, iterator));
var done = this.done = !!result.done;
if (!done)
return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
});
module.exports = function map(mapper) {
anObject(this);
aCallable(mapper);
return new IteratorProxy(getIteratorDirect(this), {
mapper
});
};
}
});
// node_modules/core-js/modules/esnext.iterator.map.js
var require_esnext_iterator_map = __commonJS({
"node_modules/core-js/modules/esnext.iterator.map.js"() {
var $2 = require_export();
var map = require_iterator_map();
$2({ target: "Iterator", proto: true, real: true }, {
map
});
}
});
// node_modules/core-js/modules/esnext.iterator.reduce.js
var require_esnext_iterator_reduce = __commonJS({
"node_modules/core-js/modules/esnext.iterator.reduce.js"() {
"use strict";
var $2 = require_export();
var iterate = require_iterate();
var aCallable = require_a_callable();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
var $TypeError = TypeError;
$2({ target: "Iterator", proto: true, real: true }, {
reduce: function reduce(reducer) {
anObject(this);
aCallable(reducer);
var record = getIteratorDirect(this);
var noInitial = arguments.length < 2;
var accumulator = noInitial ? void 0 : arguments[1];
var counter = 0;
iterate(record, function(value) {
if (noInitial) {
noInitial = false;
accumulator = value;
} else {
accumulator = reducer(accumulator, value, counter);
}
counter++;
}, { IS_RECORD: true });
if (noInitial)
throw $TypeError("Reduce of empty iterator with no initial value");
return accumulator;
}
});
}
});
// node_modules/core-js/modules/esnext.iterator.some.js
var require_esnext_iterator_some = __commonJS({
"node_modules/core-js/modules/esnext.iterator.some.js"() {
"use strict";
var $2 = require_export();
var iterate = require_iterate();
var aCallable = require_a_callable();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
$2({ target: "Iterator", proto: true, real: true }, {
some: function some(predicate) {
anObject(this);
aCallable(predicate);
var record = getIteratorDirect(this);
var counter = 0;
return iterate(record, function(value, stop) {
if (predicate(value, counter++))
return stop();
}, { IS_RECORD: true, INTERRUPTED: true }).stopped;
}
});
}
});
// node_modules/core-js/modules/esnext.iterator.take.js
var require_esnext_iterator_take = __commonJS({
"node_modules/core-js/modules/esnext.iterator.take.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
var notANaN = require_not_a_nan();
var toPositiveInteger = require_to_positive_integer();
var createIteratorProxy = require_iterator_create_proxy();
var iteratorClose = require_iterator_close();
var IteratorProxy = createIteratorProxy(function() {
var iterator = this.iterator;
if (!this.remaining--) {
this.done = true;
return iteratorClose(iterator, "normal", void 0);
}
var result = anObject(call(this.next, iterator));
var done = this.done = !!result.done;
if (!done)
return result.value;
});
$2({ target: "Iterator", proto: true, real: true }, {
take: function take(limit) {
anObject(this);
var remaining = toPositiveInteger(notANaN(+limit));
return new IteratorProxy(getIteratorDirect(this), {
remaining
});
}
});
}
});
// node_modules/core-js/modules/esnext.iterator.to-array.js
var require_esnext_iterator_to_array = __commonJS({
"node_modules/core-js/modules/esnext.iterator.to-array.js"() {
"use strict";
var $2 = require_export();
var anObject = require_an_object();
var iterate = require_iterate();
var getIteratorDirect = require_get_iterator_direct();
var push = [].push;
$2({ target: "Iterator", proto: true, real: true }, {
toArray: function toArray() {
var result = [];
iterate(getIteratorDirect(anObject(this)), push, { that: result, IS_RECORD: true });
return result;
}
});
}
});
// node_modules/core-js/proposals/iterator-helpers-stage-3-2.js
var require_iterator_helpers_stage_3_2 = __commonJS({
"node_modules/core-js/proposals/iterator-helpers-stage-3-2.js"() {
require_esnext_iterator_constructor();
require_esnext_iterator_drop();
require_esnext_iterator_every();
require_esnext_iterator_filter();
require_esnext_iterator_find();
require_esnext_iterator_flat_map();
require_esnext_iterator_for_each();
require_esnext_iterator_from();
require_esnext_iterator_map();
require_esnext_iterator_reduce();
require_esnext_iterator_some();
require_esnext_iterator_take();
require_esnext_iterator_to_array();
}
});
// node_modules/core-js/internals/native-raw-json.js
var require_native_raw_json = __commonJS({
"node_modules/core-js/internals/native-raw-json.js"(exports, module) {
var fails = require_fails();
module.exports = !fails(function() {
var unsafeInt = "9007199254740993";
var raw = JSON.rawJSON(unsafeInt);
return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;
});
}
});
// node_modules/core-js/internals/is-raw-json.js
var require_is_raw_json = __commonJS({
"node_modules/core-js/internals/is-raw-json.js"(exports, module) {
var isObject = require_is_object();
var getInternalState = require_internal_state().get;
module.exports = function isRawJSON(O) {
if (!isObject(O))
return false;
var state2 = getInternalState(O);
return !!state2 && state2.type === "RawJSON";
};
}
});
// node_modules/core-js/modules/esnext.json.is-raw-json.js
var require_esnext_json_is_raw_json = __commonJS({
"node_modules/core-js/modules/esnext.json.is-raw-json.js"() {
var $2 = require_export();
var NATIVE_RAW_JSON = require_native_raw_json();
var isRawJSON = require_is_raw_json();
$2({ target: "JSON", stat: true, forced: !NATIVE_RAW_JSON }, {
isRawJSON
});
}
});
// node_modules/core-js/internals/parse-json-string.js
var require_parse_json_string = __commonJS({
"node_modules/core-js/internals/parse-json-string.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var hasOwn = require_has_own_property();
var $SyntaxError = SyntaxError;
var $parseInt = parseInt;
var fromCharCode = String.fromCharCode;
var at = uncurryThis("".charAt);
var slice = uncurryThis("".slice);
var exec = uncurryThis(/./.exec);
var codePoints = {
'\\"': '"',
"\\\\": "\\",
"\\/": "/",
"\\b": "\b",
"\\f": "\f",
"\\n": "\n",
"\\r": "\r",
"\\t": " "
};
var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i;
var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/;
module.exports = function(source, i4) {
var unterminated = true;
var value = "";
while (i4 < source.length) {
var chr = at(source, i4);
if (chr == "\\") {
var twoChars = slice(source, i4, i4 + 2);
if (hasOwn(codePoints, twoChars)) {
value += codePoints[twoChars];
i4 += 2;
} else if (twoChars == "\\u") {
i4 += 2;
var fourHexDigits = slice(source, i4, i4 + 4);
if (!exec(IS_4_HEX_DIGITS, fourHexDigits))
throw $SyntaxError("Bad Unicode escape at: " + i4);
value += fromCharCode($parseInt(fourHexDigits, 16));
i4 += 4;
} else
throw $SyntaxError('Unknown escape sequence: "' + twoChars + '"');
} else if (chr == '"') {
unterminated = false;
i4++;
break;
} else {
if (exec(IS_C0_CONTROL_CODE, chr))
throw $SyntaxError("Bad control character in string literal at: " + i4);
value += chr;
i4++;
}
}
if (unterminated)
throw $SyntaxError("Unterminated string at: " + i4);
return { value, end: i4 };
};
}
});
// node_modules/core-js/modules/esnext.json.parse.js
var require_esnext_json_parse = __commonJS({
"node_modules/core-js/modules/esnext.json.parse.js"() {
"use strict";
var $2 = require_export();
var DESCRIPTORS = require_descriptors();
var global2 = require_global();
var getBuiltIn = require_get_built_in();
var uncurryThis = require_function_uncurry_this();
var call = require_function_call();
var isCallable = require_is_callable();
var isObject = require_is_object();
var isArray = require_is_array();
var hasOwn = require_has_own_property();
var toString = require_to_string();
var lengthOfArrayLike = require_length_of_array_like();
var createProperty = require_create_property();
var fails = require_fails();
var parseJSONString = require_parse_json_string();
var NATIVE_SYMBOL = require_symbol_constructor_detection();
var JSON2 = global2.JSON;
var Number2 = global2.Number;
var SyntaxError2 = global2.SyntaxError;
var nativeParse = JSON2 && JSON2.parse;
var enumerableOwnProperties = getBuiltIn("Object", "keys");
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var at = uncurryThis("".charAt);
var slice = uncurryThis("".slice);
var exec = uncurryThis(/./.exec);
var push = uncurryThis([].push);
var IS_DIGIT = /^\d$/;
var IS_NON_ZERO_DIGIT = /^[1-9]$/;
var IS_NUMBER_START = /^(-|\d)$/;
var IS_WHITESPACE = /^[\t\n\r ]$/;
var PRIMITIVE = 0;
var OBJECT = 1;
var $parse = function(source, reviver) {
source = toString(source);
var context = new Context(source, 0, "");
var root = context.parse();
var value = root.value;
var endIndex = context.skip(IS_WHITESPACE, root.end);
if (endIndex < source.length) {
throw SyntaxError2('Unexpected extra character: "' + at(source, endIndex) + '" after the parsed data at: ' + endIndex);
}
return isCallable(reviver) ? internalize({ "": value }, "", reviver, root) : value;
};
var internalize = function(holder, name, reviver, node) {
var val = holder[name];
var unmodified = node && val === node.value;
var context = unmodified && typeof node.source == "string" ? { source: node.source } : {};
var elementRecordsLen, keys, len, i4, P2;
if (isObject(val)) {
var nodeIsArray = isArray(val);
var nodes = unmodified ? node.nodes : nodeIsArray ? [] : {};
if (nodeIsArray) {
elementRecordsLen = nodes.length;
len = lengthOfArrayLike(val);
for (i4 = 0; i4 < len; i4++) {
internalizeProperty(val, i4, internalize(val, "" + i4, reviver, i4 < elementRecordsLen ? nodes[i4] : void 0));
}
} else {
keys = enumerableOwnProperties(val);
len = lengthOfArrayLike(keys);
for (i4 = 0; i4 < len; i4++) {
P2 = keys[i4];
internalizeProperty(val, P2, internalize(val, P2, reviver, hasOwn(nodes, P2) ? nodes[P2] : void 0));
}
}
}
return call(reviver, holder, name, val, context);
};
var internalizeProperty = function(object, key, value) {
if (DESCRIPTORS) {
var descriptor = getOwnPropertyDescriptor(object, key);
if (descriptor && !descriptor.configurable)
return;
}
if (value === void 0)
delete object[key];
else
createProperty(object, key, value);
};
var Node2 = function(value, end, source, nodes) {
this.value = value;
this.end = end;
this.source = source;
this.nodes = nodes;
};
var Context = function(source, index) {
this.source = source;
this.index = index;
};
Context.prototype = {
fork: function(nextIndex) {
return new Context(this.source, nextIndex);
},
parse: function() {
var source = this.source;
var i4 = this.skip(IS_WHITESPACE, this.index);
var fork = this.fork(i4);
var chr = at(source, i4);
if (exec(IS_NUMBER_START, chr))
return fork.number();
switch (chr) {
case "{":
return fork.object();
case "[":
return fork.array();
case '"':
return fork.string();
case "t":
return fork.keyword(true);
case "f":
return fork.keyword(false);
case "n":
return fork.keyword(null);
}
throw SyntaxError2('Unexpected character: "' + chr + '" at: ' + i4);
},
node: function(type, value, start, end, nodes) {
return new Node2(value, end, type ? null : slice(this.source, start, end), nodes);
},
object: function() {
var source = this.source;
var i4 = this.index + 1;
var expectKeypair = false;
var object = {};
var nodes = {};
while (i4 < source.length) {
i4 = this.until(['"', "}"], i4);
if (at(source, i4) == "}" && !expectKeypair) {
i4++;
break;
}
var result = this.fork(i4).string();
var key = result.value;
i4 = result.end;
i4 = this.until([":"], i4) + 1;
i4 = this.skip(IS_WHITESPACE, i4);
result = this.fork(i4).parse();
createProperty(nodes, key, result);
createProperty(object, key, result.value);
i4 = this.until([",", "}"], result.end);
var chr = at(source, i4);
if (chr == ",") {
expectKeypair = true;
i4++;
} else if (chr == "}") {
i4++;
break;
}
}
return this.node(OBJECT, object, this.index, i4, nodes);
},
array: function() {
var source = this.source;
var i4 = this.index + 1;
var expectElement = false;
var array = [];
var nodes = [];
while (i4 < source.length) {
i4 = this.skip(IS_WHITESPACE, i4);
if (at(source, i4) == "]" && !expectElement) {
i4++;
break;
}
var result = this.fork(i4).parse();
push(nodes, result);
push(array, result.value);
i4 = this.until([",", "]"], result.end);
if (at(source, i4) == ",") {
expectElement = true;
i4++;
} else if (at(source, i4) == "]") {
i4++;
break;
}
}
return this.node(OBJECT, array, this.index, i4, nodes);
},
string: function() {
var index = this.index;
var parsed = parseJSONString(this.source, this.index + 1);
return this.node(PRIMITIVE, parsed.value, index, parsed.end);
},
number: function() {
var source = this.source;
var startIndex = this.index;
var i4 = startIndex;
if (at(source, i4) == "-")
i4++;
if (at(source, i4) == "0")
i4++;
else if (exec(IS_NON_ZERO_DIGIT, at(source, i4)))
i4 = this.skip(IS_DIGIT, ++i4);
else
throw SyntaxError2("Failed to parse number at: " + i4);
if (at(source, i4) == ".")
i4 = this.skip(IS_DIGIT, ++i4);
if (at(source, i4) == "e" || at(source, i4) == "E") {
i4++;
if (at(source, i4) == "+" || at(source, i4) == "-")
i4++;
var exponentStartIndex = i4;
i4 = this.skip(IS_DIGIT, i4);
if (exponentStartIndex == i4)
throw SyntaxError2("Failed to parse number's exponent value at: " + i4);
}
return this.node(PRIMITIVE, Number2(slice(source, startIndex, i4)), startIndex, i4);
},
keyword: function(value) {
var keyword = "" + value;
var index = this.index;
var endIndex = index + keyword.length;
if (slice(this.source, index, endIndex) != keyword)
throw SyntaxError2("Failed to parse value at: " + index);
return this.node(PRIMITIVE, value, index, endIndex);
},
skip: function(regex, i4) {
var source = this.source;
for (; i4 < source.length; i4++)
if (!exec(regex, at(source, i4)))
break;
return i4;
},
until: function(array, i4) {
i4 = this.skip(IS_WHITESPACE, i4);
var chr = at(this.source, i4);
for (var j2 = 0; j2 < array.length; j2++)
if (array[j2] == chr)
return i4;
throw SyntaxError2('Unexpected character: "' + chr + '" at: ' + i4);
}
};
var NO_SOURCE_SUPPORT = fails(function() {
var unsafeInt = "9007199254740993";
var source;
nativeParse(unsafeInt, function(key, value, context) {
source = context.source;
});
return source !== unsafeInt;
});
var PROPER_BASE_PARSE = NATIVE_SYMBOL && !fails(function() {
return 1 / nativeParse("-0 ") !== -Infinity;
});
$2({ target: "JSON", stat: true, forced: NO_SOURCE_SUPPORT }, {
parse: function parse(text, reviver) {
return PROPER_BASE_PARSE && !isCallable(reviver) ? nativeParse(text) : $parse(text, reviver);
}
});
}
});
// node_modules/core-js/modules/esnext.json.raw-json.js
var require_esnext_json_raw_json = __commonJS({
"node_modules/core-js/modules/esnext.json.raw-json.js"() {
"use strict";
var $2 = require_export();
var FREEZING = require_freezing();
var NATIVE_RAW_JSON = require_native_raw_json();
var getBuiltIn = require_get_built_in();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var isCallable = require_is_callable();
var isRawJSON = require_is_raw_json();
var toString = require_to_string();
var createProperty = require_create_property();
var parseJSONString = require_parse_json_string();
var getReplacerFunction = require_get_json_replacer_function();
var uid = require_uid();
var setInternalState = require_internal_state().set;
var $String = String;
var $SyntaxError = SyntaxError;
var parse = getBuiltIn("JSON", "parse");
var $stringify = getBuiltIn("JSON", "stringify");
var create = getBuiltIn("Object", "create");
var freeze = getBuiltIn("Object", "freeze");
var at = uncurryThis("".charAt);
var slice = uncurryThis("".slice);
var exec = uncurryThis(/./.exec);
var push = uncurryThis([].push);
var MARK = uid();
var MARK_LENGTH = MARK.length;
var ERROR_MESSAGE = "Unacceptable as raw JSON";
var IS_WHITESPACE = /^[\t\n\r ]$/;
$2({ target: "JSON", stat: true, forced: !NATIVE_RAW_JSON }, {
rawJSON: function rawJSON(text) {
var jsonString = toString(text);
if (jsonString == "" || exec(IS_WHITESPACE, at(jsonString, 0)) || exec(IS_WHITESPACE, at(jsonString, jsonString.length - 1))) {
throw $SyntaxError(ERROR_MESSAGE);
}
var parsed = parse(jsonString);
if (typeof parsed == "object" && parsed !== null)
throw $SyntaxError(ERROR_MESSAGE);
var obj = create(null);
setInternalState(obj, { type: "RawJSON" });
createProperty(obj, "rawJSON", jsonString);
return FREEZING ? freeze(obj) : obj;
}
});
if ($stringify)
$2({ target: "JSON", stat: true, arity: 3, forced: !NATIVE_RAW_JSON }, {
stringify: function stringify(text, replacer, space) {
var replacerFunction = getReplacerFunction(replacer);
var rawStrings = [];
var json = $stringify(text, function(key, value) {
var v2 = isCallable(replacerFunction) ? call(replacerFunction, this, $String(key), value) : value;
return isRawJSON(v2) ? MARK + (push(rawStrings, v2.rawJSON) - 1) : v2;
}, space);
if (typeof json != "string")
return json;
var result = "";
var length = json.length;
for (var i4 = 0; i4 < length; i4++) {
var chr = at(json, i4);
if (chr == '"') {
var end = parseJSONString(json, ++i4).end - 1;
var string = slice(json, i4, end);
result += slice(string, 0, MARK_LENGTH) == MARK ? rawStrings[slice(string, MARK_LENGTH)] : '"' + string + '"';
i4 = end;
} else
result += chr;
}
return result;
}
});
}
});
// node_modules/core-js/proposals/json-parse-with-source.js
var require_json_parse_with_source = __commonJS({
"node_modules/core-js/proposals/json-parse-with-source.js"() {
require_esnext_json_is_raw_json();
require_esnext_json_parse();
require_esnext_json_raw_json();
}
});
// node_modules/core-js/internals/a-set.js
var require_a_set = __commonJS({
"node_modules/core-js/internals/a-set.js"(exports, module) {
var has = require_set_helpers().has;
module.exports = function(it) {
has(it);
return it;
};
}
});
// node_modules/core-js/internals/iterate-simple.js
var require_iterate_simple = __commonJS({
"node_modules/core-js/internals/iterate-simple.js"(exports, module) {
var call = require_function_call();
module.exports = function(iterator, fn, $next) {
var next = $next || iterator.next;
var step, result;
while (!(step = call(next, iterator)).done) {
result = fn(step.value);
if (result !== void 0)
return result;
}
};
}
});
// node_modules/core-js/internals/set-iterate.js
var require_set_iterate = __commonJS({
"node_modules/core-js/internals/set-iterate.js"(exports, module) {
var uncurryThis = require_function_uncurry_this();
var iterateSimple = require_iterate_simple();
var SetHelpers = require_set_helpers();
var Set2 = SetHelpers.Set;
var SetPrototype = SetHelpers.proto;
var forEach = uncurryThis(SetPrototype.forEach);
var keys = uncurryThis(SetPrototype.keys);
var next = keys(new Set2()).next;
module.exports = function(set, fn, interruptible) {
return interruptible ? iterateSimple(keys(set), fn, next) : forEach(set, fn);
};
}
});
// node_modules/core-js/internals/set-clone.js
var require_set_clone = __commonJS({
"node_modules/core-js/internals/set-clone.js"(exports, module) {
var SetHelpers = require_set_helpers();
var iterate = require_set_iterate();
var Set2 = SetHelpers.Set;
var add = SetHelpers.add;
module.exports = function(set) {
var result = new Set2();
iterate(set, function(it) {
add(result, it);
});
return result;
};
}
});
// node_modules/core-js/internals/set-size.js
var require_set_size = __commonJS({
"node_modules/core-js/internals/set-size.js"(exports, module) {
var uncurryThisAccessor = require_function_uncurry_this_accessor();
var SetHelpers = require_set_helpers();
module.exports = uncurryThisAccessor(SetHelpers.proto, "size", "get") || function(set) {
return set.size;
};
}
});
// node_modules/core-js/internals/get-set-record.js
var require_get_set_record = __commonJS({
"node_modules/core-js/internals/get-set-record.js"(exports, module) {
var aCallable = require_a_callable();
var anObject = require_an_object();
var call = require_function_call();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var $TypeError = TypeError;
var max = Math.max;
var SetRecord = function(set, size, has, keys) {
this.set = set;
this.size = size;
this.has = has;
this.keys = keys;
};
SetRecord.prototype = {
getIterator: function() {
return anObject(call(this.keys, this.set));
},
includes: function(it) {
return call(this.has, this.set, it);
}
};
module.exports = function(obj) {
anObject(obj);
var numSize = +obj.size;
if (numSize != numSize)
throw $TypeError("Invalid size");
return new SetRecord(
obj,
max(toIntegerOrInfinity(numSize), 0),
aCallable(obj.has),
aCallable(obj.keys)
);
};
}
});
// node_modules/core-js/internals/set-difference.js
var require_set_difference = __commonJS({
"node_modules/core-js/internals/set-difference.js"(exports, module) {
"use strict";
var aSet = require_a_set();
var SetHelpers = require_set_helpers();
var clone = require_set_clone();
var size = require_set_size();
var getSetRecord = require_get_set_record();
var iterateSet = require_set_iterate();
var iterateSimple = require_iterate_simple();
var has = SetHelpers.has;
var remove = SetHelpers.remove;
module.exports = function difference(other) {
var O = aSet(this);
var otherRec = getSetRecord(other);
var result = clone(O);
if (size(O) <= otherRec.size)
iterateSet(O, function(e7) {
if (otherRec.includes(e7))
remove(result, e7);
});
else
iterateSimple(otherRec.getIterator(), function(e7) {
if (has(O, e7))
remove(result, e7);
});
return result;
};
}
});
// node_modules/core-js/internals/set-method-accept-set-like.js
var require_set_method_accept_set_like = __commonJS({
"node_modules/core-js/internals/set-method-accept-set-like.js"(exports, module) {
var getBuiltIn = require_get_built_in();
var createEmptySetLike = function() {
return {
size: 0,
has: function() {
return false;
},
keys: function() {
return {
next: function() {
return { done: true };
}
};
}
};
};
module.exports = function(name) {
try {
var Set2 = getBuiltIn("Set");
new Set2()[name](createEmptySetLike());
return true;
} catch (error) {
return false;
}
};
}
});
// node_modules/core-js/modules/esnext.set.difference.v2.js
var require_esnext_set_difference_v2 = __commonJS({
"node_modules/core-js/modules/esnext.set.difference.v2.js"() {
var $2 = require_export();
var difference = require_set_difference();
var setMethodAcceptSetLike = require_set_method_accept_set_like();
$2({ target: "Set", proto: true, real: true, forced: !setMethodAcceptSetLike("difference") }, {
difference
});
}
});
// node_modules/core-js/internals/set-intersection.js
var require_set_intersection = __commonJS({
"node_modules/core-js/internals/set-intersection.js"(exports, module) {
"use strict";
var aSet = require_a_set();
var SetHelpers = require_set_helpers();
var size = require_set_size();
var getSetRecord = require_get_set_record();
var iterateSet = require_set_iterate();
var iterateSimple = require_iterate_simple();
var Set2 = SetHelpers.Set;
var add = SetHelpers.add;
var has = SetHelpers.has;
module.exports = function intersection(other) {
var O = aSet(this);
var otherRec = getSetRecord(other);
var result = new Set2();
if (size(O) > otherRec.size) {
iterateSimple(otherRec.getIterator(), function(e7) {
if (has(O, e7))
add(result, e7);
});
} else {
iterateSet(O, function(e7) {
if (otherRec.includes(e7))
add(result, e7);
});
}
return result;
};
}
});
// node_modules/core-js/modules/esnext.set.intersection.v2.js
var require_esnext_set_intersection_v2 = __commonJS({
"node_modules/core-js/modules/esnext.set.intersection.v2.js"() {
var $2 = require_export();
var fails = require_fails();
var intersection = require_set_intersection();
var setMethodAcceptSetLike = require_set_method_accept_set_like();
var INCORRECT = !setMethodAcceptSetLike("intersection") || fails(function() {
return Array.from((/* @__PURE__ */ new Set([1, 2, 3])).intersection(/* @__PURE__ */ new Set([3, 2]))) != "3,2";
});
$2({ target: "Set", proto: true, real: true, forced: INCORRECT }, {
intersection
});
}
});
// node_modules/core-js/internals/set-is-disjoint-from.js
var require_set_is_disjoint_from = __commonJS({
"node_modules/core-js/internals/set-is-disjoint-from.js"(exports, module) {
"use strict";
var aSet = require_a_set();
var has = require_set_helpers().has;
var size = require_set_size();
var getSetRecord = require_get_set_record();
var iterateSet = require_set_iterate();
var iterateSimple = require_iterate_simple();
var iteratorClose = require_iterator_close();
module.exports = function isDisjointFrom(other) {
var O = aSet(this);
var otherRec = getSetRecord(other);
if (size(O) <= otherRec.size)
return iterateSet(O, function(e7) {
if (otherRec.includes(e7))
return false;
}, true) !== false;
var iterator = otherRec.getIterator();
return iterateSimple(iterator, function(e7) {
if (has(O, e7))
return iteratorClose(iterator, "normal", false);
}) !== false;
};
}
});
// node_modules/core-js/modules/esnext.set.is-disjoint-from.v2.js
var require_esnext_set_is_disjoint_from_v2 = __commonJS({
"node_modules/core-js/modules/esnext.set.is-disjoint-from.v2.js"() {
var $2 = require_export();
var isDisjointFrom = require_set_is_disjoint_from();
var setMethodAcceptSetLike = require_set_method_accept_set_like();
$2({ target: "Set", proto: true, real: true, forced: !setMethodAcceptSetLike("isDisjointFrom") }, {
isDisjointFrom
});
}
});
// node_modules/core-js/internals/set-is-subset-of.js
var require_set_is_subset_of = __commonJS({
"node_modules/core-js/internals/set-is-subset-of.js"(exports, module) {
"use strict";
var aSet = require_a_set();
var size = require_set_size();
var iterate = require_set_iterate();
var getSetRecord = require_get_set_record();
module.exports = function isSubsetOf(other) {
var O = aSet(this);
var otherRec = getSetRecord(other);
if (size(O) > otherRec.size)
return false;
return iterate(O, function(e7) {
if (!otherRec.includes(e7))
return false;
}, true) !== false;
};
}
});
// node_modules/core-js/modules/esnext.set.is-subset-of.v2.js
var require_esnext_set_is_subset_of_v2 = __commonJS({
"node_modules/core-js/modules/esnext.set.is-subset-of.v2.js"() {
var $2 = require_export();
var isSubsetOf = require_set_is_subset_of();
var setMethodAcceptSetLike = require_set_method_accept_set_like();
$2({ target: "Set", proto: true, real: true, forced: !setMethodAcceptSetLike("isSubsetOf") }, {
isSubsetOf
});
}
});
// node_modules/core-js/internals/set-is-superset-of.js
var require_set_is_superset_of = __commonJS({
"node_modules/core-js/internals/set-is-superset-of.js"(exports, module) {
"use strict";
var aSet = require_a_set();
var has = require_set_helpers().has;
var size = require_set_size();
var getSetRecord = require_get_set_record();
var iterateSimple = require_iterate_simple();
var iteratorClose = require_iterator_close();
module.exports = function isSupersetOf(other) {
var O = aSet(this);
var otherRec = getSetRecord(other);
if (size(O) < otherRec.size)
return false;
var iterator = otherRec.getIterator();
return iterateSimple(iterator, function(e7) {
if (!has(O, e7))
return iteratorClose(iterator, "normal", false);
}) !== false;
};
}
});
// node_modules/core-js/modules/esnext.set.is-superset-of.v2.js
var require_esnext_set_is_superset_of_v2 = __commonJS({
"node_modules/core-js/modules/esnext.set.is-superset-of.v2.js"() {
var $2 = require_export();
var isSupersetOf = require_set_is_superset_of();
var setMethodAcceptSetLike = require_set_method_accept_set_like();
$2({ target: "Set", proto: true, real: true, forced: !setMethodAcceptSetLike("isSupersetOf") }, {
isSupersetOf
});
}
});
// node_modules/core-js/internals/set-union.js
var require_set_union = __commonJS({
"node_modules/core-js/internals/set-union.js"(exports, module) {
"use strict";
var aSet = require_a_set();
var add = require_set_helpers().add;
var clone = require_set_clone();
var getSetRecord = require_get_set_record();
var iterateSimple = require_iterate_simple();
module.exports = function union(other) {
var O = aSet(this);
var keysIter = getSetRecord(other).getIterator();
var result = clone(O);
iterateSimple(keysIter, function(it) {
add(result, it);
});
return result;
};
}
});
// node_modules/core-js/modules/esnext.set.union.v2.js
var require_esnext_set_union_v2 = __commonJS({
"node_modules/core-js/modules/esnext.set.union.v2.js"() {
var $2 = require_export();
var union = require_set_union();
var setMethodAcceptSetLike = require_set_method_accept_set_like();
$2({ target: "Set", proto: true, real: true, forced: !setMethodAcceptSetLike("union") }, {
union
});
}
});
// node_modules/core-js/internals/set-symmetric-difference.js
var require_set_symmetric_difference = __commonJS({
"node_modules/core-js/internals/set-symmetric-difference.js"(exports, module) {
"use strict";
var aSet = require_a_set();
var SetHelpers = require_set_helpers();
var clone = require_set_clone();
var getSetRecord = require_get_set_record();
var iterateSimple = require_iterate_simple();
var add = SetHelpers.add;
var has = SetHelpers.has;
var remove = SetHelpers.remove;
module.exports = function symmetricDifference(other) {
var O = aSet(this);
var keysIter = getSetRecord(other).getIterator();
var result = clone(O);
iterateSimple(keysIter, function(e7) {
if (has(O, e7))
remove(result, e7);
else
add(result, e7);
});
return result;
};
}
});
// node_modules/core-js/modules/esnext.set.symmetric-difference.v2.js
var require_esnext_set_symmetric_difference_v2 = __commonJS({
"node_modules/core-js/modules/esnext.set.symmetric-difference.v2.js"() {
var $2 = require_export();
var symmetricDifference = require_set_symmetric_difference();
var setMethodAcceptSetLike = require_set_method_accept_set_like();
$2({ target: "Set", proto: true, real: true, forced: !setMethodAcceptSetLike("symmetricDifference") }, {
symmetricDifference
});
}
});
// node_modules/core-js/proposals/set-methods-v2.js
var require_set_methods_v2 = __commonJS({
"node_modules/core-js/proposals/set-methods-v2.js"() {
require_esnext_set_difference_v2();
require_esnext_set_intersection_v2();
require_esnext_set_is_disjoint_from_v2();
require_esnext_set_is_subset_of_v2();
require_esnext_set_is_superset_of_v2();
require_esnext_set_union_v2();
require_esnext_set_symmetric_difference_v2();
}
});
// node_modules/core-js/modules/esnext.string.is-well-formed.js
var require_esnext_string_is_well_formed = __commonJS({
"node_modules/core-js/modules/esnext.string.is-well-formed.js"() {
"use strict";
var $2 = require_export();
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var toString = require_to_string();
var charCodeAt = uncurryThis("".charCodeAt);
$2({ target: "String", proto: true }, {
isWellFormed: function isWellFormed() {
var S3 = toString(requireObjectCoercible(this));
var length = S3.length;
for (var i4 = 0; i4 < length; i4++) {
var charCode = charCodeAt(S3, i4);
if ((charCode & 63488) != 55296)
continue;
if (charCode >= 56320 || ++i4 >= length || (charCodeAt(S3, i4) & 64512) != 56320)
return false;
}
return true;
}
});
}
});
// node_modules/core-js/modules/esnext.string.to-well-formed.js
var require_esnext_string_to_well_formed = __commonJS({
"node_modules/core-js/modules/esnext.string.to-well-formed.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var uncurryThis = require_function_uncurry_this();
var requireObjectCoercible = require_require_object_coercible();
var toString = require_to_string();
var fails = require_fails();
var $Array = Array;
var charAt = uncurryThis("".charAt);
var charCodeAt = uncurryThis("".charCodeAt);
var join = uncurryThis([].join);
var $toWellFormed = "".toWellFormed;
var REPLACEMENT_CHARACTER = "\uFFFD";
var TO_STRING_CONVERSION_BUG = $toWellFormed && fails(function() {
return call($toWellFormed, 1) !== "1";
});
$2({ target: "String", proto: true, forced: TO_STRING_CONVERSION_BUG }, {
toWellFormed: function toWellFormed() {
var S3 = toString(requireObjectCoercible(this));
if (TO_STRING_CONVERSION_BUG)
return call($toWellFormed, S3);
var length = S3.length;
var result = $Array(length);
for (var i4 = 0; i4 < length; i4++) {
var charCode = charCodeAt(S3, i4);
if ((charCode & 63488) != 55296)
result[i4] = charAt(S3, i4);
else if (charCode >= 56320 || i4 + 1 >= length || (charCodeAt(S3, i4 + 1) & 64512) != 56320)
result[i4] = REPLACEMENT_CHARACTER;
else {
result[i4] = charAt(S3, i4);
result[++i4] = charAt(S3, i4);
}
}
return join(result, "");
}
});
}
});
// node_modules/core-js/proposals/well-formed-unicode-strings.js
var require_well_formed_unicode_strings = __commonJS({
"node_modules/core-js/proposals/well-formed-unicode-strings.js"() {
require_esnext_string_is_well_formed();
require_esnext_string_to_well_formed();
}
});
// node_modules/core-js/modules/esnext.array.group-by.js
var require_esnext_array_group_by = __commonJS({
"node_modules/core-js/modules/esnext.array.group-by.js"() {
"use strict";
var $2 = require_export();
var $group = require_array_group();
var arrayMethodIsStrict = require_array_method_is_strict();
var addToUnscopables = require_add_to_unscopables();
$2({ target: "Array", proto: true, forced: !arrayMethodIsStrict("groupBy") }, {
groupBy: function groupBy(callbackfn) {
var thisArg = arguments.length > 1 ? arguments[1] : void 0;
return $group(this, callbackfn, thisArg);
}
});
addToUnscopables("groupBy");
}
});
// node_modules/core-js/modules/esnext.array.group-by-to-map.js
var require_esnext_array_group_by_to_map = __commonJS({
"node_modules/core-js/modules/esnext.array.group-by-to-map.js"() {
var $2 = require_export();
var arrayMethodIsStrict = require_array_method_is_strict();
var addToUnscopables = require_add_to_unscopables();
var $groupToMap = require_array_group_to_map();
var IS_PURE = require_is_pure();
$2({ target: "Array", proto: true, name: "groupToMap", forced: IS_PURE || !arrayMethodIsStrict("groupByToMap") }, {
groupByToMap: $groupToMap
});
addToUnscopables("groupByToMap");
}
});
// node_modules/core-js/proposals/array-grouping-stage-3.js
var require_array_grouping_stage_3 = __commonJS({
"node_modules/core-js/proposals/array-grouping-stage-3.js"() {
require_esnext_array_group_by();
require_esnext_array_group_by_to_map();
}
});
// node_modules/core-js/modules/esnext.typed-array.to-spliced.js
var require_esnext_typed_array_to_spliced = __commonJS({
"node_modules/core-js/modules/esnext.typed-array.to-spliced.js"() {
"use strict";
var ArrayBufferViewCore = require_array_buffer_view_core();
var lengthOfArrayLike = require_length_of_array_like();
var isBigIntArray = require_is_big_int_array();
var toAbsoluteIndex = require_to_absolute_index();
var toBigInt = require_to_big_int();
var toIntegerOrInfinity = require_to_integer_or_infinity();
var fails = require_fails();
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var max = Math.max;
var min = Math.min;
var PROPER_ORDER = !fails(function() {
var array = new Int8Array([1]);
var spliced = array.toSpliced(1, 0, {
valueOf: function() {
array[0] = 2;
return 3;
}
});
return spliced[0] !== 2 || spliced[1] !== 3;
});
exportTypedArrayMethod("toSpliced", function toSpliced(start, deleteCount) {
var O = aTypedArray(this);
var C2 = getTypedArrayConstructor(O);
var len = lengthOfArrayLike(O);
var actualStart = toAbsoluteIndex(start, len);
var argumentsLength = arguments.length;
var k2 = 0;
var insertCount, actualDeleteCount, thisIsBigIntArray, convertedItems, value, newLen, A2;
if (argumentsLength === 0) {
insertCount = actualDeleteCount = 0;
} else if (argumentsLength === 1) {
insertCount = 0;
actualDeleteCount = len - actualStart;
} else {
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
insertCount = argumentsLength - 2;
if (insertCount) {
convertedItems = new C2(insertCount);
thisIsBigIntArray = isBigIntArray(convertedItems);
for (var i4 = 2; i4 < argumentsLength; i4++) {
value = arguments[i4];
convertedItems[i4 - 2] = thisIsBigIntArray ? toBigInt(value) : +value;
}
}
}
newLen = len + insertCount - actualDeleteCount;
A2 = new C2(newLen);
for (; k2 < actualStart; k2++)
A2[k2] = O[k2];
for (; k2 < actualStart + insertCount; k2++)
A2[k2] = convertedItems[k2 - actualStart];
for (; k2 < newLen; k2++)
A2[k2] = O[k2 + actualDeleteCount - insertCount];
return A2;
}, !PROPER_ORDER);
}
});
// node_modules/core-js/proposals/change-array-by-copy.js
var require_change_array_by_copy = __commonJS({
"node_modules/core-js/proposals/change-array-by-copy.js"() {
require_esnext_array_to_reversed();
require_esnext_array_to_sorted();
require_esnext_array_to_spliced();
require_esnext_array_with();
require_esnext_typed_array_to_reversed();
require_esnext_typed_array_to_sorted();
require_esnext_typed_array_to_spliced();
require_esnext_typed_array_with();
}
});
// node_modules/core-js/modules/esnext.async-iterator.constructor.js
var require_esnext_async_iterator_constructor = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.constructor.js"() {
"use strict";
var $2 = require_export();
var anInstance = require_an_instance();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var hasOwn = require_has_own_property();
var wellKnownSymbol = require_well_known_symbol();
var AsyncIteratorPrototype = require_async_iterator_prototype();
var IS_PURE = require_is_pure();
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var AsyncIteratorConstructor = function AsyncIterator() {
anInstance(this, AsyncIteratorPrototype);
};
AsyncIteratorConstructor.prototype = AsyncIteratorPrototype;
if (!hasOwn(AsyncIteratorPrototype, TO_STRING_TAG)) {
createNonEnumerableProperty(AsyncIteratorPrototype, TO_STRING_TAG, "AsyncIterator");
}
if (IS_PURE || !hasOwn(AsyncIteratorPrototype, "constructor") || AsyncIteratorPrototype.constructor === Object) {
createNonEnumerableProperty(AsyncIteratorPrototype, "constructor", AsyncIteratorConstructor);
}
$2({ global: true, constructor: true, forced: IS_PURE }, {
AsyncIterator: AsyncIteratorConstructor
});
}
});
// node_modules/core-js/internals/async-iterator-create-proxy.js
var require_async_iterator_create_proxy = __commonJS({
"node_modules/core-js/internals/async-iterator-create-proxy.js"(exports, module) {
"use strict";
var call = require_function_call();
var perform = require_perform();
var anObject = require_an_object();
var create = require_object_create();
var createNonEnumerableProperty = require_create_non_enumerable_property();
var defineBuiltIns = require_define_built_ins();
var wellKnownSymbol = require_well_known_symbol();
var InternalStateModule = require_internal_state();
var getBuiltIn = require_get_built_in();
var getMethod = require_get_method();
var AsyncIteratorPrototype = require_async_iterator_prototype();
var createIterResultObject = require_create_iter_result_object();
var iteratorClose = require_iterator_close();
var Promise2 = getBuiltIn("Promise");
var TO_STRING_TAG = wellKnownSymbol("toStringTag");
var ASYNC_ITERATOR_HELPER = "AsyncIteratorHelper";
var WRAP_FOR_VALID_ASYNC_ITERATOR = "WrapForValidAsyncIterator";
var setInternalState = InternalStateModule.set;
var createAsyncIteratorProxyPrototype = function(IS_ITERATOR) {
var IS_GENERATOR = !IS_ITERATOR;
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER);
var getStateOrEarlyExit = function(that) {
var stateCompletion = perform(function() {
return getInternalState(that);
});
var stateError = stateCompletion.error;
var state2 = stateCompletion.value;
if (stateError || IS_GENERATOR && state2.done) {
return { exit: true, value: stateError ? Promise2.reject(state2) : Promise2.resolve(createIterResultObject(void 0, true)) };
}
return { exit: false, value: state2 };
};
return defineBuiltIns(create(AsyncIteratorPrototype), {
next: function next() {
var stateCompletion = getStateOrEarlyExit(this);
var state2 = stateCompletion.value;
if (stateCompletion.exit)
return state2;
var handlerCompletion = perform(function() {
return anObject(state2.nextHandler(Promise2));
});
var handlerError = handlerCompletion.error;
var value = handlerCompletion.value;
if (handlerError)
state2.done = true;
return handlerError ? Promise2.reject(value) : Promise2.resolve(value);
},
"return": function() {
var stateCompletion = getStateOrEarlyExit(this);
var state2 = stateCompletion.value;
if (stateCompletion.exit)
return state2;
state2.done = true;
var iterator = state2.iterator;
var returnMethod, result;
var completion = perform(function() {
if (state2.inner)
try {
iteratorClose(state2.inner.iterator, "normal");
} catch (error) {
return iteratorClose(iterator, "throw", error);
}
return getMethod(iterator, "return");
});
returnMethod = result = completion.value;
if (completion.error)
return Promise2.reject(result);
if (returnMethod === void 0)
return Promise2.resolve(createIterResultObject(void 0, true));
completion = perform(function() {
return call(returnMethod, iterator);
});
result = completion.value;
if (completion.error)
return Promise2.reject(result);
return IS_ITERATOR ? Promise2.resolve(result) : Promise2.resolve(result).then(function(resolved) {
anObject(resolved);
return createIterResultObject(void 0, true);
});
}
});
};
var WrapForValidAsyncIteratorPrototype = createAsyncIteratorProxyPrototype(true);
var AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false);
createNonEnumerableProperty(AsyncIteratorHelperPrototype, TO_STRING_TAG, "Async Iterator Helper");
module.exports = function(nextHandler, IS_ITERATOR) {
var AsyncIteratorProxy = function AsyncIterator(record, state2) {
if (state2) {
state2.iterator = record.iterator;
state2.next = record.next;
} else
state2 = record;
state2.type = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER;
state2.nextHandler = nextHandler;
state2.counter = 0;
state2.done = false;
setInternalState(this, state2);
};
AsyncIteratorProxy.prototype = IS_ITERATOR ? WrapForValidAsyncIteratorPrototype : AsyncIteratorHelperPrototype;
return AsyncIteratorProxy;
};
}
});
// node_modules/core-js/modules/esnext.async-iterator.drop.js
var require_esnext_async_iterator_drop = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.drop.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
var notANaN = require_not_a_nan();
var toPositiveInteger = require_to_positive_integer();
var createAsyncIteratorProxy = require_async_iterator_create_proxy();
var createIterResultObject = require_create_iter_result_object();
var AsyncIteratorProxy = createAsyncIteratorProxy(function(Promise2) {
var state2 = this;
return new Promise2(function(resolve, reject) {
var doneAndReject = function(error) {
state2.done = true;
reject(error);
};
var loop = function() {
try {
Promise2.resolve(anObject(call(state2.next, state2.iterator))).then(function(step) {
try {
if (anObject(step).done) {
state2.done = true;
resolve(createIterResultObject(void 0, true));
} else if (state2.remaining) {
state2.remaining--;
loop();
} else
resolve(createIterResultObject(step.value, false));
} catch (err) {
doneAndReject(err);
}
}, doneAndReject);
} catch (error) {
doneAndReject(error);
}
};
loop();
});
});
$2({ target: "AsyncIterator", proto: true, real: true }, {
drop: function drop(limit) {
anObject(this);
var remaining = toPositiveInteger(notANaN(+limit));
return new AsyncIteratorProxy(getIteratorDirect(this), {
remaining
});
}
});
}
});
// node_modules/core-js/modules/esnext.async-iterator.every.js
var require_esnext_async_iterator_every = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.every.js"() {
"use strict";
var $2 = require_export();
var $every = require_async_iterator_iteration().every;
$2({ target: "AsyncIterator", proto: true, real: true }, {
every: function every(predicate) {
return $every(this, predicate);
}
});
}
});
// node_modules/core-js/modules/esnext.async-iterator.filter.js
var require_esnext_async_iterator_filter = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.filter.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var aCallable = require_a_callable();
var anObject = require_an_object();
var isObject = require_is_object();
var getIteratorDirect = require_get_iterator_direct();
var createAsyncIteratorProxy = require_async_iterator_create_proxy();
var createIterResultObject = require_create_iter_result_object();
var closeAsyncIteration = require_async_iterator_close();
var AsyncIteratorProxy = createAsyncIteratorProxy(function(Promise2) {
var state2 = this;
var iterator = state2.iterator;
var predicate = state2.predicate;
return new Promise2(function(resolve, reject) {
var doneAndReject = function(error) {
state2.done = true;
reject(error);
};
var ifAbruptCloseAsyncIterator = function(error) {
closeAsyncIteration(iterator, doneAndReject, error, doneAndReject);
};
var loop = function() {
try {
Promise2.resolve(anObject(call(state2.next, iterator))).then(function(step) {
try {
if (anObject(step).done) {
state2.done = true;
resolve(createIterResultObject(void 0, true));
} else {
var value = step.value;
try {
var result = predicate(value, state2.counter++);
var handler = function(selected) {
selected ? resolve(createIterResultObject(value, false)) : loop();
};
if (isObject(result))
Promise2.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
else
handler(result);
} catch (error3) {
ifAbruptCloseAsyncIterator(error3);
}
}
} catch (error2) {
doneAndReject(error2);
}
}, doneAndReject);
} catch (error) {
doneAndReject(error);
}
};
loop();
});
});
$2({ target: "AsyncIterator", proto: true, real: true }, {
filter: function filter(predicate) {
anObject(this);
aCallable(predicate);
return new AsyncIteratorProxy(getIteratorDirect(this), {
predicate
});
}
});
}
});
// node_modules/core-js/modules/esnext.async-iterator.find.js
var require_esnext_async_iterator_find = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.find.js"() {
"use strict";
var $2 = require_export();
var $find = require_async_iterator_iteration().find;
$2({ target: "AsyncIterator", proto: true, real: true }, {
find: function find(predicate) {
return $find(this, predicate);
}
});
}
});
// node_modules/core-js/internals/get-async-iterator-flattenable.js
var require_get_async_iterator_flattenable = __commonJS({
"node_modules/core-js/internals/get-async-iterator-flattenable.js"(exports, module) {
var call = require_function_call();
var isCallable = require_is_callable();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
var getIteratorMethod = require_get_iterator_method();
var getMethod = require_get_method();
var wellKnownSymbol = require_well_known_symbol();
var AsyncFromSyncIterator = require_async_from_sync_iterator();
var ASYNC_ITERATOR = wellKnownSymbol("asyncIterator");
module.exports = function from(obj) {
var object = anObject(obj);
var alreadyAsync = true;
var method = getMethod(object, ASYNC_ITERATOR);
var iterator;
if (!isCallable(method)) {
method = getIteratorMethod(object);
alreadyAsync = false;
}
if (method !== void 0) {
iterator = call(method, object);
} else {
iterator = object;
alreadyAsync = true;
}
anObject(iterator);
return getIteratorDirect(alreadyAsync ? iterator : new AsyncFromSyncIterator(getIteratorDirect(iterator)));
};
}
});
// node_modules/core-js/modules/esnext.async-iterator.flat-map.js
var require_esnext_async_iterator_flat_map = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.flat-map.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var aCallable = require_a_callable();
var anObject = require_an_object();
var isObject = require_is_object();
var getIteratorDirect = require_get_iterator_direct();
var createAsyncIteratorProxy = require_async_iterator_create_proxy();
var createIterResultObject = require_create_iter_result_object();
var getAsyncIteratorFlattenable = require_get_async_iterator_flattenable();
var closeAsyncIteration = require_async_iterator_close();
var AsyncIteratorProxy = createAsyncIteratorProxy(function(Promise2) {
var state2 = this;
var iterator = state2.iterator;
var mapper = state2.mapper;
return new Promise2(function(resolve, reject) {
var doneAndReject = function(error) {
state2.done = true;
reject(error);
};
var ifAbruptCloseAsyncIterator = function(error) {
closeAsyncIteration(iterator, doneAndReject, error, doneAndReject);
};
var outerLoop = function() {
try {
Promise2.resolve(anObject(call(state2.next, iterator))).then(function(step) {
try {
if (anObject(step).done) {
state2.done = true;
resolve(createIterResultObject(void 0, true));
} else {
var value = step.value;
try {
var result = mapper(value, state2.counter++);
var handler = function(mapped) {
try {
state2.inner = getAsyncIteratorFlattenable(mapped);
innerLoop();
} catch (error4) {
ifAbruptCloseAsyncIterator(error4);
}
};
if (isObject(result))
Promise2.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
else
handler(result);
} catch (error3) {
ifAbruptCloseAsyncIterator(error3);
}
}
} catch (error2) {
doneAndReject(error2);
}
}, doneAndReject);
} catch (error) {
doneAndReject(error);
}
};
var innerLoop = function() {
var inner = state2.inner;
if (inner) {
try {
Promise2.resolve(anObject(call(inner.next, inner.iterator))).then(function(result) {
try {
if (anObject(result).done) {
state2.inner = null;
outerLoop();
} else
resolve(createIterResultObject(result.value, false));
} catch (error1) {
ifAbruptCloseAsyncIterator(error1);
}
}, ifAbruptCloseAsyncIterator);
} catch (error) {
ifAbruptCloseAsyncIterator(error);
}
} else
outerLoop();
};
innerLoop();
});
});
$2({ target: "AsyncIterator", proto: true, real: true }, {
flatMap: function flatMap(mapper) {
anObject(this);
aCallable(mapper);
return new AsyncIteratorProxy(getIteratorDirect(this), {
mapper,
inner: null
});
}
});
}
});
// node_modules/core-js/modules/esnext.async-iterator.for-each.js
var require_esnext_async_iterator_for_each = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.for-each.js"() {
"use strict";
var $2 = require_export();
var $forEach = require_async_iterator_iteration().forEach;
$2({ target: "AsyncIterator", proto: true, real: true }, {
forEach: function forEach(fn) {
return $forEach(this, fn);
}
});
}
});
// node_modules/core-js/internals/async-iterator-wrap.js
var require_async_iterator_wrap = __commonJS({
"node_modules/core-js/internals/async-iterator-wrap.js"(exports, module) {
var call = require_function_call();
var createAsyncIteratorProxy = require_async_iterator_create_proxy();
module.exports = createAsyncIteratorProxy(function() {
return call(this.next, this.iterator);
}, true);
}
});
// node_modules/core-js/modules/esnext.async-iterator.from.js
var require_esnext_async_iterator_from = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.from.js"() {
var $2 = require_export();
var toObject = require_to_object();
var isPrototypeOf = require_object_is_prototype_of();
var getAsyncIteratorFlattenable = require_get_async_iterator_flattenable();
var AsyncIteratorPrototype = require_async_iterator_prototype();
var WrapAsyncIterator = require_async_iterator_wrap();
$2({ target: "AsyncIterator", stat: true }, {
from: function from(O) {
var iteratorRecord = getAsyncIteratorFlattenable(typeof O == "string" ? toObject(O) : O);
return isPrototypeOf(AsyncIteratorPrototype, iteratorRecord.iterator) ? iteratorRecord.iterator : new WrapAsyncIterator(iteratorRecord);
}
});
}
});
// node_modules/core-js/internals/async-iterator-map.js
var require_async_iterator_map = __commonJS({
"node_modules/core-js/internals/async-iterator-map.js"(exports, module) {
"use strict";
var call = require_function_call();
var aCallable = require_a_callable();
var anObject = require_an_object();
var isObject = require_is_object();
var getIteratorDirect = require_get_iterator_direct();
var createAsyncIteratorProxy = require_async_iterator_create_proxy();
var createIterResultObject = require_create_iter_result_object();
var closeAsyncIteration = require_async_iterator_close();
var AsyncIteratorProxy = createAsyncIteratorProxy(function(Promise2) {
var state2 = this;
var iterator = state2.iterator;
var mapper = state2.mapper;
return new Promise2(function(resolve, reject) {
var doneAndReject = function(error) {
state2.done = true;
reject(error);
};
var ifAbruptCloseAsyncIterator = function(error) {
closeAsyncIteration(iterator, doneAndReject, error, doneAndReject);
};
Promise2.resolve(anObject(call(state2.next, iterator))).then(function(step) {
try {
if (anObject(step).done) {
state2.done = true;
resolve(createIterResultObject(void 0, true));
} else {
var value = step.value;
try {
var result = mapper(value, state2.counter++);
var handler = function(mapped) {
resolve(createIterResultObject(mapped, false));
};
if (isObject(result))
Promise2.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
else
handler(result);
} catch (error2) {
ifAbruptCloseAsyncIterator(error2);
}
}
} catch (error) {
doneAndReject(error);
}
}, doneAndReject);
});
});
module.exports = function map(mapper) {
anObject(this);
aCallable(mapper);
return new AsyncIteratorProxy(getIteratorDirect(this), {
mapper
});
};
}
});
// node_modules/core-js/modules/esnext.async-iterator.map.js
var require_esnext_async_iterator_map = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.map.js"() {
var $2 = require_export();
var map = require_async_iterator_map();
$2({ target: "AsyncIterator", proto: true, real: true }, {
map
});
}
});
// node_modules/core-js/modules/esnext.async-iterator.reduce.js
var require_esnext_async_iterator_reduce = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.reduce.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var aCallable = require_a_callable();
var anObject = require_an_object();
var isObject = require_is_object();
var getBuiltIn = require_get_built_in();
var getIteratorDirect = require_get_iterator_direct();
var closeAsyncIteration = require_async_iterator_close();
var Promise2 = getBuiltIn("Promise");
var $TypeError = TypeError;
$2({ target: "AsyncIterator", proto: true, real: true }, {
reduce: function reduce(reducer) {
anObject(this);
aCallable(reducer);
var record = getIteratorDirect(this);
var iterator = record.iterator;
var next = record.next;
var noInitial = arguments.length < 2;
var accumulator = noInitial ? void 0 : arguments[1];
var counter = 0;
return new Promise2(function(resolve, reject) {
var ifAbruptCloseAsyncIterator = function(error) {
closeAsyncIteration(iterator, reject, error, reject);
};
var loop = function() {
try {
Promise2.resolve(anObject(call(next, iterator))).then(function(step) {
try {
if (anObject(step).done) {
noInitial ? reject($TypeError("Reduce of empty iterator with no initial value")) : resolve(accumulator);
} else {
var value = step.value;
if (noInitial) {
noInitial = false;
accumulator = value;
loop();
} else
try {
var result = reducer(accumulator, value, counter);
var handler = function($result) {
accumulator = $result;
loop();
};
if (isObject(result))
Promise2.resolve(result).then(handler, ifAbruptCloseAsyncIterator);
else
handler(result);
} catch (error3) {
ifAbruptCloseAsyncIterator(error3);
}
}
counter++;
} catch (error2) {
reject(error2);
}
}, reject);
} catch (error) {
reject(error);
}
};
loop();
});
}
});
}
});
// node_modules/core-js/modules/esnext.async-iterator.some.js
var require_esnext_async_iterator_some = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.some.js"() {
"use strict";
var $2 = require_export();
var $some = require_async_iterator_iteration().some;
$2({ target: "AsyncIterator", proto: true, real: true }, {
some: function some(predicate) {
return $some(this, predicate);
}
});
}
});
// node_modules/core-js/modules/esnext.async-iterator.take.js
var require_esnext_async_iterator_take = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.take.js"() {
"use strict";
var $2 = require_export();
var call = require_function_call();
var anObject = require_an_object();
var getIteratorDirect = require_get_iterator_direct();
var notANaN = require_not_a_nan();
var toPositiveInteger = require_to_positive_integer();
var createAsyncIteratorProxy = require_async_iterator_create_proxy();
var createIterResultObject = require_create_iter_result_object();
var AsyncIteratorProxy = createAsyncIteratorProxy(function(Promise2) {
var state2 = this;
var iterator = state2.iterator;
var returnMethod;
if (!state2.remaining--) {
var resultDone = createIterResultObject(void 0, true);
state2.done = true;
returnMethod = iterator["return"];
if (returnMethod !== void 0) {
return Promise2.resolve(call(returnMethod, iterator, void 0)).then(function() {
return resultDone;
});
}
return resultDone;
}
return Promise2.resolve(call(state2.next, iterator)).then(function(step) {
if (anObject(step).done) {
state2.done = true;
return createIterResultObject(void 0, true);
}
return createIterResultObject(step.value, false);
}).then(null, function(error) {
state2.done = true;
throw error;
});
});
$2({ target: "AsyncIterator", proto: true, real: true }, {
take: function take(limit) {
anObject(this);
var remaining = toPositiveInteger(notANaN(+limit));
return new AsyncIteratorProxy(getIteratorDirect(this), {
remaining
});
}
});
}
});
// node_modules/core-js/modules/esnext.async-iterator.to-array.js
var require_esnext_async_iterator_to_array = __commonJS({
"node_modules/core-js/modules/esnext.async-iterator.to-array.js"() {
"use strict";
var $2 = require_export();
var $toArray = require_async_iterator_iteration().toArray;
$2({ target: "AsyncIterator", proto: true, real: true }, {
toArray: function toArray() {
return $toArray(this, void 0, []);
}
});
}
});
// node_modules/core-js/modules/esnext.iterator.to-async.js
var require_esnext_iterator_to_async = __commonJS({
"node_modules/core-js/modules/esnext.iterator.to-async.js"() {
"use strict";
var $2 = require_export();
var anObject = require_an_object();
var AsyncFromSyncIterator = require_async_from_sync_iterator();
var WrapAsyncIterator = require_async_iterator_wrap();
var getIteratorDirect = require_get_iterator_direct();
$2({ target: "Iterator", proto: true, real: true }, {
toAsync: function toAsync() {
return new WrapAsyncIterator(getIteratorDirect(new AsyncFromSyncIterator(getIteratorDirect(anObject(this)))));
}
});
}
});
// node_modules/core-js/proposals/iterator-helpers-stage-3.js
var require_iterator_helpers_stage_3 = __commonJS({
"node_modules/core-js/proposals/iterator-helpers-stage-3.js"() {
require_esnext_async_iterator_constructor();
require_esnext_async_iterator_drop();
require_esnext_async_iterator_every();
require_esnext_async_iterator_filter();
require_esnext_async_iterator_find();
require_esnext_async_iterator_flat_map();
require_esnext_async_iterator_for_each();
require_esnext_async_iterator_from();
require_esnext_async_iterator_map();
require_esnext_async_iterator_reduce();
require_esnext_async_iterator_some();
require_esnext_async_iterator_take();
require_esnext_async_iterator_to_array();
require_esnext_iterator_constructor();
require_esnext_iterator_drop();
require_esnext_iterator_every();
require_esnext_iterator_filter();
require_esnext_iterator_find();
require_esnext_iterator_flat_map();
require_esnext_iterator_for_each();
require_esnext_iterator_from();
require_esnext_iterator_map();
require_esnext_iterator_reduce();
require_esnext_iterator_some();
require_esnext_iterator_take();
require_esnext_iterator_to_array();
require_esnext_iterator_to_async();
}
});
// node_modules/core-js/stage/3.js
var require__2 = __commonJS({
"node_modules/core-js/stage/3.js"(exports, module) {
var parent2 = require__();
require_array_from_async_stage_2();
require_array_grouping_stage_3_2();
require_array_buffer_transfer2();
require_explicit_resource_management();
require_iterator_helpers_stage_3_2();
require_json_parse_with_source();
require_set_methods_v2();
require_well_formed_unicode_strings();
require_array_grouping_stage_3();
require_change_array_by_copy();
require_iterator_helpers_stage_3();
module.exports = parent2;
}
});
// node_modules/core-js/actual/index.js
var require_actual = __commonJS({
"node_modules/core-js/actual/index.js"(exports, module) {
require_stable();
require__2();
module.exports = require_path();
}
});
// node_modules/sockjs-client/lib/utils/browser-crypto.js
var require_browser_crypto = __commonJS({
"node_modules/sockjs-client/lib/utils/browser-crypto.js"(exports, module) {
"use strict";
if (window.crypto && window.crypto.getRandomValues) {
module.exports.randomBytes = function(length) {
var bytes = new Uint8Array(length);
window.crypto.getRandomValues(bytes);
return bytes;
};
} else {
module.exports.randomBytes = function(length) {
var bytes = new Array(length);
for (var i4 = 0; i4 < length; i4++) {
bytes[i4] = Math.floor(Math.random() * 256);
}
return bytes;
};
}
}
});
// node_modules/sockjs-client/lib/utils/random.js
var require_random = __commonJS({
"node_modules/sockjs-client/lib/utils/random.js"(exports, module) {
"use strict";
var crypto = require_browser_crypto();
var _randomStringChars = "abcdefghijklmnopqrstuvwxyz012345";
module.exports = {
string: function(length) {
var max = _randomStringChars.length;
var bytes = crypto.randomBytes(length);
var ret = [];
for (var i4 = 0; i4 < length; i4++) {
ret.push(_randomStringChars.substr(bytes[i4] % max, 1));
}
return ret.join("");
},
number: function(max) {
return Math.floor(Math.random() * max);
},
numberString: function(max) {
var t4 = ("" + (max - 1)).length;
var p2 = new Array(t4 + 1).join("0");
return (p2 + this.number(max)).slice(-t4);
}
};
}
});
// node_modules/sockjs-client/lib/utils/event.js
var require_event = __commonJS({
"node_modules/sockjs-client/lib/utils/event.js"(exports, module) {
"use strict";
var random = require_random();
var onUnload = {};
var afterUnload = false;
var isChromePackagedApp = window.chrome && window.chrome.app && window.chrome.app.runtime;
module.exports = {
attachEvent: function(event, listener) {
if (typeof window.addEventListener !== "undefined") {
window.addEventListener(event, listener, false);
} else if (window.document && window.attachEvent) {
window.document.attachEvent("on" + event, listener);
window.attachEvent("on" + event, listener);
}
},
detachEvent: function(event, listener) {
if (typeof window.addEventListener !== "undefined") {
window.removeEventListener(event, listener, false);
} else if (window.document && window.detachEvent) {
window.document.detachEvent("on" + event, listener);
window.detachEvent("on" + event, listener);
}
},
unloadAdd: function(listener) {
if (isChromePackagedApp) {
return null;
}
var ref = random.string(8);
onUnload[ref] = listener;
if (afterUnload) {
setTimeout(this.triggerUnloadCallbacks, 0);
}
return ref;
},
unloadDel: function(ref) {
if (ref in onUnload) {
delete onUnload[ref];
}
},
triggerUnloadCallbacks: function() {
for (var ref in onUnload) {
onUnload[ref]();
delete onUnload[ref];
}
}
};
var unloadTriggered = function() {
if (afterUnload) {
return;
}
afterUnload = true;
module.exports.triggerUnloadCallbacks();
};
if (!isChromePackagedApp) {
module.exports.attachEvent("unload", unloadTriggered);
}
}
});
// node_modules/requires-port/index.js
var require_requires_port = __commonJS({
"node_modules/requires-port/index.js"(exports, module) {
"use strict";
module.exports = function required(port, protocol) {
protocol = protocol.split(":")[0];
port = +port;
if (!port)
return false;
switch (protocol) {
case "http":
case "ws":
return port !== 80;
case "https":
case "wss":
return port !== 443;
case "ftp":
return port !== 21;
case "gopher":
return port !== 70;
case "file":
return false;
}
return port !== 0;
};
}
});
// node_modules/querystringify/index.js
var require_querystringify = __commonJS({
"node_modules/querystringify/index.js"(exports) {
"use strict";
var has = Object.prototype.hasOwnProperty;
var undef;
function decode(input) {
try {
return decodeURIComponent(input.replace(/\+/g, " "));
} catch (e7) {
return null;
}
}
function encode(input) {
try {
return encodeURIComponent(input);
} catch (e7) {
return null;
}
}
function querystring(query) {
var parser = /([^=?#&]+)=?([^&]*)/g, result = {}, part;
while (part = parser.exec(query)) {
var key = decode(part[1]), value = decode(part[2]);
if (key === null || value === null || key in result)
continue;
result[key] = value;
}
return result;
}
function querystringify(obj, prefix) {
prefix = prefix || "";
var pairs = [], value, key;
if ("string" !== typeof prefix)
prefix = "?";
for (key in obj) {
if (has.call(obj, key)) {
value = obj[key];
if (!value && (value === null || value === undef || isNaN(value))) {
value = "";
}
key = encode(key);
value = encode(value);
if (key === null || value === null)
continue;
pairs.push(key + "=" + value);
}
}
return pairs.length ? prefix + pairs.join("&") : "";
}
exports.stringify = querystringify;
exports.parse = querystring;
}
});
// node_modules/url-parse/index.js
var require_url_parse = __commonJS({
"node_modules/url-parse/index.js"(exports, module) {
"use strict";
var required = require_requires_port();
var qs = require_querystringify();
var controlOrWhitespace = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/;
var CRHTLF = /[\n\r\t]/g;
var slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//;
var port = /:\d+$/;
var protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i;
var windowsDriveLetter = /^[a-zA-Z]:/;
function trimLeft(str) {
return (str ? str : "").toString().replace(controlOrWhitespace, "");
}
var rules = [
["#", "hash"],
// Extract from the back.
["?", "query"],
// Extract from the back.
function sanitize(address, url) {
return isSpecial(url.protocol) ? address.replace(/\\/g, "/") : address;
},
["/", "pathname"],
// Extract from the back.
["@", "auth", 1],
// Extract from the front.
[NaN, "host", void 0, 1, 1],
// Set left over value.
[/:(\d*)$/, "port", void 0, 1],
// RegExp the back.
[NaN, "hostname", void 0, 1, 1]
// Set left over.
];
var ignore = { hash: 1, query: 1 };
function lolcation(loc) {
var globalVar;
if (typeof window !== "undefined")
globalVar = window;
else if (typeof window !== "undefined")
globalVar = window;
else if (typeof self !== "undefined")
globalVar = self;
else
globalVar = {};
var location = globalVar.location || {};
loc = loc || location;
var finaldestination = {}, type = typeof loc, key;
if ("blob:" === loc.protocol) {
finaldestination = new Url(unescape(loc.pathname), {});
} else if ("string" === type) {
finaldestination = new Url(loc, {});
for (key in ignore)
delete finaldestination[key];
} else if ("object" === type) {
for (key in loc) {
if (key in ignore)
continue;
finaldestination[key] = loc[key];
}
if (finaldestination.slashes === void 0) {
finaldestination.slashes = slashes.test(loc.href);
}
}
return finaldestination;
}
function isSpecial(scheme) {
return scheme === "file:" || scheme === "ftp:" || scheme === "http:" || scheme === "https:" || scheme === "ws:" || scheme === "wss:";
}
function extractProtocol(address, location) {
address = trimLeft(address);
address = address.replace(CRHTLF, "");
location = location || {};
var match = protocolre.exec(address);
var protocol = match[1] ? match[1].toLowerCase() : "";
var forwardSlashes = !!match[2];
var otherSlashes = !!match[3];
var slashesCount = 0;
var rest;
if (forwardSlashes) {
if (otherSlashes) {
rest = match[2] + match[3] + match[4];
slashesCount = match[2].length + match[3].length;
} else {
rest = match[2] + match[4];
slashesCount = match[2].length;
}
} else {
if (otherSlashes) {
rest = match[3] + match[4];
slashesCount = match[3].length;
} else {
rest = match[4];
}
}
if (protocol === "file:") {
if (slashesCount >= 2) {
rest = rest.slice(2);
}
} else if (isSpecial(protocol)) {
rest = match[4];
} else if (protocol) {
if (forwardSlashes) {
rest = rest.slice(2);
}
} else if (slashesCount >= 2 && isSpecial(location.protocol)) {
rest = match[4];
}
return {
protocol,
slashes: forwardSlashes || isSpecial(protocol),
slashesCount,
rest
};
}
function resolve(relative, base) {
if (relative === "")
return base;
var path = (base || "/").split("/").slice(0, -1).concat(relative.split("/")), i4 = path.length, last = path[i4 - 1], unshift = false, up = 0;
while (i4--) {
if (path[i4] === ".") {
path.splice(i4, 1);
} else if (path[i4] === "..") {
path.splice(i4, 1);
up++;
} else if (up) {
if (i4 === 0)
unshift = true;
path.splice(i4, 1);
up--;
}
}
if (unshift)
path.unshift("");
if (last === "." || last === "..")
path.push("");
return path.join("/");
}
function Url(address, location, parser) {
address = trimLeft(address);
address = address.replace(CRHTLF, "");
if (!(this instanceof Url)) {
return new Url(address, location, parser);
}
var relative, extracted, parse, instruction, index, key, instructions = rules.slice(), type = typeof location, url = this, i4 = 0;
if ("object" !== type && "string" !== type) {
parser = location;
location = null;
}
if (parser && "function" !== typeof parser)
parser = qs.parse;
location = lolcation(location);
extracted = extractProtocol(address || "", location);
relative = !extracted.protocol && !extracted.slashes;
url.slashes = extracted.slashes || relative && location.slashes;
url.protocol = extracted.protocol || location.protocol || "";
address = extracted.rest;
if (extracted.protocol === "file:" && (extracted.slashesCount !== 2 || windowsDriveLetter.test(address)) || !extracted.slashes && (extracted.protocol || extracted.slashesCount < 2 || !isSpecial(url.protocol))) {
instructions[3] = [/(.*)/, "pathname"];
}
for (; i4 < instructions.length; i4++) {
instruction = instructions[i4];
if (typeof instruction === "function") {
address = instruction(address, url);
continue;
}
parse = instruction[0];
key = instruction[1];
if (parse !== parse) {
url[key] = address;
} else if ("string" === typeof parse) {
index = parse === "@" ? address.lastIndexOf(parse) : address.indexOf(parse);
if (~index) {
if ("number" === typeof instruction[2]) {
url[key] = address.slice(0, index);
address = address.slice(index + instruction[2]);
} else {
url[key] = address.slice(index);
address = address.slice(0, index);
}
}
} else if (index = parse.exec(address)) {
url[key] = index[1];
address = address.slice(0, index.index);
}
url[key] = url[key] || (relative && instruction[3] ? location[key] || "" : "");
if (instruction[4])
url[key] = url[key].toLowerCase();
}
if (parser)
url.query = parser(url.query);
if (relative && location.slashes && url.pathname.charAt(0) !== "/" && (url.pathname !== "" || location.pathname !== "")) {
url.pathname = resolve(url.pathname, location.pathname);
}
if (url.pathname.charAt(0) !== "/" && isSpecial(url.protocol)) {
url.pathname = "/" + url.pathname;
}
if (!required(url.port, url.protocol)) {
url.host = url.hostname;
url.port = "";
}
url.username = url.password = "";
if (url.auth) {
index = url.auth.indexOf(":");
if (~index) {
url.username = url.auth.slice(0, index);
url.username = encodeURIComponent(decodeURIComponent(url.username));
url.password = url.auth.slice(index + 1);
url.password = encodeURIComponent(decodeURIComponent(url.password));
} else {
url.username = encodeURIComponent(decodeURIComponent(url.auth));
}
url.auth = url.password ? url.username + ":" + url.password : url.username;
}
url.origin = url.protocol !== "file:" && isSpecial(url.protocol) && url.host ? url.protocol + "//" + url.host : "null";
url.href = url.toString();
}
function set(part, value, fn) {
var url = this;
switch (part) {
case "query":
if ("string" === typeof value && value.length) {
value = (fn || qs.parse)(value);
}
url[part] = value;
break;
case "port":
url[part] = value;
if (!required(value, url.protocol)) {
url.host = url.hostname;
url[part] = "";
} else if (value) {
url.host = url.hostname + ":" + value;
}
break;
case "hostname":
url[part] = value;
if (url.port)
value += ":" + url.port;
url.host = value;
break;
case "host":
url[part] = value;
if (port.test(value)) {
value = value.split(":");
url.port = value.pop();
url.hostname = value.join(":");
} else {
url.hostname = value;
url.port = "";
}
break;
case "protocol":
url.protocol = value.toLowerCase();
url.slashes = !fn;
break;
case "pathname":
case "hash":
if (value) {
var char = part === "pathname" ? "/" : "#";
url[part] = value.charAt(0) !== char ? char + value : value;
} else {
url[part] = value;
}
break;
case "username":
case "password":
url[part] = encodeURIComponent(value);
break;
case "auth":
var index = value.indexOf(":");
if (~index) {
url.username = value.slice(0, index);
url.username = encodeURIComponent(decodeURIComponent(url.username));
url.password = value.slice(index + 1);
url.password = encodeURIComponent(decodeURIComponent(url.password));
} else {
url.username = encodeURIComponent(decodeURIComponent(value));
}
}
for (var i4 = 0; i4 < rules.length; i4++) {
var ins = rules[i4];
if (ins[4])
url[ins[1]] = url[ins[1]].toLowerCase();
}
url.auth = url.password ? url.username + ":" + url.password : url.username;
url.origin = url.protocol !== "file:" && isSpecial(url.protocol) && url.host ? url.protocol + "//" + url.host : "null";
url.href = url.toString();
return url;
}
function toString(stringify) {
if (!stringify || "function" !== typeof stringify)
stringify = qs.stringify;
var query, url = this, host = url.host, protocol = url.protocol;
if (protocol && protocol.charAt(protocol.length - 1) !== ":")
protocol += ":";
var result = protocol + (url.protocol && url.slashes || isSpecial(url.protocol) ? "//" : "");
if (url.username) {
result += url.username;
if (url.password)
result += ":" + url.password;
result += "@";
} else if (url.password) {
result += ":" + url.password;
result += "@";
} else if (url.protocol !== "file:" && isSpecial(url.protocol) && !host && url.pathname !== "/") {
result += "@";
}
if (host[host.length - 1] === ":" || port.test(url.hostname) && !url.port) {
host += ":";
}
result += host + url.pathname;
query = "object" === typeof url.query ? stringify(url.query) : url.query;
if (query)
result += "?" !== query.charAt(0) ? "?" + query : query;
if (url.hash)
result += url.hash;
return result;
}
Url.prototype = { set, toString };
Url.extractProtocol = extractProtocol;
Url.location = lolcation;
Url.trimLeft = trimLeft;
Url.qs = qs;
module.exports = Url;
}
});
// node_modules/ms/index.js
var require_ms = __commonJS({
"node_modules/ms/index.js"(exports, module) {
var s5 = 1e3;
var m2 = s5 * 60;
var h3 = m2 * 60;
var d3 = h3 * 24;
var w2 = d3 * 7;
var y2 = d3 * 365.25;
module.exports = function(val, options) {
options = options || {};
var type = typeof val;
if (type === "string" && val.length > 0) {
return parse(val);
} else if (type === "number" && isFinite(val)) {
return options.long ? fmtLong(val) : fmtShort(val);
}
throw new Error(
"val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
);
};
function parse(str) {
str = String(str);
if (str.length > 100) {
return;
}
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
str
);
if (!match) {
return;
}
var n6 = parseFloat(match[1]);
var type = (match[2] || "ms").toLowerCase();
switch (type) {
case "years":
case "year":
case "yrs":
case "yr":
case "y":
return n6 * y2;
case "weeks":
case "week":
case "w":
return n6 * w2;
case "days":
case "day":
case "d":
return n6 * d3;
case "hours":
case "hour":
case "hrs":
case "hr":
case "h":
return n6 * h3;
case "minutes":
case "minute":
case "mins":
case "min":
case "m":
return n6 * m2;
case "seconds":
case "second":
case "secs":
case "sec":
case "s":
return n6 * s5;
case "milliseconds":
case "millisecond":
case "msecs":
case "msec":
case "ms":
return n6;
default:
return void 0;
}
}
function fmtShort(ms) {
var msAbs = Math.abs(ms);
if (msAbs >= d3) {
return Math.round(ms / d3) + "d";
}
if (msAbs >= h3) {
return Math.round(ms / h3) + "h";
}
if (msAbs >= m2) {
return Math.round(ms / m2) + "m";
}
if (msAbs >= s5) {
return Math.round(ms / s5) + "s";
}
return ms + "ms";
}
function fmtLong(ms) {
var msAbs = Math.abs(ms);
if (msAbs >= d3) {
return plural(ms, msAbs, d3, "day");
}
if (msAbs >= h3) {
return plural(ms, msAbs, h3, "hour");
}
if (msAbs >= m2) {
return plural(ms, msAbs, m2, "minute");
}
if (msAbs >= s5) {
return plural(ms, msAbs, s5, "second");
}
return ms + " ms";
}
function plural(ms, msAbs, n6, name) {
var isPlural = msAbs >= n6 * 1.5;
return Math.round(ms / n6) + " " + name + (isPlural ? "s" : "");
}
}
});
// node_modules/debug/src/common.js
var require_common = __commonJS({
"node_modules/debug/src/common.js"(exports, module) {
"use strict";
function setup(env) {
createDebug.debug = createDebug;
createDebug.default = createDebug;
createDebug.coerce = coerce;
createDebug.disable = disable;
createDebug.enable = enable;
createDebug.enabled = enabled;
createDebug.humanize = require_ms();
Object.keys(env).forEach(function(key) {
createDebug[key] = env[key];
});
createDebug.instances = [];
createDebug.names = [];
createDebug.skips = [];
createDebug.formatters = {};
function selectColor(namespace) {
var hash = 0;
for (var i4 = 0; i4 < namespace.length; i4++) {
hash = (hash << 5) - hash + namespace.charCodeAt(i4);
hash |= 0;
}
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
}
createDebug.selectColor = selectColor;
function createDebug(namespace) {
var prevTime;
function debug() {
if (!debug.enabled) {
return;
}
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
var self2 = debug;
var curr = Number(/* @__PURE__ */ new Date());
var ms = curr - (prevTime || curr);
self2.diff = ms;
self2.prev = prevTime;
self2.curr = curr;
prevTime = curr;
args[0] = createDebug.coerce(args[0]);
if (typeof args[0] !== "string") {
args.unshift("%O");
}
var index = 0;
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
if (match === "%%") {
return match;
}
index++;
var formatter = createDebug.formatters[format];
if (typeof formatter === "function") {
var val = args[index];
match = formatter.call(self2, val);
args.splice(index, 1);
index--;
}
return match;
});
createDebug.formatArgs.call(self2, args);
var logFn = self2.log || createDebug.log;
logFn.apply(self2, args);
}
debug.namespace = namespace;
debug.enabled = createDebug.enabled(namespace);
debug.useColors = createDebug.useColors();
debug.color = selectColor(namespace);
debug.destroy = destroy;
debug.extend = extend;
if (typeof createDebug.init === "function") {
createDebug.init(debug);
}
createDebug.instances.push(debug);
return debug;
}
function destroy() {
var index = createDebug.instances.indexOf(this);
if (index !== -1) {
createDebug.instances.splice(index, 1);
return true;
}
return false;
}
function extend(namespace, delimiter) {
return createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
}
function enable(namespaces) {
createDebug.save(namespaces);
createDebug.names = [];
createDebug.skips = [];
var i4;
var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
var len = split.length;
for (i4 = 0; i4 < len; i4++) {
if (!split[i4]) {
continue;
}
namespaces = split[i4].replace(/\*/g, ".*?");
if (namespaces[0] === "-") {
createDebug.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
} else {
createDebug.names.push(new RegExp("^" + namespaces + "$"));
}
}
for (i4 = 0; i4 < createDebug.instances.length; i4++) {
var instance = createDebug.instances[i4];
instance.enabled = createDebug.enabled(instance.namespace);
}
}
function disable() {
createDebug.enable("");
}
function enabled(name) {
if (name[name.length - 1] === "*") {
return true;
}
var i4;
var len;
for (i4 = 0, len = createDebug.skips.length; i4 < len; i4++) {
if (createDebug.skips[i4].test(name)) {
return false;
}
}
for (i4 = 0, len = createDebug.names.length; i4 < len; i4++) {
if (createDebug.names[i4].test(name)) {
return true;
}
}
return false;
}
function coerce(val) {
if (val instanceof Error) {
return val.stack || val.message;
}
return val;
}
createDebug.enable(createDebug.load());
return createDebug;
}
module.exports = setup;
}
});
// node_modules/debug/src/browser.js
var require_browser = __commonJS({
"node_modules/debug/src/browser.js"(exports, module) {
"use strict";
function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function _typeof2(obj2) {
return typeof obj2;
};
} else {
_typeof = function _typeof2(obj2) {
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
};
}
return _typeof(obj);
}
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = localstorage();
exports.colors = ["#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33"];
function useColors() {
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
return true;
}
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
return false;
}
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
}
function formatArgs(args) {
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
if (!this.useColors) {
return;
}
var c3 = "color: " + this.color;
args.splice(1, 0, c3, "color: inherit");
var index = 0;
var lastC = 0;
args[0].replace(/%[a-zA-Z%]/g, function(match) {
if (match === "%%") {
return;
}
index++;
if (match === "%c") {
lastC = index;
}
});
args.splice(lastC, 0, c3);
}
function log() {
var _console;
return (typeof console === "undefined" ? "undefined" : _typeof(console)) === "object" && console.log && (_console = console).log.apply(_console, arguments);
}
function save(namespaces) {
try {
if (namespaces) {
exports.storage.setItem("debug", namespaces);
} else {
exports.storage.removeItem("debug");
}
} catch (error) {
}
}
function load() {
var r4;
try {
r4 = exports.storage.getItem("debug");
} catch (error) {
}
if (!r4 && typeof process !== "undefined" && "env" in process) {
r4 = process.env.DEBUG;
}
return r4;
}
function localstorage() {
try {
return localStorage;
} catch (error) {
}
}
module.exports = require_common()(exports);
var formatters = module.exports.formatters;
formatters.j = function(v2) {
try {
return JSON.stringify(v2);
} catch (error) {
return "[UnexpectedJSONParseError]: " + error.message;
}
};
}
});
// node_modules/sockjs-client/lib/utils/url.js
var require_url = __commonJS({
"node_modules/sockjs-client/lib/utils/url.js"(exports, module) {
"use strict";
var URL2 = require_url_parse();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:utils:url");
}
module.exports = {
getOrigin: function(url) {
if (!url) {
return null;
}
var p2 = new URL2(url);
if (p2.protocol === "file:") {
return null;
}
var port = p2.port;
if (!port) {
port = p2.protocol === "https:" ? "443" : "80";
}
return p2.protocol + "//" + p2.hostname + ":" + port;
},
isOriginEqual: function(a3, b2) {
var res = this.getOrigin(a3) === this.getOrigin(b2);
debug("same", a3, b2, res);
return res;
},
isSchemeEqual: function(a3, b2) {
return a3.split(":")[0] === b2.split(":")[0];
},
addPath: function(url, path) {
var qs = url.split("?");
return qs[0] + path + (qs[1] ? "?" + qs[1] : "");
},
addQuery: function(url, q) {
return url + (url.indexOf("?") === -1 ? "?" + q : "&" + q);
},
isLoopbackAddr: function(addr) {
return /^127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(addr) || /^\[::1\]$/.test(addr);
}
};
}
});
// node_modules/inherits/inherits_browser.js
var require_inherits_browser = __commonJS({
"node_modules/inherits/inherits_browser.js"(exports, module) {
if (typeof Object.create === "function") {
module.exports = function inherits(ctor, superCtor) {
if (superCtor) {
ctor.super_ = superCtor;
ctor.prototype = Object.create(superCtor.prototype, {
constructor: {
value: ctor,
enumerable: false,
writable: true,
configurable: true
}
});
}
};
} else {
module.exports = function inherits(ctor, superCtor) {
if (superCtor) {
ctor.super_ = superCtor;
var TempCtor = function() {
};
TempCtor.prototype = superCtor.prototype;
ctor.prototype = new TempCtor();
ctor.prototype.constructor = ctor;
}
};
}
}
});
// node_modules/sockjs-client/lib/event/eventtarget.js
var require_eventtarget = __commonJS({
"node_modules/sockjs-client/lib/event/eventtarget.js"(exports, module) {
"use strict";
function EventTarget2() {
this._listeners = {};
}
EventTarget2.prototype.addEventListener = function(eventType, listener) {
if (!(eventType in this._listeners)) {
this._listeners[eventType] = [];
}
var arr = this._listeners[eventType];
if (arr.indexOf(listener) === -1) {
arr = arr.concat([listener]);
}
this._listeners[eventType] = arr;
};
EventTarget2.prototype.removeEventListener = function(eventType, listener) {
var arr = this._listeners[eventType];
if (!arr) {
return;
}
var idx = arr.indexOf(listener);
if (idx !== -1) {
if (arr.length > 1) {
this._listeners[eventType] = arr.slice(0, idx).concat(arr.slice(idx + 1));
} else {
delete this._listeners[eventType];
}
return;
}
};
EventTarget2.prototype.dispatchEvent = function() {
var event = arguments[0];
var t4 = event.type;
var args = arguments.length === 1 ? [event] : Array.apply(null, arguments);
if (this["on" + t4]) {
this["on" + t4].apply(this, args);
}
if (t4 in this._listeners) {
var listeners = this._listeners[t4];
for (var i4 = 0; i4 < listeners.length; i4++) {
listeners[i4].apply(this, args);
}
}
};
module.exports = EventTarget2;
}
});
// node_modules/sockjs-client/lib/event/emitter.js
var require_emitter = __commonJS({
"node_modules/sockjs-client/lib/event/emitter.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var EventTarget2 = require_eventtarget();
function EventEmitter() {
EventTarget2.call(this);
}
inherits(EventEmitter, EventTarget2);
EventEmitter.prototype.removeAllListeners = function(type) {
if (type) {
delete this._listeners[type];
} else {
this._listeners = {};
}
};
EventEmitter.prototype.once = function(type, listener) {
var self2 = this, fired = false;
function g2() {
self2.removeListener(type, g2);
if (!fired) {
fired = true;
listener.apply(this, arguments);
}
}
this.on(type, g2);
};
EventEmitter.prototype.emit = function() {
var type = arguments[0];
var listeners = this._listeners[type];
if (!listeners) {
return;
}
var l5 = arguments.length;
var args = new Array(l5 - 1);
for (var ai = 1; ai < l5; ai++) {
args[ai - 1] = arguments[ai];
}
for (var i4 = 0; i4 < listeners.length; i4++) {
listeners[i4].apply(this, args);
}
};
EventEmitter.prototype.on = EventEmitter.prototype.addListener = EventTarget2.prototype.addEventListener;
EventEmitter.prototype.removeListener = EventTarget2.prototype.removeEventListener;
module.exports.EventEmitter = EventEmitter;
}
});
// node_modules/sockjs-client/lib/transport/browser/websocket.js
var require_websocket = __commonJS({
"node_modules/sockjs-client/lib/transport/browser/websocket.js"(exports, module) {
"use strict";
var Driver = window.WebSocket || window.MozWebSocket;
if (Driver) {
module.exports = function WebSocketBrowserDriver(url) {
return new Driver(url);
};
} else {
module.exports = void 0;
}
}
});
// node_modules/sockjs-client/lib/transport/websocket.js
var require_websocket2 = __commonJS({
"node_modules/sockjs-client/lib/transport/websocket.js"(exports, module) {
"use strict";
var utils = require_event();
var urlUtils = require_url();
var inherits = require_inherits_browser();
var EventEmitter = require_emitter().EventEmitter;
var WebsocketDriver = require_websocket();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:websocket");
}
function WebSocketTransport(transUrl, ignore, options) {
if (!WebSocketTransport.enabled()) {
throw new Error("Transport created when disabled");
}
EventEmitter.call(this);
debug("constructor", transUrl);
var self2 = this;
var url = urlUtils.addPath(transUrl, "/websocket");
if (url.slice(0, 5) === "https") {
url = "wss" + url.slice(5);
} else {
url = "ws" + url.slice(4);
}
this.url = url;
this.ws = new WebsocketDriver(this.url, [], options);
this.ws.onmessage = function(e7) {
debug("message event", e7.data);
self2.emit("message", e7.data);
};
this.unloadRef = utils.unloadAdd(function() {
debug("unload");
self2.ws.close();
});
this.ws.onclose = function(e7) {
debug("close event", e7.code, e7.reason);
self2.emit("close", e7.code, e7.reason);
self2._cleanup();
};
this.ws.onerror = function(e7) {
debug("error event", e7);
self2.emit("close", 1006, "WebSocket connection broken");
self2._cleanup();
};
}
inherits(WebSocketTransport, EventEmitter);
WebSocketTransport.prototype.send = function(data) {
var msg = "[" + data + "]";
debug("send", msg);
this.ws.send(msg);
};
WebSocketTransport.prototype.close = function() {
debug("close");
var ws = this.ws;
this._cleanup();
if (ws) {
ws.close();
}
};
WebSocketTransport.prototype._cleanup = function() {
debug("_cleanup");
var ws = this.ws;
if (ws) {
ws.onmessage = ws.onclose = ws.onerror = null;
}
utils.unloadDel(this.unloadRef);
this.unloadRef = this.ws = null;
this.removeAllListeners();
};
WebSocketTransport.enabled = function() {
debug("enabled");
return !!WebsocketDriver;
};
WebSocketTransport.transportName = "websocket";
WebSocketTransport.roundTrips = 2;
module.exports = WebSocketTransport;
}
});
// node_modules/sockjs-client/lib/transport/lib/buffered-sender.js
var require_buffered_sender = __commonJS({
"node_modules/sockjs-client/lib/transport/lib/buffered-sender.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var EventEmitter = require_emitter().EventEmitter;
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:buffered-sender");
}
function BufferedSender(url, sender) {
debug(url);
EventEmitter.call(this);
this.sendBuffer = [];
this.sender = sender;
this.url = url;
}
inherits(BufferedSender, EventEmitter);
BufferedSender.prototype.send = function(message) {
debug("send", message);
this.sendBuffer.push(message);
if (!this.sendStop) {
this.sendSchedule();
}
};
BufferedSender.prototype.sendScheduleWait = function() {
debug("sendScheduleWait");
var self2 = this;
var tref;
this.sendStop = function() {
debug("sendStop");
self2.sendStop = null;
clearTimeout(tref);
};
tref = setTimeout(function() {
debug("timeout");
self2.sendStop = null;
self2.sendSchedule();
}, 25);
};
BufferedSender.prototype.sendSchedule = function() {
debug("sendSchedule", this.sendBuffer.length);
var self2 = this;
if (this.sendBuffer.length > 0) {
var payload = "[" + this.sendBuffer.join(",") + "]";
this.sendStop = this.sender(this.url, payload, function(err) {
self2.sendStop = null;
if (err) {
debug("error", err);
self2.emit("close", err.code || 1006, "Sending error: " + err);
self2.close();
} else {
self2.sendScheduleWait();
}
});
this.sendBuffer = [];
}
};
BufferedSender.prototype._cleanup = function() {
debug("_cleanup");
this.removeAllListeners();
};
BufferedSender.prototype.close = function() {
debug("close");
this._cleanup();
if (this.sendStop) {
this.sendStop();
this.sendStop = null;
}
};
module.exports = BufferedSender;
}
});
// node_modules/sockjs-client/lib/transport/lib/polling.js
var require_polling = __commonJS({
"node_modules/sockjs-client/lib/transport/lib/polling.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var EventEmitter = require_emitter().EventEmitter;
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:polling");
}
function Polling(Receiver, receiveUrl, AjaxObject) {
debug(receiveUrl);
EventEmitter.call(this);
this.Receiver = Receiver;
this.receiveUrl = receiveUrl;
this.AjaxObject = AjaxObject;
this._scheduleReceiver();
}
inherits(Polling, EventEmitter);
Polling.prototype._scheduleReceiver = function() {
debug("_scheduleReceiver");
var self2 = this;
var poll = this.poll = new this.Receiver(this.receiveUrl, this.AjaxObject);
poll.on("message", function(msg) {
debug("message", msg);
self2.emit("message", msg);
});
poll.once("close", function(code, reason) {
debug("close", code, reason, self2.pollIsClosing);
self2.poll = poll = null;
if (!self2.pollIsClosing) {
if (reason === "network") {
self2._scheduleReceiver();
} else {
self2.emit("close", code || 1006, reason);
self2.removeAllListeners();
}
}
});
};
Polling.prototype.abort = function() {
debug("abort");
this.removeAllListeners();
this.pollIsClosing = true;
if (this.poll) {
this.poll.abort();
}
};
module.exports = Polling;
}
});
// node_modules/sockjs-client/lib/transport/lib/sender-receiver.js
var require_sender_receiver = __commonJS({
"node_modules/sockjs-client/lib/transport/lib/sender-receiver.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var urlUtils = require_url();
var BufferedSender = require_buffered_sender();
var Polling = require_polling();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:sender-receiver");
}
function SenderReceiver(transUrl, urlSuffix, senderFunc, Receiver, AjaxObject) {
var pollUrl = urlUtils.addPath(transUrl, urlSuffix);
debug(pollUrl);
var self2 = this;
BufferedSender.call(this, transUrl, senderFunc);
this.poll = new Polling(Receiver, pollUrl, AjaxObject);
this.poll.on("message", function(msg) {
debug("poll message", msg);
self2.emit("message", msg);
});
this.poll.once("close", function(code, reason) {
debug("poll close", code, reason);
self2.poll = null;
self2.emit("close", code, reason);
self2.close();
});
}
inherits(SenderReceiver, BufferedSender);
SenderReceiver.prototype.close = function() {
BufferedSender.prototype.close.call(this);
debug("close");
this.removeAllListeners();
if (this.poll) {
this.poll.abort();
this.poll = null;
}
};
module.exports = SenderReceiver;
}
});
// node_modules/sockjs-client/lib/transport/lib/ajax-based.js
var require_ajax_based = __commonJS({
"node_modules/sockjs-client/lib/transport/lib/ajax-based.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var urlUtils = require_url();
var SenderReceiver = require_sender_receiver();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:ajax-based");
}
function createAjaxSender(AjaxObject) {
return function(url, payload, callback) {
debug("create ajax sender", url, payload);
var opt = {};
if (typeof payload === "string") {
opt.headers = { "Content-type": "text/plain" };
}
var ajaxUrl = urlUtils.addPath(url, "/xhr_send");
var xo = new AjaxObject("POST", ajaxUrl, payload, opt);
xo.once("finish", function(status) {
debug("finish", status);
xo = null;
if (status !== 200 && status !== 204) {
return callback(new Error("http status " + status));
}
callback();
});
return function() {
debug("abort");
xo.close();
xo = null;
var err = new Error("Aborted");
err.code = 1e3;
callback(err);
};
};
}
function AjaxBasedTransport(transUrl, urlSuffix, Receiver, AjaxObject) {
SenderReceiver.call(this, transUrl, urlSuffix, createAjaxSender(AjaxObject), Receiver, AjaxObject);
}
inherits(AjaxBasedTransport, SenderReceiver);
module.exports = AjaxBasedTransport;
}
});
// node_modules/sockjs-client/lib/transport/receiver/xhr.js
var require_xhr = __commonJS({
"node_modules/sockjs-client/lib/transport/receiver/xhr.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var EventEmitter = require_emitter().EventEmitter;
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:receiver:xhr");
}
function XhrReceiver(url, AjaxObject) {
debug(url);
EventEmitter.call(this);
var self2 = this;
this.bufferPosition = 0;
this.xo = new AjaxObject("POST", url, null);
this.xo.on("chunk", this._chunkHandler.bind(this));
this.xo.once("finish", function(status, text) {
debug("finish", status, text);
self2._chunkHandler(status, text);
self2.xo = null;
var reason = status === 200 ? "network" : "permanent";
debug("close", reason);
self2.emit("close", null, reason);
self2._cleanup();
});
}
inherits(XhrReceiver, EventEmitter);
XhrReceiver.prototype._chunkHandler = function(status, text) {
debug("_chunkHandler", status);
if (status !== 200 || !text) {
return;
}
for (var idx = -1; ; this.bufferPosition += idx + 1) {
var buf = text.slice(this.bufferPosition);
idx = buf.indexOf("\n");
if (idx === -1) {
break;
}
var msg = buf.slice(0, idx);
if (msg) {
debug("message", msg);
this.emit("message", msg);
}
}
};
XhrReceiver.prototype._cleanup = function() {
debug("_cleanup");
this.removeAllListeners();
};
XhrReceiver.prototype.abort = function() {
debug("abort");
if (this.xo) {
this.xo.close();
debug("close");
this.emit("close", null, "user");
this.xo = null;
}
this._cleanup();
};
module.exports = XhrReceiver;
}
});
// node_modules/sockjs-client/lib/transport/browser/abstract-xhr.js
var require_abstract_xhr = __commonJS({
"node_modules/sockjs-client/lib/transport/browser/abstract-xhr.js"(exports, module) {
"use strict";
var EventEmitter = require_emitter().EventEmitter;
var inherits = require_inherits_browser();
var utils = require_event();
var urlUtils = require_url();
var XHR = window.XMLHttpRequest;
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:browser:xhr");
}
function AbstractXHRObject(method, url, payload, opts) {
debug(method, url);
var self2 = this;
EventEmitter.call(this);
setTimeout(function() {
self2._start(method, url, payload, opts);
}, 0);
}
inherits(AbstractXHRObject, EventEmitter);
AbstractXHRObject.prototype._start = function(method, url, payload, opts) {
var self2 = this;
try {
this.xhr = new XHR();
} catch (x2) {
}
if (!this.xhr) {
debug("no xhr");
this.emit("finish", 0, "no xhr support");
this._cleanup();
return;
}
url = urlUtils.addQuery(url, "t=" + +/* @__PURE__ */ new Date());
this.unloadRef = utils.unloadAdd(function() {
debug("unload cleanup");
self2._cleanup(true);
});
try {
this.xhr.open(method, url, true);
if (this.timeout && "timeout" in this.xhr) {
this.xhr.timeout = this.timeout;
this.xhr.ontimeout = function() {
debug("xhr timeout");
self2.emit("finish", 0, "");
self2._cleanup(false);
};
}
} catch (e7) {
debug("exception", e7);
this.emit("finish", 0, "");
this._cleanup(false);
return;
}
if ((!opts || !opts.noCredentials) && AbstractXHRObject.supportsCORS) {
debug("withCredentials");
this.xhr.withCredentials = true;
}
if (opts && opts.headers) {
for (var key in opts.headers) {
this.xhr.setRequestHeader(key, opts.headers[key]);
}
}
this.xhr.onreadystatechange = function() {
if (self2.xhr) {
var x2 = self2.xhr;
var text, status;
debug("readyState", x2.readyState);
switch (x2.readyState) {
case 3:
try {
status = x2.status;
text = x2.responseText;
} catch (e7) {
}
debug("status", status);
if (status === 1223) {
status = 204;
}
if (status === 200 && text && text.length > 0) {
debug("chunk");
self2.emit("chunk", status, text);
}
break;
case 4:
status = x2.status;
debug("status", status);
if (status === 1223) {
status = 204;
}
if (status === 12005 || status === 12029) {
status = 0;
}
debug("finish", status, x2.responseText);
self2.emit("finish", status, x2.responseText);
self2._cleanup(false);
break;
}
}
};
try {
self2.xhr.send(payload);
} catch (e7) {
self2.emit("finish", 0, "");
self2._cleanup(false);
}
};
AbstractXHRObject.prototype._cleanup = function(abort) {
debug("cleanup");
if (!this.xhr) {
return;
}
this.removeAllListeners();
utils.unloadDel(this.unloadRef);
this.xhr.onreadystatechange = function() {
};
if (this.xhr.ontimeout) {
this.xhr.ontimeout = null;
}
if (abort) {
try {
this.xhr.abort();
} catch (x2) {
}
}
this.unloadRef = this.xhr = null;
};
AbstractXHRObject.prototype.close = function() {
debug("close");
this._cleanup(true);
};
AbstractXHRObject.enabled = !!XHR;
var axo = ["Active"].concat("Object").join("X");
if (!AbstractXHRObject.enabled && axo in window) {
debug("overriding xmlhttprequest");
XHR = function() {
try {
return new window[axo]("Microsoft.XMLHTTP");
} catch (e7) {
return null;
}
};
AbstractXHRObject.enabled = !!new XHR();
}
var cors = false;
try {
cors = "withCredentials" in new XHR();
} catch (ignored) {
}
AbstractXHRObject.supportsCORS = cors;
module.exports = AbstractXHRObject;
}
});
// node_modules/sockjs-client/lib/transport/sender/xhr-cors.js
var require_xhr_cors = __commonJS({
"node_modules/sockjs-client/lib/transport/sender/xhr-cors.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var XhrDriver = require_abstract_xhr();
function XHRCorsObject(method, url, payload, opts) {
XhrDriver.call(this, method, url, payload, opts);
}
inherits(XHRCorsObject, XhrDriver);
XHRCorsObject.enabled = XhrDriver.enabled && XhrDriver.supportsCORS;
module.exports = XHRCorsObject;
}
});
// node_modules/sockjs-client/lib/transport/sender/xhr-local.js
var require_xhr_local = __commonJS({
"node_modules/sockjs-client/lib/transport/sender/xhr-local.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var XhrDriver = require_abstract_xhr();
function XHRLocalObject(method, url, payload) {
XhrDriver.call(this, method, url, payload, {
noCredentials: true
});
}
inherits(XHRLocalObject, XhrDriver);
XHRLocalObject.enabled = XhrDriver.enabled;
module.exports = XHRLocalObject;
}
});
// node_modules/sockjs-client/lib/utils/browser.js
var require_browser2 = __commonJS({
"node_modules/sockjs-client/lib/utils/browser.js"(exports, module) {
"use strict";
module.exports = {
isOpera: function() {
return window.navigator && /opera/i.test(window.navigator.userAgent);
},
isKonqueror: function() {
return window.navigator && /konqueror/i.test(window.navigator.userAgent);
},
hasDomain: function() {
if (!window.document) {
return true;
}
try {
return !!window.document.domain;
} catch (e7) {
return false;
}
}
};
}
});
// node_modules/sockjs-client/lib/transport/xhr-streaming.js
var require_xhr_streaming = __commonJS({
"node_modules/sockjs-client/lib/transport/xhr-streaming.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var AjaxBasedTransport = require_ajax_based();
var XhrReceiver = require_xhr();
var XHRCorsObject = require_xhr_cors();
var XHRLocalObject = require_xhr_local();
var browser = require_browser2();
function XhrStreamingTransport(transUrl) {
if (!XHRLocalObject.enabled && !XHRCorsObject.enabled) {
throw new Error("Transport created when disabled");
}
AjaxBasedTransport.call(this, transUrl, "/xhr_streaming", XhrReceiver, XHRCorsObject);
}
inherits(XhrStreamingTransport, AjaxBasedTransport);
XhrStreamingTransport.enabled = function(info) {
if (info.nullOrigin) {
return false;
}
if (browser.isOpera()) {
return false;
}
return XHRCorsObject.enabled;
};
XhrStreamingTransport.transportName = "xhr-streaming";
XhrStreamingTransport.roundTrips = 2;
XhrStreamingTransport.needBody = !!window.document;
module.exports = XhrStreamingTransport;
}
});
// node_modules/sockjs-client/lib/transport/sender/xdr.js
var require_xdr = __commonJS({
"node_modules/sockjs-client/lib/transport/sender/xdr.js"(exports, module) {
"use strict";
var EventEmitter = require_emitter().EventEmitter;
var inherits = require_inherits_browser();
var eventUtils = require_event();
var browser = require_browser2();
var urlUtils = require_url();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:sender:xdr");
}
function XDRObject(method, url, payload) {
debug(method, url);
var self2 = this;
EventEmitter.call(this);
setTimeout(function() {
self2._start(method, url, payload);
}, 0);
}
inherits(XDRObject, EventEmitter);
XDRObject.prototype._start = function(method, url, payload) {
debug("_start");
var self2 = this;
var xdr = new window.XDomainRequest();
url = urlUtils.addQuery(url, "t=" + +/* @__PURE__ */ new Date());
xdr.onerror = function() {
debug("onerror");
self2._error();
};
xdr.ontimeout = function() {
debug("ontimeout");
self2._error();
};
xdr.onprogress = function() {
debug("progress", xdr.responseText);
self2.emit("chunk", 200, xdr.responseText);
};
xdr.onload = function() {
debug("load");
self2.emit("finish", 200, xdr.responseText);
self2._cleanup(false);
};
this.xdr = xdr;
this.unloadRef = eventUtils.unloadAdd(function() {
self2._cleanup(true);
});
try {
this.xdr.open(method, url);
if (this.timeout) {
this.xdr.timeout = this.timeout;
}
this.xdr.send(payload);
} catch (x2) {
this._error();
}
};
XDRObject.prototype._error = function() {
this.emit("finish", 0, "");
this._cleanup(false);
};
XDRObject.prototype._cleanup = function(abort) {
debug("cleanup", abort);
if (!this.xdr) {
return;
}
this.removeAllListeners();
eventUtils.unloadDel(this.unloadRef);
this.xdr.ontimeout = this.xdr.onerror = this.xdr.onprogress = this.xdr.onload = null;
if (abort) {
try {
this.xdr.abort();
} catch (x2) {
}
}
this.unloadRef = this.xdr = null;
};
XDRObject.prototype.close = function() {
debug("close");
this._cleanup(true);
};
XDRObject.enabled = !!(window.XDomainRequest && browser.hasDomain());
module.exports = XDRObject;
}
});
// node_modules/sockjs-client/lib/transport/xdr-streaming.js
var require_xdr_streaming = __commonJS({
"node_modules/sockjs-client/lib/transport/xdr-streaming.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var AjaxBasedTransport = require_ajax_based();
var XhrReceiver = require_xhr();
var XDRObject = require_xdr();
function XdrStreamingTransport(transUrl) {
if (!XDRObject.enabled) {
throw new Error("Transport created when disabled");
}
AjaxBasedTransport.call(this, transUrl, "/xhr_streaming", XhrReceiver, XDRObject);
}
inherits(XdrStreamingTransport, AjaxBasedTransport);
XdrStreamingTransport.enabled = function(info) {
if (info.cookie_needed || info.nullOrigin) {
return false;
}
return XDRObject.enabled && info.sameScheme;
};
XdrStreamingTransport.transportName = "xdr-streaming";
XdrStreamingTransport.roundTrips = 2;
module.exports = XdrStreamingTransport;
}
});
// node_modules/sockjs-client/lib/transport/browser/eventsource.js
var require_eventsource = __commonJS({
"node_modules/sockjs-client/lib/transport/browser/eventsource.js"(exports, module) {
module.exports = window.EventSource;
}
});
// node_modules/sockjs-client/lib/transport/receiver/eventsource.js
var require_eventsource2 = __commonJS({
"node_modules/sockjs-client/lib/transport/receiver/eventsource.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var EventEmitter = require_emitter().EventEmitter;
var EventSourceDriver = require_eventsource();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:receiver:eventsource");
}
function EventSourceReceiver(url) {
debug(url);
EventEmitter.call(this);
var self2 = this;
var es = this.es = new EventSourceDriver(url);
es.onmessage = function(e7) {
debug("message", e7.data);
self2.emit("message", decodeURI(e7.data));
};
es.onerror = function(e7) {
debug("error", es.readyState, e7);
var reason = es.readyState !== 2 ? "network" : "permanent";
self2._cleanup();
self2._close(reason);
};
}
inherits(EventSourceReceiver, EventEmitter);
EventSourceReceiver.prototype.abort = function() {
debug("abort");
this._cleanup();
this._close("user");
};
EventSourceReceiver.prototype._cleanup = function() {
debug("cleanup");
var es = this.es;
if (es) {
es.onmessage = es.onerror = null;
es.close();
this.es = null;
}
};
EventSourceReceiver.prototype._close = function(reason) {
debug("close", reason);
var self2 = this;
setTimeout(function() {
self2.emit("close", null, reason);
self2.removeAllListeners();
}, 200);
};
module.exports = EventSourceReceiver;
}
});
// node_modules/sockjs-client/lib/transport/eventsource.js
var require_eventsource3 = __commonJS({
"node_modules/sockjs-client/lib/transport/eventsource.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var AjaxBasedTransport = require_ajax_based();
var EventSourceReceiver = require_eventsource2();
var XHRCorsObject = require_xhr_cors();
var EventSourceDriver = require_eventsource();
function EventSourceTransport(transUrl) {
if (!EventSourceTransport.enabled()) {
throw new Error("Transport created when disabled");
}
AjaxBasedTransport.call(this, transUrl, "/eventsource", EventSourceReceiver, XHRCorsObject);
}
inherits(EventSourceTransport, AjaxBasedTransport);
EventSourceTransport.enabled = function() {
return !!EventSourceDriver;
};
EventSourceTransport.transportName = "eventsource";
EventSourceTransport.roundTrips = 2;
module.exports = EventSourceTransport;
}
});
// node_modules/sockjs-client/lib/version.js
var require_version = __commonJS({
"node_modules/sockjs-client/lib/version.js"(exports, module) {
module.exports = "1.6.1";
}
});
// node_modules/sockjs-client/lib/utils/iframe.js
var require_iframe = __commonJS({
"node_modules/sockjs-client/lib/utils/iframe.js"(exports, module) {
"use strict";
var eventUtils = require_event();
var browser = require_browser2();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:utils:iframe");
}
module.exports = {
WPrefix: "_jp",
currentWindowId: null,
polluteGlobalNamespace: function() {
if (!(module.exports.WPrefix in window)) {
window[module.exports.WPrefix] = {};
}
},
postMessage: function(type, data) {
if (window.parent !== window) {
window.parent.postMessage(JSON.stringify({
windowId: module.exports.currentWindowId,
type,
data: data || ""
}), "*");
} else {
debug("Cannot postMessage, no parent window.", type, data);
}
},
createIframe: function(iframeUrl, errorCallback) {
var iframe = window.document.createElement("iframe");
var tref, unloadRef;
var unattach = function() {
debug("unattach");
clearTimeout(tref);
try {
iframe.onload = null;
} catch (x2) {
}
iframe.onerror = null;
};
var cleanup = function() {
debug("cleanup");
if (iframe) {
unattach();
setTimeout(function() {
if (iframe) {
iframe.parentNode.removeChild(iframe);
}
iframe = null;
}, 0);
eventUtils.unloadDel(unloadRef);
}
};
var onerror = function(err) {
debug("onerror", err);
if (iframe) {
cleanup();
errorCallback(err);
}
};
var post = function(msg, origin) {
debug("post", msg, origin);
setTimeout(function() {
try {
if (iframe && iframe.contentWindow) {
iframe.contentWindow.postMessage(msg, origin);
}
} catch (x2) {
}
}, 0);
};
iframe.src = iframeUrl;
iframe.style.display = "none";
iframe.style.position = "absolute";
iframe.onerror = function() {
onerror("onerror");
};
iframe.onload = function() {
debug("onload");
clearTimeout(tref);
tref = setTimeout(function() {
onerror("onload timeout");
}, 2e3);
};
window.document.body.appendChild(iframe);
tref = setTimeout(function() {
onerror("timeout");
}, 15e3);
unloadRef = eventUtils.unloadAdd(cleanup);
return {
post,
cleanup,
loaded: unattach
};
},
createHtmlfile: function(iframeUrl, errorCallback) {
var axo = ["Active"].concat("Object").join("X");
var doc = new window[axo]("htmlfile");
var tref, unloadRef;
var iframe;
var unattach = function() {
clearTimeout(tref);
iframe.onerror = null;
};
var cleanup = function() {
if (doc) {
unattach();
eventUtils.unloadDel(unloadRef);
iframe.parentNode.removeChild(iframe);
iframe = doc = null;
CollectGarbage();
}
};
var onerror = function(r4) {
debug("onerror", r4);
if (doc) {
cleanup();
errorCallback(r4);
}
};
var post = function(msg, origin) {
try {
setTimeout(function() {
if (iframe && iframe.contentWindow) {
iframe.contentWindow.postMessage(msg, origin);
}
}, 0);
} catch (x2) {
}
};
doc.open();
doc.write('<html><script>document.domain="' + window.document.domain + '";<\/script></html>');
doc.close();
doc.parentWindow[module.exports.WPrefix] = window[module.exports.WPrefix];
var c3 = doc.createElement("div");
doc.body.appendChild(c3);
iframe = doc.createElement("iframe");
c3.appendChild(iframe);
iframe.src = iframeUrl;
iframe.onerror = function() {
onerror("onerror");
};
tref = setTimeout(function() {
onerror("timeout");
}, 15e3);
unloadRef = eventUtils.unloadAdd(cleanup);
return {
post,
cleanup,
loaded: unattach
};
}
};
module.exports.iframeEnabled = false;
if (window.document) {
module.exports.iframeEnabled = (typeof window.postMessage === "function" || typeof window.postMessage === "object") && !browser.isKonqueror();
}
}
});
// node_modules/sockjs-client/lib/transport/iframe.js
var require_iframe2 = __commonJS({
"node_modules/sockjs-client/lib/transport/iframe.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var EventEmitter = require_emitter().EventEmitter;
var version = require_version();
var urlUtils = require_url();
var iframeUtils = require_iframe();
var eventUtils = require_event();
var random = require_random();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:transport:iframe");
}
function IframeTransport(transport, transUrl, baseUrl) {
if (!IframeTransport.enabled()) {
throw new Error("Transport created when disabled");
}
EventEmitter.call(this);
var self2 = this;
this.origin = urlUtils.getOrigin(baseUrl);
this.baseUrl = baseUrl;
this.transUrl = transUrl;
this.transport = transport;
this.windowId = random.string(8);
var iframeUrl = urlUtils.addPath(baseUrl, "/iframe.html") + "#" + this.windowId;
debug(transport, transUrl, iframeUrl);
this.iframeObj = iframeUtils.createIframe(iframeUrl, function(r4) {
debug("err callback");
self2.emit("close", 1006, "Unable to load an iframe (" + r4 + ")");
self2.close();
});
this.onmessageCallback = this._message.bind(this);
eventUtils.attachEvent("message", this.onmessageCallback);
}
inherits(IframeTransport, EventEmitter);
IframeTransport.prototype.close = function() {
debug("close");
this.removeAllListeners();
if (this.iframeObj) {
eventUtils.detachEvent("message", this.onmessageCallback);
try {
this.postMessage("c");
} catch (x2) {
}
this.iframeObj.cleanup();
this.iframeObj = null;
this.onmessageCallback = this.iframeObj = null;
}
};
IframeTransport.prototype._message = function(e7) {
debug("message", e7.data);
if (!urlUtils.isOriginEqual(e7.origin, this.origin)) {
debug("not same origin", e7.origin, this.origin);
return;
}
var iframeMessage;
try {
iframeMessage = JSON.parse(e7.data);
} catch (ignored) {
debug("bad json", e7.data);
return;
}
if (iframeMessage.windowId !== this.windowId) {
debug("mismatched window id", iframeMessage.windowId, this.windowId);
return;
}
switch (iframeMessage.type) {
case "s":
this.iframeObj.loaded();
this.postMessage("s", JSON.stringify([
version,
this.transport,
this.transUrl,
this.baseUrl
]));
break;
case "t":
this.emit("message", iframeMessage.data);
break;
case "c":
var cdata;
try {
cdata = JSON.parse(iframeMessage.data);
} catch (ignored) {
debug("bad json", iframeMessage.data);
return;
}
this.emit("close", cdata[0], cdata[1]);
this.close();
break;
}
};
IframeTransport.prototype.postMessage = function(type, data) {
debug("postMessage", type, data);
this.iframeObj.post(JSON.stringify({
windowId: this.windowId,
type,
data: data || ""
}), this.origin);
};
IframeTransport.prototype.send = function(message) {
debug("send", message);
this.postMessage("m", message);
};
IframeTransport.enabled = function() {
return iframeUtils.iframeEnabled;
};
IframeTransport.transportName = "iframe";
IframeTransport.roundTrips = 2;
module.exports = IframeTransport;
}
});
// node_modules/sockjs-client/lib/utils/object.js
var require_object = __commonJS({
"node_modules/sockjs-client/lib/utils/object.js"(exports, module) {
"use strict";
module.exports = {
isObject: function(obj) {
var type = typeof obj;
return type === "function" || type === "object" && !!obj;
},
extend: function(obj) {
if (!this.isObject(obj)) {
return obj;
}
var source, prop;
for (var i4 = 1, length = arguments.length; i4 < length; i4++) {
source = arguments[i4];
for (prop in source) {
if (Object.prototype.hasOwnProperty.call(source, prop)) {
obj[prop] = source[prop];
}
}
}
return obj;
}
};
}
});
// node_modules/sockjs-client/lib/transport/lib/iframe-wrap.js
var require_iframe_wrap = __commonJS({
"node_modules/sockjs-client/lib/transport/lib/iframe-wrap.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var IframeTransport = require_iframe2();
var objectUtils = require_object();
module.exports = function(transport) {
function IframeWrapTransport(transUrl, baseUrl) {
IframeTransport.call(this, transport.transportName, transUrl, baseUrl);
}
inherits(IframeWrapTransport, IframeTransport);
IframeWrapTransport.enabled = function(url, info) {
if (!window.document) {
return false;
}
var iframeInfo = objectUtils.extend({}, info);
iframeInfo.sameOrigin = true;
return transport.enabled(iframeInfo) && IframeTransport.enabled();
};
IframeWrapTransport.transportName = "iframe-" + transport.transportName;
IframeWrapTransport.needBody = true;
IframeWrapTransport.roundTrips = IframeTransport.roundTrips + transport.roundTrips - 1;
IframeWrapTransport.facadeTransport = transport;
return IframeWrapTransport;
};
}
});
// node_modules/sockjs-client/lib/transport/receiver/htmlfile.js
var require_htmlfile = __commonJS({
"node_modules/sockjs-client/lib/transport/receiver/htmlfile.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var iframeUtils = require_iframe();
var urlUtils = require_url();
var EventEmitter = require_emitter().EventEmitter;
var random = require_random();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:receiver:htmlfile");
}
function HtmlfileReceiver(url) {
debug(url);
EventEmitter.call(this);
var self2 = this;
iframeUtils.polluteGlobalNamespace();
this.id = "a" + random.string(6);
url = urlUtils.addQuery(url, "c=" + decodeURIComponent(iframeUtils.WPrefix + "." + this.id));
debug("using htmlfile", HtmlfileReceiver.htmlfileEnabled);
var constructFunc = HtmlfileReceiver.htmlfileEnabled ? iframeUtils.createHtmlfile : iframeUtils.createIframe;
window[iframeUtils.WPrefix][this.id] = {
start: function() {
debug("start");
self2.iframeObj.loaded();
},
message: function(data) {
debug("message", data);
self2.emit("message", data);
},
stop: function() {
debug("stop");
self2._cleanup();
self2._close("network");
}
};
this.iframeObj = constructFunc(url, function() {
debug("callback");
self2._cleanup();
self2._close("permanent");
});
}
inherits(HtmlfileReceiver, EventEmitter);
HtmlfileReceiver.prototype.abort = function() {
debug("abort");
this._cleanup();
this._close("user");
};
HtmlfileReceiver.prototype._cleanup = function() {
debug("_cleanup");
if (this.iframeObj) {
this.iframeObj.cleanup();
this.iframeObj = null;
}
delete window[iframeUtils.WPrefix][this.id];
};
HtmlfileReceiver.prototype._close = function(reason) {
debug("_close", reason);
this.emit("close", null, reason);
this.removeAllListeners();
};
HtmlfileReceiver.htmlfileEnabled = false;
var axo = ["Active"].concat("Object").join("X");
if (axo in window) {
try {
HtmlfileReceiver.htmlfileEnabled = !!new window[axo]("htmlfile");
} catch (x2) {
}
}
HtmlfileReceiver.enabled = HtmlfileReceiver.htmlfileEnabled || iframeUtils.iframeEnabled;
module.exports = HtmlfileReceiver;
}
});
// node_modules/sockjs-client/lib/transport/htmlfile.js
var require_htmlfile2 = __commonJS({
"node_modules/sockjs-client/lib/transport/htmlfile.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var HtmlfileReceiver = require_htmlfile();
var XHRLocalObject = require_xhr_local();
var AjaxBasedTransport = require_ajax_based();
function HtmlFileTransport(transUrl) {
if (!HtmlfileReceiver.enabled) {
throw new Error("Transport created when disabled");
}
AjaxBasedTransport.call(this, transUrl, "/htmlfile", HtmlfileReceiver, XHRLocalObject);
}
inherits(HtmlFileTransport, AjaxBasedTransport);
HtmlFileTransport.enabled = function(info) {
return HtmlfileReceiver.enabled && info.sameOrigin;
};
HtmlFileTransport.transportName = "htmlfile";
HtmlFileTransport.roundTrips = 2;
module.exports = HtmlFileTransport;
}
});
// node_modules/sockjs-client/lib/transport/xhr-polling.js
var require_xhr_polling = __commonJS({
"node_modules/sockjs-client/lib/transport/xhr-polling.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var AjaxBasedTransport = require_ajax_based();
var XhrReceiver = require_xhr();
var XHRCorsObject = require_xhr_cors();
var XHRLocalObject = require_xhr_local();
function XhrPollingTransport(transUrl) {
if (!XHRLocalObject.enabled && !XHRCorsObject.enabled) {
throw new Error("Transport created when disabled");
}
AjaxBasedTransport.call(this, transUrl, "/xhr", XhrReceiver, XHRCorsObject);
}
inherits(XhrPollingTransport, AjaxBasedTransport);
XhrPollingTransport.enabled = function(info) {
if (info.nullOrigin) {
return false;
}
if (XHRLocalObject.enabled && info.sameOrigin) {
return true;
}
return XHRCorsObject.enabled;
};
XhrPollingTransport.transportName = "xhr-polling";
XhrPollingTransport.roundTrips = 2;
module.exports = XhrPollingTransport;
}
});
// node_modules/sockjs-client/lib/transport/xdr-polling.js
var require_xdr_polling = __commonJS({
"node_modules/sockjs-client/lib/transport/xdr-polling.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var AjaxBasedTransport = require_ajax_based();
var XdrStreamingTransport = require_xdr_streaming();
var XhrReceiver = require_xhr();
var XDRObject = require_xdr();
function XdrPollingTransport(transUrl) {
if (!XDRObject.enabled) {
throw new Error("Transport created when disabled");
}
AjaxBasedTransport.call(this, transUrl, "/xhr", XhrReceiver, XDRObject);
}
inherits(XdrPollingTransport, AjaxBasedTransport);
XdrPollingTransport.enabled = XdrStreamingTransport.enabled;
XdrPollingTransport.transportName = "xdr-polling";
XdrPollingTransport.roundTrips = 2;
module.exports = XdrPollingTransport;
}
});
// node_modules/sockjs-client/lib/transport/receiver/jsonp.js
var require_jsonp = __commonJS({
"node_modules/sockjs-client/lib/transport/receiver/jsonp.js"(exports, module) {
"use strict";
var utils = require_iframe();
var random = require_random();
var browser = require_browser2();
var urlUtils = require_url();
var inherits = require_inherits_browser();
var EventEmitter = require_emitter().EventEmitter;
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:receiver:jsonp");
}
function JsonpReceiver(url) {
debug(url);
var self2 = this;
EventEmitter.call(this);
utils.polluteGlobalNamespace();
this.id = "a" + random.string(6);
var urlWithId = urlUtils.addQuery(url, "c=" + encodeURIComponent(utils.WPrefix + "." + this.id));
window[utils.WPrefix][this.id] = this._callback.bind(this);
this._createScript(urlWithId);
this.timeoutId = setTimeout(function() {
debug("timeout");
self2._abort(new Error("JSONP script loaded abnormally (timeout)"));
}, JsonpReceiver.timeout);
}
inherits(JsonpReceiver, EventEmitter);
JsonpReceiver.prototype.abort = function() {
debug("abort");
if (window[utils.WPrefix][this.id]) {
var err = new Error("JSONP user aborted read");
err.code = 1e3;
this._abort(err);
}
};
JsonpReceiver.timeout = 35e3;
JsonpReceiver.scriptErrorTimeout = 1e3;
JsonpReceiver.prototype._callback = function(data) {
debug("_callback", data);
this._cleanup();
if (this.aborting) {
return;
}
if (data) {
debug("message", data);
this.emit("message", data);
}
this.emit("close", null, "network");
this.removeAllListeners();
};
JsonpReceiver.prototype._abort = function(err) {
debug("_abort", err);
this._cleanup();
this.aborting = true;
this.emit("close", err.code, err.message);
this.removeAllListeners();
};
JsonpReceiver.prototype._cleanup = function() {
debug("_cleanup");
clearTimeout(this.timeoutId);
if (this.script2) {
this.script2.parentNode.removeChild(this.script2);
this.script2 = null;
}
if (this.script) {
var script = this.script;
script.parentNode.removeChild(script);
script.onreadystatechange = script.onerror = script.onload = script.onclick = null;
this.script = null;
}
delete window[utils.WPrefix][this.id];
};
JsonpReceiver.prototype._scriptError = function() {
debug("_scriptError");
var self2 = this;
if (this.errorTimer) {
return;
}
this.errorTimer = setTimeout(function() {
if (!self2.loadedOkay) {
self2._abort(new Error("JSONP script loaded abnormally (onerror)"));
}
}, JsonpReceiver.scriptErrorTimeout);
};
JsonpReceiver.prototype._createScript = function(url) {
debug("_createScript", url);
var self2 = this;
var script = this.script = window.document.createElement("script");
var script2;
script.id = "a" + random.string(8);
script.src = url;
script.type = "text/javascript";
script.charset = "UTF-8";
script.onerror = this._scriptError.bind(this);
script.onload = function() {
debug("onload");
self2._abort(new Error("JSONP script loaded abnormally (onload)"));
};
script.onreadystatechange = function() {
debug("onreadystatechange", script.readyState);
if (/loaded|closed/.test(script.readyState)) {
if (script && script.htmlFor && script.onclick) {
self2.loadedOkay = true;
try {
script.onclick();
} catch (x2) {
}
}
if (script) {
self2._abort(new Error("JSONP script loaded abnormally (onreadystatechange)"));
}
}
};
if (typeof script.async === "undefined" && window.document.attachEvent) {
if (!browser.isOpera()) {
try {
script.htmlFor = script.id;
script.event = "onclick";
} catch (x2) {
}
script.async = true;
} else {
script2 = this.script2 = window.document.createElement("script");
script2.text = "try{var a = document.getElementById('" + script.id + "'); if(a)a.onerror();}catch(x){};";
script.async = script2.async = false;
}
}
if (typeof script.async !== "undefined") {
script.async = true;
}
var head = window.document.getElementsByTagName("head")[0];
head.insertBefore(script, head.firstChild);
if (script2) {
head.insertBefore(script2, head.firstChild);
}
};
module.exports = JsonpReceiver;
}
});
// node_modules/sockjs-client/lib/transport/sender/jsonp.js
var require_jsonp2 = __commonJS({
"node_modules/sockjs-client/lib/transport/sender/jsonp.js"(exports, module) {
"use strict";
var random = require_random();
var urlUtils = require_url();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:sender:jsonp");
}
var form;
var area;
function createIframe(id) {
debug("createIframe", id);
try {
return window.document.createElement('<iframe name="' + id + '">');
} catch (x2) {
var iframe = window.document.createElement("iframe");
iframe.name = id;
return iframe;
}
}
function createForm() {
debug("createForm");
form = window.document.createElement("form");
form.style.display = "none";
form.style.position = "absolute";
form.method = "POST";
form.enctype = "application/x-www-form-urlencoded";
form.acceptCharset = "UTF-8";
area = window.document.createElement("textarea");
area.name = "d";
form.appendChild(area);
window.document.body.appendChild(form);
}
module.exports = function(url, payload, callback) {
debug(url, payload);
if (!form) {
createForm();
}
var id = "a" + random.string(8);
form.target = id;
form.action = urlUtils.addQuery(urlUtils.addPath(url, "/jsonp_send"), "i=" + id);
var iframe = createIframe(id);
iframe.id = id;
iframe.style.display = "none";
form.appendChild(iframe);
try {
area.value = payload;
} catch (e7) {
}
form.submit();
var completed = function(err) {
debug("completed", id, err);
if (!iframe.onerror) {
return;
}
iframe.onreadystatechange = iframe.onerror = iframe.onload = null;
setTimeout(function() {
debug("cleaning up", id);
iframe.parentNode.removeChild(iframe);
iframe = null;
}, 500);
area.value = "";
callback(err);
};
iframe.onerror = function() {
debug("onerror", id);
completed();
};
iframe.onload = function() {
debug("onload", id);
completed();
};
iframe.onreadystatechange = function(e7) {
debug("onreadystatechange", id, iframe.readyState, e7);
if (iframe.readyState === "complete") {
completed();
}
};
return function() {
debug("aborted", id);
completed(new Error("Aborted"));
};
};
}
});
// node_modules/sockjs-client/lib/transport/jsonp-polling.js
var require_jsonp_polling = __commonJS({
"node_modules/sockjs-client/lib/transport/jsonp-polling.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var SenderReceiver = require_sender_receiver();
var JsonpReceiver = require_jsonp();
var jsonpSender = require_jsonp2();
function JsonPTransport(transUrl) {
if (!JsonPTransport.enabled()) {
throw new Error("Transport created when disabled");
}
SenderReceiver.call(this, transUrl, "/jsonp", jsonpSender, JsonpReceiver);
}
inherits(JsonPTransport, SenderReceiver);
JsonPTransport.enabled = function() {
return !!window.document;
};
JsonPTransport.transportName = "jsonp-polling";
JsonPTransport.roundTrips = 1;
JsonPTransport.needBody = true;
module.exports = JsonPTransport;
}
});
// node_modules/sockjs-client/lib/transport-list.js
var require_transport_list = __commonJS({
"node_modules/sockjs-client/lib/transport-list.js"(exports, module) {
"use strict";
module.exports = [
// streaming transports
require_websocket2(),
require_xhr_streaming(),
require_xdr_streaming(),
require_eventsource3(),
require_iframe_wrap()(require_eventsource3()),
require_htmlfile2(),
require_iframe_wrap()(require_htmlfile2()),
require_xhr_polling(),
require_xdr_polling(),
require_iframe_wrap()(require_xhr_polling()),
require_jsonp_polling()
];
}
});
// node_modules/sockjs-client/lib/shims.js
var require_shims = __commonJS({
"node_modules/sockjs-client/lib/shims.js"() {
"use strict";
var ArrayPrototype = Array.prototype;
var ObjectPrototype = Object.prototype;
var FunctionPrototype = Function.prototype;
var StringPrototype = String.prototype;
var array_slice = ArrayPrototype.slice;
var _toString = ObjectPrototype.toString;
var isFunction = function(val) {
return ObjectPrototype.toString.call(val) === "[object Function]";
};
var isArray = function isArray2(obj) {
return _toString.call(obj) === "[object Array]";
};
var isString = function isString2(obj) {
return _toString.call(obj) === "[object String]";
};
var supportsDescriptors = Object.defineProperty && function() {
try {
Object.defineProperty({}, "x", {});
return true;
} catch (e7) {
return false;
}
}();
var defineProperty;
if (supportsDescriptors) {
defineProperty = function(object, name, method, forceAssign) {
if (!forceAssign && name in object) {
return;
}
Object.defineProperty(object, name, {
configurable: true,
enumerable: false,
writable: true,
value: method
});
};
} else {
defineProperty = function(object, name, method, forceAssign) {
if (!forceAssign && name in object) {
return;
}
object[name] = method;
};
}
var defineProperties = function(object, map, forceAssign) {
for (var name in map) {
if (ObjectPrototype.hasOwnProperty.call(map, name)) {
defineProperty(object, name, map[name], forceAssign);
}
}
};
var toObject = function(o6) {
if (o6 == null) {
throw new TypeError("can't convert " + o6 + " to object");
}
return Object(o6);
};
function toInteger(num) {
var n6 = +num;
if (n6 !== n6) {
n6 = 0;
} else if (n6 !== 0 && n6 !== 1 / 0 && n6 !== -(1 / 0)) {
n6 = (n6 > 0 || -1) * Math.floor(Math.abs(n6));
}
return n6;
}
function ToUint32(x2) {
return x2 >>> 0;
}
function Empty() {
}
defineProperties(FunctionPrototype, {
bind: function bind(that) {
var target = this;
if (!isFunction(target)) {
throw new TypeError("Function.prototype.bind called on incompatible " + target);
}
var args = array_slice.call(arguments, 1);
var binder = function() {
if (this instanceof bound) {
var result = target.apply(
this,
args.concat(array_slice.call(arguments))
);
if (Object(result) === result) {
return result;
}
return this;
} else {
return target.apply(
that,
args.concat(array_slice.call(arguments))
);
}
};
var boundLength = Math.max(0, target.length - args.length);
var boundArgs = [];
for (var i4 = 0; i4 < boundLength; i4++) {
boundArgs.push("$" + i4);
}
var bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this, arguments); }")(binder);
if (target.prototype) {
Empty.prototype = target.prototype;
bound.prototype = new Empty();
Empty.prototype = null;
}
return bound;
}
});
defineProperties(Array, { isArray });
var boxedString = Object("a");
var splitString = boxedString[0] !== "a" || !(0 in boxedString);
var properlyBoxesContext = function properlyBoxed(method) {
var properlyBoxesNonStrict = true;
var properlyBoxesStrict = true;
if (method) {
method.call("foo", function(_2, __, context) {
if (typeof context !== "object") {
properlyBoxesNonStrict = false;
}
});
method.call([1], function() {
"use strict";
properlyBoxesStrict = typeof this === "string";
}, "x");
}
return !!method && properlyBoxesNonStrict && properlyBoxesStrict;
};
defineProperties(ArrayPrototype, {
forEach: function forEach(fun) {
var object = toObject(this), self2 = splitString && isString(this) ? this.split("") : object, thisp = arguments[1], i4 = -1, length = self2.length >>> 0;
if (!isFunction(fun)) {
throw new TypeError();
}
while (++i4 < length) {
if (i4 in self2) {
fun.call(thisp, self2[i4], i4, object);
}
}
}
}, !properlyBoxesContext(ArrayPrototype.forEach));
var hasFirefox2IndexOfBug = Array.prototype.indexOf && [0, 1].indexOf(1, 2) !== -1;
defineProperties(ArrayPrototype, {
indexOf: function indexOf(sought) {
var self2 = splitString && isString(this) ? this.split("") : toObject(this), length = self2.length >>> 0;
if (!length) {
return -1;
}
var i4 = 0;
if (arguments.length > 1) {
i4 = toInteger(arguments[1]);
}
i4 = i4 >= 0 ? i4 : Math.max(0, length + i4);
for (; i4 < length; i4++) {
if (i4 in self2 && self2[i4] === sought) {
return i4;
}
}
return -1;
}
}, hasFirefox2IndexOfBug);
var string_split = StringPrototype.split;
if ("ab".split(/(?:ab)*/).length !== 2 || ".".split(/(.?)(.?)/).length !== 4 || "tesst".split(/(s)*/)[1] === "t" || "test".split(/(?:)/, -1).length !== 4 || "".split(/.?/).length || ".".split(/()()/).length > 1) {
(function() {
var compliantExecNpcg = /()??/.exec("")[1] === void 0;
StringPrototype.split = function(separator, limit) {
var string = this;
if (separator === void 0 && limit === 0) {
return [];
}
if (_toString.call(separator) !== "[object RegExp]") {
return string_split.call(this, separator, limit);
}
var output = [], flags = (separator.ignoreCase ? "i" : "") + (separator.multiline ? "m" : "") + (separator.extended ? "x" : "") + // Proposed for ES6
(separator.sticky ? "y" : ""), lastLastIndex = 0, separator2, match, lastIndex, lastLength;
separator = new RegExp(separator.source, flags + "g");
string += "";
if (!compliantExecNpcg) {
separator2 = new RegExp("^" + separator.source + "$(?!\\s)", flags);
}
limit = limit === void 0 ? -1 >>> 0 : (
// Math.pow(2, 32) - 1
ToUint32(limit)
);
while (match = separator.exec(string)) {
lastIndex = match.index + match[0].length;
if (lastIndex > lastLastIndex) {
output.push(string.slice(lastLastIndex, match.index));
if (!compliantExecNpcg && match.length > 1) {
match[0].replace(separator2, function() {
for (var i4 = 1; i4 < arguments.length - 2; i4++) {
if (arguments[i4] === void 0) {
match[i4] = void 0;
}
}
});
}
if (match.length > 1 && match.index < string.length) {
ArrayPrototype.push.apply(output, match.slice(1));
}
lastLength = match[0].length;
lastLastIndex = lastIndex;
if (output.length >= limit) {
break;
}
}
if (separator.lastIndex === match.index) {
separator.lastIndex++;
}
}
if (lastLastIndex === string.length) {
if (lastLength || !separator.test("")) {
output.push("");
}
} else {
output.push(string.slice(lastLastIndex));
}
return output.length > limit ? output.slice(0, limit) : output;
};
})();
} else if ("0".split(void 0, 0).length) {
StringPrototype.split = function split(separator, limit) {
if (separator === void 0 && limit === 0) {
return [];
}
return string_split.call(this, separator, limit);
};
}
var string_substr = StringPrototype.substr;
var hasNegativeSubstrBug = "".substr && "0b".substr(-1) !== "b";
defineProperties(StringPrototype, {
substr: function substr(start, length) {
return string_substr.call(
this,
start < 0 ? (start = this.length + start) < 0 ? 0 : start : start,
length
);
}
}, hasNegativeSubstrBug);
}
});
// node_modules/sockjs-client/lib/utils/escape.js
var require_escape = __commonJS({
"node_modules/sockjs-client/lib/utils/escape.js"(exports, module) {
"use strict";
var extraEscapable = /[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g;
var extraLookup;
var unrollLookup = function(escapable) {
var i4;
var unrolled = {};
var c3 = [];
for (i4 = 0; i4 < 65536; i4++) {
c3.push(String.fromCharCode(i4));
}
escapable.lastIndex = 0;
c3.join("").replace(escapable, function(a3) {
unrolled[a3] = "\\u" + ("0000" + a3.charCodeAt(0).toString(16)).slice(-4);
return "";
});
escapable.lastIndex = 0;
return unrolled;
};
module.exports = {
quote: function(string) {
var quoted = JSON.stringify(string);
extraEscapable.lastIndex = 0;
if (!extraEscapable.test(quoted)) {
return quoted;
}
if (!extraLookup) {
extraLookup = unrollLookup(extraEscapable);
}
return quoted.replace(extraEscapable, function(a3) {
return extraLookup[a3];
});
}
};
}
});
// node_modules/sockjs-client/lib/utils/transport.js
var require_transport = __commonJS({
"node_modules/sockjs-client/lib/utils/transport.js"(exports, module) {
"use strict";
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:utils:transport");
}
module.exports = function(availableTransports) {
return {
filterToEnabled: function(transportsWhitelist, info) {
var transports = {
main: [],
facade: []
};
if (!transportsWhitelist) {
transportsWhitelist = [];
} else if (typeof transportsWhitelist === "string") {
transportsWhitelist = [transportsWhitelist];
}
availableTransports.forEach(function(trans) {
if (!trans) {
return;
}
if (trans.transportName === "websocket" && info.websocket === false) {
debug("disabled from server", "websocket");
return;
}
if (transportsWhitelist.length && transportsWhitelist.indexOf(trans.transportName) === -1) {
debug("not in whitelist", trans.transportName);
return;
}
if (trans.enabled(info)) {
debug("enabled", trans.transportName);
transports.main.push(trans);
if (trans.facadeTransport) {
transports.facade.push(trans.facadeTransport);
}
} else {
debug("disabled", trans.transportName);
}
});
return transports;
}
};
};
}
});
// node_modules/sockjs-client/lib/utils/log.js
var require_log = __commonJS({
"node_modules/sockjs-client/lib/utils/log.js"(exports, module) {
"use strict";
var logObject = {};
["log", "debug", "warn"].forEach(function(level) {
var levelExists;
try {
levelExists = window.console && window.console[level] && window.console[level].apply;
} catch (e7) {
}
logObject[level] = levelExists ? function() {
return window.console[level].apply(window.console, arguments);
} : level === "log" ? function() {
} : logObject.log;
});
module.exports = logObject;
}
});
// node_modules/sockjs-client/lib/event/event.js
var require_event2 = __commonJS({
"node_modules/sockjs-client/lib/event/event.js"(exports, module) {
"use strict";
function Event(eventType) {
this.type = eventType;
}
Event.prototype.initEvent = function(eventType, canBubble, cancelable) {
this.type = eventType;
this.bubbles = canBubble;
this.cancelable = cancelable;
this.timeStamp = +/* @__PURE__ */ new Date();
return this;
};
Event.prototype.stopPropagation = function() {
};
Event.prototype.preventDefault = function() {
};
Event.CAPTURING_PHASE = 1;
Event.AT_TARGET = 2;
Event.BUBBLING_PHASE = 3;
module.exports = Event;
}
});
// node_modules/sockjs-client/lib/location.js
var require_location = __commonJS({
"node_modules/sockjs-client/lib/location.js"(exports, module) {
"use strict";
module.exports = window.location || {
origin: "http://localhost:80",
protocol: "http:",
host: "localhost",
port: 80,
href: "http://localhost/",
hash: ""
};
}
});
// node_modules/sockjs-client/lib/event/close.js
var require_close = __commonJS({
"node_modules/sockjs-client/lib/event/close.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var Event = require_event2();
function CloseEvent() {
Event.call(this);
this.initEvent("close", false, false);
this.wasClean = false;
this.code = 0;
this.reason = "";
}
inherits(CloseEvent, Event);
module.exports = CloseEvent;
}
});
// node_modules/sockjs-client/lib/event/trans-message.js
var require_trans_message = __commonJS({
"node_modules/sockjs-client/lib/event/trans-message.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var Event = require_event2();
function TransportMessageEvent(data) {
Event.call(this);
this.initEvent("message", false, false);
this.data = data;
}
inherits(TransportMessageEvent, Event);
module.exports = TransportMessageEvent;
}
});
// node_modules/sockjs-client/lib/transport/sender/xhr-fake.js
var require_xhr_fake = __commonJS({
"node_modules/sockjs-client/lib/transport/sender/xhr-fake.js"(exports, module) {
"use strict";
var EventEmitter = require_emitter().EventEmitter;
var inherits = require_inherits_browser();
function XHRFake() {
var self2 = this;
EventEmitter.call(this);
this.to = setTimeout(function() {
self2.emit("finish", 200, "{}");
}, XHRFake.timeout);
}
inherits(XHRFake, EventEmitter);
XHRFake.prototype.close = function() {
clearTimeout(this.to);
};
XHRFake.timeout = 2e3;
module.exports = XHRFake;
}
});
// node_modules/sockjs-client/lib/info-ajax.js
var require_info_ajax = __commonJS({
"node_modules/sockjs-client/lib/info-ajax.js"(exports, module) {
"use strict";
var EventEmitter = require_emitter().EventEmitter;
var inherits = require_inherits_browser();
var objectUtils = require_object();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:info-ajax");
}
function InfoAjax(url, AjaxObject) {
EventEmitter.call(this);
var self2 = this;
var t0 = +/* @__PURE__ */ new Date();
this.xo = new AjaxObject("GET", url);
this.xo.once("finish", function(status, text) {
var info, rtt;
if (status === 200) {
rtt = +/* @__PURE__ */ new Date() - t0;
if (text) {
try {
info = JSON.parse(text);
} catch (e7) {
debug("bad json", text);
}
}
if (!objectUtils.isObject(info)) {
info = {};
}
}
self2.emit("finish", info, rtt);
self2.removeAllListeners();
});
}
inherits(InfoAjax, EventEmitter);
InfoAjax.prototype.close = function() {
this.removeAllListeners();
this.xo.close();
};
module.exports = InfoAjax;
}
});
// node_modules/sockjs-client/lib/info-iframe-receiver.js
var require_info_iframe_receiver = __commonJS({
"node_modules/sockjs-client/lib/info-iframe-receiver.js"(exports, module) {
"use strict";
var inherits = require_inherits_browser();
var EventEmitter = require_emitter().EventEmitter;
var XHRLocalObject = require_xhr_local();
var InfoAjax = require_info_ajax();
function InfoReceiverIframe(transUrl) {
var self2 = this;
EventEmitter.call(this);
this.ir = new InfoAjax(transUrl, XHRLocalObject);
this.ir.once("finish", function(info, rtt) {
self2.ir = null;
self2.emit("message", JSON.stringify([info, rtt]));
});
}
inherits(InfoReceiverIframe, EventEmitter);
InfoReceiverIframe.transportName = "iframe-info-receiver";
InfoReceiverIframe.prototype.close = function() {
if (this.ir) {
this.ir.close();
this.ir = null;
}
this.removeAllListeners();
};
module.exports = InfoReceiverIframe;
}
});
// node_modules/sockjs-client/lib/info-iframe.js
var require_info_iframe = __commonJS({
"node_modules/sockjs-client/lib/info-iframe.js"(exports, module) {
"use strict";
var EventEmitter = require_emitter().EventEmitter;
var inherits = require_inherits_browser();
var utils = require_event();
var IframeTransport = require_iframe2();
var InfoReceiverIframe = require_info_iframe_receiver();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:info-iframe");
}
function InfoIframe(baseUrl, url) {
var self2 = this;
EventEmitter.call(this);
var go = function() {
var ifr = self2.ifr = new IframeTransport(InfoReceiverIframe.transportName, url, baseUrl);
ifr.once("message", function(msg) {
if (msg) {
var d3;
try {
d3 = JSON.parse(msg);
} catch (e7) {
debug("bad json", msg);
self2.emit("finish");
self2.close();
return;
}
var info = d3[0], rtt = d3[1];
self2.emit("finish", info, rtt);
}
self2.close();
});
ifr.once("close", function() {
self2.emit("finish");
self2.close();
});
};
if (!window.document.body) {
utils.attachEvent("load", go);
} else {
go();
}
}
inherits(InfoIframe, EventEmitter);
InfoIframe.enabled = function() {
return IframeTransport.enabled();
};
InfoIframe.prototype.close = function() {
if (this.ifr) {
this.ifr.close();
}
this.removeAllListeners();
this.ifr = null;
};
module.exports = InfoIframe;
}
});
// node_modules/sockjs-client/lib/info-receiver.js
var require_info_receiver = __commonJS({
"node_modules/sockjs-client/lib/info-receiver.js"(exports, module) {
"use strict";
var EventEmitter = require_emitter().EventEmitter;
var inherits = require_inherits_browser();
var urlUtils = require_url();
var XDR = require_xdr();
var XHRCors = require_xhr_cors();
var XHRLocal = require_xhr_local();
var XHRFake = require_xhr_fake();
var InfoIframe = require_info_iframe();
var InfoAjax = require_info_ajax();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:info-receiver");
}
function InfoReceiver(baseUrl, urlInfo) {
debug(baseUrl);
var self2 = this;
EventEmitter.call(this);
setTimeout(function() {
self2.doXhr(baseUrl, urlInfo);
}, 0);
}
inherits(InfoReceiver, EventEmitter);
InfoReceiver._getReceiver = function(baseUrl, url, urlInfo) {
if (urlInfo.sameOrigin) {
return new InfoAjax(url, XHRLocal);
}
if (XHRCors.enabled) {
return new InfoAjax(url, XHRCors);
}
if (XDR.enabled && urlInfo.sameScheme) {
return new InfoAjax(url, XDR);
}
if (InfoIframe.enabled()) {
return new InfoIframe(baseUrl, url);
}
return new InfoAjax(url, XHRFake);
};
InfoReceiver.prototype.doXhr = function(baseUrl, urlInfo) {
var self2 = this, url = urlUtils.addPath(baseUrl, "/info");
debug("doXhr", url);
this.xo = InfoReceiver._getReceiver(baseUrl, url, urlInfo);
this.timeoutRef = setTimeout(function() {
debug("timeout");
self2._cleanup(false);
self2.emit("finish");
}, InfoReceiver.timeout);
this.xo.once("finish", function(info, rtt) {
debug("finish", info, rtt);
self2._cleanup(true);
self2.emit("finish", info, rtt);
});
};
InfoReceiver.prototype._cleanup = function(wasClean) {
debug("_cleanup");
clearTimeout(this.timeoutRef);
this.timeoutRef = null;
if (!wasClean && this.xo) {
this.xo.close();
}
this.xo = null;
};
InfoReceiver.prototype.close = function() {
debug("close");
this.removeAllListeners();
this._cleanup(false);
};
InfoReceiver.timeout = 8e3;
module.exports = InfoReceiver;
}
});
// node_modules/sockjs-client/lib/facade.js
var require_facade = __commonJS({
"node_modules/sockjs-client/lib/facade.js"(exports, module) {
"use strict";
var iframeUtils = require_iframe();
function FacadeJS(transport) {
this._transport = transport;
transport.on("message", this._transportMessage.bind(this));
transport.on("close", this._transportClose.bind(this));
}
FacadeJS.prototype._transportClose = function(code, reason) {
iframeUtils.postMessage("c", JSON.stringify([code, reason]));
};
FacadeJS.prototype._transportMessage = function(frame) {
iframeUtils.postMessage("t", frame);
};
FacadeJS.prototype._send = function(data) {
this._transport.send(data);
};
FacadeJS.prototype._close = function() {
this._transport.close();
this._transport.removeAllListeners();
};
module.exports = FacadeJS;
}
});
// node_modules/sockjs-client/lib/iframe-bootstrap.js
var require_iframe_bootstrap = __commonJS({
"node_modules/sockjs-client/lib/iframe-bootstrap.js"(exports, module) {
"use strict";
var urlUtils = require_url();
var eventUtils = require_event();
var FacadeJS = require_facade();
var InfoIframeReceiver = require_info_iframe_receiver();
var iframeUtils = require_iframe();
var loc = require_location();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:iframe-bootstrap");
}
module.exports = function(SockJS2, availableTransports) {
var transportMap = {};
availableTransports.forEach(function(at) {
if (at.facadeTransport) {
transportMap[at.facadeTransport.transportName] = at.facadeTransport;
}
});
transportMap[InfoIframeReceiver.transportName] = InfoIframeReceiver;
var parentOrigin;
SockJS2.bootstrap_iframe = function() {
var facade;
iframeUtils.currentWindowId = loc.hash.slice(1);
var onMessage = function(e7) {
if (e7.source !== parent) {
return;
}
if (typeof parentOrigin === "undefined") {
parentOrigin = e7.origin;
}
if (e7.origin !== parentOrigin) {
return;
}
var iframeMessage;
try {
iframeMessage = JSON.parse(e7.data);
} catch (ignored) {
debug("bad json", e7.data);
return;
}
if (iframeMessage.windowId !== iframeUtils.currentWindowId) {
return;
}
switch (iframeMessage.type) {
case "s":
var p2;
try {
p2 = JSON.parse(iframeMessage.data);
} catch (ignored) {
debug("bad json", iframeMessage.data);
break;
}
var version = p2[0];
var transport = p2[1];
var transUrl = p2[2];
var baseUrl = p2[3];
debug(version, transport, transUrl, baseUrl);
if (version !== SockJS2.version) {
throw new Error('Incompatible SockJS! Main site uses: "' + version + '", the iframe: "' + SockJS2.version + '".');
}
if (!urlUtils.isOriginEqual(transUrl, loc.href) || !urlUtils.isOriginEqual(baseUrl, loc.href)) {
throw new Error("Can't connect to different domain from within an iframe. (" + loc.href + ", " + transUrl + ", " + baseUrl + ")");
}
facade = new FacadeJS(new transportMap[transport](transUrl, baseUrl));
break;
case "m":
facade._send(iframeMessage.data);
break;
case "c":
if (facade) {
facade._close();
}
facade = null;
break;
}
};
eventUtils.attachEvent("message", onMessage);
iframeUtils.postMessage("s");
};
};
}
});
// node_modules/sockjs-client/lib/main.js
var require_main = __commonJS({
"node_modules/sockjs-client/lib/main.js"(exports, module) {
"use strict";
require_shims();
var URL2 = require_url_parse();
var inherits = require_inherits_browser();
var random = require_random();
var escape = require_escape();
var urlUtils = require_url();
var eventUtils = require_event();
var transport = require_transport();
var objectUtils = require_object();
var browser = require_browser2();
var log = require_log();
var Event = require_event2();
var EventTarget2 = require_eventtarget();
var loc = require_location();
var CloseEvent = require_close();
var TransportMessageEvent = require_trans_message();
var InfoReceiver = require_info_receiver();
var debug = function() {
};
if (true) {
debug = require_browser()("sockjs-client:main");
}
var transports;
function SockJS2(url, protocols, options) {
if (!(this instanceof SockJS2)) {
return new SockJS2(url, protocols, options);
}
if (arguments.length < 1) {
throw new TypeError("Failed to construct 'SockJS: 1 argument required, but only 0 present");
}
EventTarget2.call(this);
this.readyState = SockJS2.CONNECTING;
this.extensions = "";
this.protocol = "";
options = options || {};
if (options.protocols_whitelist) {
log.warn("'protocols_whitelist' is DEPRECATED. Use 'transports' instead.");
}
this._transportsWhitelist = options.transports;
this._transportOptions = options.transportOptions || {};
this._timeout = options.timeout || 0;
var sessionId = options.sessionId || 8;
if (typeof sessionId === "function") {
this._generateSessionId = sessionId;
} else if (typeof sessionId === "number") {
this._generateSessionId = function() {
return random.string(sessionId);
};
} else {
throw new TypeError("If sessionId is used in the options, it needs to be a number or a function.");
}
this._server = options.server || random.numberString(1e3);
var parsedUrl = new URL2(url);
if (!parsedUrl.host || !parsedUrl.protocol) {
throw new SyntaxError("The URL '" + url + "' is invalid");
} else if (parsedUrl.hash) {
throw new SyntaxError("The URL must not contain a fragment");
} else if (parsedUrl.protocol !== "http:" && parsedUrl.protocol !== "https:") {
throw new SyntaxError("The URL's scheme must be either 'http:' or 'https:'. '" + parsedUrl.protocol + "' is not allowed.");
}
var secure = parsedUrl.protocol === "https:";
if (loc.protocol === "https:" && !secure) {
if (!urlUtils.isLoopbackAddr(parsedUrl.hostname)) {
throw new Error("SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS");
}
}
if (!protocols) {
protocols = [];
} else if (!Array.isArray(protocols)) {
protocols = [protocols];
}
var sortedProtocols = protocols.sort();
sortedProtocols.forEach(function(proto, i4) {
if (!proto) {
throw new SyntaxError("The protocols entry '" + proto + "' is invalid.");
}
if (i4 < sortedProtocols.length - 1 && proto === sortedProtocols[i4 + 1]) {
throw new SyntaxError("The protocols entry '" + proto + "' is duplicated.");
}
});
var o6 = urlUtils.getOrigin(loc.href);
this._origin = o6 ? o6.toLowerCase() : null;
parsedUrl.set("pathname", parsedUrl.pathname.replace(/\/+$/, ""));
this.url = parsedUrl.href;
debug("using url", this.url);
this._urlInfo = {
nullOrigin: !browser.hasDomain(),
sameOrigin: urlUtils.isOriginEqual(this.url, loc.href),
sameScheme: urlUtils.isSchemeEqual(this.url, loc.href)
};
this._ir = new InfoReceiver(this.url, this._urlInfo);
this._ir.once("finish", this._receiveInfo.bind(this));
}
inherits(SockJS2, EventTarget2);
function userSetCode(code) {
return code === 1e3 || code >= 3e3 && code <= 4999;
}
SockJS2.prototype.close = function(code, reason) {
if (code && !userSetCode(code)) {
throw new Error("InvalidAccessError: Invalid code");
}
if (reason && reason.length > 123) {
throw new SyntaxError("reason argument has an invalid length");
}
if (this.readyState === SockJS2.CLOSING || this.readyState === SockJS2.CLOSED) {
return;
}
var wasClean = true;
this._close(code || 1e3, reason || "Normal closure", wasClean);
};
SockJS2.prototype.send = function(data) {
if (typeof data !== "string") {
data = "" + data;
}
if (this.readyState === SockJS2.CONNECTING) {
throw new Error("InvalidStateError: The connection has not been established yet");
}
if (this.readyState !== SockJS2.OPEN) {
return;
}
this._transport.send(escape.quote(data));
};
SockJS2.version = require_version();
SockJS2.CONNECTING = 0;
SockJS2.OPEN = 1;
SockJS2.CLOSING = 2;
SockJS2.CLOSED = 3;
SockJS2.prototype._receiveInfo = function(info, rtt) {
debug("_receiveInfo", rtt);
this._ir = null;
if (!info) {
this._close(1002, "Cannot connect to server");
return;
}
this._rto = this.countRTO(rtt);
this._transUrl = info.base_url ? info.base_url : this.url;
info = objectUtils.extend(info, this._urlInfo);
debug("info", info);
var enabledTransports = transports.filterToEnabled(this._transportsWhitelist, info);
this._transports = enabledTransports.main;
debug(this._transports.length + " enabled transports");
this._connect();
};
SockJS2.prototype._connect = function() {
for (var Transport = this._transports.shift(); Transport; Transport = this._transports.shift()) {
debug("attempt", Transport.transportName);
if (Transport.needBody) {
if (!window.document.body || typeof window.document.readyState !== "undefined" && window.document.readyState !== "complete" && window.document.readyState !== "interactive") {
debug("waiting for body");
this._transports.unshift(Transport);
eventUtils.attachEvent("load", this._connect.bind(this));
return;
}
}
var timeoutMs = Math.max(this._timeout, this._rto * Transport.roundTrips || 5e3);
this._transportTimeoutId = setTimeout(this._transportTimeout.bind(this), timeoutMs);
debug("using timeout", timeoutMs);
var transportUrl = urlUtils.addPath(this._transUrl, "/" + this._server + "/" + this._generateSessionId());
var options = this._transportOptions[Transport.transportName];
debug("transport url", transportUrl);
var transportObj = new Transport(transportUrl, this._transUrl, options);
transportObj.on("message", this._transportMessage.bind(this));
transportObj.once("close", this._transportClose.bind(this));
transportObj.transportName = Transport.transportName;
this._transport = transportObj;
return;
}
this._close(2e3, "All transports failed", false);
};
SockJS2.prototype._transportTimeout = function() {
debug("_transportTimeout");
if (this.readyState === SockJS2.CONNECTING) {
if (this._transport) {
this._transport.close();
}
this._transportClose(2007, "Transport timed out");
}
};
SockJS2.prototype._transportMessage = function(msg) {
debug("_transportMessage", msg);
var self2 = this, type = msg.slice(0, 1), content = msg.slice(1), payload;
switch (type) {
case "o":
this._open();
return;
case "h":
this.dispatchEvent(new Event("heartbeat"));
debug("heartbeat", this.transport);
return;
}
if (content) {
try {
payload = JSON.parse(content);
} catch (e7) {
debug("bad json", content);
}
}
if (typeof payload === "undefined") {
debug("empty payload", content);
return;
}
switch (type) {
case "a":
if (Array.isArray(payload)) {
payload.forEach(function(p2) {
debug("message", self2.transport, p2);
self2.dispatchEvent(new TransportMessageEvent(p2));
});
}
break;
case "m":
debug("message", this.transport, payload);
this.dispatchEvent(new TransportMessageEvent(payload));
break;
case "c":
if (Array.isArray(payload) && payload.length === 2) {
this._close(payload[0], payload[1], true);
}
break;
}
};
SockJS2.prototype._transportClose = function(code, reason) {
debug("_transportClose", this.transport, code, reason);
if (this._transport) {
this._transport.removeAllListeners();
this._transport = null;
this.transport = null;
}
if (!userSetCode(code) && code !== 2e3 && this.readyState === SockJS2.CONNECTING) {
this._connect();
return;
}
this._close(code, reason);
};
SockJS2.prototype._open = function() {
debug("_open", this._transport && this._transport.transportName, this.readyState);
if (this.readyState === SockJS2.CONNECTING) {
if (this._transportTimeoutId) {
clearTimeout(this._transportTimeoutId);
this._transportTimeoutId = null;
}
this.readyState = SockJS2.OPEN;
this.transport = this._transport.transportName;
this.dispatchEvent(new Event("open"));
debug("connected", this.transport);
} else {
this._close(1006, "Server lost session");
}
};
SockJS2.prototype._close = function(code, reason, wasClean) {
debug("_close", this.transport, code, reason, wasClean, this.readyState);
var forceFail = false;
if (this._ir) {
forceFail = true;
this._ir.close();
this._ir = null;
}
if (this._transport) {
this._transport.close();
this._transport = null;
this.transport = null;
}
if (this.readyState === SockJS2.CLOSED) {
throw new Error("InvalidStateError: SockJS has already been closed");
}
this.readyState = SockJS2.CLOSING;
setTimeout(function() {
this.readyState = SockJS2.CLOSED;
if (forceFail) {
this.dispatchEvent(new Event("error"));
}
var e7 = new CloseEvent("close");
e7.wasClean = wasClean || false;
e7.code = code || 1e3;
e7.reason = reason;
this.dispatchEvent(e7);
this.onmessage = this.onclose = this.onerror = null;
debug("disconnected");
}.bind(this), 0);
};
SockJS2.prototype.countRTO = function(rtt) {
if (rtt > 100) {
return 4 * rtt;
}
return 300 + rtt;
};
module.exports = function(availableTransports) {
transports = transport(availableTransports);
require_iframe_bootstrap()(SockJS2, availableTransports);
return SockJS2;
};
}
});
// node_modules/sockjs-client/lib/entry.js
var require_entry = __commonJS({
"node_modules/sockjs-client/lib/entry.js"(exports, module) {
"use strict";
var transportList = require_transport_list();
module.exports = require_main()(transportList);
if ("_sockjs_onload" in window) {
setTimeout(window._sockjs_onload, 1);
}
}
});
// pkg/sdk/client/src/index.ts
var src_exports = {};
__export(src_exports, {
Client: () => Client2,
Frame: () => Frame,
Menu: () => Menu2
});
// pkg/sdk/client/src/polyfill.ts
var import_actual = __toESM(require_actual());
// node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js
(function() {
"use strict";
(function() {
if (void 0 === window.Reflect || void 0 === window.customElements || window.customElements.polyfillWrapFlushCallback)
return;
const a3 = HTMLElement;
window.HTMLElement = { HTMLElement: function HTMLElement2() {
return Reflect.construct(a3, [], this.constructor);
} }.HTMLElement, HTMLElement.prototype = a3.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, a3);
})();
})();
// node_modules/lit/polyfill-support.js
!function(i4) {
"function" == typeof define && define.amd ? define(i4) : i4();
}(function() {
"use strict";
var i4, n6, o6 = "__scoped";
null !== (i4 = globalThis.reactiveElementPolyfillSupport) && void 0 !== i4 || (globalThis.reactiveElementPolyfillSupport = function(i5) {
var n7 = i5.ReactiveElement;
if (void 0 !== window.ShadyCSS && (!window.ShadyCSS.nativeShadow || window.ShadyCSS.ApplyShim)) {
var t5 = n7.prototype;
window.ShadyDOM && window.ShadyDOM.inUse && true === window.ShadyDOM.noPatch && window.ShadyDOM.patchElementProto(t5);
var d4 = t5.createRenderRoot;
t5.createRenderRoot = function() {
var i6, n8, t6, w4 = this.localName;
if (window.ShadyCSS.nativeShadow)
return d4.call(this);
if (!this.constructor.hasOwnProperty(o6)) {
this.constructor[o6] = true;
var v3 = this.constructor.elementStyles.map(function(i7) {
return i7 instanceof CSSStyleSheet ? Array.from(i7.cssRules).reduce(function(i8, n9) {
return i8 + n9.cssText;
}, "") : i7.cssText;
});
null === (n8 = null === (i6 = window.ShadyCSS) || void 0 === i6 ? void 0 : i6.ScopingShim) || void 0 === n8 || n8.prepareAdoptedCssText(v3, w4), void 0 === this.constructor._$AJ && window.ShadyCSS.prepareTemplateStyles(document.createElement("template"), w4);
}
return null !== (t6 = this.shadowRoot) && void 0 !== t6 ? t6 : this.attachShadow(this.constructor.shadowRootOptions);
};
var w3 = t5.connectedCallback;
t5.connectedCallback = function() {
w3.call(this), this.hasUpdated && window.ShadyCSS.styleElement(this);
};
var v2 = t5._$AE;
t5._$AE = function(i6) {
this.hasUpdated || window.ShadyCSS.styleElement(this), v2.call(this, i6);
};
}
});
var t4, d3 = /* @__PURE__ */ new Set(), w2 = /* @__PURE__ */ new Map();
null !== (n6 = globalThis.litHtmlPolyfillSupport) && void 0 !== n6 || (globalThis.litHtmlPolyfillSupport = function(i5, n7) {
if (void 0 !== window.ShadyCSS && (!window.ShadyCSS.nativeShadow || window.ShadyCSS.ApplyShim)) {
var o7 = function(i6) {
return void 0 !== i6 && !d3.has(i6);
}, t5 = function(i6) {
var n8 = w2.get(i6);
return void 0 === n8 && w2.set(i6, n8 = []), n8;
}, v2 = /* @__PURE__ */ new Map(), l5 = i5.createElement;
i5.createElement = function(n8, d4) {
var w3 = l5.call(i5, n8, d4), v3 = null == d4 ? void 0 : d4.scope;
if (void 0 !== v3 && (window.ShadyCSS.nativeShadow || window.ShadyCSS.prepareTemplateDom(w3, v3), o7(v3))) {
var r5 = t5(v3), u3 = w3.content.querySelectorAll("style");
r5.push.apply(r5, Array.from(u3).map(function(i6) {
var n9;
return null === (n9 = i6.parentNode) || void 0 === n9 || n9.removeChild(i6), i6.textContent;
}));
}
return w3;
};
var r4 = document.createDocumentFragment(), u2 = document.createComment(""), s5 = n7.prototype, e7 = s5._$AI;
s5._$AI = function(i6, n8) {
var v3, l6;
void 0 === n8 && (n8 = this);
var s6 = this._$AA.parentNode, a3 = null === (v3 = this.options) || void 0 === v3 ? void 0 : v3.scope;
if (s6 instanceof ShadowRoot && o7(a3)) {
var h3 = this._$AA, f2 = this._$AB;
r4.appendChild(u2), this._$AA = u2, this._$AB = null, e7.call(this, i6, n8);
var c3 = (null == i6 ? void 0 : i6._$litType$) ? this._$AH._$AD.el : document.createElement("template");
if (function(i7, n9) {
var o8, v4 = t5(i7), l7 = 0 !== v4.length;
l7 && ((o8 = document.createElement("style")).textContent = v4.join("\n"), n9.content.appendChild(o8)), d3.add(i7), w2.delete(i7), window.ShadyCSS.prepareTemplateStyles(n9, i7), l7 && window.ShadyCSS.nativeShadow && null !== (o8 = n9.content.querySelector("style")) && n9.content.appendChild(o8);
}(a3, c3), r4.removeChild(u2), null === (l6 = window.ShadyCSS) || void 0 === l6 ? void 0 : l6.nativeShadow) {
var y2 = c3.content.querySelector("style");
null !== y2 && r4.appendChild(y2.cloneNode(true));
}
s6.insertBefore(r4, f2), this._$AA = h3, this._$AB = f2;
} else
e7.call(this, i6, n8);
}, s5._$AC = function(n8) {
var o8, t6 = null === (o8 = this.options) || void 0 === o8 ? void 0 : o8.scope, d4 = v2.get(t6);
void 0 === d4 && v2.set(t6, d4 = /* @__PURE__ */ new Map());
var w3 = d4.get(n8.strings);
return void 0 === w3 && d4.set(n8.strings, w3 = new i5(n8, this.options)), w3;
};
}
}), null !== (t4 = globalThis.litElementPolyfillSupport) && void 0 !== t4 || (globalThis.litElementPolyfillSupport = function(i5) {
var n7 = i5.LitElement;
if (void 0 !== window.ShadyCSS && (!window.ShadyCSS.nativeShadow || window.ShadyCSS.ApplyShim)) {
n7._$AJ = true;
var o7 = n7.prototype, t5 = o7.createRenderRoot;
o7.createRenderRoot = function() {
return this.renderOptions.scope = this.localName, t5.call(this);
};
}
});
});
// node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js
(function() {
"use strict";
var polyfillsLoaded = false;
var whenLoadedFns = [];
var allowUpgrades = false;
var flushFn;
function fireEvent() {
window.WebComponents.ready = true;
document.dispatchEvent(
new CustomEvent("WebComponentsReady", { bubbles: true })
);
}
function batchCustomElements() {
if (window.customElements && customElements.polyfillWrapFlushCallback) {
customElements.polyfillWrapFlushCallback(function(flushCallback) {
flushFn = flushCallback;
if (allowUpgrades) {
flushFn();
}
});
}
}
function asyncReady() {
batchCustomElements();
ready();
}
function ready() {
if (window.HTMLTemplateElement && HTMLTemplateElement.bootstrap) {
HTMLTemplateElement.bootstrap(window.document);
}
polyfillsLoaded = true;
runWhenLoadedFns().then(fireEvent);
}
function runWhenLoadedFns() {
allowUpgrades = false;
var fnsMap = whenLoadedFns.map(function(fn) {
return fn instanceof Function ? fn() : fn;
});
whenLoadedFns = [];
return Promise.all(fnsMap).then(function() {
allowUpgrades = true;
flushFn && flushFn();
}).catch(function(err) {
console.error(err);
});
}
window.WebComponents = window.WebComponents || {};
window.WebComponents.ready = window.WebComponents.ready || false;
window.WebComponents.waitFor = window.WebComponents.waitFor || function(waitFn) {
if (!waitFn) {
return;
}
whenLoadedFns.push(waitFn);
if (polyfillsLoaded) {
runWhenLoadedFns();
}
};
window.WebComponents._batchCustomElements = batchCustomElements;
var name = "webcomponents-loader.js";
var polyfills = [];
if (!("attachShadow" in Element.prototype && "getRootNode" in Element.prototype) || window.ShadyDOM && window.ShadyDOM.force) {
polyfills.push("sd");
}
if (!window.customElements || window.customElements.forcePolyfill) {
polyfills.push("ce");
}
var needsTemplate = function() {
var t4 = document.createElement("template");
if (!("content" in t4)) {
return true;
}
if (!(t4.content.cloneNode() instanceof DocumentFragment)) {
return true;
}
var t22 = document.createElement("template");
t22.content.appendChild(document.createElement("div"));
t4.content.appendChild(t22);
var clone = t4.cloneNode(true);
return clone.content.childNodes.length === 0 || clone.content.firstChild.content.childNodes.length === 0;
}();
if (!window.Promise || !Array.from || !window.URL || !window.Symbol || needsTemplate) {
polyfills = ["sd-ce-pf"];
}
if (polyfills.length) {
var policy = function() {
var identity = function(x2) {
return x2;
};
var policyOptions = {
createHTML: identity,
createScript: identity,
createScriptURL: identity
};
var policy2 = window.trustedTypes && window.trustedTypes.createPolicy("webcomponents-loader", policyOptions);
return policy2 || policyOptions;
}();
var url;
var polyfillFile = "bundles/webcomponents-" + polyfills.join("-") + ".js";
if (window.WebComponents.root) {
url = window.WebComponents.root + polyfillFile;
if (window.trustedTypes && window.trustedTypes.isScriptURL(window.WebComponents.root)) {
url = policy.createScriptURL(url);
}
} else {
var script = document.querySelector('script[src*="' + name + '"]');
url = policy.createScriptURL(script.src.replace(name, polyfillFile));
}
var newScript = document.createElement("script");
newScript.src = url;
if (document.readyState === "loading") {
newScript.setAttribute(
"onload",
policy.createScript("window.WebComponents._batchCustomElements()")
);
document.write(policy.createHTML(newScript.outerHTML));
document.addEventListener("DOMContentLoaded", ready);
} else {
newScript.addEventListener("load", function() {
asyncReady();
});
newScript.addEventListener("error", function() {
throw new Error("Could not load polyfill bundle" + url);
});
document.head.appendChild(newScript);
}
} else {
if (document.readyState === "complete") {
polyfillsLoaded = true;
fireEvent();
} else {
window.addEventListener("load", ready);
window.addEventListener("DOMContentLoaded", function() {
window.removeEventListener("load", ready);
ready();
});
}
}
})();
// pkg/sdk/client/src/event-target.ts
var EventTarget = class {
constructor() {
this.listeners = {};
}
addEventListener(type, callback) {
if (!(type in this.listeners)) {
this.listeners[type] = [];
}
this.listeners[type].push(callback);
}
removeEventListener(type, callback) {
if (!(type in this.listeners)) {
return;
}
const stack = this.listeners[type];
for (var i4 = 0, l5 = stack.length; i4 < l5; i4++) {
if (stack[i4] === callback) {
stack.splice(i4, 1);
return;
}
}
}
dispatchEvent(event) {
if (!(event.type in this.listeners)) {
return true;
}
const stack = this.listeners[event.type].slice();
for (let i4 = 0, l5 = stack.length; i4 < l5; i4++) {
stack[i4].call(this, event);
if (event.cancelBubble)
return;
}
return !event.defaultPrevented;
}
};
// pkg/sdk/client/src/message.ts
var TypeMessage = "message";
var Message = class {
constructor(type, payload) {
this._type = type;
this._payload = payload;
}
getType() {
return this._type;
}
getPayload() {
return this._payload;
}
toJSON() {
return {
t: this._type,
p: this._payload
};
}
};
function messageFrom(raw) {
return new Message(raw.t, raw.p);
}
// pkg/sdk/client/src/rpc-error.ts
var RPCError = class extends Error {
constructor(code, message, data) {
super(message);
this.code = code;
this.data = data;
if (Error.captureStackTrace)
Error.captureStackTrace(this, RPCError);
}
};
// pkg/sdk/client/src/client.ts
var import_sockjs_client = __toESM(require_entry());
var EventTypeMessage = "message";
var EdgeAuth = "edge-auth";
var EdgeAuthTokenRequest = "edge_auth_token_request";
var EdgeAuthTokenResponse = "edge_auth_token_reponse";
var Client = class extends EventTarget {
constructor(autoReconnect = true) {
super();
this._conn = null;
this._onConnectionClose = this._onConnectionClose.bind(this);
this._onConnectionMessage = this._onConnectionMessage.bind(this);
this._handleRPCResponse = this._handleRPCResponse.bind(this);
this._handleEdgeAuthTokenRequest = this._handleEdgeAuthTokenRequest.bind(this);
this._rpcID = 0;
this._pendingRPC = {};
this._queue = [];
this._reconnectionDelay = 250;
this._autoReconnect = autoReconnect;
this.debug = false;
this.connect = this.connect.bind(this);
this.disconnect = this.disconnect.bind(this);
this.rpc = this.rpc.bind(this);
this.send = this.send.bind(this);
this.upload = this.upload.bind(this);
this.addEventListener(EventTypeMessage, this._handleRPCResponse);
window.addEventListener("message", this._handleEdgeAuthTokenRequest);
}
connect(token = "") {
let getToken;
if (token) {
getToken = Promise.resolve(token);
} else {
getToken = this._retrieveToken();
}
return getToken.then((token2) => this._connect(token2));
}
disconnect() {
this._cleanupConnection();
}
_connect(token) {
return new Promise((resolve, reject) => {
const url = `//${document.location.host}/edge/sock?${EdgeAuth}=${token}`;
this._log("opening connection to", url);
const conn = new import_sockjs_client.default(url);
const onOpen = () => {
this._log("client connected");
resetHandlers();
conn.onclose = this._onConnectionClose;
conn.onmessage = this._onConnectionMessage;
this._conn = conn;
this._sendQueued();
setTimeout(() => {
this._dispatchConnect();
}, 0);
return resolve(this);
};
const onError = (evt) => {
resetHandlers();
this._scheduleReconnection();
return reject(evt);
};
const resetHandlers = () => {
conn.removeEventListener("open", onOpen);
conn.removeEventListener("close", onError);
conn.removeEventListener("error", onError);
};
conn.addEventListener("open", onOpen);
conn.addEventListener("error", onError);
conn.addEventListener("close", onError);
});
}
_retrieveToken() {
let token = this._getAuthCookieToken();
if (token) {
return Promise.resolve(token);
}
return this._getParentFrameToken();
;
}
_getAuthCookieToken() {
const cookie = document.cookie.split("; ").find((row) => row.startsWith(EdgeAuth));
let token = "";
if (cookie) {
token = cookie.split("=")[1];
}
return token;
}
_getParentFrameToken(timeout = 5e3) {
if (!window.parent || window.parent === window) {
return Promise.resolve("");
}
return new Promise((resolve, reject) => {
let timedOut = false;
const timeoutId = setTimeout(() => {
timedOut = true;
reject(new Error("Edge auth token request timed out !"));
}, timeout);
const listener = (evt) => {
var _a;
const message2 = evt.data;
if (!message2 || !message2.type || !message2.data) {
return;
}
if (message2.type !== EdgeAuthTokenResponse) {
return;
}
window.removeEventListener("message", listener);
clearTimeout(timeoutId);
if (timedOut)
return;
if (!message2.data) {
reject("Unexpected auth token request response !");
return;
}
resolve(((_a = message2.data) == null ? void 0 : _a.token) || "");
};
window.addEventListener("message", listener);
const message = { type: EdgeAuthTokenRequest };
window.parent.postMessage(message, "*");
});
}
_handleEdgeAuthTokenRequest(evt) {
const message = evt.data;
if (!message || !message.type || message.type !== EdgeAuthTokenRequest) {
return;
}
if (!evt.source) {
return;
}
const token = this._getAuthCookieToken();
evt.source.postMessage({ type: EdgeAuthTokenResponse, data: { token } }, evt.origin);
}
_onConnectionMessage(evt) {
const rawMessage = JSON.parse(evt.data);
const message = messageFrom(rawMessage);
const event = new CustomEvent(message.getType(), {
cancelable: true,
detail: message.getPayload()
});
this.dispatchEvent(event);
}
_handleRPCResponse(evt) {
const { jsonrpc, id, error, result } = evt.detail;
if (jsonrpc !== "2.0" || id === void 0)
return;
if (!evt.detail.hasOwnProperty("error") && !evt.detail.hasOwnProperty("result"))
return;
evt.stopImmediatePropagation();
const pending = this._pendingRPC[id];
if (!pending)
return;
delete this._pendingRPC[id];
if (error) {
pending.reject(new RPCError(error.code, error.message, error.data));
return;
}
pending.resolve(result);
}
_onConnectionClose(evt) {
this._log("client disconnected");
this._dispatchDisconnect();
this._cleanupConnection();
this._scheduleReconnection();
}
_dispatchDisconnect() {
const event = new CustomEvent("disconnect");
this.dispatchEvent(event);
}
_dispatchConnect() {
const event = new CustomEvent("connect");
this.dispatchEvent(event);
}
_scheduleReconnection() {
if (!this._autoReconnect)
return;
this._reconnectionDelay = this._reconnectionDelay * 2 + Math.random();
this._log("client will try to reconnect in %dms", this._reconnectionDelay);
setTimeout(this.connect.bind(this), this._reconnectionDelay);
}
_cleanupConnection() {
if (!this._conn)
return;
this._conn.onopen = null;
this._conn.onerror = null;
this._conn.onclose = null;
this._conn.onmessage = null;
this._conn.close();
this._conn = null;
}
_send(message) {
if (!this._conn)
return false;
this._log("sending message", message);
this._conn.send(JSON.stringify(message));
return true;
}
_sendQueued() {
this._log("sending queued messages", this._queue.length);
let msg = this._queue.shift();
while (msg) {
const sent = this._send(msg);
if (!sent)
return;
msg = this._queue.shift();
}
}
_log(...args) {
if (!this.debug)
return;
console.log(...args);
}
_sendOrQueue(msg) {
if (this.isConnected()) {
this._sendQueued();
this._send(msg);
} else {
this._log("queuing message", msg);
this._queue.push(msg);
}
}
send(data) {
const msg = new Message(TypeMessage, data);
this._sendOrQueue(msg);
}
rpc(method, params) {
return new Promise((resolve, reject) => {
const id = this._rpcID++;
const rpc = new Message(TypeMessage, {
jsonrpc: "2.0",
id,
method,
params
});
this._sendOrQueue(rpc);
this._pendingRPC[id.toString()] = { resolve, reject };
});
}
isConnected() {
return this._conn !== null;
}
upload(blob, metadata) {
return new Promise((resolve, reject) => {
const formData = new FormData();
formData.set("file", blob);
if (metadata) {
try {
formData.set("metadata", JSON.stringify(metadata));
} catch (err) {
return reject(err);
}
}
const xhr = new XMLHttpRequest();
const result = {
onProgress: null,
abort: () => xhr.abort(),
result: () => {
return new Promise((resolve2, reject2) => {
xhr.onload = () => {
let data;
try {
data = JSON.parse(xhr.responseText);
} catch (err) {
reject2(err);
return;
}
resolve2(data);
};
xhr.onerror = reject2;
xhr.onabort = reject2;
});
}
};
xhr.upload.onprogress = (evt) => {
if (typeof result.onProgress !== "function")
return;
result.onProgress(evt.loaded, evt.total);
};
xhr.onabort = reject;
xhr.onerror = reject;
xhr.open("POST", `/edge/api/v1/upload`);
xhr.send(formData);
resolve(result);
});
}
blobUrl(bucket, blobId) {
return `/edge/api/v1/download/${bucket}/${blobId}`;
}
externalUrl(url) {
return `/edge/api/v1/fetch?url=${encodeURIComponent(url)}`;
}
};
// node_modules/@lit/reactive-element/css-tag.js
var t = window;
var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
var s = Symbol();
var n = /* @__PURE__ */ new WeakMap();
var o = class {
constructor(t4, e7, n6) {
if (this._$cssResult$ = true, n6 !== s)
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = t4, this.t = e7;
}
get styleSheet() {
let t4 = this.o;
const s5 = this.t;
if (e && void 0 === t4) {
const e7 = void 0 !== s5 && 1 === s5.length;
e7 && (t4 = n.get(s5)), void 0 === t4 && ((this.o = t4 = new CSSStyleSheet()).replaceSync(this.cssText), e7 && n.set(s5, t4));
}
return t4;
}
toString() {
return this.cssText;
}
};
var r = (t4) => new o("string" == typeof t4 ? t4 : t4 + "", void 0, s);
var i = (t4, ...e7) => {
const n6 = 1 === t4.length ? t4[0] : e7.reduce((e8, s5, n7) => e8 + ((t5) => {
if (true === t5._$cssResult$)
return t5.cssText;
if ("number" == typeof t5)
return t5;
throw Error("Value passed to 'css' function must be a 'css' function result: " + t5 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
})(s5) + t4[n7 + 1], t4[0]);
return new o(n6, t4, s);
};
var S = (s5, n6) => {
e ? s5.adoptedStyleSheets = n6.map((t4) => t4 instanceof CSSStyleSheet ? t4 : t4.styleSheet) : n6.forEach((e7) => {
const n7 = document.createElement("style"), o6 = t.litNonce;
void 0 !== o6 && n7.setAttribute("nonce", o6), n7.textContent = e7.cssText, s5.appendChild(n7);
});
};
var c = e ? (t4) => t4 : (t4) => t4 instanceof CSSStyleSheet ? ((t5) => {
let e7 = "";
for (const s5 of t5.cssRules)
e7 += s5.cssText;
return r(e7);
})(t4) : t4;
// node_modules/@lit/reactive-element/reactive-element.js
var s2;
var e2 = window;
var r2 = e2.trustedTypes;
var h = r2 ? r2.emptyScript : "";
var o2 = e2.reactiveElementPolyfillSupport;
var n2 = { toAttribute(t4, i4) {
switch (i4) {
case Boolean:
t4 = t4 ? h : null;
break;
case Object:
case Array:
t4 = null == t4 ? t4 : JSON.stringify(t4);
}
return t4;
}, fromAttribute(t4, i4) {
let s5 = t4;
switch (i4) {
case Boolean:
s5 = null !== t4;
break;
case Number:
s5 = null === t4 ? null : Number(t4);
break;
case Object:
case Array:
try {
s5 = JSON.parse(t4);
} catch (t5) {
s5 = null;
}
}
return s5;
} };
var a = (t4, i4) => i4 !== t4 && (i4 == i4 || t4 == t4);
var l = { attribute: true, type: String, converter: n2, reflect: false, hasChanged: a };
var d = class extends HTMLElement {
constructor() {
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this.u();
}
static addInitializer(t4) {
var i4;
this.finalize(), (null !== (i4 = this.h) && void 0 !== i4 ? i4 : this.h = []).push(t4);
}
static get observedAttributes() {
this.finalize();
const t4 = [];
return this.elementProperties.forEach((i4, s5) => {
const e7 = this._$Ep(s5, i4);
void 0 !== e7 && (this._$Ev.set(e7, s5), t4.push(e7));
}), t4;
}
static createProperty(t4, i4 = l) {
if (i4.state && (i4.attribute = false), this.finalize(), this.elementProperties.set(t4, i4), !i4.noAccessor && !this.prototype.hasOwnProperty(t4)) {
const s5 = "symbol" == typeof t4 ? Symbol() : "__" + t4, e7 = this.getPropertyDescriptor(t4, s5, i4);
void 0 !== e7 && Object.defineProperty(this.prototype, t4, e7);
}
}
static getPropertyDescriptor(t4, i4, s5) {
return { get() {
return this[i4];
}, set(e7) {
const r4 = this[t4];
this[i4] = e7, this.requestUpdate(t4, r4, s5);
}, configurable: true, enumerable: true };
}
static getPropertyOptions(t4) {
return this.elementProperties.get(t4) || l;
}
static finalize() {
if (this.hasOwnProperty("finalized"))
return false;
this.finalized = true;
const t4 = Object.getPrototypeOf(this);
if (t4.finalize(), void 0 !== t4.h && (this.h = [...t4.h]), this.elementProperties = new Map(t4.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
const t5 = this.properties, i4 = [...Object.getOwnPropertyNames(t5), ...Object.getOwnPropertySymbols(t5)];
for (const s5 of i4)
this.createProperty(s5, t5[s5]);
}
return this.elementStyles = this.finalizeStyles(this.styles), true;
}
static finalizeStyles(i4) {
const s5 = [];
if (Array.isArray(i4)) {
const e7 = new Set(i4.flat(1 / 0).reverse());
for (const i5 of e7)
s5.unshift(c(i5));
} else
void 0 !== i4 && s5.push(c(i4));
return s5;
}
static _$Ep(t4, i4) {
const s5 = i4.attribute;
return false === s5 ? void 0 : "string" == typeof s5 ? s5 : "string" == typeof t4 ? t4.toLowerCase() : void 0;
}
u() {
var t4;
this._$E_ = new Promise((t5) => this.enableUpdating = t5), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), null === (t4 = this.constructor.h) || void 0 === t4 || t4.forEach((t5) => t5(this));
}
addController(t4) {
var i4, s5;
(null !== (i4 = this._$ES) && void 0 !== i4 ? i4 : this._$ES = []).push(t4), void 0 !== this.renderRoot && this.isConnected && (null === (s5 = t4.hostConnected) || void 0 === s5 || s5.call(t4));
}
removeController(t4) {
var i4;
null === (i4 = this._$ES) || void 0 === i4 || i4.splice(this._$ES.indexOf(t4) >>> 0, 1);
}
_$Eg() {
this.constructor.elementProperties.forEach((t4, i4) => {
this.hasOwnProperty(i4) && (this._$Ei.set(i4, this[i4]), delete this[i4]);
});
}
createRenderRoot() {
var t4;
const s5 = null !== (t4 = this.shadowRoot) && void 0 !== t4 ? t4 : this.attachShadow(this.constructor.shadowRootOptions);
return S(s5, this.constructor.elementStyles), s5;
}
connectedCallback() {
var t4;
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t4 = this._$ES) || void 0 === t4 || t4.forEach((t5) => {
var i4;
return null === (i4 = t5.hostConnected) || void 0 === i4 ? void 0 : i4.call(t5);
});
}
enableUpdating(t4) {
}
disconnectedCallback() {
var t4;
null === (t4 = this._$ES) || void 0 === t4 || t4.forEach((t5) => {
var i4;
return null === (i4 = t5.hostDisconnected) || void 0 === i4 ? void 0 : i4.call(t5);
});
}
attributeChangedCallback(t4, i4, s5) {
this._$AK(t4, s5);
}
_$EO(t4, i4, s5 = l) {
var e7;
const r4 = this.constructor._$Ep(t4, s5);
if (void 0 !== r4 && true === s5.reflect) {
const h3 = (void 0 !== (null === (e7 = s5.converter) || void 0 === e7 ? void 0 : e7.toAttribute) ? s5.converter : n2).toAttribute(i4, s5.type);
this._$El = t4, null == h3 ? this.removeAttribute(r4) : this.setAttribute(r4, h3), this._$El = null;
}
}
_$AK(t4, i4) {
var s5;
const e7 = this.constructor, r4 = e7._$Ev.get(t4);
if (void 0 !== r4 && this._$El !== r4) {
const t5 = e7.getPropertyOptions(r4), h3 = "function" == typeof t5.converter ? { fromAttribute: t5.converter } : void 0 !== (null === (s5 = t5.converter) || void 0 === s5 ? void 0 : s5.fromAttribute) ? t5.converter : n2;
this._$El = r4, this[r4] = h3.fromAttribute(i4, t5.type), this._$El = null;
}
}
requestUpdate(t4, i4, s5) {
let e7 = true;
void 0 !== t4 && (((s5 = s5 || this.constructor.getPropertyOptions(t4)).hasChanged || a)(this[t4], i4) ? (this._$AL.has(t4) || this._$AL.set(t4, i4), true === s5.reflect && this._$El !== t4 && (void 0 === this._$EC && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t4, s5))) : e7 = false), !this.isUpdatePending && e7 && (this._$E_ = this._$Ej());
}
_$Ej() {
return __async(this, null, function* () {
this.isUpdatePending = true;
try {
yield this._$E_;
} catch (t5) {
Promise.reject(t5);
}
const t4 = this.scheduleUpdate();
return null != t4 && (yield t4), !this.isUpdatePending;
});
}
scheduleUpdate() {
return this.performUpdate();
}
performUpdate() {
var t4;
if (!this.isUpdatePending)
return;
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t5, i5) => this[i5] = t5), this._$Ei = void 0);
let i4 = false;
const s5 = this._$AL;
try {
i4 = this.shouldUpdate(s5), i4 ? (this.willUpdate(s5), null === (t4 = this._$ES) || void 0 === t4 || t4.forEach((t5) => {
var i5;
return null === (i5 = t5.hostUpdate) || void 0 === i5 ? void 0 : i5.call(t5);
}), this.update(s5)) : this._$Ek();
} catch (t5) {
throw i4 = false, this._$Ek(), t5;
}
i4 && this._$AE(s5);
}
willUpdate(t4) {
}
_$AE(t4) {
var i4;
null === (i4 = this._$ES) || void 0 === i4 || i4.forEach((t5) => {
var i5;
return null === (i5 = t5.hostUpdated) || void 0 === i5 ? void 0 : i5.call(t5);
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t4)), this.updated(t4);
}
_$Ek() {
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
}
get updateComplete() {
return this.getUpdateComplete();
}
getUpdateComplete() {
return this._$E_;
}
shouldUpdate(t4) {
return true;
}
update(t4) {
void 0 !== this._$EC && (this._$EC.forEach((t5, i4) => this._$EO(i4, this[i4], t5)), this._$EC = void 0), this._$Ek();
}
updated(t4) {
}
firstUpdated(t4) {
}
};
d.finalized = true, d.elementProperties = /* @__PURE__ */ new Map(), d.elementStyles = [], d.shadowRootOptions = { mode: "open" }, null == o2 || o2({ ReactiveElement: d }), (null !== (s2 = e2.reactiveElementVersions) && void 0 !== s2 ? s2 : e2.reactiveElementVersions = []).push("1.6.1");
// node_modules/lit-html/lit-html.js
var t2;
var i2 = window;
var s3 = i2.trustedTypes;
var e3 = s3 ? s3.createPolicy("lit-html", { createHTML: (t4) => t4 }) : void 0;
var o3 = "$lit$";
var n3 = `lit$${(Math.random() + "").slice(9)}$`;
var l2 = "?" + n3;
var h2 = `<${l2}>`;
var r3 = document;
var d2 = () => r3.createComment("");
var u = (t4) => null === t4 || "object" != typeof t4 && "function" != typeof t4;
var c2 = Array.isArray;
var v = (t4) => c2(t4) || "function" == typeof (null == t4 ? void 0 : t4[Symbol.iterator]);
var a2 = "[ \n\f\r]";
var f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
var _ = /-->/g;
var m = />/g;
var p = RegExp(`>|${a2}(?:([^\\s"'>=/]+)(${a2}*=${a2}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`, "g");
var g = /'/g;
var $ = /"/g;
var y = /^(?:script|style|textarea|title)$/i;
var w = (t4) => (i4, ...s5) => ({ _$litType$: t4, strings: i4, values: s5 });
var x = w(1);
var b = w(2);
var T = Symbol.for("lit-noChange");
var A = Symbol.for("lit-nothing");
var E = /* @__PURE__ */ new WeakMap();
var C = r3.createTreeWalker(r3, 129, null, false);
var P = (t4, i4) => {
const s5 = t4.length - 1, l5 = [];
let r4, d3 = 2 === i4 ? "<svg>" : "", u2 = f;
for (let i5 = 0; i5 < s5; i5++) {
const s6 = t4[i5];
let e7, c4, v2 = -1, a3 = 0;
for (; a3 < s6.length && (u2.lastIndex = a3, c4 = u2.exec(s6), null !== c4); )
a3 = u2.lastIndex, u2 === f ? "!--" === c4[1] ? u2 = _ : void 0 !== c4[1] ? u2 = m : void 0 !== c4[2] ? (y.test(c4[2]) && (r4 = RegExp("</" + c4[2], "g")), u2 = p) : void 0 !== c4[3] && (u2 = p) : u2 === p ? ">" === c4[0] ? (u2 = null != r4 ? r4 : f, v2 = -1) : void 0 === c4[1] ? v2 = -2 : (v2 = u2.lastIndex - c4[2].length, e7 = c4[1], u2 = void 0 === c4[3] ? p : '"' === c4[3] ? $ : g) : u2 === $ || u2 === g ? u2 = p : u2 === _ || u2 === m ? u2 = f : (u2 = p, r4 = void 0);
const w2 = u2 === p && t4[i5 + 1].startsWith("/>") ? " " : "";
d3 += u2 === f ? s6 + h2 : v2 >= 0 ? (l5.push(e7), s6.slice(0, v2) + o3 + s6.slice(v2) + n3 + w2) : s6 + n3 + (-2 === v2 ? (l5.push(void 0), i5) : w2);
}
const c3 = d3 + (t4[s5] || "<?>") + (2 === i4 ? "</svg>" : "");
if (!Array.isArray(t4) || !t4.hasOwnProperty("raw"))
throw Error("invalid template strings array");
return [void 0 !== e3 ? e3.createHTML(c3) : c3, l5];
};
var V = class {
constructor({ strings: t4, _$litType$: i4 }, e7) {
let h3;
this.parts = [];
let r4 = 0, u2 = 0;
const c3 = t4.length - 1, v2 = this.parts, [a3, f2] = P(t4, i4);
if (this.el = V.createElement(a3, e7), C.currentNode = this.el.content, 2 === i4) {
const t5 = this.el.content, i5 = t5.firstChild;
i5.remove(), t5.append(...i5.childNodes);
}
for (; null !== (h3 = C.nextNode()) && v2.length < c3; ) {
if (1 === h3.nodeType) {
if (h3.hasAttributes()) {
const t5 = [];
for (const i5 of h3.getAttributeNames())
if (i5.endsWith(o3) || i5.startsWith(n3)) {
const s5 = f2[u2++];
if (t5.push(i5), void 0 !== s5) {
const t6 = h3.getAttribute(s5.toLowerCase() + o3).split(n3), i6 = /([.?@])?(.*)/.exec(s5);
v2.push({ type: 1, index: r4, name: i6[2], strings: t6, ctor: "." === i6[1] ? k : "?" === i6[1] ? I : "@" === i6[1] ? L : R });
} else
v2.push({ type: 6, index: r4 });
}
for (const i5 of t5)
h3.removeAttribute(i5);
}
if (y.test(h3.tagName)) {
const t5 = h3.textContent.split(n3), i5 = t5.length - 1;
if (i5 > 0) {
h3.textContent = s3 ? s3.emptyScript : "";
for (let s5 = 0; s5 < i5; s5++)
h3.append(t5[s5], d2()), C.nextNode(), v2.push({ type: 2, index: ++r4 });
h3.append(t5[i5], d2());
}
}
} else if (8 === h3.nodeType)
if (h3.data === l2)
v2.push({ type: 2, index: r4 });
else {
let t5 = -1;
for (; -1 !== (t5 = h3.data.indexOf(n3, t5 + 1)); )
v2.push({ type: 7, index: r4 }), t5 += n3.length - 1;
}
r4++;
}
}
static createElement(t4, i4) {
const s5 = r3.createElement("template");
return s5.innerHTML = t4, s5;
}
};
function N(t4, i4, s5 = t4, e7) {
var o6, n6, l5, h3;
if (i4 === T)
return i4;
let r4 = void 0 !== e7 ? null === (o6 = s5._$Co) || void 0 === o6 ? void 0 : o6[e7] : s5._$Cl;
const d3 = u(i4) ? void 0 : i4._$litDirective$;
return (null == r4 ? void 0 : r4.constructor) !== d3 && (null === (n6 = null == r4 ? void 0 : r4._$AO) || void 0 === n6 || n6.call(r4, false), void 0 === d3 ? r4 = void 0 : (r4 = new d3(t4), r4._$AT(t4, s5, e7)), void 0 !== e7 ? (null !== (l5 = (h3 = s5)._$Co) && void 0 !== l5 ? l5 : h3._$Co = [])[e7] = r4 : s5._$Cl = r4), void 0 !== r4 && (i4 = N(t4, r4._$AS(t4, i4.values), r4, e7)), i4;
}
var S2 = class {
constructor(t4, i4) {
this._$AV = [], this._$AN = void 0, this._$AD = t4, this._$AM = i4;
}
get parentNode() {
return this._$AM.parentNode;
}
get _$AU() {
return this._$AM._$AU;
}
u(t4) {
var i4;
const { el: { content: s5 }, parts: e7 } = this._$AD, o6 = (null !== (i4 = null == t4 ? void 0 : t4.creationScope) && void 0 !== i4 ? i4 : r3).importNode(s5, true);
C.currentNode = o6;
let n6 = C.nextNode(), l5 = 0, h3 = 0, d3 = e7[0];
for (; void 0 !== d3; ) {
if (l5 === d3.index) {
let i5;
2 === d3.type ? i5 = new M(n6, n6.nextSibling, this, t4) : 1 === d3.type ? i5 = new d3.ctor(n6, d3.name, d3.strings, this, t4) : 6 === d3.type && (i5 = new z(n6, this, t4)), this._$AV.push(i5), d3 = e7[++h3];
}
l5 !== (null == d3 ? void 0 : d3.index) && (n6 = C.nextNode(), l5++);
}
return o6;
}
v(t4) {
let i4 = 0;
for (const s5 of this._$AV)
void 0 !== s5 && (void 0 !== s5.strings ? (s5._$AI(t4, s5, i4), i4 += s5.strings.length - 2) : s5._$AI(t4[i4])), i4++;
}
};
var M = class {
constructor(t4, i4, s5, e7) {
var o6;
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t4, this._$AB = i4, this._$AM = s5, this.options = e7, this._$Cp = null === (o6 = null == e7 ? void 0 : e7.isConnected) || void 0 === o6 || o6;
}
get _$AU() {
var t4, i4;
return null !== (i4 = null === (t4 = this._$AM) || void 0 === t4 ? void 0 : t4._$AU) && void 0 !== i4 ? i4 : this._$Cp;
}
get parentNode() {
let t4 = this._$AA.parentNode;
const i4 = this._$AM;
return void 0 !== i4 && 11 === (null == t4 ? void 0 : t4.nodeType) && (t4 = i4.parentNode), t4;
}
get startNode() {
return this._$AA;
}
get endNode() {
return this._$AB;
}
_$AI(t4, i4 = this) {
t4 = N(this, t4, i4), u(t4) ? t4 === A || null == t4 || "" === t4 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t4 !== this._$AH && t4 !== T && this._(t4) : void 0 !== t4._$litType$ ? this.g(t4) : void 0 !== t4.nodeType ? this.$(t4) : v(t4) ? this.T(t4) : this._(t4);
}
k(t4) {
return this._$AA.parentNode.insertBefore(t4, this._$AB);
}
$(t4) {
this._$AH !== t4 && (this._$AR(), this._$AH = this.k(t4));
}
_(t4) {
this._$AH !== A && u(this._$AH) ? this._$AA.nextSibling.data = t4 : this.$(r3.createTextNode(t4)), this._$AH = t4;
}
g(t4) {
var i4;
const { values: s5, _$litType$: e7 } = t4, o6 = "number" == typeof e7 ? this._$AC(t4) : (void 0 === e7.el && (e7.el = V.createElement(e7.h, this.options)), e7);
if ((null === (i4 = this._$AH) || void 0 === i4 ? void 0 : i4._$AD) === o6)
this._$AH.v(s5);
else {
const t5 = new S2(o6, this), i5 = t5.u(this.options);
t5.v(s5), this.$(i5), this._$AH = t5;
}
}
_$AC(t4) {
let i4 = E.get(t4.strings);
return void 0 === i4 && E.set(t4.strings, i4 = new V(t4)), i4;
}
T(t4) {
c2(this._$AH) || (this._$AH = [], this._$AR());
const i4 = this._$AH;
let s5, e7 = 0;
for (const o6 of t4)
e7 === i4.length ? i4.push(s5 = new M(this.k(d2()), this.k(d2()), this, this.options)) : s5 = i4[e7], s5._$AI(o6), e7++;
e7 < i4.length && (this._$AR(s5 && s5._$AB.nextSibling, e7), i4.length = e7);
}
_$AR(t4 = this._$AA.nextSibling, i4) {
var s5;
for (null === (s5 = this._$AP) || void 0 === s5 || s5.call(this, false, true, i4); t4 && t4 !== this._$AB; ) {
const i5 = t4.nextSibling;
t4.remove(), t4 = i5;
}
}
setConnected(t4) {
var i4;
void 0 === this._$AM && (this._$Cp = t4, null === (i4 = this._$AP) || void 0 === i4 || i4.call(this, t4));
}
};
var R = class {
constructor(t4, i4, s5, e7, o6) {
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t4, this.name = i4, this._$AM = e7, this.options = o6, s5.length > 2 || "" !== s5[0] || "" !== s5[1] ? (this._$AH = Array(s5.length - 1).fill(new String()), this.strings = s5) : this._$AH = A;
}
get tagName() {
return this.element.tagName;
}
get _$AU() {
return this._$AM._$AU;
}
_$AI(t4, i4 = this, s5, e7) {
const o6 = this.strings;
let n6 = false;
if (void 0 === o6)
t4 = N(this, t4, i4, 0), n6 = !u(t4) || t4 !== this._$AH && t4 !== T, n6 && (this._$AH = t4);
else {
const e8 = t4;
let l5, h3;
for (t4 = o6[0], l5 = 0; l5 < o6.length - 1; l5++)
h3 = N(this, e8[s5 + l5], i4, l5), h3 === T && (h3 = this._$AH[l5]), n6 || (n6 = !u(h3) || h3 !== this._$AH[l5]), h3 === A ? t4 = A : t4 !== A && (t4 += (null != h3 ? h3 : "") + o6[l5 + 1]), this._$AH[l5] = h3;
}
n6 && !e7 && this.j(t4);
}
j(t4) {
t4 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t4 ? t4 : "");
}
};
var k = class extends R {
constructor() {
super(...arguments), this.type = 3;
}
j(t4) {
this.element[this.name] = t4 === A ? void 0 : t4;
}
};
var H = s3 ? s3.emptyScript : "";
var I = class extends R {
constructor() {
super(...arguments), this.type = 4;
}
j(t4) {
t4 && t4 !== A ? this.element.setAttribute(this.name, H) : this.element.removeAttribute(this.name);
}
};
var L = class extends R {
constructor(t4, i4, s5, e7, o6) {
super(t4, i4, s5, e7, o6), this.type = 5;
}
_$AI(t4, i4 = this) {
var s5;
if ((t4 = null !== (s5 = N(this, t4, i4, 0)) && void 0 !== s5 ? s5 : A) === T)
return;
const e7 = this._$AH, o6 = t4 === A && e7 !== A || t4.capture !== e7.capture || t4.once !== e7.once || t4.passive !== e7.passive, n6 = t4 !== A && (e7 === A || o6);
o6 && this.element.removeEventListener(this.name, this, e7), n6 && this.element.addEventListener(this.name, this, t4), this._$AH = t4;
}
handleEvent(t4) {
var i4, s5;
"function" == typeof this._$AH ? this._$AH.call(null !== (s5 = null === (i4 = this.options) || void 0 === i4 ? void 0 : i4.host) && void 0 !== s5 ? s5 : this.element, t4) : this._$AH.handleEvent(t4);
}
};
var z = class {
constructor(t4, i4, s5) {
this.element = t4, this.type = 6, this._$AN = void 0, this._$AM = i4, this.options = s5;
}
get _$AU() {
return this._$AM._$AU;
}
_$AI(t4) {
N(this, t4);
}
};
var j = i2.litHtmlPolyfillSupport;
null == j || j(V, M), (null !== (t2 = i2.litHtmlVersions) && void 0 !== t2 ? t2 : i2.litHtmlVersions = []).push("2.7.2");
var B = (t4, i4, s5) => {
var e7, o6;
const n6 = null !== (e7 = null == s5 ? void 0 : s5.renderBefore) && void 0 !== e7 ? e7 : i4;
let l5 = n6._$litPart$;
if (void 0 === l5) {
const t5 = null !== (o6 = null == s5 ? void 0 : s5.renderBefore) && void 0 !== o6 ? o6 : null;
n6._$litPart$ = l5 = new M(i4.insertBefore(d2(), t5), t5, void 0, null != s5 ? s5 : {});
}
return l5._$AI(t4), l5;
};
// node_modules/lit-element/lit-element.js
var l3;
var o4;
var s4 = class extends d {
constructor() {
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
}
createRenderRoot() {
var t4, e7;
const i4 = super.createRenderRoot();
return null !== (t4 = (e7 = this.renderOptions).renderBefore) && void 0 !== t4 || (e7.renderBefore = i4.firstChild), i4;
}
update(t4) {
const i4 = this.render();
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t4), this._$Do = B(i4, this.renderRoot, this.renderOptions);
}
connectedCallback() {
var t4;
super.connectedCallback(), null === (t4 = this._$Do) || void 0 === t4 || t4.setConnected(true);
}
disconnectedCallback() {
var t4;
super.disconnectedCallback(), null === (t4 = this._$Do) || void 0 === t4 || t4.setConnected(false);
}
render() {
return T;
}
};
s4.finalized = true, s4._$litElement$ = true, null === (l3 = globalThis.litElementHydrateSupport) || void 0 === l3 || l3.call(globalThis, { LitElement: s4 });
var n4 = globalThis.litElementPolyfillSupport;
null == n4 || n4({ LitElement: s4 });
(null !== (o4 = globalThis.litElementVersions) && void 0 !== o4 ? o4 : globalThis.litElementVersions = []).push("3.3.1");
// node_modules/@lit/reactive-element/decorators/property.js
var i3 = (i4, e7) => "method" === e7.kind && e7.descriptor && !("value" in e7.descriptor) ? __spreadProps(__spreadValues({}, e7), { finisher(n6) {
n6.createProperty(e7.key, i4);
} }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e7.key, initializer() {
"function" == typeof e7.initializer && (this[e7.key] = e7.initializer.call(this));
}, finisher(n6) {
n6.createProperty(e7.key, i4);
} };
function e4(e7) {
return (n6, t4) => void 0 !== t4 ? ((i4, e8, n7) => {
e8.constructor.createProperty(n7, i4);
})(e7, n6, t4) : i3(e7, n6);
}
// node_modules/@lit/reactive-element/decorators/state.js
function t3(t4) {
return e4(__spreadProps(__spreadValues({}, t4), { state: true }));
}
// node_modules/@lit/reactive-element/decorators/base.js
var o5 = ({ finisher: e7, descriptor: t4 }) => (o6, n6) => {
var r4;
if (void 0 === n6) {
const n7 = null !== (r4 = o6.originalKey) && void 0 !== r4 ? r4 : o6.key, i4 = null != t4 ? { kind: "method", placement: "prototype", key: n7, descriptor: t4(o6.key) } : __spreadProps(__spreadValues({}, o6), { key: n7 });
return null != e7 && (i4.finisher = function(t5) {
e7(t5, n7);
}), i4;
}
{
const r5 = o6.constructor;
void 0 !== t4 && Object.defineProperty(o6, n6, t4(n6)), null == e7 || e7(r5, n6);
}
};
// node_modules/@lit/reactive-element/decorators/query-all.js
function e5(e7) {
return o5({ descriptor: (r4) => ({ get() {
var r5, o6;
return null !== (o6 = null === (r5 = this.renderRoot) || void 0 === r5 ? void 0 : r5.querySelectorAll(e7)) && void 0 !== o6 ? o6 : [];
}, enumerable: true, configurable: true }) });
}
// node_modules/@lit/reactive-element/decorators/query-assigned-elements.js
var n5;
var e6 = null != (null === (n5 = window.HTMLSlotElement) || void 0 === n5 ? void 0 : n5.prototype.assignedElements) ? (o6, n6) => o6.assignedElements(n6) : (o6, n6) => o6.assignedNodes(n6).filter((o7) => o7.nodeType === Node.ELEMENT_NODE);
// pkg/sdk/client/src/components/icons/user-circle.svg
var user_circle_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"%0A stroke="currentColor" class="w-6 h-6">%0A <path stroke-linecap="round" stroke-linejoin="round"%0A d="M17.982 18.725A7.488 7.488 0 0012 15.75a7.488 7.488 0 00-5.982 2.975m11.963 0a9 9 0 10-11.963 0m11.963 0A8.966 8.966 0 0112 21a8.966 8.966 0 01-5.982-2.275M15 9.75a3 3 0 11-6 0 3 3 0 016 0z" />%0A</svg>%0A%20%20';
// pkg/sdk/client/src/components/icons/menu.svg
var menu_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"%0A stroke="currentColor" class="w-6 h-6">%0A <path stroke-linecap="round" stroke-linejoin="round"%0A d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />%0A</svg>%0A%20%20';
// pkg/sdk/client/src/components/icons/cloud.svg
var cloud_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"%0A stroke="currentColor" class="w-6 h-6">%0A <path stroke-linecap="round" stroke-linejoin="round"%0A d="M2.25 15a4.5 4.5 0 004.5 4.5H18a3.75 3.75 0 001.332-7.257 3 3 0 00-3.758-3.848 5.25 5.25 0 00-10.233 2.33A4.502 4.502 0 002.25 15z" />%0A</svg>%0A%20%20';
// pkg/sdk/client/src/components/icons/login.svg
var login_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"%0A stroke="currentColor" class="w-6 h-6">%0A <path stroke-linecap="round" stroke-linejoin="round"%0A d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9" />%0A</svg>%0A%20%20';
// pkg/sdk/client/src/components/icons/home.svg
var home_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"%0A stroke="currentColor" class="w-6 h-6">%0A <path stroke-linecap="round" stroke-linejoin="round"%0A d="M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />%0A</svg>%0A%20%20';
// pkg/sdk/client/src/components/icons/link.svg
var link_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"%0A stroke="currentColor" class="w-6 h-6">%0A <path stroke-linecap="round" stroke-linejoin="round"%0A d="M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244" />%0A</svg>';
// pkg/sdk/client/src/components/icons/logout.svg
var logout_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"%0A stroke="currentColor" class="w-6 h-6">%0A <path stroke-linecap="round" stroke-linejoin="round"%0A d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15M12 9l-3 3m0 0l3 3m-3-3h12.75" />%0A</svg>%0A%20%20';
// pkg/sdk/client/src/components/menu-item.ts
var EVENT_MENU_ITEM_SELECTED = "menu-item-selected";
var EVENT_MENU_ITEM_UNSELECTED = "menu-item-unselected";
var MenuItem = class extends s4 {
constructor() {
super();
this.addEventListener("click", this._handleClick.bind(this));
}
render() {
return x`
<div class="menu-item-icon">
${this.iconUrl ? x`<img src="${this.iconUrl}" />` : ""}
</div>
<div class="menu-item-label">
${this.label}
</div>
<div class="menu-item-panel">
<slot></slot>
</div>
`;
}
_handleClick() {
if (this.selected) {
this.unselect();
} else {
this.select();
}
}
select() {
this.selected = true;
const event = new CustomEvent(EVENT_MENU_ITEM_SELECTED, {
bubbles: true,
composed: true,
detail: {
element: this
}
});
this.dispatchEvent(event);
}
unselect() {
this.selected = false;
const event = new CustomEvent(EVENT_MENU_ITEM_UNSELECTED, {
bubbles: true,
composed: true,
detail: {
element: this
}
});
this.dispatchEvent(event);
}
};
MenuItem.styles = i`
:host {
display: inline-block;
height: 100%;
flex: 1;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-bottom: 1px solid rgb(229,231,235);
border-top: 10px solid transparent;
transition: all 100ms ease-out;
background-color: #fff;
}
:host(:hover) {
background-color: rgb(249,250,251);
}
:host(.selected) {
border-top: 10px solid #03A9F4;
border-bottom: 1px solid transparent;
background-color: #fff;
}
:host(.unselected) {
background-color: hsl(210 20% 95% / 1);
}
.menu-item-icon {
height: 30px;
width: 30px;
overflow: hidden;
}
.menu-item-icon > img {
width: 100%;
height: 100%;
}
.menu-item-panel {
display: none;
position: fixed;
top: 65px;
left: 0;
right: 0;
z-index: 9999;
background-color: #fff;
box-shadow: 0px 4px 5px 0px hsl(0deg 0% 0% / 10%);
max-height: 75%;
overflow-y: auto;
}
:host(.selected) .menu-item-panel {
display: block;
}
.menu-item-label {
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
color: black;
font-size: 14px;
margin: 3px 0;
}
`;
__decorateClass([
e4({ attribute: "icon-url", type: String })
], MenuItem.prototype, "iconUrl", 2);
__decorateClass([
e4({ attribute: "label", type: String })
], MenuItem.prototype, "label", 2);
__decorateClass([
t3()
], MenuItem.prototype, "selected", 2);
// pkg/sdk/client/src/components/menu.ts
var BASE_API_URL = "/edge/api/v1";
var Roles = /* @__PURE__ */ ((Roles2) => {
Roles2[Roles2["visitor"] = 0] = "visitor";
Roles2[Roles2["user"] = 1] = "user";
Roles2[Roles2["superuser"] = 2] = "superuser";
Roles2[Roles2["admin"] = 3] = "admin";
Roles2[Roles2["superadmin"] = 4] = "superadmin";
return Roles2;
})(Roles || {});
var Menu = class extends s4 {
constructor() {
super();
this._apps = [];
this.addEventListener(EVENT_MENU_ITEM_SELECTED, this._handleMenuItemSelected.bind(this));
this.addEventListener(EVENT_MENU_ITEM_UNSELECTED, this._handleMenuItemUnselected.bind(this));
this._fetchApps();
this._fetchProfile();
}
render() {
const apps = this._renderApps();
return x`
<edge-menu-item name='menu' label="${this.appTitle || "App"}" icon-url='${this.appIconUrl || menu_default}'>
<edge-menu-sub-item name='home' label='Home' icon-url='${home_default}' link-url='/'></edge-menu-sub-item>
<slot></slot>
</edge-menu-item>
${this._renderApps()}
${this._renderProfile()}
`;
}
_fetchApps() {
return fetch(`${BASE_API_URL}/apps`).then((res) => res.json()).then((result) => {
var _a;
if (result.error) {
throw new Error(`Unexpected server error: ${result.error.code}`);
}
return ((_a = result.data) == null ? void 0 : _a.manifests) || [];
}).then((manifests) => {
const promises = manifests.map((m2) => {
const fetchOptions = {
method: "POST",
body: JSON.stringify({}),
headers: {
"Content-Type": "application/json"
}
};
return fetch(`${BASE_API_URL}/apps/${m2.id}/url`, fetchOptions).then((res) => res.json()).then((result) => {
var _a;
if (result.error) {
throw new Error(`Unexpected server error: ${result.error.code}`);
}
m2.url = (_a = result.data) == null ? void 0 : _a.url;
return m2;
});
});
return Promise.all(promises);
}).then((manifests) => {
this._apps = manifests;
}).catch((err) => console.error(err));
}
_fetchProfile() {
return fetch(`${BASE_API_URL}/profile`).then((res) => res.json()).then((result) => {
var _a;
if (result.error) {
switch (result.error.code) {
case "unauthorized":
return null;
default:
throw new Error(`Unexpected server error: ${result.error.code}`);
}
}
return (_a = result.data) == null ? void 0 : _a.profile;
}).then((profile) => {
this._profile = profile;
}).catch((err) => console.error(err));
}
_renderApps() {
const apps = this._apps.filter((manifest) => this._canAccess(manifest)).map((manifest) => {
var _a, _b;
const iconUrl = (manifest.url || "") + (((_b = (_a = manifest.metadata) == null ? void 0 : _a.paths) == null ? void 0 : _b.icon) || "") || link_default;
return x`
<edge-menu-sub-item
name='${manifest.id}'
label='${manifest.title}'
icon-url='${iconUrl}'
link-url='${manifest.url || "#"}'>
</edge-menu-sub-item>
`;
});
return x`
<edge-menu-item name='apps' label='Apps' icon-url='${cloud_default}'>
${apps}
</edge-menu-item>
`;
}
_canAccess(manifest) {
var _a, _b;
const currentRole = ((_a = this._profile) == null ? void 0 : _a.edge_role) || "visitor";
const minimumRole = ((_b = manifest.metadata) == null ? void 0 : _b.minimumRole) || "visitor";
return Roles[currentRole] >= Roles[minimumRole];
}
_renderProfile() {
const profile = this._profile;
return x`
<edge-menu-item name='profile' label="${(profile == null ? void 0 : profile.preferred_username) || "Profile"}" icon-url='${user_circle_default}'>
${profile ? x`<edge-menu-sub-item name='login' label='Logout' icon-url='${logout_default}' link-url='/edge/auth/logout'></edge-menu-sub-item>` : x`<edge-menu-sub-item name='login' label='Login' icon-url='${login_default}' link-url='/edge/auth/login'></edge-menu-sub-item>`}
</edge-menu-item>
`;
}
_handleMenuItemSelected(evt) {
const selectedMenuItem = evt.detail.element;
selectedMenuItem.classList.add("selected");
selectedMenuItem.classList.remove("unselected");
for (let item, i4 = 0; item = this._menuItems[i4]; i4++) {
if (item === selectedMenuItem)
continue;
item.unselect();
item.classList.add("unselected");
}
}
_handleMenuItemUnselected(evt) {
const unselectedMenuItem = evt.detail.element;
unselectedMenuItem.classList.remove("selected");
const hasSelectedItem = this.renderRoot.querySelectorAll("edge-menu-item.selected").length !== 0;
if (hasSelectedItem) {
return;
}
for (let item, i4 = 0; item = this._menuItems[i4]; i4++) {
item.classList.remove("unselected");
}
}
};
Menu.styles = i`
:host {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
background-color: #fff;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
z-index: 9999;
}
:host([hidden]) {
display: none;
}
`;
__decorateClass([
e4({ attribute: "app-icon-url", type: String })
], Menu.prototype, "appIconUrl", 2);
__decorateClass([
e4({ attribute: "app-title", type: String })
], Menu.prototype, "appTitle", 2);
__decorateClass([
e4({ attribute: "hidden", type: Boolean })
], Menu.prototype, "hidden", 2);
__decorateClass([
e4()
], Menu.prototype, "_apps", 2);
__decorateClass([
e4()
], Menu.prototype, "_profile", 2);
__decorateClass([
e5("edge-menu-item")
], Menu.prototype, "_menuItems", 2);
// pkg/sdk/client/src/components/menu-sub-item.ts
var MenuSubItem = class extends s4 {
render() {
return x`
<a href="${this.linkUrl ? this.linkUrl : "#"}">
<img class="edge-menu-sub-item-icon" src="${this.iconUrl ? this.iconUrl : link_default}" />
<span class="edge-menu-sub-item-label">${this.label}</span>
</a>
`;
2023-04-02 17:59:33 +02:00
}
};
MenuSubItem.styles = i`
:host {
display: block;
flex: 1;
cursor: pointer;
transition: all 100ms ease-out;
border-bottom: 1px solid rgb(229,231,235);
padding: 5px 0 5px 7px;
border-left: 5px solid transparent;
}
:host([inactive]) {
cursor: initial;
}
:host(:hover) {
border-left: 5px solid #03A9F4;
background-color: rgb(28 169 247 / 10%);
}
a {
font-size: 20px;
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
text-decoration: none;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
height: 40px;
color: black;
}
.edge-menu-sub-item-icon {
height: 25px;
width: 25px;
}
.edge-menu-sub-item-label {
margin-left: 5px;
}
`;
__decorateClass([
e4({ attribute: "label" })
], MenuSubItem.prototype, "label", 2);
__decorateClass([
e4({ attribute: "icon-url" })
], MenuSubItem.prototype, "iconUrl", 2);
__decorateClass([
e4({ attribute: "link-url" })
], MenuSubItem.prototype, "linkUrl", 2);
__decorateClass([
e4({ attribute: "inactive", type: Boolean })
], MenuSubItem.prototype, "inactive", 2);
// pkg/sdk/client/src/crossframe-messenger.ts
var CrossFrameMessenger = class extends EventTarget {
constructor() {
super();
this.debug = false;
this._handleWindowMessage = this._handleWindowMessage.bind(this);
this._initObservers = this._initObservers.bind(this);
window.addEventListener("load", this._initObservers);
window.addEventListener("message", this._handleWindowMessage);
}
post(message, target = window.parent) {
if (!target)
return;
this._log("sending crossframe message", message);
target.postMessage(message, "*");
}
_log(...args) {
if (!this.debug)
return;
console.log(...args);
}
_handleWindowMessage(evt) {
const message = evt.data;
if (!message || !message.type || !message.data) {
return;
}
const event = new CustomEvent(message.type, {
cancelable: true,
detail: message.data
});
this.dispatchEvent(event);
}
_initObservers() {
this._initResizeObserver();
this._initTitleMutationObserver();
}
_initTitleMutationObserver() {
const titleObserver = new MutationObserver((mutations) => {
const title2 = mutations[0].target.textContent;
this.post({ type: "title_changed" /* TITLE_CHANGED */, data: { title: title2 } });
});
const title = document.querySelector("title");
if (!title)
return;
this.post({ type: "title_changed" /* TITLE_CHANGED */, data: { title: title.textContent } });
titleObserver.observe(title, { subtree: true, characterData: true, childList: true });
}
_initResizeObserver() {
const resizeObserver = new ResizeObserver(() => {
const rect = document.documentElement.getBoundingClientRect();
const height = rect.height;
const width = rect.width;
this.post({ type: "size_changed" /* SIZE_CHANGED */, data: { height, width } });
});
const body = document.body;
if (!body)
return;
resizeObserver.observe(document.documentElement);
}
};
// pkg/sdk/client/src/menu-manager.ts
var EdgeBodyAutoPaddingAttrName = "edge-auto-padding";
var MenuManager = class {
constructor() {
this._items = {};
this._handleLoad = this._handleLoad.bind(this);
window.addEventListener("load", this._handleLoad);
}
setItem(name, label, options) {
this._items[name] = {
label,
iconUrl: (options == null ? void 0 : options.iconUrl) ? options == null ? void 0 : options.iconUrl : "",
linkUrl: (options == null ? void 0 : options.linkUrl) ? options == null ? void 0 : options.linkUrl : "#",
order: (options == null ? void 0 : options.order) ? options == null ? void 0 : options.order : 0
};
this._render();
return this;
}
removeItem(name) {
delete this._items[name];
this._render();
return this;
}
setAppIconUrl(url) {
this._appIconUrl = url;
this._render();
return this;
}
setAppTitle(title) {
this._appTitle = title;
this._render();
return this;
}
show() {
if (!this._hidden)
return;
this._hidden = false;
if (this._previousBodyAutoPadding) {
document.body.setAttribute(EdgeBodyAutoPaddingAttrName, this._previousBodyAutoPadding);
} else {
document.body.removeAttribute(EdgeBodyAutoPaddingAttrName);
}
this._render();
}
hide() {
if (this._hidden)
return;
this._hidden = true;
this._previousBodyAutoPadding = document.body.getAttribute(EdgeBodyAutoPaddingAttrName);
document.body.setAttribute(EdgeBodyAutoPaddingAttrName, "false");
this._render();
}
_handleLoad() {
this._init();
}
_init() {
this._initMenu();
this._initGlobalStyle();
}
_initMenu() {
const menu = document.createElement("edge-menu");
document.body.appendChild(menu);
this._menu = menu;
this._render();
}
_initGlobalStyle() {
const style = document.createElement("style");
style.textContent = `
body:not([${EdgeBodyAutoPaddingAttrName}="false"]) {
padding-top: 60px;
}
`;
document.head.appendChild(style);
}
_render() {
if (!this._menu)
return;
if (this._hidden) {
this._menu.setAttribute("hidden", "true");
} else {
this._menu.removeAttribute("hidden");
}
if (this._appIconUrl) {
this._menu.setAttribute("app-icon-url", this._appIconUrl);
} else {
this._menu.removeAttribute("app-icon-url");
}
if (this._appTitle) {
this._menu.setAttribute("app-title", this._appTitle);
} else {
this._menu.removeAttribute("app-title");
}
const children = [];
const items = Object.keys(this._items).map((key) => __spreadValues({ name: key }, this._items[key])).sort((a3, b2) => a3.order - b2.order);
for (let item, i4 = 0; item = items[i4]; i4++) {
const node = document.createElement("edge-menu-sub-item");
node.label = item.label;
node.iconUrl = item.iconUrl;
node.linkUrl = item.linkUrl;
children.push(node);
}
this._menu.replaceChildren(...children);
}
};
// pkg/sdk/client/src/index.ts
customElements.define("edge-menu", Menu);
customElements.define("edge-menu-item", MenuItem);
customElements.define("edge-menu-sub-item", MenuSubItem);
var Client2 = new Client();
var Frame = new CrossFrameMessenger();
var Menu2 = new MenuManager();
return __toCommonJS(src_exports);
})();
/*! Bundled license information:
@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js:
(**
@license @nocompile
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*)
lit/polyfill-support.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@webcomponents/webcomponentsjs/webcomponents-loader.js:
(**
* @license
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*)
@lit/reactive-element/css-tag.js:
(**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/reactive-element.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
lit-html/lit-html.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
lit-element/lit-element.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
lit-html/is-server.js:
(**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/custom-element.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/property.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/state.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/base.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/event-options.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/query.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/query-all.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/query-async.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/query-assigned-elements.js:
(**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
@lit/reactive-element/decorators/query-assigned-nodes.js:
(**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*)
*/
//# sourceMappingURL=client.js.map