import { __name } from "./chunk-PTVI3W5X.mjs"; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js var freeGlobal = typeof global == "object" && global && global.Object === Object && global; var freeGlobal_default = freeGlobal; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js var freeSelf = typeof self == "object" && self && self.Object === Object && self; var root = freeGlobal_default || freeSelf || Function("return this")(); var root_default = root; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js var Symbol = root_default.Symbol; var Symbol_default = Symbol; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; var nativeObjectToString = objectProto.toString; var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0; function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = void 0; var unmasked = true; } catch (e) { } var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } __name(getRawTag, "getRawTag"); var getRawTag_default = getRawTag; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js var objectProto2 = Object.prototype; var nativeObjectToString2 = objectProto2.toString; function objectToString(value) { return nativeObjectToString2.call(value); } __name(objectToString, "objectToString"); var objectToString_default = objectToString; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js var nullTag = "[object Null]"; var undefinedTag = "[object Undefined]"; var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0; function baseGetTag(value) { if (value == null) { return value === void 0 ? undefinedTag : nullTag; } return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value); } __name(baseGetTag, "baseGetTag"); var baseGetTag_default = baseGetTag; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js function isObjectLike(value) { return value != null && typeof value == "object"; } __name(isObjectLike, "isObjectLike"); var isObjectLike_default = isObjectLike; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js var symbolTag = "[object Symbol]"; function isSymbol(value) { return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag; } __name(isSymbol, "isSymbol"); var isSymbol_default = isSymbol; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } __name(arrayMap, "arrayMap"); var arrayMap_default = arrayMap; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js var isArray = Array.isArray; var isArray_default = isArray; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js var INFINITY = 1 / 0; var symbolProto = Symbol_default ? Symbol_default.prototype : void 0; var symbolToString = symbolProto ? symbolProto.toString : void 0; function baseToString(value) { if (typeof value == "string") { return value; } if (isArray_default(value)) { return arrayMap_default(value, baseToString) + ""; } if (isSymbol_default(value)) { return symbolToString ? symbolToString.call(value) : ""; } var result = value + ""; return result == "0" && 1 / value == -INFINITY ? "-0" : result; } __name(baseToString, "baseToString"); var baseToString_default = baseToString; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js var reWhitespace = /\s/; function trimmedEndIndex(string) { var index = string.length; while (index-- && reWhitespace.test(string.charAt(index))) { } return index; } __name(trimmedEndIndex, "trimmedEndIndex"); var trimmedEndIndex_default = trimmedEndIndex; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js var reTrimStart = /^\s+/; function baseTrim(string) { return string ? string.slice(0, trimmedEndIndex_default(string) + 1).replace(reTrimStart, "") : string; } __name(baseTrim, "baseTrim"); var baseTrim_default = baseTrim; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js function isObject(value) { var type = typeof value; return value != null && (type == "object" || type == "function"); } __name(isObject, "isObject"); var isObject_default = isObject; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js var NAN = 0 / 0; var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; var reIsBinary = /^0b[01]+$/i; var reIsOctal = /^0o[0-7]+$/i; var freeParseInt = parseInt; function toNumber(value) { if (typeof value == "number") { return value; } if (isSymbol_default(value)) { return NAN; } if (isObject_default(value)) { var other = typeof value.valueOf == "function" ? value.valueOf() : value; value = isObject_default(other) ? other + "" : other; } if (typeof value != "string") { return value === 0 ? value : +value; } value = baseTrim_default(value); var isBinary = reIsBinary.test(value); return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; } __name(toNumber, "toNumber"); var toNumber_default = toNumber; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js var INFINITY2 = 1 / 0; var MAX_INTEGER = 17976931348623157e292; function toFinite(value) { if (!value) { return value === 0 ? value : 0; } value = toNumber_default(value); if (value === INFINITY2 || value === -INFINITY2) { var sign = value < 0 ? -1 : 1; return sign * MAX_INTEGER; } return value === value ? value : 0; } __name(toFinite, "toFinite"); var toFinite_default = toFinite; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js function toInteger(value) { var result = toFinite_default(value), remainder = result % 1; return result === result ? remainder ? result - remainder : result : 0; } __name(toInteger, "toInteger"); var toInteger_default = toInteger; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js function identity(value) { return value; } __name(identity, "identity"); var identity_default = identity; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js var asyncTag = "[object AsyncFunction]"; var funcTag = "[object Function]"; var genTag = "[object GeneratorFunction]"; var proxyTag = "[object Proxy]"; function isFunction(value) { if (!isObject_default(value)) { return false; } var tag = baseGetTag_default(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } __name(isFunction, "isFunction"); var isFunction_default = isFunction; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js var coreJsData = root_default["__core-js_shared__"]; var coreJsData_default = coreJsData; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || ""); return uid ? "Symbol(src)_1." + uid : ""; })(); function isMasked(func) { return !!maskSrcKey && maskSrcKey in func; } __name(isMasked, "isMasked"); var isMasked_default = isMasked; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js var funcProto = Function.prototype; var funcToString = funcProto.toString; function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) { } try { return func + ""; } catch (e) { } } return ""; } __name(toSource, "toSource"); var toSource_default = toSource; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; var reIsHostCtor = /^\[object .+?Constructor\]$/; var funcProto2 = Function.prototype; var objectProto3 = Object.prototype; var funcToString2 = funcProto2.toString; var hasOwnProperty2 = objectProto3.hasOwnProperty; var reIsNative = RegExp( "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function baseIsNative(value) { if (!isObject_default(value) || isMasked_default(value)) { return false; } var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource_default(value)); } __name(baseIsNative, "baseIsNative"); var baseIsNative_default = baseIsNative; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js function getValue(object, key) { return object == null ? void 0 : object[key]; } __name(getValue, "getValue"); var getValue_default = getValue; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js function getNative(object, key) { var value = getValue_default(object, key); return baseIsNative_default(value) ? value : void 0; } __name(getNative, "getNative"); var getNative_default = getNative; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js var WeakMap = getNative_default(root_default, "WeakMap"); var WeakMap_default = WeakMap; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js var objectCreate = Object.create; var baseCreate = /* @__PURE__ */ (function() { function object() { } __name(object, "object"); return function(proto) { if (!isObject_default(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object(); object.prototype = void 0; return result; }; })(); var baseCreate_default = baseCreate; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } __name(apply, "apply"); var apply_default = apply; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/noop.js function noop() { } __name(noop, "noop"); var noop_default = noop; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js function copyArray(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } __name(copyArray, "copyArray"); var copyArray_default = copyArray; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js var HOT_COUNT = 800; var HOT_SPAN = 16; var nativeNow = Date.now; function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(void 0, arguments); }; } __name(shortOut, "shortOut"); var shortOut_default = shortOut; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js function constant(value) { return function() { return value; }; } __name(constant, "constant"); var constant_default = constant; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js var defineProperty = (function() { try { var func = getNative_default(Object, "defineProperty"); func({}, "", {}); return func; } catch (e) { } })(); var defineProperty_default = defineProperty; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js var baseSetToString = !defineProperty_default ? identity_default : function(func, string) { return defineProperty_default(func, "toString", { "configurable": true, "enumerable": false, "value": constant_default(string), "writable": true }); }; var baseSetToString_default = baseSetToString; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js var setToString = shortOut_default(baseSetToString_default); var setToString_default = setToString; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js function arrayEach(array, iteratee) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { break; } } return array; } __name(arrayEach, "arrayEach"); var arrayEach_default = arrayEach; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFindIndex.js function baseFindIndex(array, predicate, fromIndex, fromRight) { var length = array.length, index = fromIndex + (fromRight ? 1 : -1); while (fromRight ? index-- : ++index < length) { if (predicate(array[index], index, array)) { return index; } } return -1; } __name(baseFindIndex, "baseFindIndex"); var baseFindIndex_default = baseFindIndex; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNaN.js function baseIsNaN(value) { return value !== value; } __name(baseIsNaN, "baseIsNaN"); var baseIsNaN_default = baseIsNaN; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_strictIndexOf.js function strictIndexOf(array, value, fromIndex) { var index = fromIndex - 1, length = array.length; while (++index < length) { if (array[index] === value) { return index; } } return -1; } __name(strictIndexOf, "strictIndexOf"); var strictIndexOf_default = strictIndexOf; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIndexOf.js function baseIndexOf(array, value, fromIndex) { return value === value ? strictIndexOf_default(array, value, fromIndex) : baseFindIndex_default(array, baseIsNaN_default, fromIndex); } __name(baseIndexOf, "baseIndexOf"); var baseIndexOf_default = baseIndexOf; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludes.js function arrayIncludes(array, value) { var length = array == null ? 0 : array.length; return !!length && baseIndexOf_default(array, value, 0) > -1; } __name(arrayIncludes, "arrayIncludes"); var arrayIncludes_default = arrayIncludes; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js var MAX_SAFE_INTEGER = 9007199254740991; var reIsUint = /^(?:0|[1-9]\d*)$/; function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); } __name(isIndex, "isIndex"); var isIndex_default = isIndex; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js function baseAssignValue(object, key, value) { if (key == "__proto__" && defineProperty_default) { defineProperty_default(object, key, { "configurable": true, "enumerable": true, "value": value, "writable": true }); } else { object[key] = value; } } __name(baseAssignValue, "baseAssignValue"); var baseAssignValue_default = baseAssignValue; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js function eq(value, other) { return value === other || value !== value && other !== other; } __name(eq, "eq"); var eq_default = eq; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js var objectProto4 = Object.prototype; var hasOwnProperty3 = objectProto4.hasOwnProperty; function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty3.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) { baseAssignValue_default(object, key, value); } } __name(assignValue, "assignValue"); var assignValue_default = assignValue; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0; if (newValue === void 0) { newValue = source[key]; } if (isNew) { baseAssignValue_default(object, key, newValue); } else { assignValue_default(object, key, newValue); } } return object; } __name(copyObject, "copyObject"); var copyObject_default = copyObject; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js var nativeMax = Math.max; function overRest(func, start, transform) { start = nativeMax(start === void 0 ? func.length - 1 : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply_default(func, this, otherArgs); }; } __name(overRest, "overRest"); var overRest_default = overRest; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js function baseRest(func, start) { return setToString_default(overRest_default(func, start, identity_default), func + ""); } __name(baseRest, "baseRest"); var baseRest_default = baseRest; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js var MAX_SAFE_INTEGER2 = 9007199254740991; function isLength(value) { return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2; } __name(isLength, "isLength"); var isLength_default = isLength; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js function isArrayLike(value) { return value != null && isLength_default(value.length) && !isFunction_default(value); } __name(isArrayLike, "isArrayLike"); var isArrayLike_default = isArrayLike; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js function isIterateeCall(value, index, object) { if (!isObject_default(object)) { return false; } var type = typeof index; if (type == "number" ? isArrayLike_default(object) && isIndex_default(index, object.length) : type == "string" && index in object) { return eq_default(object[index], value); } return false; } __name(isIterateeCall, "isIterateeCall"); var isIterateeCall_default = isIterateeCall; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js function createAssigner(assigner) { return baseRest_default(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0; customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0; if (guard && isIterateeCall_default(sources[0], sources[1], guard)) { customizer = length < 3 ? void 0 : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } __name(createAssigner, "createAssigner"); var createAssigner_default = createAssigner; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js var objectProto5 = Object.prototype; function isPrototype(value) { var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto5; return value === proto; } __name(isPrototype, "isPrototype"); var isPrototype_default = isPrototype; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } __name(baseTimes, "baseTimes"); var baseTimes_default = baseTimes; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js var argsTag = "[object Arguments]"; function baseIsArguments(value) { return isObjectLike_default(value) && baseGetTag_default(value) == argsTag; } __name(baseIsArguments, "baseIsArguments"); var baseIsArguments_default = baseIsArguments; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js var objectProto6 = Object.prototype; var hasOwnProperty4 = objectProto6.hasOwnProperty; var propertyIsEnumerable = objectProto6.propertyIsEnumerable; var isArguments = baseIsArguments_default(/* @__PURE__ */ (function() { return arguments; })()) ? baseIsArguments_default : function(value) { return isObjectLike_default(value) && hasOwnProperty4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); }; var isArguments_default = isArguments; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js function stubFalse() { return false; } __name(stubFalse, "stubFalse"); var stubFalse_default = stubFalse; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module; var moduleExports = freeModule && freeModule.exports === freeExports; var Buffer = moduleExports ? root_default.Buffer : void 0; var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0; var isBuffer = nativeIsBuffer || stubFalse_default; var isBuffer_default = isBuffer; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js var argsTag2 = "[object Arguments]"; var arrayTag = "[object Array]"; var boolTag = "[object Boolean]"; var dateTag = "[object Date]"; var errorTag = "[object Error]"; var funcTag2 = "[object Function]"; var mapTag = "[object Map]"; var numberTag = "[object Number]"; var objectTag = "[object Object]"; var regexpTag = "[object RegExp]"; var setTag = "[object Set]"; var stringTag = "[object String]"; var weakMapTag = "[object WeakMap]"; var arrayBufferTag = "[object ArrayBuffer]"; var dataViewTag = "[object DataView]"; var float32Tag = "[object Float32Array]"; var float64Tag = "[object Float64Array]"; var int8Tag = "[object Int8Array]"; var int16Tag = "[object Int16Array]"; var int32Tag = "[object Int32Array]"; var uint8Tag = "[object Uint8Array]"; var uint8ClampedTag = "[object Uint8ClampedArray]"; var uint16Tag = "[object Uint16Array]"; var uint32Tag = "[object Uint32Array]"; var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; function baseIsTypedArray(value) { return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)]; } __name(baseIsTypedArray, "baseIsTypedArray"); var baseIsTypedArray_default = baseIsTypedArray; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js function baseUnary(func) { return function(value) { return func(value); }; } __name(baseUnary, "baseUnary"); var baseUnary_default = baseUnary; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports; var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module; var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2; var freeProcess = moduleExports2 && freeGlobal_default.process; var nodeUtil = (function() { try { var types = freeModule2 && freeModule2.require && freeModule2.require("util").types; if (types) { return types; } return freeProcess && freeProcess.binding && freeProcess.binding("util"); } catch (e) { } })(); var nodeUtil_default = nodeUtil; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray; var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default; var isTypedArray_default = isTypedArray; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js var objectProto7 = Object.prototype; var hasOwnProperty5 = objectProto7.hasOwnProperty; function arrayLikeKeys(value, inherited) { var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty5.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode. (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties. isIndex_default(key, length)))) { result.push(key); } } return result; } __name(arrayLikeKeys, "arrayLikeKeys"); var arrayLikeKeys_default = arrayLikeKeys; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } __name(overArg, "overArg"); var overArg_default = overArg; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js var nativeKeys = overArg_default(Object.keys, Object); var nativeKeys_default = nativeKeys; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js var objectProto8 = Object.prototype; var hasOwnProperty6 = objectProto8.hasOwnProperty; function baseKeys(object) { if (!isPrototype_default(object)) { return nativeKeys_default(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty6.call(object, key) && key != "constructor") { result.push(key); } } return result; } __name(baseKeys, "baseKeys"); var baseKeys_default = baseKeys; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js function keys(object) { return isArrayLike_default(object) ? arrayLikeKeys_default(object) : baseKeys_default(object); } __name(keys, "keys"); var keys_default = keys; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } __name(nativeKeysIn, "nativeKeysIn"); var nativeKeysIn_default = nativeKeysIn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js var objectProto9 = Object.prototype; var hasOwnProperty7 = objectProto9.hasOwnProperty; function baseKeysIn(object) { if (!isObject_default(object)) { return nativeKeysIn_default(object); } var isProto = isPrototype_default(object), result = []; for (var key in object) { if (!(key == "constructor" && (isProto || !hasOwnProperty7.call(object, key)))) { result.push(key); } } return result; } __name(baseKeysIn, "baseKeysIn"); var baseKeysIn_default = baseKeysIn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js function keysIn(object) { return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object); } __name(keysIn, "keysIn"); var keysIn_default = keysIn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; var reIsPlainProp = /^\w*$/; function isKey(value, object) { if (isArray_default(value)) { return false; } var type = typeof value; if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol_default(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object); } __name(isKey, "isKey"); var isKey_default = isKey; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js var nativeCreate = getNative_default(Object, "create"); var nativeCreate_default = nativeCreate; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js function hashClear() { this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {}; this.size = 0; } __name(hashClear, "hashClear"); var hashClear_default = hashClear; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } __name(hashDelete, "hashDelete"); var hashDelete_default = hashDelete; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js var HASH_UNDEFINED = "__lodash_hash_undefined__"; var objectProto10 = Object.prototype; var hasOwnProperty8 = objectProto10.hasOwnProperty; function hashGet(key) { var data = this.__data__; if (nativeCreate_default) { var result = data[key]; return result === HASH_UNDEFINED ? void 0 : result; } return hasOwnProperty8.call(data, key) ? data[key] : void 0; } __name(hashGet, "hashGet"); var hashGet_default = hashGet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js var objectProto11 = Object.prototype; var hasOwnProperty9 = objectProto11.hasOwnProperty; function hashHas(key) { var data = this.__data__; return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty9.call(data, key); } __name(hashHas, "hashHas"); var hashHas_default = hashHas; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js var HASH_UNDEFINED2 = "__lodash_hash_undefined__"; function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value; return this; } __name(hashSet, "hashSet"); var hashSet_default = hashSet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } __name(Hash, "Hash"); Hash.prototype.clear = hashClear_default; Hash.prototype["delete"] = hashDelete_default; Hash.prototype.get = hashGet_default; Hash.prototype.has = hashHas_default; Hash.prototype.set = hashSet_default; var Hash_default = Hash; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js function listCacheClear() { this.__data__ = []; this.size = 0; } __name(listCacheClear, "listCacheClear"); var listCacheClear_default = listCacheClear; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq_default(array[length][0], key)) { return length; } } return -1; } __name(assocIndexOf, "assocIndexOf"); var assocIndexOf_default = assocIndexOf; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js var arrayProto = Array.prototype; var splice = arrayProto.splice; function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf_default(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } __name(listCacheDelete, "listCacheDelete"); var listCacheDelete_default = listCacheDelete; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js function listCacheGet(key) { var data = this.__data__, index = assocIndexOf_default(data, key); return index < 0 ? void 0 : data[index][1]; } __name(listCacheGet, "listCacheGet"); var listCacheGet_default = listCacheGet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js function listCacheHas(key) { return assocIndexOf_default(this.__data__, key) > -1; } __name(listCacheHas, "listCacheHas"); var listCacheHas_default = listCacheHas; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf_default(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } __name(listCacheSet, "listCacheSet"); var listCacheSet_default = listCacheSet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } __name(ListCache, "ListCache"); ListCache.prototype.clear = listCacheClear_default; ListCache.prototype["delete"] = listCacheDelete_default; ListCache.prototype.get = listCacheGet_default; ListCache.prototype.has = listCacheHas_default; ListCache.prototype.set = listCacheSet_default; var ListCache_default = ListCache; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js var Map = getNative_default(root_default, "Map"); var Map_default = Map; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js function mapCacheClear() { this.size = 0; this.__data__ = { "hash": new Hash_default(), "map": new (Map_default || ListCache_default)(), "string": new Hash_default() }; } __name(mapCacheClear, "mapCacheClear"); var mapCacheClear_default = mapCacheClear; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js function isKeyable(value) { var type = typeof value; return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; } __name(isKeyable, "isKeyable"); var isKeyable_default = isKeyable; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js function getMapData(map2, key) { var data = map2.__data__; return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; } __name(getMapData, "getMapData"); var getMapData_default = getMapData; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js function mapCacheDelete(key) { var result = getMapData_default(this, key)["delete"](key); this.size -= result ? 1 : 0; return result; } __name(mapCacheDelete, "mapCacheDelete"); var mapCacheDelete_default = mapCacheDelete; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js function mapCacheGet(key) { return getMapData_default(this, key).get(key); } __name(mapCacheGet, "mapCacheGet"); var mapCacheGet_default = mapCacheGet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js function mapCacheHas(key) { return getMapData_default(this, key).has(key); } __name(mapCacheHas, "mapCacheHas"); var mapCacheHas_default = mapCacheHas; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js function mapCacheSet(key, value) { var data = getMapData_default(this, key), size2 = data.size; data.set(key, value); this.size += data.size == size2 ? 0 : 1; return this; } __name(mapCacheSet, "mapCacheSet"); var mapCacheSet_default = mapCacheSet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } __name(MapCache, "MapCache"); MapCache.prototype.clear = mapCacheClear_default; MapCache.prototype["delete"] = mapCacheDelete_default; MapCache.prototype.get = mapCacheGet_default; MapCache.prototype.has = mapCacheHas_default; MapCache.prototype.set = mapCacheSet_default; var MapCache_default = MapCache; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js var FUNC_ERROR_TEXT = "Expected a function"; function memoize(func, resolver) { if (typeof func != "function" || resolver != null && typeof resolver != "function") { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = /* @__PURE__ */ __name(function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }, "memoized"); memoized.cache = new (memoize.Cache || MapCache_default)(); return memoized; } __name(memoize, "memoize"); memoize.Cache = MapCache_default; var memoize_default = memoize; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js var MAX_MEMOIZE_SIZE = 500; function memoizeCapped(func) { var result = memoize_default(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } __name(memoizeCapped, "memoizeCapped"); var memoizeCapped_default = memoizeCapped; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; var reEscapeChar = /\\(\\)?/g; var stringToPath = memoizeCapped_default(function(string) { var result = []; if (string.charCodeAt(0) === 46) { result.push(""); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match); }); return result; }); var stringToPath_default = stringToPath; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js function toString(value) { return value == null ? "" : baseToString_default(value); } __name(toString, "toString"); var toString_default = toString; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js function castPath(value, object) { if (isArray_default(value)) { return value; } return isKey_default(value, object) ? [value] : stringToPath_default(toString_default(value)); } __name(castPath, "castPath"); var castPath_default = castPath; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js var INFINITY3 = 1 / 0; function toKey(value) { if (typeof value == "string" || isSymbol_default(value)) { return value; } var result = value + ""; return result == "0" && 1 / value == -INFINITY3 ? "-0" : result; } __name(toKey, "toKey"); var toKey_default = toKey; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js function baseGet(object, path) { path = castPath_default(path, object); var index = 0, length = path.length; while (object != null && index < length) { object = object[toKey_default(path[index++])]; } return index && index == length ? object : void 0; } __name(baseGet, "baseGet"); var baseGet_default = baseGet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js function get(object, path, defaultValue) { var result = object == null ? void 0 : baseGet_default(object, path); return result === void 0 ? defaultValue : result; } __name(get, "get"); var get_default = get; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js function arrayPush(array, values2) { var index = -1, length = values2.length, offset = array.length; while (++index < length) { array[offset + index] = values2[index]; } return array; } __name(arrayPush, "arrayPush"); var arrayPush_default = arrayPush; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js var spreadableSymbol = Symbol_default ? Symbol_default.isConcatSpreadable : void 0; function isFlattenable(value) { return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); } __name(isFlattenable, "isFlattenable"); var isFlattenable_default = isFlattenable; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js function baseFlatten(array, depth, predicate, isStrict, result) { var index = -1, length = array.length; predicate || (predicate = isFlattenable_default); result || (result = []); while (++index < length) { var value = array[index]; if (depth > 0 && predicate(value)) { if (depth > 1) { baseFlatten(value, depth - 1, predicate, isStrict, result); } else { arrayPush_default(result, value); } } else if (!isStrict) { result[result.length] = value; } } return result; } __name(baseFlatten, "baseFlatten"); var baseFlatten_default = baseFlatten; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.js function flatten(array) { var length = array == null ? 0 : array.length; return length ? baseFlatten_default(array, 1) : []; } __name(flatten, "flatten"); var flatten_default = flatten; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js function flatRest(func) { return setToString_default(overRest_default(func, void 0, flatten_default), func + ""); } __name(flatRest, "flatRest"); var flatRest_default = flatRest; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js var getPrototype = overArg_default(Object.getPrototypeOf, Object); var getPrototype_default = getPrototype; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js var objectTag2 = "[object Object]"; var funcProto3 = Function.prototype; var objectProto12 = Object.prototype; var funcToString3 = funcProto3.toString; var hasOwnProperty10 = objectProto12.hasOwnProperty; var objectCtorString = funcToString3.call(Object); function isPlainObject(value) { if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag2) { return false; } var proto = getPrototype_default(value); if (proto === null) { return true; } var Ctor = hasOwnProperty10.call(proto, "constructor") && proto.constructor; return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString; } __name(isPlainObject, "isPlainObject"); var isPlainObject_default = isPlainObject; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.js var rsAstralRange = "\\ud800-\\udfff"; var rsComboMarksRange = "\\u0300-\\u036f"; var reComboHalfMarksRange = "\\ufe20-\\ufe2f"; var rsComboSymbolsRange = "\\u20d0-\\u20ff"; var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange; var rsVarRange = "\\ufe0e\\ufe0f"; var rsZWJ = "\\u200d"; var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]"); function hasUnicode(string) { return reHasUnicode.test(string); } __name(hasUnicode, "hasUnicode"); var hasUnicode_default = hasUnicode; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.js function arrayReduce(array, iteratee, accumulator, initAccum) { var index = -1, length = array == null ? 0 : array.length; if (initAccum && length) { accumulator = array[++index]; } while (++index < length) { accumulator = iteratee(accumulator, array[index], index, array); } return accumulator; } __name(arrayReduce, "arrayReduce"); var arrayReduce_default = arrayReduce; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js function stackClear() { this.__data__ = new ListCache_default(); this.size = 0; } __name(stackClear, "stackClear"); var stackClear_default = stackClear; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js function stackDelete(key) { var data = this.__data__, result = data["delete"](key); this.size = data.size; return result; } __name(stackDelete, "stackDelete"); var stackDelete_default = stackDelete; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js function stackGet(key) { return this.__data__.get(key); } __name(stackGet, "stackGet"); var stackGet_default = stackGet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js function stackHas(key) { return this.__data__.has(key); } __name(stackHas, "stackHas"); var stackHas_default = stackHas; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js var LARGE_ARRAY_SIZE = 200; function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache_default) { var pairs = data.__data__; if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache_default(pairs); } data.set(key, value); this.size = data.size; return this; } __name(stackSet, "stackSet"); var stackSet_default = stackSet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js function Stack(entries) { var data = this.__data__ = new ListCache_default(entries); this.size = data.size; } __name(Stack, "Stack"); Stack.prototype.clear = stackClear_default; Stack.prototype["delete"] = stackDelete_default; Stack.prototype.get = stackGet_default; Stack.prototype.has = stackHas_default; Stack.prototype.set = stackSet_default; var Stack_default = Stack; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js function baseAssign(object, source) { return object && copyObject_default(source, keys_default(source), object); } __name(baseAssign, "baseAssign"); var baseAssign_default = baseAssign; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js function baseAssignIn(object, source) { return object && copyObject_default(source, keysIn_default(source), object); } __name(baseAssignIn, "baseAssignIn"); var baseAssignIn_default = baseAssignIn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports; var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module; var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3; var Buffer2 = moduleExports3 ? root_default.Buffer : void 0; var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0; function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } __name(cloneBuffer, "cloneBuffer"); var cloneBuffer_default = cloneBuffer; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js function arrayFilter(array, predicate) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result[resIndex++] = value; } } return result; } __name(arrayFilter, "arrayFilter"); var arrayFilter_default = arrayFilter; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js function stubArray() { return []; } __name(stubArray, "stubArray"); var stubArray_default = stubArray; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js var objectProto13 = Object.prototype; var propertyIsEnumerable2 = objectProto13.propertyIsEnumerable; var nativeGetSymbols = Object.getOwnPropertySymbols; var getSymbols = !nativeGetSymbols ? stubArray_default : function(object) { if (object == null) { return []; } object = Object(object); return arrayFilter_default(nativeGetSymbols(object), function(symbol) { return propertyIsEnumerable2.call(object, symbol); }); }; var getSymbols_default = getSymbols; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js function copySymbols(source, object) { return copyObject_default(source, getSymbols_default(source), object); } __name(copySymbols, "copySymbols"); var copySymbols_default = copySymbols; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js var nativeGetSymbols2 = Object.getOwnPropertySymbols; var getSymbolsIn = !nativeGetSymbols2 ? stubArray_default : function(object) { var result = []; while (object) { arrayPush_default(result, getSymbols_default(object)); object = getPrototype_default(object); } return result; }; var getSymbolsIn_default = getSymbolsIn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js function copySymbolsIn(source, object) { return copyObject_default(source, getSymbolsIn_default(source), object); } __name(copySymbolsIn, "copySymbolsIn"); var copySymbolsIn_default = copySymbolsIn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray_default(object) ? result : arrayPush_default(result, symbolsFunc(object)); } __name(baseGetAllKeys, "baseGetAllKeys"); var baseGetAllKeys_default = baseGetAllKeys; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js function getAllKeys(object) { return baseGetAllKeys_default(object, keys_default, getSymbols_default); } __name(getAllKeys, "getAllKeys"); var getAllKeys_default = getAllKeys; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js function getAllKeysIn(object) { return baseGetAllKeys_default(object, keysIn_default, getSymbolsIn_default); } __name(getAllKeysIn, "getAllKeysIn"); var getAllKeysIn_default = getAllKeysIn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js var DataView = getNative_default(root_default, "DataView"); var DataView_default = DataView; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js var Promise2 = getNative_default(root_default, "Promise"); var Promise_default = Promise2; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.js var Set = getNative_default(root_default, "Set"); var Set_default = Set; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js var mapTag2 = "[object Map]"; var objectTag3 = "[object Object]"; var promiseTag = "[object Promise]"; var setTag2 = "[object Set]"; var weakMapTag2 = "[object WeakMap]"; var dataViewTag2 = "[object DataView]"; var dataViewCtorString = toSource_default(DataView_default); var mapCtorString = toSource_default(Map_default); var promiseCtorString = toSource_default(Promise_default); var setCtorString = toSource_default(Set_default); var weakMapCtorString = toSource_default(WeakMap_default); var getTag = baseGetTag_default; if (DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != dataViewTag2 || Map_default && getTag(new Map_default()) != mapTag2 || Promise_default && getTag(Promise_default.resolve()) != promiseTag || Set_default && getTag(new Set_default()) != setTag2 || WeakMap_default && getTag(new WeakMap_default()) != weakMapTag2) { getTag = /* @__PURE__ */ __name(function(value) { var result = baseGetTag_default(value), Ctor = result == objectTag3 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : ""; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag2; case mapCtorString: return mapTag2; case promiseCtorString: return promiseTag; case setCtorString: return setTag2; case weakMapCtorString: return weakMapTag2; } } return result; }, "getTag"); } var getTag_default = getTag; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js var objectProto14 = Object.prototype; var hasOwnProperty11 = objectProto14.hasOwnProperty; function initCloneArray(array) { var length = array.length, result = new array.constructor(length); if (length && typeof array[0] == "string" && hasOwnProperty11.call(array, "index")) { result.index = array.index; result.input = array.input; } return result; } __name(initCloneArray, "initCloneArray"); var initCloneArray_default = initCloneArray; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js var Uint8Array = root_default.Uint8Array; var Uint8Array_default = Uint8Array; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer)); return result; } __name(cloneArrayBuffer, "cloneArrayBuffer"); var cloneArrayBuffer_default = cloneArrayBuffer; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer_default(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } __name(cloneDataView, "cloneDataView"); var cloneDataView_default = cloneDataView; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js var reFlags = /\w*$/; function cloneRegExp(regexp) { var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); result.lastIndex = regexp.lastIndex; return result; } __name(cloneRegExp, "cloneRegExp"); var cloneRegExp_default = cloneRegExp; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js var symbolProto2 = Symbol_default ? Symbol_default.prototype : void 0; var symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0; function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; } __name(cloneSymbol, "cloneSymbol"); var cloneSymbol_default = cloneSymbol; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } __name(cloneTypedArray, "cloneTypedArray"); var cloneTypedArray_default = cloneTypedArray; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js var boolTag2 = "[object Boolean]"; var dateTag2 = "[object Date]"; var mapTag3 = "[object Map]"; var numberTag2 = "[object Number]"; var regexpTag2 = "[object RegExp]"; var setTag3 = "[object Set]"; var stringTag2 = "[object String]"; var symbolTag2 = "[object Symbol]"; var arrayBufferTag2 = "[object ArrayBuffer]"; var dataViewTag3 = "[object DataView]"; var float32Tag2 = "[object Float32Array]"; var float64Tag2 = "[object Float64Array]"; var int8Tag2 = "[object Int8Array]"; var int16Tag2 = "[object Int16Array]"; var int32Tag2 = "[object Int32Array]"; var uint8Tag2 = "[object Uint8Array]"; var uint8ClampedTag2 = "[object Uint8ClampedArray]"; var uint16Tag2 = "[object Uint16Array]"; var uint32Tag2 = "[object Uint32Array]"; function initCloneByTag(object, tag, isDeep) { var Ctor = object.constructor; switch (tag) { case arrayBufferTag2: return cloneArrayBuffer_default(object); case boolTag2: case dateTag2: return new Ctor(+object); case dataViewTag3: return cloneDataView_default(object, isDeep); case float32Tag2: case float64Tag2: case int8Tag2: case int16Tag2: case int32Tag2: case uint8Tag2: case uint8ClampedTag2: case uint16Tag2: case uint32Tag2: return cloneTypedArray_default(object, isDeep); case mapTag3: return new Ctor(); case numberTag2: case stringTag2: return new Ctor(object); case regexpTag2: return cloneRegExp_default(object); case setTag3: return new Ctor(); case symbolTag2: return cloneSymbol_default(object); } } __name(initCloneByTag, "initCloneByTag"); var initCloneByTag_default = initCloneByTag; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js function initCloneObject(object) { return typeof object.constructor == "function" && !isPrototype_default(object) ? baseCreate_default(getPrototype_default(object)) : {}; } __name(initCloneObject, "initCloneObject"); var initCloneObject_default = initCloneObject; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js var mapTag4 = "[object Map]"; function baseIsMap(value) { return isObjectLike_default(value) && getTag_default(value) == mapTag4; } __name(baseIsMap, "baseIsMap"); var baseIsMap_default = baseIsMap; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js var nodeIsMap = nodeUtil_default && nodeUtil_default.isMap; var isMap = nodeIsMap ? baseUnary_default(nodeIsMap) : baseIsMap_default; var isMap_default = isMap; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js var setTag4 = "[object Set]"; function baseIsSet(value) { return isObjectLike_default(value) && getTag_default(value) == setTag4; } __name(baseIsSet, "baseIsSet"); var baseIsSet_default = baseIsSet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js var nodeIsSet = nodeUtil_default && nodeUtil_default.isSet; var isSet = nodeIsSet ? baseUnary_default(nodeIsSet) : baseIsSet_default; var isSet_default = isSet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js var CLONE_DEEP_FLAG = 1; var CLONE_FLAT_FLAG = 2; var CLONE_SYMBOLS_FLAG = 4; var argsTag3 = "[object Arguments]"; var arrayTag2 = "[object Array]"; var boolTag3 = "[object Boolean]"; var dateTag3 = "[object Date]"; var errorTag2 = "[object Error]"; var funcTag3 = "[object Function]"; var genTag2 = "[object GeneratorFunction]"; var mapTag5 = "[object Map]"; var numberTag3 = "[object Number]"; var objectTag4 = "[object Object]"; var regexpTag3 = "[object RegExp]"; var setTag5 = "[object Set]"; var stringTag3 = "[object String]"; var symbolTag3 = "[object Symbol]"; var weakMapTag3 = "[object WeakMap]"; var arrayBufferTag3 = "[object ArrayBuffer]"; var dataViewTag4 = "[object DataView]"; var float32Tag3 = "[object Float32Array]"; var float64Tag3 = "[object Float64Array]"; var int8Tag3 = "[object Int8Array]"; var int16Tag3 = "[object Int16Array]"; var int32Tag3 = "[object Int32Array]"; var uint8Tag3 = "[object Uint8Array]"; var uint8ClampedTag3 = "[object Uint8ClampedArray]"; var uint16Tag3 = "[object Uint16Array]"; var uint32Tag3 = "[object Uint32Array]"; var cloneableTags = {}; cloneableTags[argsTag3] = cloneableTags[arrayTag2] = cloneableTags[arrayBufferTag3] = cloneableTags[dataViewTag4] = cloneableTags[boolTag3] = cloneableTags[dateTag3] = cloneableTags[float32Tag3] = cloneableTags[float64Tag3] = cloneableTags[int8Tag3] = cloneableTags[int16Tag3] = cloneableTags[int32Tag3] = cloneableTags[mapTag5] = cloneableTags[numberTag3] = cloneableTags[objectTag4] = cloneableTags[regexpTag3] = cloneableTags[setTag5] = cloneableTags[stringTag3] = cloneableTags[symbolTag3] = cloneableTags[uint8Tag3] = cloneableTags[uint8ClampedTag3] = cloneableTags[uint16Tag3] = cloneableTags[uint32Tag3] = true; cloneableTags[errorTag2] = cloneableTags[funcTag3] = cloneableTags[weakMapTag3] = false; function baseClone(value, bitmask, customizer, key, object, stack) { var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } if (result !== void 0) { return result; } if (!isObject_default(value)) { return value; } var isArr = isArray_default(value); if (isArr) { result = initCloneArray_default(value); if (!isDeep) { return copyArray_default(value, result); } } else { var tag = getTag_default(value), isFunc = tag == funcTag3 || tag == genTag2; if (isBuffer_default(value)) { return cloneBuffer_default(value, isDeep); } if (tag == objectTag4 || tag == argsTag3 || isFunc && !object) { result = isFlat || isFunc ? {} : initCloneObject_default(value); if (!isDeep) { return isFlat ? copySymbolsIn_default(value, baseAssignIn_default(result, value)) : copySymbols_default(value, baseAssign_default(result, value)); } } else { if (!cloneableTags[tag]) { return object ? value : {}; } result = initCloneByTag_default(value, tag, isDeep); } } stack || (stack = new Stack_default()); var stacked = stack.get(value); if (stacked) { return stacked; } stack.set(value, result); if (isSet_default(value)) { value.forEach(function(subValue) { result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); }); } else if (isMap_default(value)) { value.forEach(function(subValue, key2) { result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); }); } var keysFunc = isFull ? isFlat ? getAllKeysIn_default : getAllKeys_default : isFlat ? keysIn_default : keys_default; var props = isArr ? void 0 : keysFunc(value); arrayEach_default(props || value, function(subValue, key2) { if (props) { key2 = subValue; subValue = value[key2]; } assignValue_default(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); }); return result; } __name(baseClone, "baseClone"); var baseClone_default = baseClone; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/clone.js var CLONE_SYMBOLS_FLAG2 = 4; function clone(value) { return baseClone_default(value, CLONE_SYMBOLS_FLAG2); } __name(clone, "clone"); var clone_default = clone; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js var CLONE_DEEP_FLAG2 = 1; var CLONE_SYMBOLS_FLAG3 = 4; function cloneDeep(value) { return baseClone_default(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG3); } __name(cloneDeep, "cloneDeep"); var cloneDeep_default = cloneDeep; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js var HASH_UNDEFINED3 = "__lodash_hash_undefined__"; function setCacheAdd(value) { this.__data__.set(value, HASH_UNDEFINED3); return this; } __name(setCacheAdd, "setCacheAdd"); var setCacheAdd_default = setCacheAdd; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js function setCacheHas(value) { return this.__data__.has(value); } __name(setCacheHas, "setCacheHas"); var setCacheHas_default = setCacheHas; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js function SetCache(values2) { var index = -1, length = values2 == null ? 0 : values2.length; this.__data__ = new MapCache_default(); while (++index < length) { this.add(values2[index]); } } __name(SetCache, "SetCache"); SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default; SetCache.prototype.has = setCacheHas_default; var SetCache_default = SetCache; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js function arraySome(array, predicate) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (predicate(array[index], index, array)) { return true; } } return false; } __name(arraySome, "arraySome"); var arraySome_default = arraySome; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js function cacheHas(cache, key) { return cache.has(key); } __name(cacheHas, "cacheHas"); var cacheHas_default = cacheHas; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js var COMPARE_PARTIAL_FLAG = 1; var COMPARE_UNORDERED_FLAG = 2; function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; if (arrLength != othLength && !(isPartial && othLength > arrLength)) { return false; } var arrStacked = stack.get(array); var othStacked = stack.get(other); if (arrStacked && othStacked) { return arrStacked == other && othStacked == array; } var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache_default() : void 0; stack.set(array, other); stack.set(other, array); while (++index < arrLength) { var arrValue = array[index], othValue = other[index]; if (customizer) { var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); } if (compared !== void 0) { if (compared) { continue; } result = false; break; } if (seen) { if (!arraySome_default(other, function(othValue2, othIndex) { if (!cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { return seen.push(othIndex); } })) { result = false; break; } } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { result = false; break; } } stack["delete"](array); stack["delete"](other); return result; } __name(equalArrays, "equalArrays"); var equalArrays_default = equalArrays; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js function mapToArray(map2) { var index = -1, result = Array(map2.size); map2.forEach(function(value, key) { result[++index] = [key, value]; }); return result; } __name(mapToArray, "mapToArray"); var mapToArray_default = mapToArray; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js function setToArray(set) { var index = -1, result = Array(set.size); set.forEach(function(value) { result[++index] = value; }); return result; } __name(setToArray, "setToArray"); var setToArray_default = setToArray; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js var COMPARE_PARTIAL_FLAG2 = 1; var COMPARE_UNORDERED_FLAG2 = 2; var boolTag4 = "[object Boolean]"; var dateTag4 = "[object Date]"; var errorTag3 = "[object Error]"; var mapTag6 = "[object Map]"; var numberTag4 = "[object Number]"; var regexpTag4 = "[object RegExp]"; var setTag6 = "[object Set]"; var stringTag4 = "[object String]"; var symbolTag4 = "[object Symbol]"; var arrayBufferTag4 = "[object ArrayBuffer]"; var dataViewTag5 = "[object DataView]"; var symbolProto3 = Symbol_default ? Symbol_default.prototype : void 0; var symbolValueOf2 = symbolProto3 ? symbolProto3.valueOf : void 0; function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { switch (tag) { case dataViewTag5: if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { return false; } object = object.buffer; other = other.buffer; case arrayBufferTag4: if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array_default(object), new Uint8Array_default(other))) { return false; } return true; case boolTag4: case dateTag4: case numberTag4: return eq_default(+object, +other); case errorTag3: return object.name == other.name && object.message == other.message; case regexpTag4: case stringTag4: return object == other + ""; case mapTag6: var convert = mapToArray_default; case setTag6: var isPartial = bitmask & COMPARE_PARTIAL_FLAG2; convert || (convert = setToArray_default); if (object.size != other.size && !isPartial) { return false; } var stacked = stack.get(object); if (stacked) { return stacked == other; } bitmask |= COMPARE_UNORDERED_FLAG2; stack.set(object, other); var result = equalArrays_default(convert(object), convert(other), bitmask, customizer, equalFunc, stack); stack["delete"](object); return result; case symbolTag4: if (symbolValueOf2) { return symbolValueOf2.call(object) == symbolValueOf2.call(other); } } return false; } __name(equalByTag, "equalByTag"); var equalByTag_default = equalByTag; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js var COMPARE_PARTIAL_FLAG3 = 1; var objectProto15 = Object.prototype; var hasOwnProperty12 = objectProto15.hasOwnProperty; function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = getAllKeys_default(object), objLength = objProps.length, othProps = getAllKeys_default(other), othLength = othProps.length; if (objLength != othLength && !isPartial) { return false; } var index = objLength; while (index--) { var key = objProps[index]; if (!(isPartial ? key in other : hasOwnProperty12.call(other, key))) { return false; } } var objStacked = stack.get(object); var othStacked = stack.get(other); if (objStacked && othStacked) { return objStacked == other && othStacked == object; } var result = true; stack.set(object, other); stack.set(other, object); var skipCtor = isPartial; while (++index < objLength) { key = objProps[index]; var objValue = object[key], othValue = other[key]; if (customizer) { var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); } if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { result = false; break; } skipCtor || (skipCtor = key == "constructor"); } if (result && !skipCtor) { var objCtor = object.constructor, othCtor = other.constructor; if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { result = false; } } stack["delete"](object); stack["delete"](other); return result; } __name(equalObjects, "equalObjects"); var equalObjects_default = equalObjects; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js var COMPARE_PARTIAL_FLAG4 = 1; var argsTag4 = "[object Arguments]"; var arrayTag3 = "[object Array]"; var objectTag5 = "[object Object]"; var objectProto16 = Object.prototype; var hasOwnProperty13 = objectProto16.hasOwnProperty; function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { var objIsArr = isArray_default(object), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag3 : getTag_default(object), othTag = othIsArr ? arrayTag3 : getTag_default(other); objTag = objTag == argsTag4 ? objectTag5 : objTag; othTag = othTag == argsTag4 ? objectTag5 : othTag; var objIsObj = objTag == objectTag5, othIsObj = othTag == objectTag5, isSameTag = objTag == othTag; if (isSameTag && isBuffer_default(object)) { if (!isBuffer_default(other)) { return false; } objIsArr = true; objIsObj = false; } if (isSameTag && !objIsObj) { stack || (stack = new Stack_default()); return objIsArr || isTypedArray_default(object) ? equalArrays_default(object, other, bitmask, customizer, equalFunc, stack) : equalByTag_default(object, other, objTag, bitmask, customizer, equalFunc, stack); } if (!(bitmask & COMPARE_PARTIAL_FLAG4)) { var objIsWrapped = objIsObj && hasOwnProperty13.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty13.call(other, "__wrapped__"); if (objIsWrapped || othIsWrapped) { var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; stack || (stack = new Stack_default()); return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); } } if (!isSameTag) { return false; } stack || (stack = new Stack_default()); return equalObjects_default(object, other, bitmask, customizer, equalFunc, stack); } __name(baseIsEqualDeep, "baseIsEqualDeep"); var baseIsEqualDeep_default = baseIsEqualDeep; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js function baseIsEqual(value, other, bitmask, customizer, stack) { if (value === other) { return true; } if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) { return value !== value && other !== other; } return baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack); } __name(baseIsEqual, "baseIsEqual"); var baseIsEqual_default = baseIsEqual; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js var COMPARE_PARTIAL_FLAG5 = 1; var COMPARE_UNORDERED_FLAG3 = 2; function baseIsMatch(object, source, matchData, customizer) { var index = matchData.length, length = index, noCustomizer = !customizer; if (object == null) { return !length; } object = Object(object); while (index--) { var data = matchData[index]; if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { return false; } } while (++index < length) { data = matchData[index]; var key = data[0], objValue = object[key], srcValue = data[1]; if (noCustomizer && data[2]) { if (objValue === void 0 && !(key in object)) { return false; } } else { var stack = new Stack_default(); if (customizer) { var result = customizer(objValue, srcValue, key, object, source, stack); } if (!(result === void 0 ? baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG5 | COMPARE_UNORDERED_FLAG3, customizer, stack) : result)) { return false; } } } return true; } __name(baseIsMatch, "baseIsMatch"); var baseIsMatch_default = baseIsMatch; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js function isStrictComparable(value) { return value === value && !isObject_default(value); } __name(isStrictComparable, "isStrictComparable"); var isStrictComparable_default = isStrictComparable; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js function getMatchData(object) { var result = keys_default(object), length = result.length; while (length--) { var key = result[length], value = object[key]; result[length] = [key, value, isStrictComparable_default(value)]; } return result; } __name(getMatchData, "getMatchData"); var getMatchData_default = getMatchData; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js function matchesStrictComparable(key, srcValue) { return function(object) { if (object == null) { return false; } return object[key] === srcValue && (srcValue !== void 0 || key in Object(object)); }; } __name(matchesStrictComparable, "matchesStrictComparable"); var matchesStrictComparable_default = matchesStrictComparable; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js function baseMatches(source) { var matchData = getMatchData_default(source); if (matchData.length == 1 && matchData[0][2]) { return matchesStrictComparable_default(matchData[0][0], matchData[0][1]); } return function(object) { return object === source || baseIsMatch_default(object, source, matchData); }; } __name(baseMatches, "baseMatches"); var baseMatches_default = baseMatches; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js function baseHasIn(object, key) { return object != null && key in Object(object); } __name(baseHasIn, "baseHasIn"); var baseHasIn_default = baseHasIn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js function hasPath(object, path, hasFunc) { path = castPath_default(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = toKey_default(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && isLength_default(length) && isIndex_default(key, length) && (isArray_default(object) || isArguments_default(object)); } __name(hasPath, "hasPath"); var hasPath_default = hasPath; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js function hasIn(object, path) { return object != null && hasPath_default(object, path, baseHasIn_default); } __name(hasIn, "hasIn"); var hasIn_default = hasIn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js var COMPARE_PARTIAL_FLAG6 = 1; var COMPARE_UNORDERED_FLAG4 = 2; function baseMatchesProperty(path, srcValue) { if (isKey_default(path) && isStrictComparable_default(srcValue)) { return matchesStrictComparable_default(toKey_default(path), srcValue); } return function(object) { var objValue = get_default(object, path); return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4); }; } __name(baseMatchesProperty, "baseMatchesProperty"); var baseMatchesProperty_default = baseMatchesProperty; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js function baseProperty(key) { return function(object) { return object == null ? void 0 : object[key]; }; } __name(baseProperty, "baseProperty"); var baseProperty_default = baseProperty; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js function basePropertyDeep(path) { return function(object) { return baseGet_default(object, path); }; } __name(basePropertyDeep, "basePropertyDeep"); var basePropertyDeep_default = basePropertyDeep; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/property.js function property(path) { return isKey_default(path) ? baseProperty_default(toKey_default(path)) : basePropertyDeep_default(path); } __name(property, "property"); var property_default = property; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js function baseIteratee(value) { if (typeof value == "function") { return value; } if (value == null) { return identity_default; } if (typeof value == "object") { return isArray_default(value) ? baseMatchesProperty_default(value[0], value[1]) : baseMatches_default(value); } return property_default(value); } __name(baseIteratee, "baseIteratee"); var baseIteratee_default = baseIteratee; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } __name(createBaseFor, "createBaseFor"); var createBaseFor_default = createBaseFor; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js var baseFor = createBaseFor_default(); var baseFor_default = baseFor; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js function baseForOwn(object, iteratee) { return object && baseFor_default(object, iteratee, keys_default); } __name(baseForOwn, "baseForOwn"); var baseForOwn_default = baseForOwn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js function createBaseEach(eachFunc, fromRight) { return function(collection, iteratee) { if (collection == null) { return collection; } if (!isArrayLike_default(collection)) { return eachFunc(collection, iteratee); } var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection); while (fromRight ? index-- : ++index < length) { if (iteratee(iterable[index], index, iterable) === false) { break; } } return collection; }; } __name(createBaseEach, "createBaseEach"); var createBaseEach_default = createBaseEach; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js var baseEach = createBaseEach_default(baseForOwn_default); var baseEach_default = baseEach; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/now.js var now = /* @__PURE__ */ __name(function() { return root_default.Date.now(); }, "now"); var now_default = now; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/defaults.js var objectProto17 = Object.prototype; var hasOwnProperty14 = objectProto17.hasOwnProperty; var defaults = baseRest_default(function(object, sources) { object = Object(object); var index = -1; var length = sources.length; var guard = length > 2 ? sources[2] : void 0; if (guard && isIterateeCall_default(sources[0], sources[1], guard)) { length = 1; } while (++index < length) { var source = sources[index]; var props = keysIn_default(source); var propsIndex = -1; var propsLength = props.length; while (++propsIndex < propsLength) { var key = props[propsIndex]; var value = object[key]; if (value === void 0 || eq_default(value, objectProto17[key]) && !hasOwnProperty14.call(object, key)) { object[key] = source[key]; } } } return object; }); var defaults_default = defaults; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js function assignMergeValue(object, key, value) { if (value !== void 0 && !eq_default(object[key], value) || value === void 0 && !(key in object)) { baseAssignValue_default(object, key, value); } } __name(assignMergeValue, "assignMergeValue"); var assignMergeValue_default = assignMergeValue; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js function isArrayLikeObject(value) { return isObjectLike_default(value) && isArrayLike_default(value); } __name(isArrayLikeObject, "isArrayLikeObject"); var isArrayLikeObject_default = isArrayLikeObject; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js function safeGet(object, key) { if (key === "constructor" && typeof object[key] === "function") { return; } if (key == "__proto__") { return; } return object[key]; } __name(safeGet, "safeGet"); var safeGet_default = safeGet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js function toPlainObject(value) { return copyObject_default(value, keysIn_default(value)); } __name(toPlainObject, "toPlainObject"); var toPlainObject_default = toPlainObject; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { var objValue = safeGet_default(object, key), srcValue = safeGet_default(source, key), stacked = stack.get(srcValue); if (stacked) { assignMergeValue_default(object, key, stacked); return; } var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0; var isCommon = newValue === void 0; if (isCommon) { var isArr = isArray_default(srcValue), isBuff = !isArr && isBuffer_default(srcValue), isTyped = !isArr && !isBuff && isTypedArray_default(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (isArray_default(objValue)) { newValue = objValue; } else if (isArrayLikeObject_default(objValue)) { newValue = copyArray_default(objValue); } else if (isBuff) { isCommon = false; newValue = cloneBuffer_default(srcValue, true); } else if (isTyped) { isCommon = false; newValue = cloneTypedArray_default(srcValue, true); } else { newValue = []; } } else if (isPlainObject_default(srcValue) || isArguments_default(srcValue)) { newValue = objValue; if (isArguments_default(objValue)) { newValue = toPlainObject_default(objValue); } else if (!isObject_default(objValue) || isFunction_default(objValue)) { newValue = initCloneObject_default(srcValue); } } else { isCommon = false; } } if (isCommon) { stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); stack["delete"](srcValue); } assignMergeValue_default(object, key, newValue); } __name(baseMergeDeep, "baseMergeDeep"); var baseMergeDeep_default = baseMergeDeep; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js function baseMerge(object, source, srcIndex, customizer, stack) { if (object === source) { return; } baseFor_default(source, function(srcValue, key) { stack || (stack = new Stack_default()); if (isObject_default(srcValue)) { baseMergeDeep_default(object, source, key, srcIndex, baseMerge, customizer, stack); } else { var newValue = customizer ? customizer(safeGet_default(object, key), srcValue, key + "", object, source, stack) : void 0; if (newValue === void 0) { newValue = srcValue; } assignMergeValue_default(object, key, newValue); } }, keysIn_default); } __name(baseMerge, "baseMerge"); var baseMerge_default = baseMerge; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayIncludesWith.js function arrayIncludesWith(array, value, comparator) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (comparator(value, array[index])) { return true; } } return false; } __name(arrayIncludesWith, "arrayIncludesWith"); var arrayIncludesWith_default = arrayIncludesWith; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.js function last(array) { var length = array == null ? 0 : array.length; return length ? array[length - 1] : void 0; } __name(last, "last"); var last_default = last; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castFunction.js function castFunction(value) { return typeof value == "function" ? value : identity_default; } __name(castFunction, "castFunction"); var castFunction_default = castFunction; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/forEach.js function forEach(collection, iteratee) { var func = isArray_default(collection) ? arrayEach_default : baseEach_default; return func(collection, castFunction_default(iteratee)); } __name(forEach, "forEach"); var forEach_default = forEach; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFilter.js function baseFilter(collection, predicate) { var result = []; baseEach_default(collection, function(value, index, collection2) { if (predicate(value, index, collection2)) { result.push(value); } }); return result; } __name(baseFilter, "baseFilter"); var baseFilter_default = baseFilter; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/filter.js function filter(collection, predicate) { var func = isArray_default(collection) ? arrayFilter_default : baseFilter_default; return func(collection, baseIteratee_default(predicate, 3)); } __name(filter, "filter"); var filter_default = filter; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js function createFind(findIndexFunc) { return function(collection, predicate, fromIndex) { var iterable = Object(collection); if (!isArrayLike_default(collection)) { var iteratee = baseIteratee_default(predicate, 3); collection = keys_default(collection); predicate = /* @__PURE__ */ __name(function(key) { return iteratee(iterable[key], key, iterable); }, "predicate"); } var index = findIndexFunc(collection, predicate, fromIndex); return index > -1 ? iterable[iteratee ? collection[index] : index] : void 0; }; } __name(createFind, "createFind"); var createFind_default = createFind; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js var nativeMax2 = Math.max; function findIndex(array, predicate, fromIndex) { var length = array == null ? 0 : array.length; if (!length) { return -1; } var index = fromIndex == null ? 0 : toInteger_default(fromIndex); if (index < 0) { index = nativeMax2(length + index, 0); } return baseFindIndex_default(array, baseIteratee_default(predicate, 3), index); } __name(findIndex, "findIndex"); var findIndex_default = findIndex; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/find.js var find = createFind_default(findIndex_default); var find_default = find; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js function baseMap(collection, iteratee) { var index = -1, result = isArrayLike_default(collection) ? Array(collection.length) : []; baseEach_default(collection, function(value, key, collection2) { result[++index] = iteratee(value, key, collection2); }); return result; } __name(baseMap, "baseMap"); var baseMap_default = baseMap; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/map.js function map(collection, iteratee) { var func = isArray_default(collection) ? arrayMap_default : baseMap_default; return func(collection, baseIteratee_default(iteratee, 3)); } __name(map, "map"); var map_default = map; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/forIn.js function forIn(object, iteratee) { return object == null ? object : baseFor_default(object, castFunction_default(iteratee), keysIn_default); } __name(forIn, "forIn"); var forIn_default = forIn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/forOwn.js function forOwn(object, iteratee) { return object && baseForOwn_default(object, castFunction_default(iteratee)); } __name(forOwn, "forOwn"); var forOwn_default = forOwn; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js function baseGt(value, other) { return value > other; } __name(baseGt, "baseGt"); var baseGt_default = baseGt; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHas.js var objectProto18 = Object.prototype; var hasOwnProperty15 = objectProto18.hasOwnProperty; function baseHas(object, key) { return object != null && hasOwnProperty15.call(object, key); } __name(baseHas, "baseHas"); var baseHas_default = baseHas; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/has.js function has(object, path) { return object != null && hasPath_default(object, path, baseHas_default); } __name(has, "has"); var has_default = has; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isString.js var stringTag5 = "[object String]"; function isString(value) { return typeof value == "string" || !isArray_default(value) && isObjectLike_default(value) && baseGetTag_default(value) == stringTag5; } __name(isString, "isString"); var isString_default = isString; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseValues.js function baseValues(object, props) { return arrayMap_default(props, function(key) { return object[key]; }); } __name(baseValues, "baseValues"); var baseValues_default = baseValues; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/values.js function values(object) { return object == null ? [] : baseValues_default(object, keys_default(object)); } __name(values, "values"); var values_default = values; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js var mapTag7 = "[object Map]"; var setTag7 = "[object Set]"; var objectProto19 = Object.prototype; var hasOwnProperty16 = objectProto19.hasOwnProperty; function isEmpty(value) { if (value == null) { return true; } if (isArrayLike_default(value) && (isArray_default(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer_default(value) || isTypedArray_default(value) || isArguments_default(value))) { return !value.length; } var tag = getTag_default(value); if (tag == mapTag7 || tag == setTag7) { return !value.size; } if (isPrototype_default(value)) { return !baseKeys_default(value).length; } for (var key in value) { if (hasOwnProperty16.call(value, key)) { return false; } } return true; } __name(isEmpty, "isEmpty"); var isEmpty_default = isEmpty; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.js function isUndefined(value) { return value === void 0; } __name(isUndefined, "isUndefined"); var isUndefined_default = isUndefined; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseLt.js function baseLt(value, other) { return value < other; } __name(baseLt, "baseLt"); var baseLt_default = baseLt; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mapValues.js function mapValues(object, iteratee) { var result = {}; iteratee = baseIteratee_default(iteratee, 3); baseForOwn_default(object, function(value, key, object2) { baseAssignValue_default(result, key, iteratee(value, key, object2)); }); return result; } __name(mapValues, "mapValues"); var mapValues_default = mapValues; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js function baseExtremum(array, iteratee, comparator) { var index = -1, length = array.length; while (++index < length) { var value = array[index], current = iteratee(value); if (current != null && (computed === void 0 ? current === current && !isSymbol_default(current) : comparator(current, computed))) { var computed = current, result = value; } } return result; } __name(baseExtremum, "baseExtremum"); var baseExtremum_default = baseExtremum; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/max.js function max(array) { return array && array.length ? baseExtremum_default(array, identity_default, baseGt_default) : void 0; } __name(max, "max"); var max_default = max; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/merge.js var merge = createAssigner_default(function(object, source, srcIndex) { baseMerge_default(object, source, srcIndex); }); var merge_default = merge; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/min.js function min(array) { return array && array.length ? baseExtremum_default(array, identity_default, baseLt_default) : void 0; } __name(min, "min"); var min_default = min; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/minBy.js function minBy(array, iteratee) { return array && array.length ? baseExtremum_default(array, baseIteratee_default(iteratee, 2), baseLt_default) : void 0; } __name(minBy, "minBy"); var minBy_default = minBy; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js function baseSet(object, path, value, customizer) { if (!isObject_default(object)) { return object; } path = castPath_default(path, object); var index = -1, length = path.length, lastIndex = length - 1, nested = object; while (nested != null && ++index < length) { var key = toKey_default(path[index]), newValue = value; if (key === "__proto__" || key === "constructor" || key === "prototype") { return object; } if (index != lastIndex) { var objValue = nested[key]; newValue = customizer ? customizer(objValue, key, nested) : void 0; if (newValue === void 0) { newValue = isObject_default(objValue) ? objValue : isIndex_default(path[index + 1]) ? [] : {}; } } assignValue_default(nested, key, newValue); nested = nested[key]; } return object; } __name(baseSet, "baseSet"); var baseSet_default = baseSet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js function basePickBy(object, paths, predicate) { var index = -1, length = paths.length, result = {}; while (++index < length) { var path = paths[index], value = baseGet_default(object, path); if (predicate(value, path)) { baseSet_default(result, castPath_default(path, object), value); } } return result; } __name(basePickBy, "basePickBy"); var basePickBy_default = basePickBy; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSortBy.js function baseSortBy(array, comparer) { var length = array.length; array.sort(comparer); while (length--) { array[length] = array[length].value; } return array; } __name(baseSortBy, "baseSortBy"); var baseSortBy_default = baseSortBy; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_compareAscending.js function compareAscending(value, other) { if (value !== other) { var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol_default(value); var othIsDefined = other !== void 0, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol_default(other); if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) { return 1; } if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) { return -1; } } return 0; } __name(compareAscending, "compareAscending"); var compareAscending_default = compareAscending; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_compareMultiple.js function compareMultiple(object, other, orders) { var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; while (++index < length) { var result = compareAscending_default(objCriteria[index], othCriteria[index]); if (result) { if (index >= ordersLength) { return result; } var order = orders[index]; return result * (order == "desc" ? -1 : 1); } } return object.index - other.index; } __name(compareMultiple, "compareMultiple"); var compareMultiple_default = compareMultiple; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseOrderBy.js function baseOrderBy(collection, iteratees, orders) { if (iteratees.length) { iteratees = arrayMap_default(iteratees, function(iteratee) { if (isArray_default(iteratee)) { return function(value) { return baseGet_default(value, iteratee.length === 1 ? iteratee[0] : iteratee); }; } return iteratee; }); } else { iteratees = [identity_default]; } var index = -1; iteratees = arrayMap_default(iteratees, baseUnary_default(baseIteratee_default)); var result = baseMap_default(collection, function(value, key, collection2) { var criteria = arrayMap_default(iteratees, function(iteratee) { return iteratee(value); }); return { "criteria": criteria, "index": ++index, "value": value }; }); return baseSortBy_default(result, function(object, other) { return compareMultiple_default(object, other, orders); }); } __name(baseOrderBy, "baseOrderBy"); var baseOrderBy_default = baseOrderBy; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiSize.js var asciiSize = baseProperty_default("length"); var asciiSize_default = asciiSize; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeSize.js var rsAstralRange2 = "\\ud800-\\udfff"; var rsComboMarksRange2 = "\\u0300-\\u036f"; var reComboHalfMarksRange2 = "\\ufe20-\\ufe2f"; var rsComboSymbolsRange2 = "\\u20d0-\\u20ff"; var rsComboRange2 = rsComboMarksRange2 + reComboHalfMarksRange2 + rsComboSymbolsRange2; var rsVarRange2 = "\\ufe0e\\ufe0f"; var rsAstral = "[" + rsAstralRange2 + "]"; var rsCombo = "[" + rsComboRange2 + "]"; var rsFitz = "\\ud83c[\\udffb-\\udfff]"; var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")"; var rsNonAstral = "[^" + rsAstralRange2 + "]"; var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}"; var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]"; var rsZWJ2 = "\\u200d"; var reOptMod = rsModifier + "?"; var rsOptVar = "[" + rsVarRange2 + "]?"; var rsOptJoin = "(?:" + rsZWJ2 + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*"; var rsSeq = rsOptVar + reOptMod + rsOptJoin; var rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")"; var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); function unicodeSize(string) { var result = reUnicode.lastIndex = 0; while (reUnicode.test(string)) { ++result; } return result; } __name(unicodeSize, "unicodeSize"); var unicodeSize_default = unicodeSize; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringSize.js function stringSize(string) { return hasUnicode_default(string) ? unicodeSize_default(string) : asciiSize_default(string); } __name(stringSize, "stringSize"); var stringSize_default = stringSize; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js function basePick(object, paths) { return basePickBy_default(object, paths, function(value, path) { return hasIn_default(object, path); }); } __name(basePick, "basePick"); var basePick_default = basePick; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/pick.js var pick = flatRest_default(function(object, paths) { return object == null ? {} : basePick_default(object, paths); }); var pick_default = pick; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRange.js var nativeCeil = Math.ceil; var nativeMax3 = Math.max; function baseRange(start, end, step, fromRight) { var index = -1, length = nativeMax3(nativeCeil((end - start) / (step || 1)), 0), result = Array(length); while (length--) { result[fromRight ? length : ++index] = start; start += step; } return result; } __name(baseRange, "baseRange"); var baseRange_default = baseRange; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createRange.js function createRange(fromRight) { return function(start, end, step) { if (step && typeof step != "number" && isIterateeCall_default(start, end, step)) { end = step = void 0; } start = toFinite_default(start); if (end === void 0) { end = start; start = 0; } else { end = toFinite_default(end); } step = step === void 0 ? start < end ? 1 : -1 : toFinite_default(step); return baseRange_default(start, end, step, fromRight); }; } __name(createRange, "createRange"); var createRange_default = createRange; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/range.js var range = createRange_default(); var range_default = range; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.js function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { eachFunc(collection, function(value, index, collection2) { accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2); }); return accumulator; } __name(baseReduce, "baseReduce"); var baseReduce_default = baseReduce; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/reduce.js function reduce(collection, iteratee, accumulator) { var func = isArray_default(collection) ? arrayReduce_default : baseReduce_default, initAccum = arguments.length < 3; return func(collection, baseIteratee_default(iteratee, 4), accumulator, initAccum, baseEach_default); } __name(reduce, "reduce"); var reduce_default = reduce; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/size.js var mapTag8 = "[object Map]"; var setTag8 = "[object Set]"; function size(collection) { if (collection == null) { return 0; } if (isArrayLike_default(collection)) { return isString_default(collection) ? stringSize_default(collection) : collection.length; } var tag = getTag_default(collection); if (tag == mapTag8 || tag == setTag8) { return collection.size; } return baseKeys_default(collection).length; } __name(size, "size"); var size_default = size; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/sortBy.js var sortBy = baseRest_default(function(collection, iteratees) { if (collection == null) { return []; } var length = iteratees.length; if (length > 1 && isIterateeCall_default(collection, iteratees[0], iteratees[1])) { iteratees = []; } else if (length > 2 && isIterateeCall_default(iteratees[0], iteratees[1], iteratees[2])) { iteratees = [iteratees[0]]; } return baseOrderBy_default(collection, baseFlatten_default(iteratees, 1), []); }); var sortBy_default = sortBy; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createSet.js var INFINITY4 = 1 / 0; var createSet = !(Set_default && 1 / setToArray_default(new Set_default([, -0]))[1] == INFINITY4) ? noop_default : function(values2) { return new Set_default(values2); }; var createSet_default = createSet; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUniq.js var LARGE_ARRAY_SIZE2 = 200; function baseUniq(array, iteratee, comparator) { var index = -1, includes = arrayIncludes_default, length = array.length, isCommon = true, result = [], seen = result; if (comparator) { isCommon = false; includes = arrayIncludesWith_default; } else if (length >= LARGE_ARRAY_SIZE2) { var set = iteratee ? null : createSet_default(array); if (set) { return setToArray_default(set); } isCommon = false; includes = cacheHas_default; seen = new SetCache_default(); } else { seen = iteratee ? [] : result; } outer: while (++index < length) { var value = array[index], computed = iteratee ? iteratee(value) : value; value = comparator || value !== 0 ? value : 0; if (isCommon && computed === computed) { var seenIndex = seen.length; while (seenIndex--) { if (seen[seenIndex] === computed) { continue outer; } } if (iteratee) { seen.push(computed); } result.push(value); } else if (!includes(seen, computed, comparator)) { if (seen !== result) { seen.push(computed); } result.push(value); } } return result; } __name(baseUniq, "baseUniq"); var baseUniq_default = baseUniq; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/union.js var union = baseRest_default(function(arrays) { return baseUniq_default(baseFlatten_default(arrays, 1, isArrayLikeObject_default, true)); }); var union_default = union; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/uniqueId.js var idCounter = 0; function uniqueId(prefix) { var id = ++idCounter; return toString_default(prefix) + id; } __name(uniqueId, "uniqueId"); var uniqueId_default = uniqueId; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseZipObject.js function baseZipObject(props, values2, assignFunc) { var index = -1, length = props.length, valsLength = values2.length, result = {}; while (++index < length) { var value = index < valsLength ? values2[index] : void 0; assignFunc(result, props[index], value); } return result; } __name(baseZipObject, "baseZipObject"); var baseZipObject_default = baseZipObject; // ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/zipObject.js function zipObject(props, values2) { return baseZipObject_default(props || [], values2 || [], assignValue_default); } __name(zipObject, "zipObject"); var zipObject_default = zipObject; // ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/graphlib/graph.js var DEFAULT_EDGE_NAME = "\0"; var GRAPH_NODE = "\0"; var EDGE_KEY_DELIM = ""; var Graph = class { static { __name(this, "Graph"); } /** * @param {GraphOptions} [opts] - Graph options. */ constructor(opts = {}) { this._isDirected = Object.prototype.hasOwnProperty.call(opts, "directed") ? opts.directed : true; this._isMultigraph = Object.prototype.hasOwnProperty.call(opts, "multigraph") ? opts.multigraph : false; this._isCompound = Object.prototype.hasOwnProperty.call(opts, "compound") ? opts.compound : false; this._label = void 0; this._defaultNodeLabelFn = constant_default(void 0); this._defaultEdgeLabelFn = constant_default(void 0); this._nodes = {}; if (this._isCompound) { this._parent = {}; this._children = {}; this._children[GRAPH_NODE] = {}; } this._in = {}; this._preds = {}; this._out = {}; this._sucs = {}; this._edgeObjs = {}; this._edgeLabels = {}; } /* === Graph functions ========= */ /** * * @returns {boolean} `true` if the graph is [directed](https://en.wikipedia.org/wiki/Directed_graph). * A directed graph treats the order of nodes in an edge as significant whereas an * [undirected](https://en.wikipedia.org/wiki/Graph_(mathematics)#Undirected_graph) * graph does not. * This example demonstrates the difference: * * @example * * ```js * var directed = new Graph({ directed: true }); * directed.setEdge("a", "b", "my-label"); * directed.edge("a", "b"); // returns "my-label" * directed.edge("b", "a"); // returns undefined * * var undirected = new Graph({ directed: false }); * undirected.setEdge("a", "b", "my-label"); * undirected.edge("a", "b"); // returns "my-label" * undirected.edge("b", "a"); // returns "my-label" * ``` */ isDirected() { return this._isDirected; } /** * @returns {boolean} `true` if the graph is a multigraph. */ isMultigraph() { return this._isMultigraph; } /** * @returns {boolean} `true` if the graph is compound. */ isCompound() { return this._isCompound; } /** * Sets the label for the graph to `label`. * * @param {GraphLabel} label - Label for the graph. * @returns {this} */ setGraph(label) { this._label = label; return this; } /** * @returns {GraphLabel | undefined} the currently assigned label for the graph. * If no label has been assigned, returns `undefined`. * * @example * * ```js * var g = new Graph(); * g.graph(); // returns undefined * g.setGraph("graph-label"); * g.graph(); // returns "graph-label" * ``` */ graph() { return this._label; } /* === Node functions ========== */ /** * Sets a new default value that is assigned to nodes that are created without * a label. * * @param {typeof this._defaultNodeLabelFn | NodeLabel} newDefault - If a function, * it is called with the id of the node being created. * Otherwise, it is assigned as the label directly. * @returns {this} */ setDefaultNodeLabel(newDefault) { if (!isFunction_default(newDefault)) { newDefault = constant_default(newDefault); } this._defaultNodeLabelFn = newDefault; return this; } /** * @returns {number} the number of nodes in the graph. */ nodeCount() { return this._nodeCount; } /** * @returns {NodeID[]} the ids of the nodes in the graph. * * @remarks * Use {@link node()} to get the label for each node. * Takes `O(|V|)` time. */ nodes() { return keys_default(this._nodes); } /** * @returns {NodeID[]} those nodes in the graph that have no in-edges. * @remarks Takes `O(|V|)` time. */ sources() { var self2 = this; return filter_default(this.nodes(), function(v) { return isEmpty_default(self2._in[v]); }); } /** * @returns {NodeID[]} those nodes in the graph that have no out-edges. * @remarks Takes `O(|V|)` time. */ sinks() { var self2 = this; return filter_default(this.nodes(), function(v) { return isEmpty_default(self2._out[v]); }); } /** * Invokes setNode method for each node in `vs` list. * * @param {Collection} vs - List of node IDs to create/set. * @param {NodeLabel} [value] - If set, update all nodes with this value. * @returns {this} * @remarks Complexity: O(|names|). */ setNodes(vs, value) { var args = arguments; var self2 = this; forEach_default(vs, function(v) { if (args.length > 1) { self2.setNode(v, value); } else { self2.setNode(v); } }); return this; } /** * Creates or updates the value for the node `v` in the graph. * * @param {NodeID | number} v - ID of the node to create/set. * @param {NodeLabel} [value] - If supplied, it is set as the value for the node. * If not supplied and the node was created by this call then * {@link setDefaultNodeLabel} will be used to set the node's value. * @returns {this} the graph, allowing this to be chained with other functions. * @remarks Takes `O(1)` time. */ setNode(v, value) { if (Object.prototype.hasOwnProperty.call(this._nodes, v)) { if (arguments.length > 1) { this._nodes[v] = value; } return this; } this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v); if (this._isCompound) { this._parent[v] = GRAPH_NODE; this._children[v] = {}; this._children[GRAPH_NODE][v] = true; } this._in[v] = {}; this._preds[v] = {}; this._out[v] = {}; this._sucs[v] = {}; ++this._nodeCount; return this; } /** * Gets the label of node with specified name. * * @param {NodeID | number} v - Node ID. * @returns {NodeLabel | undefined} the label assigned to the node with the id `v` * if it is in the graph. * Otherwise returns `undefined`. * @remarks Takes `O(1)` time. */ node(v) { return this._nodes[v]; } /** * Detects whether graph has a node with specified name or not. * * @param {NodeID | number} v - Node ID. * @returns {boolean} Returns `true` the graph has a node with the id. * @remarks Takes `O(1)` time. */ hasNode(v) { return Object.prototype.hasOwnProperty.call(this._nodes, v); } /** * Remove the node with the id `v` in the graph or do nothing if the node is * not in the graph. * * If the node was removed this function also removes any incident edges. * * @param {NodeID | number} v - Node ID to remove. * @returns {this} the graph, allowing this to be chained with other functions. * @remarks Takes `O(|E|)` time. */ removeNode(v) { if (Object.prototype.hasOwnProperty.call(this._nodes, v)) { var removeEdge = /* @__PURE__ */ __name((e) => this.removeEdge(this._edgeObjs[e]), "removeEdge"); delete this._nodes[v]; if (this._isCompound) { this._removeFromParentsChildList(v); delete this._parent[v]; forEach_default(this.children(v), (child) => { this.setParent(child); }); delete this._children[v]; } forEach_default(keys_default(this._in[v]), removeEdge); delete this._in[v]; delete this._preds[v]; forEach_default(keys_default(this._out[v]), removeEdge); delete this._out[v]; delete this._sucs[v]; --this._nodeCount; } return this; } /** * Sets the parent for `v` to `parent` if it is defined or removes the parent * for `v` if `parent` is undefined. * * @param {NodeID | number} v - Node ID to set the parent for. * @param {NodeID | number} [parent] - Parent node ID. If not defined, removes the parent. * @returns {this} the graph, allowing this to be chained with other functions. * @throws if the graph is not compound. * @throws if setting the parent would create a cycle. * @remarks Takes `O(1)` time. */ setParent(v, parent) { if (!this._isCompound) { throw new Error("Cannot set parent in a non-compound graph"); } if (isUndefined_default(parent)) { parent = GRAPH_NODE; } else { parent += ""; for (var ancestor = parent; !isUndefined_default(ancestor); ancestor = this.parent(ancestor)) { if (ancestor === v) { throw new Error("Setting " + parent + " as parent of " + v + " would create a cycle"); } } this.setNode(parent); } this.setNode(v); this._removeFromParentsChildList(v); this._parent[v] = parent; this._children[parent][v] = true; return this; } /** * @private * @param {NodeID | number} v - Node ID. */ _removeFromParentsChildList(v) { delete this._children[this._parent[v]][v]; } /** * Get parent node for node `v`. * * @param {NodeID | number} v - Node ID. * @returns {NodeID | undefined} the node that is a parent of node `v` * or `undefined` if node `v` does not have a parent or is not a member of * the graph. * Always returns `undefined` for graphs that are not compound. * @remarks Takes `O(1)` time. */ parent(v) { if (this._isCompound) { var parent = this._parent[v]; if (parent !== GRAPH_NODE) { return parent; } } } /** * Gets list of direct children of node v. * * @param {NodeID | number} [v] - Node ID. If not specified, gets nodes * with no parent (top-level nodes). * @returns {NodeID[] | undefined} all nodes that are children of node `v` or * `undefined` if node `v` is not in the graph. * Always returns `[]` for graphs that are not compound. * @remarks Takes `O(|V|)` time. */ children(v) { if (isUndefined_default(v)) { v = GRAPH_NODE; } if (this._isCompound) { var children = this._children[v]; if (children) { return keys_default(children); } } else if (v === GRAPH_NODE) { return this.nodes(); } else if (this.hasNode(v)) { return []; } } /** * @param {NodeID | number} v - Node ID. * @returns {NodeID[] | undefined} all nodes that are predecessors of the * specified node or `undefined` if node `v` is not in the graph. * @remarks * Behavior is undefined for undirected graphs - use {@link neighbors} instead. * Takes `O(|V|)` time. */ predecessors(v) { var predsV = this._preds[v]; if (predsV) { return keys_default(predsV); } } /** * @param {NodeID | number} v - Node ID. * @returns {NodeID[] | undefined} all nodes that are successors of the * specified node or `undefined` if node `v` is not in the graph. * @remarks * Behavior is undefined for undirected graphs - use {@link neighbors} instead. * Takes `O(|V|)` time. */ successors(v) { var sucsV = this._sucs[v]; if (sucsV) { return keys_default(sucsV); } } /** * @param {NodeID | number} v - Node ID. * @returns {NodeID[] | undefined} all nodes that are predecessors or * successors of the specified node * or `undefined` if node `v` is not in the graph. * @remarks Takes `O(|V|)` time. */ neighbors(v) { var preds = this.predecessors(v); if (preds) { return union_default(preds, this.successors(v)); } } /** * @param {NodeID | number} v - Node ID. * @returns {boolean} True if the node is a leaf (has no successors), false otherwise. */ isLeaf(v) { var neighbors; if (this.isDirected()) { neighbors = this.successors(v); } else { neighbors = this.neighbors(v); } return neighbors.length === 0; } /** * Creates new graph with nodes filtered via `filter`. * Edges incident to rejected node * are also removed. * * In case of compound graph, if parent is rejected by `filter`, * than all its children are rejected too. * @param {(v: NodeID) => boolean} filter - Function that returns `true` for nodes to keep. * @returns {Graph} A new graph containing only the nodes for which `filter` returns `true`. * @remarks Average-case complexity: O(|E|+|V|). */ filterNodes(filter2) { var copy = new this.constructor({ directed: this._isDirected, multigraph: this._isMultigraph, compound: this._isCompound }); copy.setGraph(this.graph()); var self2 = this; forEach_default(this._nodes, function(value, v) { if (filter2(v)) { copy.setNode(v, value); } }); forEach_default(this._edgeObjs, function(e) { if (copy.hasNode(e.v) && copy.hasNode(e.w)) { copy.setEdge(e, self2.edge(e)); } }); var parents = {}; function findParent(v) { var parent = self2.parent(v); if (parent === void 0 || copy.hasNode(parent)) { parents[v] = parent; return parent; } else if (parent in parents) { return parents[parent]; } else { return findParent(parent); } } __name(findParent, "findParent"); if (this._isCompound) { forEach_default(copy.nodes(), function(v) { copy.setParent(v, findParent(v)); }); } return copy; } /* === Edge functions ========== */ /** * Sets a new default value that is assigned to edges that are created without * a label. * * @param {typeof this._defaultEdgeLabelFn | EdgeLabel} newDefault - If a function, * it is called with the parameters `(v, w, name)`. * Otherwise, it is assigned as the label directly. * @returns {this} */ setDefaultEdgeLabel(newDefault) { if (!isFunction_default(newDefault)) { newDefault = constant_default(newDefault); } this._defaultEdgeLabelFn = newDefault; return this; } /** * @returns {number} the number of edges in the graph. * @remarks Complexity: O(1). */ edgeCount() { return this._edgeCount; } /** * Gets edges of the graph. * * @returns {EdgeObj[]} the {@link EdgeObj} for each edge in the graph. * * @remarks * In case of compound graph subgraphs are not considered. * Use {@link edge()} to get the label for each edge. * Takes `O(|E|)` time. */ edges() { return values_default(this._edgeObjs); } /** * Establish an edges path over the nodes in nodes list. * * If some edge is already exists, it will update its label, otherwise it will * create an edge between pair of nodes with label provided or default label * if no label provided. * * @param {Collection} vs - List of node IDs to create edges between. * @param {EdgeLabel} [value] - If set, update all edges with this value. * @returns {this} * @remarks Complexity: O(|nodes|). */ setPath(vs, value) { var self2 = this; var args = arguments; reduce_default(vs, function(v, w) { if (args.length > 1) { self2.setEdge(v, w, value); } else { self2.setEdge(v, w); } return w; }); return this; } /** * Creates or updates the label for the edge (`v`, `w`) with the optionally * supplied `name`. * * @overload * @param {EdgeObj} arg0 - Edge object. * @param {EdgeLabel} [value] - If supplied, it is set as the label for the edge. * If not supplied and the edge was created by this call then * {@link setDefaultEdgeLabel} will be used to assign the edge's label. * @returns {this} the graph, allowing this to be chained with other functions. * @remarks Takes `O(1)` time. */ /** * Creates or updates the label for the edge (`v`, `w`) with the optionally * supplied `name`. * * @overload * @param {NodeID | number} v - Source node ID. Number values will be coerced to strings. * @param {NodeID | number} w - Target node ID. Number values will be coerced to strings. * @param {EdgeLabel} [value] - If supplied, it is set as the label for the edge. * If not supplied and the edge was created by this call then * {@link setDefaultEdgeLabel} will be used to assign the edge's label. * @param {string | number} [name] - Edge name. Only useful with multigraphs. * @returns {this} the graph, allowing this to be chained with other functions. * @remarks Takes `O(1)` time. */ setEdge() { var v, w, name, value; var valueSpecified = false; var arg0 = arguments[0]; if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) { v = arg0.v; w = arg0.w; name = arg0.name; if (arguments.length === 2) { value = arguments[1]; valueSpecified = true; } } else { v = arg0; w = arguments[1]; name = arguments[3]; if (arguments.length > 2) { value = arguments[2]; valueSpecified = true; } } v = "" + v; w = "" + w; if (!isUndefined_default(name)) { name = "" + name; } var e = edgeArgsToId(this._isDirected, v, w, name); if (Object.prototype.hasOwnProperty.call(this._edgeLabels, e)) { if (valueSpecified) { this._edgeLabels[e] = value; } return this; } if (!isUndefined_default(name) && !this._isMultigraph) { throw new Error("Cannot set a named edge when isMultigraph = false"); } this.setNode(v); this.setNode(w); this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name); var edgeObj = edgeArgsToObj(this._isDirected, v, w, name); v = edgeObj.v; w = edgeObj.w; Object.freeze(edgeObj); this._edgeObjs[e] = edgeObj; incrementOrInitEntry(this._preds[w], v); incrementOrInitEntry(this._sucs[v], w); this._in[w][e] = edgeObj; this._out[v][e] = edgeObj; this._edgeCount++; return this; } /** * Gets the label for the specified edge. * * @overload * @param {EdgeObj} v - Edge object. * @returns {EdgeLabel | undefined} the label for the edge (`v`, `w`) if the * graph has an edge between `v` and `w` with the optional `name`. * Returned `undefined` if there is no such edge in the graph. * @remarks * `v` and `w` can be interchanged for undirected graphs. * Takes `O(1)` time. */ /** * Gets the label for the specified edge. * * @overload * @param {NodeID | number} v - Source node ID. * @param {NodeID | number} w - Target node ID. * @param {string | number} [name] - Edge name. Only useful with multigraphs. * @returns {EdgeLabel | undefined} the label for the edge (`v`, `w`) if the * graph has an edge between `v` and `w` with the optional `name`. * Returned `undefined` if there is no such edge in the graph. * @remarks * `v` and `w` can be interchanged for undirected graphs. * Takes `O(1)` time. */ edge(v, w, name) { var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name); return this._edgeLabels[e]; } /** * Detects whether the graph contains specified edge or not. * * @overload * @param {EdgeObj} v - Edge object. * @returns {boolean} `true` if the graph has an edge between `v` and `w` * with the optional `name`. * @remarks * `v` and `w` can be interchanged for undirected graphs. * No subgraphs are considered. * Takes `O(1)` time. */ /** * Detects whether the graph contains specified edge or not. * * @overload * @param {NodeID | number} v - Source node ID. * @param {NodeID | number} w - Target node ID. * @param {string | number} [name] - Edge name. Only useful with multigraphs. * @returns {boolean} `true` if the graph has an edge between `v` and `w` * with the optional `name`. * @remarks * `v` and `w` can be interchanged for undirected graphs. * No subgraphs are considered. * Takes `O(1)` time. */ hasEdge(v, w, name) { var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name); return Object.prototype.hasOwnProperty.call(this._edgeLabels, e); } /** * Removes the edge (`v`, `w`) if the graph has an edge between `v` and `w` * with the optional `name`. If not this function does nothing. * * @overload * @param {EdgeObj} v - Edge object. * @returns {this} * @remarks * `v` and `w` can be interchanged for undirected graphs. * No subgraphs are considered. * Takes `O(1)` time. */ /** * Removes the edge (`v`, `w`) if the graph has an edge between `v` and `w` * with the optional `name`. If not this function does nothing. * * @overload * @param {NodeID | number} v - Source node ID. * @param {NodeID | number} w - Target node ID. * @param {string | number} [name] - Edge name. Only useful with multigraphs. * @returns {this} * @remarks * `v` and `w` can be interchanged for undirected graphs. * Takes `O(1)` time. */ removeEdge(v, w, name) { var e = arguments.length === 1 ? edgeObjToId(this._isDirected, arguments[0]) : edgeArgsToId(this._isDirected, v, w, name); var edge = this._edgeObjs[e]; if (edge) { v = edge.v; w = edge.w; delete this._edgeLabels[e]; delete this._edgeObjs[e]; decrementOrRemoveEntry(this._preds[w], v); decrementOrRemoveEntry(this._sucs[v], w); delete this._in[w][e]; delete this._out[v][e]; this._edgeCount--; } return this; } /** * @param {NodeID | number} v - Target node ID. * @param {NodeID | number} [u] - Optionally filters edges down to just those * coming from node `u`. * @returns {EdgeObj[] | undefined} all edges that point to the node `v`. * Returns `undefined` if node `v` is not in the graph. * @remarks * Behavior is undefined for undirected graphs - use {@link nodeEdges} instead. * Takes `O(|E|)` time. */ inEdges(v, u) { var inV = this._in[v]; if (inV) { var edges = values_default(inV); if (!u) { return edges; } return filter_default(edges, function(edge) { return edge.v === u; }); } } /** * @param {NodeID | number} v - Target node ID. * @param {NodeID | number} [w] - Optionally filters edges down to just those * that point to `w`. * @returns {EdgeObj[] | undefined} all edges that point to the node `v`. * Returns `undefined` if node `v` is not in the graph. * @remarks * Behavior is undefined for undirected graphs - use {@link nodeEdges} instead. * Takes `O(|E|)` time. */ outEdges(v, w) { var outV = this._out[v]; if (outV) { var edges = values_default(outV); if (!w) { return edges; } return filter_default(edges, function(edge) { return edge.w === w; }); } } /** * @param {NodeID | number} v - Target Node ID. * @param {NodeID | number} [w] - If set, filters those edges down to just * those between nodes `v` and `w` regardless of direction * @returns {EdgeObj[] | undefined} all edges to or from node `v` regardless * of direction. Returns `undefined` if node `v` is not in the graph. * @remarks Takes `O(|E|)` time. */ nodeEdges(v, w) { var inEdges = this.inEdges(v, w); if (inEdges) { return inEdges.concat(this.outEdges(v, w)); } } }; Graph.prototype._nodeCount = 0; Graph.prototype._edgeCount = 0; function incrementOrInitEntry(map2, k) { if (map2[k]) { map2[k]++; } else { map2[k] = 1; } } __name(incrementOrInitEntry, "incrementOrInitEntry"); function decrementOrRemoveEntry(map2, k) { if (!--map2[k]) { delete map2[k]; } } __name(decrementOrRemoveEntry, "decrementOrRemoveEntry"); function edgeArgsToId(isDirected, v_, w_, name) { var v = "" + v_; var w = "" + w_; if (!isDirected && v > w) { var tmp = v; v = w; w = tmp; } return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM + (isUndefined_default(name) ? DEFAULT_EDGE_NAME : name); } __name(edgeArgsToId, "edgeArgsToId"); function edgeArgsToObj(isDirected, v_, w_, name) { var v = "" + v_; var w = "" + w_; if (!isDirected && v > w) { var tmp = v; v = w; w = tmp; } var edgeObj = { v, w }; if (name) { edgeObj.name = name; } return edgeObj; } __name(edgeArgsToObj, "edgeArgsToObj"); function edgeObjToId(isDirected, edgeObj) { return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name); } __name(edgeObjToId, "edgeObjToId"); export { isArray_default, constant_default, flatten_default, clone_default, cloneDeep_default, now_default, defaults_default, last_default, forEach_default, filter_default, find_default, map_default, forIn_default, forOwn_default, has_default, values_default, isUndefined_default, mapValues_default, max_default, merge_default, min_default, minBy_default, pick_default, range_default, reduce_default, size_default, sortBy_default, uniqueId_default, zipObject_default, Graph }; /*! Bundled license information: lodash-es/lodash.js: (** * @license * Lodash (Custom Build) * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./` * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors *) */