diff --git a/build/synctastic.js b/build/synctastic.js index b2058c91b6a3d4119f299f0bff91e4f7e9e3870a..82b7fece25a2cf4da25bce8fe2dee5981db5f1b3 100644 --- a/build/synctastic.js +++ b/build/synctastic.js @@ -614,15 +614,6 @@ } }); - // node_modules/core-js/modules/es.symbol.iterator.js - var require_es_symbol_iterator = __commonJS({ - "node_modules/core-js/modules/es.symbol.iterator.js": function() { - "use strict"; - var defineWellKnownSymbol = require_well_known_symbol_define(); - defineWellKnownSymbol("iterator"); - } - }); - // node_modules/core-js/internals/function-name.js var require_function_name = __commonJS({ "node_modules/core-js/internals/function-name.js": function(exports, module) { @@ -1684,66 +1675,6 @@ } }); - // 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": function(exports, module) { - "use strict"; - 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/is-possible-prototype.js - var require_is_possible_prototype = __commonJS({ - "node_modules/core-js/internals/is-possible-prototype.js": function(exports, module) { - "use strict"; - var isObject = require_is_object(); - module.exports = function(argument) { - return isObject(argument) || argument === null; - }; - } - }); - - // node_modules/core-js/modules/es.object.proto.js - var require_es_object_proto = __commonJS({ - "node_modules/core-js/modules/es.object.proto.js": function() { - "use strict"; - var DESCRIPTORS = require_descriptors(); - var defineBuiltInAccessor = require_define_built_in_accessor(); - var isObject = require_is_object(); - var isPossiblePrototype = require_is_possible_prototype(); - 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 (isPossiblePrototype(proto) && isObject(O)) { - setPrototypeOf(O, proto); - } - } - }); - } catch (error) { - } - } - }); - // node_modules/core-js/internals/function-apply.js var require_function_apply = __commonJS({ "node_modules/core-js/internals/function-apply.js": function(exports, module) { @@ -2030,6 +1961,22 @@ } }); + // 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": function(exports, module) { + "use strict"; + 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/set-to-string-tag.js var require_set_to_string_tag = __commonJS({ "node_modules/core-js/internals/set-to-string-tag.js": function(exports, module) { @@ -2693,6 +2640,15 @@ } }); + // node_modules/core-js/modules/es.symbol.iterator.js + var require_es_symbol_iterator = __commonJS({ + "node_modules/core-js/modules/es.symbol.iterator.js": function() { + "use strict"; + var defineWellKnownSymbol = require_well_known_symbol_define(); + defineWellKnownSymbol("iterator"); + } + }); + // 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": function(exports, module) { @@ -2708,6 +2664,17 @@ } }); + // node_modules/core-js/internals/is-possible-prototype.js + var require_is_possible_prototype = __commonJS({ + "node_modules/core-js/internals/is-possible-prototype.js": function(exports, module) { + "use strict"; + var isObject = require_is_object(); + module.exports = function(argument) { + return isObject(argument) || argument === null; + }; + } + }); + // node_modules/core-js/internals/a-possible-prototype.js var require_a_possible_prototype = __commonJS({ "node_modules/core-js/internals/a-possible-prototype.js": function(exports, module) { @@ -4689,6 +4656,18 @@ } }); + // node_modules/core-js/modules/es.global-this.js + var require_es_global_this = __commonJS({ + "node_modules/core-js/modules/es.global-this.js": function() { + "use strict"; + var $ = require_export(); + var global2 = require_global(); + $({ global: true, forced: global2.globalThis !== global2 }, { + globalThis: global2 + }); + } + }); + // 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": function(exports, module) { @@ -5228,6 +5207,18 @@ } }); + // node_modules/core-js/modules/es.math.trunc.js + var require_es_math_trunc = __commonJS({ + "node_modules/core-js/modules/es.math.trunc.js": function() { + "use strict"; + var $ = require_export(); + var trunc = require_math_trunc(); + $({ target: "Math", stat: true }, { + trunc: 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": function(exports, module) { @@ -5711,6 +5702,19 @@ } }); + // 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": function() { + "use strict"; + var $ = require_export(); + var DESCRIPTORS = require_descriptors(); + var defineProperties = require_object_define_properties().f; + $({ target: "Object", stat: true, forced: Object.defineProperties !== defineProperties, sham: !DESCRIPTORS }, { + defineProperties: 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": function() { @@ -5841,6 +5845,40 @@ } }); + // 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": function() { + "use strict"; + var $ = require_export(); + var hasOwn = require_has_own_property(); + $({ target: "Object", stat: true }, { + hasOwn: hasOwn + }); + } + }); + + // node_modules/core-js/internals/same-value.js + var require_same_value = __commonJS({ + "node_modules/core-js/internals/same-value.js": function(exports, module) { + "use strict"; + module.exports = Object.is || function is(x, y) { + return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y; + }; + } + }); + + // node_modules/core-js/modules/es.object.is.js + var require_es_object_is = __commonJS({ + "node_modules/core-js/modules/es.object.is.js": function() { + "use strict"; + var $ = require_export(); + var is = require_same_value(); + $({ target: "Object", stat: true }, { + is: is + }); + } + }); + // node_modules/core-js/modules/es.object.keys.js var require_es_object_keys = __commonJS({ "node_modules/core-js/modules/es.object.keys.js": function() { @@ -5860,6 +5898,39 @@ } }); + // node_modules/core-js/modules/es.object.proto.js + var require_es_object_proto = __commonJS({ + "node_modules/core-js/modules/es.object.proto.js": function() { + "use strict"; + var DESCRIPTORS = require_descriptors(); + var defineBuiltInAccessor = require_define_built_in_accessor(); + var isObject = require_is_object(); + var isPossiblePrototype = require_is_possible_prototype(); + 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 (isPossiblePrototype(proto) && isObject(O)) { + setPrototypeOf(O, proto); + } + } + }); + } catch (error) { + } + } + }); + // 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": function() { @@ -5909,6 +5980,54 @@ } }); + // node_modules/core-js/modules/es.reflect.apply.js + var require_es_reflect_apply = __commonJS({ + "node_modules/core-js/modules/es.reflect.apply.js": function() { + "use strict"; + var $ = 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() { + }); + }); + $({ 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.to-string-tag.js + var require_es_reflect_to_string_tag = __commonJS({ + "node_modules/core-js/modules/es.reflect.to-string-tag.js": function() { + "use strict"; + var $ = require_export(); + var global2 = require_global(); + var setToStringTag = require_set_to_string_tag(); + $({ 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": function(exports, module) { + "use strict"; + 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": function(exports, module) { @@ -5938,6 +6057,22 @@ } }); + // node_modules/core-js/internals/regexp-get-flags.js + var require_regexp_get_flags = __commonJS({ + "node_modules/core-js/internals/regexp-get-flags.js": function(exports, module) { + "use strict"; + 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(R) { + var flags = R.flags; + return flags === void 0 && !("flags" in RegExpPrototype) && !hasOwn(R, "flags") && isPrototypeOf(RegExpPrototype, R) ? call(regExpFlags, R) : 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": function(exports, module) { @@ -5994,23 +6129,235 @@ } }); - // node_modules/core-js/internals/regexp-exec.js - var require_regexp_exec = __commonJS({ - "node_modules/core-js/internals/regexp-exec.js": function(exports, module) { + // node_modules/core-js/modules/es.regexp.constructor.js + var require_es_regexp_constructor = __commonJS({ + "node_modules/core-js/modules/es.regexp.constructor.js": function() { "use strict"; - var call = require_function_call(); + 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 create = require_object_create(); + 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 regexpFlags = require_regexp_flags(); + var getRegExpFlags = require_regexp_get_flags(); var stickyHelpers = require_regexp_sticky_helpers(); - var shared = require_shared(); - var create = require_object_create(); - var getInternalState = require_internal_state().get; + 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 nativeReplace = shared("native-string-replace", String.prototype.replace); - var nativeExec = RegExp.prototype.exec; - var patchedExec = nativeExec; + var MATCH = wellKnownSymbol("match"); + var NativeRegExp = global2.RegExp; + var RegExpPrototype = NativeRegExp.prototype; + var SyntaxError = 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 || String(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 = create(null); + var brackets = false; + var ncg = false; + var groupid = 0; + var groupname = ""; + var chr; + for (; index2 <= length; index2++) { + chr = charAt(string, index2); + if (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 SyntaxError("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, state; + 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) { + state = enforceInternalState(result); + if (dotAll) { + state.dotAll = true; + state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags); + } + if (sticky) + state.sticky = true; + if (groups.length) + state.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": function() { + "use strict"; + 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; + if (classof(this) === "RegExp") { + return !!getInternalState(this).dotAll; + } + throw new $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": function(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); @@ -6108,6 +6455,82 @@ } }); + // node_modules/core-js/modules/es.regexp.flags.js + var require_es_regexp_flags = __commonJS({ + "node_modules/core-js/modules/es.regexp.flags.js": function() { + "use strict"; + 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": function() { + "use strict"; + 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 new $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": function() { @@ -6145,22 +6568,6 @@ } }); - // node_modules/core-js/internals/regexp-get-flags.js - var require_regexp_get_flags = __commonJS({ - "node_modules/core-js/internals/regexp-get-flags.js": function(exports, module) { - "use strict"; - 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(R) { - var flags = R.flags; - return flags === void 0 && !("flags" in RegExpPrototype) && !hasOwn(R, "flags") && isPrototypeOf(RegExpPrototype, R) ? call(regExpFlags, R) : flags; - }; - } - }); - // 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": function() { @@ -6211,21 +6618,6 @@ } }); - // node_modules/core-js/internals/is-regexp.js - var require_is_regexp = __commonJS({ - "node_modules/core-js/internals/is-regexp.js": function(exports, module) { - "use strict"; - 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/not-a-regexp.js var require_not_a_regexp = __commonJS({ "node_modules/core-js/internals/not-a-regexp.js": function(exports, module) { @@ -6436,6 +6828,83 @@ } }); + // node_modules/core-js/internals/regexp-exec-abstract.js + var require_regexp_exec_abstract = __commonJS({ + "node_modules/core-js/internals/regexp-exec-abstract.js": function(exports, module) { + "use strict"; + 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(R, S) { + var exec = R.exec; + if (isCallable(exec)) { + var result = call(exec, R, S); + if (result !== null) + anObject(result); + return result; + } + if (classof(R) === "RegExp") + return call(regexpExec, R, S); + throw new $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": function() { + "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 S = toString(string); + var res = maybeCallNative(nativeMatch, rx, S); + if (res.done) + return res.value; + if (!rx.global) + return regExpExec(rx, S); + var fullUnicode = rx.unicode; + rx.lastIndex = 0; + var A = []; + var n = 0; + var result; + while ((result = regExpExec(rx, S)) !== null) { + var matchStr = toString(result[0]); + A[n] = matchStr; + if (matchStr === "") + rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); + n++; + } + return n === 0 ? null : A; + } + ]; + }); + } + }); + // node_modules/core-js/internals/get-substitution.js var require_get_substitution = __commonJS({ "node_modules/core-js/internals/get-substitution.js": function(exports, module) { @@ -6490,31 +6959,6 @@ } }); - // node_modules/core-js/internals/regexp-exec-abstract.js - var require_regexp_exec_abstract = __commonJS({ - "node_modules/core-js/internals/regexp-exec-abstract.js": function(exports, module) { - "use strict"; - 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(R, S) { - var exec = R.exec; - if (isCallable(exec)) { - var result = call(exec, R, S); - if (result !== null) - anObject(result); - return result; - } - if (classof(R) === "RegExp") - return call(regexpExec, R, S); - throw new $TypeError("RegExp#exec called on incompatible receiver"); - }; - } - }); - // node_modules/core-js/modules/es.string.replace.js var require_es_string_replace = __commonJS({ "node_modules/core-js/modules/es.string.replace.js": function() { @@ -6637,34 +7081,132 @@ } }); - // 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": function() { + // node_modules/core-js/modules/es.string.split.js + var require_es_string_split = __commonJS({ + "node_modules/core-js/modules/es.string.split.js": function() { "use strict"; - var $ = require_export(); - var uncurryThis = require_function_uncurry_this_clause(); - var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f; + 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 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 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 stringSlice = uncurryThis("".slice); + var getMethod = require_get_method(); + var regExpExec = require_regexp_exec_abstract(); + 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 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; - }(); - $({ 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 stringSlice(that, index, index + search.length) === search; - } + 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"; + }); + var BUGGY = "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; + fixRegExpWellKnownSymbolLogic("split", function(SPLIT, nativeSplit, maybeCallNative) { + var internalSplit = "0".split(void 0, 0).length ? function(separator, limit) { + return separator === void 0 && limit === 0 ? [] : call(nativeSplit, this, separator, limit); + } : 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 S = toString(string); + if (!BUGGY) { + var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); + if (res.done) + return res.value; + } + var C = 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 C(UNSUPPORTED_Y ? "^(?:" + rx.source + ")" : rx, flags); + var lim = limit === void 0 ? MAX_UINT32 : limit >>> 0; + if (lim === 0) + return []; + if (S.length === 0) + return regExpExec(splitter, S) === null ? [S] : []; + var p = 0; + var q = 0; + var A = []; + while (q < S.length) { + splitter.lastIndex = UNSUPPORTED_Y ? 0 : q; + var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S); + var e; + if (z === null || (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p) { + q = advanceStringIndex(S, q, unicodeMatching); + } else { + push(A, stringSlice(S, p, q)); + if (A.length === lim) + return A; + for (var i = 1; i <= z.length - 1; i++) { + push(A, z[i]); + if (A.length === lim) + return A; + } + q = p = e; + } + } + push(A, stringSlice(S, p)); + return A; + } + ]; + }, BUGGY || !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": function() { + "use strict"; + var $ = 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 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; + }(); + $({ 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 stringSlice(that, index, index + search.length) === search; + } }); } }); @@ -8822,14 +9364,13 @@ }); // build/.tmp/es5/synctastic.js - require_es_symbol_iterator(); require_es_symbol_to_primitive(); require_es_array_from(); require_es_date_to_primitive(); - require_es_object_proto(); require_es_reflect_construct(); require_es_symbol(); require_es_symbol_description(); + require_es_symbol_iterator(); require_es_error_cause(); require_es_error_to_string(); require_es_array_concat(); @@ -8855,8 +9396,10 @@ require_es_date_to_string(); require_es_function_bind(); require_es_function_name(); + require_es_global_this(); require_es_json_stringify(); require_es_map(); + require_es_math_trunc(); require_es_number_constructor(); require_es_number_is_finite(); require_es_number_is_integer(); @@ -8865,22 +9408,34 @@ require_es_number_to_fixed(); require_es_object_assign(); require_es_object_create(); + require_es_object_define_properties(); require_es_object_define_property(); require_es_object_entries(); require_es_object_get_own_property_descriptor(); 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_keys(); + require_es_object_proto(); require_es_object_set_prototype_of(); require_es_object_to_string(); require_es_parse_int(); + require_es_reflect_apply(); + 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_ends_with(); require_es_string_iterator(); + require_es_string_match(); require_es_string_replace(); + require_es_string_split(); require_es_string_starts_with(); require_es_string_trim(); require_es_typed_array_uint8_array(); @@ -9200,104 +9755,2667 @@ var require_EncoderDecoderTogether_min = __commonJS2({ "node_modules/fastestsmallesttextencoderdecoder/EncoderDecoderTogether.min.js": function node_modulesFastestsmallesttextencoderdecoderEncoderDecoderTogetherMinJs(exports) { "use strict"; - (function(r) { - function x() { + (function(r) { + function x() { + } + function y() { + } + var z = String.fromCharCode, v = {}.toString, A = v.call(r.SharedArrayBuffer), B = v(), q = r.Uint8Array, t = q || Array, w = q ? ArrayBuffer : t, C = w.isView || function(g) { + return g && "length" in g; + }, D = v.call(w.prototype); + w = y.prototype; + var E = r.TextEncoder, a = new (q ? Uint16Array : t)(32); + x.prototype.decode = function(g) { + if (!C(g)) { + var l = v.call(g); + if (l !== D && l !== A && l !== B) + throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); + g = q ? new t(g) : g || []; + } + for (var f = l = "", b = 0, c = g.length | 0, u = c - 32 | 0, e, d, h = 0, p = 0, m, k = 0, n = -1; b < c; ) { + for (e = b <= u ? 32 : c - b | 0; k < e; b = b + 1 | 0, k = k + 1 | 0) { + d = g[b] & 255; + switch (d >> 4) { + case 15: + m = g[b = b + 1 | 0] & 255; + if (2 !== m >> 6 || 247 < d) { + b = b - 1 | 0; + break; + } + h = (d & 7) << 6 | m & 63; + p = 5; + d = 256; + case 14: + m = g[b = b + 1 | 0] & 255, h <<= 6, h |= (d & 15) << 6 | m & 63, p = 2 === m >> 6 ? p + 4 | 0 : 24, d = d + 256 & 768; + case 13: + case 12: + m = g[b = b + 1 | 0] & 255, h <<= 6, h |= (d & 31) << 6 | m & 63, p = p + 7 | 0, b < c && 2 === m >> 6 && h >> p && 1114112 > h ? (d = h, h = h - 65536 | 0, 0 <= h && (n = (h >> 10) + 55296 | 0, d = (h & 1023) + 56320 | 0, 31 > k ? (a[k] = n, k = k + 1 | 0, n = -1) : (m = n, n = d, d = m))) : (d >>= 8, b = b - d - 1 | 0, d = 65533), h = p = 0, e = b <= u ? 32 : c - b | 0; + default: + a[k] = d; + continue; + case 11: + case 10: + case 9: + case 8: + } + a[k] = 65533; + } + f += z(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15], a[16], a[17], a[18], a[19], a[20], a[21], a[22], a[23], a[24], a[25], a[26], a[27], a[28], a[29], a[30], a[31]); + 32 > k && (f = f.slice(0, k - 32 | 0)); + if (b < c) { + if (a[0] = n, k = ~n >>> 31, n = -1, f.length < l.length) + continue; + } else + -1 !== n && (f += z(n)); + l += f; + f = ""; + } + return l; + }; + w.encode = function(g) { + g = void 0 === g ? "" : "" + g; + var l = g.length | 0, f = new t((l << 1) + 8 | 0), b, c = 0, u = !q; + for (b = 0; b < l; b = b + 1 | 0, c = c + 1 | 0) { + var e = g.charCodeAt(b) | 0; + if (127 >= e) + f[c] = e; + else { + if (2047 >= e) + f[c] = 192 | e >> 6; + else { + a: { + if (55296 <= e) + if (56319 >= e) { + var d = g.charCodeAt(b = b + 1 | 0) | 0; + if (56320 <= d && 57343 >= d) { + e = (e << 10) + d - 56613888 | 0; + if (65535 < e) { + f[c] = 240 | e >> 18; + f[c = c + 1 | 0] = 128 | e >> 12 & 63; + f[c = c + 1 | 0] = 128 | e >> 6 & 63; + f[c = c + 1 | 0] = 128 | e & 63; + continue; + } + break a; + } + e = 65533; + } else + 57343 >= e && (e = 65533); + !u && b << 1 < c && b << 1 < (c - 7 | 0) && (u = true, d = new t(3 * l), d.set(f), f = d); + } + f[c] = 224 | e >> 12; + f[c = c + 1 | 0] = 128 | e >> 6 & 63; + } + f[c = c + 1 | 0] = 128 | e & 63; + } + } + return q ? f.subarray(0, c) : f.slice(0, c); + }; + E || (r.TextDecoder = x, r.TextEncoder = y); + })("" + void 0 == (typeof global === "undefined" ? "undefined" : _typeof(global)) ? "" + void 0 == (typeof self === "undefined" ? "undefined" : _typeof(self)) ? exports : self : global); + } + }); + var require_fails2 = __commonJS2({ + "node_modules/core-js/internals/fails.js": function node_modulesCoreJsInternalsFailsJs(exports, module) { + "use strict"; + module.exports = function(exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; + } + }); + var require_descriptors2 = __commonJS2({ + "node_modules/core-js/internals/descriptors.js": function node_modulesCoreJsInternalsDescriptorsJs(exports, module) { + "use strict"; + var fails = require_fails2(); + module.exports = !fails(function() { + return Object.defineProperty({}, 1, { + get: function get() { + return 7; + } + })[1] !== 7; + }); + } + }); + var require_global2 = __commonJS2({ + "node_modules/core-js/internals/global.js": function node_modulesCoreJsInternalsGlobalJs(exports, module) { + "use strict"; + var check = function check2(it) { + return it && it.Math === Math && it; + }; + module.exports = // eslint-disable-next-line es/no-global-this -- safe + check((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) == "object" && globalThis) || check((typeof window === "undefined" ? "undefined" : _typeof(window)) == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe + check((typeof self === "undefined" ? "undefined" : _typeof(self)) == "object" && self) || check((typeof global === "undefined" ? "undefined" : _typeof(global)) == "object" && global) || check(_typeof(exports) == "object" && exports) || // eslint-disable-next-line no-new-func -- fallback + function() { + return this; + }() || Function("return this")(); + } + }); + var require_function_bind_native2 = __commonJS2({ + "node_modules/core-js/internals/function-bind-native.js": function node_modulesCoreJsInternalsFunctionBindNativeJs(exports, module) { + "use strict"; + var fails = require_fails2(); + module.exports = !fails(function() { + var test = function() { + }.bind(); + return typeof test != "function" || test.hasOwnProperty("prototype"); + }); + } + }); + var require_function_uncurry_this2 = __commonJS2({ + "node_modules/core-js/internals/function-uncurry-this.js": function node_modulesCoreJsInternalsFunctionUncurryThisJs(exports, module) { + "use strict"; + var NATIVE_BIND = require_function_bind_native2(); + 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); + }; + }; + } + }); + var require_is_callable2 = __commonJS2({ + "node_modules/core-js/internals/is-callable.js": function node_modulesCoreJsInternalsIsCallableJs(exports, module) { + "use strict"; + var documentAll = (typeof document === "undefined" ? "undefined" : _typeof(document)) == "object" && document.all; + module.exports = typeof documentAll == "undefined" && documentAll !== void 0 ? function(argument) { + return typeof argument == "function" || argument === documentAll; + } : function(argument) { + return typeof argument == "function"; + }; + } + }); + var require_is_forced2 = __commonJS2({ + "node_modules/core-js/internals/is-forced.js": function node_modulesCoreJsInternalsIsForcedJs(exports, module) { + "use strict"; + var fails = require_fails2(); + var isCallable = require_is_callable2(); + var replacement = /#|\.prototype\./; + var isForced = function isForced2(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; + } + }); + var require_is_object2 = __commonJS2({ + "node_modules/core-js/internals/is-object.js": function node_modulesCoreJsInternalsIsObjectJs(exports, module) { + "use strict"; + var isCallable = require_is_callable2(); + module.exports = function(it) { + return _typeof(it) == "object" ? it !== null : isCallable(it); + }; + } + }); + var require_try_to_string2 = __commonJS2({ + "node_modules/core-js/internals/try-to-string.js": function node_modulesCoreJsInternalsTryToStringJs(exports, module) { + "use strict"; + var $String = String; + module.exports = function(argument) { + try { + return $String(argument); + } catch (error) { + return "Object"; + } + }; + } + }); + var require_a_callable2 = __commonJS2({ + "node_modules/core-js/internals/a-callable.js": function node_modulesCoreJsInternalsACallableJs(exports, module) { + "use strict"; + var isCallable = require_is_callable2(); + var tryToString = require_try_to_string2(); + var $TypeError = TypeError; + module.exports = function(argument) { + if (isCallable(argument)) + return argument; + throw new $TypeError(tryToString(argument) + " is not a function"); + }; + } + }); + var require_function_uncurry_this_accessor2 = __commonJS2({ + "node_modules/core-js/internals/function-uncurry-this-accessor.js": function node_modulesCoreJsInternalsFunctionUncurryThisAccessorJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + var aCallable = require_a_callable2(); + module.exports = function(object, key, method) { + try { + return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method])); + } catch (error) { + } + }; + } + }); + var require_is_null_or_undefined2 = __commonJS2({ + "node_modules/core-js/internals/is-null-or-undefined.js": function node_modulesCoreJsInternalsIsNullOrUndefinedJs(exports, module) { + "use strict"; + module.exports = function(it) { + return it === null || it === void 0; + }; + } + }); + var require_require_object_coercible2 = __commonJS2({ + "node_modules/core-js/internals/require-object-coercible.js": function node_modulesCoreJsInternalsRequireObjectCoercibleJs(exports, module) { + "use strict"; + var isNullOrUndefined = require_is_null_or_undefined2(); + var $TypeError = TypeError; + module.exports = function(it) { + if (isNullOrUndefined(it)) + throw new $TypeError("Can't call method on " + it); + return it; + }; + } + }); + var require_is_possible_prototype2 = __commonJS2({ + "node_modules/core-js/internals/is-possible-prototype.js": function node_modulesCoreJsInternalsIsPossiblePrototypeJs(exports, module) { + "use strict"; + var isObject = require_is_object2(); + module.exports = function(argument) { + return isObject(argument) || argument === null; + }; + } + }); + var require_a_possible_prototype2 = __commonJS2({ + "node_modules/core-js/internals/a-possible-prototype.js": function node_modulesCoreJsInternalsAPossiblePrototypeJs(exports, module) { + "use strict"; + var isPossiblePrototype = require_is_possible_prototype2(); + var $String = String; + var $TypeError = TypeError; + module.exports = function(argument) { + if (isPossiblePrototype(argument)) + return argument; + throw new $TypeError("Can't set " + $String(argument) + " as a prototype"); + }; + } + }); + var require_object_set_prototype_of2 = __commonJS2({ + "node_modules/core-js/internals/object-set-prototype-of.js": function node_modulesCoreJsInternalsObjectSetPrototypeOfJs(exports, module) { + "use strict"; + var uncurryThisAccessor = require_function_uncurry_this_accessor2(); + var isObject = require_is_object2(); + var requireObjectCoercible = require_require_object_coercible2(); + var aPossiblePrototype = require_a_possible_prototype2(); + 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) { + requireObjectCoercible(O); + aPossiblePrototype(proto); + if (!isObject(O)) + return O; + if (CORRECT_SETTER) + setter(O, proto); + else + O.__proto__ = proto; + return O; + }; + }() : void 0); + } + }); + var require_inherit_if_required2 = __commonJS2({ + "node_modules/core-js/internals/inherit-if-required.js": function node_modulesCoreJsInternalsInheritIfRequiredJs(exports, module) { + "use strict"; + var isCallable = require_is_callable2(); + var isObject = require_is_object2(); + var setPrototypeOf = require_object_set_prototype_of2(); + 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; + }; + } + }); + var require_document_create_element2 = __commonJS2({ + "node_modules/core-js/internals/document-create-element.js": function node_modulesCoreJsInternalsDocumentCreateElementJs(exports, module) { + "use strict"; + var global2 = require_global2(); + var isObject = require_is_object2(); + var document2 = global2.document; + var EXISTS = isObject(document2) && isObject(document2.createElement); + module.exports = function(it) { + return EXISTS ? document2.createElement(it) : {}; + }; + } + }); + var require_ie8_dom_define2 = __commonJS2({ + "node_modules/core-js/internals/ie8-dom-define.js": function node_modulesCoreJsInternalsIe8DomDefineJs(exports, module) { + "use strict"; + var DESCRIPTORS = require_descriptors2(); + var fails = require_fails2(); + var createElement = require_document_create_element2(); + module.exports = !DESCRIPTORS && !fails(function() { + return Object.defineProperty(createElement("div"), "a", { + get: function get() { + return 7; + } + }).a !== 7; + }); + } + }); + var require_v8_prototype_define_bug2 = __commonJS2({ + "node_modules/core-js/internals/v8-prototype-define-bug.js": function node_modulesCoreJsInternalsV8PrototypeDefineBugJs(exports, module) { + "use strict"; + var DESCRIPTORS = require_descriptors2(); + var fails = require_fails2(); + module.exports = DESCRIPTORS && fails(function() { + return Object.defineProperty(function() { + }, "prototype", { + value: 42, + writable: false + }).prototype !== 42; + }); + } + }); + var require_an_object2 = __commonJS2({ + "node_modules/core-js/internals/an-object.js": function node_modulesCoreJsInternalsAnObjectJs(exports, module) { + "use strict"; + var isObject = require_is_object2(); + var $String = String; + var $TypeError = TypeError; + module.exports = function(argument) { + if (isObject(argument)) + return argument; + throw new $TypeError($String(argument) + " is not an object"); + }; + } + }); + var require_function_call2 = __commonJS2({ + "node_modules/core-js/internals/function-call.js": function node_modulesCoreJsInternalsFunctionCallJs(exports, module) { + "use strict"; + var NATIVE_BIND = require_function_bind_native2(); + var call = Function.prototype.call; + module.exports = NATIVE_BIND ? call.bind(call) : function() { + return call.apply(call, arguments); + }; + } + }); + var require_get_built_in2 = __commonJS2({ + "node_modules/core-js/internals/get-built-in.js": function node_modulesCoreJsInternalsGetBuiltInJs(exports, module) { + "use strict"; + var global2 = require_global2(); + var isCallable = require_is_callable2(); + var aFunction = function aFunction2(argument) { + return isCallable(argument) ? argument : void 0; + }; + module.exports = function(namespace, method) { + return arguments.length < 2 ? aFunction(global2[namespace]) : global2[namespace] && global2[namespace][method]; + }; + } + }); + var require_object_is_prototype_of2 = __commonJS2({ + "node_modules/core-js/internals/object-is-prototype-of.js": function node_modulesCoreJsInternalsObjectIsPrototypeOfJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + module.exports = uncurryThis({}.isPrototypeOf); + } + }); + var require_engine_user_agent2 = __commonJS2({ + "node_modules/core-js/internals/engine-user-agent.js": function node_modulesCoreJsInternalsEngineUserAgentJs(exports, module) { + "use strict"; + module.exports = typeof navigator != "undefined" && String(navigator.userAgent) || ""; + } + }); + var require_engine_v8_version2 = __commonJS2({ + "node_modules/core-js/internals/engine-v8-version.js": function node_modulesCoreJsInternalsEngineV8VersionJs(exports, module) { + "use strict"; + var global2 = require_global2(); + var userAgent = require_engine_user_agent2(); + var process2 = global2.process; + var Deno = global2.Deno; + var versions = process2 && process2.versions || Deno && Deno.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; + } + }); + var require_symbol_constructor_detection2 = __commonJS2({ + "node_modules/core-js/internals/symbol-constructor-detection.js": function node_modulesCoreJsInternalsSymbolConstructorDetectionJs(exports, module) { + "use strict"; + var V8_VERSION = require_engine_v8_version2(); + var fails = require_fails2(); + var global2 = require_global2(); + var $String = global2.String; + module.exports = !!Object.getOwnPropertySymbols && !fails(function() { + var symbol = Symbol("symbol detection"); + 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; + }); + } + }); + var require_use_symbol_as_uid2 = __commonJS2({ + "node_modules/core-js/internals/use-symbol-as-uid.js": function node_modulesCoreJsInternalsUseSymbolAsUidJs(exports, module) { + "use strict"; + var NATIVE_SYMBOL = require_symbol_constructor_detection2(); + module.exports = NATIVE_SYMBOL && !Symbol.sham && _typeof(Symbol.iterator) == "symbol"; + } + }); + var require_is_symbol2 = __commonJS2({ + "node_modules/core-js/internals/is-symbol.js": function node_modulesCoreJsInternalsIsSymbolJs(exports, module) { + "use strict"; + var getBuiltIn = require_get_built_in2(); + var isCallable = require_is_callable2(); + var isPrototypeOf = require_object_is_prototype_of2(); + var USE_SYMBOL_AS_UID = require_use_symbol_as_uid2(); + 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)); + }; + } + }); + var require_get_method2 = __commonJS2({ + "node_modules/core-js/internals/get-method.js": function node_modulesCoreJsInternalsGetMethodJs(exports, module) { + "use strict"; + var aCallable = require_a_callable2(); + var isNullOrUndefined = require_is_null_or_undefined2(); + module.exports = function(V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? void 0 : aCallable(func); + }; + } + }); + var require_ordinary_to_primitive2 = __commonJS2({ + "node_modules/core-js/internals/ordinary-to-primitive.js": function node_modulesCoreJsInternalsOrdinaryToPrimitiveJs(exports, module) { + "use strict"; + var call = require_function_call2(); + var isCallable = require_is_callable2(); + var isObject = require_is_object2(); + 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 new $TypeError("Can't convert object to primitive value"); + }; + } + }); + var require_is_pure2 = __commonJS2({ + "node_modules/core-js/internals/is-pure.js": function node_modulesCoreJsInternalsIsPureJs(exports, module) { + "use strict"; + module.exports = false; + } + }); + var require_define_global_property2 = __commonJS2({ + "node_modules/core-js/internals/define-global-property.js": function node_modulesCoreJsInternalsDefineGlobalPropertyJs(exports, module) { + "use strict"; + var global2 = require_global2(); + var defineProperty = Object.defineProperty; + module.exports = function(key, value) { + try { + defineProperty(global2, key, { + value: value, + configurable: true, + writable: true + }); + } catch (error) { + global2[key] = value; + } + return value; + }; + } + }); + var require_shared_store2 = __commonJS2({ + "node_modules/core-js/internals/shared-store.js": function node_modulesCoreJsInternalsSharedStoreJs(exports, module) { + "use strict"; + var IS_PURE = require_is_pure2(); + var globalThis2 = require_global2(); + var defineGlobalProperty = require_define_global_property2(); + var SHARED = "__core-js_shared__"; + var store = module.exports = globalThis2[SHARED] || defineGlobalProperty(SHARED, {}); + (store.versions || (store.versions = [])).push({ + version: "3.37.0", + mode: IS_PURE ? "pure" : "global", + copyright: "\xA9 2014-2024 Denis Pushkarev (zloirock.ru)", + license: "https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE", + source: "https://github.com/zloirock/core-js" + }); + } + }); + var require_shared2 = __commonJS2({ + "node_modules/core-js/internals/shared.js": function node_modulesCoreJsInternalsSharedJs(exports, module) { + "use strict"; + var store = require_shared_store2(); + module.exports = function(key, value) { + return store[key] || (store[key] = value || {}); + }; + } + }); + var require_to_object2 = __commonJS2({ + "node_modules/core-js/internals/to-object.js": function node_modulesCoreJsInternalsToObjectJs(exports, module) { + "use strict"; + var requireObjectCoercible = require_require_object_coercible2(); + var $Object = Object; + module.exports = function(argument) { + return $Object(requireObjectCoercible(argument)); + }; + } + }); + var require_has_own_property2 = __commonJS2({ + "node_modules/core-js/internals/has-own-property.js": function node_modulesCoreJsInternalsHasOwnPropertyJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + var toObject = require_to_object2(); + var hasOwnProperty = uncurryThis({}.hasOwnProperty); + module.exports = Object.hasOwn || function hasOwn(it, key) { + return hasOwnProperty(toObject(it), key); + }; + } + }); + var require_uid2 = __commonJS2({ + "node_modules/core-js/internals/uid.js": function node_modulesCoreJsInternalsUidJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + 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); + }; + } + }); + var require_well_known_symbol2 = __commonJS2({ + "node_modules/core-js/internals/well-known-symbol.js": function node_modulesCoreJsInternalsWellKnownSymbolJs(exports, module) { + "use strict"; + var global2 = require_global2(); + var shared = require_shared2(); + var hasOwn = require_has_own_property2(); + var uid = require_uid2(); + var NATIVE_SYMBOL = require_symbol_constructor_detection2(); + var USE_SYMBOL_AS_UID = require_use_symbol_as_uid2(); + 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]; + }; + } + }); + var require_to_primitive2 = __commonJS2({ + "node_modules/core-js/internals/to-primitive.js": function node_modulesCoreJsInternalsToPrimitiveJs(exports, module) { + "use strict"; + var call = require_function_call2(); + var isObject = require_is_object2(); + var isSymbol = require_is_symbol2(); + var getMethod = require_get_method2(); + var ordinaryToPrimitive = require_ordinary_to_primitive2(); + var wellKnownSymbol = require_well_known_symbol2(); + 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 new $TypeError("Can't convert object to primitive value"); + } + if (pref === void 0) + pref = "number"; + return ordinaryToPrimitive(input, pref); + }; + } + }); + var require_to_property_key2 = __commonJS2({ + "node_modules/core-js/internals/to-property-key.js": function node_modulesCoreJsInternalsToPropertyKeyJs(exports, module) { + "use strict"; + var toPrimitive = require_to_primitive2(); + var isSymbol = require_is_symbol2(); + module.exports = function(argument) { + var key = toPrimitive(argument, "string"); + return isSymbol(key) ? key : key + ""; + }; + } + }); + var require_object_define_property2 = __commonJS2({ + "node_modules/core-js/internals/object-define-property.js": function node_modulesCoreJsInternalsObjectDefinePropertyJs(exports) { + "use strict"; + var DESCRIPTORS = require_descriptors2(); + var IE8_DOM_DEFINE = require_ie8_dom_define2(); + var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug2(); + var anObject = require_an_object2(); + var toPropertyKey = require_to_property_key2(); + 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, P, Attributes) { + anObject(O); + P = toPropertyKey(P); + anObject(Attributes); + if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(O, P); + if (current && current[WRITABLE]) { + O[P] = Attributes.value; + Attributes = { + configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE], + enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], + writable: false + }; + } + } + return $defineProperty(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPropertyKey(P); + anObject(Attributes); + if (IE8_DOM_DEFINE) + try { + return $defineProperty(O, P, Attributes); + } catch (error) { + } + if ("get" in Attributes || "set" in Attributes) + throw new $TypeError("Accessors not supported"); + if ("value" in Attributes) + O[P] = Attributes.value; + return O; + }; + } + }); + var require_create_property_descriptor2 = __commonJS2({ + "node_modules/core-js/internals/create-property-descriptor.js": function node_modulesCoreJsInternalsCreatePropertyDescriptorJs(exports, module) { + "use strict"; + module.exports = function(bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; + } + }); + var require_create_non_enumerable_property2 = __commonJS2({ + "node_modules/core-js/internals/create-non-enumerable-property.js": function node_modulesCoreJsInternalsCreateNonEnumerablePropertyJs(exports, module) { + "use strict"; + var DESCRIPTORS = require_descriptors2(); + var definePropertyModule = require_object_define_property2(); + var createPropertyDescriptor = require_create_property_descriptor2(); + module.exports = DESCRIPTORS ? function(object, key, value) { + return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); + } : function(object, key, value) { + object[key] = value; + return object; + }; + } + }); + var require_classof_raw2 = __commonJS2({ + "node_modules/core-js/internals/classof-raw.js": function node_modulesCoreJsInternalsClassofRawJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + var toString = uncurryThis({}.toString); + var stringSlice = uncurryThis("".slice); + module.exports = function(it) { + return stringSlice(toString(it), 8, -1); + }; + } + }); + var require_indexed_object2 = __commonJS2({ + "node_modules/core-js/internals/indexed-object.js": function node_modulesCoreJsInternalsIndexedObjectJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + var fails = require_fails2(); + var classof = require_classof_raw2(); + 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; + } + }); + var require_to_indexed_object2 = __commonJS2({ + "node_modules/core-js/internals/to-indexed-object.js": function node_modulesCoreJsInternalsToIndexedObjectJs(exports, module) { + "use strict"; + var IndexedObject = require_indexed_object2(); + var requireObjectCoercible = require_require_object_coercible2(); + module.exports = function(it) { + return IndexedObject(requireObjectCoercible(it)); + }; + } + }); + var require_math_trunc2 = __commonJS2({ + "node_modules/core-js/internals/math-trunc.js": function node_modulesCoreJsInternalsMathTruncJs(exports, module) { + "use strict"; + var ceil = Math.ceil; + var floor = Math.floor; + module.exports = Math.trunc || function trunc(x) { + var n = +x; + return (n > 0 ? floor : ceil)(n); + }; + } + }); + var require_to_integer_or_infinity2 = __commonJS2({ + "node_modules/core-js/internals/to-integer-or-infinity.js": function node_modulesCoreJsInternalsToIntegerOrInfinityJs(exports, module) { + "use strict"; + var trunc = require_math_trunc2(); + module.exports = function(argument) { + var number = +argument; + return number !== number || number === 0 ? 0 : trunc(number); + }; + } + }); + var require_to_absolute_index2 = __commonJS2({ + "node_modules/core-js/internals/to-absolute-index.js": function node_modulesCoreJsInternalsToAbsoluteIndexJs(exports, module) { + "use strict"; + var toIntegerOrInfinity = require_to_integer_or_infinity2(); + 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); + }; + } + }); + var require_to_length2 = __commonJS2({ + "node_modules/core-js/internals/to-length.js": function node_modulesCoreJsInternalsToLengthJs(exports, module) { + "use strict"; + var toIntegerOrInfinity = require_to_integer_or_infinity2(); + var min = Math.min; + module.exports = function(argument) { + var len = toIntegerOrInfinity(argument); + return len > 0 ? min(len, 9007199254740991) : 0; + }; + } + }); + var require_length_of_array_like2 = __commonJS2({ + "node_modules/core-js/internals/length-of-array-like.js": function node_modulesCoreJsInternalsLengthOfArrayLikeJs(exports, module) { + "use strict"; + var toLength = require_to_length2(); + module.exports = function(obj) { + return toLength(obj.length); + }; + } + }); + var require_array_includes2 = __commonJS2({ + "node_modules/core-js/internals/array-includes.js": function node_modulesCoreJsInternalsArrayIncludesJs(exports, module) { + "use strict"; + var toIndexedObject = require_to_indexed_object2(); + var toAbsoluteIndex = require_to_absolute_index2(); + var lengthOfArrayLike = require_length_of_array_like2(); + var createMethod = function createMethod2(IS_INCLUDES) { + return function($this, el, fromIndex) { + var O = toIndexedObject($this); + var length = lengthOfArrayLike(O); + if (length === 0) + return !IS_INCLUDES && -1; + 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) + }; + } + }); + var require_hidden_keys2 = __commonJS2({ + "node_modules/core-js/internals/hidden-keys.js": function node_modulesCoreJsInternalsHiddenKeysJs(exports, module) { + "use strict"; + module.exports = {}; + } + }); + var require_object_keys_internal2 = __commonJS2({ + "node_modules/core-js/internals/object-keys-internal.js": function node_modulesCoreJsInternalsObjectKeysInternalJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + var hasOwn = require_has_own_property2(); + var toIndexedObject = require_to_indexed_object2(); + var indexOf = require_array_includes2().indexOf; + var hiddenKeys = require_hidden_keys2(); + var push = uncurryThis([].push); + module.exports = function(object, names) { + var O = toIndexedObject(object); + var i2 = 0; + var result = []; + var key; + for (key in O) + !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key); + while (names.length > i2) + if (hasOwn(O, key = names[i2++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + } + }); + var require_enum_bug_keys2 = __commonJS2({ + "node_modules/core-js/internals/enum-bug-keys.js": function node_modulesCoreJsInternalsEnumBugKeysJs(exports, module) { + "use strict"; + module.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"]; + } + }); + var require_object_keys2 = __commonJS2({ + "node_modules/core-js/internals/object-keys.js": function node_modulesCoreJsInternalsObjectKeysJs(exports, module) { + "use strict"; + var internalObjectKeys = require_object_keys_internal2(); + var enumBugKeys = require_enum_bug_keys2(); + module.exports = Object.keys || function keys(O) { + return internalObjectKeys(O, enumBugKeys); + }; + } + }); + var require_object_define_properties2 = __commonJS2({ + "node_modules/core-js/internals/object-define-properties.js": function node_modulesCoreJsInternalsObjectDefinePropertiesJs(exports) { + "use strict"; + var DESCRIPTORS = require_descriptors2(); + var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug2(); + var definePropertyModule = require_object_define_property2(); + var anObject = require_an_object2(); + var toIndexedObject = require_to_indexed_object2(); + var objectKeys = require_object_keys2(); + 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; + }; + } + }); + var require_html2 = __commonJS2({ + "node_modules/core-js/internals/html.js": function node_modulesCoreJsInternalsHtmlJs(exports, module) { + "use strict"; + var getBuiltIn = require_get_built_in2(); + module.exports = getBuiltIn("document", "documentElement"); + } + }); + var require_shared_key2 = __commonJS2({ + "node_modules/core-js/internals/shared-key.js": function node_modulesCoreJsInternalsSharedKeyJs(exports, module) { + "use strict"; + var shared = require_shared2(); + var uid = require_uid2(); + var keys = shared("keys"); + module.exports = function(key) { + return keys[key] || (keys[key] = uid(key)); + }; + } + }); + var require_object_create2 = __commonJS2({ + "node_modules/core-js/internals/object-create.js": function node_modulesCoreJsInternalsObjectCreateJs(exports, module) { + "use strict"; + var anObject = require_an_object2(); + var definePropertiesModule = require_object_define_properties2(); + var enumBugKeys = require_enum_bug_keys2(); + var hiddenKeys = require_hidden_keys2(); + var html = require_html2(); + var documentCreateElement = require_document_create_element2(); + var sharedKey = require_shared_key2(); + var GT = ">"; + var LT = "<"; + var PROTOTYPE = "prototype"; + var SCRIPT = "script"; + var IE_PROTO = sharedKey("IE_PROTO"); + var EmptyConstructor = function EmptyConstructor2() { + }; + var scriptTag = function scriptTag2(content) { + return LT + SCRIPT + GT + content + LT + "/" + SCRIPT + GT; + }; + var NullProtoObjectViaActiveX = function NullProtoObjectViaActiveX2(activeXDocument2) { + activeXDocument2.write(scriptTag("")); + activeXDocument2.close(); + var temp = activeXDocument2.parentWindow.Object; + activeXDocument2 = null; + return temp; + }; + var NullProtoObjectViaIFrame = function NullProtoObjectViaIFrame2() { + 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 NullProtoObject() { + 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); + }; + } + }); + var require_object_get_own_property_names2 = __commonJS2({ + "node_modules/core-js/internals/object-get-own-property-names.js": function node_modulesCoreJsInternalsObjectGetOwnPropertyNamesJs(exports) { + "use strict"; + var internalObjectKeys = require_object_keys_internal2(); + var enumBugKeys = require_enum_bug_keys2(); + var hiddenKeys = enumBugKeys.concat("length", "prototype"); + exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return internalObjectKeys(O, hiddenKeys); + }; + } + }); + var require_is_regexp2 = __commonJS2({ + "node_modules/core-js/internals/is-regexp.js": function node_modulesCoreJsInternalsIsRegexpJs(exports, module) { + "use strict"; + var isObject = require_is_object2(); + var classof = require_classof_raw2(); + var wellKnownSymbol = require_well_known_symbol2(); + var MATCH = wellKnownSymbol("match"); + module.exports = function(it) { + var isRegExp; + return isObject(it) && ((isRegExp = it[MATCH]) !== void 0 ? !!isRegExp : classof(it) === "RegExp"); + }; + } + }); + var require_to_string_tag_support2 = __commonJS2({ + "node_modules/core-js/internals/to-string-tag-support.js": function node_modulesCoreJsInternalsToStringTagSupportJs(exports, module) { + "use strict"; + var wellKnownSymbol = require_well_known_symbol2(); + var TO_STRING_TAG = wellKnownSymbol("toStringTag"); + var test = {}; + test[TO_STRING_TAG] = "z"; + module.exports = String(test) === "[object z]"; + } + }); + var require_classof2 = __commonJS2({ + "node_modules/core-js/internals/classof.js": function node_modulesCoreJsInternalsClassofJs(exports, module) { + "use strict"; + var TO_STRING_TAG_SUPPORT = require_to_string_tag_support2(); + var isCallable = require_is_callable2(); + var classofRaw = require_classof_raw2(); + var wellKnownSymbol = require_well_known_symbol2(); + var TO_STRING_TAG = wellKnownSymbol("toStringTag"); + var $Object = Object; + var CORRECT_ARGUMENTS = classofRaw(function() { + return arguments; + }()) === "Arguments"; + var tryGet = function tryGet2(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; + }; + } + }); + var require_to_string2 = __commonJS2({ + "node_modules/core-js/internals/to-string.js": function node_modulesCoreJsInternalsToStringJs(exports, module) { + "use strict"; + var classof = require_classof2(); + var $String = String; + module.exports = function(argument) { + if (classof(argument) === "Symbol") + throw new TypeError("Cannot convert a Symbol value to a string"); + return $String(argument); + }; + } + }); + var require_regexp_flags2 = __commonJS2({ + "node_modules/core-js/internals/regexp-flags.js": function node_modulesCoreJsInternalsRegexpFlagsJs(exports, module) { + "use strict"; + var anObject = require_an_object2(); + 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; + }; + } + }); + var require_regexp_get_flags2 = __commonJS2({ + "node_modules/core-js/internals/regexp-get-flags.js": function node_modulesCoreJsInternalsRegexpGetFlagsJs(exports, module) { + "use strict"; + var call = require_function_call2(); + var hasOwn = require_has_own_property2(); + var isPrototypeOf = require_object_is_prototype_of2(); + var regExpFlags = require_regexp_flags2(); + var RegExpPrototype = RegExp.prototype; + module.exports = function(R) { + var flags = R.flags; + return flags === void 0 && !("flags" in RegExpPrototype) && !hasOwn(R, "flags") && isPrototypeOf(RegExpPrototype, R) ? call(regExpFlags, R) : flags; + }; + } + }); + var require_regexp_sticky_helpers2 = __commonJS2({ + "node_modules/core-js/internals/regexp-sticky-helpers.js": function node_modulesCoreJsInternalsRegexpStickyHelpersJs(exports, module) { + "use strict"; + var fails = require_fails2(); + var global2 = require_global2(); + 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: BROKEN_CARET, + MISSED_STICKY: MISSED_STICKY, + UNSUPPORTED_Y: UNSUPPORTED_Y + }; + } + }); + var require_proxy_accessor2 = __commonJS2({ + "node_modules/core-js/internals/proxy-accessor.js": function node_modulesCoreJsInternalsProxyAccessorJs(exports, module) { + "use strict"; + var defineProperty = require_object_define_property2().f; + module.exports = function(Target, Source, key) { + key in Target || defineProperty(Target, key, { + configurable: true, + get: function get() { + return Source[key]; + }, + set: function set(it) { + Source[key] = it; + } + }); + }; + } + }); + var require_function_name2 = __commonJS2({ + "node_modules/core-js/internals/function-name.js": function node_modulesCoreJsInternalsFunctionNameJs(exports, module) { + "use strict"; + var DESCRIPTORS = require_descriptors2(); + var hasOwn = require_has_own_property2(); + 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: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + } + }); + var require_inspect_source2 = __commonJS2({ + "node_modules/core-js/internals/inspect-source.js": function node_modulesCoreJsInternalsInspectSourceJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + var isCallable = require_is_callable2(); + var store = require_shared_store2(); + var functionToString = uncurryThis(Function.toString); + if (!isCallable(store.inspectSource)) { + store.inspectSource = function(it) { + return functionToString(it); + }; + } + module.exports = store.inspectSource; + } + }); + var require_weak_map_basic_detection2 = __commonJS2({ + "node_modules/core-js/internals/weak-map-basic-detection.js": function node_modulesCoreJsInternalsWeakMapBasicDetectionJs(exports, module) { + "use strict"; + var global2 = require_global2(); + var isCallable = require_is_callable2(); + var WeakMap = global2.WeakMap; + module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap)); + } + }); + var require_internal_state2 = __commonJS2({ + "node_modules/core-js/internals/internal-state.js": function node_modulesCoreJsInternalsInternalStateJs(exports, module) { + "use strict"; + var NATIVE_WEAK_MAP = require_weak_map_basic_detection2(); + var global2 = require_global2(); + var isObject = require_is_object2(); + var createNonEnumerableProperty = require_create_non_enumerable_property2(); + var hasOwn = require_has_own_property2(); + var shared = require_shared_store2(); + var sharedKey = require_shared_key2(); + var hiddenKeys = require_hidden_keys2(); + var OBJECT_ALREADY_INITIALIZED = "Object already initialized"; + var TypeError2 = global2.TypeError; + var WeakMap = global2.WeakMap; + var set; + var get; + var has; + var enforce = function enforce2(it) { + return has(it) ? get(it) : set(it, {}); + }; + var getterFor = function getterFor2(TYPE) { + return function(it) { + var state; + if (!isObject(it) || (state = get(it)).type !== TYPE) { + throw new TypeError2("Incompatible receiver, " + TYPE + " required"); + } + return state; + }; + }; + if (NATIVE_WEAK_MAP || shared.state) { + store = shared.state || (shared.state = new WeakMap()); + store.get = store.get; + store.has = store.has; + store.set = store.set; + set = function set2(it, metadata) { + if (store.has(it)) + throw new TypeError2(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function get2(it) { + return store.get(it) || {}; + }; + has = function has2(it) { + return store.has(it); + }; + } else { + STATE = sharedKey("state"); + hiddenKeys[STATE] = true; + set = function set2(it, metadata) { + if (hasOwn(it, STATE)) + throw new TypeError2(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty(it, STATE, metadata); + return metadata; + }; + get = function get2(it) { + return hasOwn(it, STATE) ? it[STATE] : {}; + }; + has = function has2(it) { + return hasOwn(it, STATE); + }; + } + var store; + var STATE; + module.exports = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + } + }); + var require_make_built_in2 = __commonJS2({ + "node_modules/core-js/internals/make-built-in.js": function node_modulesCoreJsInternalsMakeBuiltInJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + var fails = require_fails2(); + var isCallable = require_is_callable2(); + var hasOwn = require_has_own_property2(); + var DESCRIPTORS = require_descriptors2(); + var CONFIGURABLE_FUNCTION_NAME = require_function_name2().CONFIGURABLE; + var inspectSource = require_inspect_source2(); + var InternalStateModule = require_internal_state2(); + 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 state = enforceInternalState(value); + if (!hasOwn(state, "source")) { + state.source = join(TEMPLATE, typeof name == "string" ? name : ""); + } + return value; + }; + Function.prototype.toString = makeBuiltIn(function toString() { + return isCallable(this) && getInternalState(this).source || inspectSource(this); + }, "toString"); + } + }); + var require_define_built_in2 = __commonJS2({ + "node_modules/core-js/internals/define-built-in.js": function node_modulesCoreJsInternalsDefineBuiltInJs(exports, module) { + "use strict"; + var isCallable = require_is_callable2(); + var definePropertyModule = require_object_define_property2(); + var makeBuiltIn = require_make_built_in2(); + var defineGlobalProperty = require_define_global_property2(); + 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: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } + return O; + }; + } + }); + var require_define_built_in_accessor2 = __commonJS2({ + "node_modules/core-js/internals/define-built-in-accessor.js": function node_modulesCoreJsInternalsDefineBuiltInAccessorJs(exports, module) { + "use strict"; + var makeBuiltIn = require_make_built_in2(); + var defineProperty = require_object_define_property2(); + 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); + }; + } + }); + var require_set_species2 = __commonJS2({ + "node_modules/core-js/internals/set-species.js": function node_modulesCoreJsInternalsSetSpeciesJs(exports, module) { + "use strict"; + var getBuiltIn = require_get_built_in2(); + var defineBuiltInAccessor = require_define_built_in_accessor2(); + var wellKnownSymbol = require_well_known_symbol2(); + var DESCRIPTORS = require_descriptors2(); + 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 get() { + return this; + } + }); + } + }; + } + }); + var require_regexp_unsupported_dot_all2 = __commonJS2({ + "node_modules/core-js/internals/regexp-unsupported-dot-all.js": function node_modulesCoreJsInternalsRegexpUnsupportedDotAllJs(exports, module) { + "use strict"; + var fails = require_fails2(); + var global2 = require_global2(); + var $RegExp = global2.RegExp; + module.exports = fails(function() { + var re = $RegExp(".", "s"); + return !(re.dotAll && re.test("\n") && re.flags === "s"); + }); + } + }); + var require_regexp_unsupported_ncg2 = __commonJS2({ + "node_modules/core-js/internals/regexp-unsupported-ncg.js": function node_modulesCoreJsInternalsRegexpUnsupportedNcgJs(exports, module) { + "use strict"; + var fails = require_fails2(); + var global2 = require_global2(); + 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"; + }); + } + }); + var require_es_regexp_constructor2 = __commonJS2({ + "node_modules/core-js/modules/es.regexp.constructor.js": function node_modulesCoreJsModulesEsRegexpConstructorJs() { + "use strict"; + var DESCRIPTORS = require_descriptors2(); + var global2 = require_global2(); + var uncurryThis = require_function_uncurry_this2(); + var isForced = require_is_forced2(); + var inheritIfRequired = require_inherit_if_required2(); + var createNonEnumerableProperty = require_create_non_enumerable_property2(); + var create = require_object_create2(); + var getOwnPropertyNames = require_object_get_own_property_names2().f; + var isPrototypeOf = require_object_is_prototype_of2(); + var isRegExp = require_is_regexp2(); + var toString = require_to_string2(); + var getRegExpFlags = require_regexp_get_flags2(); + var stickyHelpers = require_regexp_sticky_helpers2(); + var proxyAccessor = require_proxy_accessor2(); + var defineBuiltIn = require_define_built_in2(); + var fails = require_fails2(); + var hasOwn = require_has_own_property2(); + var enforceInternalState = require_internal_state2().enforce; + var setSpecies = require_set_species2(); + var wellKnownSymbol = require_well_known_symbol2(); + var UNSUPPORTED_DOT_ALL = require_regexp_unsupported_dot_all2(); + var UNSUPPORTED_NCG = require_regexp_unsupported_ncg2(); + var MATCH = wellKnownSymbol("match"); + var NativeRegExp = global2.RegExp; + var RegExpPrototype = NativeRegExp.prototype; + var SyntaxError = 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 || String(NativeRegExp(re1, "i")) !== "/a/i"; + })); + var handleDotAll = function handleDotAll2(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 handleNCG2(string) { + var length = string.length; + var index2 = 0; + var result = ""; + var named = []; + var names = create(null); + var brackets = false; + var ncg = false; + var groupid = 0; + var groupname = ""; + var chr; + for (; index2 <= length; index2++) { + chr = charAt(string, index2); + if (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 SyntaxError("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, state; + 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) { + state = enforceInternalState(result); + if (dotAll) { + state.dotAll = true; + state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags); + } + if (sticky) + state.sticky = true; + if (groups.length) + state.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"); + } + }); + var require_es_regexp_to_string2 = __commonJS2({ + "node_modules/core-js/modules/es.regexp.to-string.js": function node_modulesCoreJsModulesEsRegexpToStringJs() { + "use strict"; + var PROPER_FUNCTION_NAME = require_function_name2().PROPER; + var defineBuiltIn = require_define_built_in2(); + var anObject = require_an_object2(); + var $toString = require_to_string2(); + var fails = require_fails2(); + var getRegExpFlags = require_regexp_get_flags2(); + 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(RegExpPrototype, TO_STRING, function toString() { + var R = anObject(this); + var pattern = $toString(R.source); + var flags = $toString(getRegExpFlags(R)); + return "/" + pattern + "/" + flags; + }, { + unsafe: true + }); + } + } + }); + var require_es_regexp_dot_all2 = __commonJS2({ + "node_modules/core-js/modules/es.regexp.dot-all.js": function node_modulesCoreJsModulesEsRegexpDotAllJs() { + "use strict"; + var DESCRIPTORS = require_descriptors2(); + var UNSUPPORTED_DOT_ALL = require_regexp_unsupported_dot_all2(); + var classof = require_classof_raw2(); + var defineBuiltInAccessor = require_define_built_in_accessor2(); + var getInternalState = require_internal_state2().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; + if (classof(this) === "RegExp") { + return !!getInternalState(this).dotAll; + } + throw new $TypeError("Incompatible receiver, RegExp required"); + } + }); + } + } + }); + var require_object_property_is_enumerable2 = __commonJS2({ + "node_modules/core-js/internals/object-property-is-enumerable.js": function node_modulesCoreJsInternalsObjectPropertyIsEnumerableJs(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(V) { + var descriptor = getOwnPropertyDescriptor(this, V); + return !!descriptor && descriptor.enumerable; + } : $propertyIsEnumerable; + } + }); + var require_object_get_own_property_descriptor2 = __commonJS2({ + "node_modules/core-js/internals/object-get-own-property-descriptor.js": function node_modulesCoreJsInternalsObjectGetOwnPropertyDescriptorJs(exports) { + "use strict"; + var DESCRIPTORS = require_descriptors2(); + var call = require_function_call2(); + var propertyIsEnumerableModule = require_object_property_is_enumerable2(); + var createPropertyDescriptor = require_create_property_descriptor2(); + var toIndexedObject = require_to_indexed_object2(); + var toPropertyKey = require_to_property_key2(); + var hasOwn = require_has_own_property2(); + var IE8_DOM_DEFINE = require_ie8_dom_define2(); + var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject(O); + P = toPropertyKey(P); + if (IE8_DOM_DEFINE) + try { + return $getOwnPropertyDescriptor(O, P); + } catch (error) { + } + if (hasOwn(O, P)) + return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + } + }); + var require_object_get_own_property_symbols2 = __commonJS2({ + "node_modules/core-js/internals/object-get-own-property-symbols.js": function node_modulesCoreJsInternalsObjectGetOwnPropertySymbolsJs(exports) { + "use strict"; + exports.f = Object.getOwnPropertySymbols; + } + }); + var require_own_keys2 = __commonJS2({ + "node_modules/core-js/internals/own-keys.js": function node_modulesCoreJsInternalsOwnKeysJs(exports, module) { + "use strict"; + var getBuiltIn = require_get_built_in2(); + var uncurryThis = require_function_uncurry_this2(); + var getOwnPropertyNamesModule = require_object_get_own_property_names2(); + var getOwnPropertySymbolsModule = require_object_get_own_property_symbols2(); + var anObject = require_an_object2(); + 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; + }; + } + }); + var require_copy_constructor_properties2 = __commonJS2({ + "node_modules/core-js/internals/copy-constructor-properties.js": function node_modulesCoreJsInternalsCopyConstructorPropertiesJs(exports, module) { + "use strict"; + var hasOwn = require_has_own_property2(); + var ownKeys = require_own_keys2(); + var getOwnPropertyDescriptorModule = require_object_get_own_property_descriptor2(); + var definePropertyModule = require_object_define_property2(); + module.exports = function(target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i2 = 0; i2 < keys.length; i2++) { + var key = keys[i2]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + } + }); + var require_export2 = __commonJS2({ + "node_modules/core-js/internals/export.js": function node_modulesCoreJsInternalsExportJs(exports, module) { + "use strict"; + var global2 = require_global2(); + var getOwnPropertyDescriptor = require_object_get_own_property_descriptor2().f; + var createNonEnumerableProperty = require_create_non_enumerable_property2(); + var defineBuiltIn = require_define_built_in2(); + var defineGlobalProperty = require_define_global_property2(); + var copyConstructorProperties = require_copy_constructor_properties2(); + var isForced = require_is_forced2(); + 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] && 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); + } + }; + } + }); + var require_regexp_exec2 = __commonJS2({ + "node_modules/core-js/internals/regexp-exec.js": function node_modulesCoreJsInternalsRegexpExecJs(exports, module) { + "use strict"; + var call = require_function_call2(); + var uncurryThis = require_function_uncurry_this2(); + var toString = require_to_string2(); + var regexpFlags = require_regexp_flags2(); + var stickyHelpers = require_regexp_sticky_helpers2(); + var shared = require_shared2(); + var create = require_object_create2(); + var getInternalState = require_internal_state2().get; + var UNSUPPORTED_DOT_ALL = require_regexp_unsupported_dot_all2(); + var UNSUPPORTED_NCG = require_regexp_unsupported_ncg2(); + 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 state = getInternalState(re); + var str = toString(string); + var raw = state.raw; + var result, reCopy, lastIndex, match, i2, object, group; + if (raw) { + raw.lastIndex = re.lastIndex; + result = call(patchedExec, raw, str); + re.lastIndex = raw.lastIndex; + return result; + } + var groups = state.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 (i2 = 1; i2 < arguments.length - 2; i2++) { + if (arguments[i2] === void 0) + match[i2] = void 0; + } + }); + } + if (match && groups) { + match.groups = object = create(null); + for (i2 = 0; i2 < groups.length; i2++) { + group = groups[i2]; + object[group[0]] = match[group[1]]; + } + } + return match; + }; + } + module.exports = patchedExec; + } + }); + var require_es_regexp_exec2 = __commonJS2({ + "node_modules/core-js/modules/es.regexp.exec.js": function node_modulesCoreJsModulesEsRegexpExecJs() { + "use strict"; + var $ = require_export2(); + var exec = require_regexp_exec2(); + $({ + target: "RegExp", + proto: true, + forced: /./.exec !== exec + }, { + exec: exec + }); + } + }); + var require_es_regexp_flags2 = __commonJS2({ + "node_modules/core-js/modules/es.regexp.flags.js": function node_modulesCoreJsModulesEsRegexpFlagsJs() { + "use strict"; + var global2 = require_global2(); + var DESCRIPTORS = require_descriptors2(); + var defineBuiltInAccessor = require_define_built_in_accessor2(); + var regExpFlags = require_regexp_flags2(); + var fails = require_fails2(); + 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 addGetter2(key2, chr) { + Object.defineProperty(O, key2, { + get: function get() { + 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 + }); + } + }); + var require_es_regexp_sticky2 = __commonJS2({ + "node_modules/core-js/modules/es.regexp.sticky.js": function node_modulesCoreJsModulesEsRegexpStickyJs() { + "use strict"; + var DESCRIPTORS = require_descriptors2(); + var MISSED_STICKY = require_regexp_sticky_helpers2().MISSED_STICKY; + var classof = require_classof_raw2(); + var defineBuiltInAccessor = require_define_built_in_accessor2(); + var getInternalState = require_internal_state2().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 new $TypeError("Incompatible receiver, RegExp required"); + } + }); + } + } + }); + var require_es_regexp_test2 = __commonJS2({ + "node_modules/core-js/modules/es.regexp.test.js": function node_modulesCoreJsModulesEsRegexpTestJs() { + "use strict"; + require_es_regexp_exec2(); + var $ = require_export2(); + var call = require_function_call2(); + var isCallable = require_is_callable2(); + var anObject = require_an_object2(); + var toString = require_to_string2(); + 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; + $({ + target: "RegExp", + proto: true, + forced: !DELEGATES_TO_EXEC + }, { + test: function test(S) { + var R = anObject(this); + var string = toString(S); + var exec = R.exec; + if (!isCallable(exec)) + return call(nativeTest, R, string); + var result = call(exec, R, string); + if (result === null) + return false; + anObject(result); + return true; + } + }); + } + }); + var require_fix_regexp_well_known_symbol_logic2 = __commonJS2({ + "node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js": function node_modulesCoreJsInternalsFixRegexpWellKnownSymbolLogicJs(exports, module) { + "use strict"; + require_es_regexp_exec2(); + var call = require_function_call2(); + var defineBuiltIn = require_define_built_in2(); + var regexpExec = require_regexp_exec2(); + var fails = require_fails2(); + var wellKnownSymbol = require_well_known_symbol2(); + var createNonEnumerableProperty = require_create_non_enumerable_property2(); + 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 nativeRegExpMethod = /./[SYMBOL]; + var methods = exec(SYMBOL, ""[KEY], function(nativeMethod, regexp, str, arg2, forceStringMethod) { + var $exec = regexp.exec; + if ($exec === regexpExec || $exec === RegExpPrototype.exec) { + if (DELEGATES_TO_SYMBOL && !forceStringMethod) { + return { + done: true, + value: call(nativeRegExpMethod, regexp, str, arg2) + }; + } + return { + done: true, + value: call(nativeMethod, str, regexp, arg2) + }; + } + return { + done: false + }; + }); + defineBuiltIn(String.prototype, KEY, methods[0]); + defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]); + } + if (SHAM) + createNonEnumerableProperty(RegExpPrototype[SYMBOL], "sham", true); + }; + } + }); + var require_string_multibyte2 = __commonJS2({ + "node_modules/core-js/internals/string-multibyte.js": function node_modulesCoreJsInternalsStringMultibyteJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + var toIntegerOrInfinity = require_to_integer_or_infinity2(); + var toString = require_to_string2(); + var requireObjectCoercible = require_require_object_coercible2(); + var charAt = uncurryThis("".charAt); + var charCodeAt = uncurryThis("".charCodeAt); + var stringSlice = uncurryThis("".slice); + var createMethod = function createMethod2(CONVERT_TO_STRING) { + return function($this, pos) { + var S = toString(requireObjectCoercible($this)); + var position = toIntegerOrInfinity(pos); + var size = S.length; + var first, second; + if (position < 0 || position >= size) + return CONVERT_TO_STRING ? "" : void 0; + first = charCodeAt(S, position); + return first < 55296 || first > 56319 || position + 1 === size || (second = charCodeAt(S, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt(S, position) : first : CONVERT_TO_STRING ? stringSlice(S, 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) + }; + } + }); + var require_advance_string_index2 = __commonJS2({ + "node_modules/core-js/internals/advance-string-index.js": function node_modulesCoreJsInternalsAdvanceStringIndexJs(exports, module) { + "use strict"; + var charAt = require_string_multibyte2().charAt; + module.exports = function(S, index, unicode) { + return index + (unicode ? charAt(S, index).length : 1); + }; + } + }); + var require_regexp_exec_abstract2 = __commonJS2({ + "node_modules/core-js/internals/regexp-exec-abstract.js": function node_modulesCoreJsInternalsRegexpExecAbstractJs(exports, module) { + "use strict"; + var call = require_function_call2(); + var anObject = require_an_object2(); + var isCallable = require_is_callable2(); + var classof = require_classof_raw2(); + var regexpExec = require_regexp_exec2(); + var $TypeError = TypeError; + module.exports = function(R, S) { + var exec = R.exec; + if (isCallable(exec)) { + var result = call(exec, R, S); + if (result !== null) + anObject(result); + return result; } - function y() { + if (classof(R) === "RegExp") + return call(regexpExec, R, S); + throw new $TypeError("RegExp#exec called on incompatible receiver"); + }; + } + }); + var require_es_string_match2 = __commonJS2({ + "node_modules/core-js/modules/es.string.match.js": function node_modulesCoreJsModulesEsStringMatchJs() { + "use strict"; + var call = require_function_call2(); + var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic2(); + var anObject = require_an_object2(); + var isNullOrUndefined = require_is_null_or_undefined2(); + var toLength = require_to_length2(); + var toString = require_to_string2(); + var requireObjectCoercible = require_require_object_coercible2(); + var getMethod = require_get_method2(); + var advanceStringIndex = require_advance_string_index2(); + var regExpExec = require_regexp_exec_abstract2(); + 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 S = toString(string); + var res = maybeCallNative(nativeMatch, rx, S); + if (res.done) + return res.value; + if (!rx.global) + return regExpExec(rx, S); + var fullUnicode = rx.unicode; + rx.lastIndex = 0; + var A = []; + var n = 0; + var result; + while ((result = regExpExec(rx, S)) !== null) { + var matchStr = toString(result[0]); + A[n] = matchStr; + if (matchStr === "") + rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); + n++; + } + return n === 0 ? null : A; + } + ]; + }); + } + }); + var require_function_apply2 = __commonJS2({ + "node_modules/core-js/internals/function-apply.js": function node_modulesCoreJsInternalsFunctionApplyJs(exports, module) { + "use strict"; + var NATIVE_BIND = require_function_bind_native2(); + var FunctionPrototype = Function.prototype; + var apply = FunctionPrototype.apply; + var call = FunctionPrototype.call; + module.exports = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) == "object" && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function() { + return call.apply(apply, arguments); + }); + } + }); + var require_get_substitution2 = __commonJS2({ + "node_modules/core-js/internals/get-substitution.js": function node_modulesCoreJsInternalsGetSubstitutionJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + var toObject = require_to_object2(); + 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 m = captures.length; + var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; + if (namedCaptures !== void 0) { + namedCaptures = toObject(namedCaptures); + symbols = SUBSTITUTION_SYMBOLS; } - var z = String.fromCharCode, v = {}.toString, A = v.call(r.SharedArrayBuffer), B = v(), q = r.Uint8Array, t = q || Array, w = q ? ArrayBuffer : t, C = w.isView || function(g) { - return g && "length" in g; - }, D = v.call(w.prototype); - w = y.prototype; - var E = r.TextEncoder, a = new (q ? Uint16Array : t)(32); - x.prototype.decode = function(g) { - if (!C(g)) { - var l = v.call(g); - if (l !== D && l !== A && l !== B) - throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); - g = q ? new t(g) : g || []; + 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 n = +ch; + if (n === 0) + return match; + if (n > m) { + var f = floor(n / 10); + if (f === 0) + return match; + if (f <= m) + return captures[f - 1] === void 0 ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1); + return match; + } + capture = captures[n - 1]; } - for (var f = l = "", b = 0, c = g.length | 0, u = c - 32 | 0, e, d, h = 0, p = 0, m, k = 0, n = -1; b < c; ) { - for (e = b <= u ? 32 : c - b | 0; k < e; b = b + 1 | 0, k = k + 1 | 0) { - d = g[b] & 255; - switch (d >> 4) { - case 15: - m = g[b = b + 1 | 0] & 255; - if (2 !== m >> 6 || 247 < d) { - b = b - 1 | 0; - break; - } - h = (d & 7) << 6 | m & 63; - p = 5; - d = 256; - case 14: - m = g[b = b + 1 | 0] & 255, h <<= 6, h |= (d & 15) << 6 | m & 63, p = 2 === m >> 6 ? p + 4 | 0 : 24, d = d + 256 & 768; - case 13: - case 12: - m = g[b = b + 1 | 0] & 255, h <<= 6, h |= (d & 31) << 6 | m & 63, p = p + 7 | 0, b < c && 2 === m >> 6 && h >> p && 1114112 > h ? (d = h, h = h - 65536 | 0, 0 <= h && (n = (h >> 10) + 55296 | 0, d = (h & 1023) + 56320 | 0, 31 > k ? (a[k] = n, k = k + 1 | 0, n = -1) : (m = n, n = d, d = m))) : (d >>= 8, b = b - d - 1 | 0, d = 65533), h = p = 0, e = b <= u ? 32 : c - b | 0; - default: - a[k] = d; - continue; - case 11: - case 10: - case 9: - case 8: + return capture === void 0 ? "" : capture; + }); + }; + } + }); + var require_es_string_replace2 = __commonJS2({ + "node_modules/core-js/modules/es.string.replace.js": function node_modulesCoreJsModulesEsStringReplaceJs() { + "use strict"; + var apply = require_function_apply2(); + var call = require_function_call2(); + var uncurryThis = require_function_uncurry_this2(); + var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic2(); + var fails = require_fails2(); + var anObject = require_an_object2(); + var isCallable = require_is_callable2(); + var isNullOrUndefined = require_is_null_or_undefined2(); + var toIntegerOrInfinity = require_to_integer_or_infinity2(); + var toLength = require_to_length2(); + var toString = require_to_string2(); + var requireObjectCoercible = require_require_object_coercible2(); + var advanceStringIndex = require_advance_string_index2(); + var getMethod = require_get_method2(); + var getSubstitution = require_get_substitution2(); + var regExpExec = require_regexp_exec_abstract2(); + var wellKnownSymbol = require_well_known_symbol2(); + 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 maybeToString2(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(_, 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 S = toString(string); + if (typeof replaceValue == "string" && stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && stringIndexOf(replaceValue, "$<") === -1) { + var res = maybeCallNative(nativeReplace, rx, S, replaceValue); + if (res.done) + return res.value; + } + var functionalReplace = isCallable(replaceValue); + if (!functionalReplace) + replaceValue = toString(replaceValue); + var global2 = rx.global; + var fullUnicode; + if (global2) { + fullUnicode = rx.unicode; + rx.lastIndex = 0; + } + var results = []; + var result; + while (true) { + result = regExpExec(rx, S); + if (result === null) + break; + push(results, result); + if (!global2) + break; + var matchStr = toString(result[0]); + if (matchStr === "") + rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); + } + var accumulatedResult = ""; + var nextSourcePosition = 0; + for (var i2 = 0; i2 < results.length; i2++) { + result = results[i2]; + var matched = toString(result[0]); + var position = max(min(toIntegerOrInfinity(result.index), S.length), 0); + var captures = []; + var replacement; + for (var j = 1; j < result.length; j++) + push(captures, maybeToString(result[j])); + var namedCaptures = result.groups; + if (functionalReplace) { + var replacerArgs = concat([matched], captures, position, S); + if (namedCaptures !== void 0) + push(replacerArgs, namedCaptures); + replacement = toString(apply(replaceValue, void 0, replacerArgs)); + } else { + replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); + } + if (position >= nextSourcePosition) { + accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement; + nextSourcePosition = position + matched.length; } - a[k] = 65533; } - f += z(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15], a[16], a[17], a[18], a[19], a[20], a[21], a[22], a[23], a[24], a[25], a[26], a[27], a[28], a[29], a[30], a[31]); - 32 > k && (f = f.slice(0, k - 32 | 0)); - if (b < c) { - if (a[0] = n, k = ~n >>> 31, n = -1, f.length < l.length) - continue; - } else - -1 !== n && (f += z(n)); - l += f; - f = ""; + return accumulatedResult + stringSlice(S, nextSourcePosition); } - return l; + ]; + }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE); + } + }); + var require_same_value2 = __commonJS2({ + "node_modules/core-js/internals/same-value.js": function node_modulesCoreJsInternalsSameValueJs(exports, module) { + "use strict"; + module.exports = Object.is || function is(x, y) { + return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y; + }; + } + }); + var require_es_string_search = __commonJS2({ + "node_modules/core-js/modules/es.string.search.js": function node_modulesCoreJsModulesEsStringSearchJs() { + "use strict"; + var call = require_function_call2(); + var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic2(); + var anObject = require_an_object2(); + var isNullOrUndefined = require_is_null_or_undefined2(); + var requireObjectCoercible = require_require_object_coercible2(); + var sameValue = require_same_value2(); + var toString = require_to_string2(); + var getMethod = require_get_method2(); + var regExpExec = require_regexp_exec_abstract2(); + 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 S = toString(string); + var res = maybeCallNative(nativeSearch, rx, S); + if (res.done) + return res.value; + var previousLastIndex = rx.lastIndex; + if (!sameValue(previousLastIndex, 0)) + rx.lastIndex = 0; + var result = regExpExec(rx, S); + if (!sameValue(rx.lastIndex, previousLastIndex)) + rx.lastIndex = previousLastIndex; + return result === null ? -1 : result.index; + } + ]; + }); + } + }); + var require_is_constructor2 = __commonJS2({ + "node_modules/core-js/internals/is-constructor.js": function node_modulesCoreJsInternalsIsConstructorJs(exports, module) { + "use strict"; + var uncurryThis = require_function_uncurry_this2(); + var fails = require_fails2(); + var isCallable = require_is_callable2(); + var classof = require_classof2(); + var getBuiltIn = require_get_built_in2(); + var inspectSource = require_inspect_source2(); + var noop = function noop2() { + }; + var construct = getBuiltIn("Reflect", "construct"); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.test(noop); + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) + return false; + try { + construct(noop, [], 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; + } + }); + var require_a_constructor2 = __commonJS2({ + "node_modules/core-js/internals/a-constructor.js": function node_modulesCoreJsInternalsAConstructorJs(exports, module) { + "use strict"; + var isConstructor = require_is_constructor2(); + var tryToString = require_try_to_string2(); + var $TypeError = TypeError; + module.exports = function(argument) { + if (isConstructor(argument)) + return argument; + throw new $TypeError(tryToString(argument) + " is not a constructor"); + }; + } + }); + var require_species_constructor2 = __commonJS2({ + "node_modules/core-js/internals/species-constructor.js": function node_modulesCoreJsInternalsSpeciesConstructorJs(exports, module) { + "use strict"; + var anObject = require_an_object2(); + var aConstructor = require_a_constructor2(); + var isNullOrUndefined = require_is_null_or_undefined2(); + var wellKnownSymbol = require_well_known_symbol2(); + var SPECIES = wellKnownSymbol("species"); + module.exports = function(O, defaultConstructor) { + var C = anObject(O).constructor; + var S; + return C === void 0 || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S); + }; + } + }); + var require_es_string_split2 = __commonJS2({ + "node_modules/core-js/modules/es.string.split.js": function node_modulesCoreJsModulesEsStringSplitJs() { + "use strict"; + var call = require_function_call2(); + var uncurryThis = require_function_uncurry_this2(); + var fixRegExpWellKnownSymbolLogic = require_fix_regexp_well_known_symbol_logic2(); + var anObject = require_an_object2(); + var isNullOrUndefined = require_is_null_or_undefined2(); + var requireObjectCoercible = require_require_object_coercible2(); + var speciesConstructor = require_species_constructor2(); + var advanceStringIndex = require_advance_string_index2(); + var toLength = require_to_length2(); + var toString = require_to_string2(); + var getMethod = require_get_method2(); + var regExpExec = require_regexp_exec_abstract2(); + var stickyHelpers = require_regexp_sticky_helpers2(); + var fails = require_fails2(); + var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; + var MAX_UINT32 = 4294967295; + var min = Math.min; + 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); }; - w.encode = function(g) { - g = void 0 === g ? "" : "" + g; - var l = g.length | 0, f = new t((l << 1) + 8 | 0), b, c = 0, u = !q; - for (b = 0; b < l; b = b + 1 | 0, c = c + 1 | 0) { - var e = g.charCodeAt(b) | 0; - if (127 >= e) - f[c] = e; - else { - if (2047 >= e) - f[c] = 192 | e >> 6; - else { - a: { - if (55296 <= e) - if (56319 >= e) { - var d = g.charCodeAt(b = b + 1 | 0) | 0; - if (56320 <= d && 57343 >= d) { - e = (e << 10) + d - 56613888 | 0; - if (65535 < e) { - f[c] = 240 | e >> 18; - f[c = c + 1 | 0] = 128 | e >> 12 & 63; - f[c = c + 1 | 0] = 128 | e >> 6 & 63; - f[c = c + 1 | 0] = 128 | e & 63; - continue; - } - break a; - } - e = 65533; - } else - 57343 >= e && (e = 65533); - !u && b << 1 < c && b << 1 < (c - 7 | 0) && (u = true, d = new t(3 * l), d.set(f), f = d); + var result = "ab".split(re); + return result.length !== 2 || result[0] !== "a" || result[1] !== "b"; + }); + var BUGGY = "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; + fixRegExpWellKnownSymbolLogic("split", function(SPLIT, nativeSplit, maybeCallNative) { + var internalSplit = "0".split(void 0, 0).length ? function(separator, limit) { + return separator === void 0 && limit === 0 ? [] : call(nativeSplit, this, separator, limit); + } : 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 S = toString(string); + if (!BUGGY) { + var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); + if (res.done) + return res.value; + } + var C = 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 C(UNSUPPORTED_Y ? "^(?:" + rx.source + ")" : rx, flags); + var lim = limit === void 0 ? MAX_UINT32 : limit >>> 0; + if (lim === 0) + return []; + if (S.length === 0) + return regExpExec(splitter, S) === null ? [S] : []; + var p = 0; + var q = 0; + var A = []; + while (q < S.length) { + splitter.lastIndex = UNSUPPORTED_Y ? 0 : q; + var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S); + var e; + if (z === null || (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p) { + q = advanceStringIndex(S, q, unicodeMatching); + } else { + push(A, stringSlice(S, p, q)); + if (A.length === lim) + return A; + for (var i2 = 1; i2 <= z.length - 1; i2++) { + push(A, z[i2]); + if (A.length === lim) + return A; } - f[c] = 224 | e >> 12; - f[c = c + 1 | 0] = 128 | e >> 6 & 63; + q = p = e; } - f[c = c + 1 | 0] = 128 | e & 63; } + push(A, stringSlice(S, p)); + return A; } - return q ? f.subarray(0, c) : f.slice(0, c); - }; - E || (r.TextDecoder = x, r.TextEncoder = y); - })("" + void 0 == (typeof global === "undefined" ? "undefined" : _typeof(global)) ? "" + void 0 == (typeof self === "undefined" ? "undefined" : _typeof(self)) ? exports : self : global); + ]; + }, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y); + } + }); + var require_regexp = __commonJS2({ + "node_modules/core-js/es/regexp/index.js": function node_modulesCoreJsEsRegexpIndexJs() { + "use strict"; + require_es_regexp_constructor2(); + require_es_regexp_to_string2(); + require_es_regexp_dot_all2(); + require_es_regexp_exec2(); + require_es_regexp_flags2(); + require_es_regexp_sticky2(); + require_es_regexp_test2(); + require_es_string_match2(); + require_es_string_replace2(); + require_es_string_search(); + require_es_string_split2(); + } + }); + var require_regexp2 = __commonJS2({ + "node_modules/core-js/stable/regexp/index.js": function node_modulesCoreJsStableRegexpIndexJs(exports, module) { + "use strict"; + var parent = require_regexp(); + module.exports = parent; } }); js.global.load(js.global, "event-emitter.js"); @@ -9323,6 +12441,7 @@ return scope; } var import_fastestsmallesttextencoderdecoder = __toESM(require_EncoderDecoderTogether_min()); + var import_regexp = __toESM(require_regexp2()); function assert(condition, msg) { if (!condition) { throw new Error(msg); @@ -15841,6 +18960,50 @@ function getRandomId() { return Math.floor(Math.random() * 4294967295); } + function chunkText(str) { + var arr = str.trim().split(/(\s+)/); + var ret = []; + var s = ""; + var t = new TextEncoder(); + for (var n = 0; n < arr.length; n++) { + var ss = s + arr[n]; + var u8a = t.encode(ss); + if (u8a.byteLength < _MAX_PAYLOAD) { + s = ss; + } else if (u8a.byteLength === _MAX_PAYLOAD) { + ret.push(ss.trim()); + s = ""; + } else { + var st = s.trim(); + if (st !== "") + ret.push(st); + s = ""; + var u8a2 = t.encode(arr[n]); + if (u8a2.byteLength > _MAX_PAYLOAD) { + for (var l = 0; l < arr[n].length; l++) { + var ss2 = s + arr[n].substring(l, l + 1); + var u8a3 = t.encode(ss2); + if (u8a3.byteLength > _MAX_PAYLOAD) { + var st2 = s.trim(); + if (st2 !== "") + ret.push(st2); + s = arr[n].substring(l, l + 1); + } else { + s = ss2; + } + } + } else { + s += arr[n]; + } + } + if (n === arr.length - 1) { + var _st = s.trim(); + if (_st !== "") + ret.push(s); + } + } + return ret; + } var Device = /* @__PURE__ */ function(_js$global$EventEmitt) { function Device2() { var _this; @@ -15866,6 +19029,8 @@ _this.lastWrite = Date.now(); _this.initTime = Date.now(); _this.initTimeout = _CONNECT_TIMEOUT * 1e3; + _this.queue = []; + _this.queueEvent = -1; return _this; } _inherits(Device2, _js$global$EventEmitt); @@ -15877,7 +19042,10 @@ }, { key: "log", value: function log(level, msg, time, source) { - var _msg = "".concat(this.deviceTag, " device ").concat(this.configId, ": ").concat(msg); + var _msg = ""; + if (js.global.server === void 0) + _msg += js.global.strftime("%Y-%m-%d %H:%M:%S "); + _msg += "".concat(this.deviceTag, " device ").concat(this.configId, ": ").concat(msg); this.emit("log", level, _msg, time, source); } }, { @@ -15908,8 +19076,7 @@ value: this.configId } }); - if (!this.write(msg)) - this.error("failed to initialize"); + this.write(msg); function onTimeout() { if (!this.ready) this.error("initialization timeout (configCompleteId not received from device)"); @@ -16001,9 +19168,11 @@ if (this.readyEvent > -1) js.clearTimeout(this.readyEvent); this.emit("ready"); - this.heartbeatEvent = js.setInterval(function() { - this.sendHeartbeat(); - }, this.heartbeatInterval, this); + if (this.heartbeatEvent < 0) { + this.heartbeatEvent = js.setInterval(function() { + this.sendHeartbeat(); + }, this.heartbeatInterval, this); + } } break; case "metadata": @@ -16089,6 +19258,21 @@ idx += this.readFrame(data.slice(idx)); } } + // Hot eats, cool treats + }, { + key: "dequeue", + value: function dequeue() { + var buf = this.queue.shift(); + if (buf === void 0) + return; + this.sendToDevice(buf); + this.lastWrite = Date.now(); + if (this.queue.length > 0) { + this.queueEvent = js.setTimeout(this.dequeue, 2e3, this); + } else { + this.queueEvent = -1; + } + } /** Write a [ToRadio](https://buf.build/meshtastic/protobufs/docs/main:meshtastic#meshtastic.ToRadio) message to the device */ }, { key: "write", @@ -16100,10 +19284,10 @@ this.error("write: packet length ".concat(data.length, " exceeds maximum length ").concat(_MAXLEN)); var header = [_START, _START2, data.length >> 8 & 255, data.length & 255]; var buffer = new Uint8Array([].concat(header, _toConsumableArray(data))); - var res = this.sendToDevice(buffer); - if (res) - this.lastWrite = Date.now(); - return res; + this.queue.push(buffer); + if (this.queueEvent < 0) { + this.queueEvent = js.setTimeout(this.dequeue, Math.max(200, 2e3 - (Date.now() - this.lastWrite)), this); + } } /** Assembles a [MeshPacket](https://buf.build/meshtastic/protobufs/docs/main:meshtastic#meshtastic.MeshPacket) based on your parameters and writes it to the device. */ }, { @@ -16139,36 +19323,46 @@ value: meshPacket } }); - var ret = this.write(toRadio); - if (ret) { - if (ackHandler !== void 0) { - this.registerHandler(id, ackHandler, this.ackHandlers); - } - if (responseHandler !== void 0) { - this.registerHandler(id, responseHandler, this.responseHandlers); - } + if (ackHandler !== void 0) { + this.registerHandler(id, ackHandler, this.ackHandlers); } - return ret; + if (responseHandler !== void 0) { + this.registerHandler(id, responseHandler, this.responseHandlers); + } + this.write(toRadio); } /** Send a text message out into the mesh, optionally specifying a 'to' node address, channel, want-acknowledgement, and acknowledgement handler */ }, { key: "sendText", value: function sendText(_ref2) { var text = _ref2.text, _ref2$to = _ref2.to, to = _ref2$to === void 0 ? _BROADCAST : _ref2$to, _ref2$channel = _ref2.channel, channel = _ref2$channel === void 0 ? 0 : _ref2$channel, _ref2$wantAck = _ref2.wantAck, wantAck = _ref2$wantAck === void 0 ? true : _ref2$wantAck, ackHandler = _ref2.ackHandler, replyId = _ref2.replyId, hopLimit = _ref2.hopLimit; - var enc = new TextEncoder(); - var payload = enc.encode(text); - if (payload.length > _MAX_PAYLOAD) - this.error("sendText: payload length ".concat(payload.length, " exceeds maximum (").concat(_MAX_PAYLOAD, ")")); - return this.sendPacket({ - payload: payload, - portNum: portnums_pb_exports.PortNum.TEXT_MESSAGE_APP, - to: to, - channel: channel, - wantAck: wantAck, - ackHandler: ackHandler, - replyId: replyId, - hopLimit: hopLimit - }); + var msgs = chunkText(text); + var _iterator24 = _createForOfIteratorHelper(msgs), _step24; + try { + for (_iterator24.s(); !(_step24 = _iterator24.n()).done; ) { + var msg = _step24.value; + if (this.debug) + this.log(sbbsdefs.LOG_DEBUG, "Sending text: ".concat(msg)); + var enc = new TextEncoder(); + var payload = enc.encode(msg); + if (payload.length > _MAX_PAYLOAD) + this.error("sendText: payload length ".concat(payload.length, " exceeds maximum (").concat(_MAX_PAYLOAD, ")")); + this.sendPacket({ + payload: payload, + portNum: portnums_pb_exports.PortNum.TEXT_MESSAGE_APP, + to: to, + channel: channel, + wantAck: wantAck, + ackHandler: ackHandler, + replyId: replyId, + hopLimit: hopLimit + }); + } + } catch (err) { + _iterator24.e(err); + } finally { + _iterator24.f(); + } } /** * Send an [AdminMessage](https://buf.build/meshtastic/protobufs/docs/main:meshtastic#meshtastic.AdminMessage) to the device @@ -16180,7 +19374,7 @@ value: function sendAdminMessage(adminMessage, responseHandler) { var to = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.myNodeInfo.myNodeNum; var payload = adminMessage.toBinary(); - return this.sendPacket({ + this.sendPacket({ payload: payload, portNum: portnums_pb_exports.PortNum.ADMIN_APP, to: to, @@ -16529,6 +19723,7 @@ value: function readFromDevice() { var timeout = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0; if (timeout > 0) { + this.log(sbbsdefs.LOG_DEBUG, "waiting ".concat(timeout, " seconds for data")); var stime = js.global.time(); while (!this.socket.data_waiting && js.global.time() - stime < timeout) { js.global.mswait(5); @@ -16665,17 +19860,17 @@ } function parseDeviceConfigs(configs) { var ret = {}; - var _iterator24 = _createForOfIteratorHelper(configs), _step24; + var _iterator25 = _createForOfIteratorHelper(configs), _step25; try { - for (_iterator24.s(); !(_step24 = _iterator24.n()).done; ) { - var config = _step24.value; + for (_iterator25.s(); !(_step25 = _iterator25.n()).done; ) { + var config = _step25.value; var dc = parseDeviceConfig(config); ret[dc.id] = dc; } } catch (err) { - _iterator24.e(err); + _iterator25.e(err); } finally { - _iterator24.f(); + _iterator25.f(); } return ret; } @@ -16727,17 +19922,17 @@ } function parseModuleConfigs(configs) { var ret = {}; - var _iterator25 = _createForOfIteratorHelper(configs), _step25; + var _iterator26 = _createForOfIteratorHelper(configs), _step26; try { - for (_iterator25.s(); !(_step25 = _iterator25.n()).done; ) { - var config = _step25.value; + for (_iterator26.s(); !(_step26 = _iterator26.n()).done; ) { + var config = _step26.value; var mc = parseModuleConfig(config); ret[mc.name] = mc; } } catch (err) { - _iterator25.e(err); + _iterator26.e(err); } finally { - _iterator25.f(); + _iterator26.f(); } return ret; } @@ -16817,6 +20012,59 @@ return "\uD83D\uDD34"; return "\uD83D\uDFE3"; } + function getCurrentWeather(lat, lon) { + var weather = openWeatherMap.call_api_v3({ + lat: lat, + lon: lon, + exclude: ["minutely", "hourly", "daily", "alerts"], + units: "metric" + }); + if (weather.current === void 0) + return; + var ws = "Weather for ".concat(weather.lat.toFixed(2), ", ").concat(weather.lon.toFixed(2)); + var conditions = weather.current.weather.map(function(e) { + return e.main; + }).join(", "); + if (conditions.length > 0) + ws += "\r\n".concat(conditions); + ws += "\r\n".concat(weather.current.temp, "\xB0C, feels like ").concat(weather.current.feels_like, "\xB0C"); + ws += "\r\nUV: ".concat(weather.current.uvi, " ").concat(uvEmoji(weather.current.uvi)); + ws += "\r\nHumidity: ".concat(weather.current.humidity, "%"); + var wd = openWeatherMap.wind_direction(weather.current.wind_deg); + ws += "\r\nWind: ".concat(weather.current.wind_speed, " km/h ").concat(wd); + if (weather.current.wind_gust !== void 0) + ws += ", Gust: ".concat(weather.current.wind_gust, " km/h"); + ws += "\r\n".concat(weather.current.clouds, "% cloudy"); + return ws; + } + function getCurrentAlerts(lat, lon) { + var data = openWeatherMap.call_api_v3({ + lat: lat, + lon: lon, + exclude: ["minutely", "hourly", "daily", "current"], + units: "metric" + }); + js.global.writeln("WEATHER API RESPONSE: " + JSON.stringify(data)); + if (data.alerts === void 0) + return; + var ws = ""; + var _iterator27 = _createForOfIteratorHelper(data.alerts), _step27; + try { + for (_iterator27.s(); !(_step27 = _iterator27.n()).done; ) { + var alert = _step27.value; + if (alert.end < js.global.time()) + continue; + ws += "Weather alert from:\r\n".concat(alert.sender_name); + ws += "".concat(alert.event); + ws += "Start: ".concat(js.global.strftime("%Y-%m-%d %H:%M:%S", alert.start), "\r\nEnd: ").concat(js.global.strftime("%Y-%m-%d %H:%M:%S", alert.end)); + } + } catch (err) { + _iterator27.e(err); + } finally { + _iterator27.f(); + } + return ws === "" ? void 0 : ws; + } var Weather = /* @__PURE__ */ function(_Module2) { function Weather2(config, devices) { _classCallCheck(this, Weather2); @@ -16845,30 +20093,21 @@ } var lat = nodeInfo.position.latitudeI * 1e-7; var lon = nodeInfo.position.longitudeI * 1e-7; - var weather = openWeatherMap.call_api_v3({ - lat: lat, - lon: lon, - exclude: ["minutely", "hourly", "daily", "alerts"], - units: "metric" - }); - if (this.config.debug) - this.log(sbbsdefs.LOG_DEBUG, "Weather API response: ".concat(JSON.stringify(weather))); - if (weather.current === void 0) + var ws; + switch (msg.split(" ")[1]) { + case "a": + case "alerts": + ws = getCurrentAlerts(lat, lon); + break; + case "barf": + ws = "I am writing a very long string full of words and stuff\r\nand I want to add\r\n\r\na bunch of line breaks to it and stuff, stuff like that, and other things too. Good things. The best things. People look at these things and they say wow, those are the best things I've ever seen, never seen things like them before, absolutely huge. And they are. Huge. Ever noticed that? How huge these things can get? It's really something. Anyway\r\ntime for more\r\n\r\nline breaks. And some extra spaces and shit like that."; + break; + default: + ws = getCurrentWeather(lat, lon); + break; + } + if (ws === void 0) return false; - var wd = openWeatherMap.wind_direction(weather.current.wind_deg); - var conditions = weather.current.weather.map(function(e) { - return e.main; - }).join(", "); - var ws = "Weather for ".concat(weather.lat.toFixed(2), ", ").concat(weather.lon.toFixed(2)); - if (conditions.length > 0) - ws += "\r\n".concat(conditions); - ws += "\r\n".concat(weather.current.temp, "\xB0C, feels like ").concat(weather.current.feels_like, "\xB0C"); - ws += "\r\nUV: ".concat(weather.current.uvi, " ").concat(uvEmoji(weather.current.uvi)); - ws += "\r\nHumidity: ".concat(weather.current.humidity, "%"); - ws += "\r\nWind: ".concat(weather.current.wind_speed, " km/h ").concat(wd); - if (weather.current.wind_gust !== void 0) - ws += ", Gust: ".concat(weather.current.wind_gust, " km/h"); - ws += "\r\n".concat(weather.current.clouds, "% cloudy"); device.sendText({ text: ws, to: replyTo, diff --git a/package-lock.json b/package-lock.json index 80ee37d5e0d6f17c60f9fe63b3624368e61050be..80389a2fcb3274256cf72d576c90ed4f6657b151 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2234,7 +2234,7 @@ }, "node_modules/@sota/meshtastic": { "version": "1.0.0", - "resolved": "git+https://gitlab.synchro.net/sota/meshtastic.git#f7211dbd9b200f9d1e376158b21f878b5ce2ea9f", + "resolved": "git+https://gitlab.synchro.net/sota/meshtastic.git#b884eee6d5eac2af196a6dc2acf647149d713ecc", "license": "MIT", "dependencies": { "@buf/meshtastic_protobufs.bufbuild_es": "^1.8.0-20240411120154-019267fa4cc6.2", @@ -5237,7 +5237,7 @@ "optional": true }, "@sota/meshtastic": { - "version": "git+https://gitlab.synchro.net/sota/meshtastic.git#f7211dbd9b200f9d1e376158b21f878b5ce2ea9f", + "version": "git+https://gitlab.synchro.net/sota/meshtastic.git#b884eee6d5eac2af196a6dc2acf647149d713ecc", "from": "@sota/meshtastic@git+https://gitlab.synchro.net/sota/meshtastic.git", "requires": { "@buf/meshtastic_protobufs.bufbuild_es": "^1.8.0-20240411120154-019267fa4cc6.2", diff --git a/src/modules/weather.ts b/src/modules/weather.ts index 115fce62b15f6200170aa55294eb3d6ebb6861de..75c7685f7c0e2cc151230985d3ad3f21af11aec7 100644 --- a/src/modules/weather.ts +++ b/src/modules/weather.ts @@ -11,10 +11,56 @@ function uvEmoji(uvi: number): string { return '🟣'; } +function getCurrentWeather(lat: number, lon: number): string | undefined { + const weather = openWeatherMap.call_api_v3({ lat, lon, exclude: ['minutely', 'hourly', 'daily', 'alerts'], units: 'metric' }); + if (weather.current === undefined) return; + + let ws = `Weather for ${weather.lat.toFixed(2)}, ${weather.lon.toFixed(2)}`; + + const conditions = weather.current.weather.map(e => e.main).join(', '); + if (conditions.length > 0) ws += `\r\n${conditions}`; + + ws += `\r\n${weather.current.temp}°C, feels like ${weather.current.feels_like}°C`; + ws += `\r\nUV: ${weather.current.uvi} ${uvEmoji(weather.current.uvi)}`; + ws += `\r\nHumidity: ${weather.current.humidity}%`; + + const wd = openWeatherMap.wind_direction(weather.current.wind_deg); + ws += `\r\nWind: ${weather.current.wind_speed} km/h ${wd}`; + if (weather.current.wind_gust !== undefined) ws += `, Gust: ${weather.current.wind_gust} km/h`; + + ws += `\r\n${weather.current.clouds}% cloudy`; + + return ws; +} + +function getCurrentAlerts(lat: number, lon: number): string | undefined { + const data = openWeatherMap.call_api_v3({ lat, lon, exclude: ['minutely', 'hourly', 'daily', 'current'], units: 'metric' }); + js.global.writeln('WEATHER API RESPONSE: ' + JSON.stringify(data)); + + if (data.alerts === undefined) return; + + let ws: string = ''; + for (const alert of data.alerts) { + if (alert.end < js.global.time()) continue; + ws += `Weather alert from:\r\n${alert.sender_name}`; + ws += `\r\n${alert.event}`; + ws += `\r\nStart: ${js.global.strftime('%Y-%m-%d %H:%M:%S', alert.start)}\r\nEnd: ${js.global.strftime('%Y-%m-%d %H:%M:%S', alert.end)}`; + ws += `\r\n${alert.description}`; + } + + return ws === '' ? undefined : ws; +} + export default class Weather extends Module { constructor(config: IModuleConfig, devices: Device[]) { super(config, devices); + /** + * To do: timed event for fetching and broadcasting weather alerts + * but once broadcast from here, mark each alert as having been announced + * so that we don't keep rebroadcasting them every interval + * (but we do still want to send them if requested with the .wx alert command) + */ } handlePacket(packet: protobuf.Mesh.MeshPacket, device: Device, replyTo: number): boolean { @@ -23,6 +69,7 @@ export default class Weather extends Module { const dec = new TextDecoder(); const msg = dec.decode(packet.payloadVariant.value.payload); if (!msg.startsWith('.wx')) return false; + try { let nodeInfo = device.getNodeInfo(packet.from); if (nodeInfo?.position === undefined) { @@ -36,24 +83,30 @@ export default class Weather extends Module { } const lat = nodeInfo.position.latitudeI * .0000001; const lon = nodeInfo.position.longitudeI * .0000001; - const weather = openWeatherMap.call_api_v3({ lat, lon, exclude: ['minutely', 'hourly', 'daily', 'alerts'], units: 'metric' }); - if (this.config.debug) this.log(sbbsdefs.LOG_DEBUG, `Weather API response: ${JSON.stringify(weather)}`); - if (weather.current === undefined) return false; - const wd = openWeatherMap.wind_direction(weather.current.wind_deg); - const conditions = weather.current.weather.map(e => e.main).join(', '); - let ws = `Weather for ${weather.lat.toFixed(2)}, ${weather.lon.toFixed(2)}`; - if (conditions.length > 0) ws += `\r\n${conditions}`; - ws += `\r\n${weather.current.temp}°C, feels like ${weather.current.feels_like}°C`; - ws += `\r\nUV: ${weather.current.uvi} ${uvEmoji(weather.current.uvi)}`; - ws += `\r\nHumidity: ${weather.current.humidity}%`; - ws += `\r\nWind: ${weather.current.wind_speed} km/h ${wd}`; - if (weather.current.wind_gust !== undefined) ws += `, Gust: ${weather.current.wind_gust} km/h`; - ws += `\r\n${weather.current.clouds}% cloudy`; + + let ws: string | undefined; + switch (msg.split(' ')[1]) { + case 'a': + case 'alerts': + ws = getCurrentAlerts(lat, lon); + break; + case 'barf': + ws = "I am writing a very long string full of words and stuff\r\nand I want to add\r\n\r\na bunch of line breaks to it and stuff, stuff like that, and other things too. Good things. The best things. People look at these things and they say wow, those are the best things I've ever seen, never seen things like them before, absolutely huge. And they are. Huge. Ever noticed that? How huge these things can get? It's really something. Anyway\r\ntime for more\r\n\r\nline breaks. And some extra spaces and shit like that."; + break; + default: + ws = getCurrentWeather(lat, lon); + break; + } + + if (ws === undefined) return false; device.sendText({ text: ws, to: replyTo, channel: packet.channel, replyId: packet.id }); + return true; + } catch (err: any) { this.error(err as string); } + return false; }