@dxyl/utils 1.3.2 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +6590 -6259
- package/dist/index.umd.js +20 -71
- package/lib/glslang/glslang.d.ts +14 -14
- package/lib/glslang/glslang.js +112 -112
- package/lib/twgsl/twgsl.js +53 -53
- package/package.json +51 -51
- package/types/color/blend/helpers.d.ts +32 -0
- package/types/color/blend/index.d.ts +129 -0
- package/types/color/blend/non-separable-blend.d.ts +9 -0
- package/types/color/blend/non-separable-modes.d.ts +33 -0
- package/types/color/blend/separable-blend.d.ts +9 -0
- package/types/color/blend/separable-modes.d.ts +100 -0
- package/types/color/blend/types.d.ts +38 -0
- package/types/color/blend/unit.d.ts +129 -0
- package/types/color/composite/composite-core.d.ts +34 -0
- package/types/color/composite/composite-types.d.ts +10 -0
- package/types/color/composite/image-data-compositor.d.ts +5 -0
- package/types/color/composite/webgl-compositor.d.ts +10 -0
- package/types/color/composite/webgpu-compositor.d.ts +10 -0
- package/types/data/immer.d.ts +262 -262
- package/types/data/immutable.d.ts +5127 -5127
- package/types/data/mobx.d.ts +2 -2
- package/types/events/event_emiter.d.ts +43 -43
- package/types/fast-deep-equal.d.ts +1 -1
- package/types/index.d.ts +3 -0
- package/types/lodash/add.d.ts +1 -2
- package/types/lodash/after.d.ts +1 -2
- package/types/lodash/array.d.ts +1 -3
- package/types/lodash/array.default.d.ts +68 -70
- package/types/lodash/ary.d.ts +1 -2
- package/types/lodash/assign.d.ts +1 -2
- package/types/lodash/assignIn.d.ts +1 -2
- package/types/lodash/assignInWith.d.ts +1 -2
- package/types/lodash/assignWith.d.ts +1 -2
- package/types/lodash/at.d.ts +1 -2
- package/types/lodash/attempt.d.ts +1 -2
- package/types/lodash/augment.d.ts +2 -2
- package/types/lodash/before.d.ts +1 -2
- package/types/lodash/bind.d.ts +1 -2
- package/types/lodash/bindAll.d.ts +1 -2
- package/types/lodash/bindKey.d.ts +1 -2
- package/types/lodash/cache.d.ts +14 -14
- package/types/lodash/camelCase.d.ts +1 -2
- package/types/lodash/capitalize.d.ts +1 -2
- package/types/lodash/castArray.d.ts +1 -2
- package/types/lodash/ceil.d.ts +1 -2
- package/types/lodash/chain.d.ts +1 -2
- package/types/lodash/chunk.d.ts +1 -2
- package/types/lodash/clamp.d.ts +1 -2
- package/types/lodash/clear-animation-frame.d.ts +1 -1
- package/types/lodash/clone.d.ts +1 -2
- package/types/lodash/cloneDeep.d.ts +1 -2
- package/types/lodash/cloneDeepWith.d.ts +1 -2
- package/types/lodash/cloneWith.d.ts +1 -2
- package/types/lodash/collection.d.ts +1 -3
- package/types/lodash/collection.default.d.ts +31 -33
- package/types/lodash/compact.d.ts +1 -2
- package/types/lodash/concat.d.ts +1 -2
- package/types/lodash/cond.d.ts +1 -2
- package/types/lodash/conforms.d.ts +1 -2
- package/types/lodash/conformsTo.d.ts +1 -2
- package/types/lodash/constant.d.ts +1 -2
- package/types/lodash/contains.d.ts +2 -2
- package/types/lodash/countBy.d.ts +1 -2
- package/types/lodash/create.d.ts +1 -2
- package/types/lodash/curry.d.ts +1 -2
- package/types/lodash/curryRight.d.ts +1 -2
- package/types/lodash/date.d.ts +1 -3
- package/types/lodash/date.default.d.ts +4 -6
- package/types/lodash/debounce.d.ts +2 -4
- package/types/lodash/deburr.d.ts +1 -2
- package/types/lodash/deep-mix.d.ts +2 -2
- package/types/lodash/defaultTo.d.ts +1 -2
- package/types/lodash/defaults.d.ts +1 -2
- package/types/lodash/defaultsDeep.d.ts +1 -2
- package/types/lodash/defer.d.ts +1 -2
- package/types/lodash/delay.d.ts +1 -2
- package/types/lodash/difference.d.ts +1 -2
- package/types/lodash/differenceBy.d.ts +1 -2
- package/types/lodash/differenceWith.d.ts +1 -2
- package/types/lodash/divide.d.ts +1 -2
- package/types/lodash/drop.d.ts +1 -2
- package/types/lodash/dropRight.d.ts +1 -2
- package/types/lodash/dropRightWhile.d.ts +1 -2
- package/types/lodash/dropWhile.d.ts +1 -2
- package/types/lodash/each.d.ts +1 -2
- package/types/lodash/eachRight.d.ts +1 -2
- package/types/lodash/ends-with.d.ts +3 -3
- package/types/lodash/endsWith.d.ts +1 -2
- package/types/lodash/entries.d.ts +1 -2
- package/types/lodash/entriesIn.d.ts +1 -2
- package/types/lodash/eq.d.ts +1 -2
- package/types/lodash/escape.d.ts +1 -2
- package/types/lodash/escapeRegExp.d.ts +1 -2
- package/types/lodash/every.d.ts +1 -2
- package/types/lodash/extend.d.ts +1 -2
- package/types/lodash/extendWith.d.ts +1 -2
- package/types/lodash/fill.d.ts +1 -2
- package/types/lodash/filter.d.ts +1 -2
- package/types/lodash/find-index.d.ts +2 -2
- package/types/lodash/find.d.ts +1 -2
- package/types/lodash/findIndex.d.ts +1 -2
- package/types/lodash/findKey.d.ts +1 -2
- package/types/lodash/findLast.d.ts +1 -2
- package/types/lodash/findLastIndex.d.ts +1 -2
- package/types/lodash/findLastKey.d.ts +1 -2
- package/types/lodash/first-value.d.ts +2 -2
- package/types/lodash/first.d.ts +1 -2
- package/types/lodash/fixed-base.d.ts +2 -2
- package/types/lodash/flatMap.d.ts +1 -2
- package/types/lodash/flatMapDeep.d.ts +1 -2
- package/types/lodash/flatMapDepth.d.ts +1 -2
- package/types/lodash/flatten-deep.d.ts +12 -12
- package/types/lodash/flatten.d.ts +1 -2
- package/types/lodash/flattenDeep.d.ts +1 -2
- package/types/lodash/flattenDepth.d.ts +1 -2
- package/types/lodash/flip.d.ts +1 -2
- package/types/lodash/floor.d.ts +1 -2
- package/types/lodash/flow.d.ts +1 -2
- package/types/lodash/flowRight.d.ts +1 -2
- package/types/lodash/for-in.d.ts +2 -2
- package/types/lodash/forEach.d.ts +1 -2
- package/types/lodash/forEachRight.d.ts +1 -2
- package/types/lodash/forIn.d.ts +1 -2
- package/types/lodash/forInRight.d.ts +1 -2
- package/types/lodash/forOwn.d.ts +1 -2
- package/types/lodash/forOwnRight.d.ts +1 -2
- package/types/lodash/fromPairs.d.ts +1 -2
- package/types/lodash/function.d.ts +1 -3
- package/types/lodash/function.default.d.ts +26 -28
- package/types/lodash/functions.d.ts +1 -2
- package/types/lodash/functionsIn.d.ts +1 -2
- package/types/lodash/get-range.d.ts +6 -6
- package/types/lodash/get-type.d.ts +2 -2
- package/types/lodash/get-wrap-behavior.d.ts +9 -9
- package/types/lodash/get.d.ts +1 -2
- package/types/lodash/group-by.d.ts +6 -6
- package/types/lodash/group-to-map.d.ts +8 -8
- package/types/lodash/group.d.ts +2 -2
- package/types/lodash/groupBy.d.ts +1 -2
- package/types/lodash/gt.d.ts +1 -2
- package/types/lodash/gte.d.ts +1 -2
- package/types/lodash/has-key.d.ts +2 -2
- package/types/lodash/has-value.d.ts +2 -2
- package/types/lodash/has.d.ts +1 -2
- package/types/lodash/hasIn.d.ts +1 -2
- package/types/lodash/head.d.ts +1 -2
- package/types/lodash/identity.d.ts +1 -2
- package/types/lodash/inRange.d.ts +1 -2
- package/types/lodash/includes.d.ts +1 -2
- package/types/lodash/index-of.d.ts +2 -2
- package/types/lodash/index.d.ts +304 -304
- package/types/lodash/indexOf.d.ts +1 -2
- package/types/lodash/initial.d.ts +1 -2
- package/types/lodash/intersection.d.ts +1 -2
- package/types/lodash/intersectionBy.d.ts +1 -2
- package/types/lodash/intersectionWith.d.ts +1 -2
- package/types/lodash/invert.d.ts +1 -2
- package/types/lodash/invertBy.d.ts +1 -2
- package/types/lodash/invoke.d.ts +1 -2
- package/types/lodash/invokeMap.d.ts +1 -2
- package/types/lodash/is-arguments.d.ts +2 -2
- package/types/lodash/is-array-like.d.ts +2 -2
- package/types/lodash/is-array.d.ts +2 -2
- package/types/lodash/is-boolean.d.ts +2 -2
- package/types/lodash/is-date.d.ts +2 -2
- package/types/lodash/is-decimal.d.ts +2 -2
- package/types/lodash/is-element.d.ts +6 -6
- package/types/lodash/is-empty.d.ts +2 -2
- package/types/lodash/is-equal-with.d.ts +24 -24
- package/types/lodash/is-equal.d.ts +2 -2
- package/types/lodash/is-error.d.ts +2 -2
- package/types/lodash/is-even.d.ts +2 -2
- package/types/lodash/is-finite.d.ts +1 -1
- package/types/lodash/is-function.d.ts +2 -2
- package/types/lodash/is-integer.d.ts +2 -2
- package/types/lodash/is-match.d.ts +2 -2
- package/types/lodash/is-negative.d.ts +2 -2
- package/types/lodash/is-nil.d.ts +2 -2
- package/types/lodash/is-null.d.ts +2 -2
- package/types/lodash/is-number-equal.d.ts +1 -1
- package/types/lodash/is-number.d.ts +2 -2
- package/types/lodash/is-object-like.d.ts +2 -2
- package/types/lodash/is-object.d.ts +2 -2
- package/types/lodash/is-odd.d.ts +2 -2
- package/types/lodash/is-plain-object.d.ts +2 -2
- package/types/lodash/is-positive.d.ts +2 -2
- package/types/lodash/is-prototype.d.ts +2 -2
- package/types/lodash/is-reg-exp.d.ts +2 -2
- package/types/lodash/is-segment-equal.d.ts +2 -2
- package/types/lodash/is-string.d.ts +2 -2
- package/types/lodash/is-type.d.ts +2 -2
- package/types/lodash/is-undefined.d.ts +2 -2
- package/types/lodash/isArguments.d.ts +1 -2
- package/types/lodash/isArray.d.ts +1 -2
- package/types/lodash/isArrayBuffer.d.ts +1 -2
- package/types/lodash/isArrayLike.d.ts +1 -2
- package/types/lodash/isArrayLikeObject.d.ts +1 -2
- package/types/lodash/isBoolean.d.ts +1 -2
- package/types/lodash/isBuffer.d.ts +1 -2
- package/types/lodash/isDate.d.ts +1 -2
- package/types/lodash/isElement.d.ts +1 -2
- package/types/lodash/isEmpty.d.ts +1 -2
- package/types/lodash/isEqual.d.ts +1 -2
- package/types/lodash/isEqualWith.d.ts +1 -2
- package/types/lodash/isError.d.ts +1 -2
- package/types/lodash/isFinite.d.ts +1 -2
- package/types/lodash/isFunction.d.ts +1 -2
- package/types/lodash/isInteger.d.ts +1 -2
- package/types/lodash/isLength.d.ts +1 -2
- package/types/lodash/isMap.d.ts +1 -2
- package/types/lodash/isMatch.d.ts +1 -2
- package/types/lodash/isMatchWith.d.ts +1 -2
- package/types/lodash/isNaN.d.ts +1 -2
- package/types/lodash/isNative.d.ts +1 -2
- package/types/lodash/isNil.d.ts +1 -2
- package/types/lodash/isNull.d.ts +1 -2
- package/types/lodash/isNumber.d.ts +1 -2
- package/types/lodash/isObject.d.ts +1 -2
- package/types/lodash/isObjectLike.d.ts +1 -2
- package/types/lodash/isPlainObject.d.ts +1 -2
- package/types/lodash/isRegExp.d.ts +1 -2
- package/types/lodash/isSafeInteger.d.ts +1 -2
- package/types/lodash/isSet.d.ts +1 -2
- package/types/lodash/isString.d.ts +1 -2
- package/types/lodash/isSymbol.d.ts +1 -2
- package/types/lodash/isTypedArray.d.ts +1 -2
- package/types/lodash/isUndefined.d.ts +1 -2
- package/types/lodash/isWeakMap.d.ts +1 -2
- package/types/lodash/isWeakSet.d.ts +1 -2
- package/types/lodash/iteratee.d.ts +1 -2
- package/types/lodash/join.d.ts +1 -2
- package/types/lodash/kebabCase.d.ts +1 -2
- package/types/lodash/keyBy.d.ts +1 -2
- package/types/lodash/keys.d.ts +1 -2
- package/types/lodash/keysIn.d.ts +1 -2
- package/types/lodash/lang.d.ts +1 -3
- package/types/lodash/lang.default.d.ts +59 -61
- package/types/lodash/last.d.ts +1 -2
- package/types/lodash/lastIndexOf.d.ts +1 -2
- package/types/lodash/lower-case.d.ts +2 -2
- package/types/lodash/lower-first.d.ts +2 -2
- package/types/lodash/lowerCase.d.ts +1 -2
- package/types/lodash/lowerFirst.d.ts +1 -2
- package/types/lodash/lt.d.ts +1 -2
- package/types/lodash/lte.d.ts +1 -2
- package/types/lodash/map-values.d.ts +6 -6
- package/types/lodash/map.d.ts +1 -2
- package/types/lodash/mapKeys.d.ts +1 -2
- package/types/lodash/mapValues.d.ts +1 -2
- package/types/lodash/matches.d.ts +1 -2
- package/types/lodash/matchesProperty.d.ts +1 -2
- package/types/lodash/math.d.ts +1 -3
- package/types/lodash/math.default.d.ts +18 -20
- package/types/lodash/max-by.d.ts +16 -16
- package/types/lodash/max.d.ts +1 -2
- package/types/lodash/maxBy.d.ts +1 -2
- package/types/lodash/mean.d.ts +1 -2
- package/types/lodash/meanBy.d.ts +1 -2
- package/types/lodash/memoize.d.ts +1 -2
- package/types/lodash/merge.d.ts +1 -2
- package/types/lodash/mergeWith.d.ts +1 -2
- package/types/lodash/method.d.ts +1 -2
- package/types/lodash/methodOf.d.ts +1 -2
- package/types/lodash/min-by.d.ts +16 -16
- package/types/lodash/min.d.ts +1 -2
- package/types/lodash/minBy.d.ts +1 -2
- package/types/lodash/mix.d.ts +1 -1
- package/types/lodash/mixin.d.ts +1 -2
- package/types/lodash/mod.d.ts +2 -2
- package/types/lodash/multiply.d.ts +1 -2
- package/types/lodash/negate.d.ts +1 -2
- package/types/lodash/noop.d.ts +1 -2
- package/types/lodash/now.d.ts +1 -2
- package/types/lodash/nth.d.ts +1 -2
- package/types/lodash/nthArg.d.ts +1 -2
- package/types/lodash/number.d.ts +1 -3
- package/types/lodash/number.default.d.ts +6 -8
- package/types/lodash/number2color.d.ts +2 -2
- package/types/lodash/object.d.ts +1 -3
- package/types/lodash/object.default.d.ts +50 -52
- package/types/lodash/omit.d.ts +1 -2
- package/types/lodash/omitBy.d.ts +1 -2
- package/types/lodash/once.d.ts +1 -2
- package/types/lodash/orderBy.d.ts +1 -2
- package/types/lodash/over.d.ts +1 -2
- package/types/lodash/overArgs.d.ts +1 -2
- package/types/lodash/overEvery.d.ts +1 -2
- package/types/lodash/overSome.d.ts +1 -2
- package/types/lodash/pad.d.ts +1 -2
- package/types/lodash/padEnd.d.ts +1 -2
- package/types/lodash/padStart.d.ts +1 -2
- package/types/lodash/parse-radius.d.ts +9 -9
- package/types/lodash/parseInt.d.ts +1 -2
- package/types/lodash/partial.d.ts +1 -2
- package/types/lodash/partialRight.d.ts +1 -2
- package/types/lodash/partition.d.ts +1 -2
- package/types/lodash/pick.d.ts +1 -2
- package/types/lodash/pickBy.d.ts +1 -2
- package/types/lodash/property.d.ts +2 -4
- package/types/lodash/propertyOf.d.ts +1 -2
- package/types/lodash/pull-at.d.ts +2 -2
- package/types/lodash/pull.d.ts +1 -2
- package/types/lodash/pullAll.d.ts +1 -2
- package/types/lodash/pullAllBy.d.ts +1 -2
- package/types/lodash/pullAllWith.d.ts +1 -2
- package/types/lodash/pullAt.d.ts +1 -2
- package/types/lodash/random.d.ts +1 -2
- package/types/lodash/range.d.ts +1 -2
- package/types/lodash/rangeRight.d.ts +1 -2
- package/types/lodash/rearg.d.ts +1 -2
- package/types/lodash/reduce.d.ts +1 -2
- package/types/lodash/reduceRight.d.ts +1 -2
- package/types/lodash/reject.d.ts +1 -2
- package/types/lodash/remove.d.ts +1 -2
- package/types/lodash/repeat.d.ts +1 -2
- package/types/lodash/replace.d.ts +1 -2
- package/types/lodash/request-animation-frame.d.ts +1 -1
- package/types/lodash/rest.d.ts +1 -2
- package/types/lodash/result.d.ts +1 -2
- package/types/lodash/reverse.d.ts +1 -2
- package/types/lodash/round.d.ts +1 -2
- package/types/lodash/sample.d.ts +1 -2
- package/types/lodash/sampleSize.d.ts +1 -2
- package/types/lodash/set.d.ts +1 -2
- package/types/lodash/setWith.d.ts +1 -2
- package/types/lodash/shuffle.d.ts +1 -2
- package/types/lodash/size.d.ts +1 -2
- package/types/lodash/slice.d.ts +1 -2
- package/types/lodash/snakeCase.d.ts +1 -2
- package/types/lodash/some.d.ts +1 -2
- package/types/lodash/sort-by.d.ts +7 -7
- package/types/lodash/sortBy.d.ts +1 -2
- package/types/lodash/sortedIndex.d.ts +1 -2
- package/types/lodash/sortedIndexBy.d.ts +1 -2
- package/types/lodash/sortedIndexOf.d.ts +1 -2
- package/types/lodash/sortedLastIndex.d.ts +1 -2
- package/types/lodash/sortedLastIndexBy.d.ts +1 -2
- package/types/lodash/sortedLastIndexOf.d.ts +1 -2
- package/types/lodash/sortedUniq.d.ts +1 -2
- package/types/lodash/sortedUniqBy.d.ts +1 -2
- package/types/lodash/split.d.ts +1 -2
- package/types/lodash/spread.d.ts +1 -2
- package/types/lodash/startCase.d.ts +1 -2
- package/types/lodash/starts-with.d.ts +3 -3
- package/types/lodash/startsWith.d.ts +1 -2
- package/types/lodash/string.d.ts +1 -3
- package/types/lodash/string.default.d.ts +34 -36
- package/types/lodash/stubArray.d.ts +1 -2
- package/types/lodash/stubFalse.d.ts +1 -2
- package/types/lodash/stubObject.d.ts +1 -2
- package/types/lodash/stubString.d.ts +1 -2
- package/types/lodash/stubTrue.d.ts +1 -2
- package/types/lodash/substitute.d.ts +5 -5
- package/types/lodash/subtract.d.ts +1 -2
- package/types/lodash/sum.d.ts +1 -2
- package/types/lodash/sumBy.d.ts +1 -2
- package/types/lodash/tail.d.ts +1 -2
- package/types/lodash/take.d.ts +1 -2
- package/types/lodash/takeRight.d.ts +1 -2
- package/types/lodash/takeRightWhile.d.ts +1 -2
- package/types/lodash/takeWhile.d.ts +1 -2
- package/types/lodash/tap.d.ts +1 -2
- package/types/lodash/template.d.ts +1 -2
- package/types/lodash/templateSettings.d.ts +1 -2
- package/types/lodash/throttle.d.ts +2 -4
- package/types/lodash/thru.d.ts +1 -2
- package/types/lodash/times.d.ts +1 -2
- package/types/lodash/to-array.d.ts +2 -2
- package/types/lodash/to-degree.d.ts +2 -2
- package/types/lodash/to-integer.d.ts +1 -1
- package/types/lodash/to-radian.d.ts +2 -2
- package/types/lodash/to-string.d.ts +2 -2
- package/types/lodash/toArray.d.ts +1 -2
- package/types/lodash/toFinite.d.ts +1 -2
- package/types/lodash/toInteger.d.ts +1 -2
- package/types/lodash/toLength.d.ts +1 -2
- package/types/lodash/toLower.d.ts +1 -2
- package/types/lodash/toNumber.d.ts +1 -2
- package/types/lodash/toPairs.d.ts +1 -2
- package/types/lodash/toPairsIn.d.ts +1 -2
- package/types/lodash/toPath.d.ts +1 -2
- package/types/lodash/toPlainObject.d.ts +1 -2
- package/types/lodash/toSafeInteger.d.ts +1 -2
- package/types/lodash/toString.d.ts +1 -2
- package/types/lodash/toUpper.d.ts +1 -2
- package/types/lodash/transform.d.ts +1 -2
- package/types/lodash/trim.d.ts +1 -2
- package/types/lodash/trimEnd.d.ts +1 -2
- package/types/lodash/trimStart.d.ts +1 -2
- package/types/lodash/truncate.d.ts +1 -2
- package/types/lodash/types/index.d.ts +3 -3
- package/types/lodash/unary.d.ts +1 -2
- package/types/lodash/unescape.d.ts +1 -2
- package/types/lodash/union.d.ts +1 -2
- package/types/lodash/unionBy.d.ts +1 -2
- package/types/lodash/unionWith.d.ts +1 -2
- package/types/lodash/uniq.d.ts +1 -2
- package/types/lodash/uniqBy.d.ts +1 -2
- package/types/lodash/uniqWith.d.ts +1 -2
- package/types/lodash/unique-id.d.ts +2 -2
- package/types/lodash/uniqueId.d.ts +1 -2
- package/types/lodash/unset.d.ts +1 -2
- package/types/lodash/unzip.d.ts +1 -2
- package/types/lodash/unzipWith.d.ts +1 -2
- package/types/lodash/update.d.ts +1 -2
- package/types/lodash/updateWith.d.ts +1 -2
- package/types/lodash/upper-case.d.ts +2 -2
- package/types/lodash/upper-first.d.ts +2 -2
- package/types/lodash/upperCase.d.ts +1 -2
- package/types/lodash/upperFirst.d.ts +1 -2
- package/types/lodash/util.d.ts +1 -3
- package/types/lodash/util.default.d.ts +35 -37
- package/types/lodash/values-of-key.d.ts +2 -2
- package/types/lodash/values.d.ts +1 -2
- package/types/lodash/valuesIn.d.ts +1 -2
- package/types/lodash/without.d.ts +1 -2
- package/types/lodash/words.d.ts +1 -2
- package/types/lodash/wrap-behavior.d.ts +9 -9
- package/types/lodash/wrap.d.ts +1 -2
- package/types/lodash/xor.d.ts +1 -2
- package/types/lodash/xorBy.d.ts +1 -2
- package/types/lodash/xorWith.d.ts +1 -2
- package/types/lodash/zip.d.ts +1 -2
- package/types/lodash/zipObject.d.ts +1 -2
- package/types/lodash/zipObjectDeep.d.ts +1 -2
- package/types/lodash/zipWith.d.ts +1 -2
- package/types/scheduler.d.ts +46 -0
- package/types/state/StateMachine.d.ts +149 -0
- package/types/state/StateMachinePlus.d.ts +40 -0
- package/types/stats.module.d.ts +3 -3
- package/types/utils/token.d.ts +1 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,76 +1,33 @@
|
|
|
1
|
-
(function(x,ds){typeof exports=="object"&&typeof module<"u"?ds(exports):typeof define=="function"&&define.amd?define(["exports"],ds):(x=typeof globalThis<"u"?globalThis:x||self,ds((x.dxMyth=x.dxMyth||{},x.dxMyth.utils={})))})(this,function(x){"use strict";var ds=Object.prototype.hasOwnProperty,ze="~";function _s(){}Object.create&&(_s.prototype=Object.create(null),new _s().__proto__||(ze=!1));function ZO(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function Gp(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var s=new ZO(n,r||e,i),o=ze?ze+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],s]:e._events[o].push(s):(e._events[o]=s,e._eventsCount++),e}function na(e,t){--e._eventsCount===0?e._events=new _s:delete e._events[t]}function me(){this._events=new _s,this._eventsCount=0}me.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)ds.call(n,r)&&t.push(ze?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},me.prototype.listeners=function(t){var n=ze?ze+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,s=r.length,o=new Array(s);i<s;i++)o[i]=r[i].fn;return o},me.prototype.listenerCount=function(t){var n=ze?ze+t:t,r=this._events[n];return r?r.fn?1:r.length:0},me.prototype.emit=function(t,n,r,i,s,o){var a=ze?ze+t:t;if(!this._events[a])return!1;var u=this._events[a],f=arguments.length,c,l;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,n),!0;case 3:return u.fn.call(u.context,n,r),!0;case 4:return u.fn.call(u.context,n,r,i),!0;case 5:return u.fn.call(u.context,n,r,i,s),!0;case 6:return u.fn.call(u.context,n,r,i,s,o),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var h=u.length,d;for(l=0;l<h;l++)switch(u[l].once&&this.removeListener(t,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,n);break;case 3:u[l].fn.call(u[l].context,n,r);break;case 4:u[l].fn.call(u[l].context,n,r,i);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},me.prototype.on=function(t,n,r){return Gp(this,t,n,r,!1)},me.prototype.once=function(t,n,r){return Gp(this,t,n,r,!0)},me.prototype.removeListener=function(t,n,r,i){var s=ze?ze+t:t;if(!this._events[s])return this;if(!n)return na(this,s),this;var o=this._events[s];if(o.fn)o.fn===n&&(!i||o.once)&&(!r||o.context===r)&&na(this,s);else{for(var a=0,u=[],f=o.length;a<f;a++)(o[a].fn!==n||i&&!o[a].once||r&&o[a].context!==r)&&u.push(o[a]);u.length?this._events[s]=u.length===1?u[0]:u:na(this,s)}return this},me.prototype.removeAllListeners=function(t){var n;return t?(n=ze?ze+t:t,this._events[n]&&na(this,n)):(this._events=new _s,this._eventsCount=0),this},me.prototype.off=me.prototype.removeListener,me.prototype.addListener=me.prototype.on,me.prefixed=ze,me.EventEmitter=me;const vs={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},If=vs.NONE,Hp=vs.CAPTURING_PHASE,Df=vs.AT_TARGET,Kp=vs.BUBBLING_PHASE;class QO{static create(t,n,r){return new this(t,n,r)}type="none";parentNode=null;target=null;currentTarget=null;data=null;eventPhase=If;bubbles=!1;cancelable=!1;defaultPrevented=!1;cancelBubble=!1;immediateCancelBubble=!1;constructor(t,n,r){this.initEvent(t,n,r)}setData(t){return this.data=t,this}initEvent(t,n=!0,r=!0){this.type=t,this.bubbles=n,this.cancelable=r}composedPath(){let t=this.target,n=[];for(;t;)n.push(t),t=t.parent;return n}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.stopPropagation(),this.immediateCancelBubble=!0}}function Yp(e){return(typeof e=="boolean"||!e)&&(e={capture:!!e}),e={capture:!1,once:!1,...e||{}},e}function Xp(e,t){var n=e._events[t],r;if(!n)return[];if(n.fn)return[n];for(var i=0,s=n.length,r=new Array(s);i<s;i++)r[i]=n[i];return r}class Zn{parent=null;_bubble_emitter=new me;_capture_emitter=new me;addEventListener(t,n,r){r=Yp(r);const i=r.capture?this._capture_emitter:this._bubble_emitter;r&&r.once?i.once(t,n):i.on(t,n)}removeEventListener(t,n,r){r=Yp(r),(r.capture?this._capture_emitter:this._bubble_emitter).off(t,n)}dispatchEvent(t){t.target=this;const n=t.type,r=t.composedPath(),i=r.length;for(let s=i-1;s>=0;s--){const o=r[s]._capture_emitter;if(o.listenerCount(n)>0){t.currentTarget=r[s],t.eventPhase=t.currentTarget!==this?Hp:Df;const u=Xp(o,n);for(let f=0,c=u.length;f<c;f++){const l=u[f];if(l.once&&o.removeListener(n,l.fn,l.context,l.once),l.fn(t),t.immediateCancelBubble)break}}if(t.cancelBubble)break}if(!t.cancelBubble)for(let s=0;s<i;s++){const o=r[s]._bubble_emitter;if(o.listenerCount(n)>0){t.currentTarget=r[s],t.eventPhase=t.currentTarget!==this?Kp:Df;const u=Xp(o,n);for(let f=0,c=u.length;f<c;f++){const l=u[f];if(l.once&&o.removeListener(n,l.fn,l.context,l.once),l.fn(t),t.immediateCancelBubble)break}}if(t.cancelBubble||!t.bubbles)break}return t.eventPhase=If,!t.defaultPrevented}removeAllListeners(){this._bubble_emitter.removeAllListeners(),this._capture_emitter.removeAllListeners()}}Zn.prototype.on=Zn.prototype.addEventListener,Zn.prototype.off=Zn.prototype.removeEventListener,Zn.prototype.emit=Zn.prototype.dispatchEvent;function eE(e){return e=e||new Map,{all:e,on(t,n){const r=e.get(t);r?r.push(n):e.set(t,[n])},off(t,n){const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let r=e.get(t);r&&r.slice().map(i=>{i(n)}),r=e.get("*"),r&&r.slice().map(i=>{i(t,n)})}}}function Jp(e,t,n,r,i,s){let o=Object.assign({once:!1,stage:1/0},s);e[t]||(e[t]=Object.create(null));let a=e[t],u=a[r];if(u||(u=[],a[r]=u),u.some(l=>l.handle===i))return;let f={handle:i,once:o.once,namespace:o.namespace,stage:o.stage},c=-1;if(o.stage!==1/0&&(c=u.findIndex(l=>l.handle<f.handle)),c!==-1?u.splice(c,0,f):u.push(f),o.namespace){let l=e[n];l||(l=e[n]=new Map);let h=l.get(o.namespace);h||l.set(o.namespace,new Map),h=l.get(o.namespace),h.has(r)?h.set(r,h.get(r)+1):h.set(r,1)}}function gs(e,t,n,r,i,s){if(e[t]){if(!r&&!i){e[t]=void 0,delete e[t];return}else if(!r&&i){let o=e[n];if(!o||!o.has(i))return;o.get(i).forEach((u,f)=>{gs(e,t,n,f,void 0,s)}),o.delete(i)}else if(r){let o=e[t],a=o[r];a&&(o[r]=a.filter(u=>{if((!s||u.handle===s)&&(!i||u.namespace===i)){let f=e[n];if(u.namespace&&f&&f.has(u.namespace)){let c=f.get(u.namespace);c.has(r)&&c.set(r,c.get(r)-1),c.get(r)<=0&&c.delete(r)}return!1}return!0}))}}}function tE(e,t,n,r,...i){if(!e[t])return;let o=e[t][r];if(o)for(let a=0;a<o.length;a++){const u=o[a];u.handle(...i),u.once&&gs(e,t,n,r,null,u.handle)}}function Zp(e,t,n){let r=e[t];return r?r[n]||[]:[]}function nE(e,t,n){e[t]=void 0,e[n]=void 0}function rE(e,t,n){let r=e[t];if(!r)return!1;let i=r[n];return i?i.length>0:!1}function iE(e){if(!e._listeners)return[];let t=e._listeners;return Object.keys(t)}function sE(e,t,n,r,i){i.target=e;const s=i.type,o=i.composedPath(e),a=o.length;for(let u=a-1;u>=0;u--){const f=o[u];i.currentTarget=o[u],i.eventPhase=i.currentTarget!==e?hi.CAPTURING_PHASE:hi.AT_TARGET;const c=Zp(f,n,s);for(let l=0,h=c.length;l<h;l++){const d=c[l];if(d.once&&gs(e,n,r,s,null,d.handle),d.handle(i),i.immediateCancelBubble)break}if(i.cancelBubble)break}if(!i.cancelBubble)for(let u=0;u<a;u++){const f=o[u];i.currentTarget=o[u],i.eventPhase=i.currentTarget!==e?hi.BUBBLING_PHASE:hi.AT_TARGET;const c=Zp(f,t,s);for(let l=0,h=c.length;l<h;l++){const d=c[l];if(d.once&&gs(e,t,r,s,null,d.handle),d.handle(i),i.immediateCancelBubble)break}if(i.cancelBubble||!i.bubbles)break}return i.eventPhase=hi.NONE,!i.defaultPrevented}const hi={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};class ra{static create(t,n){return new ra(t)}type;target=null;currentTarget=null;data=null;eventPhase=hi.NONE;bubbles=!1;cancelable=!1;defaultPrevented=!1;cancelBubble=!1;immediateCancelBubble=!1;constructor(t,n,r){this.initEvent(t,n,r)}setData(t){return this.data=t,this}initEvent(t,n=!0,r=!0){return this.type=t,this.bubbles=n,this.cancelable=r,this}composedPath(t){let n=t,r=[];for(;n;)r.push(n),n=n.parent;return r}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.stopPropagation(),this.immediateCancelBubble=!0}}const pi="_listeners",Qp="_listeners_capture",di="_listenersNs";class oE{parent;_listeners;_listenersNs;on(t,n,r){return r&&r.capture?Jp(this,Qp,di,t,n,r):Jp(this,pi,di,t,n,r),this}emit(t,...n){return tE(this,pi,di,t,...n),this}createEvent(t,n){return ra.create(t,n)}emitBubble(t){return sE(this,pi,Qp,di,t)}off(t,n,r){return gs(this,pi,di,t,r?r.namespace:null,n),this}eventNames(){return iE(this)}hasEventListener(t){return rE(this,pi,t)}removeAllListeners(){return nE(this,pi,di),this}}const ed=e=>!!Symbol[e],Cf=e=>ed(e)?Symbol[e]:"@@"+e,aE=Cf("iterator"),Lf=Cf("observable"),td=Cf("species");function ia(e,t){let n=e[t];if(n!=null){if(typeof n!="function")throw new TypeError(n+" is not a function");return n}}function ys(e){let t=e.constructor;return t!==void 0&&(t=t[td],t===null&&(t=void 0)),t!==void 0?t:Re}function uE(e){return e instanceof Re}function _i(e){_i.log?_i.log(e):setTimeout(()=>{throw e})}function sa(e){Promise.resolve().then(()=>{try{e()}catch(t){_i(t)}})}function nd(e){let t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{let n=ia(t,"unsubscribe");n&&n.call(t)}}catch(n){_i(n)}}function jf(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function fE(e){let t=e._queue;if(t){e._queue=void 0,e._state="ready";for(let n=0;n<t.length&&(rd(e,t[n].type,t[n].value),e._state!=="closed");++n);}}function rd(e,t,n){e._state="running";let r=e._observer;try{let i=ia(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(jf(e),i)i.call(r,n);else throw n;break;case"complete":jf(e),i&&i.call(r);break}}catch(i){_i(i)}e._state==="closed"?nd(e):e._state==="running"&&(e._state="ready")}function Ff(e,t,n){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:n});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:n}],sa(()=>fE(e));return}rd(e,t,n)}}class cE{constructor(t,n){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";let r=this,i={get closed(){return r._state==="closed"},next(s){Ff(r,"next",s)},error(s){Ff(r,"error",s)},complete(){Ff(r,"complete")}};try{this._cleanup=n.call(void 0,i)}catch(s){i.error(s)}this._state==="initializing"&&(this._state="ready")}get closed(){return this._state==="closed"}unsubscribe(){this._state!=="closed"&&(jf(this),nd(this))}}class Re{constructor(t){if(!(this instanceof Re))throw new TypeError("Observable cannot be called as a function");if(typeof t!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=t}subscribe(t){return(typeof t!="object"||t===null)&&(t={next:t,error:arguments[1],complete:arguments[2]}),new cE(t,this._subscriber)}forEach(t){return new Promise((n,r)=>{if(typeof t!="function"){r(new TypeError(t+" is not a function"));return}function i(){s.unsubscribe(),n()}let s=this.subscribe({next(o){try{t(o,i)}catch(a){r(a),s.unsubscribe()}},error:r,complete:n})})}map(t){if(typeof t!="function")throw new TypeError(t+" is not a function");let n=ys(this);return new n(r=>this.subscribe({next(i){try{i=t(i)}catch(s){return r.error(s)}r.next(i)},error(i){r.error(i)},complete(){r.complete()}}))}filter(t){if(typeof t!="function")throw new TypeError(t+" is not a function");let n=ys(this);return new n(r=>this.subscribe({next(i){try{if(!t(i))return}catch(s){return r.error(s)}r.next(i)},error(i){r.error(i)},complete(){r.complete()}}))}reduce(t){if(typeof t!="function")throw new TypeError(t+" is not a function");let n=ys(this),r=arguments.length>1,i=!1,o=arguments[1];return new n(a=>this.subscribe({next(u){let f=!i;if(i=!0,!f||r)try{o=t(o,u)}catch(c){return a.error(c)}else o=u},error(u){a.error(u)},complete(){if(!i&&!r)return a.error(new TypeError("Cannot reduce an empty sequence"));a.next(o),a.complete()}}))}async all(){let t=[];return await this.forEach(n=>t.push(n)),t}concat(...t){let n=ys(this);return new n(r=>{let i,s=0;function o(a){i=a.subscribe({next(u){r.next(u)},error(u){r.error(u)},complete(){s===t.length?(i=void 0,r.complete()):o(n.from(t[s++]))}})}return o(this),()=>{i&&(i.unsubscribe(),i=void 0)}})}flatMap(t){if(typeof t!="function")throw new TypeError(t+" is not a function");let n=ys(this);return new n(r=>{let i=[],s=this.subscribe({next(a){if(t)try{a=t(a)}catch(f){return r.error(f)}let u=n.from(a).subscribe({next(f){r.next(f)},error(f){r.error(f)},complete(){let f=i.indexOf(u);f>=0&&i.splice(f,1),o()}});i.push(u)},error(a){r.error(a)},complete(){o()}});function o(){s.closed&&i.length===0&&r.complete()}return()=>{i.forEach(a=>a.unsubscribe()),s.unsubscribe()}})}[Lf](){return this}static from(t){let n=typeof this=="function"?this:Re;if(t==null)throw new TypeError(t+" is not an object");let r=ia(t,Lf);if(r){let i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return uE(i)&&i.constructor===n?i:new n(s=>i.subscribe(s))}if(ed("iterator")&&(r=ia(t,aE),r))return new n(i=>{sa(()=>{if(!i.closed){for(let s of r.call(t))if(i.next(s),i.closed)return;i.complete()}})});if(Array.isArray(t))return new n(i=>{sa(()=>{if(!i.closed){for(let s=0;s<t.length;++s)if(i.next(t[s]),i.closed)return;i.complete()}})});throw new TypeError(t+" is not observable")}static of(...t){let n=typeof this=="function"?this:Re;return new n(r=>{sa(()=>{if(!r.closed){for(let i=0;i<t.length;++i)if(r.next(t[i]),r.closed)return;r.complete()}})})}static get[td](){return this}}Object.defineProperty(Re,Symbol("extensions"),{value:{symbol:Lf,hostReportError:_i},configurable:!0});function lE(...e){return new Re(t=>{if(e.length===0)return Re.from([]);let n=e.length,r=e.map(i=>Re.from(i).subscribe({next(s){t.next(s)},error(s){t.error(s)},complete(){--n===0&&t.complete()}}));return()=>r.forEach(i=>i.unsubscribe())})}function hE(...e){return new Re(t=>{if(e.length===0)return Re.from([]);let n=e.length,r=new Set,i=!1,s=e.map(()=>{}),o=e.map((a,u)=>Re.from(a).subscribe({next(f){if(s[u]=f,!i){if(r.add(u),r.size!==e.length)return;r=null,i=!0}t.next(Array.from(s))},error(f){t.error(f)},complete(){--n===0&&t.complete()}}));return()=>o.forEach(a=>a.unsubscribe())})}function pE(...e){return new Re(t=>{if(e.length===0)return Re.from([]);let n=e.map(()=>[]);function r(){return n.some((s,o)=>s.length===0&&i[o].closed)}let i=e.map((s,o)=>Re.from(s).subscribe({next(a){n[o].push(a),n.every(u=>u.length>0)&&(t.next(n.map(u=>u.shift())),r()&&t.complete())},error(a){t.error(a)},complete(){r()&&t.complete()}}));return()=>i.forEach(s=>s.unsubscribe())})}const dE=Object.freeze(Object.defineProperty({__proto__:null,Observable:Re,combineLatest:hE,merge:lE,zip:pE},Symbol.toStringTag,{value:"Module"}));function _E(){let e=[];const t={add(n,r){r={stage:0,once:!1,...r??{}};let i=e.findIndex(o=>r.stage<o.stage);i!==-1?e.splice(i,0,{fn:n,stage:r.stage,once:r.once}):e.push({fn:n,stage:r.stage,once:r.once});let s=!1;return()=>{s||(s=!0,t.remove(n))}},remove(n){e=e.filter(r=>r.fn!==n)},dispatch(...n){let r=!1,i=!1;const s={stop:()=>{r=!0},remove:()=>{i=!0}};e.some(o=>(o.fn(...n,s),(i||o.once)&&t.remove(o.fn),r))},clear(){e.length=0}};return t}class vE{firing=!1;memory;fired=!1;locked=!1;list=[];queue=[];firingIndex=-1;destroyedList=!1;options={once:!1,memory:!0,unique:!0,stopOnFalse:!1};constructor(t){this.options=Object.assign(this.options,t??{})}_fire(){const t=this.queue;for(this.locked=this.locked||this.options.once,this.fired=this.firing=!0;t.length;this.firingIndex=-1)for(this.memory=t.shift();++this.firingIndex<this.list.length;)this.list[this.firingIndex].apply(this.memory[0],this.memory[1])===!1&&this.options.stopOnFalse&&(this.firingIndex=this.list.length,this.memory=!1);this.options.memory||(this.memory=!1),this.firing=!1,this.locked&&(this.memory?this.list=[]:(this.list=[],this.destroyedList=!0))}add(...t){return this.destroyedList||(this.memory&&!this.firing&&(this.firingIndex=this.list.length-1,this.queue.push(this.memory)),t.forEach(n=>{typeof n=="function"?(!this.options.unique||!this.has(n))&&this.list.push(n):n&&n.length&&Array.isArray(n)&&this.add(...n)}),this.memory&&!this.firing&&this._fire()),this}remove(...t){return t.forEach(n=>{for(var r=0;(r=this.list.indexOf(n,r))>-1;)this.list.splice(r,1),r<=this.firingIndex&&this.firingIndex--}),this}has(t){return t?this.list.indexOf(t)>-1:this.list.length>0}empty(){return this.list&&(this.list=[]),this}disable(){return this.locked=!0,this.queue=[],this.list=[],this.destroyedList=!0,this.memory=null,this}disabled(){return this.destroyedList}lock(){return this.locked=!0,this.queue=[],!this.memory&&!this.firing&&(this.list=[],this.memory=null,this.destroyedList=!0),this}fireWith(t,n){return this.locked||(n=n||[],n=[t,n.slice?n.slice():n],this.queue.push(n),this.firing||this._fire()),this}fire(...t){return this.fireWith(this,t),this}}class gE{heap;compare;constructor(t){this.heap=[],this.compare=t}get size(){return this.heap.length}isEmpty(){return this.size===0}top(){return this.peek()}peek(){return this.isEmpty()?null:this.heap[0]}enqueue(t){this.heap.push(t),this.siftUp(this.size-1)}push(t){this.enqueue(t)}pop(){return this.dequeue()}dequeue(){if(this.isEmpty())return null;const t=this.heap[0],n=this.heap.pop();return this.isEmpty()||(this.heap[0]=n,this.siftDown(0)),t}siftUp(t){for(;t>0;){const n=Math.floor((t-1)/2);if(this.compare(this.heap[t],this.heap[n])>=0)break;this.swap(t,n),t=n}}siftDown(t){const n=this.size;for(;t<n;){const r=2*t+1,i=2*t+2;let s=t;if(r<n&&this.compare(this.heap[r],this.heap[s])<0&&(s=r),i<n&&this.compare(this.heap[i],this.heap[s])<0&&(s=i),s===t)break;this.swap(t,s),t=s}}swap(t,n){[this.heap[t],this.heap[n]]=[this.heap[n],this.heap[t]]}clear(){this.heap=[]}}const id=e=>!!e&&e.constructor===Symbol,bs=Array.isArray,Bf=e=>!!e&&e.constructor===Object,sd=e=>e==null||typeof e!="object"&&typeof e!="function",ms=e=>!!(e&&e.constructor&&e.call&&e.apply),yE=e=>typeof e=="string"||e instanceof String,bE=e=>vi(e)&&e%1===0,mE=e=>vi(e)&&e%1!==0,vi=e=>{try{return Number(e)===e}catch{return!1}},od=e=>Object.prototype.toString.call(e)==="[object Date]",ad=e=>!(!e||!e.then||!ms(e.then)),wE=e=>{if(e===!0||e===!1||e==null)return!0;if(vi(e))return e===0;if(od(e))return isNaN(e.getTime());if(ms(e)||id(e))return!1;const t=e.length;if(vi(t))return t===0;const n=e.size;return vi(n)?n===0:Object.keys(e).length===0},ud=(e,t)=>{if(Object.is(e,t))return!0;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.toString()===t.toString();if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Reflect.has(t,n[i])||!ud(e[n[i]],t[n[i]]))return!1;return!0},AE=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]||(n[i]=[]),n[i].push(r),n},{});function OE(...e){return!e||!e.length?[]:new Array(Math.max(...e.map(({length:t})=>t))).fill([]).map((t,n)=>e.map(r=>r[n]))}function EE(e,t){if(!e||!e.length)return{};const n=ms(t)?t:bs(t)?(r,i)=>t[i]:(r,i)=>t;return e.reduce((r,i,s)=>(r[i]=n(i,s),r),{})}const zf=(e,t)=>!e||(e.length??0)===0?null:e.reduce(t);function SE(e,t){return(e||[]).reduce((n,r)=>n+(t?t(r):r),0)}const xE=(e,t=void 0)=>e?.length>0?e[0]:t,TE=(e,t=void 0)=>e?.length>0?e[e.length-1]:t,fd=(e,t,n=!1)=>{if(!e)return[];const r=(s,o)=>t(s)-t(o),i=(s,o)=>t(o)-t(s);return e.slice().sort(n===!0?i:r)},RE=(e,t,n="asc")=>{if(!e)return[];const r=(s,o)=>`${t(s)}`.localeCompare(t(o)),i=(s,o)=>`${t(o)}`.localeCompare(t(s));return e.slice().sort(n==="desc"?i:r)},PE=(e,t)=>e?e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]??0)+1,n},{}):{},NE=(e,t,n)=>{if(!e)return[];if(t===void 0)return[...e];for(let r=0;r<e.length;r++){const i=e[r];if(n(i,r))return[...e.slice(0,r),t,...e.slice(r+1,e.length)]}return[...e]},cd=(e,t,n=r=>r)=>e.reduce((r,i)=>(r[t(i)]=n(i),r),{}),$E=(e,t,n)=>e?e.reduce((r,i,s)=>(n(i,s)&&r.push(t(i,s)),r),[]):[];function ME(e,t){const n=t??(r=>r);return zf(e,(r,i)=>n(r)>n(i)?r:i)}function IE(e,t){const n=t??(r=>r);return zf(e,(r,i)=>n(r)<n(i)?r:i)}const DE=(e,t=2)=>{const n=Math.ceil(e.length/t);return new Array(n).fill(null).map((r,i)=>e.slice(i*t,i*t+t))},CE=(e,t)=>{const n=e.reduce((r,i)=>{const s=t?t(i):i;return r[s]||(r[s]=i),r},{});return Object.values(n)};function*Uf(e,t,n=i=>i,r=1){const i=ms(n)?n:()=>n,s=t?e:0,o=t??e;for(let a=s;a<=o&&(yield i(a),!(a+r>o));a+=r);}const Vf=(e,t,n,r)=>Array.from(Uf(e,t,n,r)),LE=e=>e.reduce((t,n)=>(t.push(...n),t),[]),jE=(e,t,n)=>{if(!e||!t)return!1;const r=n??(s=>s),i=t.reduce((s,o)=>(s[r(o)]=!0,s),{});return e.some(s=>i[r(s)])},ld=(e,t)=>e?e.reduce((n,r)=>{const[i,s]=n;return t(r)?[[...i,r],s]:[i,[...s,r]]},[[],[]]):[[],[]],FE=(e,t,n)=>!t&&!e?[]:t?e?n?e.reduce((r,i)=>{const s=t.find(o=>n(i)===n(o));return s?r.push(s):r.push(i),r},[]):e:[]:e,BE=(e,t,n)=>{if(!e&&!t)return[];if(!t)return[...e];if(!e)return[t];for(let r=0;r<e.length;r++){const i=e[r];if(n(i,r))return[...e.slice(0,r),t,...e.slice(r+1,e.length)]}return[...e,t]},zE=(e,t,n,r)=>{if(!e&&!t)return[];if(!e)return[t];if(!t)return[...e];const i=n?(a,u)=>n(a,u)===n(t,u):a=>a===t;return e.find(i)?e.filter((a,u)=>!i(a,u)):(r?.strategy??"append")==="append"?[...e,t]:[t,...e]},UE=e=>e?.filter(t=>!!t)??[],hd=(e,t,n)=>{let r=n;for(let i=1;i<=e;i++)r=t(r,i);return r},VE=(e,t,n=r=>r)=>{if(!e?.length&&!t?.length)return[];if(e?.length===void 0)return[...t];if(!t?.length)return[...e];const r=t.reduce((i,s)=>(i[n(s)]=!0,i),{});return e.filter(i=>!r[n(i)])};function WE(e,t){if(e.length===0)return e;const n=t%e.length;return n===0?e:[...e.slice(-n,e.length),...e.slice(0,-n)]}const kE=async(e,t,n)=>{const r=n!==void 0;if(!r&&e?.length<1)throw new Error("Cannot reduce empty array with no init value");const i=r?e:e.slice(1);let s=r?n:e[0];for(const[o,a]of i.entries())s=await t(s,a,o);return s},qE=async(e,t)=>{if(!e)return[];let n=[],r=0;for(const i of e){const s=await t(i,r++);n.push(s)}return n},GE=async e=>{const t=[],n=(s,o)=>t.push({fn:s,rethrow:o?.rethrow??!1}),[r,i]=await gi(e)(n);for(const{fn:s,rethrow:o}of t){const[a]=await gi(s)(r);if(a&&o)throw a}if(r)throw r;return i};class pd extends Error{errors;constructor(t=[]){super();const n=t.find(r=>r.name)?.name??"";this.name=`AggregateError(${n}...)`,this.message=`AggregateError with ${t.length} errors`,this.stack=t.find(r=>r.stack)?.stack??this.stack,this.errors=t}}const HE=async(e,t,n)=>{const r=t.map((f,c)=>({index:c,item:f})),i=async f=>{const c=[];for(;;){const l=r.pop();if(!l)return f(c);const[h,d]=await gi(n)(l.item);c.push({error:h,result:d,index:l.index})}},s=Vf(1,e).map(()=>new Promise(i)),o=await Promise.all(s),[a,u]=ld(fd(o.flat(),f=>f.index),f=>!!f.error);if(a.length>0)throw new pd(a.map(f=>f.error));return u.map(f=>f.result)};async function KE(e){const t=bs(e)?e.map(i=>[null,i]):Object.entries(e),n=await Promise.all(t.map(([i,s])=>s.then(o=>({result:o,exc:null,key:i})).catch(o=>({result:null,exc:o,key:i})))),r=n.filter(i=>i.exc);if(r.length>0)throw new pd(r.map(i=>i.exc));return bs(e)?n.map(i=>i.result):n.reduce((i,s)=>({...i,[s.key]:s.result}),{})}const YE=async(e,t)=>{const n=e?.times??3,r=e?.delay,i=e?.backoff??null;for(const s of Uf(1,n)){const[o,a]=await gi(t)(u=>{throw{_exited:u}});if(!o)return a;if(o._exited)throw o._exited;if(s===n)throw o;r&&await Wf(r),i&&await Wf(i(s))}},Wf=e=>new Promise(t=>setTimeout(t,e)),gi=e=>(...t)=>{try{const n=e(...t);return ad(n)?n.then(r=>[void 0,r]).catch(r=>[r,void 0]):[void 0,n]}catch(n){return[n,void 0]}},XE=(e,t)=>{const n=i=>{if(t&&!t(i))throw i},r=i=>i instanceof Promise;try{const i=e();return r(i)?i.catch(n):i}catch(i){return n(i)}};function JE(...e){return(...t)=>e.slice(1).reduce((n,r)=>r(n),e[0](...t))}function ZE(...e){return e.reverse().reduce((t,n)=>n(t))}const QE=(e,...t)=>(...n)=>e(...t,...n),eS=(e,t)=>n=>e({...t,...n}),tS=e=>new Proxy({},{get:(t,n)=>e(n)}),nS=(e,t,n,r)=>function(...s){const o=n?n(...s):JSON.stringify({args:s}),a=e[o];if(a!==void 0&&(!a.exp||a.exp>new Date().getTime()))return a.value;const u=t(...s);return e[o]={exp:r?new Date().getTime()+r:null,value:u},u},rS=(e,t={})=>nS({},e,t.key??null,t.ttl??null),iS=({delay:e},t)=>{let n,r=!0;const i=(...s)=>{r?(clearTimeout(n),n=setTimeout(()=>{r&&t(...s),n=void 0},e)):t(...s)};return i.isPending=()=>n!==void 0,i.cancel=()=>{r=!1},i.flush=(...s)=>t(...s),i},sS=({interval:e},t)=>{let n=!0,r;const i=(...s)=>{n&&(t(...s),n=!1,r=setTimeout(()=>{n=!0,r=void 0},e))};return i.isThrottled=()=>r!==void 0,i},oS=(e,t)=>{const n=()=>{};return new Proxy(Object.assign(n,e),{get:(r,i)=>r[i],set:(r,i,s)=>(r[i]=s,!0),apply:(r,i,s)=>t(Object.assign({},r))(...s)})};function aS(e,t,n){return typeof e=="number"&&typeof t=="number"&&(typeof n>"u"||typeof n=="number")?(typeof n>"u"&&(n=t,t=0),e>=Math.min(t,n)&&e<Math.max(t,n)):!1}const uS=(e,t)=>{const n=t===void 0?0:t;if(e==null)return n;const r=parseFloat(e);return isNaN(r)?n:r},dd=(e,t)=>{const n=t===void 0?0:t;if(e==null)return n;const r=parseInt(e);return isNaN(r)?n:r},fS=(e,t=n=>n===void 0)=>e?Object.keys(e).reduce((r,i)=>(t(e[i])||(r[i]=e[i]),r),{}):{},kf=(e,t)=>Object.keys(e).reduce((r,i)=>(r[t(i,e[i])]=e[i],r),{}),cS=(e,t)=>Object.keys(e).reduce((r,i)=>(r[i]=t(e[i],i),r),{}),lS=(e,t)=>e?Object.entries(e).reduce((n,[r,i])=>{const[s,o]=t(r,i);return n[s]=o,n},{}):{},hS=e=>e?Object.keys(e).reduce((n,r)=>(n[e[r]]=r,n),{}):{},pS=e=>kf(e,t=>t.toLowerCase()),dS=e=>kf(e,t=>t.toUpperCase()),_d=e=>{if(sd(e))return e;if(typeof e=="function")return e.bind({});const t=new e.constructor;return Object.getOwnPropertyNames(e).forEach(n=>{t[n]=e[n]}),t},_S=(e,t)=>{if(!e)return[];const n=Object.entries(e);return n.length===0?[]:n.reduce((r,i)=>(r.push(t(i[0],i[1])),r),[])},vS=(e,t)=>e?t.reduce((n,r)=>(Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]),n),{}):{},gS=(e,t)=>e?!t||t.length===0?e:t.reduce((n,r)=>(delete n[r],n),{...e}):{},vd=(e,t,n)=>{const r=t.split(/[\.\[\]]/g);let i=e;for(const s of r){if(i===null||i===void 0)return n;const o=s.replace(/['"]/g,"");o.trim()!==""&&(i=i[o])}return i===void 0?n:i},gd=(e,t,n)=>{if(!e)return{};if(!t||n===void 0)return e;const r=t.split(/[\.\[\]]/g).filter(o=>!!o.trim()),i=o=>{if(r.length>1){const a=r.shift(),u=dd(r[0],null)!==null;o[a]=o[a]===void 0?u?[]:{}:o[a],i(o[a])}else o[r[0]]=n},s=_d(e);return i(s),s},yd=(e,t)=>!e||!t?e??t??{}:Object.entries({...e,...t}).reduce((n,[r,i])=>({...n,[r]:Bf(e[r])?yd(e[r],i):i}),{}),bd=e=>{if(!e)return[];const t=(n,r)=>Bf(n)?Object.entries(n).flatMap(([i,s])=>t(s,[...r,i])):bs(n)?n.flatMap((i,s)=>t(i,[...r,`${s}`])):[r.join(".")];return t(e,[])},yS=e=>e?cd(bd(e),t=>t,t=>vd(e,t)):{},bS=e=>e?Object.keys(e).reduce((t,n)=>gd(t,n,e[n]),{}):{},qf=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),mS=e=>{const t=e.length;if(t===0)return null;const n=qf(0,t-1);return e[n]},wS=e=>e.map(t=>({rand:Math.random(),value:t})).sort((t,n)=>t.rand-n.rand).map(t=>t.value),AS=(e,t="")=>{const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"+t;return hd(e,r=>r+n.charAt(qf(0,n.length-1)),"")},OS=(e,t=n=>`${n}`)=>{const{indexesByKey:n,itemsByIndex:r}=e.reduce((l,h,d)=>({indexesByKey:{...l.indexesByKey,[t(h)]:d},itemsByIndex:{...l.itemsByIndex,[d]:h}}),{indexesByKey:{},itemsByIndex:{}}),i=(l,h)=>n[t(l)]<n[t(h)]?l:h,s=(l,h)=>n[t(l)]>n[t(h)]?l:h,o=()=>r[0],a=()=>r[e.length-1],u=(l,h)=>r[n[t(l)]+1]??h??o(),f=(l,h)=>r[n[t(l)]-1]??h??a();return{min:i,max:s,first:o,last:a,next:u,previous:f,spin:(l,h)=>{if(h===0)return l;const d=Math.abs(h),_=d>e.length?d%e.length:d;return Vf(0,_-1).reduce(v=>h>0?u(v):f(v),l)}}},ws=e=>{if(!e||e.length===0)return"";const t=e.toLowerCase();return t.substring(0,1).toUpperCase()+t.substring(1,t.length)},ES=Object.freeze(Object.defineProperty({__proto__:null,all:KE,alphabetical:RE,assign:yd,boil:zf,callable:oS,camel:e=>{const t=e?.replace(/([A-Z])+/g,ws)?.split(/(?=[A-Z])|[\.\-\s_]/).map(n=>n.toLowerCase())??[];return t.length===0?"":t.length===1?t[0]:t.reduce((n,r)=>`${n}${r.charAt(0).toUpperCase()}${r.slice(1)}`)},capitalize:ws,chain:JE,clone:_d,cluster:DE,compose:ZE,construct:bS,counting:PE,crush:yS,dash:e=>{const t=e?.replace(/([A-Z])+/g,ws)?.split(/(?=[A-Z])|[\.\-\s_]/).map(n=>n.toLowerCase())??[];return t.length===0?"":t.length===1?t[0]:t.reduce((n,r)=>`${n}-${r.toLowerCase()}`)},debounce:iS,defer:GE,diff:VE,draw:mS,first:xE,flat:LE,fork:ld,get:vd,group:AE,guard:XE,inRange:aS,intersects:jE,invert:hS,isArray:bs,isDate:od,isEmpty:wE,isEqual:ud,isFloat:mE,isFunction:ms,isInt:bE,isNumber:vi,isObject:Bf,isPrimitive:sd,isPromise:ad,isString:yE,isSymbol:id,iterate:hd,keys:bd,last:TE,list:Vf,listify:_S,lowerize:pS,map:qE,mapEntries:lS,mapKeys:kf,mapValues:cS,max:ME,memo:rS,merge:FE,min:IE,objectify:cd,omit:gS,parallel:HE,partial:QE,partob:eS,pascal:e=>{const t=e?.split(/[\.\-\s_]/).map(n=>n.toLowerCase())??[];return t.length===0?"":t.map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")},pick:vS,proxied:tS,random:qf,range:Uf,reduce:kE,replace:NE,replaceOrAppend:BE,retry:YE,select:$E,series:OS,set:gd,shake:fS,shift:WE,shuffle:wS,sift:UE,sleep:Wf,snake:(e,t)=>{const n=e?.replace(/([A-Z])+/g,ws).split(/(?=[A-Z])|[\.\-\s_]/).map(i=>i.toLowerCase())??[];if(n.length===0)return"";if(n.length===1)return n[0];const r=n.reduce((i,s)=>`${i}_${s.toLowerCase()}`);return t?.splitOnNumber===!1?r:r.replace(/([A-Za-z]{1}[0-9]{1})/,i=>`${i[0]}_${i[1]}`)},sort:fd,sum:SE,template:(e,t,n=/\{\{(.+?)\}\}/g)=>Array.from(e.matchAll(n)).reduce((r,i)=>r.replace(i[0],t[i[1]]),e),throttle:sS,title:e=>e?e.split(/(?=[A-Z])|[\.\-\s_]/).map(t=>t.trim()).filter(t=>!!t).map(t=>ws(t.toLowerCase())).join(" "):"",toFloat:uS,toInt:dd,toggle:zE,trim:(e,t=" ")=>{if(!e)return"";const n=t.replace(/[\W]{1}/g,"\\$&"),r=new RegExp(`^[${n}]+|[${n}]+$`,"g");return e.replace(r,"")},try:gi,tryit:gi,uid:AS,unique:CE,upperize:dS,zip:OE,zipToObject:EE},Symbol.toStringTag,{value:"Module"}));var md=typeof global=="object"&&global&&global.Object===Object&&global,SS=typeof self=="object"&&self&&self.Object===Object&&self,we=md||SS||Function("return this")(),Me=we.Symbol,wd=Object.prototype,xS=wd.hasOwnProperty,TS=wd.toString,As=Me?Me.toStringTag:void 0;function RS(e){var t=xS.call(e,As),n=e[As];try{e[As]=void 0;var r=!0}catch{}var i=TS.call(e);return r&&(t?e[As]=n:delete e[As]),i}var PS=Object.prototype,NS=PS.toString;function $S(e){return NS.call(e)}var MS="[object Null]",IS="[object Undefined]",Ad=Me?Me.toStringTag:void 0;function Ue(e){return e==null?e===void 0?IS:MS:Ad&&Ad in Object(e)?RS(e):$S(e)}function ae(e){return e!=null&&typeof e=="object"}var DS="[object Symbol]";function Qe(e){return typeof e=="symbol"||ae(e)&&Ue(e)==DS}var CS=NaN;function Od(e){return typeof e=="number"?e:Qe(e)?CS:+e}function se(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var I=Array.isArray,Ed=Me?Me.prototype:void 0,Sd=Ed?Ed.toString:void 0;function ct(e){if(typeof e=="string")return e;if(I(e))return se(e,ct)+"";if(Qe(e))return Sd?Sd.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function oa(e,t){return function(n,r){var i;if(n===void 0&&r===void 0)return t;if(n!==void 0&&(i=n),r!==void 0){if(i===void 0)return r;typeof n=="string"||typeof r=="string"?(n=ct(n),r=ct(r)):(n=Od(n),r=Od(r)),i=e(n,r)}return i}}var xd=oa(function(e,t){return e+t},0),LS=/\s/;function Td(e){for(var t=e.length;t--&&LS.test(e.charAt(t)););return t}var jS=/^\s+/;function Rd(e){return e&&e.slice(0,Td(e)+1).replace(jS,"")}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pd=NaN,FS=/^[-+]0x[0-9a-f]+$/i,BS=/^0b[01]+$/i,zS=/^0o[0-7]+$/i,US=parseInt;function lt(e){if(typeof e=="number")return e;if(Qe(e))return Pd;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rd(e);var n=BS.test(e);return n||zS.test(e)?US(e.slice(2),n?2:8):FS.test(e)?Pd:+e}var Nd=1/0,VS=17976931348623157e292;function an(e){if(!e)return e===0?e:0;if(e=lt(e),e===Nd||e===-Nd){var t=e<0?-1:1;return t*VS}return e===e?e:0}function D(e){var t=an(e),n=t%1;return t===t?n?t-n:t:0}var WS="Expected a function";function $d(e,t){if(typeof t!="function")throw new TypeError(WS);return e=D(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ve(e){return e}var kS="[object AsyncFunction]",qS="[object Function]",GS="[object GeneratorFunction]",HS="[object Proxy]";function un(e){if(!oe(e))return!1;var t=Ue(e);return t==qS||t==GS||t==kS||t==HS}var aa=we["__core-js_shared__"],Md=function(){var e=/[^.]+$/.exec(aa&&aa.keys&&aa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KS(e){return!!Md&&Md in e}var YS=Function.prototype,XS=YS.toString;function Rr(e){if(e!=null){try{return XS.call(e)}catch{}try{return e+""}catch{}}return""}var JS=/[\\^$.*+?()[\]{}|]/g,ZS=/^\[object .+?Constructor\]$/,QS=Function.prototype,ex=Object.prototype,tx=QS.toString,nx=ex.hasOwnProperty,rx=RegExp("^"+tx.call(nx).replace(JS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Id(e){if(!oe(e)||KS(e))return!1;var t=un(e)?rx:ZS;return t.test(Rr(e))}function ix(e,t){return e?.[t]}function Pr(e,t){var n=ix(e,t);return Id(n)?n:void 0}var Os=Pr(we,"WeakMap"),ua=Os&&new Os,Dd=ua?function(e,t){return ua.set(e,t),e}:Ve,Cd=Object.create,yi=function(){function e(){}return function(t){if(!oe(t))return{};if(Cd)return Cd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Es(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=yi(e.prototype),r=e.apply(n,t);return oe(r)?r:n}}var sx=1;function ox(e,t,n){var r=t&sx,i=Es(e);function s(){var o=this&&this!==we&&this instanceof s?i:e;return o.apply(r?n:this,arguments)}return s}function ht(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ax=Math.max;function Ld(e,t,n,r){for(var i=-1,s=e.length,o=n.length,a=-1,u=t.length,f=ax(s-o,0),c=Array(u+f),l=!r;++a<u;)c[a]=t[a];for(;++i<o;)(l||i<s)&&(c[n[i]]=e[i]);for(;f--;)c[a++]=e[i++];return c}var ux=Math.max;function jd(e,t,n,r){for(var i=-1,s=e.length,o=-1,a=n.length,u=-1,f=t.length,c=ux(s-a,0),l=Array(c+f),h=!r;++i<c;)l[i]=e[i];for(var d=i;++u<f;)l[d+u]=t[u];for(;++o<a;)(h||i<s)&&(l[d+n[o]]=e[i++]);return l}function fx(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function fa(){}var cx=4294967295;function L(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=cx,this.__views__=[]}L.prototype=yi(fa.prototype),L.prototype.constructor=L;function ca(){}var Gf=ua?function(e){return ua.get(e)}:ca,bi={},lx=Object.prototype,hx=lx.hasOwnProperty;function la(e){for(var t=e.name+"",n=bi[t],r=hx.call(bi,t)?n.length:0;r--;){var i=n[r],s=i.func;if(s==null||s==e)return i.name}return t}function Pt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Pt.prototype=yi(fa.prototype),Pt.prototype.constructor=Pt;function et(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Fd(e){if(e instanceof L)return e.clone();var t=new Pt(e.__wrapped__,e.__chain__);return t.__actions__=et(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var px=Object.prototype,dx=px.hasOwnProperty;function p(e){if(ae(e)&&!I(e)&&!(e instanceof L)){if(e instanceof Pt)return e;if(dx.call(e,"__wrapped__"))return Fd(e)}return new Pt(e)}p.prototype=fa.prototype,p.prototype.constructor=p;function Hf(e){var t=la(e),n=p[t];if(typeof n!="function"||!(t in L.prototype))return!1;if(e===n)return!0;var r=Gf(n);return!!r&&e===r[0]}var _x=800,vx=16,gx=Date.now;function Bd(e){var t=0,n=0;return function(){var r=gx(),i=vx-(r-n);if(n=r,i>0){if(++t>=_x)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zd=Bd(Dd),yx=/\{\n\/\* \[wrapped with (.+)\] \*/,bx=/,? & /;function mx(e){var t=e.match(yx);return t?t[1].split(bx):[]}var wx=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Ax(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(wx,`{
|
|
1
|
+
(function(x,ws){typeof exports=="object"&&typeof module<"u"?ws(exports):typeof define=="function"&&define.amd?define(["exports"],ws):(x=typeof globalThis<"u"?globalThis:x||self,ws((x.dxMyth=x.dxMyth||{},x.dxMyth.utils={})))})(this,function(x){"use strict";var ws=Object.prototype.hasOwnProperty,Ue="~";function As(){}Object.create&&(As.prototype=Object.create(null),new As().__proto__||(Ue=!1));function DE(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function bd(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var s=new DE(n,r||e,i),o=Ue?Ue+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],s]:e._events[o].push(s):(e._events[o]=s,e._eventsCount++),e}function da(e,t){--e._eventsCount===0?e._events=new As:delete e._events[t]}function me(){this._events=new As,this._eventsCount=0}me.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)ws.call(n,r)&&t.push(Ue?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},me.prototype.listeners=function(t){var n=Ue?Ue+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,s=r.length,o=new Array(s);i<s;i++)o[i]=r[i].fn;return o},me.prototype.listenerCount=function(t){var n=Ue?Ue+t:t,r=this._events[n];return r?r.fn?1:r.length:0},me.prototype.emit=function(t,n,r,i,s,o){var a=Ue?Ue+t:t;if(!this._events[a])return!1;var u=this._events[a],f=arguments.length,c,l;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,n),!0;case 3:return u.fn.call(u.context,n,r),!0;case 4:return u.fn.call(u.context,n,r,i),!0;case 5:return u.fn.call(u.context,n,r,i,s),!0;case 6:return u.fn.call(u.context,n,r,i,s,o),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var h=u.length,d;for(l=0;l<h;l++)switch(u[l].once&&this.removeListener(t,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,n);break;case 3:u[l].fn.call(u[l].context,n,r);break;case 4:u[l].fn.call(u[l].context,n,r,i);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},me.prototype.on=function(t,n,r){return bd(this,t,n,r,!1)},me.prototype.once=function(t,n,r){return bd(this,t,n,r,!0)},me.prototype.removeListener=function(t,n,r,i){var s=Ue?Ue+t:t;if(!this._events[s])return this;if(!n)return da(this,s),this;var o=this._events[s];if(o.fn)o.fn===n&&(!i||o.once)&&(!r||o.context===r)&&da(this,s);else{for(var a=0,u=[],f=o.length;a<f;a++)(o[a].fn!==n||i&&!o[a].once||r&&o[a].context!==r)&&u.push(o[a]);u.length?this._events[s]=u.length===1?u[0]:u:da(this,s)}return this},me.prototype.removeAllListeners=function(t){var n;return t?(n=Ue?Ue+t:t,this._events[n]&&da(this,n)):(this._events=new As,this._eventsCount=0),this},me.prototype.off=me.prototype.removeListener,me.prototype.addListener=me.prototype.on,me.prefixed=Ue,me.EventEmitter=me;const Os={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},Jf=Os.NONE,md=Os.CAPTURING_PHASE,Zf=Os.AT_TARGET,wd=Os.BUBBLING_PHASE;class CE{static create(t,n,r){return new this(t,n,r)}type="none";parentNode=null;target=null;currentTarget=null;data=null;eventPhase=Jf;bubbles=!1;cancelable=!1;defaultPrevented=!1;cancelBubble=!1;immediateCancelBubble=!1;constructor(t,n,r){this.initEvent(t,n,r)}setData(t){return this.data=t,this}initEvent(t,n=!0,r=!0){this.type=t,this.bubbles=n,this.cancelable=r}composedPath(){let t=this.target,n=[];for(;t;)n.push(t),t=t.parent;return n}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.stopPropagation(),this.immediateCancelBubble=!0}}function Ad(e){return(typeof e=="boolean"||!e)&&(e={capture:!!e}),e={capture:!1,once:!1,...e||{}},e}function Od(e,t){var n=e._events[t],r;if(!n)return[];if(n.fn)return[n];for(var i=0,s=n.length,r=new Array(s);i<s;i++)r[i]=n[i];return r}class nr{parent=null;_bubble_emitter=new me;_capture_emitter=new me;addEventListener(t,n,r){r=Ad(r);const i=r.capture?this._capture_emitter:this._bubble_emitter;r&&r.once?i.once(t,n):i.on(t,n)}removeEventListener(t,n,r){r=Ad(r),(r.capture?this._capture_emitter:this._bubble_emitter).off(t,n)}dispatchEvent(t){t.target=this;const n=t.type,r=t.composedPath(),i=r.length;for(let s=i-1;s>=0;s--){const o=r[s]._capture_emitter;if(o.listenerCount(n)>0){t.currentTarget=r[s],t.eventPhase=t.currentTarget!==this?md:Zf;const u=Od(o,n);for(let f=0,c=u.length;f<c;f++){const l=u[f];if(l.once&&o.removeListener(n,l.fn,l.context,l.once),l.fn(t),t.immediateCancelBubble)break}}if(t.cancelBubble)break}if(!t.cancelBubble)for(let s=0;s<i;s++){const o=r[s]._bubble_emitter;if(o.listenerCount(n)>0){t.currentTarget=r[s],t.eventPhase=t.currentTarget!==this?wd:Zf;const u=Od(o,n);for(let f=0,c=u.length;f<c;f++){const l=u[f];if(l.once&&o.removeListener(n,l.fn,l.context,l.once),l.fn(t),t.immediateCancelBubble)break}}if(t.cancelBubble||!t.bubbles)break}return t.eventPhase=Jf,!t.defaultPrevented}removeAllListeners(){this._bubble_emitter.removeAllListeners(),this._capture_emitter.removeAllListeners()}}nr.prototype.on=nr.prototype.addEventListener,nr.prototype.off=nr.prototype.removeEventListener,nr.prototype.emit=nr.prototype.dispatchEvent;function LE(e){return e=e||new Map,{all:e,on(t,n){const r=e.get(t);r?r.push(n):e.set(t,[n])},off(t,n){const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let r=e.get(t);r&&r.slice().map(i=>{i(n)}),r=e.get("*"),r&&r.slice().map(i=>{i(t,n)})}}}function Ed(e,t,n,r,i,s){let o=Object.assign({once:!1,stage:1/0},s);e[t]||(e[t]=Object.create(null));let a=e[t],u=a[r];if(u||(u=[],a[r]=u),u.some(l=>l.handle===i))return;let f={handle:i,once:o.once,namespace:o.namespace,stage:o.stage},c=-1;if(o.stage!==1/0&&(c=u.findIndex(l=>l.handle<f.handle)),c!==-1?u.splice(c,0,f):u.push(f),o.namespace){let l=e[n];l||(l=e[n]=new Map);let h=l.get(o.namespace);h||l.set(o.namespace,new Map),h=l.get(o.namespace),h.has(r)?h.set(r,h.get(r)+1):h.set(r,1)}}function Es(e,t,n,r,i,s){if(e[t]){if(!r&&!i){e[t]=void 0,delete e[t];return}else if(!r&&i){let o=e[n];if(!o||!o.has(i))return;o.get(i).forEach((u,f)=>{Es(e,t,n,f,void 0,s)}),o.delete(i)}else if(r){let o=e[t],a=o[r];a&&(o[r]=a.filter(u=>{if((!s||u.handle===s)&&(!i||u.namespace===i)){let f=e[n];if(u.namespace&&f&&f.has(u.namespace)){let c=f.get(u.namespace);c.has(r)&&c.set(r,c.get(r)-1),c.get(r)<=0&&c.delete(r)}return!1}return!0}))}}}function jE(e,t,n,r,...i){if(!e[t])return;let o=e[t][r];if(o)for(let a=0;a<o.length;a++){const u=o[a];u.handle(...i),u.once&&Es(e,t,n,r,null,u.handle)}}function Sd(e,t,n){let r=e[t];return r?r[n]||[]:[]}function FE(e,t,n){e[t]=void 0,e[n]=void 0}function BE(e,t,n){let r=e[t];if(!r)return!1;let i=r[n];return i?i.length>0:!1}function zE(e){if(!e._listeners)return[];let t=e._listeners;return Object.keys(t)}function UE(e,t,n,r,i){i.target=e;const s=i.type,o=i.composedPath(e),a=o.length;for(let u=a-1;u>=0;u--){const f=o[u];i.currentTarget=o[u],i.eventPhase=i.currentTarget!==e?bi.CAPTURING_PHASE:bi.AT_TARGET;const c=Sd(f,n,s);for(let l=0,h=c.length;l<h;l++){const d=c[l];if(d.once&&Es(e,n,r,s,null,d.handle),d.handle(i),i.immediateCancelBubble)break}if(i.cancelBubble)break}if(!i.cancelBubble)for(let u=0;u<a;u++){const f=o[u];i.currentTarget=o[u],i.eventPhase=i.currentTarget!==e?bi.BUBBLING_PHASE:bi.AT_TARGET;const c=Sd(f,t,s);for(let l=0,h=c.length;l<h;l++){const d=c[l];if(d.once&&Es(e,t,r,s,null,d.handle),d.handle(i),i.immediateCancelBubble)break}if(i.cancelBubble||!i.bubbles)break}return i.eventPhase=bi.NONE,!i.defaultPrevented}const bi={NONE:0,CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3};class _a{static create(t,n){return new _a(t)}type;target=null;currentTarget=null;data=null;eventPhase=bi.NONE;bubbles=!1;cancelable=!1;defaultPrevented=!1;cancelBubble=!1;immediateCancelBubble=!1;constructor(t,n,r){this.initEvent(t,n,r)}setData(t){return this.data=t,this}initEvent(t,n=!0,r=!0){return this.type=t,this.bubbles=n,this.cancelable=r,this}composedPath(t){let n=t,r=[];for(;n;)r.push(n),n=n.parent;return r}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this.stopPropagation(),this.immediateCancelBubble=!0}}const mi="_listeners",xd="_listeners_capture",wi="_listenersNs";class kE{parent;_listeners;_listenersNs;on(t,n,r){return r&&r.capture?Ed(this,xd,wi,t,n,r):Ed(this,mi,wi,t,n,r),this}emit(t,...n){return jE(this,mi,wi,t,...n),this}createEvent(t,n){return _a.create(t,n)}emitBubble(t){return UE(this,mi,xd,wi,t)}off(t,n,r){return Es(this,mi,wi,t,r?r.namespace:null,n),this}eventNames(){return zE(this)}hasEventListener(t){return BE(this,mi,t)}removeAllListeners(){return FE(this,mi,wi),this}}const Td=e=>!!Symbol[e],Qf=e=>Td(e)?Symbol[e]:"@@"+e,VE=Qf("iterator"),ec=Qf("observable"),Rd=Qf("species");function va(e,t){let n=e[t];if(n!=null){if(typeof n!="function")throw new TypeError(n+" is not a function");return n}}function Ss(e){let t=e.constructor;return t!==void 0&&(t=t[Rd],t===null&&(t=void 0)),t!==void 0?t:Re}function WE(e){return e instanceof Re}function Ai(e){Ai.log?Ai.log(e):setTimeout(()=>{throw e})}function ga(e){Promise.resolve().then(()=>{try{e()}catch(t){Ai(t)}})}function Pd(e){let t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{let n=va(t,"unsubscribe");n&&n.call(t)}}catch(n){Ai(n)}}function tc(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function qE(e){let t=e._queue;if(t){e._queue=void 0,e._state="ready";for(let n=0;n<t.length&&(Nd(e,t[n].type,t[n].value),e._state!=="closed");++n);}}function Nd(e,t,n){e._state="running";let r=e._observer;try{let i=va(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(tc(e),i)i.call(r,n);else throw n;break;case"complete":tc(e),i&&i.call(r);break}}catch(i){Ai(i)}e._state==="closed"?Pd(e):e._state==="running"&&(e._state="ready")}function nc(e,t,n){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:n});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:n}],ga(()=>qE(e));return}Nd(e,t,n)}}class GE{constructor(t,n){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";let r=this,i={get closed(){return r._state==="closed"},next(s){nc(r,"next",s)},error(s){nc(r,"error",s)},complete(){nc(r,"complete")}};try{this._cleanup=n.call(void 0,i)}catch(s){i.error(s)}this._state==="initializing"&&(this._state="ready")}get closed(){return this._state==="closed"}unsubscribe(){this._state!=="closed"&&(tc(this),Pd(this))}}class Re{constructor(t){if(!(this instanceof Re))throw new TypeError("Observable cannot be called as a function");if(typeof t!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=t}subscribe(t){return(typeof t!="object"||t===null)&&(t={next:t,error:arguments[1],complete:arguments[2]}),new GE(t,this._subscriber)}forEach(t){return new Promise((n,r)=>{if(typeof t!="function"){r(new TypeError(t+" is not a function"));return}function i(){s.unsubscribe(),n()}let s=this.subscribe({next(o){try{t(o,i)}catch(a){r(a),s.unsubscribe()}},error:r,complete:n})})}map(t){if(typeof t!="function")throw new TypeError(t+" is not a function");let n=Ss(this);return new n(r=>this.subscribe({next(i){try{i=t(i)}catch(s){return r.error(s)}r.next(i)},error(i){r.error(i)},complete(){r.complete()}}))}filter(t){if(typeof t!="function")throw new TypeError(t+" is not a function");let n=Ss(this);return new n(r=>this.subscribe({next(i){try{if(!t(i))return}catch(s){return r.error(s)}r.next(i)},error(i){r.error(i)},complete(){r.complete()}}))}reduce(t){if(typeof t!="function")throw new TypeError(t+" is not a function");let n=Ss(this),r=arguments.length>1,i=!1,o=arguments[1];return new n(a=>this.subscribe({next(u){let f=!i;if(i=!0,!f||r)try{o=t(o,u)}catch(c){return a.error(c)}else o=u},error(u){a.error(u)},complete(){if(!i&&!r)return a.error(new TypeError("Cannot reduce an empty sequence"));a.next(o),a.complete()}}))}async all(){let t=[];return await this.forEach(n=>t.push(n)),t}concat(...t){let n=Ss(this);return new n(r=>{let i,s=0;function o(a){i=a.subscribe({next(u){r.next(u)},error(u){r.error(u)},complete(){s===t.length?(i=void 0,r.complete()):o(n.from(t[s++]))}})}return o(this),()=>{i&&(i.unsubscribe(),i=void 0)}})}flatMap(t){if(typeof t!="function")throw new TypeError(t+" is not a function");let n=Ss(this);return new n(r=>{let i=[],s=this.subscribe({next(a){if(t)try{a=t(a)}catch(f){return r.error(f)}let u=n.from(a).subscribe({next(f){r.next(f)},error(f){r.error(f)},complete(){let f=i.indexOf(u);f>=0&&i.splice(f,1),o()}});i.push(u)},error(a){r.error(a)},complete(){o()}});function o(){s.closed&&i.length===0&&r.complete()}return()=>{i.forEach(a=>a.unsubscribe()),s.unsubscribe()}})}[ec](){return this}static from(t){let n=typeof this=="function"?this:Re;if(t==null)throw new TypeError(t+" is not an object");let r=va(t,ec);if(r){let i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return WE(i)&&i.constructor===n?i:new n(s=>i.subscribe(s))}if(Td("iterator")&&(r=va(t,VE),r))return new n(i=>{ga(()=>{if(!i.closed){for(let s of r.call(t))if(i.next(s),i.closed)return;i.complete()}})});if(Array.isArray(t))return new n(i=>{ga(()=>{if(!i.closed){for(let s=0;s<t.length;++s)if(i.next(t[s]),i.closed)return;i.complete()}})});throw new TypeError(t+" is not observable")}static of(...t){let n=typeof this=="function"?this:Re;return new n(r=>{ga(()=>{if(!r.closed){for(let i=0;i<t.length;++i)if(r.next(t[i]),r.closed)return;r.complete()}})})}static get[Rd](){return this}}Object.defineProperty(Re,Symbol("extensions"),{value:{symbol:ec,hostReportError:Ai},configurable:!0});function HE(...e){return new Re(t=>{if(e.length===0)return Re.from([]);let n=e.length,r=e.map(i=>Re.from(i).subscribe({next(s){t.next(s)},error(s){t.error(s)},complete(){--n===0&&t.complete()}}));return()=>r.forEach(i=>i.unsubscribe())})}function KE(...e){return new Re(t=>{if(e.length===0)return Re.from([]);let n=e.length,r=new Set,i=!1,s=e.map(()=>{}),o=e.map((a,u)=>Re.from(a).subscribe({next(f){if(s[u]=f,!i){if(r.add(u),r.size!==e.length)return;r=null,i=!0}t.next(Array.from(s))},error(f){t.error(f)},complete(){--n===0&&t.complete()}}));return()=>o.forEach(a=>a.unsubscribe())})}function YE(...e){return new Re(t=>{if(e.length===0)return Re.from([]);let n=e.map(()=>[]);function r(){return n.some((s,o)=>s.length===0&&i[o].closed)}let i=e.map((s,o)=>Re.from(s).subscribe({next(a){n[o].push(a),n.every(u=>u.length>0)&&(t.next(n.map(u=>u.shift())),r()&&t.complete())},error(a){t.error(a)},complete(){r()&&t.complete()}}));return()=>i.forEach(s=>s.unsubscribe())})}const XE=Object.freeze(Object.defineProperty({__proto__:null,Observable:Re,combineLatest:KE,merge:HE,zip:YE},Symbol.toStringTag,{value:"Module"}));function JE(){let e=[];const t={add(n,r){r={stage:0,once:!1,...r??{}};let i=e.findIndex(o=>r.stage<o.stage);i!==-1?e.splice(i,0,{fn:n,stage:r.stage,once:r.once}):e.push({fn:n,stage:r.stage,once:r.once});let s=!1;return()=>{s||(s=!0,t.remove(n))}},remove(n){e=e.filter(r=>r.fn!==n)},dispatch(...n){let r=!1,i=!1;const s={stop:()=>{r=!0},remove:()=>{i=!0}};e.some(o=>(o.fn(...n,s),(i||o.once)&&t.remove(o.fn),r))},clear(){e.length=0}};return t}class ZE{firing=!1;memory;fired=!1;locked=!1;list=[];queue=[];firingIndex=-1;destroyedList=!1;options={once:!1,memory:!0,unique:!0,stopOnFalse:!1};constructor(t){this.options=Object.assign(this.options,t??{})}_fire(){const t=this.queue;for(this.locked=this.locked||this.options.once,this.fired=this.firing=!0;t.length;this.firingIndex=-1)for(this.memory=t.shift();++this.firingIndex<this.list.length;)this.list[this.firingIndex].apply(this.memory[0],this.memory[1])===!1&&this.options.stopOnFalse&&(this.firingIndex=this.list.length,this.memory=!1);this.options.memory||(this.memory=!1),this.firing=!1,this.locked&&(this.memory?this.list=[]:(this.list=[],this.destroyedList=!0))}add(...t){return this.destroyedList||(this.memory&&!this.firing&&(this.firingIndex=this.list.length-1,this.queue.push(this.memory)),t.forEach(n=>{typeof n=="function"?(!this.options.unique||!this.has(n))&&this.list.push(n):n&&n.length&&Array.isArray(n)&&this.add(...n)}),this.memory&&!this.firing&&this._fire()),this}remove(...t){return t.forEach(n=>{for(var r=0;(r=this.list.indexOf(n,r))>-1;)this.list.splice(r,1),r<=this.firingIndex&&this.firingIndex--}),this}has(t){return t?this.list.indexOf(t)>-1:this.list.length>0}empty(){return this.list&&(this.list=[]),this}disable(){return this.locked=!0,this.queue=[],this.list=[],this.destroyedList=!0,this.memory=null,this}disabled(){return this.destroyedList}lock(){return this.locked=!0,this.queue=[],!this.memory&&!this.firing&&(this.list=[],this.memory=null,this.destroyedList=!0),this}fireWith(t,n){return this.locked||(n=n||[],n=[t,n.slice?n.slice():n],this.queue.push(n),this.firing||this._fire()),this}fire(...t){return this.fireWith(this,t),this}}class QE{heap;compare;constructor(t){this.heap=[],this.compare=t}get size(){return this.heap.length}isEmpty(){return this.size===0}top(){return this.peek()}peek(){return this.isEmpty()?null:this.heap[0]}enqueue(t){this.heap.push(t),this.siftUp(this.size-1)}push(t){this.enqueue(t)}pop(){return this.dequeue()}dequeue(){if(this.isEmpty())return null;const t=this.heap[0],n=this.heap.pop();return this.isEmpty()||(this.heap[0]=n,this.siftDown(0)),t}siftUp(t){for(;t>0;){const n=Math.floor((t-1)/2);if(this.compare(this.heap[t],this.heap[n])>=0)break;this.swap(t,n),t=n}}siftDown(t){const n=this.size;for(;t<n;){const r=2*t+1,i=2*t+2;let s=t;if(r<n&&this.compare(this.heap[r],this.heap[s])<0&&(s=r),i<n&&this.compare(this.heap[i],this.heap[s])<0&&(s=i),s===t)break;this.swap(t,s),t=s}}swap(t,n){[this.heap[t],this.heap[n]]=[this.heap[n],this.heap[t]]}clear(){this.heap=[]}}const Md=e=>!!e&&e.constructor===Symbol,xs=Array.isArray,rc=e=>!!e&&e.constructor===Object,$d=e=>e==null||typeof e!="object"&&typeof e!="function",Ts=e=>!!(e&&e.constructor&&e.call&&e.apply),eS=e=>typeof e=="string"||e instanceof String,tS=e=>Oi(e)&&e%1===0,nS=e=>Oi(e)&&e%1!==0,Oi=e=>{try{return Number(e)===e}catch{return!1}},Id=e=>Object.prototype.toString.call(e)==="[object Date]",Dd=e=>!(!e||!e.then||!Ts(e.then)),rS=e=>{if(e===!0||e===!1||e==null)return!0;if(Oi(e))return e===0;if(Id(e))return isNaN(e.getTime());if(Ts(e)||Md(e))return!1;const t=e.length;if(Oi(t))return t===0;const n=e.size;return Oi(n)?n===0:Object.keys(e).length===0},Cd=(e,t)=>{if(Object.is(e,t))return!0;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.toString()===t.toString();if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Reflect.has(t,n[i])||!Cd(e[n[i]],t[n[i]]))return!1;return!0},iS=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]||(n[i]=[]),n[i].push(r),n},{});function sS(...e){return!e||!e.length?[]:new Array(Math.max(...e.map(({length:t})=>t))).fill([]).map((t,n)=>e.map(r=>r[n]))}function oS(e,t){if(!e||!e.length)return{};const n=Ts(t)?t:xs(t)?(r,i)=>t[i]:(r,i)=>t;return e.reduce((r,i,s)=>(r[i]=n(i,s),r),{})}const ic=(e,t)=>!e||(e.length??0)===0?null:e.reduce(t);function aS(e,t){return(e||[]).reduce((n,r)=>n+(t?t(r):r),0)}const uS=(e,t=void 0)=>e?.length>0?e[0]:t,fS=(e,t=void 0)=>e?.length>0?e[e.length-1]:t,Ld=(e,t,n=!1)=>{if(!e)return[];const r=(s,o)=>t(s)-t(o),i=(s,o)=>t(o)-t(s);return e.slice().sort(n===!0?i:r)},cS=(e,t,n="asc")=>{if(!e)return[];const r=(s,o)=>`${t(s)}`.localeCompare(t(o)),i=(s,o)=>`${t(o)}`.localeCompare(t(s));return e.slice().sort(n==="desc"?i:r)},lS=(e,t)=>e?e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]??0)+1,n},{}):{},hS=(e,t,n)=>{if(!e)return[];if(t===void 0)return[...e];for(let r=0;r<e.length;r++){const i=e[r];if(n(i,r))return[...e.slice(0,r),t,...e.slice(r+1,e.length)]}return[...e]},jd=(e,t,n=r=>r)=>e.reduce((r,i)=>(r[t(i)]=n(i),r),{}),pS=(e,t,n)=>e?e.reduce((r,i,s)=>(n(i,s)&&r.push(t(i,s)),r),[]):[];function dS(e,t){const n=t??(r=>r);return ic(e,(r,i)=>n(r)>n(i)?r:i)}function _S(e,t){const n=t??(r=>r);return ic(e,(r,i)=>n(r)<n(i)?r:i)}const vS=(e,t=2)=>{const n=Math.ceil(e.length/t);return new Array(n).fill(null).map((r,i)=>e.slice(i*t,i*t+t))},gS=(e,t)=>{const n=e.reduce((r,i)=>{const s=t?t(i):i;return r[s]||(r[s]=i),r},{});return Object.values(n)};function*sc(e,t,n=i=>i,r=1){const i=Ts(n)?n:()=>n,s=t?e:0,o=t??e;for(let a=s;a<=o&&(yield i(a),!(a+r>o));a+=r);}const oc=(e,t,n,r)=>Array.from(sc(e,t,n,r)),yS=e=>e.reduce((t,n)=>(t.push(...n),t),[]),bS=(e,t,n)=>{if(!e||!t)return!1;const r=n??(s=>s),i=t.reduce((s,o)=>(s[r(o)]=!0,s),{});return e.some(s=>i[r(s)])},Fd=(e,t)=>e?e.reduce((n,r)=>{const[i,s]=n;return t(r)?[[...i,r],s]:[i,[...s,r]]},[[],[]]):[[],[]],mS=(e,t,n)=>!t&&!e?[]:t?e?n?e.reduce((r,i)=>{const s=t.find(o=>n(i)===n(o));return s?r.push(s):r.push(i),r},[]):e:[]:e,wS=(e,t,n)=>{if(!e&&!t)return[];if(!t)return[...e];if(!e)return[t];for(let r=0;r<e.length;r++){const i=e[r];if(n(i,r))return[...e.slice(0,r),t,...e.slice(r+1,e.length)]}return[...e,t]},AS=(e,t,n,r)=>{if(!e&&!t)return[];if(!e)return[t];if(!t)return[...e];const i=n?(a,u)=>n(a,u)===n(t,u):a=>a===t;return e.find(i)?e.filter((a,u)=>!i(a,u)):(r?.strategy??"append")==="append"?[...e,t]:[t,...e]},OS=e=>e?.filter(t=>!!t)??[],Bd=(e,t,n)=>{let r=n;for(let i=1;i<=e;i++)r=t(r,i);return r},ES=(e,t,n=r=>r)=>{if(!e?.length&&!t?.length)return[];if(e?.length===void 0)return[...t];if(!t?.length)return[...e];const r=t.reduce((i,s)=>(i[n(s)]=!0,i),{});return e.filter(i=>!r[n(i)])};function SS(e,t){if(e.length===0)return e;const n=t%e.length;return n===0?e:[...e.slice(-n,e.length),...e.slice(0,-n)]}const xS=async(e,t,n)=>{const r=n!==void 0;if(!r&&e?.length<1)throw new Error("Cannot reduce empty array with no init value");const i=r?e:e.slice(1);let s=r?n:e[0];for(const[o,a]of i.entries())s=await t(s,a,o);return s},TS=async(e,t)=>{if(!e)return[];let n=[],r=0;for(const i of e){const s=await t(i,r++);n.push(s)}return n},RS=async e=>{const t=[],n=(s,o)=>t.push({fn:s,rethrow:o?.rethrow??!1}),[r,i]=await Ei(e)(n);for(const{fn:s,rethrow:o}of t){const[a]=await Ei(s)(r);if(a&&o)throw a}if(r)throw r;return i};class zd extends Error{errors;constructor(t=[]){super();const n=t.find(r=>r.name)?.name??"";this.name=`AggregateError(${n}...)`,this.message=`AggregateError with ${t.length} errors`,this.stack=t.find(r=>r.stack)?.stack??this.stack,this.errors=t}}const PS=async(e,t,n)=>{const r=t.map((f,c)=>({index:c,item:f})),i=async f=>{const c=[];for(;;){const l=r.pop();if(!l)return f(c);const[h,d]=await Ei(n)(l.item);c.push({error:h,result:d,index:l.index})}},s=oc(1,e).map(()=>new Promise(i)),o=await Promise.all(s),[a,u]=Fd(Ld(o.flat(),f=>f.index),f=>!!f.error);if(a.length>0)throw new zd(a.map(f=>f.error));return u.map(f=>f.result)};async function NS(e){const t=xs(e)?e.map(i=>[null,i]):Object.entries(e),n=await Promise.all(t.map(([i,s])=>s.then(o=>({result:o,exc:null,key:i})).catch(o=>({result:null,exc:o,key:i})))),r=n.filter(i=>i.exc);if(r.length>0)throw new zd(r.map(i=>i.exc));return xs(e)?n.map(i=>i.result):n.reduce((i,s)=>({...i,[s.key]:s.result}),{})}const MS=async(e,t)=>{const n=e?.times??3,r=e?.delay,i=e?.backoff??null;for(const s of sc(1,n)){const[o,a]=await Ei(t)(u=>{throw{_exited:u}});if(!o)return a;if(o._exited)throw o._exited;if(s===n)throw o;r&&await ac(r),i&&await ac(i(s))}},ac=e=>new Promise(t=>setTimeout(t,e)),Ei=e=>(...t)=>{try{const n=e(...t);return Dd(n)?n.then(r=>[void 0,r]).catch(r=>[r,void 0]):[void 0,n]}catch(n){return[n,void 0]}},$S=(e,t)=>{const n=i=>{if(t&&!t(i))throw i},r=i=>i instanceof Promise;try{const i=e();return r(i)?i.catch(n):i}catch(i){return n(i)}};function IS(...e){return(...t)=>e.slice(1).reduce((n,r)=>r(n),e[0](...t))}function DS(...e){return e.reverse().reduce((t,n)=>n(t))}const CS=(e,...t)=>(...n)=>e(...t,...n),LS=(e,t)=>n=>e({...t,...n}),jS=e=>new Proxy({},{get:(t,n)=>e(n)}),FS=(e,t,n,r)=>function(...s){const o=n?n(...s):JSON.stringify({args:s}),a=e[o];if(a!==void 0&&(!a.exp||a.exp>new Date().getTime()))return a.value;const u=t(...s);return e[o]={exp:r?new Date().getTime()+r:null,value:u},u},BS=(e,t={})=>FS({},e,t.key??null,t.ttl??null),zS=({delay:e},t)=>{let n,r=!0;const i=(...s)=>{r?(clearTimeout(n),n=setTimeout(()=>{r&&t(...s),n=void 0},e)):t(...s)};return i.isPending=()=>n!==void 0,i.cancel=()=>{r=!1},i.flush=(...s)=>t(...s),i},US=({interval:e},t)=>{let n=!0,r;const i=(...s)=>{n&&(t(...s),n=!1,r=setTimeout(()=>{n=!0,r=void 0},e))};return i.isThrottled=()=>r!==void 0,i},kS=(e,t)=>{const n=()=>{};return new Proxy(Object.assign(n,e),{get:(r,i)=>r[i],set:(r,i,s)=>(r[i]=s,!0),apply:(r,i,s)=>t(Object.assign({},r))(...s)})};function VS(e,t,n){return typeof e=="number"&&typeof t=="number"&&(typeof n>"u"||typeof n=="number")?(typeof n>"u"&&(n=t,t=0),e>=Math.min(t,n)&&e<Math.max(t,n)):!1}const WS=(e,t)=>{const n=t===void 0?0:t;if(e==null)return n;const r=parseFloat(e);return isNaN(r)?n:r},Ud=(e,t)=>{const n=t===void 0?0:t;if(e==null)return n;const r=parseInt(e);return isNaN(r)?n:r},qS=(e,t=n=>n===void 0)=>e?Object.keys(e).reduce((r,i)=>(t(e[i])||(r[i]=e[i]),r),{}):{},uc=(e,t)=>Object.keys(e).reduce((r,i)=>(r[t(i,e[i])]=e[i],r),{}),GS=(e,t)=>Object.keys(e).reduce((r,i)=>(r[i]=t(e[i],i),r),{}),HS=(e,t)=>e?Object.entries(e).reduce((n,[r,i])=>{const[s,o]=t(r,i);return n[s]=o,n},{}):{},KS=e=>e?Object.keys(e).reduce((n,r)=>(n[e[r]]=r,n),{}):{},YS=e=>uc(e,t=>t.toLowerCase()),XS=e=>uc(e,t=>t.toUpperCase()),kd=e=>{if($d(e))return e;if(typeof e=="function")return e.bind({});const t=new e.constructor;return Object.getOwnPropertyNames(e).forEach(n=>{t[n]=e[n]}),t},JS=(e,t)=>{if(!e)return[];const n=Object.entries(e);return n.length===0?[]:n.reduce((r,i)=>(r.push(t(i[0],i[1])),r),[])},ZS=(e,t)=>e?t.reduce((n,r)=>(Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]),n),{}):{},QS=(e,t)=>e?!t||t.length===0?e:t.reduce((n,r)=>(delete n[r],n),{...e}):{},Vd=(e,t,n)=>{const r=t.split(/[\.\[\]]/g);let i=e;for(const s of r){if(i===null||i===void 0)return n;const o=s.replace(/['"]/g,"");o.trim()!==""&&(i=i[o])}return i===void 0?n:i},Wd=(e,t,n)=>{if(!e)return{};if(!t||n===void 0)return e;const r=t.split(/[\.\[\]]/g).filter(o=>!!o.trim()),i=o=>{if(r.length>1){const a=r.shift(),u=Ud(r[0],null)!==null;o[a]=o[a]===void 0?u?[]:{}:o[a],i(o[a])}else o[r[0]]=n},s=kd(e);return i(s),s},qd=(e,t)=>!e||!t?e??t??{}:Object.entries({...e,...t}).reduce((n,[r,i])=>({...n,[r]:rc(e[r])?qd(e[r],i):i}),{}),Gd=e=>{if(!e)return[];const t=(n,r)=>rc(n)?Object.entries(n).flatMap(([i,s])=>t(s,[...r,i])):xs(n)?n.flatMap((i,s)=>t(i,[...r,`${s}`])):[r.join(".")];return t(e,[])},ex=e=>e?jd(Gd(e),t=>t,t=>Vd(e,t)):{},tx=e=>e?Object.keys(e).reduce((t,n)=>Wd(t,n,e[n]),{}):{},fc=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),nx=e=>{const t=e.length;if(t===0)return null;const n=fc(0,t-1);return e[n]},rx=e=>e.map(t=>({rand:Math.random(),value:t})).sort((t,n)=>t.rand-n.rand).map(t=>t.value),ix=(e,t="")=>{const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"+t;return Bd(e,r=>r+n.charAt(fc(0,n.length-1)),"")},sx=(e,t=n=>`${n}`)=>{const{indexesByKey:n,itemsByIndex:r}=e.reduce((l,h,d)=>({indexesByKey:{...l.indexesByKey,[t(h)]:d},itemsByIndex:{...l.itemsByIndex,[d]:h}}),{indexesByKey:{},itemsByIndex:{}}),i=(l,h)=>n[t(l)]<n[t(h)]?l:h,s=(l,h)=>n[t(l)]>n[t(h)]?l:h,o=()=>r[0],a=()=>r[e.length-1],u=(l,h)=>r[n[t(l)]+1]??h??o(),f=(l,h)=>r[n[t(l)]-1]??h??a();return{min:i,max:s,first:o,last:a,next:u,previous:f,spin:(l,h)=>{if(h===0)return l;const d=Math.abs(h),_=d>e.length?d%e.length:d;return oc(0,_-1).reduce(v=>h>0?u(v):f(v),l)}}},Rs=e=>{if(!e||e.length===0)return"";const t=e.toLowerCase();return t.substring(0,1).toUpperCase()+t.substring(1,t.length)},ox=Object.freeze(Object.defineProperty({__proto__:null,all:NS,alphabetical:cS,assign:qd,boil:ic,callable:kS,camel:e=>{const t=e?.replace(/([A-Z])+/g,Rs)?.split(/(?=[A-Z])|[\.\-\s_]/).map(n=>n.toLowerCase())??[];return t.length===0?"":t.length===1?t[0]:t.reduce((n,r)=>`${n}${r.charAt(0).toUpperCase()}${r.slice(1)}`)},capitalize:Rs,chain:IS,clone:kd,cluster:vS,compose:DS,construct:tx,counting:lS,crush:ex,dash:e=>{const t=e?.replace(/([A-Z])+/g,Rs)?.split(/(?=[A-Z])|[\.\-\s_]/).map(n=>n.toLowerCase())??[];return t.length===0?"":t.length===1?t[0]:t.reduce((n,r)=>`${n}-${r.toLowerCase()}`)},debounce:zS,defer:RS,diff:ES,draw:nx,first:uS,flat:yS,fork:Fd,get:Vd,group:iS,guard:$S,inRange:VS,intersects:bS,invert:KS,isArray:xs,isDate:Id,isEmpty:rS,isEqual:Cd,isFloat:nS,isFunction:Ts,isInt:tS,isNumber:Oi,isObject:rc,isPrimitive:$d,isPromise:Dd,isString:eS,isSymbol:Md,iterate:Bd,keys:Gd,last:fS,list:oc,listify:JS,lowerize:YS,map:TS,mapEntries:HS,mapKeys:uc,mapValues:GS,max:dS,memo:BS,merge:mS,min:_S,objectify:jd,omit:QS,parallel:PS,partial:CS,partob:LS,pascal:e=>{const t=e?.split(/[\.\-\s_]/).map(n=>n.toLowerCase())??[];return t.length===0?"":t.map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")},pick:ZS,proxied:jS,random:fc,range:sc,reduce:xS,replace:hS,replaceOrAppend:wS,retry:MS,select:pS,series:sx,set:Wd,shake:qS,shift:SS,shuffle:rx,sift:OS,sleep:ac,snake:(e,t)=>{const n=e?.replace(/([A-Z])+/g,Rs).split(/(?=[A-Z])|[\.\-\s_]/).map(i=>i.toLowerCase())??[];if(n.length===0)return"";if(n.length===1)return n[0];const r=n.reduce((i,s)=>`${i}_${s.toLowerCase()}`);return t?.splitOnNumber===!1?r:r.replace(/([A-Za-z]{1}[0-9]{1})/,i=>`${i[0]}_${i[1]}`)},sort:Ld,sum:aS,template:(e,t,n=/\{\{(.+?)\}\}/g)=>Array.from(e.matchAll(n)).reduce((r,i)=>r.replace(i[0],t[i[1]]),e),throttle:US,title:e=>e?e.split(/(?=[A-Z])|[\.\-\s_]/).map(t=>t.trim()).filter(t=>!!t).map(t=>Rs(t.toLowerCase())).join(" "):"",toFloat:WS,toInt:Ud,toggle:AS,trim:(e,t=" ")=>{if(!e)return"";const n=t.replace(/[\W]{1}/g,"\\$&"),r=new RegExp(`^[${n}]+|[${n}]+$`,"g");return e.replace(r,"")},try:Ei,tryit:Ei,uid:ix,unique:gS,upperize:XS,zip:sS,zipToObject:oS},Symbol.toStringTag,{value:"Module"}));var Hd=typeof global=="object"&&global&&global.Object===Object&&global,ax=typeof self=="object"&&self&&self.Object===Object&&self,we=Hd||ax||Function("return this")(),$e=we.Symbol,Kd=Object.prototype,ux=Kd.hasOwnProperty,fx=Kd.toString,Ps=$e?$e.toStringTag:void 0;function cx(e){var t=ux.call(e,Ps),n=e[Ps];try{e[Ps]=void 0;var r=!0}catch{}var i=fx.call(e);return r&&(t?e[Ps]=n:delete e[Ps]),i}var lx=Object.prototype,hx=lx.toString;function px(e){return hx.call(e)}var dx="[object Null]",_x="[object Undefined]",Yd=$e?$e.toStringTag:void 0;function ke(e){return e==null?e===void 0?_x:dx:Yd&&Yd in Object(e)?cx(e):px(e)}function ae(e){return e!=null&&typeof e=="object"}var vx="[object Symbol]";function et(e){return typeof e=="symbol"||ae(e)&&ke(e)==vx}var gx=NaN;function Xd(e){return typeof e=="number"?e:et(e)?gx:+e}function se(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var I=Array.isArray,Jd=$e?$e.prototype:void 0,Zd=Jd?Jd.toString:void 0;function lt(e){if(typeof e=="string")return e;if(I(e))return se(e,lt)+"";if(et(e))return Zd?Zd.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ya(e,t){return function(n,r){var i;if(n===void 0&&r===void 0)return t;if(n!==void 0&&(i=n),r!==void 0){if(i===void 0)return r;typeof n=="string"||typeof r=="string"?(n=lt(n),r=lt(r)):(n=Xd(n),r=Xd(r)),i=e(n,r)}return i}}var Qd=ya(function(e,t){return e+t},0),yx=/\s/;function e_(e){for(var t=e.length;t--&&yx.test(e.charAt(t)););return t}var bx=/^\s+/;function t_(e){return e&&e.slice(0,e_(e)+1).replace(bx,"")}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var n_=NaN,mx=/^[-+]0x[0-9a-f]+$/i,wx=/^0b[01]+$/i,Ax=/^0o[0-7]+$/i,Ox=parseInt;function ht(e){if(typeof e=="number")return e;if(et(e))return n_;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=t_(e);var n=wx.test(e);return n||Ax.test(e)?Ox(e.slice(2),n?2:8):mx.test(e)?n_:+e}var r_=1/0,Ex=17976931348623157e292;function fn(e){if(!e)return e===0?e:0;if(e=ht(e),e===r_||e===-r_){var t=e<0?-1:1;return t*Ex}return e===e?e:0}function D(e){var t=fn(e),n=t%1;return t===t?n?t-n:t:0}var Sx="Expected a function";function i_(e,t){if(typeof t!="function")throw new TypeError(Sx);return e=D(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ve(e){return e}var xx="[object AsyncFunction]",Tx="[object Function]",Rx="[object GeneratorFunction]",Px="[object Proxy]";function cn(e){if(!oe(e))return!1;var t=ke(e);return t==Tx||t==Rx||t==xx||t==Px}var ba=we["__core-js_shared__"],s_=function(){var e=/[^.]+$/.exec(ba&&ba.keys&&ba.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Nx(e){return!!s_&&s_ in e}var Mx=Function.prototype,$x=Mx.toString;function Cr(e){if(e!=null){try{return $x.call(e)}catch{}try{return e+""}catch{}}return""}var Ix=/[\\^$.*+?()[\]{}|]/g,Dx=/^\[object .+?Constructor\]$/,Cx=Function.prototype,Lx=Object.prototype,jx=Cx.toString,Fx=Lx.hasOwnProperty,Bx=RegExp("^"+jx.call(Fx).replace(Ix,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o_(e){if(!oe(e)||Nx(e))return!1;var t=cn(e)?Bx:Dx;return t.test(Cr(e))}function zx(e,t){return e?.[t]}function Lr(e,t){var n=zx(e,t);return o_(n)?n:void 0}var Ns=Lr(we,"WeakMap"),ma=Ns&&new Ns,a_=ma?function(e,t){return ma.set(e,t),e}:Ve,u_=Object.create,Si=function(){function e(){}return function(t){if(!oe(t))return{};if(u_)return u_(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ms(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Si(e.prototype),r=e.apply(n,t);return oe(r)?r:n}}var Ux=1;function kx(e,t,n){var r=t&Ux,i=Ms(e);function s(){var o=this&&this!==we&&this instanceof s?i:e;return o.apply(r?n:this,arguments)}return s}function pt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Vx=Math.max;function f_(e,t,n,r){for(var i=-1,s=e.length,o=n.length,a=-1,u=t.length,f=Vx(s-o,0),c=Array(u+f),l=!r;++a<u;)c[a]=t[a];for(;++i<o;)(l||i<s)&&(c[n[i]]=e[i]);for(;f--;)c[a++]=e[i++];return c}var Wx=Math.max;function c_(e,t,n,r){for(var i=-1,s=e.length,o=-1,a=n.length,u=-1,f=t.length,c=Wx(s-a,0),l=Array(c+f),h=!r;++i<c;)l[i]=e[i];for(var d=i;++u<f;)l[d+u]=t[u];for(;++o<a;)(h||i<s)&&(l[d+n[o]]=e[i++]);return l}function qx(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function wa(){}var Gx=4294967295;function L(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Gx,this.__views__=[]}L.prototype=Si(wa.prototype),L.prototype.constructor=L;function Aa(){}var cc=ma?function(e){return ma.get(e)}:Aa,xi={},Hx=Object.prototype,Kx=Hx.hasOwnProperty;function Oa(e){for(var t=e.name+"",n=xi[t],r=Kx.call(xi,t)?n.length:0;r--;){var i=n[r],s=i.func;if(s==null||s==e)return i.name}return t}function Mt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Mt.prototype=Si(wa.prototype),Mt.prototype.constructor=Mt;function tt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function l_(e){if(e instanceof L)return e.clone();var t=new Mt(e.__wrapped__,e.__chain__);return t.__actions__=tt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Yx=Object.prototype,Xx=Yx.hasOwnProperty;function p(e){if(ae(e)&&!I(e)&&!(e instanceof L)){if(e instanceof Mt)return e;if(Xx.call(e,"__wrapped__"))return l_(e)}return new Mt(e)}p.prototype=wa.prototype,p.prototype.constructor=p;function lc(e){var t=Oa(e),n=p[t];if(typeof n!="function"||!(t in L.prototype))return!1;if(e===n)return!0;var r=cc(n);return!!r&&e===r[0]}var Jx=800,Zx=16,Qx=Date.now;function h_(e){var t=0,n=0;return function(){var r=Qx(),i=Zx-(r-n);if(n=r,i>0){if(++t>=Jx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var p_=h_(a_),eT=/\{\n\/\* \[wrapped with (.+)\] \*/,tT=/,? & /;function nT(e){var t=e.match(eT);return t?t[1].split(tT):[]}var rT=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function iT(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(rT,`{
|
|
2
2
|
/* [wrapped with `+t+`] */
|
|
3
|
-
`)}function ha(e){return function(){return e}}var pa=function(){try{var e=Pr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ox=pa?function(e,t){return pa(e,"toString",{configurable:!0,enumerable:!1,value:ha(t),writable:!0})}:Ve,Kf=Bd(Ox);function Nt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function da(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function Ud(e){return e!==e}function Ex(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function mi(e,t,n){return t===t?Ex(e,t,n):da(e,Ud,n)}function _a(e,t){var n=e==null?0:e.length;return!!n&&mi(e,t,0)>-1}var Sx=1,xx=2,Tx=8,Rx=16,Px=32,Nx=64,$x=128,Mx=256,Ix=512,Dx=[["ary",$x],["bind",Sx],["bindKey",xx],["curry",Tx],["curryRight",Rx],["flip",Ix],["partial",Px],["partialRight",Nx],["rearg",Mx]];function Cx(e,t){return Nt(Dx,function(n){var r="_."+n[0];t&n[1]&&!_a(e,r)&&e.push(r)}),e.sort()}function Vd(e,t,n){var r=t+"";return Kf(e,Ax(r,Cx(mx(r),n)))}var Lx=4,jx=8,Wd=32,kd=64;function qd(e,t,n,r,i,s,o,a,u,f){var c=t&jx,l=c?o:void 0,h=c?void 0:o,d=c?s:void 0,_=c?void 0:s;t|=c?Wd:kd,t&=~(c?kd:Wd),t&Lx||(t&=-4);var v=[e,t,i,d,l,_,h,a,u,f],g=n.apply(void 0,v);return Hf(e)&&zd(g,v),g.placeholder=r,Vd(g,e,t)}function wi(e){var t=e;return t.placeholder}var Fx=9007199254740991,Bx=/^(?:0|[1-9]\d*)$/;function $n(e,t){var n=typeof e;return t=t??Fx,!!t&&(n=="number"||n!="symbol"&&Bx.test(e))&&e>-1&&e%1==0&&e<t}var zx=Math.min;function Ux(e,t){for(var n=e.length,r=zx(t.length,n),i=et(e);r--;){var s=t[r];e[r]=$n(s,n)?i[s]:void 0}return e}var Gd="__lodash_placeholder__";function Qn(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n];(o===t||o===Gd)&&(e[n]=Gd,s[i++]=n)}return s}var Vx=1,Wx=2,kx=8,qx=16,Gx=128,Hx=512;function va(e,t,n,r,i,s,o,a,u,f){var c=t&Gx,l=t&Vx,h=t&Wx,d=t&(kx|qx),_=t&Hx,v=h?void 0:Es(e);function g(){for(var y=arguments.length,b=Array(y),w=y;w--;)b[w]=arguments[w];if(d)var m=wi(g),A=fx(b,m);if(r&&(b=Ld(b,r,i,d)),s&&(b=jd(b,s,o,d)),y-=A,d&&y<f){var S=Qn(b,m);return qd(e,t,va,g.placeholder,n,b,S,a,u,f-y)}var P=l?n:this,V=h?P[e]:e;return y=b.length,a?b=Ux(b,a):_&&y>1&&b.reverse(),c&&u<y&&(b.length=u),this&&this!==we&&this instanceof g&&(V=v||Es(V)),V.apply(P,b)}return g}function Kx(e,t,n){var r=Es(e);function i(){for(var s=arguments.length,o=Array(s),a=s,u=wi(i);a--;)o[a]=arguments[a];var f=s<3&&o[0]!==u&&o[s-1]!==u?[]:Qn(o,u);if(s-=f.length,s<n)return qd(e,t,va,i.placeholder,void 0,o,f,void 0,void 0,n-s);var c=this&&this!==we&&this instanceof i?r:e;return ht(c,this,o)}return i}var Yx=1;function Xx(e,t,n,r){var i=t&Yx,s=Es(e);function o(){for(var a=-1,u=arguments.length,f=-1,c=r.length,l=Array(c+u),h=this&&this!==we&&this instanceof o?s:e;++f<c;)l[f]=r[f];for(;u--;)l[f++]=arguments[++a];return ht(h,i?n:this,l)}return o}var Hd="__lodash_placeholder__",Yf=1,Jx=2,Zx=4,Kd=8,Ss=128,Yd=256,Qx=Math.min;function eT(e,t){var n=e[1],r=t[1],i=n|r,s=i<(Yf|Jx|Ss),o=r==Ss&&n==Kd||r==Ss&&n==Yd&&e[7].length<=t[8]||r==(Ss|Yd)&&t[7].length<=t[8]&&n==Kd;if(!(s||o))return e;r&Yf&&(e[2]=t[2],i|=n&Yf?0:Zx);var a=t[3];if(a){var u=e[3];e[3]=u?Ld(u,a,t[4]):a,e[4]=u?Qn(e[3],Hd):t[4]}return a=t[5],a&&(u=e[5],e[5]=u?jd(u,a,t[6]):a,e[6]=u?Qn(e[5],Hd):t[6]),a=t[7],a&&(e[7]=a),r&Ss&&(e[8]=e[8]==null?t[8]:Qx(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var tT="Expected a function",Xd=1,nT=2,Jd=8,Zd=16,Qd=32,rT=64,e_=Math.max;function Mn(e,t,n,r,i,s,o,a){var u=t&nT;if(!u&&typeof e!="function")throw new TypeError(tT);var f=r?r.length:0;if(f||(t&=-97,r=i=void 0),o=o===void 0?o:e_(D(o),0),a=a===void 0?a:D(a),f-=i?i.length:0,t&rT){var c=r,l=i;r=i=void 0}var h=u?void 0:Gf(e),d=[e,t,n,r,i,c,l,s,o,a];if(h&&eT(d,h),e=d[0],t=d[1],n=d[2],r=d[3],i=d[4],a=d[9]=d[9]===void 0?u?0:e.length:e_(d[9]-f,0),!a&&t&(Jd|Zd)&&(t&=-25),!t||t==Xd)var _=ox(e,t,n);else t==Jd||t==Zd?_=Kx(e,t,a):(t==Qd||t==(Xd|Qd))&&!i.length?_=Xx(e,t,n,r):_=va.apply(void 0,d);var v=h?Dd:zd;return Vd(v(_,d),e,t)}var iT=128;function Xf(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,Mn(e,iT,void 0,void 0,void 0,void 0,t)}function In(e,t,n){t=="__proto__"&&pa?pa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function $t(e,t){return e===t||e!==e&&t!==t}var sT=Object.prototype,oT=sT.hasOwnProperty;function xs(e,t,n){var r=e[t];(!(oT.call(e,t)&&$t(r,n))||n===void 0&&!(t in e))&&In(e,t,n)}function fn(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],u=r?r(n[a],e[a],a,n,e):void 0;u===void 0&&(u=e[a]),i?In(n,a,u):xs(n,a,u)}return n}var t_=Math.max;function n_(e,t,n){return t=t_(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=t_(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),ht(e,this,a)}}function C(e,t){return Kf(n_(e,t,Ve),e+"")}var aT=9007199254740991;function Ts(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=aT}function We(e){return e!=null&&Ts(e.length)&&!un(e)}function ke(e,t,n){if(!oe(n))return!1;var r=typeof t;return(r=="number"?We(n)&&$n(t,n.length):r=="string"&&t in n)?$t(n[t],e):!1}function Ai(e){return C(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&ke(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,s)}return t})}var uT=Object.prototype;function Rs(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||uT;return e===n}function Jf(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var fT="[object Arguments]";function r_(e){return ae(e)&&Ue(e)==fT}var i_=Object.prototype,cT=i_.hasOwnProperty,lT=i_.propertyIsEnumerable,er=r_(function(){return arguments}())?r_:function(e){return ae(e)&&cT.call(e,"callee")&&!lT.call(e,"callee")};function ga(){return!1}var s_=typeof x=="object"&&x&&!x.nodeType&&x,o_=s_&&typeof module=="object"&&module&&!module.nodeType&&module,hT=o_&&o_.exports===s_,a_=hT?we.Buffer:void 0,pT=a_?a_.isBuffer:void 0,Dn=pT||ga,dT="[object Arguments]",_T="[object Array]",vT="[object Boolean]",gT="[object Date]",yT="[object Error]",bT="[object Function]",mT="[object Map]",wT="[object Number]",AT="[object Object]",OT="[object RegExp]",ET="[object Set]",ST="[object String]",xT="[object WeakMap]",TT="[object ArrayBuffer]",RT="[object DataView]",PT="[object Float32Array]",NT="[object Float64Array]",$T="[object Int8Array]",MT="[object Int16Array]",IT="[object Int32Array]",DT="[object Uint8Array]",CT="[object Uint8ClampedArray]",LT="[object Uint16Array]",jT="[object Uint32Array]",ne={};ne[PT]=ne[NT]=ne[$T]=ne[MT]=ne[IT]=ne[DT]=ne[CT]=ne[LT]=ne[jT]=!0,ne[dT]=ne[_T]=ne[TT]=ne[vT]=ne[RT]=ne[gT]=ne[yT]=ne[bT]=ne[mT]=ne[wT]=ne[AT]=ne[OT]=ne[ET]=ne[ST]=ne[xT]=!1;function FT(e){return ae(e)&&Ts(e.length)&&!!ne[Ue(e)]}function pt(e){return function(t){return e(t)}}var u_=typeof x=="object"&&x&&!x.nodeType&&x,Ps=u_&&typeof module=="object"&&module&&!module.nodeType&&module,BT=Ps&&Ps.exports===u_,Zf=BT&&md.process,Mt=function(){try{var e=Ps&&Ps.require&&Ps.require("util").types;return e||Zf&&Zf.binding&&Zf.binding("util")}catch{}}(),f_=Mt&&Mt.isTypedArray,Nr=f_?pt(f_):FT,zT=Object.prototype,UT=zT.hasOwnProperty;function c_(e,t){var n=I(e),r=!n&&er(e),i=!n&&!r&&Dn(e),s=!n&&!r&&!i&&Nr(e),o=n||r||i||s,a=o?Jf(e.length,String):[],u=a.length;for(var f in e)(t||UT.call(e,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||$n(f,u)))&&a.push(f);return a}function l_(e,t){return function(n){return e(t(n))}}var VT=l_(Object.keys,Object),WT=Object.prototype,kT=WT.hasOwnProperty;function Qf(e){if(!Rs(e))return VT(e);var t=[];for(var n in Object(e))kT.call(e,n)&&n!="constructor"&&t.push(n);return t}function de(e){return We(e)?c_(e):Qf(e)}var qT=Object.prototype,GT=qT.hasOwnProperty,h_=Ai(function(e,t){if(Rs(t)||We(t)){fn(t,de(t),e);return}for(var n in t)GT.call(t,n)&&xs(e,n,t[n])});function HT(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var KT=Object.prototype,YT=KT.hasOwnProperty;function XT(e){if(!oe(e))return HT(e);var t=Rs(e),n=[];for(var r in e)r=="constructor"&&(t||!YT.call(e,r))||n.push(r);return n}function qe(e){return We(e)?c_(e,!0):XT(e)}var ec=Ai(function(e,t){fn(t,qe(t),e)}),Ns=Ai(function(e,t,n,r){fn(t,qe(t),e,r)}),p_=Ai(function(e,t,n,r){fn(t,de(t),e,r)}),JT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ZT=/^\w*$/;function tc(e,t){if(I(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Qe(e)?!0:ZT.test(e)||!JT.test(e)||t!=null&&e in Object(t)}var $s=Pr(Object,"create");function QT(){this.__data__=$s?$s(null):{},this.size=0}function eR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tR="__lodash_hash_undefined__",nR=Object.prototype,rR=nR.hasOwnProperty;function iR(e){var t=this.__data__;if($s){var n=t[e];return n===tR?void 0:n}return rR.call(t,e)?t[e]:void 0}var sR=Object.prototype,oR=sR.hasOwnProperty;function aR(e){var t=this.__data__;return $s?t[e]!==void 0:oR.call(t,e)}var uR="__lodash_hash_undefined__";function fR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$s&&t===void 0?uR:t,this}function $r(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$r.prototype.clear=QT,$r.prototype.delete=eR,$r.prototype.get=iR,$r.prototype.has=aR,$r.prototype.set=fR;function cR(){this.__data__=[],this.size=0}function ya(e,t){for(var n=e.length;n--;)if($t(e[n][0],t))return n;return-1}var lR=Array.prototype,hR=lR.splice;function pR(e){var t=this.__data__,n=ya(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():hR.call(t,n,1),--this.size,!0}function dR(e){var t=this.__data__,n=ya(t,e);return n<0?void 0:t[n][1]}function _R(e){return ya(this.__data__,e)>-1}function vR(e,t){var n=this.__data__,r=ya(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Cn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Cn.prototype.clear=cR,Cn.prototype.delete=pR,Cn.prototype.get=dR,Cn.prototype.has=_R,Cn.prototype.set=vR;var Ms=Pr(we,"Map");function gR(){this.size=0,this.__data__={hash:new $r,map:new(Ms||Cn),string:new $r}}function yR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ba(e,t){var n=e.__data__;return yR(t)?n[typeof t=="string"?"string":"hash"]:n.map}function bR(e){var t=ba(this,e).delete(e);return this.size-=t?1:0,t}function mR(e){return ba(this,e).get(e)}function wR(e){return ba(this,e).has(e)}function AR(e,t){var n=ba(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ln(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ln.prototype.clear=gR,Ln.prototype.delete=bR,Ln.prototype.get=mR,Ln.prototype.has=wR,Ln.prototype.set=AR;var OR="Expected a function";function Is(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(OR);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Is.Cache||Ln),n}Is.Cache=Ln;var ER=500;function SR(e){var t=Is(e,function(r){return n.size===ER&&n.clear(),r}),n=t.cache;return t}var xR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TR=/\\(\\)?/g,d_=SR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xR,function(n,r,i,s){t.push(i?s.replace(TR,"$1"):r||n)}),t});function W(e){return e==null?"":ct(e)}function tr(e,t){return I(e)?e:tc(e,t)?[e]:d_(W(e))}function cn(e){if(typeof e=="string"||Qe(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Mr(e,t){t=tr(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[cn(t[n++])];return n&&n==r?e:void 0}function ma(e,t,n){var r=e==null?void 0:Mr(e,t);return r===void 0?n:r}function nc(e,t){for(var n=-1,r=t.length,i=Array(r),s=e==null;++n<r;)i[n]=s?void 0:ma(e,t[n]);return i}function nr(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var __=Me?Me.isConcatSpreadable:void 0;function RR(e){return I(e)||er(e)||!!(__&&e&&e[__])}function Pe(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=RR),i||(i=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?Pe(a,t-1,n,r,i):nr(i,a):r||(i[i.length]=a)}return i}function rc(e){var t=e==null?0:e.length;return t?Pe(e,1):[]}function jn(e){return Kf(n_(e,void 0,rc),e+"")}var v_=jn(nc),wa=l_(Object.getPrototypeOf,Object),PR="[object Object]",NR=Function.prototype,$R=Object.prototype,g_=NR.toString,MR=$R.hasOwnProperty,IR=g_.call(Object);function Oi(e){if(!ae(e)||Ue(e)!=PR)return!1;var t=wa(e);if(t===null)return!0;var n=MR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&g_.call(n)==IR}var DR="[object DOMException]",CR="[object Error]";function Aa(e){if(!ae(e))return!1;var t=Ue(e);return t==CR||t==DR||typeof e.message=="string"&&typeof e.name=="string"&&!Oi(e)}var ic=C(function(e,t){try{return ht(e,void 0,t)}catch(n){return Aa(n)?n:new Error(n)}}),LR="Expected a function";function sc(e,t){var n;if(typeof t!="function")throw new TypeError(LR);return e=D(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var jR=1,FR=32,Ds=C(function(e,t,n){var r=jR;if(n.length){var i=Qn(n,wi(Ds));r|=FR}return Mn(e,r,t,n,i)});Ds.placeholder={};var y_=jn(function(e,t){return Nt(t,function(n){n=cn(n),In(e,n,Ds(e[n],e))}),e}),BR=1,zR=2,UR=32,Oa=C(function(e,t,n){var r=BR|zR;if(n.length){var i=Qn(n,wi(Oa));r|=UR}return Mn(t,r,e,n,i)});Oa.placeholder={};function It(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function rr(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:It(e,t,n)}var VR="\\ud800-\\udfff",WR="\\u0300-\\u036f",kR="\\ufe20-\\ufe2f",qR="\\u20d0-\\u20ff",GR=WR+kR+qR,HR="\\ufe0e\\ufe0f",KR="\\u200d",YR=RegExp("["+KR+VR+GR+HR+"]");function Ei(e){return YR.test(e)}function XR(e){return e.split("")}var b_="\\ud800-\\udfff",JR="\\u0300-\\u036f",ZR="\\ufe20-\\ufe2f",QR="\\u20d0-\\u20ff",e2=JR+ZR+QR,t2="\\ufe0e\\ufe0f",n2="["+b_+"]",oc="["+e2+"]",ac="\\ud83c[\\udffb-\\udfff]",r2="(?:"+oc+"|"+ac+")",m_="[^"+b_+"]",w_="(?:\\ud83c[\\udde6-\\uddff]){2}",A_="[\\ud800-\\udbff][\\udc00-\\udfff]",i2="\\u200d",O_=r2+"?",E_="["+t2+"]?",s2="(?:"+i2+"(?:"+[m_,w_,A_].join("|")+")"+E_+O_+")*",o2=E_+O_+s2,a2="(?:"+[m_+oc+"?",oc,w_,A_,n2].join("|")+")",u2=RegExp(ac+"(?="+ac+")|"+a2+o2,"g");function f2(e){return e.match(u2)||[]}function Ht(e){return Ei(e)?f2(e):XR(e)}function S_(e){return function(t){t=W(t);var n=Ei(t)?Ht(t):void 0,r=n?n[0]:t.charAt(0),i=n?rr(n,1).join(""):t.slice(1);return r[e]()+i}}var Ea=S_("toUpperCase");function uc(e){return Ea(W(e).toLowerCase())}function fc(e,t,n,r){var i=-1,s=e==null?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function cc(e){return function(t){return e?.[t]}}var c2={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},l2=cc(c2),h2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,p2="\\u0300-\\u036f",d2="\\ufe20-\\ufe2f",_2="\\u20d0-\\u20ff",v2=p2+d2+_2,g2="["+v2+"]",y2=RegExp(g2,"g");function lc(e){return e=W(e),e&&e.replace(h2,l2).replace(y2,"")}var b2=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function m2(e){return e.match(b2)||[]}var w2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function A2(e){return w2.test(e)}var x_="\\ud800-\\udfff",O2="\\u0300-\\u036f",E2="\\ufe20-\\ufe2f",S2="\\u20d0-\\u20ff",x2=O2+E2+S2,T_="\\u2700-\\u27bf",R_="a-z\\xdf-\\xf6\\xf8-\\xff",T2="\\xac\\xb1\\xd7\\xf7",R2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",P2="\\u2000-\\u206f",N2=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",P_="A-Z\\xc0-\\xd6\\xd8-\\xde",$2="\\ufe0e\\ufe0f",N_=T2+R2+P2+N2,$_="['’]",M_="["+N_+"]",M2="["+x2+"]",I_="\\d+",I2="["+T_+"]",D_="["+R_+"]",C_="[^"+x_+N_+I_+T_+R_+P_+"]",D2="\\ud83c[\\udffb-\\udfff]",C2="(?:"+M2+"|"+D2+")",L2="[^"+x_+"]",L_="(?:\\ud83c[\\udde6-\\uddff]){2}",j_="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+P_+"]",j2="\\u200d",F_="(?:"+D_+"|"+C_+")",F2="(?:"+Si+"|"+C_+")",B_="(?:"+$_+"(?:d|ll|m|re|s|t|ve))?",z_="(?:"+$_+"(?:D|LL|M|RE|S|T|VE))?",U_=C2+"?",V_="["+$2+"]?",B2="(?:"+j2+"(?:"+[L2,L_,j_].join("|")+")"+V_+U_+")*",z2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",U2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",V2=V_+U_+B2,W2="(?:"+[I2,L_,j_].join("|")+")"+V2,k2=RegExp([Si+"?"+D_+"+"+B_+"(?="+[M_,Si,"$"].join("|")+")",F2+"+"+z_+"(?="+[M_,Si+F_,"$"].join("|")+")",Si+"?"+F_+"+"+B_,Si+"+"+z_,U2,z2,I_,W2].join("|"),"g");function q2(e){return e.match(k2)||[]}function hc(e,t,n){return e=W(e),t=n?void 0:t,t===void 0?A2(e)?q2(e):m2(e):e.match(t)||[]}var G2="['’]",H2=RegExp(G2,"g");function xi(e){return function(t){return fc(hc(lc(t).replace(H2,"")),e,"")}}var W_=xi(function(e,t,n){return t=t.toLowerCase(),e+(n?uc(t):t)});function k_(){if(!arguments.length)return[];var e=arguments[0];return I(e)?e:[e]}var K2=we.isFinite,Y2=Math.min;function pc(e){var t=Math[e];return function(n,r){if(n=lt(n),r=r==null?0:Y2(D(r),292),r&&K2(n)){var i=(W(n)+"e").split("e"),s=t(i[0]+"e"+(+i[1]+r));return i=(W(s)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(n)}}var q_=pc("ceil");function dc(e){var t=p(e);return t.__chain__=!0,t}var X2=Math.ceil,J2=Math.max;function G_(e,t,n){(n?ke(e,t,n):t===void 0)?t=1:t=J2(D(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var i=0,s=0,o=Array(X2(r/t));i<r;)o[s++]=It(e,i,i+=t);return o}function Ir(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function H_(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=lt(n),n=n===n?n:0),t!==void 0&&(t=lt(t),t=t===t?t:0),Ir(lt(e),t,n)}function Z2(){this.__data__=new Cn,this.size=0}function Q2(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function eP(e){return this.__data__.get(e)}function tP(e){return this.__data__.has(e)}var nP=200;function rP(e,t){var n=this.__data__;if(n instanceof Cn){var r=n.__data__;if(!Ms||r.length<nP-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ln(r)}return n.set(e,t),this.size=n.size,this}function Kt(e){var t=this.__data__=new Cn(e);this.size=t.size}Kt.prototype.clear=Z2,Kt.prototype.delete=Q2,Kt.prototype.get=eP,Kt.prototype.has=tP,Kt.prototype.set=rP;function K_(e,t){return e&&fn(t,de(t),e)}function iP(e,t){return e&&fn(t,qe(t),e)}var Y_=typeof x=="object"&&x&&!x.nodeType&&x,X_=Y_&&typeof module=="object"&&module&&!module.nodeType&&module,sP=X_&&X_.exports===Y_,J_=sP?we.Buffer:void 0,Z_=J_?J_.allocUnsafe:void 0;function Q_(e,t){if(t)return e.slice();var n=e.length,r=Z_?Z_(n):new e.constructor(n);return e.copy(r),r}function ir(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function Sa(){return[]}var oP=Object.prototype,aP=oP.propertyIsEnumerable,ev=Object.getOwnPropertySymbols,_c=ev?function(e){return e==null?[]:(e=Object(e),ir(ev(e),function(t){return aP.call(e,t)}))}:Sa;function uP(e,t){return fn(e,_c(e),t)}var fP=Object.getOwnPropertySymbols,tv=fP?function(e){for(var t=[];e;)nr(t,_c(e)),e=wa(e);return t}:Sa;function cP(e,t){return fn(e,tv(e),t)}function nv(e,t,n){var r=t(e);return I(e)?r:nr(r,n(e))}function vc(e){return nv(e,de,_c)}function gc(e){return nv(e,qe,tv)}var yc=Pr(we,"DataView"),bc=Pr(we,"Promise"),Ti=Pr(we,"Set"),rv="[object Map]",lP="[object Object]",iv="[object Promise]",sv="[object Set]",ov="[object WeakMap]",av="[object DataView]",hP=Rr(yc),pP=Rr(Ms),dP=Rr(bc),_P=Rr(Ti),vP=Rr(Os),Dr=Ue;(yc&&Dr(new yc(new ArrayBuffer(1)))!=av||Ms&&Dr(new Ms)!=rv||bc&&Dr(bc.resolve())!=iv||Ti&&Dr(new Ti)!=sv||Os&&Dr(new Os)!=ov)&&(Dr=function(e){var t=Ue(e),n=t==lP?e.constructor:void 0,r=n?Rr(n):"";if(r)switch(r){case hP:return av;case pP:return rv;case dP:return iv;case _P:return sv;case vP:return ov}return t});const ln=Dr;var gP=Object.prototype,yP=gP.hasOwnProperty;function bP(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&yP.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var xa=we.Uint8Array;function mc(e){var t=new e.constructor(e.byteLength);return new xa(t).set(new xa(e)),t}function mP(e,t){var n=t?mc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var wP=/\w*$/;function AP(e){var t=new e.constructor(e.source,wP.exec(e));return t.lastIndex=e.lastIndex,t}var uv=Me?Me.prototype:void 0,fv=uv?uv.valueOf:void 0;function OP(e){return fv?Object(fv.call(e)):{}}function cv(e,t){var n=t?mc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var EP="[object Boolean]",SP="[object Date]",xP="[object Map]",TP="[object Number]",RP="[object RegExp]",PP="[object Set]",NP="[object String]",$P="[object Symbol]",MP="[object ArrayBuffer]",IP="[object DataView]",DP="[object Float32Array]",CP="[object Float64Array]",LP="[object Int8Array]",jP="[object Int16Array]",FP="[object Int32Array]",BP="[object Uint8Array]",zP="[object Uint8ClampedArray]",UP="[object Uint16Array]",VP="[object Uint32Array]";function WP(e,t,n){var r=e.constructor;switch(t){case MP:return mc(e);case EP:case SP:return new r(+e);case IP:return mP(e,n);case DP:case CP:case LP:case jP:case FP:case BP:case zP:case UP:case VP:return cv(e,n);case xP:return new r;case TP:case NP:return new r(e);case RP:return AP(e);case PP:return new r;case $P:return OP(e)}}function lv(e){return typeof e.constructor=="function"&&!Rs(e)?yi(wa(e)):{}}var kP="[object Map]";function qP(e){return ae(e)&&ln(e)==kP}var hv=Mt&&Mt.isMap,wc=hv?pt(hv):qP,GP="[object Set]";function HP(e){return ae(e)&&ln(e)==GP}var pv=Mt&&Mt.isSet,Ac=pv?pt(pv):HP,KP=1,YP=2,XP=4,dv="[object Arguments]",JP="[object Array]",ZP="[object Boolean]",QP="[object Date]",eN="[object Error]",_v="[object Function]",tN="[object GeneratorFunction]",nN="[object Map]",rN="[object Number]",vv="[object Object]",iN="[object RegExp]",sN="[object Set]",oN="[object String]",aN="[object Symbol]",uN="[object WeakMap]",fN="[object ArrayBuffer]",cN="[object DataView]",lN="[object Float32Array]",hN="[object Float64Array]",pN="[object Int8Array]",dN="[object Int16Array]",_N="[object Int32Array]",vN="[object Uint8Array]",gN="[object Uint8ClampedArray]",yN="[object Uint16Array]",bN="[object Uint32Array]",Z={};Z[dv]=Z[JP]=Z[fN]=Z[cN]=Z[ZP]=Z[QP]=Z[lN]=Z[hN]=Z[pN]=Z[dN]=Z[_N]=Z[nN]=Z[rN]=Z[vv]=Z[iN]=Z[sN]=Z[oN]=Z[aN]=Z[vN]=Z[gN]=Z[yN]=Z[bN]=!0,Z[eN]=Z[_v]=Z[uN]=!1;function Dt(e,t,n,r,i,s){var o,a=t&KP,u=t&YP,f=t&XP;if(n&&(o=i?n(e,r,i,s):n(e)),o!==void 0)return o;if(!oe(e))return e;var c=I(e);if(c){if(o=bP(e),!a)return et(e,o)}else{var l=ln(e),h=l==_v||l==tN;if(Dn(e))return Q_(e,a);if(l==vv||l==dv||h&&!i){if(o=u||h?{}:lv(e),!a)return u?cP(e,iP(o,e)):uP(e,K_(o,e))}else{if(!Z[l])return i?e:{};o=WP(e,l,a)}}s||(s=new Kt);var d=s.get(e);if(d)return d;s.set(e,o),Ac(e)?e.forEach(function(g){o.add(Dt(g,t,n,g,e,s))}):wc(e)&&e.forEach(function(g,y){o.set(y,Dt(g,t,n,y,e,s))});var _=f?u?gc:vc:u?qe:de,v=c?void 0:_(e);return Nt(v||e,function(g,y){v&&(y=g,g=e[y]),xs(o,y,Dt(g,t,n,y,e,s))}),o}var mN=4;function gv(e){return Dt(e,mN)}var wN=1,AN=4;function Ta(e){return Dt(e,wN|AN)}var ON=1,EN=4;function yv(e,t){return t=typeof t=="function"?t:void 0,Dt(e,ON|EN,t)}var SN=4;function bv(e,t){return t=typeof t=="function"?t:void 0,Dt(e,SN,t)}function Oc(){return new Pt(this.value(),this.__chain__)}function mv(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var s=e[t];s&&(i[r++]=s)}return i}function wv(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return nr(I(n)?et(n):[n],Pe(t,1))}var xN="__lodash_hash_undefined__";function TN(e){return this.__data__.set(e,xN),this}function RN(e){return this.__data__.has(e)}function Cr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ln;++t<n;)this.add(e[t])}Cr.prototype.add=Cr.prototype.push=TN,Cr.prototype.has=RN;function Ec(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Cs(e,t){return e.has(t)}var PN=1,NN=2;function Av(e,t,n,r,i,s){var o=n&PN,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var f=s.get(e),c=s.get(t);if(f&&c)return f==t&&c==e;var l=-1,h=!0,d=n&NN?new Cr:void 0;for(s.set(e,t),s.set(t,e);++l<a;){var _=e[l],v=t[l];if(r)var g=o?r(v,_,l,t,e,s):r(_,v,l,e,t,s);if(g!==void 0){if(g)continue;h=!1;break}if(d){if(!Ec(t,function(y,b){if(!Cs(d,b)&&(_===y||i(_,y,n,r,s)))return d.push(b)})){h=!1;break}}else if(!(_===v||i(_,v,n,r,s))){h=!1;break}}return s.delete(e),s.delete(t),h}function Sc(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Ra(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var $N=1,MN=2,IN="[object Boolean]",DN="[object Date]",CN="[object Error]",LN="[object Map]",jN="[object Number]",FN="[object RegExp]",BN="[object Set]",zN="[object String]",UN="[object Symbol]",VN="[object ArrayBuffer]",WN="[object DataView]",Ov=Me?Me.prototype:void 0,xc=Ov?Ov.valueOf:void 0;function kN(e,t,n,r,i,s,o){switch(n){case WN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case VN:return!(e.byteLength!=t.byteLength||!s(new xa(e),new xa(t)));case IN:case DN:case jN:return $t(+e,+t);case CN:return e.name==t.name&&e.message==t.message;case FN:case zN:return e==t+"";case LN:var a=Sc;case BN:var u=r&$N;if(a||(a=Ra),e.size!=t.size&&!u)return!1;var f=o.get(e);if(f)return f==t;r|=MN,o.set(e,t);var c=Av(a(e),a(t),r,i,s,o);return o.delete(e),c;case UN:if(xc)return xc.call(e)==xc.call(t)}return!1}var qN=1,GN=Object.prototype,HN=GN.hasOwnProperty;function KN(e,t,n,r,i,s){var o=n&qN,a=vc(e),u=a.length,f=vc(t),c=f.length;if(u!=c&&!o)return!1;for(var l=u;l--;){var h=a[l];if(!(o?h in t:HN.call(t,h)))return!1}var d=s.get(e),_=s.get(t);if(d&&_)return d==t&&_==e;var v=!0;s.set(e,t),s.set(t,e);for(var g=o;++l<u;){h=a[l];var y=e[h],b=t[h];if(r)var w=o?r(b,y,h,t,e,s):r(y,b,h,e,t,s);if(!(w===void 0?y===b||i(y,b,n,r,s):w)){v=!1;break}g||(g=h=="constructor")}if(v&&!g){var m=e.constructor,A=t.constructor;m!=A&&"constructor"in e&&"constructor"in t&&!(typeof m=="function"&&m instanceof m&&typeof A=="function"&&A instanceof A)&&(v=!1)}return s.delete(e),s.delete(t),v}var YN=1,Ev="[object Arguments]",Sv="[object Array]",Pa="[object Object]",XN=Object.prototype,xv=XN.hasOwnProperty;function JN(e,t,n,r,i,s){var o=I(e),a=I(t),u=o?Sv:ln(e),f=a?Sv:ln(t);u=u==Ev?Pa:u,f=f==Ev?Pa:f;var c=u==Pa,l=f==Pa,h=u==f;if(h&&Dn(e)){if(!Dn(t))return!1;o=!0,c=!1}if(h&&!c)return s||(s=new Kt),o||Nr(e)?Av(e,t,n,r,i,s):kN(e,t,u,n,r,i,s);if(!(n&YN)){var d=c&&xv.call(e,"__wrapped__"),_=l&&xv.call(t,"__wrapped__");if(d||_){var v=d?e.value():e,g=_?t.value():t;return s||(s=new Kt),i(v,g,n,r,s)}}return h?(s||(s=new Kt),KN(e,t,n,r,i,s)):!1}function Ls(e,t,n,r,i){return e===t?!0:e==null||t==null||!ae(e)&&!ae(t)?e!==e&&t!==t:JN(e,t,n,r,Ls,i)}var ZN=1,QN=2;function Tc(e,t,n,r){var i=n.length,s=i,o=!r;if(e==null)return!s;for(e=Object(e);i--;){var a=n[i];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<s;){a=n[i];var u=a[0],f=e[u],c=a[1];if(o&&a[2]){if(f===void 0&&!(u in e))return!1}else{var l=new Kt;if(r)var h=r(f,c,u,e,t,l);if(!(h===void 0?Ls(c,f,ZN|QN,r,l):h))return!1}}return!0}function Tv(e){return e===e&&!oe(e)}function Rc(e){for(var t=de(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Tv(i)]}return t}function Rv(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Pv(e){var t=Rc(e);return t.length==1&&t[0][2]?Rv(t[0][0],t[0][1]):function(n){return n===e||Tc(n,e,t)}}function e$(e,t){return e!=null&&t in Object(e)}function Nv(e,t,n){t=tr(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var o=cn(t[r]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&Ts(i)&&$n(o,i)&&(I(e)||er(e)))}function Na(e,t){return e!=null&&Nv(e,t,e$)}var t$=1,n$=2;function $v(e,t){return tc(e)&&Tv(t)?Rv(cn(e),t):function(n){var r=ma(n,e);return r===void 0&&r===t?Na(n,e):Ls(t,r,t$|n$)}}function Pc(e){return function(t){return t?.[e]}}function r$(e){return function(t){return Mr(t,e)}}function Nc(e){return tc(e)?Pc(cn(e)):r$(e)}function M(e){return typeof e=="function"?e:e==null?Ve:typeof e=="object"?I(e)?$v(e[0],e[1]):Pv(e):Nc(e)}var i$="Expected a function";function Mv(e){var t=e==null?0:e.length,n=M;return e=t?se(e,function(r){if(typeof r[1]!="function")throw new TypeError(i$);return[n(r[0]),r[1]]}):[],C(function(r){for(var i=-1;++i<t;){var s=e[i];if(ht(s[0],this,r))return ht(s[1],this,r)}})}function Iv(e,t,n){var r=n.length;if(e==null)return!r;for(e=Object(e);r--;){var i=n[r],s=t[i],o=e[i];if(o===void 0&&!(i in e)||!s(o))return!1}return!0}function s$(e){var t=de(e);return function(n){return Iv(n,e,t)}}var o$=1;function Dv(e){return s$(Dt(e,o$))}function Cv(e,t){return t==null||Iv(e,t,de(t))}function a$(e,t,n,r){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r}function Lv(e){return function(t,n,r){for(var i=-1,s=Object(t),o=r(t),a=o.length;a--;){var u=o[e?a:++i];if(n(s[u],u,s)===!1)break}return t}}var $c=Lv();function hn(e,t){return e&&$c(e,t,de)}function jv(e,t){return function(n,r){if(n==null)return n;if(!We(n))return e(n,r);for(var i=n.length,s=t?i:-1,o=Object(n);(t?s--:++s<i)&&r(o[s],s,o)!==!1;);return n}}var sr=jv(hn);function u$(e,t,n,r){return sr(e,function(i,s,o){t(r,i,n(i),o)}),r}function $a(e,t){return function(n,r){var i=I(n)?a$:u$,s=t?t():{};return i(n,e,M(r),s)}}var f$=Object.prototype,c$=f$.hasOwnProperty,Fv=$a(function(e,t,n){c$.call(e,n)?++e[n]:In(e,n,1)});function Bv(e,t){var n=yi(e);return t==null?n:K_(n,t)}var l$=8;function Ma(e,t,n){t=n?void 0:t;var r=Mn(e,l$,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=Ma.placeholder,r}Ma.placeholder={};var h$=16;function Ia(e,t,n){t=n?void 0:t;var r=Mn(e,h$,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=Ia.placeholder,r}Ia.placeholder={};var js=function(){return we.Date.now()},p$="Expected a function",d$=Math.max,_$=Math.min;function Mc(e,t,n){var r,i,s,o,a,u,f=0,c=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(p$);t=lt(t)||0,oe(n)&&(c=!!n.leading,l="maxWait"in n,s=l?d$(lt(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h);function d(S){var P=r,V=i;return r=i=void 0,f=S,o=e.apply(V,P),o}function _(S){return f=S,a=setTimeout(y,t),c?d(S):o}function v(S){var P=S-u,V=S-f,Yn=t-P;return l?_$(Yn,s-V):Yn}function g(S){var P=S-u,V=S-f;return u===void 0||P>=t||P<0||l&&V>=s}function y(){var S=js();if(g(S))return b(S);a=setTimeout(y,v(S))}function b(S){return a=void 0,h&&r?d(S):(r=i=void 0,o)}function w(){a!==void 0&&clearTimeout(a),f=0,r=u=i=a=void 0}function m(){return a===void 0?o:b(js())}function A(){var S=js(),P=g(S);if(r=arguments,i=this,u=S,P){if(a===void 0)return _(u);if(l)return clearTimeout(a),a=setTimeout(y,t),d(u)}return a===void 0&&(a=setTimeout(y,t)),o}return A.cancel=w,A.flush=m,A}function zv(e,t){return e==null||e!==e?t:e}var Uv=Object.prototype,v$=Uv.hasOwnProperty,Vv=C(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&ke(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],o=qe(s),a=-1,u=o.length;++a<u;){var f=o[a],c=e[f];(c===void 0||$t(c,Uv[f])&&!v$.call(e,f))&&(e[f]=s[f])}return e});function Ic(e,t,n){(n!==void 0&&!$t(e[t],n)||n===void 0&&!(t in e))&&In(e,t,n)}function fe(e){return ae(e)&&We(e)}function Dc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Cc(e){return fn(e,qe(e))}function g$(e,t,n,r,i,s,o){var a=Dc(e,n),u=Dc(t,n),f=o.get(u);if(f){Ic(e,n,f);return}var c=s?s(a,u,n+"",e,t,o):void 0,l=c===void 0;if(l){var h=I(u),d=!h&&Dn(u),_=!h&&!d&&Nr(u);c=u,h||d||_?I(a)?c=a:fe(a)?c=et(a):d?(l=!1,c=Q_(u,!0)):_?(l=!1,c=cv(u,!0)):c=[]:Oi(u)||er(u)?(c=a,er(a)?c=Cc(a):(!oe(a)||un(a))&&(c=lv(u))):l=!1}l&&(o.set(u,c),i(c,u,r,s,o),o.delete(u)),Ic(e,n,c)}function Da(e,t,n,r,i){e!==t&&$c(t,function(s,o){if(i||(i=new Kt),oe(s))g$(e,t,o,n,Da,r,i);else{var a=r?r(Dc(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),Ic(e,o,a)}},qe)}function Wv(e,t,n,r,i,s){return oe(e)&&oe(t)&&(s.set(t,e),Da(e,t,void 0,Wv,s),s.delete(t)),e}var Lc=Ai(function(e,t,n,r){Da(e,t,n,r)}),kv=C(function(e){return e.push(void 0,Wv),ht(Lc,void 0,e)}),y$="Expected a function";function qv(e,t,n){if(typeof e!="function")throw new TypeError(y$);return setTimeout(function(){e.apply(void 0,n)},t)}var Gv=C(function(e,t){return qv(e,1,t)}),Hv=C(function(e,t,n){return qv(e,lt(t)||0,n)});function jc(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var b$=200;function Fs(e,t,n,r){var i=-1,s=_a,o=!0,a=e.length,u=[],f=t.length;if(!a)return u;n&&(t=se(t,pt(n))),r?(s=jc,o=!1):t.length>=b$&&(s=Cs,o=!1,t=new Cr(t));e:for(;++i<a;){var c=e[i],l=n==null?c:n(c);if(c=r||c!==0?c:0,o&&l===l){for(var h=f;h--;)if(t[h]===l)continue e;u.push(c)}else s(t,l,r)||u.push(c)}return u}var Kv=C(function(e,t){return fe(e)?Fs(e,Pe(t,1,fe,!0)):[]});function dt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Yv=C(function(e,t){var n=dt(t);return fe(n)&&(n=void 0),fe(e)?Fs(e,Pe(t,1,fe,!0),M(n)):[]}),Xv=C(function(e,t){var n=dt(t);return fe(n)&&(n=void 0),fe(e)?Fs(e,Pe(t,1,fe,!0),void 0,n):[]}),Jv=oa(function(e,t){return e/t},1);function Zv(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:D(t),It(e,t<0?0:t,r)):[]}function Qv(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:D(t),t=r-t,It(e,0,t<0?0:t)):[]}function Ca(e,t,n,r){for(var i=e.length,s=r?i:-1;(r?s--:++s<i)&&t(e[s],s,e););return n?It(e,r?0:s,r?s+1:i):It(e,r?s+1:0,r?i:s)}function eg(e,t){return e&&e.length?Ca(e,M(t),!0,!0):[]}function tg(e,t){return e&&e.length?Ca(e,M(t),!0):[]}function pn(e){return typeof e=="function"?e:Ve}function Fc(e,t){var n=I(e)?Nt:sr;return n(e,pn(t))}function m$(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}var ng=Lv(!0);function Bc(e,t){return e&&ng(e,t,de)}var rg=jv(Bc,!0);function zc(e,t){var n=I(e)?m$:rg;return n(e,pn(t))}function ig(e,t,n){e=W(e),t=ct(t);var r=e.length;n=n===void 0?r:Ir(D(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function w$(e,t){return se(t,function(n){return[n,e[n]]})}function A$(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var O$="[object Map]",E$="[object Set]";function sg(e){return function(t){var n=ln(t);return n==O$?Sc(t):n==E$?A$(t):w$(t,e(t))}}var Uc=sg(de),Vc=sg(qe),S$={"&":"&","<":"<",">":">",'"':""","'":"'"},x$=cc(S$),og=/[&<>"']/g,T$=RegExp(og.source);function Wc(e){return e=W(e),e&&T$.test(e)?e.replace(og,x$):e}var ag=/[\\^$.*+?()[\]{}|]/g,R$=RegExp(ag.source);function ug(e){return e=W(e),e&&R$.test(e)?e.replace(ag,"\\$&"):e}function fg(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function P$(e,t){var n=!0;return sr(e,function(r,i,s){return n=!!t(r,i,s),n}),n}function cg(e,t,n){var r=I(e)?fg:P$;return n&&ke(e,t,n)&&(t=void 0),r(e,M(t))}var N$=4294967295;function kc(e){return e?Ir(D(e),0,N$):0}function $$(e,t,n,r){var i=e.length;for(n=D(n),n<0&&(n=-n>i?0:i+n),r=r===void 0||r>i?i:D(r),r<0&&(r+=i),r=n>r?0:kc(r);n<r;)e[n++]=t;return e}function lg(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&ke(e,t,n)&&(n=0,r=i),$$(e,t,n,r)):[]}function hg(e,t){var n=[];return sr(e,function(r,i,s){t(r,i,s)&&n.push(r)}),n}function pg(e,t){var n=I(e)?ir:hg;return n(e,M(t))}function dg(e){return function(t,n,r){var i=Object(t);if(!We(t)){var s=M(n);t=de(t),n=function(a){return s(i[a],a,i)}}var o=e(t,n,r);return o>-1?i[s?t[o]:o]:void 0}}var M$=Math.max;function qc(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:D(n);return i<0&&(i=M$(r+i,0)),da(e,M(t),i)}var _g=dg(qc);function vg(e,t,n){var r;return n(e,function(i,s,o){if(t(i,s,o))return r=s,!1}),r}function gg(e,t){return vg(e,M(t),hn)}var I$=Math.max,D$=Math.min;function Gc(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r-1;return n!==void 0&&(i=D(n),i=n<0?I$(r+i,0):D$(i,r-1)),da(e,M(t),i,!0)}var yg=dg(Gc);function bg(e,t){return vg(e,M(t),Bc)}function Hc(e){return e&&e.length?e[0]:void 0}function mg(e,t){var n=-1,r=We(e)?Array(e.length):[];return sr(e,function(i,s,o){r[++n]=t(i,s,o)}),r}function Bs(e,t){var n=I(e)?se:mg;return n(e,M(t))}function wg(e,t){return Pe(Bs(e,t),1)}var C$=1/0;function Ag(e,t){return Pe(Bs(e,t),C$)}function Og(e,t,n){return n=n===void 0?1:D(n),Pe(Bs(e,t),n)}var L$=1/0;function Eg(e){var t=e==null?0:e.length;return t?Pe(e,L$):[]}function Sg(e,t){var n=e==null?0:e.length;return n?(t=t===void 0?1:D(t),Pe(e,t)):[]}var j$=512;function xg(e){return Mn(e,j$)}var Tg=pc("floor"),F$="Expected a function",B$=8,z$=32,U$=128,V$=256;function Rg(e){return jn(function(t){var n=t.length,r=n,i=Pt.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if(typeof s!="function")throw new TypeError(F$);if(i&&!o&&la(s)=="wrapper")var o=new Pt([],!0)}for(r=o?r:n;++r<n;){s=t[r];var a=la(s),u=a=="wrapper"?Gf(s):void 0;u&&Hf(u[0])&&u[1]==(U$|B$|z$|V$)&&!u[4].length&&u[9]==1?o=o[la(u[0])].apply(o,u[3]):o=s.length==1&&Hf(s)?o[a]():o.thru(s)}return function(){var f=arguments,c=f[0];if(o&&f.length==1&&I(c))return o.plant(c).value();for(var l=0,h=n?t[l].apply(this,f):c;++l<n;)h=t[l].call(this,h);return h}})}var Pg=Rg(),Ng=Rg(!0);function $g(e,t){return e==null?e:$c(e,pn(t),qe)}function Mg(e,t){return e==null?e:ng(e,pn(t),qe)}function Ig(e,t){return e&&hn(e,pn(t))}function Dg(e,t){return e&&Bc(e,pn(t))}function Cg(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function La(e,t){return ir(t,function(n){return un(e[n])})}function Lg(e){return e==null?[]:La(e,de(e))}function jg(e){return e==null?[]:La(e,qe(e))}var W$=Object.prototype,k$=W$.hasOwnProperty,Fg=$a(function(e,t,n){k$.call(e,n)?e[n].push(t):In(e,n,[t])});function Kc(e,t){return e>t}function ja(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=lt(t),n=lt(n)),e(t,n)}}var Bg=ja(Kc),zg=ja(function(e,t){return e>=t}),q$=Object.prototype,G$=q$.hasOwnProperty;function H$(e,t){return e!=null&&G$.call(e,t)}function Ug(e,t){return e!=null&&Nv(e,t,H$)}var K$=Math.max,Y$=Math.min;function X$(e,t,n){return e>=Y$(t,n)&&e<K$(t,n)}function Vg(e,t,n){return t=an(t),n===void 0?(n=t,t=0):n=an(n),e=lt(e),X$(e,t,n)}var J$="[object String]";function zs(e){return typeof e=="string"||!I(e)&&ae(e)&&Ue(e)==J$}function Yc(e,t){return se(t,function(n){return e[n]})}function Lr(e){return e==null?[]:Yc(e,de(e))}var Z$=Math.max;function Wg(e,t,n,r){e=We(e)?e:Lr(e),n=n&&!r?D(n):0;var i=e.length;return n<0&&(n=Z$(i+n,0)),zs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&mi(e,t,n)>-1}var Q$=Math.max;function kg(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:D(n);return i<0&&(i=Q$(r+i,0)),mi(e,t,i)}function qg(e){var t=e==null?0:e.length;return t?It(e,0,-1):[]}var eM=Math.min;function Xc(e,t,n){for(var r=n?jc:_a,i=e[0].length,s=e.length,o=s,a=Array(s),u=1/0,f=[];o--;){var c=e[o];o&&t&&(c=se(c,pt(t))),u=eM(c.length,u),a[o]=!n&&(t||i>=120&&c.length>=120)?new Cr(o&&c):void 0}c=e[0];var l=-1,h=a[0];e:for(;++l<i&&f.length<u;){var d=c[l],_=t?t(d):d;if(d=n||d!==0?d:0,!(h?Cs(h,_):r(f,_,n))){for(o=s;--o;){var v=a[o];if(!(v?Cs(v,_):r(e[o],_,n)))continue e}h&&h.push(_),f.push(d)}}return f}function Jc(e){return fe(e)?e:[]}var Gg=C(function(e){var t=se(e,Jc);return t.length&&t[0]===e[0]?Xc(t):[]}),Hg=C(function(e){var t=dt(e),n=se(e,Jc);return t===dt(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?Xc(n,M(t)):[]}),Kg=C(function(e){var t=dt(e),n=se(e,Jc);return t=typeof t=="function"?t:void 0,t&&n.pop(),n.length&&n[0]===e[0]?Xc(n,void 0,t):[]});function tM(e,t,n,r){return hn(e,function(i,s,o){t(r,n(i),s,o)}),r}function Yg(e,t){return function(n,r){return tM(n,e,t(r),{})}}var nM=Object.prototype,rM=nM.toString,Xg=Yg(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=rM.call(t)),e[t]=n},ha(Ve)),Jg=Object.prototype,iM=Jg.hasOwnProperty,sM=Jg.toString,Zg=Yg(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=sM.call(t)),iM.call(e,t)?e[t].push(n):e[t]=[n]},M);function Qg(e,t){return t.length<2?e:Mr(e,It(t,0,-1))}function Us(e,t,n){t=tr(t,e),e=Qg(e,t);var r=e==null?e:e[cn(dt(t))];return r==null?void 0:ht(r,e,n)}var e0=C(Us),t0=C(function(e,t,n){var r=-1,i=typeof t=="function",s=We(e)?Array(e.length):[];return sr(e,function(o){s[++r]=i?ht(t,o,n):Us(o,t,n)}),s}),oM="[object ArrayBuffer]";function aM(e){return ae(e)&&Ue(e)==oM}var n0=Mt&&Mt.isArrayBuffer,r0=n0?pt(n0):aM,uM="[object Boolean]";function i0(e){return e===!0||e===!1||ae(e)&&Ue(e)==uM}var fM="[object Date]";function cM(e){return ae(e)&&Ue(e)==fM}var s0=Mt&&Mt.isDate,o0=s0?pt(s0):cM;function a0(e){return ae(e)&&e.nodeType===1&&!Oi(e)}var lM="[object Map]",hM="[object Set]",pM=Object.prototype,dM=pM.hasOwnProperty;function u0(e){if(e==null)return!0;if(We(e)&&(I(e)||typeof e=="string"||typeof e.splice=="function"||Dn(e)||Nr(e)||er(e)))return!e.length;var t=ln(e);if(t==lM||t==hM)return!e.size;if(Rs(e))return!Qf(e).length;for(var n in e)if(dM.call(e,n))return!1;return!0}function Ri(e,t){return Ls(e,t)}function f0(e,t,n){n=typeof n=="function"?n:void 0;var r=n?n(e,t):void 0;return r===void 0?Ls(e,t,void 0,n):!!r}var _M=we.isFinite;function c0(e){return typeof e=="number"&&_M(e)}function Zc(e){return typeof e=="number"&&e==D(e)}function l0(e,t){return e===t||Tc(e,t,Rc(t))}function h0(e,t,n){return n=typeof n=="function"?n:void 0,Tc(e,t,Rc(t),n)}var vM="[object Number]";function Qc(e){return typeof e=="number"||ae(e)&&Ue(e)==vM}function p0(e){return Qc(e)&&e!=+e}var gM=aa?un:ga,yM="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function d0(e){if(gM(e))throw new Error(yM);return Id(e)}function _0(e){return e==null}function v0(e){return e===null}var bM="[object RegExp]";function mM(e){return ae(e)&&Ue(e)==bM}var g0=Mt&&Mt.isRegExp,Fa=g0?pt(g0):mM,y0=9007199254740991;function b0(e){return Zc(e)&&e>=-y0&&e<=y0}function m0(e){return e===void 0}var wM="[object WeakMap]";function w0(e){return ae(e)&&ln(e)==wM}var AM="[object WeakSet]";function A0(e){return ae(e)&&Ue(e)==AM}var OM=1;function O0(e){return M(typeof e=="function"?e:Dt(e,OM))}var EM=Array.prototype,SM=EM.join;function E0(e,t){return e==null?"":SM.call(e,t)}var S0=xi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),x0=$a(function(e,t,n){In(e,n,t)});function xM(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}var TM=Math.max,RM=Math.min;function T0(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r;return n!==void 0&&(i=D(n),i=i<0?TM(r+i,0):RM(i,r-1)),t===t?xM(e,t,i):da(e,Ud,i,!0)}var R0=xi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),P0=S_("toLowerCase");function el(e,t){return e<t}var N0=ja(el),$0=ja(function(e,t){return e<=t});function M0(e,t){var n={};return t=M(t),hn(e,function(r,i,s){In(n,t(r,i,s),r)}),n}function I0(e,t){var n={};return t=M(t),hn(e,function(r,i,s){In(n,i,t(r,i,s))}),n}var PM=1;function D0(e){return Pv(Dt(e,PM))}var NM=1;function C0(e,t){return $v(e,Dt(t,NM))}function Ba(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],o=t(s);if(o!=null&&(a===void 0?o===o&&!Qe(o):n(o,a)))var a=o,u=s}return u}function L0(e){return e&&e.length?Ba(e,Ve,Kc):void 0}function j0(e,t){return e&&e.length?Ba(e,M(t),Kc):void 0}function tl(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==void 0&&(n=n===void 0?s:n+s)}return n}var $M=NaN;function F0(e,t){var n=e==null?0:e.length;return n?tl(e,t)/n:$M}function B0(e){return F0(e,Ve)}function z0(e,t){return F0(e,M(t))}var U0=Ai(function(e,t,n){Da(e,t,n)}),V0=C(function(e,t){return function(n){return Us(n,e,t)}}),W0=C(function(e,t){return function(n){return Us(e,n,t)}});function k0(e){return e&&e.length?Ba(e,Ve,el):void 0}function q0(e,t){return e&&e.length?Ba(e,M(t),el):void 0}function G0(e,t,n){var r=de(t),i=La(t,r),s=!(oe(n)&&"chain"in n)||!!n.chain,o=un(e);return Nt(i,function(a){var u=t[a];e[a]=u,o&&(e.prototype[a]=function(){var f=this.__chain__;if(s||f){var c=e(this.__wrapped__),l=c.__actions__=et(this.__actions__);return l.push({func:u,args:arguments,thisArg:e}),c.__chain__=f,c}return u.apply(e,nr([this.value()],arguments))})}),e}var H0=oa(function(e,t){return e*t},1),MM="Expected a function";function Vs(e){if(typeof e!="function")throw new TypeError(MM);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function IM(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var DM="[object Map]",CM="[object Set]",nl=Me?Me.iterator:void 0;function rl(e){if(!e)return[];if(We(e))return zs(e)?Ht(e):et(e);if(nl&&e[nl])return IM(e[nl]());var t=ln(e),n=t==DM?Sc:t==CM?Ra:Lr;return n(e)}function il(){this.__values__===void 0&&(this.__values__=rl(this.value()));var e=this.__index__>=this.__values__.length,t=e?void 0:this.__values__[this.__index__++];return{done:e,value:t}}function K0(e,t){var n=e.length;if(n)return t+=t<0?n:0,$n(t,n)?e[t]:void 0}function Y0(e,t){return e&&e.length?K0(e,D(t)):void 0}function X0(e){return e=D(e),C(function(t){return K0(t,e)})}function sl(e,t){return t=tr(t,e),e=Qg(e,t),e==null||delete e[cn(dt(t))]}function LM(e){return Oi(e)?void 0:e}var jM=1,FM=2,BM=4,J0=jn(function(e,t){var n={};if(e==null)return n;var r=!1;t=se(t,function(s){return s=tr(s,e),r||(r=s.length>1),s}),fn(e,gc(e),n),r&&(n=Dt(n,jM|FM|BM,LM));for(var i=t.length;i--;)sl(n,t[i]);return n});function Ws(e,t,n,r){if(!oe(e))return e;t=tr(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=cn(t[i]),f=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var c=a[u];f=r?r(c,u,a):void 0,f===void 0&&(f=oe(c)?c:$n(t[i+1])?[]:{})}xs(a,u,f),a=a[u]}return e}function Z0(e,t,n){for(var r=-1,i=t.length,s={};++r<i;){var o=t[r],a=Mr(e,o);n(a,o)&&Ws(s,tr(o,e),a)}return s}function ol(e,t){if(e==null)return{};var n=se(gc(e),function(r){return[r]});return t=M(t),Z0(e,n,function(r,i){return t(r,i[0])})}function Q0(e,t){return ol(e,Vs(M(t)))}function ey(e){return sc(2,e)}function zM(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function ty(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,s=Qe(e),o=t!==void 0,a=t===null,u=t===t,f=Qe(t);if(!a&&!f&&!s&&e>t||s&&o&&u&&!a&&!f||r&&o&&u||!n&&u||!i)return 1;if(!r&&!s&&!f&&e<t||f&&n&&i&&!r&&!s||a&&n&&i||!o&&i||!u)return-1}return 0}function UM(e,t,n){for(var r=-1,i=e.criteria,s=t.criteria,o=i.length,a=n.length;++r<o;){var u=ty(i[r],s[r]);if(u){if(r>=a)return u;var f=n[r];return u*(f=="desc"?-1:1)}}return e.index-t.index}function ny(e,t,n){t.length?t=se(t,function(s){return I(s)?function(o){return Mr(o,s.length===1?s[0]:s)}:s}):t=[Ve];var r=-1;t=se(t,pt(M));var i=mg(e,function(s,o,a){var u=se(t,function(f){return f(s)});return{criteria:u,index:++r,value:s}});return zM(i,function(s,o){return UM(s,o,n)})}function ry(e,t,n,r){return e==null?[]:(I(t)||(t=t==null?[]:[t]),n=r?void 0:n,I(n)||(n=n==null?[]:[n]),ny(e,t,n))}function al(e){return jn(function(t){return t=se(t,pt(M)),C(function(n){var r=this;return e(t,function(i){return ht(i,r,n)})})})}var iy=al(se),VM=C,WM=Math.min,sy=VM(function(e,t){t=t.length==1&&I(t[0])?se(t[0],pt(M)):se(Pe(t,1),pt(M));var n=t.length;return C(function(r){for(var i=-1,s=WM(r.length,n);++i<s;)r[i]=t[i].call(this,r[i]);return ht(e,this,r)})}),oy=al(fg),ay=al(Ec),kM=9007199254740991,qM=Math.floor;function ul(e,t){var n="";if(!e||t<1||t>kM)return n;do t%2&&(n+=e),t=qM(t/2),t&&(e+=e);while(t);return n}var GM=Pc("length"),uy="\\ud800-\\udfff",HM="\\u0300-\\u036f",KM="\\ufe20-\\ufe2f",YM="\\u20d0-\\u20ff",XM=HM+KM+YM,JM="\\ufe0e\\ufe0f",ZM="["+uy+"]",fl="["+XM+"]",cl="\\ud83c[\\udffb-\\udfff]",QM="(?:"+fl+"|"+cl+")",fy="[^"+uy+"]",cy="(?:\\ud83c[\\udde6-\\uddff]){2}",ly="[\\ud800-\\udbff][\\udc00-\\udfff]",eI="\\u200d",hy=QM+"?",py="["+JM+"]?",tI="(?:"+eI+"(?:"+[fy,cy,ly].join("|")+")"+py+hy+")*",nI=py+hy+tI,rI="(?:"+[fy+fl+"?",fl,cy,ly,ZM].join("|")+")",dy=RegExp(cl+"(?="+cl+")|"+rI+nI,"g");function iI(e){for(var t=dy.lastIndex=0;dy.test(e);)++t;return t}function Pi(e){return Ei(e)?iI(e):GM(e)}var sI=Math.ceil;function za(e,t){t=t===void 0?" ":ct(t);var n=t.length;if(n<2)return n?ul(t,e):t;var r=ul(t,sI(e/Pi(t)));return Ei(t)?rr(Ht(r),0,e).join(""):r.slice(0,e)}var oI=Math.ceil,aI=Math.floor;function _y(e,t,n){e=W(e),t=D(t);var r=t?Pi(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return za(aI(i),n)+e+za(oI(i),n)}function vy(e,t,n){e=W(e),t=D(t);var r=t?Pi(e):0;return t&&r<t?e+za(t-r,n):e}function gy(e,t,n){e=W(e),t=D(t);var r=t?Pi(e):0;return t&&r<t?za(t-r,n)+e:e}var uI=/^\s+/,fI=we.parseInt;function yy(e,t,n){return n||t==null?t=0:t&&(t=+t),fI(W(e).replace(uI,""),t||0)}var cI=32,ks=C(function(e,t){var n=Qn(t,wi(ks));return Mn(e,cI,void 0,t,n)});ks.placeholder={};var lI=64,Ua=C(function(e,t){var n=Qn(t,wi(Ua));return Mn(e,lI,void 0,t,n)});Ua.placeholder={};var by=$a(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function hI(e,t){return Z0(e,t,function(n,r){return Na(e,r)})}var my=jn(function(e,t){return e==null?{}:hI(e,t)});function ll(e){for(var t,n=this;n instanceof fa;){var r=Fd(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function wy(e){return function(t){return e==null?void 0:Mr(e,t)}}function pI(e,t,n,r){for(var i=n-1,s=e.length;++i<s;)if(r(e[i],t))return i;return-1}var dI=Array.prototype,Ay=dI.splice;function hl(e,t,n,r){var i=r?pI:mi,s=-1,o=t.length,a=e;for(e===t&&(t=et(t)),n&&(a=se(e,pt(n)));++s<o;)for(var u=0,f=t[s],c=n?n(f):f;(u=i(a,c,u,r))>-1;)a!==e&&Ay.call(a,u,1),Ay.call(e,u,1);return e}function pl(e,t){return e&&e.length&&t&&t.length?hl(e,t):e}var Oy=C(pl);function Ey(e,t,n){return e&&e.length&&t&&t.length?hl(e,t,M(n)):e}function Sy(e,t,n){return e&&e.length&&t&&t.length?hl(e,t,void 0,n):e}var _I=Array.prototype,vI=_I.splice;function xy(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==s){var s=i;$n(i)?vI.call(e,i,1):sl(e,i)}}return e}var Ty=jn(function(e,t){var n=e==null?0:e.length,r=nc(e,t);return xy(e,se(t,function(i){return $n(i,n)?+i:i}).sort(ty)),r}),gI=Math.floor,yI=Math.random;function dl(e,t){return e+gI(yI()*(t-e+1))}var bI=parseFloat,mI=Math.min,wI=Math.random;function Ry(e,t,n){if(n&&typeof n!="boolean"&&ke(e,t,n)&&(t=n=void 0),n===void 0&&(typeof t=="boolean"?(n=t,t=void 0):typeof e=="boolean"&&(n=e,e=void 0)),e===void 0&&t===void 0?(e=0,t=1):(e=an(e),t===void 0?(t=e,e=0):t=an(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=wI();return mI(e+i*(t-e+bI("1e-"+((i+"").length-1))),t)}return dl(e,t)}var AI=Math.ceil,OI=Math.max;function EI(e,t,n,r){for(var i=-1,s=OI(AI((t-e)/(n||1)),0),o=Array(s);s--;)o[r?s:++i]=e,e+=n;return o}function Py(e){return function(t,n,r){return r&&typeof r!="number"&&ke(t,n,r)&&(n=r=void 0),t=an(t),n===void 0?(n=t,t=0):n=an(n),r=r===void 0?t<n?1:-1:an(r),EI(t,n,r,e)}}var Ny=Py(),$y=Py(!0),SI=256,My=jn(function(e,t){return Mn(e,SI,void 0,void 0,void 0,t)});function Iy(e,t,n,r,i){return i(e,function(s,o,a){n=r?(r=!1,s):t(n,s,o,a)}),n}function Dy(e,t,n){var r=I(e)?fc:Iy,i=arguments.length<3;return r(e,M(t),n,i,sr)}function xI(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Cy(e,t,n){var r=I(e)?xI:Iy,i=arguments.length<3;return r(e,M(t),n,i,rg)}function Ly(e,t){var n=I(e)?ir:hg;return n(e,Vs(M(t)))}function jy(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],s=e.length;for(t=M(t);++r<s;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return xy(e,i),n}function Fy(e,t,n){return(n?ke(e,t,n):t===void 0)?t=1:t=D(t),ul(W(e),t)}function By(){var e=arguments,t=W(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var TI="Expected a function";function zy(e,t){if(typeof e!="function")throw new TypeError(TI);return t=t===void 0?t:D(t),C(e,t)}function Uy(e,t,n){t=tr(t,e);var r=-1,i=t.length;for(i||(i=1,e=void 0);++r<i;){var s=e?.[cn(t[r])];s===void 0&&(r=i,s=n),e=un(s)?s.call(e):s}return e}var RI=Array.prototype,PI=RI.reverse;function Va(e){return e==null?e:PI.call(e)}var Vy=pc("round");function Wy(e){var t=e.length;return t?e[dl(0,t-1)]:void 0}function NI(e){return Wy(Lr(e))}function ky(e){var t=I(e)?Wy:NI;return t(e)}function Wa(e,t){var n=-1,r=e.length,i=r-1;for(t=t===void 0?r:t;++n<t;){var s=dl(n,i),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}function $I(e,t){return Wa(et(e),Ir(t,0,e.length))}function MI(e,t){var n=Lr(e);return Wa(n,Ir(t,0,n.length))}function qy(e,t,n){(n?ke(e,t,n):t===void 0)?t=1:t=D(t);var r=I(e)?$I:MI;return r(e,t)}function Gy(e,t,n){return e==null?e:Ws(e,t,n)}function Hy(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:Ws(e,t,n,r)}function II(e){return Wa(et(e))}function DI(e){return Wa(Lr(e))}function Ky(e){var t=I(e)?II:DI;return t(e)}var CI="[object Map]",LI="[object Set]";function Yy(e){if(e==null)return 0;if(We(e))return zs(e)?Pi(e):e.length;var t=ln(e);return t==CI||t==LI?e.size:Qf(e).length}function Xy(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&ke(e,t,n)?(t=0,n=r):(t=t==null?0:D(t),n=n===void 0?r:D(n)),It(e,t,n)):[]}var Jy=xi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function jI(e,t){var n;return sr(e,function(r,i,s){return n=t(r,i,s),!n}),!!n}function Zy(e,t,n){var r=I(e)?Ec:jI;return n&&ke(e,t,n)&&(t=void 0),r(e,M(t))}var Qy=C(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ke(e,t[0],t[1])?t=[]:n>2&&ke(t[0],t[1],t[2])&&(t=[t[0]]),ny(e,Pe(t,1),[])}),FI=4294967295,BI=FI-1,zI=Math.floor,UI=Math.min;function _l(e,t,n,r){var i=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var o=t!==t,a=t===null,u=Qe(t),f=t===void 0;i<s;){var c=zI((i+s)/2),l=n(e[c]),h=l!==void 0,d=l===null,_=l===l,v=Qe(l);if(o)var g=r||_;else f?g=_&&(r||h):a?g=_&&h&&(r||!d):u?g=_&&h&&!d&&(r||!v):d||v?g=!1:g=r?l<=t:l<t;g?i=c+1:s=c}return UI(s,BI)}var VI=4294967295,WI=VI>>>1;function ka(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t=="number"&&t===t&&i<=WI){for(;r<i;){var s=r+i>>>1,o=e[s];o!==null&&!Qe(o)&&(n?o<=t:o<t)?r=s+1:i=s}return i}return _l(e,t,Ve,n)}function eb(e,t){return ka(e,t)}function tb(e,t,n){return _l(e,t,M(n))}function nb(e,t){var n=e==null?0:e.length;if(n){var r=ka(e,t);if(r<n&&$t(e[r],t))return r}return-1}function rb(e,t){return ka(e,t,!0)}function ib(e,t,n){return _l(e,t,M(n),!0)}function sb(e,t){var n=e==null?0:e.length;if(n){var r=ka(e,t,!0)-1;if($t(e[r],t))return r}return-1}function ob(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n],a=t?t(o):o;if(!n||!$t(a,u)){var u=a;s[i++]=o===0?0:o}}return s}function ab(e){return e&&e.length?ob(e):[]}function ub(e,t){return e&&e.length?ob(e,M(t)):[]}var kI=4294967295;function fb(e,t,n){return n&&typeof n!="number"&&ke(e,t,n)&&(t=n=void 0),n=n===void 0?kI:n>>>0,n?(e=W(e),e&&(typeof t=="string"||t!=null&&!Fa(t))&&(t=ct(t),!t&&Ei(e))?rr(Ht(e),0,n):e.split(t,n)):[]}var qI="Expected a function",GI=Math.max;function cb(e,t){if(typeof e!="function")throw new TypeError(qI);return t=t==null?0:GI(D(t),0),C(function(n){var r=n[t],i=rr(n,0,t);return r&&nr(i,r),ht(e,this,i)})}var lb=xi(function(e,t,n){return e+(n?" ":"")+Ea(t)});function hb(e,t,n){return e=W(e),n=n==null?0:Ir(D(n),0,e.length),t=ct(t),e.slice(n,n+t.length)==t}function pb(){return{}}function db(){return""}function _b(){return!0}var vb=oa(function(e,t){return e-t},0);function gb(e){return e&&e.length?tl(e,Ve):0}function yb(e,t){return e&&e.length?tl(e,M(t)):0}function bb(e){var t=e==null?0:e.length;return t?It(e,1,t):[]}function mb(e,t,n){return e&&e.length?(t=n||t===void 0?1:D(t),It(e,0,t<0?0:t)):[]}function wb(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:D(t),t=r-t,It(e,t<0?0:t,r)):[]}function Ab(e,t){return e&&e.length?Ca(e,M(t),!1,!0):[]}function Ob(e,t){return e&&e.length?Ca(e,M(t)):[]}function Eb(e,t){return t(e),e}var Sb=Object.prototype,HI=Sb.hasOwnProperty;function xb(e,t,n,r){return e===void 0||$t(e,Sb[n])&&!HI.call(r,n)?t:e}var KI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function YI(e){return"\\"+KI[e]}var Tb=/<%=([\s\S]+?)%>/g,XI=/<%-([\s\S]+?)%>/g,JI=/<%([\s\S]+?)%>/g,qa={escape:XI,evaluate:JI,interpolate:Tb,variable:"",imports:{_:{escape:Wc}}},ZI="Invalid `variable` option passed into `_.template`",QI=/\b__p \+= '';/g,eD=/\b(__p \+=) '' \+/g,tD=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nD=/[()=,{}\[\]\/\s]/,rD=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ga=/($^)/,iD=/['\n\r\u2028\u2029\\]/g,sD=Object.prototype,Rb=sD.hasOwnProperty;function Pb(e,t,n){var r=qa.imports._.templateSettings||qa;n&&ke(e,t,n)&&(t=void 0),e=W(e),t=Ns({},t,r,xb);var i=Ns({},t.imports,r.imports,xb),s=de(i),o=Yc(i,s),a,u,f=0,c=t.interpolate||Ga,l="__p += '",h=RegExp((t.escape||Ga).source+"|"+c.source+"|"+(c===Tb?rD:Ga).source+"|"+(t.evaluate||Ga).source+"|$","g"),d=Rb.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
4
|
-
`:"";e.replace(h,function(g,y,b,w,m,A){return b||(b=w),l+=e.slice(f,A).replace(
|
|
3
|
+
`)}function Ea(e){return function(){return e}}var Sa=function(){try{var e=Lr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),sT=Sa?function(e,t){return Sa(e,"toString",{configurable:!0,enumerable:!1,value:Ea(t),writable:!0})}:Ve,hc=h_(sT);function $t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function xa(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function d_(e){return e!==e}function oT(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Ti(e,t,n){return t===t?oT(e,t,n):xa(e,d_,n)}function Ta(e,t){var n=e==null?0:e.length;return!!n&&Ti(e,t,0)>-1}var aT=1,uT=2,fT=8,cT=16,lT=32,hT=64,pT=128,dT=256,_T=512,vT=[["ary",pT],["bind",aT],["bindKey",uT],["curry",fT],["curryRight",cT],["flip",_T],["partial",lT],["partialRight",hT],["rearg",dT]];function gT(e,t){return $t(vT,function(n){var r="_."+n[0];t&n[1]&&!Ta(e,r)&&e.push(r)}),e.sort()}function __(e,t,n){var r=t+"";return hc(e,iT(r,gT(nT(r),n)))}var yT=4,bT=8,v_=32,g_=64;function y_(e,t,n,r,i,s,o,a,u,f){var c=t&bT,l=c?o:void 0,h=c?void 0:o,d=c?s:void 0,_=c?void 0:s;t|=c?v_:g_,t&=~(c?g_:v_),t&yT||(t&=-4);var v=[e,t,i,d,l,_,h,a,u,f],g=n.apply(void 0,v);return lc(e)&&p_(g,v),g.placeholder=r,__(g,e,t)}function Ri(e){var t=e;return t.placeholder}var mT=9007199254740991,wT=/^(?:0|[1-9]\d*)$/;function Dn(e,t){var n=typeof e;return t=t??mT,!!t&&(n=="number"||n!="symbol"&&wT.test(e))&&e>-1&&e%1==0&&e<t}var AT=Math.min;function OT(e,t){for(var n=e.length,r=AT(t.length,n),i=tt(e);r--;){var s=t[r];e[r]=Dn(s,n)?i[s]:void 0}return e}var b_="__lodash_placeholder__";function rr(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n];(o===t||o===b_)&&(e[n]=b_,s[i++]=n)}return s}var ET=1,ST=2,xT=8,TT=16,RT=128,PT=512;function Ra(e,t,n,r,i,s,o,a,u,f){var c=t&RT,l=t&ET,h=t&ST,d=t&(xT|TT),_=t&PT,v=h?void 0:Ms(e);function g(){for(var y=arguments.length,b=Array(y),w=y;w--;)b[w]=arguments[w];if(d)var m=Ri(g),A=qx(b,m);if(r&&(b=f_(b,r,i,d)),s&&(b=c_(b,s,o,d)),y-=A,d&&y<f){var S=rr(b,m);return y_(e,t,Ra,g.placeholder,n,b,S,a,u,f-y)}var P=l?n:this,k=h?P[e]:e;return y=b.length,a?b=OT(b,a):_&&y>1&&b.reverse(),c&&u<y&&(b.length=u),this&&this!==we&&this instanceof g&&(k=v||Ms(k)),k.apply(P,b)}return g}function NT(e,t,n){var r=Ms(e);function i(){for(var s=arguments.length,o=Array(s),a=s,u=Ri(i);a--;)o[a]=arguments[a];var f=s<3&&o[0]!==u&&o[s-1]!==u?[]:rr(o,u);if(s-=f.length,s<n)return y_(e,t,Ra,i.placeholder,void 0,o,f,void 0,void 0,n-s);var c=this&&this!==we&&this instanceof i?r:e;return pt(c,this,o)}return i}var MT=1;function $T(e,t,n,r){var i=t&MT,s=Ms(e);function o(){for(var a=-1,u=arguments.length,f=-1,c=r.length,l=Array(c+u),h=this&&this!==we&&this instanceof o?s:e;++f<c;)l[f]=r[f];for(;u--;)l[f++]=arguments[++a];return pt(h,i?n:this,l)}return o}var m_="__lodash_placeholder__",pc=1,IT=2,DT=4,w_=8,$s=128,A_=256,CT=Math.min;function LT(e,t){var n=e[1],r=t[1],i=n|r,s=i<(pc|IT|$s),o=r==$s&&n==w_||r==$s&&n==A_&&e[7].length<=t[8]||r==($s|A_)&&t[7].length<=t[8]&&n==w_;if(!(s||o))return e;r&pc&&(e[2]=t[2],i|=n&pc?0:DT);var a=t[3];if(a){var u=e[3];e[3]=u?f_(u,a,t[4]):a,e[4]=u?rr(e[3],m_):t[4]}return a=t[5],a&&(u=e[5],e[5]=u?c_(u,a,t[6]):a,e[6]=u?rr(e[5],m_):t[6]),a=t[7],a&&(e[7]=a),r&$s&&(e[8]=e[8]==null?t[8]:CT(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var jT="Expected a function",O_=1,FT=2,E_=8,S_=16,x_=32,BT=64,T_=Math.max;function Cn(e,t,n,r,i,s,o,a){var u=t&FT;if(!u&&typeof e!="function")throw new TypeError(jT);var f=r?r.length:0;if(f||(t&=-97,r=i=void 0),o=o===void 0?o:T_(D(o),0),a=a===void 0?a:D(a),f-=i?i.length:0,t&BT){var c=r,l=i;r=i=void 0}var h=u?void 0:cc(e),d=[e,t,n,r,i,c,l,s,o,a];if(h&<(d,h),e=d[0],t=d[1],n=d[2],r=d[3],i=d[4],a=d[9]=d[9]===void 0?u?0:e.length:T_(d[9]-f,0),!a&&t&(E_|S_)&&(t&=-25),!t||t==O_)var _=kx(e,t,n);else t==E_||t==S_?_=NT(e,t,a):(t==x_||t==(O_|x_))&&!i.length?_=$T(e,t,n,r):_=Ra.apply(void 0,d);var v=h?a_:p_;return __(v(_,d),e,t)}var zT=128;function dc(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,Cn(e,zT,void 0,void 0,void 0,void 0,t)}function Ln(e,t,n){t=="__proto__"&&Sa?Sa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function It(e,t){return e===t||e!==e&&t!==t}var UT=Object.prototype,kT=UT.hasOwnProperty;function Is(e,t,n){var r=e[t];(!(kT.call(e,t)&&It(r,n))||n===void 0&&!(t in e))&&Ln(e,t,n)}function ln(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],u=r?r(n[a],e[a],a,n,e):void 0;u===void 0&&(u=e[a]),i?Ln(n,a,u):Is(n,a,u)}return n}var R_=Math.max;function P_(e,t,n){return t=R_(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=R_(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),pt(e,this,a)}}function C(e,t){return hc(P_(e,t,Ve),e+"")}var VT=9007199254740991;function Ds(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=VT}function We(e){return e!=null&&Ds(e.length)&&!cn(e)}function qe(e,t,n){if(!oe(n))return!1;var r=typeof t;return(r=="number"?We(n)&&Dn(t,n.length):r=="string"&&t in n)?It(n[t],e):!1}function Pi(e){return C(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&qe(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,s)}return t})}var WT=Object.prototype;function Cs(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||WT;return e===n}function _c(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var qT="[object Arguments]";function N_(e){return ae(e)&&ke(e)==qT}var M_=Object.prototype,GT=M_.hasOwnProperty,HT=M_.propertyIsEnumerable,ir=N_(function(){return arguments}())?N_:function(e){return ae(e)&>.call(e,"callee")&&!HT.call(e,"callee")};function Pa(){return!1}var $_=typeof x=="object"&&x&&!x.nodeType&&x,I_=$_&&typeof module=="object"&&module&&!module.nodeType&&module,KT=I_&&I_.exports===$_,D_=KT?we.Buffer:void 0,YT=D_?D_.isBuffer:void 0,jn=YT||Pa,XT="[object Arguments]",JT="[object Array]",ZT="[object Boolean]",QT="[object Date]",eR="[object Error]",tR="[object Function]",nR="[object Map]",rR="[object Number]",iR="[object Object]",sR="[object RegExp]",oR="[object Set]",aR="[object String]",uR="[object WeakMap]",fR="[object ArrayBuffer]",cR="[object DataView]",lR="[object Float32Array]",hR="[object Float64Array]",pR="[object Int8Array]",dR="[object Int16Array]",_R="[object Int32Array]",vR="[object Uint8Array]",gR="[object Uint8ClampedArray]",yR="[object Uint16Array]",bR="[object Uint32Array]",ne={};ne[lR]=ne[hR]=ne[pR]=ne[dR]=ne[_R]=ne[vR]=ne[gR]=ne[yR]=ne[bR]=!0,ne[XT]=ne[JT]=ne[fR]=ne[ZT]=ne[cR]=ne[QT]=ne[eR]=ne[tR]=ne[nR]=ne[rR]=ne[iR]=ne[sR]=ne[oR]=ne[aR]=ne[uR]=!1;function mR(e){return ae(e)&&Ds(e.length)&&!!ne[ke(e)]}function dt(e){return function(t){return e(t)}}var C_=typeof x=="object"&&x&&!x.nodeType&&x,Ls=C_&&typeof module=="object"&&module&&!module.nodeType&&module,wR=Ls&&Ls.exports===C_,vc=wR&&Hd.process,Dt=function(){try{var e=Ls&&Ls.require&&Ls.require("util").types;return e||vc&&vc.binding&&vc.binding("util")}catch{}}(),L_=Dt&&Dt.isTypedArray,jr=L_?dt(L_):mR,AR=Object.prototype,OR=AR.hasOwnProperty;function j_(e,t){var n=I(e),r=!n&&ir(e),i=!n&&!r&&jn(e),s=!n&&!r&&!i&&jr(e),o=n||r||i||s,a=o?_c(e.length,String):[],u=a.length;for(var f in e)(t||OR.call(e,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Dn(f,u)))&&a.push(f);return a}function F_(e,t){return function(n){return e(t(n))}}var ER=F_(Object.keys,Object),SR=Object.prototype,xR=SR.hasOwnProperty;function gc(e){if(!Cs(e))return ER(e);var t=[];for(var n in Object(e))xR.call(e,n)&&n!="constructor"&&t.push(n);return t}function de(e){return We(e)?j_(e):gc(e)}var TR=Object.prototype,RR=TR.hasOwnProperty,B_=Pi(function(e,t){if(Cs(t)||We(t)){ln(t,de(t),e);return}for(var n in t)RR.call(t,n)&&Is(e,n,t[n])});function PR(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var NR=Object.prototype,MR=NR.hasOwnProperty;function $R(e){if(!oe(e))return PR(e);var t=Cs(e),n=[];for(var r in e)r=="constructor"&&(t||!MR.call(e,r))||n.push(r);return n}function Ge(e){return We(e)?j_(e,!0):$R(e)}var yc=Pi(function(e,t){ln(t,Ge(t),e)}),js=Pi(function(e,t,n,r){ln(t,Ge(t),e,r)}),z_=Pi(function(e,t,n,r){ln(t,de(t),e,r)}),IR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DR=/^\w*$/;function bc(e,t){if(I(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||et(e)?!0:DR.test(e)||!IR.test(e)||t!=null&&e in Object(t)}var Fs=Lr(Object,"create");function CR(){this.__data__=Fs?Fs(null):{},this.size=0}function LR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jR="__lodash_hash_undefined__",FR=Object.prototype,BR=FR.hasOwnProperty;function zR(e){var t=this.__data__;if(Fs){var n=t[e];return n===jR?void 0:n}return BR.call(t,e)?t[e]:void 0}var UR=Object.prototype,kR=UR.hasOwnProperty;function VR(e){var t=this.__data__;return Fs?t[e]!==void 0:kR.call(t,e)}var WR="__lodash_hash_undefined__";function qR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Fs&&t===void 0?WR:t,this}function Fr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fr.prototype.clear=CR,Fr.prototype.delete=LR,Fr.prototype.get=zR,Fr.prototype.has=VR,Fr.prototype.set=qR;function GR(){this.__data__=[],this.size=0}function Na(e,t){for(var n=e.length;n--;)if(It(e[n][0],t))return n;return-1}var HR=Array.prototype,KR=HR.splice;function YR(e){var t=this.__data__,n=Na(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():KR.call(t,n,1),--this.size,!0}function XR(e){var t=this.__data__,n=Na(t,e);return n<0?void 0:t[n][1]}function JR(e){return Na(this.__data__,e)>-1}function ZR(e,t){var n=this.__data__,r=Na(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Fn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fn.prototype.clear=GR,Fn.prototype.delete=YR,Fn.prototype.get=XR,Fn.prototype.has=JR,Fn.prototype.set=ZR;var Bs=Lr(we,"Map");function QR(){this.size=0,this.__data__={hash:new Fr,map:new(Bs||Fn),string:new Fr}}function e2(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ma(e,t){var n=e.__data__;return e2(t)?n[typeof t=="string"?"string":"hash"]:n.map}function t2(e){var t=Ma(this,e).delete(e);return this.size-=t?1:0,t}function n2(e){return Ma(this,e).get(e)}function r2(e){return Ma(this,e).has(e)}function i2(e,t){var n=Ma(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Bn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bn.prototype.clear=QR,Bn.prototype.delete=t2,Bn.prototype.get=n2,Bn.prototype.has=r2,Bn.prototype.set=i2;var s2="Expected a function";function zs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(s2);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(zs.Cache||Bn),n}zs.Cache=Bn;var o2=500;function a2(e){var t=zs(e,function(r){return n.size===o2&&n.clear(),r}),n=t.cache;return t}var u2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f2=/\\(\\)?/g,U_=a2(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(u2,function(n,r,i,s){t.push(i?s.replace(f2,"$1"):r||n)}),t});function V(e){return e==null?"":lt(e)}function sr(e,t){return I(e)?e:bc(e,t)?[e]:U_(V(e))}function hn(e){if(typeof e=="string"||et(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Br(e,t){t=sr(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[hn(t[n++])];return n&&n==r?e:void 0}function $a(e,t,n){var r=e==null?void 0:Br(e,t);return r===void 0?n:r}function mc(e,t){for(var n=-1,r=t.length,i=Array(r),s=e==null;++n<r;)i[n]=s?void 0:$a(e,t[n]);return i}function or(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var k_=$e?$e.isConcatSpreadable:void 0;function c2(e){return I(e)||ir(e)||!!(k_&&e&&e[k_])}function Pe(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=c2),i||(i=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?Pe(a,t-1,n,r,i):or(i,a):r||(i[i.length]=a)}return i}function wc(e){var t=e==null?0:e.length;return t?Pe(e,1):[]}function zn(e){return hc(P_(e,void 0,wc),e+"")}var V_=zn(mc),Ia=F_(Object.getPrototypeOf,Object),l2="[object Object]",h2=Function.prototype,p2=Object.prototype,W_=h2.toString,d2=p2.hasOwnProperty,_2=W_.call(Object);function Ni(e){if(!ae(e)||ke(e)!=l2)return!1;var t=Ia(e);if(t===null)return!0;var n=d2.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&W_.call(n)==_2}var v2="[object DOMException]",g2="[object Error]";function Da(e){if(!ae(e))return!1;var t=ke(e);return t==g2||t==v2||typeof e.message=="string"&&typeof e.name=="string"&&!Ni(e)}var Ac=C(function(e,t){try{return pt(e,void 0,t)}catch(n){return Da(n)?n:new Error(n)}}),y2="Expected a function";function Oc(e,t){var n;if(typeof t!="function")throw new TypeError(y2);return e=D(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var b2=1,m2=32,Us=C(function(e,t,n){var r=b2;if(n.length){var i=rr(n,Ri(Us));r|=m2}return Cn(e,r,t,n,i)});Us.placeholder={};var q_=zn(function(e,t){return $t(t,function(n){n=hn(n),Ln(e,n,Us(e[n],e))}),e}),w2=1,A2=2,O2=32,Ca=C(function(e,t,n){var r=w2|A2;if(n.length){var i=rr(n,Ri(Ca));r|=O2}return Cn(t,r,e,n,i)});Ca.placeholder={};function Ct(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function ar(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Ct(e,t,n)}var E2="\\ud800-\\udfff",S2="\\u0300-\\u036f",x2="\\ufe20-\\ufe2f",T2="\\u20d0-\\u20ff",R2=S2+x2+T2,P2="\\ufe0e\\ufe0f",N2="\\u200d",M2=RegExp("["+N2+E2+R2+P2+"]");function Mi(e){return M2.test(e)}function $2(e){return e.split("")}var G_="\\ud800-\\udfff",I2="\\u0300-\\u036f",D2="\\ufe20-\\ufe2f",C2="\\u20d0-\\u20ff",L2=I2+D2+C2,j2="\\ufe0e\\ufe0f",F2="["+G_+"]",Ec="["+L2+"]",Sc="\\ud83c[\\udffb-\\udfff]",B2="(?:"+Ec+"|"+Sc+")",H_="[^"+G_+"]",K_="(?:\\ud83c[\\udde6-\\uddff]){2}",Y_="[\\ud800-\\udbff][\\udc00-\\udfff]",z2="\\u200d",X_=B2+"?",J_="["+j2+"]?",U2="(?:"+z2+"(?:"+[H_,K_,Y_].join("|")+")"+J_+X_+")*",k2=J_+X_+U2,V2="(?:"+[H_+Ec+"?",Ec,K_,Y_,F2].join("|")+")",W2=RegExp(Sc+"(?="+Sc+")|"+V2+k2,"g");function q2(e){return e.match(W2)||[]}function Yt(e){return Mi(e)?q2(e):$2(e)}function Z_(e){return function(t){t=V(t);var n=Mi(t)?Yt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ar(n,1).join(""):t.slice(1);return r[e]()+i}}var La=Z_("toUpperCase");function xc(e){return La(V(e).toLowerCase())}function Tc(e,t,n,r){var i=-1,s=e==null?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function Rc(e){return function(t){return e?.[t]}}var G2={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},H2=Rc(G2),K2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Y2="\\u0300-\\u036f",X2="\\ufe20-\\ufe2f",J2="\\u20d0-\\u20ff",Z2=Y2+X2+J2,Q2="["+Z2+"]",eP=RegExp(Q2,"g");function Pc(e){return e=V(e),e&&e.replace(K2,H2).replace(eP,"")}var tP=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function nP(e){return e.match(tP)||[]}var rP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function iP(e){return rP.test(e)}var Q_="\\ud800-\\udfff",sP="\\u0300-\\u036f",oP="\\ufe20-\\ufe2f",aP="\\u20d0-\\u20ff",uP=sP+oP+aP,ev="\\u2700-\\u27bf",tv="a-z\\xdf-\\xf6\\xf8-\\xff",fP="\\xac\\xb1\\xd7\\xf7",cP="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lP="\\u2000-\\u206f",hP=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nv="A-Z\\xc0-\\xd6\\xd8-\\xde",pP="\\ufe0e\\ufe0f",rv=fP+cP+lP+hP,iv="['’]",sv="["+rv+"]",dP="["+uP+"]",ov="\\d+",_P="["+ev+"]",av="["+tv+"]",uv="[^"+Q_+rv+ov+ev+tv+nv+"]",vP="\\ud83c[\\udffb-\\udfff]",gP="(?:"+dP+"|"+vP+")",yP="[^"+Q_+"]",fv="(?:\\ud83c[\\udde6-\\uddff]){2}",cv="[\\ud800-\\udbff][\\udc00-\\udfff]",$i="["+nv+"]",bP="\\u200d",lv="(?:"+av+"|"+uv+")",mP="(?:"+$i+"|"+uv+")",hv="(?:"+iv+"(?:d|ll|m|re|s|t|ve))?",pv="(?:"+iv+"(?:D|LL|M|RE|S|T|VE))?",dv=gP+"?",_v="["+pP+"]?",wP="(?:"+bP+"(?:"+[yP,fv,cv].join("|")+")"+_v+dv+")*",AP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",EP=_v+dv+wP,SP="(?:"+[_P,fv,cv].join("|")+")"+EP,xP=RegExp([$i+"?"+av+"+"+hv+"(?="+[sv,$i,"$"].join("|")+")",mP+"+"+pv+"(?="+[sv,$i+lv,"$"].join("|")+")",$i+"?"+lv+"+"+hv,$i+"+"+pv,OP,AP,ov,SP].join("|"),"g");function TP(e){return e.match(xP)||[]}function Nc(e,t,n){return e=V(e),t=n?void 0:t,t===void 0?iP(e)?TP(e):nP(e):e.match(t)||[]}var RP="['’]",PP=RegExp(RP,"g");function Ii(e){return function(t){return Tc(Nc(Pc(t).replace(PP,"")),e,"")}}var vv=Ii(function(e,t,n){return t=t.toLowerCase(),e+(n?xc(t):t)});function gv(){if(!arguments.length)return[];var e=arguments[0];return I(e)?e:[e]}var NP=we.isFinite,MP=Math.min;function Mc(e){var t=Math[e];return function(n,r){if(n=ht(n),r=r==null?0:MP(D(r),292),r&&NP(n)){var i=(V(n)+"e").split("e"),s=t(i[0]+"e"+(+i[1]+r));return i=(V(s)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(n)}}var yv=Mc("ceil");function $c(e){var t=p(e);return t.__chain__=!0,t}var $P=Math.ceil,IP=Math.max;function bv(e,t,n){(n?qe(e,t,n):t===void 0)?t=1:t=IP(D(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var i=0,s=0,o=Array($P(r/t));i<r;)o[s++]=Ct(e,i,i+=t);return o}function zr(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function mv(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ht(n),n=n===n?n:0),t!==void 0&&(t=ht(t),t=t===t?t:0),zr(ht(e),t,n)}function DP(){this.__data__=new Fn,this.size=0}function CP(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function LP(e){return this.__data__.get(e)}function jP(e){return this.__data__.has(e)}var FP=200;function BP(e,t){var n=this.__data__;if(n instanceof Fn){var r=n.__data__;if(!Bs||r.length<FP-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bn(r)}return n.set(e,t),this.size=n.size,this}function Xt(e){var t=this.__data__=new Fn(e);this.size=t.size}Xt.prototype.clear=DP,Xt.prototype.delete=CP,Xt.prototype.get=LP,Xt.prototype.has=jP,Xt.prototype.set=BP;function wv(e,t){return e&&ln(t,de(t),e)}function zP(e,t){return e&&ln(t,Ge(t),e)}var Av=typeof x=="object"&&x&&!x.nodeType&&x,Ov=Av&&typeof module=="object"&&module&&!module.nodeType&&module,UP=Ov&&Ov.exports===Av,Ev=UP?we.Buffer:void 0,Sv=Ev?Ev.allocUnsafe:void 0;function xv(e,t){if(t)return e.slice();var n=e.length,r=Sv?Sv(n):new e.constructor(n);return e.copy(r),r}function ur(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function ja(){return[]}var kP=Object.prototype,VP=kP.propertyIsEnumerable,Tv=Object.getOwnPropertySymbols,Ic=Tv?function(e){return e==null?[]:(e=Object(e),ur(Tv(e),function(t){return VP.call(e,t)}))}:ja;function WP(e,t){return ln(e,Ic(e),t)}var qP=Object.getOwnPropertySymbols,Rv=qP?function(e){for(var t=[];e;)or(t,Ic(e)),e=Ia(e);return t}:ja;function GP(e,t){return ln(e,Rv(e),t)}function Pv(e,t,n){var r=t(e);return I(e)?r:or(r,n(e))}function Dc(e){return Pv(e,de,Ic)}function Cc(e){return Pv(e,Ge,Rv)}var Lc=Lr(we,"DataView"),jc=Lr(we,"Promise"),Di=Lr(we,"Set"),Nv="[object Map]",HP="[object Object]",Mv="[object Promise]",$v="[object Set]",Iv="[object WeakMap]",Dv="[object DataView]",KP=Cr(Lc),YP=Cr(Bs),XP=Cr(jc),JP=Cr(Di),ZP=Cr(Ns),Ur=ke;(Lc&&Ur(new Lc(new ArrayBuffer(1)))!=Dv||Bs&&Ur(new Bs)!=Nv||jc&&Ur(jc.resolve())!=Mv||Di&&Ur(new Di)!=$v||Ns&&Ur(new Ns)!=Iv)&&(Ur=function(e){var t=ke(e),n=t==HP?e.constructor:void 0,r=n?Cr(n):"";if(r)switch(r){case KP:return Dv;case YP:return Nv;case XP:return Mv;case JP:return $v;case ZP:return Iv}return t});const pn=Ur;var QP=Object.prototype,eN=QP.hasOwnProperty;function tN(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&eN.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Fa=we.Uint8Array;function Fc(e){var t=new e.constructor(e.byteLength);return new Fa(t).set(new Fa(e)),t}function nN(e,t){var n=t?Fc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var rN=/\w*$/;function iN(e){var t=new e.constructor(e.source,rN.exec(e));return t.lastIndex=e.lastIndex,t}var Cv=$e?$e.prototype:void 0,Lv=Cv?Cv.valueOf:void 0;function sN(e){return Lv?Object(Lv.call(e)):{}}function jv(e,t){var n=t?Fc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var oN="[object Boolean]",aN="[object Date]",uN="[object Map]",fN="[object Number]",cN="[object RegExp]",lN="[object Set]",hN="[object String]",pN="[object Symbol]",dN="[object ArrayBuffer]",_N="[object DataView]",vN="[object Float32Array]",gN="[object Float64Array]",yN="[object Int8Array]",bN="[object Int16Array]",mN="[object Int32Array]",wN="[object Uint8Array]",AN="[object Uint8ClampedArray]",ON="[object Uint16Array]",EN="[object Uint32Array]";function SN(e,t,n){var r=e.constructor;switch(t){case dN:return Fc(e);case oN:case aN:return new r(+e);case _N:return nN(e,n);case vN:case gN:case yN:case bN:case mN:case wN:case AN:case ON:case EN:return jv(e,n);case uN:return new r;case fN:case hN:return new r(e);case cN:return iN(e);case lN:return new r;case pN:return sN(e)}}function Fv(e){return typeof e.constructor=="function"&&!Cs(e)?Si(Ia(e)):{}}var xN="[object Map]";function TN(e){return ae(e)&&pn(e)==xN}var Bv=Dt&&Dt.isMap,Bc=Bv?dt(Bv):TN,RN="[object Set]";function PN(e){return ae(e)&&pn(e)==RN}var zv=Dt&&Dt.isSet,zc=zv?dt(zv):PN,NN=1,MN=2,$N=4,Uv="[object Arguments]",IN="[object Array]",DN="[object Boolean]",CN="[object Date]",LN="[object Error]",kv="[object Function]",jN="[object GeneratorFunction]",FN="[object Map]",BN="[object Number]",Vv="[object Object]",zN="[object RegExp]",UN="[object Set]",kN="[object String]",VN="[object Symbol]",WN="[object WeakMap]",qN="[object ArrayBuffer]",GN="[object DataView]",HN="[object Float32Array]",KN="[object Float64Array]",YN="[object Int8Array]",XN="[object Int16Array]",JN="[object Int32Array]",ZN="[object Uint8Array]",QN="[object Uint8ClampedArray]",eM="[object Uint16Array]",tM="[object Uint32Array]",Z={};Z[Uv]=Z[IN]=Z[qN]=Z[GN]=Z[DN]=Z[CN]=Z[HN]=Z[KN]=Z[YN]=Z[XN]=Z[JN]=Z[FN]=Z[BN]=Z[Vv]=Z[zN]=Z[UN]=Z[kN]=Z[VN]=Z[ZN]=Z[QN]=Z[eM]=Z[tM]=!0,Z[LN]=Z[kv]=Z[WN]=!1;function Lt(e,t,n,r,i,s){var o,a=t&NN,u=t&MN,f=t&$N;if(n&&(o=i?n(e,r,i,s):n(e)),o!==void 0)return o;if(!oe(e))return e;var c=I(e);if(c){if(o=tN(e),!a)return tt(e,o)}else{var l=pn(e),h=l==kv||l==jN;if(jn(e))return xv(e,a);if(l==Vv||l==Uv||h&&!i){if(o=u||h?{}:Fv(e),!a)return u?GP(e,zP(o,e)):WP(e,wv(o,e))}else{if(!Z[l])return i?e:{};o=SN(e,l,a)}}s||(s=new Xt);var d=s.get(e);if(d)return d;s.set(e,o),zc(e)?e.forEach(function(g){o.add(Lt(g,t,n,g,e,s))}):Bc(e)&&e.forEach(function(g,y){o.set(y,Lt(g,t,n,y,e,s))});var _=f?u?Cc:Dc:u?Ge:de,v=c?void 0:_(e);return $t(v||e,function(g,y){v&&(y=g,g=e[y]),Is(o,y,Lt(g,t,n,y,e,s))}),o}var nM=4;function Wv(e){return Lt(e,nM)}var rM=1,iM=4;function Ba(e){return Lt(e,rM|iM)}var sM=1,oM=4;function qv(e,t){return t=typeof t=="function"?t:void 0,Lt(e,sM|oM,t)}var aM=4;function Gv(e,t){return t=typeof t=="function"?t:void 0,Lt(e,aM,t)}function Uc(){return new Mt(this.value(),this.__chain__)}function Hv(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var s=e[t];s&&(i[r++]=s)}return i}function Kv(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return or(I(n)?tt(n):[n],Pe(t,1))}var uM="__lodash_hash_undefined__";function fM(e){return this.__data__.set(e,uM),this}function cM(e){return this.__data__.has(e)}function kr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Bn;++t<n;)this.add(e[t])}kr.prototype.add=kr.prototype.push=fM,kr.prototype.has=cM;function kc(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function ks(e,t){return e.has(t)}var lM=1,hM=2;function Yv(e,t,n,r,i,s){var o=n&lM,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var f=s.get(e),c=s.get(t);if(f&&c)return f==t&&c==e;var l=-1,h=!0,d=n&hM?new kr:void 0;for(s.set(e,t),s.set(t,e);++l<a;){var _=e[l],v=t[l];if(r)var g=o?r(v,_,l,t,e,s):r(_,v,l,e,t,s);if(g!==void 0){if(g)continue;h=!1;break}if(d){if(!kc(t,function(y,b){if(!ks(d,b)&&(_===y||i(_,y,n,r,s)))return d.push(b)})){h=!1;break}}else if(!(_===v||i(_,v,n,r,s))){h=!1;break}}return s.delete(e),s.delete(t),h}function Vc(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function za(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var pM=1,dM=2,_M="[object Boolean]",vM="[object Date]",gM="[object Error]",yM="[object Map]",bM="[object Number]",mM="[object RegExp]",wM="[object Set]",AM="[object String]",OM="[object Symbol]",EM="[object ArrayBuffer]",SM="[object DataView]",Xv=$e?$e.prototype:void 0,Wc=Xv?Xv.valueOf:void 0;function xM(e,t,n,r,i,s,o){switch(n){case SM:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case EM:return!(e.byteLength!=t.byteLength||!s(new Fa(e),new Fa(t)));case _M:case vM:case bM:return It(+e,+t);case gM:return e.name==t.name&&e.message==t.message;case mM:case AM:return e==t+"";case yM:var a=Vc;case wM:var u=r&pM;if(a||(a=za),e.size!=t.size&&!u)return!1;var f=o.get(e);if(f)return f==t;r|=dM,o.set(e,t);var c=Yv(a(e),a(t),r,i,s,o);return o.delete(e),c;case OM:if(Wc)return Wc.call(e)==Wc.call(t)}return!1}var TM=1,RM=Object.prototype,PM=RM.hasOwnProperty;function NM(e,t,n,r,i,s){var o=n&TM,a=Dc(e),u=a.length,f=Dc(t),c=f.length;if(u!=c&&!o)return!1;for(var l=u;l--;){var h=a[l];if(!(o?h in t:PM.call(t,h)))return!1}var d=s.get(e),_=s.get(t);if(d&&_)return d==t&&_==e;var v=!0;s.set(e,t),s.set(t,e);for(var g=o;++l<u;){h=a[l];var y=e[h],b=t[h];if(r)var w=o?r(b,y,h,t,e,s):r(y,b,h,e,t,s);if(!(w===void 0?y===b||i(y,b,n,r,s):w)){v=!1;break}g||(g=h=="constructor")}if(v&&!g){var m=e.constructor,A=t.constructor;m!=A&&"constructor"in e&&"constructor"in t&&!(typeof m=="function"&&m instanceof m&&typeof A=="function"&&A instanceof A)&&(v=!1)}return s.delete(e),s.delete(t),v}var MM=1,Jv="[object Arguments]",Zv="[object Array]",Ua="[object Object]",$M=Object.prototype,Qv=$M.hasOwnProperty;function IM(e,t,n,r,i,s){var o=I(e),a=I(t),u=o?Zv:pn(e),f=a?Zv:pn(t);u=u==Jv?Ua:u,f=f==Jv?Ua:f;var c=u==Ua,l=f==Ua,h=u==f;if(h&&jn(e)){if(!jn(t))return!1;o=!0,c=!1}if(h&&!c)return s||(s=new Xt),o||jr(e)?Yv(e,t,n,r,i,s):xM(e,t,u,n,r,i,s);if(!(n&MM)){var d=c&&Qv.call(e,"__wrapped__"),_=l&&Qv.call(t,"__wrapped__");if(d||_){var v=d?e.value():e,g=_?t.value():t;return s||(s=new Xt),i(v,g,n,r,s)}}return h?(s||(s=new Xt),NM(e,t,n,r,i,s)):!1}function Vs(e,t,n,r,i){return e===t?!0:e==null||t==null||!ae(e)&&!ae(t)?e!==e&&t!==t:IM(e,t,n,r,Vs,i)}var DM=1,CM=2;function qc(e,t,n,r){var i=n.length,s=i,o=!r;if(e==null)return!s;for(e=Object(e);i--;){var a=n[i];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<s;){a=n[i];var u=a[0],f=e[u],c=a[1];if(o&&a[2]){if(f===void 0&&!(u in e))return!1}else{var l=new Xt;if(r)var h=r(f,c,u,e,t,l);if(!(h===void 0?Vs(c,f,DM|CM,r,l):h))return!1}}return!0}function eg(e){return e===e&&!oe(e)}function Gc(e){for(var t=de(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,eg(i)]}return t}function tg(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function ng(e){var t=Gc(e);return t.length==1&&t[0][2]?tg(t[0][0],t[0][1]):function(n){return n===e||qc(n,e,t)}}function LM(e,t){return e!=null&&t in Object(e)}function rg(e,t,n){t=sr(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var o=hn(t[r]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&Ds(i)&&Dn(o,i)&&(I(e)||ir(e)))}function ka(e,t){return e!=null&&rg(e,t,LM)}var jM=1,FM=2;function ig(e,t){return bc(e)&&eg(t)?tg(hn(e),t):function(n){var r=$a(n,e);return r===void 0&&r===t?ka(n,e):Vs(t,r,jM|FM)}}function Hc(e){return function(t){return t?.[e]}}function BM(e){return function(t){return Br(t,e)}}function Kc(e){return bc(e)?Hc(hn(e)):BM(e)}function $(e){return typeof e=="function"?e:e==null?Ve:typeof e=="object"?I(e)?ig(e[0],e[1]):ng(e):Kc(e)}var zM="Expected a function";function sg(e){var t=e==null?0:e.length,n=$;return e=t?se(e,function(r){if(typeof r[1]!="function")throw new TypeError(zM);return[n(r[0]),r[1]]}):[],C(function(r){for(var i=-1;++i<t;){var s=e[i];if(pt(s[0],this,r))return pt(s[1],this,r)}})}function og(e,t,n){var r=n.length;if(e==null)return!r;for(e=Object(e);r--;){var i=n[r],s=t[i],o=e[i];if(o===void 0&&!(i in e)||!s(o))return!1}return!0}function UM(e){var t=de(e);return function(n){return og(n,e,t)}}var kM=1;function ag(e){return UM(Lt(e,kM))}function ug(e,t){return t==null||og(e,t,de(t))}function VM(e,t,n,r){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r}function fg(e){return function(t,n,r){for(var i=-1,s=Object(t),o=r(t),a=o.length;a--;){var u=o[e?a:++i];if(n(s[u],u,s)===!1)break}return t}}var Yc=fg();function dn(e,t){return e&&Yc(e,t,de)}function cg(e,t){return function(n,r){if(n==null)return n;if(!We(n))return e(n,r);for(var i=n.length,s=t?i:-1,o=Object(n);(t?s--:++s<i)&&r(o[s],s,o)!==!1;);return n}}var fr=cg(dn);function WM(e,t,n,r){return fr(e,function(i,s,o){t(r,i,n(i),o)}),r}function Va(e,t){return function(n,r){var i=I(n)?VM:WM,s=t?t():{};return i(n,e,$(r),s)}}var qM=Object.prototype,GM=qM.hasOwnProperty,lg=Va(function(e,t,n){GM.call(e,n)?++e[n]:Ln(e,n,1)});function hg(e,t){var n=Si(e);return t==null?n:wv(n,t)}var HM=8;function Wa(e,t,n){t=n?void 0:t;var r=Cn(e,HM,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=Wa.placeholder,r}Wa.placeholder={};var KM=16;function qa(e,t,n){t=n?void 0:t;var r=Cn(e,KM,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=qa.placeholder,r}qa.placeholder={};var Ws=function(){return we.Date.now()},YM="Expected a function",XM=Math.max,JM=Math.min;function Xc(e,t,n){var r,i,s,o,a,u,f=0,c=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(YM);t=ht(t)||0,oe(n)&&(c=!!n.leading,l="maxWait"in n,s=l?XM(ht(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h);function d(S){var P=r,k=i;return r=i=void 0,f=S,o=e.apply(k,P),o}function _(S){return f=S,a=setTimeout(y,t),c?d(S):o}function v(S){var P=S-u,k=S-f,Qn=t-P;return l?JM(Qn,s-k):Qn}function g(S){var P=S-u,k=S-f;return u===void 0||P>=t||P<0||l&&k>=s}function y(){var S=Ws();if(g(S))return b(S);a=setTimeout(y,v(S))}function b(S){return a=void 0,h&&r?d(S):(r=i=void 0,o)}function w(){a!==void 0&&clearTimeout(a),f=0,r=u=i=a=void 0}function m(){return a===void 0?o:b(Ws())}function A(){var S=Ws(),P=g(S);if(r=arguments,i=this,u=S,P){if(a===void 0)return _(u);if(l)return clearTimeout(a),a=setTimeout(y,t),d(u)}return a===void 0&&(a=setTimeout(y,t)),o}return A.cancel=w,A.flush=m,A}function pg(e,t){return e==null||e!==e?t:e}var dg=Object.prototype,ZM=dg.hasOwnProperty,_g=C(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&qe(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],o=Ge(s),a=-1,u=o.length;++a<u;){var f=o[a],c=e[f];(c===void 0||It(c,dg[f])&&!ZM.call(e,f))&&(e[f]=s[f])}return e});function Jc(e,t,n){(n!==void 0&&!It(e[t],n)||n===void 0&&!(t in e))&&Ln(e,t,n)}function fe(e){return ae(e)&&We(e)}function Zc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Qc(e){return ln(e,Ge(e))}function QM(e,t,n,r,i,s,o){var a=Zc(e,n),u=Zc(t,n),f=o.get(u);if(f){Jc(e,n,f);return}var c=s?s(a,u,n+"",e,t,o):void 0,l=c===void 0;if(l){var h=I(u),d=!h&&jn(u),_=!h&&!d&&jr(u);c=u,h||d||_?I(a)?c=a:fe(a)?c=tt(a):d?(l=!1,c=xv(u,!0)):_?(l=!1,c=jv(u,!0)):c=[]:Ni(u)||ir(u)?(c=a,ir(a)?c=Qc(a):(!oe(a)||cn(a))&&(c=Fv(u))):l=!1}l&&(o.set(u,c),i(c,u,r,s,o),o.delete(u)),Jc(e,n,c)}function Ga(e,t,n,r,i){e!==t&&Yc(t,function(s,o){if(i||(i=new Xt),oe(s))QM(e,t,o,n,Ga,r,i);else{var a=r?r(Zc(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),Jc(e,o,a)}},Ge)}function vg(e,t,n,r,i,s){return oe(e)&&oe(t)&&(s.set(t,e),Ga(e,t,void 0,vg,s),s.delete(t)),e}var el=Pi(function(e,t,n,r){Ga(e,t,n,r)}),gg=C(function(e){return e.push(void 0,vg),pt(el,void 0,e)}),e$="Expected a function";function yg(e,t,n){if(typeof e!="function")throw new TypeError(e$);return setTimeout(function(){e.apply(void 0,n)},t)}var bg=C(function(e,t){return yg(e,1,t)}),mg=C(function(e,t,n){return yg(e,ht(t)||0,n)});function tl(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var t$=200;function qs(e,t,n,r){var i=-1,s=Ta,o=!0,a=e.length,u=[],f=t.length;if(!a)return u;n&&(t=se(t,dt(n))),r?(s=tl,o=!1):t.length>=t$&&(s=ks,o=!1,t=new kr(t));e:for(;++i<a;){var c=e[i],l=n==null?c:n(c);if(c=r||c!==0?c:0,o&&l===l){for(var h=f;h--;)if(t[h]===l)continue e;u.push(c)}else s(t,l,r)||u.push(c)}return u}var wg=C(function(e,t){return fe(e)?qs(e,Pe(t,1,fe,!0)):[]});function _t(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Ag=C(function(e,t){var n=_t(t);return fe(n)&&(n=void 0),fe(e)?qs(e,Pe(t,1,fe,!0),$(n)):[]}),Og=C(function(e,t){var n=_t(t);return fe(n)&&(n=void 0),fe(e)?qs(e,Pe(t,1,fe,!0),void 0,n):[]}),Eg=ya(function(e,t){return e/t},1);function Sg(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:D(t),Ct(e,t<0?0:t,r)):[]}function xg(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:D(t),t=r-t,Ct(e,0,t<0?0:t)):[]}function Ha(e,t,n,r){for(var i=e.length,s=r?i:-1;(r?s--:++s<i)&&t(e[s],s,e););return n?Ct(e,r?0:s,r?s+1:i):Ct(e,r?s+1:0,r?i:s)}function Tg(e,t){return e&&e.length?Ha(e,$(t),!0,!0):[]}function Rg(e,t){return e&&e.length?Ha(e,$(t),!0):[]}function _n(e){return typeof e=="function"?e:Ve}function nl(e,t){var n=I(e)?$t:fr;return n(e,_n(t))}function n$(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}var Pg=fg(!0);function rl(e,t){return e&&Pg(e,t,de)}var Ng=cg(rl,!0);function il(e,t){var n=I(e)?n$:Ng;return n(e,_n(t))}function Mg(e,t,n){e=V(e),t=lt(t);var r=e.length;n=n===void 0?r:zr(D(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function r$(e,t){return se(t,function(n){return[n,e[n]]})}function i$(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var s$="[object Map]",o$="[object Set]";function $g(e){return function(t){var n=pn(t);return n==s$?Vc(t):n==o$?i$(t):r$(t,e(t))}}var sl=$g(de),ol=$g(Ge),a$={"&":"&","<":"<",">":">",'"':""","'":"'"},u$=Rc(a$),Ig=/[&<>"']/g,f$=RegExp(Ig.source);function al(e){return e=V(e),e&&f$.test(e)?e.replace(Ig,u$):e}var Dg=/[\\^$.*+?()[\]{}|]/g,c$=RegExp(Dg.source);function Cg(e){return e=V(e),e&&c$.test(e)?e.replace(Dg,"\\$&"):e}function Lg(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function l$(e,t){var n=!0;return fr(e,function(r,i,s){return n=!!t(r,i,s),n}),n}function jg(e,t,n){var r=I(e)?Lg:l$;return n&&qe(e,t,n)&&(t=void 0),r(e,$(t))}var h$=4294967295;function ul(e){return e?zr(D(e),0,h$):0}function p$(e,t,n,r){var i=e.length;for(n=D(n),n<0&&(n=-n>i?0:i+n),r=r===void 0||r>i?i:D(r),r<0&&(r+=i),r=n>r?0:ul(r);n<r;)e[n++]=t;return e}function Fg(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&qe(e,t,n)&&(n=0,r=i),p$(e,t,n,r)):[]}function Bg(e,t){var n=[];return fr(e,function(r,i,s){t(r,i,s)&&n.push(r)}),n}function zg(e,t){var n=I(e)?ur:Bg;return n(e,$(t))}function Ug(e){return function(t,n,r){var i=Object(t);if(!We(t)){var s=$(n);t=de(t),n=function(a){return s(i[a],a,i)}}var o=e(t,n,r);return o>-1?i[s?t[o]:o]:void 0}}var d$=Math.max;function fl(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:D(n);return i<0&&(i=d$(r+i,0)),xa(e,$(t),i)}var kg=Ug(fl);function Vg(e,t,n){var r;return n(e,function(i,s,o){if(t(i,s,o))return r=s,!1}),r}function Wg(e,t){return Vg(e,$(t),dn)}var _$=Math.max,v$=Math.min;function cl(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r-1;return n!==void 0&&(i=D(n),i=n<0?_$(r+i,0):v$(i,r-1)),xa(e,$(t),i,!0)}var qg=Ug(cl);function Gg(e,t){return Vg(e,$(t),rl)}function ll(e){return e&&e.length?e[0]:void 0}function Hg(e,t){var n=-1,r=We(e)?Array(e.length):[];return fr(e,function(i,s,o){r[++n]=t(i,s,o)}),r}function Gs(e,t){var n=I(e)?se:Hg;return n(e,$(t))}function Kg(e,t){return Pe(Gs(e,t),1)}var g$=1/0;function Yg(e,t){return Pe(Gs(e,t),g$)}function Xg(e,t,n){return n=n===void 0?1:D(n),Pe(Gs(e,t),n)}var y$=1/0;function Jg(e){var t=e==null?0:e.length;return t?Pe(e,y$):[]}function Zg(e,t){var n=e==null?0:e.length;return n?(t=t===void 0?1:D(t),Pe(e,t)):[]}var b$=512;function Qg(e){return Cn(e,b$)}var e0=Mc("floor"),m$="Expected a function",w$=8,A$=32,O$=128,E$=256;function t0(e){return zn(function(t){var n=t.length,r=n,i=Mt.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if(typeof s!="function")throw new TypeError(m$);if(i&&!o&&Oa(s)=="wrapper")var o=new Mt([],!0)}for(r=o?r:n;++r<n;){s=t[r];var a=Oa(s),u=a=="wrapper"?cc(s):void 0;u&&lc(u[0])&&u[1]==(O$|w$|A$|E$)&&!u[4].length&&u[9]==1?o=o[Oa(u[0])].apply(o,u[3]):o=s.length==1&&lc(s)?o[a]():o.thru(s)}return function(){var f=arguments,c=f[0];if(o&&f.length==1&&I(c))return o.plant(c).value();for(var l=0,h=n?t[l].apply(this,f):c;++l<n;)h=t[l].call(this,h);return h}})}var n0=t0(),r0=t0(!0);function i0(e,t){return e==null?e:Yc(e,_n(t),Ge)}function s0(e,t){return e==null?e:Pg(e,_n(t),Ge)}function o0(e,t){return e&&dn(e,_n(t))}function a0(e,t){return e&&rl(e,_n(t))}function u0(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Ka(e,t){return ur(t,function(n){return cn(e[n])})}function f0(e){return e==null?[]:Ka(e,de(e))}function c0(e){return e==null?[]:Ka(e,Ge(e))}var S$=Object.prototype,x$=S$.hasOwnProperty,l0=Va(function(e,t,n){x$.call(e,n)?e[n].push(t):Ln(e,n,[t])});function hl(e,t){return e>t}function Ya(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=ht(t),n=ht(n)),e(t,n)}}var h0=Ya(hl),p0=Ya(function(e,t){return e>=t}),T$=Object.prototype,R$=T$.hasOwnProperty;function P$(e,t){return e!=null&&R$.call(e,t)}function d0(e,t){return e!=null&&rg(e,t,P$)}var N$=Math.max,M$=Math.min;function $$(e,t,n){return e>=M$(t,n)&&e<N$(t,n)}function _0(e,t,n){return t=fn(t),n===void 0?(n=t,t=0):n=fn(n),e=ht(e),$$(e,t,n)}var I$="[object String]";function Hs(e){return typeof e=="string"||!I(e)&&ae(e)&&ke(e)==I$}function pl(e,t){return se(t,function(n){return e[n]})}function Vr(e){return e==null?[]:pl(e,de(e))}var D$=Math.max;function v0(e,t,n,r){e=We(e)?e:Vr(e),n=n&&!r?D(n):0;var i=e.length;return n<0&&(n=D$(i+n,0)),Hs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ti(e,t,n)>-1}var C$=Math.max;function g0(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:D(n);return i<0&&(i=C$(r+i,0)),Ti(e,t,i)}function y0(e){var t=e==null?0:e.length;return t?Ct(e,0,-1):[]}var L$=Math.min;function dl(e,t,n){for(var r=n?tl:Ta,i=e[0].length,s=e.length,o=s,a=Array(s),u=1/0,f=[];o--;){var c=e[o];o&&t&&(c=se(c,dt(t))),u=L$(c.length,u),a[o]=!n&&(t||i>=120&&c.length>=120)?new kr(o&&c):void 0}c=e[0];var l=-1,h=a[0];e:for(;++l<i&&f.length<u;){var d=c[l],_=t?t(d):d;if(d=n||d!==0?d:0,!(h?ks(h,_):r(f,_,n))){for(o=s;--o;){var v=a[o];if(!(v?ks(v,_):r(e[o],_,n)))continue e}h&&h.push(_),f.push(d)}}return f}function _l(e){return fe(e)?e:[]}var b0=C(function(e){var t=se(e,_l);return t.length&&t[0]===e[0]?dl(t):[]}),m0=C(function(e){var t=_t(e),n=se(e,_l);return t===_t(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?dl(n,$(t)):[]}),w0=C(function(e){var t=_t(e),n=se(e,_l);return t=typeof t=="function"?t:void 0,t&&n.pop(),n.length&&n[0]===e[0]?dl(n,void 0,t):[]});function j$(e,t,n,r){return dn(e,function(i,s,o){t(r,n(i),s,o)}),r}function A0(e,t){return function(n,r){return j$(n,e,t(r),{})}}var F$=Object.prototype,B$=F$.toString,O0=A0(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=B$.call(t)),e[t]=n},Ea(Ve)),E0=Object.prototype,z$=E0.hasOwnProperty,U$=E0.toString,S0=A0(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=U$.call(t)),z$.call(e,t)?e[t].push(n):e[t]=[n]},$);function x0(e,t){return t.length<2?e:Br(e,Ct(t,0,-1))}function Ks(e,t,n){t=sr(t,e),e=x0(e,t);var r=e==null?e:e[hn(_t(t))];return r==null?void 0:pt(r,e,n)}var T0=C(Ks),R0=C(function(e,t,n){var r=-1,i=typeof t=="function",s=We(e)?Array(e.length):[];return fr(e,function(o){s[++r]=i?pt(t,o,n):Ks(o,t,n)}),s}),k$="[object ArrayBuffer]";function V$(e){return ae(e)&&ke(e)==k$}var P0=Dt&&Dt.isArrayBuffer,N0=P0?dt(P0):V$,W$="[object Boolean]";function M0(e){return e===!0||e===!1||ae(e)&&ke(e)==W$}var q$="[object Date]";function G$(e){return ae(e)&&ke(e)==q$}var $0=Dt&&Dt.isDate,I0=$0?dt($0):G$;function D0(e){return ae(e)&&e.nodeType===1&&!Ni(e)}var H$="[object Map]",K$="[object Set]",Y$=Object.prototype,X$=Y$.hasOwnProperty;function C0(e){if(e==null)return!0;if(We(e)&&(I(e)||typeof e=="string"||typeof e.splice=="function"||jn(e)||jr(e)||ir(e)))return!e.length;var t=pn(e);if(t==H$||t==K$)return!e.size;if(Cs(e))return!gc(e).length;for(var n in e)if(X$.call(e,n))return!1;return!0}function Ci(e,t){return Vs(e,t)}function L0(e,t,n){n=typeof n=="function"?n:void 0;var r=n?n(e,t):void 0;return r===void 0?Vs(e,t,void 0,n):!!r}var J$=we.isFinite;function j0(e){return typeof e=="number"&&J$(e)}function vl(e){return typeof e=="number"&&e==D(e)}function F0(e,t){return e===t||qc(e,t,Gc(t))}function B0(e,t,n){return n=typeof n=="function"?n:void 0,qc(e,t,Gc(t),n)}var Z$="[object Number]";function gl(e){return typeof e=="number"||ae(e)&&ke(e)==Z$}function z0(e){return gl(e)&&e!=+e}var Q$=ba?cn:Pa,eI="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function U0(e){if(Q$(e))throw new Error(eI);return o_(e)}function k0(e){return e==null}function V0(e){return e===null}var tI="[object RegExp]";function nI(e){return ae(e)&&ke(e)==tI}var W0=Dt&&Dt.isRegExp,Xa=W0?dt(W0):nI,q0=9007199254740991;function G0(e){return vl(e)&&e>=-q0&&e<=q0}function H0(e){return e===void 0}var rI="[object WeakMap]";function K0(e){return ae(e)&&pn(e)==rI}var iI="[object WeakSet]";function Y0(e){return ae(e)&&ke(e)==iI}var sI=1;function X0(e){return $(typeof e=="function"?e:Lt(e,sI))}var oI=Array.prototype,aI=oI.join;function J0(e,t){return e==null?"":aI.call(e,t)}var Z0=Ii(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Q0=Va(function(e,t,n){Ln(e,n,t)});function uI(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}var fI=Math.max,cI=Math.min;function ey(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r;return n!==void 0&&(i=D(n),i=i<0?fI(r+i,0):cI(i,r-1)),t===t?uI(e,t,i):xa(e,d_,i,!0)}var ty=Ii(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ny=Z_("toLowerCase");function yl(e,t){return e<t}var ry=Ya(yl),iy=Ya(function(e,t){return e<=t});function sy(e,t){var n={};return t=$(t),dn(e,function(r,i,s){Ln(n,t(r,i,s),r)}),n}function oy(e,t){var n={};return t=$(t),dn(e,function(r,i,s){Ln(n,i,t(r,i,s))}),n}var lI=1;function ay(e){return ng(Lt(e,lI))}var hI=1;function uy(e,t){return ig(e,Lt(t,hI))}function Ja(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],o=t(s);if(o!=null&&(a===void 0?o===o&&!et(o):n(o,a)))var a=o,u=s}return u}function fy(e){return e&&e.length?Ja(e,Ve,hl):void 0}function cy(e,t){return e&&e.length?Ja(e,$(t),hl):void 0}function bl(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==void 0&&(n=n===void 0?s:n+s)}return n}var pI=NaN;function ly(e,t){var n=e==null?0:e.length;return n?bl(e,t)/n:pI}function hy(e){return ly(e,Ve)}function py(e,t){return ly(e,$(t))}var dy=Pi(function(e,t,n){Ga(e,t,n)}),_y=C(function(e,t){return function(n){return Ks(n,e,t)}}),vy=C(function(e,t){return function(n){return Ks(e,n,t)}});function gy(e){return e&&e.length?Ja(e,Ve,yl):void 0}function yy(e,t){return e&&e.length?Ja(e,$(t),yl):void 0}function by(e,t,n){var r=de(t),i=Ka(t,r),s=!(oe(n)&&"chain"in n)||!!n.chain,o=cn(e);return $t(i,function(a){var u=t[a];e[a]=u,o&&(e.prototype[a]=function(){var f=this.__chain__;if(s||f){var c=e(this.__wrapped__),l=c.__actions__=tt(this.__actions__);return l.push({func:u,args:arguments,thisArg:e}),c.__chain__=f,c}return u.apply(e,or([this.value()],arguments))})}),e}var my=ya(function(e,t){return e*t},1),dI="Expected a function";function Ys(e){if(typeof e!="function")throw new TypeError(dI);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function _I(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var vI="[object Map]",gI="[object Set]",ml=$e?$e.iterator:void 0;function wl(e){if(!e)return[];if(We(e))return Hs(e)?Yt(e):tt(e);if(ml&&e[ml])return _I(e[ml]());var t=pn(e),n=t==vI?Vc:t==gI?za:Vr;return n(e)}function Al(){this.__values__===void 0&&(this.__values__=wl(this.value()));var e=this.__index__>=this.__values__.length,t=e?void 0:this.__values__[this.__index__++];return{done:e,value:t}}function wy(e,t){var n=e.length;if(n)return t+=t<0?n:0,Dn(t,n)?e[t]:void 0}function Ay(e,t){return e&&e.length?wy(e,D(t)):void 0}function Oy(e){return e=D(e),C(function(t){return wy(t,e)})}function Ol(e,t){return t=sr(t,e),e=x0(e,t),e==null||delete e[hn(_t(t))]}function yI(e){return Ni(e)?void 0:e}var bI=1,mI=2,wI=4,Ey=zn(function(e,t){var n={};if(e==null)return n;var r=!1;t=se(t,function(s){return s=sr(s,e),r||(r=s.length>1),s}),ln(e,Cc(e),n),r&&(n=Lt(n,bI|mI|wI,yI));for(var i=t.length;i--;)Ol(n,t[i]);return n});function Xs(e,t,n,r){if(!oe(e))return e;t=sr(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=hn(t[i]),f=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var c=a[u];f=r?r(c,u,a):void 0,f===void 0&&(f=oe(c)?c:Dn(t[i+1])?[]:{})}Is(a,u,f),a=a[u]}return e}function Sy(e,t,n){for(var r=-1,i=t.length,s={};++r<i;){var o=t[r],a=Br(e,o);n(a,o)&&Xs(s,sr(o,e),a)}return s}function El(e,t){if(e==null)return{};var n=se(Cc(e),function(r){return[r]});return t=$(t),Sy(e,n,function(r,i){return t(r,i[0])})}function xy(e,t){return El(e,Ys($(t)))}function Ty(e){return Oc(2,e)}function AI(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Ry(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,s=et(e),o=t!==void 0,a=t===null,u=t===t,f=et(t);if(!a&&!f&&!s&&e>t||s&&o&&u&&!a&&!f||r&&o&&u||!n&&u||!i)return 1;if(!r&&!s&&!f&&e<t||f&&n&&i&&!r&&!s||a&&n&&i||!o&&i||!u)return-1}return 0}function OI(e,t,n){for(var r=-1,i=e.criteria,s=t.criteria,o=i.length,a=n.length;++r<o;){var u=Ry(i[r],s[r]);if(u){if(r>=a)return u;var f=n[r];return u*(f=="desc"?-1:1)}}return e.index-t.index}function Py(e,t,n){t.length?t=se(t,function(s){return I(s)?function(o){return Br(o,s.length===1?s[0]:s)}:s}):t=[Ve];var r=-1;t=se(t,dt($));var i=Hg(e,function(s,o,a){var u=se(t,function(f){return f(s)});return{criteria:u,index:++r,value:s}});return AI(i,function(s,o){return OI(s,o,n)})}function Ny(e,t,n,r){return e==null?[]:(I(t)||(t=t==null?[]:[t]),n=r?void 0:n,I(n)||(n=n==null?[]:[n]),Py(e,t,n))}function Sl(e){return zn(function(t){return t=se(t,dt($)),C(function(n){var r=this;return e(t,function(i){return pt(i,r,n)})})})}var My=Sl(se),EI=C,SI=Math.min,$y=EI(function(e,t){t=t.length==1&&I(t[0])?se(t[0],dt($)):se(Pe(t,1),dt($));var n=t.length;return C(function(r){for(var i=-1,s=SI(r.length,n);++i<s;)r[i]=t[i].call(this,r[i]);return pt(e,this,r)})}),Iy=Sl(Lg),Dy=Sl(kc),xI=9007199254740991,TI=Math.floor;function xl(e,t){var n="";if(!e||t<1||t>xI)return n;do t%2&&(n+=e),t=TI(t/2),t&&(e+=e);while(t);return n}var RI=Hc("length"),Cy="\\ud800-\\udfff",PI="\\u0300-\\u036f",NI="\\ufe20-\\ufe2f",MI="\\u20d0-\\u20ff",$I=PI+NI+MI,II="\\ufe0e\\ufe0f",DI="["+Cy+"]",Tl="["+$I+"]",Rl="\\ud83c[\\udffb-\\udfff]",CI="(?:"+Tl+"|"+Rl+")",Ly="[^"+Cy+"]",jy="(?:\\ud83c[\\udde6-\\uddff]){2}",Fy="[\\ud800-\\udbff][\\udc00-\\udfff]",LI="\\u200d",By=CI+"?",zy="["+II+"]?",jI="(?:"+LI+"(?:"+[Ly,jy,Fy].join("|")+")"+zy+By+")*",FI=zy+By+jI,BI="(?:"+[Ly+Tl+"?",Tl,jy,Fy,DI].join("|")+")",Uy=RegExp(Rl+"(?="+Rl+")|"+BI+FI,"g");function zI(e){for(var t=Uy.lastIndex=0;Uy.test(e);)++t;return t}function Li(e){return Mi(e)?zI(e):RI(e)}var UI=Math.ceil;function Za(e,t){t=t===void 0?" ":lt(t);var n=t.length;if(n<2)return n?xl(t,e):t;var r=xl(t,UI(e/Li(t)));return Mi(t)?ar(Yt(r),0,e).join(""):r.slice(0,e)}var kI=Math.ceil,VI=Math.floor;function ky(e,t,n){e=V(e),t=D(t);var r=t?Li(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Za(VI(i),n)+e+Za(kI(i),n)}function Vy(e,t,n){e=V(e),t=D(t);var r=t?Li(e):0;return t&&r<t?e+Za(t-r,n):e}function Wy(e,t,n){e=V(e),t=D(t);var r=t?Li(e):0;return t&&r<t?Za(t-r,n)+e:e}var WI=/^\s+/,qI=we.parseInt;function qy(e,t,n){return n||t==null?t=0:t&&(t=+t),qI(V(e).replace(WI,""),t||0)}var GI=32,Js=C(function(e,t){var n=rr(t,Ri(Js));return Cn(e,GI,void 0,t,n)});Js.placeholder={};var HI=64,Qa=C(function(e,t){var n=rr(t,Ri(Qa));return Cn(e,HI,void 0,t,n)});Qa.placeholder={};var Gy=Va(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function KI(e,t){return Sy(e,t,function(n,r){return ka(e,r)})}var Hy=zn(function(e,t){return e==null?{}:KI(e,t)});function Pl(e){for(var t,n=this;n instanceof wa;){var r=l_(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function Ky(e){return function(t){return e==null?void 0:Br(e,t)}}function YI(e,t,n,r){for(var i=n-1,s=e.length;++i<s;)if(r(e[i],t))return i;return-1}var XI=Array.prototype,Yy=XI.splice;function Nl(e,t,n,r){var i=r?YI:Ti,s=-1,o=t.length,a=e;for(e===t&&(t=tt(t)),n&&(a=se(e,dt(n)));++s<o;)for(var u=0,f=t[s],c=n?n(f):f;(u=i(a,c,u,r))>-1;)a!==e&&Yy.call(a,u,1),Yy.call(e,u,1);return e}function Ml(e,t){return e&&e.length&&t&&t.length?Nl(e,t):e}var Xy=C(Ml);function Jy(e,t,n){return e&&e.length&&t&&t.length?Nl(e,t,$(n)):e}function Zy(e,t,n){return e&&e.length&&t&&t.length?Nl(e,t,void 0,n):e}var JI=Array.prototype,ZI=JI.splice;function Qy(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==s){var s=i;Dn(i)?ZI.call(e,i,1):Ol(e,i)}}return e}var eb=zn(function(e,t){var n=e==null?0:e.length,r=mc(e,t);return Qy(e,se(t,function(i){return Dn(i,n)?+i:i}).sort(Ry)),r}),QI=Math.floor,eD=Math.random;function $l(e,t){return e+QI(eD()*(t-e+1))}var tD=parseFloat,nD=Math.min,rD=Math.random;function tb(e,t,n){if(n&&typeof n!="boolean"&&qe(e,t,n)&&(t=n=void 0),n===void 0&&(typeof t=="boolean"?(n=t,t=void 0):typeof e=="boolean"&&(n=e,e=void 0)),e===void 0&&t===void 0?(e=0,t=1):(e=fn(e),t===void 0?(t=e,e=0):t=fn(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=rD();return nD(e+i*(t-e+tD("1e-"+((i+"").length-1))),t)}return $l(e,t)}var iD=Math.ceil,sD=Math.max;function oD(e,t,n,r){for(var i=-1,s=sD(iD((t-e)/(n||1)),0),o=Array(s);s--;)o[r?s:++i]=e,e+=n;return o}function nb(e){return function(t,n,r){return r&&typeof r!="number"&&qe(t,n,r)&&(n=r=void 0),t=fn(t),n===void 0?(n=t,t=0):n=fn(n),r=r===void 0?t<n?1:-1:fn(r),oD(t,n,r,e)}}var rb=nb(),ib=nb(!0),aD=256,sb=zn(function(e,t){return Cn(e,aD,void 0,void 0,void 0,t)});function ob(e,t,n,r,i){return i(e,function(s,o,a){n=r?(r=!1,s):t(n,s,o,a)}),n}function ab(e,t,n){var r=I(e)?Tc:ob,i=arguments.length<3;return r(e,$(t),n,i,fr)}function uD(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function ub(e,t,n){var r=I(e)?uD:ob,i=arguments.length<3;return r(e,$(t),n,i,Ng)}function fb(e,t){var n=I(e)?ur:Bg;return n(e,Ys($(t)))}function cb(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],s=e.length;for(t=$(t);++r<s;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Qy(e,i),n}function lb(e,t,n){return(n?qe(e,t,n):t===void 0)?t=1:t=D(t),xl(V(e),t)}function hb(){var e=arguments,t=V(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var fD="Expected a function";function pb(e,t){if(typeof e!="function")throw new TypeError(fD);return t=t===void 0?t:D(t),C(e,t)}function db(e,t,n){t=sr(t,e);var r=-1,i=t.length;for(i||(i=1,e=void 0);++r<i;){var s=e?.[hn(t[r])];s===void 0&&(r=i,s=n),e=cn(s)?s.call(e):s}return e}var cD=Array.prototype,lD=cD.reverse;function eu(e){return e==null?e:lD.call(e)}var _b=Mc("round");function vb(e){var t=e.length;return t?e[$l(0,t-1)]:void 0}function hD(e){return vb(Vr(e))}function gb(e){var t=I(e)?vb:hD;return t(e)}function tu(e,t){var n=-1,r=e.length,i=r-1;for(t=t===void 0?r:t;++n<t;){var s=$l(n,i),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}function pD(e,t){return tu(tt(e),zr(t,0,e.length))}function dD(e,t){var n=Vr(e);return tu(n,zr(t,0,n.length))}function yb(e,t,n){(n?qe(e,t,n):t===void 0)?t=1:t=D(t);var r=I(e)?pD:dD;return r(e,t)}function bb(e,t,n){return e==null?e:Xs(e,t,n)}function mb(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:Xs(e,t,n,r)}function _D(e){return tu(tt(e))}function vD(e){return tu(Vr(e))}function wb(e){var t=I(e)?_D:vD;return t(e)}var gD="[object Map]",yD="[object Set]";function Ab(e){if(e==null)return 0;if(We(e))return Hs(e)?Li(e):e.length;var t=pn(e);return t==gD||t==yD?e.size:gc(e).length}function Ob(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&qe(e,t,n)?(t=0,n=r):(t=t==null?0:D(t),n=n===void 0?r:D(n)),Ct(e,t,n)):[]}var Eb=Ii(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function bD(e,t){var n;return fr(e,function(r,i,s){return n=t(r,i,s),!n}),!!n}function Sb(e,t,n){var r=I(e)?kc:bD;return n&&qe(e,t,n)&&(t=void 0),r(e,$(t))}var xb=C(function(e,t){if(e==null)return[];var n=t.length;return n>1&&qe(e,t[0],t[1])?t=[]:n>2&&qe(t[0],t[1],t[2])&&(t=[t[0]]),Py(e,Pe(t,1),[])}),mD=4294967295,wD=mD-1,AD=Math.floor,OD=Math.min;function Il(e,t,n,r){var i=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var o=t!==t,a=t===null,u=et(t),f=t===void 0;i<s;){var c=AD((i+s)/2),l=n(e[c]),h=l!==void 0,d=l===null,_=l===l,v=et(l);if(o)var g=r||_;else f?g=_&&(r||h):a?g=_&&h&&(r||!d):u?g=_&&h&&!d&&(r||!v):d||v?g=!1:g=r?l<=t:l<t;g?i=c+1:s=c}return OD(s,wD)}var ED=4294967295,SD=ED>>>1;function nu(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t=="number"&&t===t&&i<=SD){for(;r<i;){var s=r+i>>>1,o=e[s];o!==null&&!et(o)&&(n?o<=t:o<t)?r=s+1:i=s}return i}return Il(e,t,Ve,n)}function Tb(e,t){return nu(e,t)}function Rb(e,t,n){return Il(e,t,$(n))}function Pb(e,t){var n=e==null?0:e.length;if(n){var r=nu(e,t);if(r<n&&It(e[r],t))return r}return-1}function Nb(e,t){return nu(e,t,!0)}function Mb(e,t,n){return Il(e,t,$(n),!0)}function $b(e,t){var n=e==null?0:e.length;if(n){var r=nu(e,t,!0)-1;if(It(e[r],t))return r}return-1}function Ib(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n],a=t?t(o):o;if(!n||!It(a,u)){var u=a;s[i++]=o===0?0:o}}return s}function Db(e){return e&&e.length?Ib(e):[]}function Cb(e,t){return e&&e.length?Ib(e,$(t)):[]}var xD=4294967295;function Lb(e,t,n){return n&&typeof n!="number"&&qe(e,t,n)&&(t=n=void 0),n=n===void 0?xD:n>>>0,n?(e=V(e),e&&(typeof t=="string"||t!=null&&!Xa(t))&&(t=lt(t),!t&&Mi(e))?ar(Yt(e),0,n):e.split(t,n)):[]}var TD="Expected a function",RD=Math.max;function jb(e,t){if(typeof e!="function")throw new TypeError(TD);return t=t==null?0:RD(D(t),0),C(function(n){var r=n[t],i=ar(n,0,t);return r&&or(i,r),pt(e,this,i)})}var Fb=Ii(function(e,t,n){return e+(n?" ":"")+La(t)});function Bb(e,t,n){return e=V(e),n=n==null?0:zr(D(n),0,e.length),t=lt(t),e.slice(n,n+t.length)==t}function zb(){return{}}function Ub(){return""}function kb(){return!0}var Vb=ya(function(e,t){return e-t},0);function Wb(e){return e&&e.length?bl(e,Ve):0}function qb(e,t){return e&&e.length?bl(e,$(t)):0}function Gb(e){var t=e==null?0:e.length;return t?Ct(e,1,t):[]}function Hb(e,t,n){return e&&e.length?(t=n||t===void 0?1:D(t),Ct(e,0,t<0?0:t)):[]}function Kb(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:D(t),t=r-t,Ct(e,t<0?0:t,r)):[]}function Yb(e,t){return e&&e.length?Ha(e,$(t),!1,!0):[]}function Xb(e,t){return e&&e.length?Ha(e,$(t)):[]}function Jb(e,t){return t(e),e}var Zb=Object.prototype,PD=Zb.hasOwnProperty;function Qb(e,t,n,r){return e===void 0||It(e,Zb[n])&&!PD.call(r,n)?t:e}var ND={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function MD(e){return"\\"+ND[e]}var em=/<%=([\s\S]+?)%>/g,$D=/<%-([\s\S]+?)%>/g,ID=/<%([\s\S]+?)%>/g,ru={escape:$D,evaluate:ID,interpolate:em,variable:"",imports:{_:{escape:al}}},DD="Invalid `variable` option passed into `_.template`",CD=/\b__p \+= '';/g,LD=/\b(__p \+=) '' \+/g,jD=/(__e\(.*?\)|\b__t\)) \+\n'';/g,FD=/[()=,{}\[\]\/\s]/,BD=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,iu=/($^)/,zD=/['\n\r\u2028\u2029\\]/g,UD=Object.prototype,tm=UD.hasOwnProperty;function nm(e,t,n){var r=ru.imports._.templateSettings||ru;n&&qe(e,t,n)&&(t=void 0),e=V(e),t=js({},t,r,Qb);var i=js({},t.imports,r.imports,Qb),s=de(i),o=pl(i,s),a,u,f=0,c=t.interpolate||iu,l="__p += '",h=RegExp((t.escape||iu).source+"|"+c.source+"|"+(c===em?BD:iu).source+"|"+(t.evaluate||iu).source+"|$","g"),d=tm.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
4
|
+
`:"";e.replace(h,function(g,y,b,w,m,A){return b||(b=w),l+=e.slice(f,A).replace(zD,MD),y&&(a=!0,l+=`' +
|
|
5
5
|
__e(`+y+`) +
|
|
6
6
|
'`),m&&(u=!0,l+=`';
|
|
7
7
|
`+m+`;
|
|
8
8
|
__p += '`),b&&(l+=`' +
|
|
9
9
|
((__t = (`+b+`)) == null ? '' : __t) +
|
|
10
10
|
'`),f=A+g.length,g}),l+=`';
|
|
11
|
-
`;var _=
|
|
11
|
+
`;var _=tm.call(t,"variable")&&t.variable;if(!_)l=`with (obj) {
|
|
12
12
|
`+l+`
|
|
13
13
|
}
|
|
14
|
-
`;else if(
|
|
14
|
+
`;else if(FD.test(_))throw new Error(DD);l=(u?l.replace(CD,""):l).replace(LD,"$1").replace(jD,"$1;"),l="function("+(_||"obj")+`) {
|
|
15
15
|
`+(_?"":`obj || (obj = {});
|
|
16
16
|
`)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(u?`, __j = Array.prototype.join;
|
|
17
17
|
function print() { __p += __j.call(arguments, '') }
|
|
18
18
|
`:`;
|
|
19
19
|
`)+l+`return __p
|
|
20
|
-
}`;var v=ic(function(){return Function(s,d+"return "+l).apply(void 0,o)});if(v.source=l,Aa(v))throw v;return v}var oD="Expected a function";function Nb(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(oD);return oe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Mc(e,t,{leading:r,maxWait:t,trailing:i})}function qs(e,t){return t(e)}var aD=9007199254740991,vl=4294967295,uD=Math.min;function $b(e,t){if(e=D(e),e<1||e>aD)return[];var n=vl,r=uD(e,vl);t=pn(t),e-=vl;for(var i=Jf(r,t);++n<e;)t(n);return i}function gl(){return this}function Mb(e,t){var n=e;return n instanceof L&&(n=n.value()),fc(t,function(r,i){return i.func.apply(i.thisArg,nr([r],i.args))},n)}function Gs(){return Mb(this.__wrapped__,this.__actions__)}function Ib(e){return W(e).toLowerCase()}function Db(e){return I(e)?se(e,cn):Qe(e)?[e]:et(d_(W(e)))}var Cb=9007199254740991;function Lb(e){return e?Ir(D(e),-Cb,Cb):e===0?e:0}function jb(e){return W(e).toUpperCase()}function Fb(e,t,n){var r=I(e),i=r||Dn(e)||Nr(e);if(t=M(t),n==null){var s=e&&e.constructor;i?n=r?new s:[]:oe(e)?n=un(s)?yi(wa(e)):{}:n={}}return(i?Nt:hn)(e,function(o,a,u){return t(n,o,a,u)}),n}function Bb(e,t){for(var n=e.length;n--&&mi(t,e[n],0)>-1;);return n}function zb(e,t){for(var n=-1,r=e.length;++n<r&&mi(t,e[n],0)>-1;);return n}function Ub(e,t,n){if(e=W(e),e&&(n||t===void 0))return Rd(e);if(!e||!(t=ct(t)))return e;var r=Ht(e),i=Ht(t),s=zb(r,i),o=Bb(r,i)+1;return rr(r,s,o).join("")}function Vb(e,t,n){if(e=W(e),e&&(n||t===void 0))return e.slice(0,Td(e)+1);if(!e||!(t=ct(t)))return e;var r=Ht(e),i=Bb(r,Ht(t))+1;return rr(r,0,i).join("")}var fD=/^\s+/;function Wb(e,t,n){if(e=W(e),e&&(n||t===void 0))return e.replace(fD,"");if(!e||!(t=ct(t)))return e;var r=Ht(e),i=zb(r,Ht(t));return rr(r,i).join("")}var cD=30,lD="...",hD=/\w*$/;function kb(e,t){var n=cD,r=lD;if(oe(t)){var i="separator"in t?t.separator:i;n="length"in t?D(t.length):n,r="omission"in t?ct(t.omission):r}e=W(e);var s=e.length;if(Ei(e)){var o=Ht(e);s=o.length}if(n>=s)return e;var a=n-Pi(r);if(a<1)return r;var u=o?rr(o,0,a).join(""):e.slice(0,a);if(i===void 0)return u+r;if(o&&(a+=u.length-a),Fa(i)){if(e.slice(a).search(i)){var f,c=u;for(i.global||(i=RegExp(i.source,W(hD.exec(i))+"g")),i.lastIndex=0;f=i.exec(c);)var l=f.index;u=u.slice(0,l===void 0?a:l)}}else if(e.indexOf(ct(i),a)!=a){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r}function qb(e){return Xf(e,1)}var pD={"&":"&","<":"<",">":">",""":'"',"'":"'"},dD=cc(pD),Gb=/&(?:amp|lt|gt|quot|#39);/g,_D=RegExp(Gb.source);function Hb(e){return e=W(e),e&&_D.test(e)?e.replace(Gb,dD):e}var vD=1/0,gD=Ti&&1/Ra(new Ti([,-0]))[1]==vD?function(e){return new Ti(e)}:ca,yD=200;function or(e,t,n){var r=-1,i=_a,s=e.length,o=!0,a=[],u=a;if(n)o=!1,i=jc;else if(s>=yD){var f=t?null:gD(e);if(f)return Ra(f);o=!1,i=Cs,u=new Cr}else u=t?[]:a;e:for(;++r<s;){var c=e[r],l=t?t(c):c;if(c=n||c!==0?c:0,o&&l===l){for(var h=u.length;h--;)if(u[h]===l)continue e;t&&u.push(l),a.push(c)}else i(u,l,n)||(u!==a&&u.push(l),a.push(c))}return a}var Kb=C(function(e){return or(Pe(e,1,fe,!0))}),Yb=C(function(e){var t=dt(e);return fe(t)&&(t=void 0),or(Pe(e,1,fe,!0),M(t))}),Xb=C(function(e){var t=dt(e);return t=typeof t=="function"?t:void 0,or(Pe(e,1,fe,!0),void 0,t)});function Jb(e){return e&&e.length?or(e):[]}function Zb(e,t){return e&&e.length?or(e,M(t)):[]}function Qb(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?or(e,void 0,t):[]}var bD=0;function em(e){var t=++bD;return W(e)+t}function tm(e,t){return e==null?!0:sl(e,t)}var mD=Math.max;function Ha(e){if(!(e&&e.length))return[];var t=0;return e=ir(e,function(n){if(fe(n))return t=mD(n.length,t),!0}),Jf(t,function(n){return se(e,Pc(n))})}function yl(e,t){if(!(e&&e.length))return[];var n=Ha(e);return t==null?n:se(n,function(r){return ht(t,void 0,r)})}function nm(e,t,n,r){return Ws(e,t,n(Mr(e,t)),r)}function rm(e,t,n){return e==null?e:nm(e,t,pn(n))}function im(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:nm(e,t,pn(n),r)}var sm=xi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()});function om(e){return e==null?[]:Yc(e,qe(e))}var am=C(function(e,t){return fe(e)?Fs(e,t):[]});function um(e,t){return ks(pn(t),e)}var fm=jn(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(s){return nc(s,e)};return t>1||this.__actions__.length||!(r instanceof L)||!$n(n)?this.thru(i):(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:qs,args:[i],thisArg:void 0}),new Pt(r,this.__chain__).thru(function(s){return t&&!s.length&&s.push(void 0),s}))});function cm(){return dc(this)}function lm(){var e=this.__wrapped__;if(e instanceof L){var t=e;return this.__actions__.length&&(t=new L(this)),t=t.reverse(),t.__actions__.push({func:qs,args:[Va],thisArg:void 0}),new Pt(t,this.__chain__)}return this.thru(Va)}function bl(e,t,n){var r=e.length;if(r<2)return r?or(e[0]):[];for(var i=-1,s=Array(r);++i<r;)for(var o=e[i],a=-1;++a<r;)a!=i&&(s[i]=Fs(s[i]||o,e[a],t,n));return or(Pe(s,1),t,n)}var hm=C(function(e){return bl(ir(e,fe))}),pm=C(function(e){var t=dt(e);return fe(t)&&(t=void 0),bl(ir(e,fe),M(t))}),dm=C(function(e){var t=dt(e);return t=typeof t=="function"?t:void 0,bl(ir(e,fe),void 0,t)}),_m=C(Ha);function vm(e,t,n){for(var r=-1,i=e.length,s=t.length,o={};++r<i;){var a=r<s?t[r]:void 0;n(o,e[r],a)}return o}function gm(e,t){return vm(e||[],t||[],xs)}function ym(e,t){return vm(e||[],t||[],Ws)}var bm=C(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n=typeof n=="function"?(e.pop(),n):void 0,yl(e,n)});const T={chunk:G_,compact:mv,concat:wv,difference:Kv,differenceBy:Yv,differenceWith:Xv,drop:Zv,dropRight:Qv,dropRightWhile:eg,dropWhile:tg,fill:lg,findIndex:qc,findLastIndex:Gc,flatten:rc,flattenDeep:Eg,flattenDepth:Sg,fromPairs:Cg,head:Hc,indexOf:kg,initial:qg,intersection:Gg,intersectionBy:Hg,intersectionWith:Kg,join:E0,lastIndexOf:T0,nth:Y0,pull:Oy,pullAll:pl,pullAllBy:Ey,pullAllWith:Sy,pullAt:Ty,remove:jy,reverse:Va,slice:Xy,sortedIndex:eb,sortedIndexBy:tb,sortedIndexOf:nb,sortedLastIndex:rb,sortedLastIndexBy:ib,sortedLastIndexOf:sb,sortedUniq:ab,sortedUniqBy:ub,tail:bb,take:mb,takeRight:wb,takeRightWhile:Ab,takeWhile:Ob,union:Kb,unionBy:Yb,unionWith:Xb,uniq:Jb,uniqBy:Zb,uniqWith:Qb,unzip:Ha,unzipWith:yl,without:am,xor:hm,xorBy:pm,xorWith:dm,zip:_m,zipObject:gm,zipObjectDeep:ym,zipWith:bm},Y={countBy:Fv,every:cg,filter:pg,find:_g,findLast:yg,flatMap:wg,flatMapDeep:Ag,flatMapDepth:Og,forEach:Fc,forEachRight:zc,groupBy:Fg,includes:Wg,invokeMap:t0,keyBy:x0,map:Bs,orderBy:ry,partition:by,reduce:Dy,reduceRight:Cy,reject:Ly,sample:ky,sampleSize:qy,shuffle:Ky,size:Yy,some:Zy,sortBy:Qy},wD={now:js},ce={after:$d,ary:Xf,before:sc,bind:Ds,bindKey:Oa,curry:Ma,curryRight:Ia,debounce:Mc,defer:Gv,delay:Hv,flip:xg,memoize:Is,once:ey,overArgs:sy,partial:ks,partialRight:Ua,rearg:My,rest:zy,spread:cb,throttle:Nb,unary:qb,wrap:um},N={castArray:k_,clone:gv,cloneDeep:Ta,cloneDeepWith:yv,cloneWith:bv,conformsTo:Cv,eq:$t,gt:Bg,gte:zg,isArguments:er,isArrayBuffer:r0,isArrayLike:We,isArrayLikeObject:fe,isBoolean:i0,isBuffer:Dn,isDate:o0,isElement:a0,isEmpty:u0,isEqual:Ri,isEqualWith:f0,isError:Aa,isFinite:c0,isFunction:un,isInteger:Zc,isLength:Ts,isMap:wc,isMatch:l0,isMatchWith:h0,isNaN:p0,isNative:d0,isNil:_0,isNull:v0,isNumber:Qc,isObjectLike:ae,isPlainObject:Oi,isRegExp:Fa,isSafeInteger:b0,isSet:Ac,isString:zs,isSymbol:Qe,isTypedArray:Nr,isUndefined:m0,isWeakMap:w0,isWeakSet:A0,lt:N0,lte:$0,toArray:rl,toFinite:an,toLength:kc,toNumber:lt,toPlainObject:Cc,toSafeInteger:Lb,toString:W},Ge={add:xd,ceil:q_,divide:Jv,floor:Tg,max:L0,maxBy:j0,mean:B0,meanBy:z0,min:k0,minBy:q0,multiply:H0,round:Vy,subtract:vb,sum:gb,sumBy:yb},ml={clamp:H_,inRange:Vg,random:Ry},$={assign:h_,assignIn:ec,assignInWith:Ns,assignWith:p_,at:v_,create:Bv,defaults:Vv,defaultsDeep:kv,findKey:gg,findLastKey:bg,forIn:$g,forInRight:Mg,forOwn:Ig,forOwnRight:Dg,functions:Lg,functionsIn:jg,get:ma,has:Ug,hasIn:Na,invert:Xg,invertBy:Zg,invoke:e0,keysIn:qe,mapKeys:M0,mapValues:I0,merge:U0,mergeWith:Lc,omit:J0,omitBy:Q0,pick:my,pickBy:ol,result:Uy,set:Gy,setWith:Hy,toPairs:Uc,toPairsIn:Vc,transform:Fb,unset:tm,update:rm,updateWith:im,values:Lr,valuesIn:om},dn={at:fm,chain:dc,commit:Oc,next:il,plant:ll,reverse:lm,tap:Eb,toIterator:gl,value:Gs,wrapperChain:cm},k={camelCase:W_,capitalize:uc,deburr:lc,endsWith:ig,escape:Wc,escapeRegExp:ug,kebabCase:S0,lowerCase:R0,lowerFirst:P0,pad:_y,padEnd:vy,padStart:gy,parseInt:yy,repeat:Fy,replace:By,snakeCase:Jy,split:fb,startCase:lb,startsWith:hb,template:Pb,templateSettings:qa,toLower:Ib,toUpper:jb,trim:Ub,trimEnd:Vb,trimStart:Wb,truncate:kb,unescape:Hb,upperCase:sm,upperFirst:Ea,words:hc},H={attempt:ic,bindAll:y_,cond:Mv,conforms:Dv,constant:ha,defaultTo:zv,flow:Pg,flowRight:Ng,iteratee:O0,matches:D0,matchesProperty:C0,method:V0,methodOf:W0,noop:ca,nthArg:X0,over:iy,overEvery:oy,overSome:ay,property:Nc,propertyOf:wy,range:Ny,rangeRight:$y,stubArray:Sa,stubFalse:ga,stubObject:pb,stubString:db,stubTrue:_b,times:$b,toPath:Db,uniqueId:em};function AD(){var e=new L(this.__wrapped__);return e.__actions__=et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=et(this.__views__),e}function OD(){if(this.__filtered__){var e=new L(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}var ED=Math.max,SD=Math.min;function xD(e,t,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=SD(t,e+o);break;case"takeRight":e=ED(e,t-o);break}}return{start:e,end:t}}var TD=1,RD=2,PD=Math.min;function ND(){var e=this.__wrapped__.value(),t=this.__dir__,n=I(e),r=t<0,i=n?e.length:0,s=xD(0,i,this.__views__),o=s.start,a=s.end,u=a-o,f=r?a:o-1,c=this.__iteratees__,l=c.length,h=0,d=PD(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return Mb(e,this.__actions__);var _=[];e:for(;u--&&h<d;){f+=t;for(var v=-1,g=e[f];++v<l;){var y=c[v],b=y.iteratee,w=y.type,m=b(g);if(w==RD)g=m;else if(!m){if(w==TD)continue e;break e}}_[h++]=g}return _}/**
|
|
21
|
-
|
|
22
|
-
* Lodash (Custom Build) <https://lodash.com/>
|
|
23
|
-
* Build: `lodash modularize exports="es" -o ./`
|
|
24
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
25
|
-
* Released under MIT license <https://lodash.com/license>
|
|
26
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
27
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
28
|
-
*/var $D="4.17.21",MD=2,ID=1,DD=3,mm=4294967295,CD=Array.prototype,LD=Object.prototype,wm=LD.hasOwnProperty,Am=Me?Me.iterator:void 0,jD=Math.max,Om=Math.min,wl=function(e){return function(t,n,r){if(r==null){var i=oe(n),s=i&&de(n),o=s&&s.length&&La(n,s);(o?o.length:i)||(r=n,n=t,t=this)}return e(t,n,r)}}(G0);p.after=ce.after,p.ary=ce.ary,p.assign=$.assign,p.assignIn=$.assignIn,p.assignInWith=$.assignInWith,p.assignWith=$.assignWith,p.at=$.at,p.before=ce.before,p.bind=ce.bind,p.bindAll=H.bindAll,p.bindKey=ce.bindKey,p.castArray=N.castArray,p.chain=dn.chain,p.chunk=T.chunk,p.compact=T.compact,p.concat=T.concat,p.cond=H.cond,p.conforms=H.conforms,p.constant=H.constant,p.countBy=Y.countBy,p.create=$.create,p.curry=ce.curry,p.curryRight=ce.curryRight,p.debounce=ce.debounce,p.defaults=$.defaults,p.defaultsDeep=$.defaultsDeep,p.defer=ce.defer,p.delay=ce.delay,p.difference=T.difference,p.differenceBy=T.differenceBy,p.differenceWith=T.differenceWith,p.drop=T.drop,p.dropRight=T.dropRight,p.dropRightWhile=T.dropRightWhile,p.dropWhile=T.dropWhile,p.fill=T.fill,p.filter=Y.filter,p.flatMap=Y.flatMap,p.flatMapDeep=Y.flatMapDeep,p.flatMapDepth=Y.flatMapDepth,p.flatten=T.flatten,p.flattenDeep=T.flattenDeep,p.flattenDepth=T.flattenDepth,p.flip=ce.flip,p.flow=H.flow,p.flowRight=H.flowRight,p.fromPairs=T.fromPairs,p.functions=$.functions,p.functionsIn=$.functionsIn,p.groupBy=Y.groupBy,p.initial=T.initial,p.intersection=T.intersection,p.intersectionBy=T.intersectionBy,p.intersectionWith=T.intersectionWith,p.invert=$.invert,p.invertBy=$.invertBy,p.invokeMap=Y.invokeMap,p.iteratee=H.iteratee,p.keyBy=Y.keyBy,p.keys=de,p.keysIn=$.keysIn,p.map=Y.map,p.mapKeys=$.mapKeys,p.mapValues=$.mapValues,p.matches=H.matches,p.matchesProperty=H.matchesProperty,p.memoize=ce.memoize,p.merge=$.merge,p.mergeWith=$.mergeWith,p.method=H.method,p.methodOf=H.methodOf,p.mixin=wl,p.negate=Vs,p.nthArg=H.nthArg,p.omit=$.omit,p.omitBy=$.omitBy,p.once=ce.once,p.orderBy=Y.orderBy,p.over=H.over,p.overArgs=ce.overArgs,p.overEvery=H.overEvery,p.overSome=H.overSome,p.partial=ce.partial,p.partialRight=ce.partialRight,p.partition=Y.partition,p.pick=$.pick,p.pickBy=$.pickBy,p.property=H.property,p.propertyOf=H.propertyOf,p.pull=T.pull,p.pullAll=T.pullAll,p.pullAllBy=T.pullAllBy,p.pullAllWith=T.pullAllWith,p.pullAt=T.pullAt,p.range=H.range,p.rangeRight=H.rangeRight,p.rearg=ce.rearg,p.reject=Y.reject,p.remove=T.remove,p.rest=ce.rest,p.reverse=T.reverse,p.sampleSize=Y.sampleSize,p.set=$.set,p.setWith=$.setWith,p.shuffle=Y.shuffle,p.slice=T.slice,p.sortBy=Y.sortBy,p.sortedUniq=T.sortedUniq,p.sortedUniqBy=T.sortedUniqBy,p.split=k.split,p.spread=ce.spread,p.tail=T.tail,p.take=T.take,p.takeRight=T.takeRight,p.takeRightWhile=T.takeRightWhile,p.takeWhile=T.takeWhile,p.tap=dn.tap,p.throttle=ce.throttle,p.thru=qs,p.toArray=N.toArray,p.toPairs=$.toPairs,p.toPairsIn=$.toPairsIn,p.toPath=H.toPath,p.toPlainObject=N.toPlainObject,p.transform=$.transform,p.unary=ce.unary,p.union=T.union,p.unionBy=T.unionBy,p.unionWith=T.unionWith,p.uniq=T.uniq,p.uniqBy=T.uniqBy,p.uniqWith=T.uniqWith,p.unset=$.unset,p.unzip=T.unzip,p.unzipWith=T.unzipWith,p.update=$.update,p.updateWith=$.updateWith,p.values=$.values,p.valuesIn=$.valuesIn,p.without=T.without,p.words=k.words,p.wrap=ce.wrap,p.xor=T.xor,p.xorBy=T.xorBy,p.xorWith=T.xorWith,p.zip=T.zip,p.zipObject=T.zipObject,p.zipObjectDeep=T.zipObjectDeep,p.zipWith=T.zipWith,p.entries=$.toPairs,p.entriesIn=$.toPairsIn,p.extend=$.assignIn,p.extendWith=$.assignInWith,wl(p,p),p.add=Ge.add,p.attempt=H.attempt,p.camelCase=k.camelCase,p.capitalize=k.capitalize,p.ceil=Ge.ceil,p.clamp=ml.clamp,p.clone=N.clone,p.cloneDeep=N.cloneDeep,p.cloneDeepWith=N.cloneDeepWith,p.cloneWith=N.cloneWith,p.conformsTo=N.conformsTo,p.deburr=k.deburr,p.defaultTo=H.defaultTo,p.divide=Ge.divide,p.endsWith=k.endsWith,p.eq=N.eq,p.escape=k.escape,p.escapeRegExp=k.escapeRegExp,p.every=Y.every,p.find=Y.find,p.findIndex=T.findIndex,p.findKey=$.findKey,p.findLast=Y.findLast,p.findLastIndex=T.findLastIndex,p.findLastKey=$.findLastKey,p.floor=Ge.floor,p.forEach=Y.forEach,p.forEachRight=Y.forEachRight,p.forIn=$.forIn,p.forInRight=$.forInRight,p.forOwn=$.forOwn,p.forOwnRight=$.forOwnRight,p.get=$.get,p.gt=N.gt,p.gte=N.gte,p.has=$.has,p.hasIn=$.hasIn,p.head=T.head,p.identity=Ve,p.includes=Y.includes,p.indexOf=T.indexOf,p.inRange=ml.inRange,p.invoke=$.invoke,p.isArguments=N.isArguments,p.isArray=I,p.isArrayBuffer=N.isArrayBuffer,p.isArrayLike=N.isArrayLike,p.isArrayLikeObject=N.isArrayLikeObject,p.isBoolean=N.isBoolean,p.isBuffer=N.isBuffer,p.isDate=N.isDate,p.isElement=N.isElement,p.isEmpty=N.isEmpty,p.isEqual=N.isEqual,p.isEqualWith=N.isEqualWith,p.isError=N.isError,p.isFinite=N.isFinite,p.isFunction=N.isFunction,p.isInteger=N.isInteger,p.isLength=N.isLength,p.isMap=N.isMap,p.isMatch=N.isMatch,p.isMatchWith=N.isMatchWith,p.isNaN=N.isNaN,p.isNative=N.isNative,p.isNil=N.isNil,p.isNull=N.isNull,p.isNumber=N.isNumber,p.isObject=oe,p.isObjectLike=N.isObjectLike,p.isPlainObject=N.isPlainObject,p.isRegExp=N.isRegExp,p.isSafeInteger=N.isSafeInteger,p.isSet=N.isSet,p.isString=N.isString,p.isSymbol=N.isSymbol,p.isTypedArray=N.isTypedArray,p.isUndefined=N.isUndefined,p.isWeakMap=N.isWeakMap,p.isWeakSet=N.isWeakSet,p.join=T.join,p.kebabCase=k.kebabCase,p.last=dt,p.lastIndexOf=T.lastIndexOf,p.lowerCase=k.lowerCase,p.lowerFirst=k.lowerFirst,p.lt=N.lt,p.lte=N.lte,p.max=Ge.max,p.maxBy=Ge.maxBy,p.mean=Ge.mean,p.meanBy=Ge.meanBy,p.min=Ge.min,p.minBy=Ge.minBy,p.stubArray=H.stubArray,p.stubFalse=H.stubFalse,p.stubObject=H.stubObject,p.stubString=H.stubString,p.stubTrue=H.stubTrue,p.multiply=Ge.multiply,p.nth=T.nth,p.noop=H.noop,p.now=wD.now,p.pad=k.pad,p.padEnd=k.padEnd,p.padStart=k.padStart,p.parseInt=k.parseInt,p.random=ml.random,p.reduce=Y.reduce,p.reduceRight=Y.reduceRight,p.repeat=k.repeat,p.replace=k.replace,p.result=$.result,p.round=Ge.round,p.sample=Y.sample,p.size=Y.size,p.snakeCase=k.snakeCase,p.some=Y.some,p.sortedIndex=T.sortedIndex,p.sortedIndexBy=T.sortedIndexBy,p.sortedIndexOf=T.sortedIndexOf,p.sortedLastIndex=T.sortedLastIndex,p.sortedLastIndexBy=T.sortedLastIndexBy,p.sortedLastIndexOf=T.sortedLastIndexOf,p.startCase=k.startCase,p.startsWith=k.startsWith,p.subtract=Ge.subtract,p.sum=Ge.sum,p.sumBy=Ge.sumBy,p.template=k.template,p.times=H.times,p.toFinite=N.toFinite,p.toInteger=D,p.toLength=N.toLength,p.toLower=k.toLower,p.toNumber=N.toNumber,p.toSafeInteger=N.toSafeInteger,p.toString=N.toString,p.toUpper=k.toUpper,p.trim=k.trim,p.trimEnd=k.trimEnd,p.trimStart=k.trimStart,p.truncate=k.truncate,p.unescape=k.unescape,p.uniqueId=H.uniqueId,p.upperCase=k.upperCase,p.upperFirst=k.upperFirst,p.each=Y.forEach,p.eachRight=Y.forEachRight,p.first=T.head,wl(p,function(){var e={};return hn(p,function(t,n){wm.call(p.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),p.VERSION=$D,(p.templateSettings=k.templateSettings).imports._=p,Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){p[e].placeholder=p}),Nt(["drop","take"],function(e,t){L.prototype[e]=function(n){n=n===void 0?1:jD(D(n),0);var r=this.__filtered__&&!t?new L(this):this.clone();return r.__filtered__?r.__takeCount__=Om(n,r.__takeCount__):r.__views__.push({size:Om(n,mm),type:e+(r.__dir__<0?"Right":"")}),r},L.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Nt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==ID||n==DD;L.prototype[e]=function(i){var s=this.clone();return s.__iteratees__.push({iteratee:M(i),type:n}),s.__filtered__=s.__filtered__||r,s}}),Nt(["head","last"],function(e,t){var n="take"+(t?"Right":"");L.prototype[e]=function(){return this[n](1).value()[0]}}),Nt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");L.prototype[e]=function(){return this.__filtered__?new L(this):this[n](1)}}),L.prototype.compact=function(){return this.filter(Ve)},L.prototype.find=function(e){return this.filter(e).head()},L.prototype.findLast=function(e){return this.reverse().find(e)},L.prototype.invokeMap=C(function(e,t){return typeof e=="function"?new L(this):this.map(function(n){return Us(n,e,t)})}),L.prototype.reject=function(e){return this.filter(Vs(M(e)))},L.prototype.slice=function(e,t){e=D(e);var n=this;return n.__filtered__&&(e>0||t<0)?new L(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==void 0&&(t=D(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},L.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},L.prototype.toArray=function(){return this.take(mm)},hn(L.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=p[r?"take"+(t=="last"?"Right":""):t],s=r||/^find/.test(t);i&&(p.prototype[t]=function(){var o=this.__wrapped__,a=r?[1]:arguments,u=o instanceof L,f=a[0],c=u||I(o),l=function(y){var b=i.apply(p,nr([y],a));return r&&h?b[0]:b};c&&n&&typeof f=="function"&&f.length!=1&&(u=c=!1);var h=this.__chain__,d=!!this.__actions__.length,_=s&&!h,v=u&&!d;if(!s&&c){o=v?o:new L(this);var g=e.apply(o,a);return g.__actions__.push({func:qs,args:[l],thisArg:void 0}),new Pt(g,h)}return _&&v?e.apply(this,a):(g=this.thru(l),_?r?g.value()[0]:g.value():g)})}),Nt(["pop","push","shift","sort","splice","unshift"],function(e){var t=CD[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return t.apply(I(s)?s:[],i)}return this[n](function(o){return t.apply(I(o)?o:[],i)})}}),hn(L.prototype,function(e,t){var n=p[t];if(n){var r=n.name+"";wm.call(bi,r)||(bi[r]=[]),bi[r].push({name:t,func:n})}}),bi[va(void 0,MD).name]=[{name:"wrapper",func:void 0}],L.prototype.clone=AD,L.prototype.reverse=OD,L.prototype.value=ND,p.prototype.at=dn.at,p.prototype.chain=dn.wrapperChain,p.prototype.commit=dn.commit,p.prototype.next=dn.next,p.prototype.plant=dn.plant,p.prototype.reverse=dn.reverse,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=dn.value,p.prototype.first=p.prototype.head,Am&&(p.prototype[Am]=dn.toIterator);/**
|
|
29
|
-
* @license
|
|
30
|
-
* Lodash (Custom Build) <https://lodash.com/>
|
|
31
|
-
* Build: `lodash modularize exports="es" -o ./`
|
|
32
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
33
|
-
* Released under MIT license <https://lodash.com/license>
|
|
34
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
35
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
36
|
-
*/const FD=Object.freeze(Object.defineProperty({__proto__:null,add:xd,after:$d,ary:Xf,assign:h_,assignIn:ec,assignInWith:Ns,assignWith:p_,at:v_,attempt:ic,before:sc,bind:Ds,bindAll:y_,bindKey:Oa,camelCase:W_,capitalize:uc,castArray:k_,ceil:q_,chain:dc,chunk:G_,clamp:H_,clone:gv,cloneDeep:Ta,cloneDeepWith:yv,cloneWith:bv,commit:Oc,compact:mv,concat:wv,cond:Mv,conforms:Dv,conformsTo:Cv,constant:ha,countBy:Fv,create:Bv,curry:Ma,curryRight:Ia,debounce:Mc,deburr:lc,default:p,defaultTo:zv,defaults:Vv,defaultsDeep:kv,defer:Gv,delay:Hv,difference:Kv,differenceBy:Yv,differenceWith:Xv,divide:Jv,drop:Zv,dropRight:Qv,dropRightWhile:eg,dropWhile:tg,each:Fc,eachRight:zc,endsWith:ig,entries:Uc,entriesIn:Vc,eq:$t,escape:Wc,escapeRegExp:ug,every:cg,extend:ec,extendWith:Ns,fill:lg,filter:pg,find:_g,findIndex:qc,findKey:gg,findLast:yg,findLastIndex:Gc,findLastKey:bg,first:Hc,flatMap:wg,flatMapDeep:Ag,flatMapDepth:Og,flatten:rc,flattenDeep:Eg,flattenDepth:Sg,flip:xg,floor:Tg,flow:Pg,flowRight:Ng,forEach:Fc,forEachRight:zc,forIn:$g,forInRight:Mg,forOwn:Ig,forOwnRight:Dg,fromPairs:Cg,functions:Lg,functionsIn:jg,get:ma,groupBy:Fg,gt:Bg,gte:zg,has:Ug,hasIn:Na,head:Hc,identity:Ve,inRange:Vg,includes:Wg,indexOf:kg,initial:qg,intersection:Gg,intersectionBy:Hg,intersectionWith:Kg,invert:Xg,invertBy:Zg,invoke:e0,invokeMap:t0,isArguments:er,isArray:I,isArrayBuffer:r0,isArrayLike:We,isArrayLikeObject:fe,isBoolean:i0,isBuffer:Dn,isDate:o0,isElement:a0,isEmpty:u0,isEqual:Ri,isEqualWith:f0,isError:Aa,isFinite:c0,isFunction:un,isInteger:Zc,isLength:Ts,isMap:wc,isMatch:l0,isMatchWith:h0,isNaN:p0,isNative:d0,isNil:_0,isNull:v0,isNumber:Qc,isObject:oe,isObjectLike:ae,isPlainObject:Oi,isRegExp:Fa,isSafeInteger:b0,isSet:Ac,isString:zs,isSymbol:Qe,isTypedArray:Nr,isUndefined:m0,isWeakMap:w0,isWeakSet:A0,iteratee:O0,join:E0,kebabCase:S0,keyBy:x0,keys:de,keysIn:qe,last:dt,lastIndexOf:T0,lodash:p,lowerCase:R0,lowerFirst:P0,lt:N0,lte:$0,map:Bs,mapKeys:M0,mapValues:I0,matches:D0,matchesProperty:C0,max:L0,maxBy:j0,mean:B0,meanBy:z0,memoize:Is,merge:U0,mergeWith:Lc,method:V0,methodOf:W0,min:k0,minBy:q0,mixin:G0,multiply:H0,negate:Vs,next:il,noop:ca,now:js,nth:Y0,nthArg:X0,omit:J0,omitBy:Q0,once:ey,orderBy:ry,over:iy,overArgs:sy,overEvery:oy,overSome:ay,pad:_y,padEnd:vy,padStart:gy,parseInt:yy,partial:ks,partialRight:Ua,partition:by,pick:my,pickBy:ol,plant:ll,property:Nc,propertyOf:wy,pull:Oy,pullAll:pl,pullAllBy:Ey,pullAllWith:Sy,pullAt:Ty,random:Ry,range:Ny,rangeRight:$y,rearg:My,reduce:Dy,reduceRight:Cy,reject:Ly,remove:jy,repeat:Fy,replace:By,rest:zy,result:Uy,reverse:Va,round:Vy,sample:ky,sampleSize:qy,set:Gy,setWith:Hy,shuffle:Ky,size:Yy,slice:Xy,snakeCase:Jy,some:Zy,sortBy:Qy,sortedIndex:eb,sortedIndexBy:tb,sortedIndexOf:nb,sortedLastIndex:rb,sortedLastIndexBy:ib,sortedLastIndexOf:sb,sortedUniq:ab,sortedUniqBy:ub,split:fb,spread:cb,startCase:lb,startsWith:hb,stubArray:Sa,stubFalse:ga,stubObject:pb,stubString:db,stubTrue:_b,subtract:vb,sum:gb,sumBy:yb,tail:bb,take:mb,takeRight:wb,takeRightWhile:Ab,takeWhile:Ob,tap:Eb,template:Pb,templateSettings:qa,throttle:Nb,thru:qs,times:$b,toArray:rl,toFinite:an,toInteger:D,toIterator:gl,toJSON:Gs,toLength:kc,toLower:Ib,toNumber:lt,toPairs:Uc,toPairsIn:Vc,toPath:Db,toPlainObject:Cc,toSafeInteger:Lb,toString:W,toUpper:jb,transform:Fb,trim:Ub,trimEnd:Vb,trimStart:Wb,truncate:kb,unary:qb,unescape:Hb,union:Kb,unionBy:Yb,unionWith:Xb,uniq:Jb,uniqBy:Zb,uniqWith:Qb,uniqueId:em,unset:tm,unzip:Ha,unzipWith:yl,update:rm,updateWith:im,upperCase:sm,upperFirst:Ea,value:Gs,valueOf:Gs,values:Lr,valuesIn:om,without:am,words:hc,wrap:um,wrapperAt:fm,wrapperChain:cm,wrapperCommit:Oc,wrapperLodash:p,wrapperNext:il,wrapperPlant:ll,wrapperReverse:lm,wrapperToIterator:gl,wrapperValue:Gs,xor:hm,xorBy:pm,xorWith:dm,zip:_m,zipObject:gm,zipObjectDeep:ym,zipWith:bm},Symbol.toStringTag,{value:"Module"}));function Em(e){return[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)]}function Al(e){const t=Math.round(e).toString(16);return t.length===1?`0${t}`:t}function Sm(e){return`#${Al(e[0])}${Al(e[1])}${Al(e[2])}`}const BD=/rgba?\(([\s.,0-9]+)\)/;function zD(){const e=document.createElement("i");return e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),e}let Ka;function xm(e){if(e[0]==="#"&&e.length===7)return e;Ka||(Ka=zD()),Ka.style.color=e;let t=document.defaultView.getComputedStyle(Ka,"").getPropertyValue("color");const r=BD.exec(t)[1].split(/\s*,\s*/).map(i=>Number(i));return t=Sm(r),t}function Ol(e,t,n,r){return e[r]+(t[r]-e[r])*n}function UD(e,t){const n=isNaN(Number(t))||t<0?0:t>1?1:Number(t),r=e.length-1,i=Math.floor(r*n),s=r*n-i,o=e[i],a=i===r?o:e[i+1];return Sm([Ol(o,a,s,0),Ol(o,a,s,1),Ol(o,a,s,2)])}function VD(e){const n=(typeof e=="string"?e.split("-"):e).map(r=>Em(r.indexOf("#")===-1?xm(r):r));return r=>UD(n,r)}const WD=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,kD=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,qD=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function GD(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)}function HD(e){if(GD(e)){let t="",n;if(e[0]==="l"){const i=WD.exec(e),s=+i[1]+90;n=i[2],t=`linear-gradient(${s}deg, `}else e[0]==="r"&&(t="radial-gradient(",n=kD.exec(e)[4]);const r=n.match(qD);return r.forEach((i,s)=>{const o=i.split(":");t+=`${o[1]} ${Number(o[0])*100}%`,s!==r.length-1&&(t+=", ")}),t+=")",t}return e}var Tm=typeof Float32Array<"u"?Float32Array:Array;function Ya(e,t,n){var r=t[0],i=t[1],s=t[2],o=t[3],a=t[4],u=t[5],f=t[6],c=t[7],l=t[8],h=n[0],d=n[1],_=n[2],v=n[3],g=n[4],y=n[5],b=n[6],w=n[7],m=n[8];return e[0]=h*r+d*o+_*f,e[1]=h*i+d*a+_*c,e[2]=h*s+d*u+_*l,e[3]=v*r+g*o+y*f,e[4]=v*i+g*a+y*c,e[5]=v*s+g*u+y*l,e[6]=b*r+w*o+m*f,e[7]=b*i+w*a+m*c,e[8]=b*s+w*u+m*l,e}function KD(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function YD(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function XD(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function JD(){var e=new Tm(2);return Tm!=Float32Array&&(e[0]=0,e[1]=0),e}function ZD(e,t){var n=e[0],r=e[1],i=t[0],s=t[1];return Math.abs(Math.atan2(r*i-n*s,n*i+r*s))}(function(){var e=JD();return function(t,n,r,i,s,o){var a,u;for(n||(n=2),r||(r=0),i?u=Math.min(i*n+r,t.length):u=t.length,a=r;a<u;a+=n)e[0]=t[a],e[1]=t[a+1],s(e,e,o),t[a]=e[0],t[a+1]=e[1];return t}})();function QD(e,t,n){const r=[0,0,0,0,0,0,0,0,0];return KD(r,n),Ya(e,r,t)}function eC(e,t,n){const r=[0,0,0,0,0,0,0,0,0];return YD(r,n),Ya(e,r,t)}function tC(e,t,n){const r=[0,0,0,0,0,0,0,0,0];return XD(r,n),Ya(e,r,t)}function nC(e,t,n){return Ya(e,n,t)}function rC(e,t){const n=e?[].concat(e):[1,0,0,0,1,0,0,0,1];for(let r=0,i=t.length;r<i;r++){const s=t[r];switch(s[0]){case"t":QD(n,n,[s[1],s[2]]);break;case"s":tC(n,n,[s[1],s[2]]);break;case"r":eC(n,n,s[1]);break;case"m":nC(n,n,s[1]);break}}return n}function Rm(e,t){return e[0]*t[1]-t[0]*e[1]}function iC(e,t,n){const r=ZD(e,t),i=Rm(e,t)>=0;return n?i?Math.PI*2-r:r:i?r:Math.PI*2-r}function sC(e,t,n){return n?(e[0]=t[1],e[1]=-1*t[0]):(e[0]=-1*t[1],e[1]=t[0]),e}function Ni(e){return e.map(t=>Array.isArray(t)?[].concat(t):t)}function oC(e,t){if(t==="off")return Ni(e);const n=typeof t=="number"&&t>=1?10**t:1;return e.map(r=>{const i=r.slice(1).map(Number).map(s=>t?Math.round(s*n)/n:Math.round(s));return[r[0]].concat(i)})}function aC(e,t="off"){return oC(e,t).map(n=>n[0]+n.slice(1).join(" ")).join("")}const Pm={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function uC(e,t,n){if(e[n].length>7){e[n].shift();const r=e[n];let i=n;for(;r.length;)t[n]="A",e.splice(i+=1,0,["C"].concat(r.splice(0,6)));e.splice(n,1)}}const Hs={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function Nm(e){return Array.isArray(e)&&e.every(t=>{const n=t[0].toLowerCase();return Hs[n]===t.length-1&&"achlmqstvz".includes(n)})}function $m(e){return Nm(e)&&e.every(([t])=>t===t.toUpperCase())}function Mm(e){return $m(e)&&e.every(([t])=>"ACLMQZ".includes(t))}function Im(e){let t=e.pathValue[e.segmentStart],n=t.toLowerCase();const{data:r}=e;for(;r.length>=Hs[n]&&(n==="m"&&r.length>2?(e.segments.push([t].concat(r.splice(0,2))),n="l",t=t==="m"?"l":"L"):e.segments.push([t].concat(r.splice(0,Hs[n]))),!!Hs[n]););}function fC(e){const{index:t,pathValue:n}=e,r=n.charCodeAt(t);if(r===48){e.param=0,e.index+=1;return}if(r===49){e.param=1,e.index+=1;return}e.err=`[path-util]: invalid Arc flag "${n[t]}", expecting 0 or 1 at index ${t}`}function cC(e){return e>=48&&e<=57||e===43||e===45||e===46}function $i(e){return e>=48&&e<=57}function lC(e){const{max:t,pathValue:n,index:r}=e;let i=r,s=!1,o=!1,a=!1,u=!1,f;if(i>=t){e.err=`[path-util]: Invalid path value at index ${i}, "pathValue" is missing param`;return}if(f=n.charCodeAt(i),(f===43||f===45)&&(i+=1,f=n.charCodeAt(i)),!$i(f)&&f!==46){e.err=`[path-util]: Invalid path value at index ${i}, "${n[i]}" is not a number`;return}if(f!==46){if(s=f===48,i+=1,f=n.charCodeAt(i),s&&i<t&&f&&$i(f)){e.err=`[path-util]: Invalid path value at index ${r}, "${n[r]}" illegal number`;return}for(;i<t&&$i(n.charCodeAt(i));)i+=1,o=!0;f=n.charCodeAt(i)}if(f===46){for(u=!0,i+=1;$i(n.charCodeAt(i));)i+=1,a=!0;f=n.charCodeAt(i)}if(f===101||f===69){if(u&&!o&&!a){e.err=`[path-util]: Invalid path value at index ${i}, "${n[i]}" invalid float exponent`;return}if(i+=1,f=n.charCodeAt(i),(f===43||f===45)&&(i+=1),i<t&&$i(n.charCodeAt(i)))for(;i<t&&$i(n.charCodeAt(i));)i+=1;else{e.err=`[path-util]: Invalid path value at index ${i}, "${n[i]}" invalid integer exponent`;return}}e.index=i,e.param=+e.pathValue.slice(r,i)}function hC(e){const t=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];return e===10||e===13||e===8232||e===8233||e===32||e===9||e===11||e===12||e===160||e>=5760&&t.includes(e)}function Xa(e){const{pathValue:t,max:n}=e;for(;e.index<n&&hC(t.charCodeAt(e.index));)e.index+=1}function pC(e){switch(e|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}function dC(e){return(e|32)===97}function _C(e){const{max:t,pathValue:n,index:r}=e,i=n.charCodeAt(r),s=Hs[n[r].toLowerCase()];if(e.segmentStart=r,!pC(i)){e.err=`[path-util]: Invalid path value "${n[r]}" is not a path command`;return}if(e.index+=1,Xa(e),e.data=[],!s){Im(e);return}for(;;){for(let o=s;o>0;o-=1){if(dC(i)&&(o===3||o===4)?fC(e):lC(e),e.err.length)return;e.data.push(e.param),Xa(e),e.index<t&&n.charCodeAt(e.index)===44&&(e.index+=1,Xa(e))}if(e.index>=e.max||!cC(n.charCodeAt(e.index)))break}Im(e)}class vC{pathValue;segments;max;index;param;segmentStart;data;err;constructor(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}}function El(e){if(Nm(e))return Ni(e);const t=new vC(e);for(Xa(t);t.index<t.max&&!t.err.length;)_C(t);return t.err?t.err:t.segments}function Dm(e){if($m(e))return Ni(e);const t=El(e);let n=0,r=0,i=0,s=0;return t.map(o=>{const a=o.slice(1).map(Number),[u]=o,f=u.toUpperCase();if(u==="M")return[n,r]=a,i=n,s=r,["M",n,r];let c;if(u!==f)switch(f){case"A":c=[f,a[0],a[1],a[2],a[3],a[4],a[5]+n,a[6]+r];break;case"V":c=[f,a[0]+r];break;case"H":c=[f,a[0]+n];break;default:{const h=a.map((d,_)=>d+(_%2?r:n));c=[f].concat(h)}}else c=[f].concat(a);const l=c.length;switch(f){case"Z":n=i,r=s;break;case"H":[,n]=c;break;case"V":[,r]=c;break;default:n=c[l-2],r=c[l-1],f==="M"&&(i=n,s=r)}return c})}function gC(e,t){const[n]=e,{x1:r,y1:i,x2:s,y2:o}=t,a=e.slice(1).map(Number);let u=e;if("TQ".includes(n)||(t.qx=null,t.qy=null),n==="H")u=["L",e[1],i];else if(n==="V")u=["L",r,e[1]];else if(n==="S"){const f=r*2-s,c=i*2-o;t.x1=f,t.y1=c,u=["C",f,c].concat(a)}else if(n==="T"){const f=r*2-t.qx,c=i*2-t.qy;t.qx=f,t.qy=c,u=["Q",f,c].concat(a)}else if(n==="Q"){const[f,c]=a;t.qx=f,t.qy=c}return u}function Ja(e){if(Mm(e))return Ni(e);const t=Dm(e),n={...Pm},r=t.length;let i="";for(let s=0;s<r;s+=1){[i]=t[s],t[s]=gC(t[s],n);const o=t[s],a=o.length;n.x1=+o[a-2],n.y1=+o[a-1],n.x2=+o[a-4]||n.x1,n.y2=+o[a-3]||n.y1}return t}function yC(e){return Mm(e)&&e.every(([t])=>"MC".includes(t))}function Za(e,t,n){const r=e*Math.cos(n)-t*Math.sin(n),i=e*Math.sin(n)+t*Math.cos(n);return{x:r,y:i}}function Cm(e,t,n,r,i,s,o,a,u,f){let c=e,l=t,h=n,d=r,_=a,v=u;const g=Math.PI*120/180,y=Math.PI/180*(+i||0);let b=[],w,m,A,S,P;if(f)[m,A,S,P]=f;else{w=Za(c,l,-y),c=w.x,l=w.y,w=Za(_,v,-y),_=w.x,v=w.y;const Te=(c-_)/2,on=(l-v)/2;let li=Te*Te/(h*h)+on*on/(d*d);li>1&&(li=Math.sqrt(li),h*=li,d*=li);const kp=h*h,qp=d*d,JO=(s===o?-1:1)*Math.sqrt(Math.abs((kp*qp-kp*on*on-qp*Te*Te)/(kp*on*on+qp*Te*Te)));S=JO*h*on/d+(c+_)/2,P=JO*-d*Te/h+(l+v)/2,m=Math.asin(((l-P)/d*10**9>>0)/10**9),A=Math.asin(((v-P)/d*10**9>>0)/10**9),m=c<S?Math.PI-m:m,A=_<S?Math.PI-A:A,m<0&&(m=Math.PI*2+m),A<0&&(A=Math.PI*2+A),o&&m>A&&(m-=Math.PI*2),!o&&A>m&&(A-=Math.PI*2)}let V=A-m;if(Math.abs(V)>g){const Te=A,on=_,li=v;A=m+g*(o&&A>m?1:-1),_=S+h*Math.cos(A),v=P+d*Math.sin(A),b=Cm(_,v,h,d,i,0,o,on,li,[A,Te,S,P])}V=A-m;const Yn=Math.cos(m),Pf=Math.sin(m),Nn=Math.cos(A),Nf=Math.sin(A),Qo=Math.tan(V/4),$f=4/3*h*Qo,Mf=4/3*d*Qo,Xn=[c,l],Jn=[c+$f*Pf,l-Mf*Yn],ea=[_+$f*Nf,v-Mf*Nn],ta=[_,v];if(Jn[0]=2*Xn[0]-Jn[0],Jn[1]=2*Xn[1]-Jn[1],f)return Jn.concat(ea,ta,b);b=Jn.concat(ea,ta,b);const Wp=[];for(let Te=0,on=b.length;Te<on;Te+=1)Wp[Te]=Te%2?Za(b[Te-1],b[Te],y).y:Za(b[Te],b[Te+1],y).x;return Wp}function bC(e,t,n,r,i,s){const o=.3333333333333333,a=2/3;return[o*e+a*n,o*t+a*r,o*i+a*n,o*s+a*r,i,s]}function Ct(e,t,n){const r=e[0],i=e[1],s=t[0],o=t[1];return[r+(s-r)*n,i+(o-i)*n]}function Mi(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function Ks(e,t,n,r,i){const s=Mi([e,t],[n,r]);let o={x:0,y:0};if(typeof i=="number")if(i<=0)o={x:e,y:t};else if(i>=s)o={x:n,y:r};else{const[a,u]=Ct([e,t],[n,r],i/s);o={x:a,y:u}}return{length:s,point:o,min:{x:Math.min(e,n),y:Math.min(t,r)},max:{x:Math.max(e,n),y:Math.max(t,r)}}}function Lm(e,t,n,r){const s=[e,t],o=[n,r],a=Ct(s,o,.5),u=Ct(o,a,.5),f=Ct(a,u,.5),c=Ct(u,f,.5),l=Ct(f,c,.5),h=Ks(s[0],s[1],a[0],a[1],f[0]).point,d=Ks(l[0],l[1],c[0],c[1],u[0]).point;return[h.x,h.y,d.x,d.y,n,r]}function mC(e,t){const[n]=e,r=e.slice(1).map(Number),[i,s]=r;let o;const{x1:a,y1:u,x:f,y:c}=t;switch("TQ".includes(n)||(t.qx=null,t.qy=null),n){case"M":return t.x=i,t.y=s,e;case"A":return o=[a,u].concat(r),["C"].concat(Cm(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9]));case"Q":return t.qx=i,t.qy=s,o=[a,u].concat(r),["C"].concat(bC(o[0],o[1],o[2],o[3],o[4],o[5]));case"L":return["C"].concat(Lm(a,u,i,s));case"Z":return a===f&&u===c?["C",a,u,f,c,f,c]:["C"].concat(Lm(a,u,f,c))}return e}function jm(e,t=!1){if(yC(e)){const c=Ni(e);return t?[c,[]]:c}const n=Ja(e),r={...Pm},i=[];let s="",o=n.length,a,u;const f=[];for(let c=0;c<o;c+=1){n[c]&&([s]=n[c]),i[c]=s;const l=mC(n[c],r);n[c]=l,uC(n,i,c),o=n.length,s==="Z"&&f.push(c),a=n[c],u=a.length,r.x1=+a[u-2],r.y1=+a[u-1],r.x2=+a[u-4]||r.x1,r.y2=+a[u-3]||r.y1}return t?[n,f]:n}function wC(e){const t=e.slice(1).map((n,r,i)=>r?i[r-1].slice(-2).concat(n.slice(1)):e[0].slice(1).concat(n.slice(1))).map(n=>n.map((r,i)=>n[n.length-i-2*(1-i%2)])).reverse();return[["M"].concat(t[0].slice(0,2))].concat(t.map(n=>["C"].concat(n.slice(2))))}function Fm(e,t){const{x:n,y:r}=e,{x:i,y:s}=t,o=n*i+r*s,a=Math.sqrt((n**2+r**2)*(i**2+s**2));return(n*s-r*i<0?-1:1)*Math.acos(o/a)}function AC(e,t,n,r,i,s,o,a,u,f){const{abs:c,sin:l,cos:h,sqrt:d,PI:_}=Math;let v=c(n),g=c(r);const b=(i%360+360)%360*(_/180);if(e===a&&t===u)return{x:e,y:t};if(v===0||g===0)return Ks(e,t,a,u,f).point;const w=(e-a)/2,m=(t-u)/2,A={x:h(b)*w+l(b)*m,y:-l(b)*w+h(b)*m},S=A.x**2/v**2+A.y**2/g**2;S>1&&(v*=d(S),g*=d(S));const P=v**2*g**2-v**2*A.y**2-g**2*A.x**2,V=v**2*A.y**2+g**2*A.x**2;let Yn=P/V;Yn=Yn<0?0:Yn;const Pf=(s!==o?1:-1)*d(Yn),Nn={x:Pf*(v*A.y/g),y:Pf*(-(g*A.x)/v)},Nf={x:h(b)*Nn.x-l(b)*Nn.y+(e+a)/2,y:l(b)*Nn.x+h(b)*Nn.y+(t+u)/2},Qo={x:(A.x-Nn.x)/v,y:(A.y-Nn.y)/g},$f=Fm({x:1,y:0},Qo),Mf={x:(-A.x-Nn.x)/v,y:(-A.y-Nn.y)/g};let Xn=Fm(Qo,Mf);!o&&Xn>0?Xn-=2*_:o&&Xn<0&&(Xn+=2*_),Xn%=2*_;const Jn=$f+Xn*f,ea=v*h(Jn),ta=g*l(Jn);return{x:h(b)*ea-l(b)*ta+Nf.x,y:l(b)*ea+h(b)*ta+Nf.y}}function OC(e,t,n,r,i,s,o,a,u,f){const c=typeof f=="number";let l=e,h=t,d=0,_=[l,h,d],v=[l,h],g=0,y={x:0,y:0},b=[{x:l,y:h}];c&&f<=0&&(y={x:l,y:h});const w=100;for(let m=0;m<=w;m+=1){if(g=m/w,{x:l,y:h}=AC(e,t,n,r,i,s,o,a,u,g),b=b.concat({x:l,y:h}),d+=Mi(v,[l,h]),v=[l,h],c&&d>=f&&f>_[2]){const A=(d-f)/(d-_[2]);y={x:v[0]*(1-A)+_[0]*A,y:v[1]*(1-A)+_[1]*A}}_=[l,h,d]}return c&&f>=d&&(y={x:a,y:u}),{length:d,point:y,min:{x:Math.min.apply(null,b.map(m=>m.x)),y:Math.min.apply(null,b.map(m=>m.y))},max:{x:Math.max.apply(null,b.map(m=>m.x)),y:Math.max.apply(null,b.map(m=>m.y))}}}function EC(e,t,n,r,i,s,o,a,u){const f=1-u;return{x:f**3*e+3*f**2*u*n+3*f*u**2*i+u**3*o,y:f**3*t+3*f**2*u*r+3*f*u**2*s+u**3*a}}function Bm(e,t,n,r,i,s,o,a,u){const f=typeof u=="number";let c=e,l=t,h=0,d=[c,l,h],_=[c,l],v=0,g={x:0,y:0},y=[{x:c,y:l}];f&&u<=0&&(g={x:c,y:l});const b=30;for(let w=0;w<=b;w+=1){if(v=w/b,{x:c,y:l}=EC(e,t,n,r,i,s,o,a,v),y=y.concat({x:c,y:l}),h+=Mi(_,[c,l]),_=[c,l],f&&h>=u&&u>d[2]){const m=(h-u)/(h-d[2]);g={x:_[0]*(1-m)+d[0]*m,y:_[1]*(1-m)+d[1]*m}}d=[c,l,h]}return f&&u>=h&&(g={x:o,y:a}),{length:h,point:g,min:{x:Math.min.apply(null,y.map(w=>w.x)),y:Math.min.apply(null,y.map(w=>w.y))},max:{x:Math.max.apply(null,y.map(w=>w.x)),y:Math.max.apply(null,y.map(w=>w.y))}}}function SC(e,t,n,r,i,s,o){const a=1-o;return{x:a**2*e+2*a*o*n+o**2*i,y:a**2*t+2*a*o*r+o**2*s}}function xC(e,t,n,r,i,s,o){const a=typeof o=="number";let u=e,f=t,c=0,l=[u,f,c],h=[u,f],d=0,_={x:0,y:0},v=[{x:u,y:f}];a&&o<=0&&(_={x:u,y:f});const g=30;for(let y=0;y<=g;y+=1){if(d=y/g,{x:u,y:f}=SC(e,t,n,r,i,s,d),v=v.concat({x:u,y:f}),c+=Mi(h,[u,f]),h=[u,f],a&&c>=o&&o>l[2]){const b=(c-o)/(c-l[2]);_={x:h[0]*(1-b)+l[0]*b,y:h[1]*(1-b)+l[1]*b}}l=[u,f,c]}return a&&o>=c&&(_={x:i,y:s}),{length:c,point:_,min:{x:Math.min.apply(null,v.map(y=>y.x)),y:Math.min.apply(null,v.map(y=>y.y))},max:{x:Math.max.apply(null,v.map(y=>y.x)),y:Math.max.apply(null,v.map(y=>y.y))}}}function Qa(e,t){const n=Ja(e),r=typeof t=="number";let i,s=[],o,a=0,u=0,f=0,c=0,l,h=[],d=[],_=0,v={x:0,y:0},g=v,y=v,b=v,w=0;for(let m=0,A=n.length;m<A;m+=1)l=n[m],[o]=l,i=o==="M",s=i?s:[a,u].concat(l.slice(1)),i?([,f,c]=l,v={x:f,y:c},g=v,_=0,r&&t<.001&&(b=v)):o==="L"?{length:_,min:v,max:g,point:y}=Ks(s[0],s[1],s[2],s[3],(t||0)-w):o==="A"?{length:_,min:v,max:g,point:y}=OC(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],(t||0)-w):o==="C"?{length:_,min:v,max:g,point:y}=Bm(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],(t||0)-w):o==="Q"?{length:_,min:v,max:g,point:y}=xC(s[0],s[1],s[2],s[3],s[4],s[5],(t||0)-w):o==="Z"&&(s=[a,u,f,c],{length:_,min:v,max:g,point:y}=Ks(s[0],s[1],s[2],s[3],(t||0)-w)),r&&w<t&&w+_>=t&&(b=y),d.push(g),h.push(v),w+=_,[a,u]=o!=="Z"?l.slice(-2):[f,c];return r&&t>=w&&(b={x:a,y:u}),{length:w,point:b,min:{x:Math.min.apply(null,h.map(m=>m.x)),y:Math.min.apply(null,h.map(m=>m.y))},max:{x:Math.max.apply(null,d.map(m=>m.x)),y:Math.max.apply(null,d.map(m=>m.y))}}}function TC(e){if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};const{min:{x:t,y:n},max:{x:r,y:i}}=Qa(e),s=r-t,o=i-n;return{width:s,height:o,x:t,y:n,x2:r,y2:i,cx:t+s/2,cy:n+o/2,cz:Math.max(s,o)+Math.min(s,o)/2}}function Ys(e){return Qa(e).length}function RC(e){if(!e)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};const{length:t,min:{x:n,y:r},max:{x:i,y:s}}=Qa(e),o=i-n,a=s-r;return{length:t,width:o,height:a,x:n,y:r,x2:i,y2:s,cx:n+o/2,cy:r+a/2,cz:Math.max(o,a)+Math.min(o,a)/2}}function PC(e){const t=e.length,n=t-1;return e.map((r,i)=>e.map((s,o)=>{let a=i+o,u;return o===0||e[a]&&e[a][0]==="M"?(u=e[a],["M"].concat(u.slice(-2))):(a>=t&&(a-=n),e[a])}))}function NC(e,t){const n=e.length-1,r=[];let i=0,s=0;const o=PC(e);return o.forEach((a,u)=>{e.slice(1).forEach((f,c)=>{s+=Mi(e[(u+c)%n].slice(-2),t[c%n].slice(-2))}),r[u]=s,s=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}function $C(e,t,n,r,i,s,o,a){return 3*((a-t)*(n+i)-(o-e)*(r+s)+r*(e-i)-n*(t-s)+a*(i+e/3)-o*(s+t/3))/20}function zm(e){let t=0,n=0,r=0;return jm(e).map(i=>{switch(i[0]){case"M":return[,t,n]=i,0;default:const[s,o,a,u,f,c]=i.slice(1);return r=$C(t,n,s,o,a,u,f,c),[t,n]=i.slice(-2),r}}).reduce((i,s)=>i+s,0)}function MC(e){return zm(e)>=0}function eu(e,t){return Qa(e,t).point}function IC(e,t){const n=El(e);if(typeof n=="string")throw TypeError(n);let r=n.slice(),i=Ys(r),s=r.length-1,o=0,a=0,u=n[0];const[f,c]=u.slice(-2),l={x:f,y:c};if(s<=0||!t||!Number.isFinite(t))return{segment:u,index:0,length:a,point:l,lengthAtSegment:o};if(t>=i)return r=n.slice(0,-1),o=Ys(r),a=i-o,{segment:n[s],index:s,length:a,lengthAtSegment:o};const h=[];for(;s>0;)u=r[s],r=r.slice(0,-1),o=Ys(r),a=i-o,i=o,h.push({segment:u,index:s,length:a,lengthAtSegment:o}),s-=1;return h.find(({lengthAtSegment:d})=>d<=t)}function DC(e,t){const n=El(e),r=Ja(n),i=Ys(n),s=m=>{const A=m.x-t.x,S=m.y-t.y;return A*A+S*S};let o=8,a,u=0,f={x:0,y:0},c=0,l=1/0;for(let m=0;m<=i;m+=o)a=eu(r,m),u=s(a),u<l&&(f=a,c=m,l=u);o/=2;let h,d,_=0,v=0,g=0,y=0;for(;o>.5;)_=c-o,h=eu(r,_),g=s(h),v=c+o,d=eu(r,v),y=s(d),_>=0&&g<l?(f=h,c=_,l=g):v<=i&&y<l?(f=d,c=v,l=y):o/=2;const b=IC(n,c),w=Math.sqrt(l);return{closest:f,distance:w,segment:b}}function CC(e,t){const{distance:n}=DC(e,t);return Math.abs(n)<.001}function LC(e,t=.5){const n=e.slice(0,2),r=e.slice(2,4),i=e.slice(4,6),s=e.slice(6,8),o=Ct(n,r,t),a=Ct(r,i,t),u=Ct(i,s,t),f=Ct(o,a,t),c=Ct(a,u,t),l=Ct(f,c,t);return[["C"].concat(o,f,l),["C"].concat(c,u,s)]}function Um(e){return e.map((t,n,r)=>{const i=n&&r[n-1].slice(-2).concat(t.slice(1)),s=n?Bm(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8]).length:0;let o;return n?o=s?LC(i):[t,t]:o=[t],{s:t,ss:o,l:s}})}function Vm(e,t,n){const r=Um(e),i=Um(t),s=r.length,o=i.length,a=r.filter(g=>g.l).length,u=i.filter(g=>g.l).length,f=r.filter(g=>g.l).reduce((g,{l:y})=>g+y,0)/a||0,c=i.filter(g=>g.l).reduce((g,{l:y})=>g+y,0)/u||0,l=n||Math.max(s,o),h=[f,c],d=[l-s,l-o];let _=0;const v=[r,i].map((g,y)=>g.l===l?g.map(b=>b.s):g.map((b,w)=>(_=w&&d[y]&&b.l>=h[y],d[y]-=_?1:0,_?b.ss:[b.s])).flat());return v[0].length===v[1].length?v:Vm(v[0],v[1],l)}const jC=Object.freeze(Object.defineProperty({__proto__:null,angleTo:iC,clonePath:Ni,direction:Rm,distanceSquareRoot:Mi,equalizeSegments:Vm,getDrawDirection:MC,getPathArea:zm,getPathBBox:TC,getPathBBoxTotalLength:RC,getPointAtLength:eu,getRotatedCurve:NC,getTotalLength:Ys,gradient:VD,isPointInStroke:CC,normalizePath:Ja,path2Absolute:Dm,path2Curve:jm,path2String:aC,reverseCurve:wC,rgb2arr:Em,toCSSGradient:HD,toRGB:xm,transform:rC,vertical:sC},Symbol.toStringTag,{value:"Module"}));var tu=Symbol.for("immer-nothing"),Ii=Symbol.for("immer-draftable"),q=Symbol.for("immer-state"),Wm=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function he(e,...t){if(process.env.NODE_ENV!=="production"){const n=Wm[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var jr=Object.getPrototypeOf;function Fn(e){return!!e&&!!e[q]}function Yt(e){return e?km(e)||Array.isArray(e)||!!e[Ii]||!!e.constructor?.[Ii]||Js(e)||Zs(e):!1}var FC=Object.prototype.constructor.toString();function km(e){if(!e||typeof e!="object")return!1;const t=jr(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===FC}function BC(e){return Fn(e)||he(15,e),e[q].base_}function Di(e,t){Fr(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Fr(e){const t=e[q];return t?t.type_:Array.isArray(e)?1:Js(e)?2:Zs(e)?3:0}function Xs(e,t){return Fr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Sl(e,t){return Fr(e)===2?e.get(t):e[t]}function qm(e,t,n){const r=Fr(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function zC(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Js(e){return e instanceof Map}function Zs(e){return e instanceof Set}function Ae(e){return e.copy_||e.base_}function xl(e,t){if(Js(e))return new Map(e);if(Zs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=km(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[q];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const o=i[s],a=r[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(jr(e),r)}else{const r=jr(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function nu(e,t=!1){return ru(e)||Fn(e)||!Yt(e)||(Fr(e)>1&&(e.set=e.add=e.clear=e.delete=UC),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>nu(r,!0))),e}function UC(){he(2)}function ru(e){return Object.isFrozen(e)}var Tl={};function Br(e){const t=Tl[e];return t||he(0,e),t}function Gm(e,t){Tl[e]||(Tl[e]=t)}var Qs;function iu(){return Qs}function VC(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Hm(e,t){t&&(Br("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Rl(e){Pl(e),e.drafts_.forEach(WC),e.drafts_=null}function Pl(e){e===Qs&&(Qs=e.parent_)}function Km(e){return Qs=VC(Qs,e)}function WC(e){const t=e[q];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ym(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[q].modified_&&(Rl(t),he(4)),Yt(e)&&(e=su(t,e),t.parent_||ou(t,e)),t.patches_&&Br("Patches").generateReplacementPatches_(n[q].base_,e,t.patches_,t.inversePatches_)):e=su(t,n,[]),Rl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==tu?e:void 0}function su(e,t,n){if(ru(t))return t;const r=t[q];if(!r)return Di(t,(i,s)=>Xm(e,r,t,i,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ou(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let s=i,o=!1;r.type_===3&&(s=new Set(i),i.clear(),o=!0),Di(s,(a,u)=>Xm(e,r,i,a,u,n,o)),ou(e,i,!1),n&&e.patches_&&Br("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Xm(e,t,n,r,i,s,o){if(process.env.NODE_ENV!=="production"&&i===n&&he(5),Fn(i)){const a=s&&t&&t.type_!==3&&!Xs(t.assigned_,r)?s.concat(r):void 0,u=su(e,i,a);if(qm(n,r,u),Fn(u))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(Yt(i)&&!ru(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;su(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&ou(e,i)}}function ou(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&nu(t,n)}function kC(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:iu(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,s=Nl;n&&(i=[r],s=eo);const{revoke:o,proxy:a}=Proxy.revocable(i,s);return r.draft_=a,r.revoke_=o,a}var Nl={get(e,t){if(t===q)return e;const n=Ae(e);if(!Xs(n,t))return qC(e,n,t);const r=n[t];return e.finalized_||!Yt(r)?r:r===$l(e.base_,t)?(Ml(e),e.copy_[t]=to(r,e)):r},has(e,t){return t in Ae(e)},ownKeys(e){return Reflect.ownKeys(Ae(e))},set(e,t,n){const r=Jm(Ae(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=$l(Ae(e),t),s=i?.[q];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(zC(n,i)&&(n!==void 0||Xs(e.base_,t)))return!0;Ml(e),Bn(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return $l(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ml(e),Bn(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ae(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){he(11)},getPrototypeOf(e){return jr(e.base_)},setPrototypeOf(){he(12)}},eo={};Di(Nl,(e,t)=>{eo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),eo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&he(13),eo.set.call(this,e,t,void 0)},eo.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&he(14),Nl.set.call(this,e[0],t,n,e[0])};function $l(e,t){const n=e[q];return(n?Ae(n):e)[t]}function qC(e,t,n){const r=Jm(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function Jm(e,t){if(!(t in e))return;let n=jr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=jr(n)}}function Bn(e){e.modified_||(e.modified_=!0,e.parent_&&Bn(e.parent_))}function Ml(e){e.copy_||(e.copy_=xl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Zm=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const o=this;return function(u=s,...f){return o.produce(u,c=>n.call(this,c,...f))}}typeof n!="function"&&he(6),r!==void 0&&typeof r!="function"&&he(7);let i;if(Yt(t)){const s=Km(this),o=to(t,void 0);let a=!0;try{i=n(o),a=!1}finally{a?Rl(s):Pl(s)}return Hm(s,r),Ym(i,s)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===tu&&(i=void 0),this.autoFreeze_&&nu(i,!0),r){const s=[],o=[];Br("Patches").generateReplacementPatches_(t,i,s,o),r(s,o)}return i}else he(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...a)=>this.produceWithPatches(o,u=>t(u,...a));let r,i;return[this.produce(t,n,(o,a)=>{r=o,i=a}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Yt(e)||he(8),Fn(e)&&(e=Qm(e));const t=Km(this),n=to(e,void 0);return n[q].isManual_=!0,Pl(t),n}finishDraft(e,t){const n=e&&e[q];(!n||!n.isManual_)&&he(9);const{scope_:r}=n;return Hm(r,t),Ym(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Br("Patches").applyPatches_;return Fn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function to(e,t){const n=Js(e)?Br("MapSet").proxyMap_(e,t):Zs(e)?Br("MapSet").proxySet_(e,t):kC(e,t);return(t?t.scope_:iu()).drafts_.push(n),n}function Qm(e){return Fn(e)||he(10,e),e1(e)}function e1(e){if(!Yt(e)||ru(e))return e;const t=e[q];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=xl(e,t.scope_.immer_.useStrictShallowCopy_)}else n=xl(e,!0);return Di(n,(r,i)=>{qm(n,r,e1(i))}),t&&(t.finalized_=!1),n}function GC(){process.env.NODE_ENV!=="production"&&Wm.push('Sets cannot have "replace" patches.',function(h){return"Unsupported patch operation: "+h},function(h){return"Cannot apply patch, path doesn't resolve: "+h},"Patching reserved attributes like __proto__, prototype and constructor is not allowed");const t="replace",n="add",r="remove";function i(h,d,_,v){switch(h.type_){case 0:case 2:return o(h,d,_,v);case 1:return s(h,d,_,v);case 3:return a(h,d,_,v)}}function s(h,d,_,v){let{base_:g,assigned_:y}=h,b=h.copy_;b.length<g.length&&([g,b]=[b,g],[_,v]=[v,_]);for(let w=0;w<g.length;w++)if(y[w]&&b[w]!==g[w]){const m=d.concat([w]);_.push({op:t,path:m,value:l(b[w])}),v.push({op:t,path:m,value:l(g[w])})}for(let w=g.length;w<b.length;w++){const m=d.concat([w]);_.push({op:n,path:m,value:l(b[w])})}for(let w=b.length-1;g.length<=w;--w){const m=d.concat([w]);v.push({op:r,path:m})}}function o(h,d,_,v){const{base_:g,copy_:y}=h;Di(h.assigned_,(b,w)=>{const m=Sl(g,b),A=Sl(y,b),S=w?Xs(g,b)?t:n:r;if(m===A&&S===t)return;const P=d.concat(b);_.push(S===r?{op:S,path:P}:{op:S,path:P,value:A}),v.push(S===n?{op:r,path:P}:S===r?{op:n,path:P,value:l(m)}:{op:t,path:P,value:l(m)})})}function a(h,d,_,v){let{base_:g,copy_:y}=h,b=0;g.forEach(w=>{if(!y.has(w)){const m=d.concat([b]);_.push({op:r,path:m,value:w}),v.unshift({op:n,path:m,value:w})}b++}),b=0,y.forEach(w=>{if(!g.has(w)){const m=d.concat([b]);_.push({op:n,path:m,value:w}),v.unshift({op:r,path:m,value:w})}b++})}function u(h,d,_,v){_.push({op:t,path:[],value:d===tu?void 0:d}),v.push({op:t,path:[],value:h})}function f(h,d){return d.forEach(_=>{const{path:v,op:g}=_;let y=h;for(let A=0;A<v.length-1;A++){const S=Fr(y);let P=v[A];typeof P!="string"&&typeof P!="number"&&(P=""+P),(S===0||S===1)&&(P==="__proto__"||P==="constructor")&&he(19),typeof y=="function"&&P==="prototype"&&he(19),y=Sl(y,P),typeof y!="object"&&he(18,v.join("/"))}const b=Fr(y),w=c(_.value),m=v[v.length-1];switch(g){case t:switch(b){case 2:return y.set(m,w);case 3:he(16);default:return y[m]=w}case n:switch(b){case 1:return m==="-"?y.push(w):y.splice(m,0,w);case 2:return y.set(m,w);case 3:return y.add(w);default:return y[m]=w}case r:switch(b){case 1:return y.splice(m,1);case 2:return y.delete(m);case 3:return y.delete(_.value);default:return delete y[m]}default:he(17,g)}}),h}function c(h){if(!Yt(h))return h;if(Array.isArray(h))return h.map(c);if(Js(h))return new Map(Array.from(h.entries()).map(([_,v])=>[_,c(v)]));if(Zs(h))return new Set(Array.from(h).map(c));const d=Object.create(jr(h));for(const _ in h)d[_]=c(h[_]);return Xs(h,Ii)&&(d[Ii]=h[Ii]),d}function l(h){return Fn(h)?c(h):h}Gm("Patches",{applyPatches_:f,generatePatches_:i,generateReplacementPatches_:u})}function HC(){class e extends Map{constructor(u,f){super(),this[q]={type_:2,parent_:f,scope_:f?f.scope_:iu(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:u,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Ae(this[q]).size}has(u){return Ae(this[q]).has(u)}set(u,f){const c=this[q];return o(c),(!Ae(c).has(u)||Ae(c).get(u)!==f)&&(n(c),Bn(c),c.assigned_.set(u,!0),c.copy_.set(u,f),c.assigned_.set(u,!0)),this}delete(u){if(!this.has(u))return!1;const f=this[q];return o(f),n(f),Bn(f),f.base_.has(u)?f.assigned_.set(u,!1):f.assigned_.delete(u),f.copy_.delete(u),!0}clear(){const u=this[q];o(u),Ae(u).size&&(n(u),Bn(u),u.assigned_=new Map,Di(u.base_,f=>{u.assigned_.set(f,!1)}),u.copy_.clear())}forEach(u,f){const c=this[q];Ae(c).forEach((l,h,d)=>{u.call(f,this.get(h),h,this)})}get(u){const f=this[q];o(f);const c=Ae(f).get(u);if(f.finalized_||!Yt(c)||c!==f.base_.get(u))return c;const l=to(c,f);return n(f),f.copy_.set(u,l),l}keys(){return Ae(this[q]).keys()}values(){const u=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const f=u.next();return f.done?f:{done:!1,value:this.get(f.value)}}}}entries(){const u=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const f=u.next();if(f.done)return f;const c=this.get(f.value);return{done:!1,value:[f.value,c]}}}}[Symbol.iterator](){return this.entries()}}function t(a,u){return new e(a,u)}function n(a){a.copy_||(a.assigned_=new Map,a.copy_=new Map(a.base_))}class r extends Set{constructor(u,f){super(),this[q]={type_:3,parent_:f,scope_:f?f.scope_:iu(),modified_:!1,finalized_:!1,copy_:void 0,base_:u,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Ae(this[q]).size}has(u){const f=this[q];return o(f),f.copy_?!!(f.copy_.has(u)||f.drafts_.has(u)&&f.copy_.has(f.drafts_.get(u))):f.base_.has(u)}add(u){const f=this[q];return o(f),this.has(u)||(s(f),Bn(f),f.copy_.add(u)),this}delete(u){if(!this.has(u))return!1;const f=this[q];return o(f),s(f),Bn(f),f.copy_.delete(u)||(f.drafts_.has(u)?f.copy_.delete(f.drafts_.get(u)):!1)}clear(){const u=this[q];o(u),Ae(u).size&&(s(u),Bn(u),u.copy_.clear())}values(){const u=this[q];return o(u),s(u),u.copy_.values()}entries(){const u=this[q];return o(u),s(u),u.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(u,f){const c=this.values();let l=c.next();for(;!l.done;)u.call(f,l.value,l.value,this),l=c.next()}}function i(a,u){return new r(a,u)}function s(a){a.copy_||(a.copy_=new Set,a.base_.forEach(u=>{if(Yt(u)){const f=to(u,a);a.drafts_.set(u,f),a.copy_.add(f)}else a.copy_.add(u)}))}function o(a){a.revoked_&&he(3,JSON.stringify(Ae(a)))}Gm("MapSet",{proxyMap_:t,proxySet_:i})}var _t=new Zm,KC=_t.produce,YC=_t.produceWithPatches.bind(_t),XC=_t.setAutoFreeze.bind(_t),JC=_t.setUseStrictShallowCopy.bind(_t),ZC=_t.applyPatches.bind(_t),QC=_t.createDraft.bind(_t),eL=_t.finishDraft.bind(_t);function tL(e){return e}function nL(e){return e}const rL=Object.freeze(Object.defineProperty({__proto__:null,Immer:Zm,applyPatches:ZC,castDraft:tL,castImmutable:nL,createDraft:QC,current:Qm,enableMapSet:HC,enablePatches:GC,finishDraft:eL,freeze:nu,immerable:Ii,isDraft:Fn,isDraftable:Yt,nothing:tu,original:BC,produce:KC,produceWithPatches:YC,setAutoFreeze:XC,setUseStrictShallowCopy:JC},Symbol.toStringTag,{value:"Module"}));/**
|
|
37
|
-
* @license
|
|
38
|
-
* MIT License
|
|
39
|
-
*
|
|
40
|
-
* Copyright (c) 2014-present, Lee Byron and other contributors.
|
|
41
|
-
*
|
|
42
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
43
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
44
|
-
* in the Software without restriction, including without limitation the rights
|
|
45
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
46
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
47
|
-
* furnished to do so, subject to the following conditions:
|
|
48
|
-
*
|
|
49
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
50
|
-
* copies or substantial portions of the Software.
|
|
51
|
-
*
|
|
52
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
53
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
54
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
55
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
56
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
57
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
58
|
-
* SOFTWARE.
|
|
59
|
-
*/var no="delete",X=5,vt=1<<X,He=vt-1,j={};function Il(){return{value:!1}}function Lt(e){e&&(e.value=!0)}function Dl(){}function Ci(e){return e.size===void 0&&(e.size=e.__iterate(t1)),e.size}function ar(e,t){if(typeof t!="number"){var n=t>>>0;if(""+n!==t||n===4294967295)return NaN;t=n}return t<0?Ci(e)+t:t}function t1(){return!0}function ro(e,t,n){return(e===0&&!r1(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function Li(e,t){return n1(e,t,0)}function io(e,t){return n1(e,t,t)}function n1(e,t,n){return e===void 0?n:r1(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function r1(e){return e<0||e===0&&1/e===-1/0}var i1="@@__IMMUTABLE_ITERABLE__@@";function tt(e){return!!(e&&e[i1])}var au="@@__IMMUTABLE_KEYED__@@";function Q(e){return!!(e&&e[au])}var uu="@@__IMMUTABLE_INDEXED__@@";function nt(e){return!!(e&&e[uu])}function fu(e){return Q(e)||nt(e)}var Oe=function(t){return tt(t)?t:De(t)},jt=function(e){function t(n){return Q(n)?n:cr(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Oe),zr=function(e){function t(n){return nt(n)?n:Bt(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Oe),ji=function(e){function t(n){return tt(n)&&!fu(n)?n:zi(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Oe);Oe.Keyed=jt,Oe.Indexed=zr,Oe.Set=ji;var s1="@@__IMMUTABLE_SEQ__@@";function cu(e){return!!(e&&e[s1])}var o1="@@__IMMUTABLE_RECORD__@@";function ur(e){return!!(e&&e[o1])}function Ft(e){return tt(e)||ur(e)}var fr="@@__IMMUTABLE_ORDERED__@@";function Xt(e){return!!(e&&e[fr])}var Fi=0,gt=1,yt=2,Cl=typeof Symbol=="function"&&Symbol.iterator,a1="@@iterator",lu=Cl||a1,B=function(t){this.next=t};B.prototype.toString=function(){return"[Iterator]"},B.KEYS=Fi,B.VALUES=gt,B.ENTRIES=yt,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[lu]=function(){return this};function re(e,t,n,r){var i=e===Fi?t:e===gt?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function Ie(){return{value:void 0,done:!0}}function Ll(e){return Array.isArray(e)?!0:!!hu(e)}function u1(e){return e&&typeof e.next=="function"}function jl(e){var t=hu(e);return t&&t.call(e)}function hu(e){var t=e&&(Cl&&e[Cl]||e[a1]);if(typeof t=="function")return t}function iL(e){var t=hu(e);return t&&t===e.entries}function sL(e){var t=hu(e);return t&&t===e.keys}var Bi=Object.prototype.hasOwnProperty;function Fl(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var De=function(e){function t(n){return n==null?zl():Ft(n)?n.toSeq():aL(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(r,i){var s=this._cache;if(s){for(var o=s.length,a=0;a!==o;){var u=s[i?o-++a:a++];if(r(u[1],u[0],this)===!1)break}return a}return this.__iterateUncached(r,i)},t.prototype.__iterator=function(r,i){var s=this._cache;if(s){var o=s.length,a=0;return new B(function(){if(a===o)return Ie();var u=s[i?o-++a:a++];return re(r,u[0],u[1])})}return this.__iteratorUncached(r,i)},t}(Oe),cr=function(e){function t(n){return n==null?zl().toKeyedSeq():tt(n)?Q(n)?n.toSeq():n.fromEntrySeq():ur(n)?n.toSeq():Ul(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(De),Bt=function(e){function t(n){return n==null?zl():tt(n)?Q(n)?n.entrySeq():n.toIndexedSeq():ur(n)?n.toSeq().entrySeq():c1(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(De),zi=function(e){function t(n){return(tt(n)&&!fu(n)?n:Bt(n)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(De);De.isSeq=cu,De.Keyed=cr,De.Set=zi,De.Indexed=Bt,De.prototype[s1]=!0;var Ui=function(e){function t(n){this._array=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(r,i){return this.has(r)?this._array[ar(this,r)]:i},t.prototype.__iterate=function(r,i){for(var s=this._array,o=s.length,a=0;a!==o;){var u=i?o-++a:a++;if(r(s[u],u,this)===!1)break}return a},t.prototype.__iterator=function(r,i){var s=this._array,o=s.length,a=0;return new B(function(){if(a===o)return Ie();var u=i?o-++a:a++;return re(r,u,s[u])})},t}(Bt),Bl=function(e){function t(n){var r=Object.keys(n).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[]);this._object=n,this._keys=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(r,i){return i!==void 0&&!this.has(r)?i:this._object[r]},t.prototype.has=function(r){return Bi.call(this._object,r)},t.prototype.__iterate=function(r,i){for(var s=this._object,o=this._keys,a=o.length,u=0;u!==a;){var f=o[i?a-++u:u++];if(r(s[f],f,this)===!1)break}return u},t.prototype.__iterator=function(r,i){var s=this._object,o=this._keys,a=o.length,u=0;return new B(function(){if(u===a)return Ie();var f=o[i?a-++u:u++];return re(r,f,s[f])})},t}(cr);Bl.prototype[fr]=!0;var oL=function(e){function t(n){this._collection=n,this.size=n.length||n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(r,i){if(i)return this.cacheResult().__iterate(r,i);var s=this._collection,o=jl(s),a=0;if(u1(o))for(var u;!(u=o.next()).done&&r(u.value,a++,this)!==!1;);return a},t.prototype.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var s=this._collection,o=jl(s);if(!u1(o))return new B(Ie);var a=0;return new B(function(){var u=o.next();return u.done?u:re(r,a++,u.value)})},t}(Bt),f1;function zl(){return f1||(f1=new Ui([]))}function Ul(e){var t=Vl(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new Bl(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function c1(e){var t=Vl(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function aL(e){var t=Vl(e);if(t)return iL(e)?t.fromEntrySeq():sL(e)?t.toSetSeq():t;if(typeof e=="object")return new Bl(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function Vl(e){return Fl(e)?new Ui(e):Ll(e)?new oL(e):void 0}var l1="@@__IMMUTABLE_MAP__@@";function pu(e){return!!(e&&e[l1])}function Wl(e){return pu(e)&&Xt(e)}function kl(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function Ee(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(kl(e)&&kl(t)&&e.equals(t))}var so=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,n){t|=0,n|=0;var r=t&65535,i=n&65535;return r*i+((t>>>16)*i+r*(n>>>16)<<16>>>0)|0};function du(e){return e>>>1&1073741824|e&3221225471}var uL=Object.prototype.valueOf;function rt(e){if(e==null)return h1(e);if(typeof e.hashCode=="function")return du(e.hashCode(e));var t=dL(e);if(t==null)return h1(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return fL(t);case"string":return t.length>_L?cL(t):ql(t);case"object":case"function":return hL(t);case"symbol":return lL(t);default:if(typeof t.toString=="function")return ql(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function h1(e){return e===null?1108378658:1108378659}function fL(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return du(t)}function cL(e){var t=Xl[e];return t===void 0&&(t=ql(e),Yl===vL&&(Yl=0,Xl={}),Yl++,Xl[e]=t),t}function ql(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return du(t)}function lL(e){var t=v1[e];return t!==void 0||(t=_1(),v1[e]=t),t}function hL(e){var t;if(Gl&&(t=Hl.get(e),t!==void 0)||(t=e[Ur],t!==void 0)||!d1&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ur],t!==void 0||(t=pL(e),t!==void 0)))return t;if(t=_1(),Gl)Hl.set(e,t);else{if(p1!==void 0&&p1(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(d1)Object.defineProperty(e,Ur,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ur]=t;else if(e.nodeType!==void 0)e[Ur]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var p1=Object.isExtensible,d1=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function pL(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function dL(e){return e.valueOf!==uL&&typeof e.valueOf=="function"?e.valueOf(e):e}function _1(){var e=++Kl;return Kl&1073741824&&(Kl=0),e}var Gl=typeof WeakMap=="function",Hl;Gl&&(Hl=new WeakMap);var v1=Object.create(null),Kl=0,Ur="__immutablehash__";typeof Symbol=="function"&&(Ur=Symbol(Ur));var _L=16,vL=255,Yl=0,Xl={},_u=function(e){function t(n,r){this._iter=n,this._useKeys=r,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(r,i){return this._iter.get(r,i)},t.prototype.has=function(r){return this._iter.has(r)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var r=this,i=Jl(this,!0);return this._useKeys||(i.valueSeq=function(){return r._iter.toSeq().reverse()}),i},t.prototype.map=function(r,i){var s=this,o=w1(this,r,i);return this._useKeys||(o.valueSeq=function(){return s._iter.toSeq().map(r,i)}),o},t.prototype.__iterate=function(r,i){var s=this;return this._iter.__iterate(function(o,a){return r(o,a,s)},i)},t.prototype.__iterator=function(r,i){return this._iter.__iterator(r,i)},t}(cr);_u.prototype[fr]=!0;var g1=function(e){function t(n){this._iter=n,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(r){return this._iter.includes(r)},t.prototype.__iterate=function(r,i){var s=this,o=0;return i&&Ci(this),this._iter.__iterate(function(a){return r(a,i?s.size-++o:o++,s)},i)},t.prototype.__iterator=function(r,i){var s=this,o=this._iter.__iterator(gt,i),a=0;return i&&Ci(this),new B(function(){var u=o.next();return u.done?u:re(r,i?s.size-++a:a++,u.value,u)})},t}(Bt),y1=function(e){function t(n){this._iter=n,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(r){return this._iter.includes(r)},t.prototype.__iterate=function(r,i){var s=this;return this._iter.__iterate(function(o){return r(o,o,s)},i)},t.prototype.__iterator=function(r,i){var s=this._iter.__iterator(gt,i);return new B(function(){var o=s.next();return o.done?o:re(r,o.value,o.value,o)})},t}(zi),b1=function(e){function t(n){this._iter=n,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(r,i){var s=this;return this._iter.__iterate(function(o){if(o){x1(o);var a=tt(o);return r(a?o.get(1):o[1],a?o.get(0):o[0],s)}},i)},t.prototype.__iterator=function(r,i){var s=this._iter.__iterator(gt,i);return new B(function(){for(;;){var o=s.next();if(o.done)return o;var a=o.value;if(a){x1(a);var u=tt(a);return re(r,u?a.get(0):a[0],u?a.get(1):a[1],o)}}})},t}(cr);g1.prototype.cacheResult=_u.prototype.cacheResult=y1.prototype.cacheResult=b1.prototype.cacheResult=eh;function m1(e){var t=_n(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var n=e.reverse.apply(this);return n.flip=function(){return e.reverse()},n},t.has=function(n){return e.includes(n)},t.includes=function(n){return e.has(n)},t.cacheResult=eh,t.__iterateUncached=function(n,r){var i=this;return e.__iterate(function(s,o){return n(o,s,i)!==!1},r)},t.__iteratorUncached=function(n,r){if(n===yt){var i=e.__iterator(n,r);return new B(function(){var s=i.next();if(!s.done){var o=s.value[0];s.value[0]=s.value[1],s.value[1]=o}return s})}return e.__iterator(n===gt?Fi:gt,r)},t}function w1(e,t,n){var r=_n(e);return r.size=e.size,r.has=function(i){return e.has(i)},r.get=function(i,s){var o=e.get(i,j);return o===j?s:t.call(n,o,i,e)},r.__iterateUncached=function(i,s){var o=this;return e.__iterate(function(a,u,f){return i(t.call(n,a,u,f),u,o)!==!1},s)},r.__iteratorUncached=function(i,s){var o=e.__iterator(yt,s);return new B(function(){var a=o.next();if(a.done)return a;var u=a.value,f=u[0];return re(i,f,t.call(n,u[1],f,e),a)})},r}function Jl(e,t){var n=this,r=_n(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var i=m1(e);return i.reverse=function(){return e.flip()},i}),r.get=function(i,s){return e.get(t?i:-1-i,s)},r.has=function(i){return e.has(t?i:-1-i)},r.includes=function(i){return e.includes(i)},r.cacheResult=eh,r.__iterate=function(i,s){var o=this,a=0;return s&&Ci(e),e.__iterate(function(u,f){return i(u,t?f:s?o.size-++a:a++,o)},!s)},r.__iterator=function(i,s){var o=0;s&&Ci(e);var a=e.__iterator(yt,!s);return new B(function(){var u=a.next();if(u.done)return u;var f=u.value;return re(i,t?f[0]:s?n.size-++o:o++,f[1],u)})},r}function A1(e,t,n,r){var i=_n(e);return r&&(i.has=function(s){var o=e.get(s,j);return o!==j&&!!t.call(n,o,s,e)},i.get=function(s,o){var a=e.get(s,j);return a!==j&&t.call(n,a,s,e)?a:o}),i.__iterateUncached=function(s,o){var a=this,u=0;return e.__iterate(function(f,c,l){if(t.call(n,f,c,l))return u++,s(f,r?c:u-1,a)},o),u},i.__iteratorUncached=function(s,o){var a=e.__iterator(yt,o),u=0;return new B(function(){for(;;){var f=a.next();if(f.done)return f;var c=f.value,l=c[0],h=c[1];if(t.call(n,h,l,e))return re(s,r?l:u++,h,f)}})},i}function gL(e,t,n){var r=Wr().asMutable();return e.__iterate(function(i,s){r.update(t.call(n,i,s,e),0,function(o){return o+1})}),r.asImmutable()}function yL(e,t,n){var r=Q(e),i=(Xt(e)?yn():Wr()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(u){return u=u||[],u.push(r?[a,o]:o),u})});var s=Ql(e);return i.map(function(o){return J(e,s(o))}).asImmutable()}function bL(e,t,n){var r=Q(e),i=[[],[]];e.__iterate(function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)});var s=Ql(e);return i.map(function(o){return J(e,s(o))})}function Zl(e,t,n,r){var i=e.size;if(ro(t,n,i))return e;if(typeof i>"u"&&(t<0||n<0))return Zl(e.toSeq().cacheResult(),t,n,r);var s=Li(t,i),o=io(n,i),a=o-s,u;a===a&&(u=a<0?0:a);var f=_n(e);return f.size=u===0?u:e.size&&u||void 0,!r&&cu(e)&&u>=0&&(f.get=function(c,l){return c=ar(this,c),c>=0&&c<u?e.get(c+s,l):l}),f.__iterateUncached=function(c,l){var h=this;if(u===0)return 0;if(l)return this.cacheResult().__iterate(c,l);var d=0,_=!0,v=0;return e.__iterate(function(g,y){if(!(_&&(_=d++<s)))return v++,c(g,r?y:v-1,h)!==!1&&v!==u}),v},f.__iteratorUncached=function(c,l){if(u!==0&&l)return this.cacheResult().__iterator(c,l);if(u===0)return new B(Ie);var h=e.__iterator(c,l),d=0,_=0;return new B(function(){for(;d++<s;)h.next();if(++_>u)return Ie();var v=h.next();return r||c===gt||v.done?v:c===Fi?re(c,_-1,void 0,v):re(c,_-1,v.value[1],v)})},f}function mL(e,t,n){var r=_n(e);return r.__iterateUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterate(i,s);var a=0;return e.__iterate(function(u,f,c){return t.call(n,u,f,c)&&++a&&i(u,f,o)}),a},r.__iteratorUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterator(i,s);var a=e.__iterator(yt,s),u=!0;return new B(function(){if(!u)return Ie();var f=a.next();if(f.done)return f;var c=f.value,l=c[0],h=c[1];return t.call(n,h,l,o)?i===yt?f:re(i,l,h,f):(u=!1,Ie())})},r}function O1(e,t,n,r){var i=_n(e);return i.__iterateUncached=function(s,o){var a=this;if(o)return this.cacheResult().__iterate(s,o);var u=!0,f=0;return e.__iterate(function(c,l,h){if(!(u&&(u=t.call(n,c,l,h))))return f++,s(c,r?l:f-1,a)}),f},i.__iteratorUncached=function(s,o){var a=this;if(o)return this.cacheResult().__iterator(s,o);var u=e.__iterator(yt,o),f=!0,c=0;return new B(function(){var l,h,d;do{if(l=u.next(),l.done)return r||s===gt?l:s===Fi?re(s,c++,void 0,l):re(s,c++,l.value[1],l);var _=l.value;h=_[0],d=_[1],f&&(f=t.call(n,d,h,a))}while(f);return s===yt?l:re(s,h,d,l)})},i}var wL=function(e){function t(n){this._wrappedIterables=n.flatMap(function(r){return r._wrappedIterables?r._wrappedIterables:[r]}),this.size=this._wrappedIterables.reduce(function(r,i){if(r!==void 0){var s=i.size;if(s!==void 0)return r+s}},0),this[au]=this._wrappedIterables[0][au],this[uu]=this._wrappedIterables[0][uu],this[fr]=this._wrappedIterables[0][fr]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(r,i){if(this._wrappedIterables.length!==0){if(i)return this.cacheResult().__iterate(r,i);for(var s=0,o=Q(this),a=o?yt:gt,u=this._wrappedIterables[s].__iterator(a,i),f=!0,c=0;f;){for(var l=u.next();l.done;){if(s++,s===this._wrappedIterables.length)return c;u=this._wrappedIterables[s].__iterator(a,i),l=u.next()}var h=o?r(l.value[1],l.value[0],this):r(l.value,c,this);f=h!==!1,c++}return c}},t.prototype.__iteratorUncached=function(r,i){var s=this;if(this._wrappedIterables.length===0)return new B(Ie);if(i)return this.cacheResult().__iterator(r,i);var o=0,a=this._wrappedIterables[o].__iterator(r,i);return new B(function(){for(var u=a.next();u.done;){if(o++,o===s._wrappedIterables.length)return u;a=s._wrappedIterables[o].__iterator(r,i),u=a.next()}return u})},t}(De);function AL(e,t){var n=Q(e),r=[e].concat(t).map(function(s){return tt(s)?n&&(s=jt(s)):s=n?Ul(s):c1(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(r.length===0)return e;if(r.length===1){var i=r[0];if(i===e||n&&Q(i)||nt(e)&&nt(i))return i}return new wL(r)}function E1(e,t,n){var r=_n(e);return r.__iterateUncached=function(i,s){if(s)return this.cacheResult().__iterate(i,s);var o=0,a=!1;function u(f,c){f.__iterate(function(l,h){return(!t||c<t)&&tt(l)?u(l,c+1):(o++,i(l,n?h:o-1,r)===!1&&(a=!0)),!a},s)}return u(e,0),o},r.__iteratorUncached=function(i,s){if(s)return this.cacheResult().__iterator(i,s);var o=e.__iterator(i,s),a=[],u=0;return new B(function(){for(;o;){var f=o.next();if(f.done!==!1){o=a.pop();continue}var c=f.value;if(i===yt&&(c=c[1]),(!t||a.length<t)&&tt(c))a.push(o),o=c.__iterator(i,s);else return n?f:re(i,u++,c,f)}return Ie()})},r}function OL(e,t,n){var r=Ql(e);return e.toSeq().map(function(i,s){return r(t.call(n,i,s,e))}).flatten(!0)}function EL(e,t){var n=_n(e);return n.size=e.size&&e.size*2-1,n.__iterateUncached=function(r,i){var s=this,o=0;return e.__iterate(function(a){return(!o||r(t,o++,s)!==!1)&&r(a,o++,s)!==!1},i),o},n.__iteratorUncached=function(r,i){var s=e.__iterator(gt,i),o=0,a;return new B(function(){return(!a||o%2)&&(a=s.next(),a.done)?a:o%2?re(r,o++,t):re(r,o++,a.value,a)})},n}function Vi(e,t,n){t||(t=T1);var r=Q(e),i=0,s=e.toSeq().map(function(o,a){return[a,o,i++,n?n(o,a,e):o]}).valueSeq().toArray();return s.sort(function(o,a){return t(o[3],a[3])||o[2]-a[2]}).forEach(r?function(o,a){s[a].length=2}:function(o,a){s[a]=o[1]}),r?cr(s):nt(e)?Bt(s):zi(s)}function vu(e,t,n){if(t||(t=T1),n){var r=e.toSeq().map(function(i,s){return[i,n(i,s,e)]}).reduce(function(i,s){return S1(t,i[1],s[1])?s:i});return r&&r[0]}return e.reduce(function(i,s){return S1(t,i,s)?s:i})}function S1(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function gu(e,t,n,r){var i=_n(e),s=new Ui(n).map(function(o){return o.size});return i.size=r?s.max():s.min(),i.__iterate=function(o,a){for(var u=this.__iterator(gt,a),f,c=0;!(f=u.next()).done&&o(f.value,c++,this)!==!1;);return c},i.__iteratorUncached=function(o,a){var u=n.map(function(l){return l=Oe(l),jl(a?l.reverse():l)}),f=0,c=!1;return new B(function(){var l;return c||(l=u.map(function(h){return h.next()}),c=r?l.every(function(h){return h.done}):l.some(function(h){return h.done})),c?Ie():re(o,f++,t.apply(null,l.map(function(h){return h.value})))})},i}function J(e,t){return e===t?e:cu(e)?t:e.constructor(t)}function x1(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ql(e){return Q(e)?jt:nt(e)?zr:ji}function _n(e){return Object.create((Q(e)?cr:nt(e)?Bt:zi).prototype)}function eh(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):De.prototype.cacheResult.call(this)}function T1(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function vn(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function oo(e,t){if(!e)throw new Error(t)}function bt(e){oo(e!==1/0,"Cannot perform this action with an infinite size.")}function R1(e){if(Fl(e)&&typeof e!="string")return e;if(Xt(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}var SL=Object.prototype.toString;function th(e){if(!e||typeof e!="object"||SL.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t,r=Object.getPrototypeOf(t);r!==null;)n=r,r=Object.getPrototypeOf(n);return n===t}function lr(e){return typeof e=="object"&&(Ft(e)||Array.isArray(e)||th(e))}function ao(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function P1(e,t){return Ft(e)?e.has(t):lr(e)&&Bi.call(e,t)}function nh(e,t,n){return Ft(e)?e.get(t,n):P1(e,t)?typeof e.get=="function"?e.get(t):e[t]:n}function yu(e){if(Array.isArray(e))return vn(e);var t={};for(var n in e)Bi.call(e,n)&&(t[n]=e[n]);return t}function N1(e,t){if(!lr(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Ft(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!Bi.call(e,t))return e;var n=yu(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function $1(e,t,n){if(!lr(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Ft(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(Bi.call(e,t)&&n===e[t])return e;var r=yu(e);return r[t]=n,r}function Vr(e,t,n,r){r||(r=n,n=void 0);var i=M1(Ft(e),e,R1(t),0,n,r);return i===j?n:i}function M1(e,t,n,r,i,s){var o=t===j;if(r===n.length){var a=o?i:t,u=s(a);return u===a?t:u}if(!o&&!lr(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(n).slice(0,r).map(ao)+"]: "+t);var f=n[r],c=o?j:nh(t,f,j),l=M1(c===j?e:Ft(c),c,n,r+1,i,s);return l===c?t:l===j?N1(t,f):$1(o?e?gn():{}:t,f,l)}function I1(e,t,n){return Vr(e,t,j,function(){return n})}function rh(e,t){return I1(this,e,t)}function D1(e,t){return Vr(e,t,function(){return j})}function ih(e){return D1(this,e)}function sh(e,t,n,r){return Vr(e,[t],n,r)}function oh(e,t,n){return arguments.length===1?e(this):sh(this,e,t,n)}function ah(e,t,n){return Vr(this,e,t,n)}function C1(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return j1(this,e)}function L1(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return j1(this,t,e)}function j1(e,t,n){for(var r=[],i=0;i<t.length;i++){var s=jt(t[i]);s.size!==0&&r.push(s)}return r.length===0?e:e.toSeq().size===0&&!e.__ownerID&&r.length===1?ur(e)?e:e.constructor(r[0]):e.withMutations(function(o){for(var a=n?function(f,c){sh(o,c,j,function(l){return l===j?f:n(l,f,c)})}:function(f,c){o.set(c,f)},u=0;u<r.length;u++)r[u].forEach(a)})}function xL(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return fo(e,t)}function TL(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return fo(t,n,e)}function RL(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return uo(e,t)}function PL(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return uo(t,n,e)}function uo(e,t,n){return fo(e,t,NL(n))}function fo(e,t,n){if(!lr(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Ft(e))return typeof n=="function"&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,s=r?zr:jt,o=r?function(u){i===e&&(i=yu(i)),i.push(u)}:function(u,f){var c=Bi.call(i,f),l=c&&n?n(i[f],u,f):u;(!c||l!==i[f])&&(i===e&&(i=yu(i)),i[f]=l)},a=0;a<t.length;a++)s(t[a]).forEach(o);return i}function NL(e){function t(n,r,i){return lr(n)&&lr(r)&&$L(n,r)?fo(n,[r],t):e?e(n,r,i):r}return t}function $L(e,t){var n=De(e),r=De(t);return nt(n)===nt(r)&&Q(n)===Q(r)}function F1(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return uo(this,e)}function B1(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return uo(this,t,e)}function uh(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Vr(this,e,gn(),function(r){return fo(r,t)})}function fh(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Vr(this,e,gn(),function(r){return uo(r,t)})}function co(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function lo(){return this.__ownerID?this:this.__ensureOwner(new Dl)}function ho(){return this.__ensureOwner()}function ch(){return this.__altered}var Wr=function(e){function t(n){return n==null?gn():pu(n)&&!Xt(n)?n:gn().withMutations(function(r){var i=e(n);bt(i.size),i.forEach(function(s,o){return r.set(o,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(r,i){return this._root?this._root.get(0,void 0,r,i):i},t.prototype.set=function(r,i){return V1(this,r,i)},t.prototype.remove=function(r){return V1(this,r,j)},t.prototype.deleteAll=function(r){var i=Oe(r);return i.size===0?this:this.withMutations(function(s){i.forEach(function(o){return s.remove(o)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):gn()},t.prototype.sort=function(r){return yn(Vi(this,r))},t.prototype.sortBy=function(r,i){return yn(Vi(this,i,r))},t.prototype.map=function(r,i){var s=this;return this.withMutations(function(o){o.forEach(function(a,u){o.set(u,r.call(i,a,u,s))})})},t.prototype.__iterator=function(r,i){return new ML(this,r,i)},t.prototype.__iterate=function(r,i){var s=this,o=0;return this._root&&this._root.iterate(function(a){return o++,r(a[1],a[0],s)},i),o},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?hh(this.size,this._root,r,this.__hash):this.size===0?gn():(this.__ownerID=r,this.__altered=!1,this)},t}(jt);Wr.isMap=pu;var ie=Wr.prototype;ie[l1]=!0,ie[no]=ie.remove,ie.removeAll=ie.deleteAll,ie.setIn=rh,ie.removeIn=ie.deleteIn=ih,ie.update=oh,ie.updateIn=ah,ie.merge=ie.concat=C1,ie.mergeWith=L1,ie.mergeDeep=F1,ie.mergeDeepWith=B1,ie.mergeIn=uh,ie.mergeDeepIn=fh,ie.withMutations=co,ie.wasAltered=ch,ie.asImmutable=ho,ie["@@transducer/init"]=ie.asMutable=lo,ie["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},ie["@@transducer/result"]=function(e){return e.asImmutable()};var po=function(t,n){this.ownerID=t,this.entries=n};po.prototype.get=function(t,n,r,i){for(var s=this.entries,o=0,a=s.length;o<a;o++)if(Ee(r,s[o][0]))return s[o][1];return i},po.prototype.update=function(t,n,r,i,s,o,a){for(var u=s===j,f=this.entries,c=0,l=f.length;c<l&&!Ee(i,f[c][0]);c++);var h=c<l;if(h?f[c][1]===s:u)return this;if(Lt(a),(u||!h)&&Lt(o),!(u&&f.length===1)){if(!h&&!u&&f.length>=FL)return IL(t,f,i,s);var d=t&&t===this.ownerID,_=d?f:vn(f);return h?u?c===l-1?_.pop():_[c]=_.pop():_[c]=[i,s]:_.push([i,s]),d?(this.entries=_,this):new po(t,_)}};var Wi=function(t,n,r){this.ownerID=t,this.bitmap=n,this.nodes=r};Wi.prototype.get=function(t,n,r,i){n===void 0&&(n=rt(r));var s=1<<((t===0?n:n>>>t)&He),o=this.bitmap;return(o&s)===0?i:this.nodes[k1(o&s-1)].get(t+X,n,r,i)},Wi.prototype.update=function(t,n,r,i,s,o,a){r===void 0&&(r=rt(i));var u=(n===0?r:r>>>n)&He,f=1<<u,c=this.bitmap,l=(c&f)!==0;if(!l&&s===j)return this;var h=k1(c&f-1),d=this.nodes,_=l?d[h]:void 0,v=ph(_,t,n+X,r,i,s,o,a);if(v===_)return this;if(!l&&v&&d.length>=BL)return CL(t,d,c,u,v);if(l&&!v&&d.length===2&&W1(d[h^1]))return d[h^1];if(l&&v&&d.length===1&&W1(v))return v;var g=t&&t===this.ownerID,y=l?v?c:c^f:c|f,b=l?v?q1(d,h,v,g):jL(d,h,g):LL(d,h,v,g);return g?(this.bitmap=y,this.nodes=b,this):new Wi(t,y,b)};var _o=function(t,n,r){this.ownerID=t,this.count=n,this.nodes=r};_o.prototype.get=function(t,n,r,i){n===void 0&&(n=rt(r));var s=(t===0?n:n>>>t)&He,o=this.nodes[s];return o?o.get(t+X,n,r,i):i},_o.prototype.update=function(t,n,r,i,s,o,a){r===void 0&&(r=rt(i));var u=(n===0?r:r>>>n)&He,f=s===j,c=this.nodes,l=c[u];if(f&&!l)return this;var h=ph(l,t,n+X,r,i,s,o,a);if(h===l)return this;var d=this.count;if(!l)d++;else if(!h&&(d--,d<zL))return DL(t,c,d,u);var _=t&&t===this.ownerID,v=q1(c,u,h,_);return _?(this.count=d,this.nodes=v,this):new _o(t,d,v)};var ki=function(t,n,r){this.ownerID=t,this.keyHash=n,this.entries=r};ki.prototype.get=function(t,n,r,i){for(var s=this.entries,o=0,a=s.length;o<a;o++)if(Ee(r,s[o][0]))return s[o][1];return i},ki.prototype.update=function(t,n,r,i,s,o,a){r===void 0&&(r=rt(i));var u=s===j;if(r!==this.keyHash)return u?this:(Lt(a),Lt(o),dh(this,t,n,r,[i,s]));for(var f=this.entries,c=0,l=f.length;c<l&&!Ee(i,f[c][0]);c++);var h=c<l;if(h?f[c][1]===s:u)return this;if(Lt(a),(u||!h)&&Lt(o),u&&l===2)return new zn(t,this.keyHash,f[c^1]);var d=t&&t===this.ownerID,_=d?f:vn(f);return h?u?c===l-1?_.pop():_[c]=_.pop():_[c]=[i,s]:_.push([i,s]),d?(this.entries=_,this):new ki(t,this.keyHash,_)};var zn=function(t,n,r){this.ownerID=t,this.keyHash=n,this.entry=r};zn.prototype.get=function(t,n,r,i){return Ee(r,this.entry[0])?this.entry[1]:i},zn.prototype.update=function(t,n,r,i,s,o,a){var u=s===j,f=Ee(i,this.entry[0]);if(f?s===this.entry[1]:u)return this;if(Lt(a),u){Lt(o);return}return f?t&&t===this.ownerID?(this.entry[1]=s,this):new zn(t,this.keyHash,[i,s]):(Lt(o),dh(this,t,n,rt(i),[i,s]))},po.prototype.iterate=ki.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1},Wi.prototype.iterate=_o.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var s=n[t?i-r:r];if(s&&s.iterate(e,t)===!1)return!1}},zn.prototype.iterate=function(e,t){return e(this.entry)};var ML=function(e){function t(n,r,i){this._type=r,this._reverse=i,this._stack=n._root&&z1(n._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var r=this._type,i=this._stack;i;){var s=i.node,o=i.index++,a=void 0;if(s.entry){if(o===0)return lh(r,s.entry)}else if(s.entries){if(a=s.entries.length-1,o<=a)return lh(r,s.entries[this._reverse?a-o:o])}else if(a=s.nodes.length-1,o<=a){var u=s.nodes[this._reverse?a-o:o];if(u){if(u.entry)return lh(r,u.entry);i=this._stack=z1(u,i)}continue}i=this._stack=this._stack.__prev}return Ie()},t}(B);function lh(e,t){return re(e,t[0],t[1])}function z1(e,t){return{node:e,index:0,__prev:t}}function hh(e,t,n,r){var i=Object.create(ie);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var U1;function gn(){return U1||(U1=hh(0))}function V1(e,t,n){var r,i;if(e._root){var s=Il(),o=Il();if(r=ph(e._root,e.__ownerID,0,void 0,t,n,s,o),!o.value)return e;i=e.size+(s.value?n===j?-1:1:0)}else{if(n===j)return e;i=1,r=new po(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?hh(i,r):gn()}function ph(e,t,n,r,i,s,o,a){return e?e.update(t,n,r,i,s,o,a):s===j?e:(Lt(a),Lt(o),new zn(t,r,[i,s]))}function W1(e){return e.constructor===zn||e.constructor===ki}function dh(e,t,n,r,i){if(e.keyHash===r)return new ki(t,r,[e.entry,i]);var s=(n===0?e.keyHash:e.keyHash>>>n)&He,o=(n===0?r:r>>>n)&He,a,u=s===o?[dh(e,t,n+X,r,i)]:(a=new zn(t,r,i),s<o?[e,a]:[a,e]);return new Wi(t,1<<s|1<<o,u)}function IL(e,t,n,r){e||(e=new Dl);for(var i=new zn(e,rt(n),[n,r]),s=0;s<t.length;s++){var o=t[s];i=i.update(e,0,void 0,o[0],o[1])}return i}function DL(e,t,n,r){for(var i=0,s=0,o=new Array(n),a=0,u=1,f=t.length;a<f;a++,u<<=1){var c=t[a];c!==void 0&&a!==r&&(i|=u,o[s++]=c)}return new Wi(e,i,o)}function CL(e,t,n,r,i){for(var s=0,o=new Array(vt),a=0;n!==0;a++,n>>>=1)o[a]=n&1?t[s++]:void 0;return o[r]=i,new _o(e,s+1,o)}function k1(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function q1(e,t,n,r){var i=r?e:vn(e);return i[t]=n,i}function LL(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var s=new Array(i),o=0,a=0;a<i;a++)a===t?(s[a]=n,o=-1):s[a]=e[a+o];return s}function jL(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),s=0,o=0;o<r;o++)o===t&&(s=1),i[o]=e[o+s];return i}var FL=vt/4,BL=vt/2,zL=vt/4,G1="@@__IMMUTABLE_LIST__@@";function _h(e){return!!(e&&e[G1])}var vo=function(e){function t(n){var r=bu();if(n==null)return r;if(_h(n))return n;var i=e(n),s=i.size;return s===0?r:(bt(s),s>0&&s<vt?yo(0,s,X,null,new hr(i.toArray())):r.withMutations(function(o){o.setSize(s),i.forEach(function(a,u){return o.set(u,a)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(r,i){if(r=ar(this,r),r>=0&&r<this.size){r+=this._origin;var s=K1(this,r);return s&&s.array[r&He]}return i},t.prototype.set=function(r,i){return UL(this,r,i)},t.prototype.remove=function(r){return this.has(r)?r===0?this.shift():r===this.size-1?this.pop():this.splice(r,1):this},t.prototype.insert=function(r,i){return this.splice(r,0,i)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=X,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):bu()},t.prototype.push=function(){var r=arguments,i=this.size;return this.withMutations(function(s){pr(s,0,i+r.length);for(var o=0;o<r.length;o++)s.set(i+o,r[o])})},t.prototype.pop=function(){return pr(this,0,-1)},t.prototype.unshift=function(){var r=arguments;return this.withMutations(function(i){pr(i,-r.length);for(var s=0;s<r.length;s++)i.set(s,r[s])})},t.prototype.shift=function(){return pr(this,1)},t.prototype.shuffle=function(r){return r===void 0&&(r=Math.random),this.withMutations(function(i){for(var s=i.size,o,a;s;)o=Math.floor(r()*s--),a=i.get(o),i.set(o,i.get(s)),i.set(s,a)})},t.prototype.concat=function(){for(var r=arguments,i=[],s=0;s<arguments.length;s++){var o=r[s],a=e(typeof o!="string"&&Ll(o)?o:[o]);a.size!==0&&i.push(a)}return i.length===0?this:this.size===0&&!this.__ownerID&&i.length===1?this.constructor(i[0]):this.withMutations(function(u){i.forEach(function(f){return f.forEach(function(c){return u.push(c)})})})},t.prototype.setSize=function(r){return pr(this,0,r)},t.prototype.map=function(r,i){var s=this;return this.withMutations(function(o){for(var a=0;a<s.size;a++)o.set(a,r.call(i,o.get(a),a,s))})},t.prototype.slice=function(r,i){var s=this.size;return ro(r,i,s)?this:pr(this,Li(r,s),io(i,s))},t.prototype.__iterator=function(r,i){var s=i?this.size:0,o=H1(this,i);return new B(function(){var a=o();return a===go?Ie():re(r,i?--s:s++,a)})},t.prototype.__iterate=function(r,i){for(var s=i?this.size:0,o=H1(this,i),a;(a=o())!==go&&r(a,i?--s:s++,this)!==!1;);return s},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?yo(this._origin,this._capacity,this._level,this._root,this._tail,r,this.__hash):this.size===0?bu():(this.__ownerID=r,this.__altered=!1,this)},t}(zr);vo.isList=_h;var pe=vo.prototype;pe[G1]=!0,pe[no]=pe.remove,pe.merge=pe.concat,pe.setIn=rh,pe.deleteIn=pe.removeIn=ih,pe.update=oh,pe.updateIn=ah,pe.mergeIn=uh,pe.mergeDeepIn=fh,pe.withMutations=co,pe.wasAltered=ch,pe.asImmutable=ho,pe["@@transducer/init"]=pe.asMutable=lo,pe["@@transducer/step"]=function(e,t){return e.push(t)},pe["@@transducer/result"]=function(e){return e.asImmutable()};var hr=function(t,n){this.array=t,this.ownerID=n};hr.prototype.removeBefore=function(t,n,r){if((r&(1<<n+X)-1)===0||this.array.length===0)return this;var i=r>>>n&He;if(i>=this.array.length)return new hr([],t);var s=i===0,o;if(n>0){var a=this.array[i];if(o=a&&a.removeBefore(t,n-X,r),o===a&&s)return this}if(s&&!o)return this;var u=qi(this,t);if(!s)for(var f=0;f<i;f++)u.array[f]=void 0;return o&&(u.array[i]=o),u},hr.prototype.removeAfter=function(t,n,r){if(r===(n?1<<n+X:vt)||this.array.length===0)return this;var i=r-1>>>n&He;if(i>=this.array.length)return this;var s;if(n>0){var o=this.array[i];if(s=o&&o.removeAfter(t,n-X,r),s===o&&i===this.array.length-1)return this}var a=qi(this,t);return a.array.splice(i+1),s&&(a.array[i]=s),a};var go={};function H1(e,t){var n=e._origin,r=e._capacity,i=bo(r),s=e._tail;return o(e._root,e._level,0);function o(f,c,l){return c===0?a(f,l):u(f,c,l)}function a(f,c){var l=c===i?s&&s.array:f&&f.array,h=c>n?0:n-c,d=r-c;return d>vt&&(d=vt),function(){if(h===d)return go;var _=t?--d:h++;return l&&l[_]}}function u(f,c,l){var h,d=f&&f.array,_=l>n?0:n-l>>c,v=(r-l>>c)+1;return v>vt&&(v=vt),function(){for(;;){if(h){var g=h();if(g!==go)return g;h=null}if(_===v)return go;var y=t?--v:_++;h=o(d&&d[y],c-X,l+(y<<c))}}}}function yo(e,t,n,r,i,s,o){var a=Object.create(pe);return a.size=t-e,a._origin=e,a._capacity=t,a._level=n,a._root=r,a._tail=i,a.__ownerID=s,a.__hash=o,a.__altered=!1,a}function bu(){return yo(0,0,X)}function UL(e,t,n){if(t=ar(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(o){t<0?pr(o,t).set(0,n):pr(o,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,s=Il();return t>=bo(e._capacity)?r=vh(r,e.__ownerID,0,t,n,s):i=vh(i,e.__ownerID,e._level,t,n,s),s.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):yo(e._origin,e._capacity,e._level,i,r):e}function vh(e,t,n,r,i,s){var o=r>>>n&He,a=e&&o<e.array.length;if(!a&&i===void 0)return e;var u;if(n>0){var f=e&&e.array[o],c=vh(f,t,n-X,r,i,s);return c===f?e:(u=qi(e,t),u.array[o]=c,u)}return a&&e.array[o]===i?e:(s&&Lt(s),u=qi(e,t),i===void 0&&o===u.array.length-1?u.array.pop():u.array[o]=i,u)}function qi(e,t){return t&&e&&t===e.ownerID?e:new hr(e?e.array.slice():[],t)}function K1(e,t){if(t>=bo(e._capacity))return e._tail;if(t<1<<e._level+X){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&He],r-=X;return n}}function pr(e,t,n){t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new Dl,i=e._origin,s=e._capacity,o=i+t,a=n===void 0?s:n<0?s+n:i+n;if(o===i&&a===s)return e;if(o>=a)return e.clear();for(var u=e._level,f=e._root,c=0;o+c<0;)f=new hr(f&&f.array.length?[void 0,f]:[],r),u+=X,c+=1<<u;c&&(o+=c,i+=c,a+=c,s+=c);for(var l=bo(s),h=bo(a);h>=1<<u+X;)f=new hr(f&&f.array.length?[f]:[],r),u+=X;var d=e._tail,_=h<l?K1(e,a-1):h>l?new hr([],r):d;if(d&&h>l&&o<s&&d.array.length){f=qi(f,r);for(var v=f,g=u;g>X;g-=X){var y=l>>>g&He;v=v.array[y]=qi(v.array[y],r)}v.array[l>>>X&He]=d}if(a<s&&(_=_&&_.removeAfter(r,0,a)),o>=h)o-=h,a-=h,u=X,f=null,_=_&&_.removeBefore(r,0,o);else if(o>i||h<l){for(c=0;f;){var b=o>>>u&He;if(b!==h>>>u&He)break;b&&(c+=(1<<u)*b),u-=X,f=f.array[b]}f&&o>i&&(f=f.removeBefore(r,u,o-c)),f&&h<l&&(f=f.removeAfter(r,u,h-c)),c&&(o-=c,a-=c)}return e.__ownerID?(e.size=a-o,e._origin=o,e._capacity=a,e._level=u,e._root=f,e._tail=_,e.__hash=void 0,e.__altered=!0,e):yo(o,a,u,f,_)}function bo(e){return e<vt?0:e-1>>>X<<X}var yn=function(e){function t(n){return n==null?mo():Wl(n)?n:mo().withMutations(function(r){var i=jt(n);bt(i.size),i.forEach(function(s,o){return r.set(o,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(r,i){var s=this._map.get(r);return s!==void 0?this._list.get(s)[1]:i},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):mo()},t.prototype.set=function(r,i){return X1(this,r,i)},t.prototype.remove=function(r){return X1(this,r,j)},t.prototype.__iterate=function(r,i){var s=this;return this._list.__iterate(function(o){return o&&r(o[1],o[0],s)},i)},t.prototype.__iterator=function(r,i){return this._list.fromEntrySeq().__iterator(r,i)},t.prototype.__ensureOwner=function(r){if(r===this.__ownerID)return this;var i=this._map.__ensureOwner(r),s=this._list.__ensureOwner(r);return r?gh(i,s,r,this.__hash):this.size===0?mo():(this.__ownerID=r,this.__altered=!1,this._map=i,this._list=s,this)},t}(Wr);yn.isOrderedMap=Wl,yn.prototype[fr]=!0,yn.prototype[no]=yn.prototype.remove;function gh(e,t,n,r){var i=Object.create(yn.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var Y1;function mo(){return Y1||(Y1=gh(gn(),bu()))}function X1(e,t,n){var r=e._map,i=e._list,s=r.get(t),o=s!==void 0,a,u;if(n===j){if(!o)return e;i.size>=vt&&i.size>=r.size*2?(u=i.filter(function(f,c){return f!==void 0&&s!==c}),a=u.toKeyedSeq().map(function(f){return f[0]}).flip().toMap(),e.__ownerID&&(a.__ownerID=u.__ownerID=e.__ownerID)):(a=r.remove(t),u=s===i.size-1?i.pop():i.set(s,void 0))}else if(o){if(n===i.get(s)[1])return e;a=r,u=i.set(s,[t,n])}else a=r.set(t,i.size),u=i.set(i.size,[t,n]);return e.__ownerID?(e.size=a.size,e._map=a,e._list=u,e.__hash=void 0,e.__altered=!0,e):gh(a,u)}var J1="@@__IMMUTABLE_STACK__@@";function mu(e){return!!(e&&e[J1])}var wu=function(e){function t(n){return n==null?Au():mu(n)?n:Au().pushAll(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(r,i){var s=this._head;for(r=ar(this,r);s&&r--;)s=s.next;return s?s.value:i},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var r=arguments;if(arguments.length===0)return this;for(var i=this.size+arguments.length,s=this._head,o=arguments.length-1;o>=0;o--)s={value:r[o],next:s};return this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):wo(i,s)},t.prototype.pushAll=function(r){if(r=e(r),r.size===0)return this;if(this.size===0&&mu(r))return r;bt(r.size);var i=this.size,s=this._head;return r.__iterate(function(o){i++,s={value:o,next:s}},!0),this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):wo(i,s)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Au()},t.prototype.slice=function(r,i){if(ro(r,i,this.size))return this;var s=Li(r,this.size),o=io(i,this.size);if(o!==this.size)return e.prototype.slice.call(this,r,i);for(var a=this.size-s,u=this._head;s--;)u=u.next;return this.__ownerID?(this.size=a,this._head=u,this.__hash=void 0,this.__altered=!0,this):wo(a,u)},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?wo(this.size,this._head,r,this.__hash):this.size===0?Au():(this.__ownerID=r,this.__altered=!1,this)},t.prototype.__iterate=function(r,i){var s=this;if(i)return new Ui(this.toArray()).__iterate(function(u,f){return r(u,f,s)},i);for(var o=0,a=this._head;a&&r(a.value,o++,this)!==!1;)a=a.next;return o},t.prototype.__iterator=function(r,i){if(i)return new Ui(this.toArray()).__iterator(r,i);var s=0,o=this._head;return new B(function(){if(o){var a=o.value;return o=o.next,re(r,s++,a)}return Ie()})},t}(zr);wu.isStack=mu;var Ke=wu.prototype;Ke[J1]=!0,Ke.shift=Ke.pop,Ke.unshift=Ke.push,Ke.unshiftAll=Ke.pushAll,Ke.withMutations=co,Ke.wasAltered=ch,Ke.asImmutable=ho,Ke["@@transducer/init"]=Ke.asMutable=lo,Ke["@@transducer/step"]=function(e,t){return e.unshift(t)},Ke["@@transducer/result"]=function(e){return e.asImmutable()};function wo(e,t,n,r){var i=Object.create(Ke);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var Z1;function Au(){return Z1||(Z1=wo(0))}var Q1="@@__IMMUTABLE_SET__@@";function Ou(e){return!!(e&&e[Q1])}function yh(e){return Ou(e)&&Xt(e)}function bh(e,t){if(e===t)return!0;if(!tt(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||Q(e)!==Q(t)||nt(e)!==nt(t)||Xt(e)!==Xt(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!fu(e);if(Xt(e)){var r=e.entries();return t.every(function(u,f){var c=r.next().value;return c&&Ee(c[1],u)&&(n||Ee(c[0],f))})&&r.next().done}var i=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{i=!0;var s=e;e=t,t=s}var o=!0,a=t.__iterate(function(u,f){if(n?!e.has(u):i?!Ee(u,e.get(f,j)):!Ee(e.get(f,j),u))return o=!1,!1});return o&&e.size===a}function kr(e,t){var n=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Eu(e){if(!e||typeof e!="object")return e;if(!tt(e)){if(!lr(e))return e;e=De(e)}if(Q(e)){var t={};return e.__iterate(function(r,i){t[i]=Eu(r)}),t}var n=[];return e.__iterate(function(r){n.push(Eu(r))}),n}var Ao=function(e){function t(n){return n==null?Oo():Ou(n)&&!Xt(n)?n:Oo().withMutations(function(r){var i=e(n);bt(i.size),i.forEach(function(s){return r.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(r){return this(jt(r).keySeq())},t.intersect=function(r){return r=Oe(r).toArray(),r.length?Ne.intersect.apply(t(r.pop()),r):Oo()},t.union=function(r){return r=Oe(r).toArray(),r.length?Ne.union.apply(t(r.pop()),r):Oo()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(r){return this._map.has(r)},t.prototype.add=function(r){return Su(this,this._map.set(r,r))},t.prototype.remove=function(r){return Su(this,this._map.remove(r))},t.prototype.clear=function(){return Su(this,this._map.clear())},t.prototype.map=function(r,i){var s=this,o=!1,a=Su(this,this._map.mapEntries(function(u){var f=u[1],c=r.call(i,f,f,s);return c!==f&&(o=!0),[c,c]},i));return o?a:this},t.prototype.union=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return r=r.filter(function(s){return s.size!==0}),r.length===0?this:this.size===0&&!this.__ownerID&&r.length===1?this.constructor(r[0]):this.withMutations(function(s){for(var o=0;o<r.length;o++)typeof r[o]=="string"?s.add(r[o]):e(r[o]).forEach(function(a){return s.add(a)})})},t.prototype.intersect=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];if(r.length===0)return this;r=r.map(function(o){return e(o)});var s=[];return this.forEach(function(o){r.every(function(a){return a.includes(o)})||s.push(o)}),this.withMutations(function(o){s.forEach(function(a){o.remove(a)})})},t.prototype.subtract=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];if(r.length===0)return this;r=r.map(function(o){return e(o)});var s=[];return this.forEach(function(o){r.some(function(a){return a.includes(o)})&&s.push(o)}),this.withMutations(function(o){s.forEach(function(a){o.remove(a)})})},t.prototype.sort=function(r){return Ki(Vi(this,r))},t.prototype.sortBy=function(r,i){return Ki(Vi(this,i,r))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(r,i){var s=this;return this._map.__iterate(function(o){return r(o,o,s)},i)},t.prototype.__iterator=function(r,i){return this._map.__iterator(r,i)},t.prototype.__ensureOwner=function(r){if(r===this.__ownerID)return this;var i=this._map.__ensureOwner(r);return r?this.__make(i,r):this.size===0?this.__empty():(this.__ownerID=r,this._map=i,this)},t}(ji);Ao.isSet=Ou;var Ne=Ao.prototype;Ne[Q1]=!0,Ne[no]=Ne.remove,Ne.merge=Ne.concat=Ne.union,Ne.withMutations=co,Ne.asImmutable=ho,Ne["@@transducer/init"]=Ne.asMutable=lo,Ne["@@transducer/step"]=function(e,t){return e.add(t)},Ne["@@transducer/result"]=function(e){return e.asImmutable()},Ne.__empty=Oo,Ne.__make=ew;function Su(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function ew(e,t){var n=Object.create(Ne);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var tw;function Oo(){return tw||(tw=ew(gn()))}var nw=function(e){function t(n,r,i){if(i===void 0&&(i=1),!(this instanceof t))return new t(n,r,i);if(oo(i!==0,"Cannot step a Range by 0"),oo(n!==void 0,"You must define a start value when using Range"),oo(r!==void 0,"You must define an end value when using Range"),i=Math.abs(i),r<n&&(i=-i),this._start=n,this._end=r,this._step=i,this.size=Math.max(0,Math.ceil((r-n)/i-1)+1),this.size===0){if(mh)return mh;mh=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},t.prototype.get=function(r,i){return this.has(r)?this._start+ar(this,r)*this._step:i},t.prototype.includes=function(r){var i=(r-this._start)/this._step;return i>=0&&i<this.size&&i===Math.floor(i)},t.prototype.slice=function(r,i){return ro(r,i,this.size)?this:(r=Li(r,this.size),i=io(i,this.size),i<=r?new t(0,0):new t(this.get(r,this._end),this.get(i,this._end),this._step))},t.prototype.indexOf=function(r){var i=r-this._start;if(i%this._step===0){var s=i/this._step;if(s>=0&&s<this.size)return s}return-1},t.prototype.lastIndexOf=function(r){return this.indexOf(r)},t.prototype.__iterate=function(r,i){for(var s=this.size,o=this._step,a=i?this._start+(s-1)*o:this._start,u=0;u!==s&&r(a,i?s-++u:u++,this)!==!1;)a+=i?-o:o;return u},t.prototype.__iterator=function(r,i){var s=this.size,o=this._step,a=i?this._start+(s-1)*o:this._start,u=0;return new B(function(){if(u===s)return Ie();var f=a;return a+=i?-o:o,re(r,i?s-++u:u++,f)})},t.prototype.equals=function(r){return r instanceof t?this._start===r._start&&this._end===r._end&&this._step===r._step:bh(this,r)},t}(Bt),mh;function wh(e,t,n){for(var r=R1(t),i=0;i!==r.length;)if(e=nh(e,r[i++],j),e===j)return n;return e}function rw(e,t){return wh(this,e,t)}function iw(e,t){return wh(e,t,j)!==j}function VL(e){return iw(this,e)}function sw(){bt(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}Oe.Iterator=B,kr(Oe,{toArray:function(){bt(this.size);var t=new Array(this.size||0),n=Q(this),r=0;return this.__iterate(function(i,s){t[r++]=n?[s,i]:i}),t},toIndexedSeq:function(){return new g1(this)},toJS:function(){return Eu(this)},toKeyedSeq:function(){return new _u(this,!0)},toMap:function(){return Wr(this.toKeyedSeq())},toObject:sw,toOrderedMap:function(){return yn(this.toKeyedSeq())},toOrderedSet:function(){return Ki(Q(this)?this.valueSeq():this)},toSet:function(){return Ao(Q(this)?this.valueSeq():this)},toSetSeq:function(){return new y1(this)},toSeq:function(){return nt(this)?this.toIndexedSeq():Q(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return wu(Q(this)?this.valueSeq():this)},toList:function(){return vo(Q(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,n){return this.size===0?t+n:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+n},concat:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return J(this,AL(this,t))},includes:function(t){return this.some(function(n){return Ee(n,t)})},entries:function(){return this.__iterator(yt)},every:function(t,n){bt(this.size);var r=!0;return this.__iterate(function(i,s,o){if(!t.call(n,i,s,o))return r=!1,!1}),r},filter:function(t,n){return J(this,A1(this,t,n,!0))},partition:function(t,n){return bL(this,t,n)},find:function(t,n,r){var i=this.findEntry(t,n);return i?i[1]:r},forEach:function(t,n){return bt(this.size),this.__iterate(n?t.bind(n):t)},join:function(t){bt(this.size),t=t!==void 0?""+t:",";var n="",r=!0;return this.__iterate(function(i){r?r=!1:n+=t,n+=i!=null?i.toString():""}),n},keys:function(){return this.__iterator(Fi)},map:function(t,n){return J(this,w1(this,t,n))},reduce:function(t,n,r){return ow(this,t,n,r,arguments.length<2,!1)},reduceRight:function(t,n,r){return ow(this,t,n,r,arguments.length<2,!0)},reverse:function(){return J(this,Jl(this,!0))},slice:function(t,n){return J(this,Zl(this,t,n,!0))},some:function(t,n){bt(this.size);var r=!1;return this.__iterate(function(i,s,o){if(t.call(n,i,s,o))return r=!0,!1}),r},sort:function(t){return J(this,Vi(this,t))},values:function(){return this.__iterator(gt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,n){return Ci(t?this.toSeq().filter(t,n):this)},countBy:function(t,n){return gL(this,t,n)},equals:function(t){return bh(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Ui(t._cache);var n=t.toSeq().map(kL).toIndexedSeq();return n.fromEntrySeq=function(){return t.toSeq()},n},filterNot:function(t,n){return this.filter(Ah(t),n)},findEntry:function(t,n,r){var i=r;return this.__iterate(function(s,o,a){if(t.call(n,s,o,a))return i=[o,s],!1}),i},findKey:function(t,n){var r=this.findEntry(t,n);return r&&r[0]},findLast:function(t,n,r){return this.toKeyedSeq().reverse().find(t,n,r)},findLastEntry:function(t,n,r){return this.toKeyedSeq().reverse().findEntry(t,n,r)},findLastKey:function(t,n){return this.toKeyedSeq().reverse().findKey(t,n)},first:function(t){return this.find(t1,null,t)},flatMap:function(t,n){return J(this,OL(this,t,n))},flatten:function(t){return J(this,E1(this,t,!0))},fromEntrySeq:function(){return new b1(this)},get:function(t,n){return this.find(function(r,i){return Ee(i,t)},void 0,n)},getIn:rw,groupBy:function(t,n){return yL(this,t,n)},has:function(t){return this.get(t,j)!==j},hasIn:VL,isSubset:function(t){return t=typeof t.includes=="function"?t:Oe(t),this.every(function(n){return t.includes(n)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:Oe(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(n){return Ee(n,t)})},keySeq:function(){return this.toSeq().map(WL).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return vu(this,t)},maxBy:function(t,n){return vu(this,n,t)},min:function(t){return vu(this,t?aw(t):fw)},minBy:function(t,n){return vu(this,n?aw(n):fw,t)},rest:function(){return this.slice(1)},skip:function(t){return t===0?this:this.slice(Math.max(0,t))},skipLast:function(t){return t===0?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,n){return J(this,O1(this,t,n,!0))},skipUntil:function(t,n){return this.skipWhile(Ah(t),n)},sortBy:function(t,n){return J(this,Vi(this,n,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,n){return J(this,mL(this,t,n))},takeUntil:function(t,n){return this.takeWhile(Ah(t),n)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=qL(this))}});var Ce=Oe.prototype;Ce[i1]=!0,Ce[lu]=Ce.values,Ce.toJSON=Ce.toArray,Ce.__toStringMapper=ao,Ce.inspect=Ce.toSource=function(){return this.toString()},Ce.chain=Ce.flatMap,Ce.contains=Ce.includes,kr(jt,{flip:function(){return J(this,m1(this))},mapEntries:function(t,n){var r=this,i=0;return J(this,this.toSeq().map(function(s,o){return t.call(n,[o,s],i++,r)}).fromEntrySeq())},mapKeys:function(t,n){var r=this;return J(this,this.toSeq().flip().map(function(i,s){return t.call(n,i,s,r)}).flip())}});var Eo=jt.prototype;Eo[au]=!0,Eo[lu]=Ce.entries,Eo.toJSON=sw,Eo.__toStringMapper=function(e,t){return ao(t)+": "+ao(e)},kr(zr,{toKeyedSeq:function(){return new _u(this,!1)},filter:function(t,n){return J(this,A1(this,t,n,!1))},findIndex:function(t,n){var r=this.findEntry(t,n);return r?r[0]:-1},indexOf:function(t){var n=this.keyOf(t);return n===void 0?-1:n},lastIndexOf:function(t){var n=this.lastKeyOf(t);return n===void 0?-1:n},reverse:function(){return J(this,Jl(this,!1))},slice:function(t,n){return J(this,Zl(this,t,n,!1))},splice:function(t,n){var r=arguments.length;if(n=Math.max(n||0,0),r===0||r===2&&!n)return this;t=Li(t,t<0?this.count():this.size);var i=this.slice(0,t);return J(this,r===1?i:i.concat(vn(arguments,2),this.slice(t+n)))},findLastIndex:function(t,n){var r=this.findLastEntry(t,n);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return J(this,E1(this,t,!1))},get:function(t,n){return t=ar(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?n:this.find(function(r,i){return i===t},void 0,n)},has:function(t){return t=ar(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return J(this,EL(this,t))},interleave:function(){var t=[this].concat(vn(arguments)),n=gu(this.toSeq(),Bt.of,t),r=n.flatten(!0);return n.size&&(r.size=n.size*t.length),J(this,r)},keySeq:function(){return nw(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,n){return J(this,O1(this,t,n,!1))},zip:function(){var t=[this].concat(vn(arguments));return J(this,gu(this,uw,t))},zipAll:function(){var t=[this].concat(vn(arguments));return J(this,gu(this,uw,t,!0))},zipWith:function(t){var n=vn(arguments);return n[0]=this,J(this,gu(this,t,n))}});var Gi=zr.prototype;Gi[uu]=!0,Gi[fr]=!0,kr(ji,{get:function(t,n){return this.has(t)?t:n},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Hi=ji.prototype;Hi.has=Ce.includes,Hi.contains=Hi.includes,Hi.keys=Hi.values,kr(cr,Eo),kr(Bt,Gi),kr(zi,Hi);function ow(e,t,n,r,i,s){return bt(e.size),e.__iterate(function(o,a,u){i?(i=!1,n=o):n=t.call(r,n,o,a,u)},s),n}function WL(e,t){return t}function kL(e,t){return[t,e]}function Ah(e){return function(){return!e.apply(this,arguments)}}function aw(e){return function(){return-e.apply(this,arguments)}}function uw(){return vn(arguments)}function fw(e,t){return e<t?1:e>t?-1:0}function qL(e){if(e.size===1/0)return 0;var t=Xt(e),n=Q(e),r=t?1:0;return e.__iterate(n?t?function(i,s){r=31*r+cw(rt(i),rt(s))|0}:function(i,s){r=r+cw(rt(i),rt(s))|0}:t?function(i){r=31*r+rt(i)|0}:function(i){r=r+rt(i)|0}),GL(e.size,r)}function GL(e,t){return t=so(t,3432918353),t=so(t<<15|t>>>-15,461845907),t=so(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=so(t^t>>>16,2246822507),t=so(t^t>>>13,3266489909),t=du(t^t>>>16),t}function cw(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Ki=function(e){function t(n){return n==null?Oh():yh(n)?n:Oh().withMutations(function(r){var i=ji(n);bt(i.size),i.forEach(function(s){return r.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(r){return this(jt(r).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Ao);Ki.isOrderedSet=yh;var qr=Ki.prototype;qr[fr]=!0,qr.zip=Gi.zip,qr.zipWith=Gi.zipWith,qr.zipAll=Gi.zipAll,qr.__empty=Oh,qr.__make=lw;function lw(e,t){var n=Object.create(qr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var hw;function Oh(){return hw||(hw=lw(mo()))}var HL={LeftThenRight:-1,RightThenLeft:1};function KL(e){if(ur(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Ft(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var _e=function(t,n){var r;KL(t);var i=function(a){var u=this;if(a instanceof i)return a;if(!(this instanceof i))return new i(a);if(!r){r=!0;var f=Object.keys(t),c=s._indices={};s._name=n,s._keys=f,s._defaultValues=t;for(var l=0;l<f.length;l++){var h=f[l];c[h]=l,s[h]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+Sh(this)+' with property "'+h+'" since that property name is part of the Record API.'):YL(s,h)}}return this.__ownerID=void 0,this._values=vo().withMutations(function(d){d.setSize(u._keys.length),jt(a).forEach(function(_,v){d.set(u._indices[v],_===u._defaultValues[v]?void 0:_)})}),this},s=i.prototype=Object.create(ee);return s.constructor=i,n&&(i.displayName=n),i};_e.prototype.toString=function(){for(var t=Sh(this)+" { ",n=this._keys,r,i=0,s=n.length;i!==s;i++)r=n[i],t+=(i?", ":"")+r+": "+ao(this.get(r));return t+" }"},_e.prototype.equals=function(t){return this===t||ur(t)&&Yi(this).equals(Yi(t))},_e.prototype.hashCode=function(){return Yi(this).hashCode()},_e.prototype.has=function(t){return this._indices.hasOwnProperty(t)},_e.prototype.get=function(t,n){if(!this.has(t))return n;var r=this._indices[t],i=this._values.get(r);return i===void 0?this._defaultValues[t]:i},_e.prototype.set=function(t,n){if(this.has(t)){var r=this._values.set(this._indices[t],n===this._defaultValues[t]?void 0:n);if(r!==this._values&&!this.__ownerID)return Eh(this,r)}return this},_e.prototype.remove=function(t){return this.set(t)},_e.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Eh(this,t)},_e.prototype.wasAltered=function(){return this._values.wasAltered()},_e.prototype.toSeq=function(){return Yi(this)},_e.prototype.toJS=function(){return Eu(this)},_e.prototype.entries=function(){return this.__iterator(yt)},_e.prototype.__iterator=function(t,n){return Yi(this).__iterator(t,n)},_e.prototype.__iterate=function(t,n){return Yi(this).__iterate(t,n)},_e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var n=this._values.__ensureOwner(t);return t?Eh(this,n,t):(this.__ownerID=t,this._values=n,this)},_e.isRecord=ur,_e.getDescriptiveName=Sh;var ee=_e.prototype;ee[o1]=!0,ee[no]=ee.remove,ee.deleteIn=ee.removeIn=ih,ee.getIn=rw,ee.hasIn=Ce.hasIn,ee.merge=C1,ee.mergeWith=L1,ee.mergeIn=uh,ee.mergeDeep=F1,ee.mergeDeepWith=B1,ee.mergeDeepIn=fh,ee.setIn=rh,ee.update=oh,ee.updateIn=ah,ee.withMutations=co,ee.asMutable=lo,ee.asImmutable=ho,ee[lu]=ee.entries,ee.toJSON=ee.toObject=Ce.toObject,ee.inspect=ee.toSource=function(){return this.toString()};function Eh(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function Sh(e){return e.constructor.displayName||e.constructor.name||"Record"}function Yi(e){return Ul(e._keys.map(function(t){return[t,e.get(t)]}))}function YL(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(n){oo(this.__ownerID,"Cannot set on an immutable record."),this.set(t,n)}})}catch{}}var XL=function(e){function t(n,r){if(!(this instanceof t))return new t(n,r);if(this._value=n,this.size=r===void 0?1/0:Math.max(0,r),this.size===0){if(xh)return xh;xh=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(r,i){return this.has(r)?this._value:i},t.prototype.includes=function(r){return Ee(this._value,r)},t.prototype.slice=function(r,i){var s=this.size;return ro(r,i,s)?this:new t(this._value,io(i,s)-Li(r,s))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(r){return Ee(this._value,r)?0:-1},t.prototype.lastIndexOf=function(r){return Ee(this._value,r)?this.size:-1},t.prototype.__iterate=function(r,i){for(var s=this.size,o=0;o!==s&&r(this._value,i?s-++o:o++,this)!==!1;);return o},t.prototype.__iterator=function(r,i){var s=this,o=this.size,a=0;return new B(function(){return a===o?Ie():re(r,i?o-++a:a++,s._value)})},t.prototype.equals=function(r){return r instanceof t?Ee(this._value,r._value):bh(this,r)},t}(Bt),xh;function JL(e,t){return pw([],t||ZL,e,"",t&&t.length>2?[]:void 0,{"":e})}function pw(e,t,n,r,i,s){if(typeof n!="string"&&!Ft(n)&&(Fl(n)||Ll(n)||th(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&r!==""&&i.push(r);var o=t.call(s,r,De(n).map(function(a,u){return pw(e,t,a,u,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),o}return n}function ZL(e,t){return nt(t)?t.toList():Q(t)?t.toMap():t.toSet()}var QL="5.1.3",e3=Oe;const t3=Object.freeze(Object.defineProperty({__proto__:null,Collection:Oe,Iterable:e3,List:vo,Map:Wr,OrderedMap:yn,OrderedSet:Ki,PairSorting:HL,Range:nw,Record:_e,Repeat:XL,Seq:De,Set:Ao,Stack:wu,fromJS:JL,get:nh,getIn:wh,has:P1,hasIn:iw,hash:rt,is:Ee,isAssociative:fu,isCollection:tt,isImmutable:Ft,isIndexed:nt,isKeyed:Q,isList:_h,isMap:pu,isOrdered:Xt,isOrderedMap:Wl,isOrderedSet:yh,isPlainObject:th,isRecord:ur,isSeq:cu,isSet:Ou,isStack:mu,isValueObject:kl,merge:xL,mergeDeep:RL,mergeDeepWith:PL,mergeWith:TL,remove:N1,removeIn:D1,set:$1,setIn:I1,update:sh,updateIn:Vr,version:QL},Symbol.toStringTag,{value:"Module"}));/**
|
|
60
|
-
* @vue/reactivity v3.5.22
|
|
61
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
62
|
-
* @license MIT
|
|
63
|
-
**/function n3(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const r3=Object.freeze({}),i3=()=>{},xu=Object.assign,s3=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o3=Object.prototype.hasOwnProperty,Tu=(e,t)=>o3.call(e,t),Un=Array.isArray,Xi=e=>Ru(e)==="[object Map]",a3=e=>Ru(e)==="[object Set]",So=e=>typeof e=="function",u3=e=>typeof e=="string",xo=e=>typeof e=="symbol",Gr=e=>e!==null&&typeof e=="object",f3=Object.prototype.toString,Ru=e=>f3.call(e),dw=e=>Ru(e).slice(8,-1),c3=e=>Ru(e)==="[object Object]",Th=e=>u3(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,l3=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),dr=(e,t)=>!Object.is(e,t),h3=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})};function it(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Le;class _w{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Le;try{return Le=this,t()}finally{Le=n}}else it("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=Le,Le=this)}off(){this._on>0&&--this._on===0&&(Le=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function p3(e){return new _w(e)}function vw(){return Le}function d3(e,t=!1){Le?Le.cleanups.push(e):t||it("onScopeDispose() is called when there is no active effect scope to be associated with.")}let z;const _3={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",PAUSED:64,64:"PAUSED",EVALUATED:128,128:"EVALUATED"},Rh=new WeakSet;class To{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Le&&Le.active&&Le.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rh.has(this)&&(Rh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yw(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Aw(this),bw(this);const t=z,n=mt;z=this,mt=!0;try{return this.fn()}finally{z!==this&&it("Active effect was not restored correctly - this is likely a Vue internal bug."),mw(this),z=t,mt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Mh(t);this.deps=this.depsTail=void 0,Aw(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$h(this)&&this.run()}get dirty(){return $h(this)}}let gw=0,Ro,Po;function yw(e,t=!1){if(e.flags|=8,t){e.next=Po,Po=e;return}e.next=Ro,Ro=e}function Ph(){gw++}function Nh(){if(--gw>0)return;if(Po){let t=Po;for(Po=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ro;){let t=Ro;for(Ro=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function bw(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function mw(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Mh(r),v3(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function $h(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ww(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ww(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===No)||(e.globalVersion=No,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$h(e))))return;e.flags|=2;const t=e.dep,n=z,r=mt;z=e,mt=!0;try{bw(e);const i=e.fn(e._value);(t.version===0||dr(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{z=n,mt=r,mw(e),e.flags&=-3}}function Mh(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Mh(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function v3(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function g3(e,t){e.effect instanceof To&&(e=e.effect.fn);const n=new To(e);t&&xu(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function y3(e){e.effect.stop()}let mt=!0;const Ih=[];function Dh(){Ih.push(mt),mt=!1}function b3(){Ih.push(mt),mt=!0}function Ch(){const e=Ih.pop();mt=e===void 0?!0:e}function m3(e,t=!1){z instanceof To?z.cleanup=e:t||it("onEffectCleanup() was called when there was no active effect to associate with.")}function Aw(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=z;z=void 0;try{t()}finally{z=n}}}let No=0;class w3{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Pu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,this.subsHead=void 0}track(t){if(!z||!mt||z===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==z)n=this.activeLink=new w3(z,this),z.deps?(n.prevDep=z.depsTail,z.depsTail.nextDep=n,z.depsTail=n):z.deps=z.depsTail=n,Ow(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=z.depsTail,n.nextDep=void 0,z.depsTail.nextDep=n,z.depsTail=n,z.deps===n&&(z.deps=r)}return z.onTrack&&z.onTrack(xu({effect:z},t)),n}trigger(t){this.version++,No++,this.notify(t)}notify(t){Ph();try{for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(xu({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Nh()}}}function Ow(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ow(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const Nu=new WeakMap,_r=Symbol("Object iterate"),$u=Symbol("Map keys iterate"),Ji=Symbol("Array iterate");function Ye(e,t,n){if(mt&&z){let r=Nu.get(e);r||Nu.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Pu),i.map=r,i.key=n),i.track({target:e,type:t,key:n})}}function Vn(e,t,n,r,i,s){const o=Nu.get(e);if(!o){No++;return}const a=u=>{u&&u.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:s})};if(Ph(),t==="clear")o.forEach(a);else{const u=Un(e),f=u&&Th(n);if(u&&n==="length"){const c=Number(r);o.forEach((l,h)=>{(h==="length"||h===Ji||!xo(h)&&h>=c)&&a(l)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),f&&a(o.get(Ji)),t){case"add":u?f&&a(o.get("length")):(a(o.get(_r)),Xi(e)&&a(o.get($u)));break;case"delete":u||(a(o.get(_r)),Xi(e)&&a(o.get($u)));break;case"set":Xi(e)&&a(o.get(_r));break}}Nh()}function A3(e,t){const n=Nu.get(e);return n&&n.get(t)}function Hr(e){const t=G(e);return t===e?t:(Ye(t,"iterate",Ji),zt(e)?t:t.map(je))}function Mu(e){return Ye(e=G(e),"iterate",Ji),e}const O3={__proto__:null,[Symbol.iterator](){return Lh(this,Symbol.iterator,je)},concat(...e){return Hr(this).concat(...e.map(t=>Un(t)?Hr(t):t))},entries(){return Lh(this,"entries",e=>(e[1]=je(e[1]),e))},every(e,t){return Wn(this,"every",e,t,void 0,arguments)},filter(e,t){return Wn(this,"filter",e,t,n=>n.map(je),arguments)},find(e,t){return Wn(this,"find",e,t,je,arguments)},findIndex(e,t){return Wn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Wn(this,"findLast",e,t,je,arguments)},findLastIndex(e,t){return Wn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Wn(this,"forEach",e,t,void 0,arguments)},includes(...e){return jh(this,"includes",e)},indexOf(...e){return jh(this,"indexOf",e)},join(e){return Hr(this).join(e)},lastIndexOf(...e){return jh(this,"lastIndexOf",e)},map(e,t){return Wn(this,"map",e,t,void 0,arguments)},pop(){return $o(this,"pop")},push(...e){return $o(this,"push",e)},reduce(e,...t){return Ew(this,"reduce",e,t)},reduceRight(e,...t){return Ew(this,"reduceRight",e,t)},shift(){return $o(this,"shift")},some(e,t){return Wn(this,"some",e,t,void 0,arguments)},splice(...e){return $o(this,"splice",e)},toReversed(){return Hr(this).toReversed()},toSorted(e){return Hr(this).toSorted(e)},toSpliced(...e){return Hr(this).toSpliced(...e)},unshift(...e){return $o(this,"unshift",e)},values(){return Lh(this,"values",je)}};function Lh(e,t,n){const r=Mu(e),i=r[t]();return r!==e&&!zt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const E3=Array.prototype;function Wn(e,t,n,r,i,s){const o=Mu(e),a=o!==e&&!zt(e),u=o[t];if(u!==E3[t]){const l=u.apply(e,s);return a?je(l):l}let f=n;o!==e&&(a?f=function(l,h){return n.call(this,je(l),h,e)}:n.length>2&&(f=function(l,h){return n.call(this,l,h,e)}));const c=u.call(o,f,r);return a&&i?i(c):c}function Ew(e,t,n,r){const i=Mu(e);let s=n;return i!==e&&(zt(e)?n.length>3&&(s=function(o,a,u){return n.call(this,o,a,u,e)}):s=function(o,a,u){return n.call(this,o,je(a),u,e)}),i[t](s,...r)}function jh(e,t,n){const r=G(e);Ye(r,"iterate",Ji);const i=r[t](...n);return(i===-1||i===!1)&&zh(n[0])?(n[0]=G(n[0]),r[t](...n)):i}function $o(e,t,n=[]){Dh(),Ph();const r=G(e)[t].apply(e,n);return Nh(),Ch(),r}const S3=n3("__proto__,__v_isRef,__isVue"),Sw=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xo));function x3(e){xo(e)||(e=String(e));const t=G(this);return Ye(t,"has",e),t.hasOwnProperty(e)}class xw{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?Iw:Mw:s?$w:Nw).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Un(t);if(!i){let u;if(o&&(u=O3[n]))return u;if(n==="hasOwnProperty")return x3}const a=Reflect.get(t,n,Xe(t)?t:r);if((xo(n)?Sw.has(n):S3(n))||(i||Ye(t,"get",n),s))return a;if(Xe(a)){const u=o&&Th(n)?a:a.value;return i&&Gr(u)?Lu(u):u}return Gr(a)?i?Lu(a):Bh(a):a}}class Tw extends xw{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const u=vr(s);if(!zt(r)&&!vr(r)&&(s=G(s),r=G(r)),!Un(t)&&Xe(s)&&!Xe(r))return u?(it(`Set operation on key "${String(n)}" failed: target is readonly.`,t[n]),!0):(s.value=r,!0)}const o=Un(t)&&Th(n)?Number(n)<t.length:Tu(t,n),a=Reflect.set(t,n,r,Xe(t)?t:i);return t===G(i)&&(o?dr(r,s)&&Vn(t,"set",n,r,s):Vn(t,"add",n,r)),a}deleteProperty(t,n){const r=Tu(t,n),i=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Vn(t,"delete",n,void 0,i),s}has(t,n){const r=Reflect.has(t,n);return(!xo(n)||!Sw.has(n))&&Ye(t,"has",n),r}ownKeys(t){return Ye(t,"iterate",Un(t)?"length":_r),Reflect.ownKeys(t)}}class Rw extends xw{constructor(t=!1){super(!0,t)}set(t,n){return it(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return it(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const T3=new Tw,R3=new Rw,P3=new Tw(!0),N3=new Rw(!0),Fh=e=>e,Iu=e=>Reflect.getPrototypeOf(e);function $3(e,t,n){return function(...r){const i=this.__v_raw,s=G(i),o=Xi(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,f=i[e](...r),c=n?Fh:t?Fu:je;return!t&&Ye(s,"iterate",u?$u:_r),{next(){const{value:l,done:h}=f.next();return h?{value:l,done:h}:{value:a?[c(l[0]),c(l[1])]:c(l),done:h}},[Symbol.iterator](){return this}}}}function Du(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";it(`${l3(e)} operation ${n}failed: target is readonly.`,G(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function M3(e,t){const n={get(i){const s=this.__v_raw,o=G(s),a=G(i);e||(dr(i,a)&&Ye(o,"get",i),Ye(o,"get",a));const{has:u}=Iu(o),f=t?Fh:e?Fu:je;if(u.call(o,i))return f(s.get(i));if(u.call(o,a))return f(s.get(a));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!e&&Ye(G(i),"iterate",_r),i.size},has(i){const s=this.__v_raw,o=G(s),a=G(i);return e||(dr(i,a)&&Ye(o,"has",i),Ye(o,"has",a)),i===a?s.has(i):s.has(i)||s.has(a)},forEach(i,s){const o=this,a=o.__v_raw,u=G(a),f=t?Fh:e?Fu:je;return!e&&Ye(u,"iterate",_r),a.forEach((c,l)=>i.call(s,f(c),f(l),o))}};return xu(n,e?{add:Du("add"),set:Du("set"),delete:Du("delete"),clear:Du("clear")}:{add(i){!t&&!zt(i)&&!vr(i)&&(i=G(i));const s=G(this);return Iu(s).has.call(s,i)||(s.add(i),Vn(s,"add",i,i)),this},set(i,s){!t&&!zt(s)&&!vr(s)&&(s=G(s));const o=G(this),{has:a,get:u}=Iu(o);let f=a.call(o,i);f?Pw(o,a,i):(i=G(i),f=a.call(o,i));const c=u.call(o,i);return o.set(i,s),f?dr(s,c)&&Vn(o,"set",i,s,c):Vn(o,"add",i,s),this},delete(i){const s=G(this),{has:o,get:a}=Iu(s);let u=o.call(s,i);u?Pw(s,o,i):(i=G(i),u=o.call(s,i));const f=a?a.call(s,i):void 0,c=s.delete(i);return u&&Vn(s,"delete",i,void 0,f),c},clear(){const i=G(this),s=i.size!==0,o=Xi(i)?new Map(i):new Set(i),a=i.clear();return s&&Vn(i,"clear",void 0,void 0,o),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=$3(i,e,t)}),n}function Cu(e,t){const n=M3(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Tu(n,i)&&i in r?n:r,i,s)}const I3={get:Cu(!1,!1)},D3={get:Cu(!1,!0)},C3={get:Cu(!0,!1)},L3={get:Cu(!0,!0)};function Pw(e,t,n){const r=G(n);if(r!==n&&t.call(e,r)){const i=dw(e);it(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Nw=new WeakMap,$w=new WeakMap,Mw=new WeakMap,Iw=new WeakMap;function j3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function F3(e){return e.__v_skip||!Object.isExtensible(e)?0:j3(dw(e))}function Bh(e){return vr(e)?e:ju(e,!1,T3,I3,Nw)}function B3(e){return ju(e,!1,P3,D3,$w)}function Lu(e){return ju(e,!0,R3,C3,Mw)}function z3(e){return ju(e,!0,N3,L3,Iw)}function ju(e,t,n,r,i){if(!Gr(e))return it(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=F3(e);if(s===0)return e;const o=i.get(e);if(o)return o;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function Zi(e){return vr(e)?Zi(e.__v_raw):!!(e&&e.__v_isReactive)}function vr(e){return!!(e&&e.__v_isReadonly)}function zt(e){return!!(e&&e.__v_isShallow)}function zh(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function U3(e){return!Tu(e,"__v_skip")&&Object.isExtensible(e)&&h3(e,"__v_skip",!0),e}const je=e=>Gr(e)?Bh(e):e,Fu=e=>Gr(e)?Lu(e):e;function Xe(e){return e?e.__v_isRef===!0:!1}function Dw(e){return Cw(e,!1)}function V3(e){return Cw(e,!0)}function Cw(e,t){return Xe(e)?e:new W3(e,t)}class W3{constructor(t,n){this.dep=new Pu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:G(t),this._value=n?t:je(t),this.__v_isShallow=n}get value(){return this.dep.track({target:this,type:"get",key:"value"}),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||zt(t)||vr(t);t=r?t:G(t),dr(t,n)&&(this._rawValue=t,this._value=r?t:je(t),this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}))}}function k3(e){e.dep&&e.dep.trigger({target:e,type:"set",key:"value",newValue:e._value})}function Uh(e){return Xe(e)?e.value:e}function q3(e){return So(e)?e():Uh(e)}const G3={get:(e,t,n)=>t==="__v_raw"?e:Uh(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Xe(i)&&!Xe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function H3(e){return Zi(e)?e:new Proxy(e,G3)}class K3{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Pu,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Y3(e){return new K3(e)}function X3(e){zh(e)||it("toRefs() expects a reactive object but received a plain one.");const t=Un(e)?new Array(e.length):{};for(const n in e)t[n]=Lw(e,n);return t}class J3{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return A3(G(this._object),this._key)}}class Z3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Q3(e,t,n){return Xe(e)?e:So(e)?new Z3(e):Gr(e)&&arguments.length>1?Lw(e,t,n):Dw(e)}function Lw(e,t,n){const r=e[t];return Xe(r)?r:new J3(e,t,n)}class ej{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Pu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=No-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&z!==this)return yw(this,!0),!0}get value(){const t=this.dep.track({target:this,type:"get",key:"value"});return ww(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):it("Write operation failed: computed value is readonly")}}function tj(e,t,n=!1){let r,i;So(e)?r=e:(r=e.get,i=e.set);const s=new ej(r,i,n);return t&&!n&&(s.onTrack=t.onTrack,s.onTrigger=t.onTrigger),s}const nj={GET:"get",HAS:"has",ITERATE:"iterate"},rj={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ij={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},sj={WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP"},Bu={},zu=new WeakMap;let gr;function oj(){return gr}function jw(e,t=!1,n=gr){if(n){let r=zu.get(n);r||zu.set(n,r=[]),r.push(e)}else t||it("onWatcherCleanup() was called when there was no active watcher to associate with.")}function aj(e,t,n=r3){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:u}=n,f=A=>{(n.onWarn||it)("Invalid watch source: ",A,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=A=>i?A:zt(A)||i===!1||i===0?kn(A,1):kn(A);let l,h,d,_,v=!1,g=!1;if(Xe(e)?(h=()=>e.value,v=zt(e)):Zi(e)?(h=()=>c(e),v=!0):Un(e)?(g=!0,v=e.some(A=>Zi(A)||zt(A)),h=()=>e.map(A=>{if(Xe(A))return A.value;if(Zi(A))return c(A);if(So(A))return u?u(A,2):A();f(A)})):So(e)?t?h=u?()=>u(e,2):e:h=()=>{if(d){Dh();try{d()}finally{Ch()}}const A=gr;gr=l;try{return u?u(e,3,[_]):e(_)}finally{gr=A}}:(h=i3,f(e)),t&&i){const A=h,S=i===!0?1/0:i;h=()=>kn(A(),S)}const y=vw(),b=()=>{l.stop(),y&&y.active&&s3(y.effects,l)};if(s&&t){const A=t;t=(...S)=>{A(...S),b()}}let w=g?new Array(e.length).fill(Bu):Bu;const m=A=>{if(!(!(l.flags&1)||!l.dirty&&!A))if(t){const S=l.run();if(i||v||(g?S.some((P,V)=>dr(P,w[V])):dr(S,w))){d&&d();const P=gr;gr=l;try{const V=[S,w===Bu?void 0:g&&w[0]===Bu?[]:w,_];w=S,u?u(t,3,V):t(...V)}finally{gr=P}}}else l.run()};return a&&a(m),l=new To(h),l.scheduler=o?()=>o(m,!1):m,_=A=>jw(A,!1,l),d=l.onStop=()=>{const A=zu.get(l);if(A){if(u)u(A,4);else for(const S of A)S();zu.delete(l)}},l.onTrack=n.onTrack,l.onTrigger=n.onTrigger,t?r?m(!0):w=l.run():o?o(m.bind(null,!0),!0):l.run(),b.pause=l.pause.bind(l),b.resume=l.resume.bind(l),b.stop=b,b}function kn(e,t=1/0,n){if(t<=0||!Gr(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Xe(e))kn(e.value,t,n);else if(Un(e))for(let r=0;r<e.length;r++)kn(e[r],t,n);else if(a3(e)||Xi(e))e.forEach(r=>{kn(r,t,n)});else if(c3(e)){for(const r in e)kn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&kn(e[r],t,n)}return e}const uj=Object.freeze(Object.defineProperty({__proto__:null,ARRAY_ITERATE_KEY:Ji,EffectFlags:_3,EffectScope:_w,ITERATE_KEY:_r,MAP_KEY_ITERATE_KEY:$u,ReactiveEffect:To,ReactiveFlags:ij,TrackOpTypes:nj,TriggerOpTypes:rj,WatchErrorCodes:sj,computed:tj,customRef:Y3,effect:g3,effectScope:p3,enableTracking:b3,getCurrentScope:vw,getCurrentWatcher:oj,isProxy:zh,isReactive:Zi,isReadonly:vr,isRef:Xe,isShallow:zt,markRaw:U3,onEffectCleanup:m3,onScopeDispose:d3,onWatcherCleanup:jw,pauseTracking:Dh,proxyRefs:H3,reactive:Bh,reactiveReadArray:Hr,readonly:Lu,ref:Dw,resetTracking:Ch,shallowReactive:B3,shallowReadArray:Mu,shallowReadonly:z3,shallowRef:V3,stop:y3,toRaw:G,toReactive:je,toReadonly:Fu,toRef:Q3,toRefs:X3,toValue:q3,track:Ye,traverse:kn,trigger:Vn,triggerRef:k3,unref:Uh,watch:aj},Symbol.toStringTag,{value:"Module"})),fj=Symbol.for("preact-signals"),bn=1,Qi=2,Mo=4,es=8,Uu=16,ts=32;function Vu(){Do++}function Wu(){if(Do>1){Do--;return}let e,t=!1;for(;Io!==void 0;){let n=Io;for(Io=void 0,Wh++;n!==void 0;){const r=n._nextBatchedEffect;if(n._nextBatchedEffect=void 0,n._flags&=~Qi,!(n._flags&es)&&Bw(n))try{n._callback()}catch(i){t||(e=i,t=!0)}n=r}}if(Wh=0,Do--,t)throw e}function cj(e){if(Do>0)return e();Vu();try{return e()}finally{Wu()}}let K;function Vh(e){const t=K;K=void 0;try{return e()}finally{K=t}}let Io,Do=0,Wh=0,ku=0;function Fw(e){if(K===void 0)return;let t=e._node;if(t===void 0||t._target!==K)return t={_version:0,_source:e,_prevSource:K._sources,_nextSource:void 0,_target:K,_prevTarget:void 0,_nextTarget:void 0,_rollbackNode:t},K._sources!==void 0&&(K._sources._nextSource=t),K._sources=t,e._node=t,K._flags&ts&&e._subscribe(t),t;if(t._version===-1)return t._version=0,t._nextSource!==void 0&&(t._nextSource._prevSource=t._prevSource,t._prevSource!==void 0&&(t._prevSource._nextSource=t._nextSource),t._prevSource=K._sources,t._nextSource=void 0,K._sources._nextSource=t,K._sources=t),t}function Fe(e,t){this._value=e,this._version=0,this._node=void 0,this._targets=void 0,this._watched=t?.watched,this._unwatched=t?.unwatched,this.name=t?.name}Fe.prototype.brand=fj,Fe.prototype._refresh=function(){return!0},Fe.prototype._subscribe=function(e){const t=this._targets;t!==e&&e._prevTarget===void 0&&(e._nextTarget=t,this._targets=e,t!==void 0?t._prevTarget=e:Vh(()=>{this._watched?.call(this)}))},Fe.prototype._unsubscribe=function(e){if(this._targets!==void 0){const t=e._prevTarget,n=e._nextTarget;t!==void 0&&(t._nextTarget=n,e._prevTarget=void 0),n!==void 0&&(n._prevTarget=t,e._nextTarget=void 0),e===this._targets&&(this._targets=n,n===void 0&&Vh(()=>{this._unwatched?.call(this)}))}},Fe.prototype.subscribe=function(e){return Ww(()=>{const t=this.value,n=K;K=void 0;try{e(t)}finally{K=n}},{name:"sub"})},Fe.prototype.valueOf=function(){return this.value},Fe.prototype.toString=function(){return this.value+""},Fe.prototype.toJSON=function(){return this.value},Fe.prototype.peek=function(){const e=K;K=void 0;try{return this.value}finally{K=e}},Object.defineProperty(Fe.prototype,"value",{get(){const e=Fw(this);return e!==void 0&&(e._version=this._version),this._value},set(e){if(e!==this._value){if(Wh>100)throw new Error("Cycle detected");this._value=e,this._version++,ku++,Vu();try{for(let t=this._targets;t!==void 0;t=t._nextTarget)t._target._notify()}finally{Wu()}}}});function lj(e,t){return new Fe(e,t)}function Bw(e){for(let t=e._sources;t!==void 0;t=t._nextSource)if(t._source._version!==t._version||!t._source._refresh()||t._source._version!==t._version)return!0;return!1}function zw(e){for(let t=e._sources;t!==void 0;t=t._nextSource){const n=t._source._node;if(n!==void 0&&(t._rollbackNode=n),t._source._node=t,t._version=-1,t._nextSource===void 0){e._sources=t;break}}}function Uw(e){let t=e._sources,n;for(;t!==void 0;){const r=t._prevSource;t._version===-1?(t._source._unsubscribe(t),r!==void 0&&(r._nextSource=t._nextSource),t._nextSource!==void 0&&(t._nextSource._prevSource=r)):n=t,t._source._node=t._rollbackNode,t._rollbackNode!==void 0&&(t._rollbackNode=void 0),t=r}e._sources=n}function yr(e,t){Fe.call(this,void 0),this._fn=e,this._sources=void 0,this._globalVersion=ku-1,this._flags=Mo,this._watched=t?.watched,this._unwatched=t?.unwatched,this.name=t?.name}yr.prototype=new Fe,yr.prototype._refresh=function(){if(this._flags&=~Qi,this._flags&bn)return!1;if((this._flags&(Mo|ts))===ts||(this._flags&=~Mo,this._globalVersion===ku))return!0;if(this._globalVersion=ku,this._flags|=bn,this._version>0&&!Bw(this))return this._flags&=~bn,!0;const e=K;try{zw(this),K=this;const t=this._fn();(this._flags&Uu||this._value!==t||this._version===0)&&(this._value=t,this._flags&=~Uu,this._version++)}catch(t){this._value=t,this._flags|=Uu,this._version++}return K=e,Uw(this),this._flags&=~bn,!0},yr.prototype._subscribe=function(e){if(this._targets===void 0){this._flags|=Mo|ts;for(let t=this._sources;t!==void 0;t=t._nextSource)t._source._subscribe(t)}Fe.prototype._subscribe.call(this,e)},yr.prototype._unsubscribe=function(e){if(this._targets!==void 0&&(Fe.prototype._unsubscribe.call(this,e),this._targets===void 0)){this._flags&=~ts;for(let t=this._sources;t!==void 0;t=t._nextSource)t._source._unsubscribe(t)}},yr.prototype._notify=function(){if(!(this._flags&Qi)){this._flags|=Mo|Qi;for(let e=this._targets;e!==void 0;e=e._nextTarget)e._target._notify()}},Object.defineProperty(yr.prototype,"value",{get(){if(this._flags&bn)throw new Error("Cycle detected");const e=Fw(this);if(this._refresh(),e!==void 0&&(e._version=this._version),this._flags&Uu)throw this._value;return this._value}});function hj(e,t){return new yr(e,t)}function Vw(e){const t=e._cleanup;if(e._cleanup=void 0,typeof t=="function"){Vu();const n=K;K=void 0;try{t()}catch(r){throw e._flags&=~bn,e._flags|=es,kh(e),r}finally{K=n,Wu()}}}function kh(e){for(let t=e._sources;t!==void 0;t=t._nextSource)t._source._unsubscribe(t);e._fn=void 0,e._sources=void 0,Vw(e)}function pj(e){if(K!==this)throw new Error("Out-of-order effect");Uw(this),K=e,this._flags&=~bn,this._flags&es&&kh(this),Wu()}function Kr(e,t){this._fn=e,this._cleanup=void 0,this._sources=void 0,this._nextBatchedEffect=void 0,this._flags=ts,this.name=t?.name}Kr.prototype._callback=function(){const e=this._start();try{if(this._flags&es||this._fn===void 0)return;const t=this._fn();typeof t=="function"&&(this._cleanup=t)}finally{e()}},Kr.prototype._start=function(){if(this._flags&bn)throw new Error("Cycle detected");this._flags|=bn,this._flags&=~es,Vw(this),zw(this),Vu();const e=K;return K=this,pj.bind(this,e)},Kr.prototype._notify=function(){this._flags&Qi||(this._flags|=Qi,this._nextBatchedEffect=Io,Io=this)},Kr.prototype._dispose=function(){this._flags|=es,this._flags&bn||kh(this)},Kr.prototype.dispose=function(){this._dispose()};function Ww(e,t){const n=new Kr(e,t);try{n._callback()}catch(i){throw n._dispose(),i}const r=n._dispose.bind(n);return r[Symbol.dispose]=r,r}const dj=Object.freeze(Object.defineProperty({__proto__:null,Computed:yr,Effect:Kr,Signal:Fe,batch:cj,computed:hj,effect:Ww,signal:lj,untracked:Vh},Symbol.toStringTag,{value:"Module"})),kw=typeof Symbol=="function"&&Symbol.observable||"@@observable",qh=()=>Math.random().toString(36).substring(7).split("").join("."),br={INIT:`@@redux/INIT${qh()}`,REPLACE:`@@redux/REPLACE${qh()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${qh()}`};function qu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _j(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(yj(e))return"date";if(gj(e))return"error";const n=vj(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function vj(e){return typeof e.constructor=="function"?e.constructor.name:null}function gj(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function yj(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function qn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=_j(e)),t}function Gh(e,t,n){if(typeof e!="function")throw new Error(`Expected the root reducer to be a function. Instead, received: '${qn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(`Expected the enhancer to be a function. Instead, received: '${qn(n)}'`);return n(Gh)(e,t)}let r=e,i=t,s=new Map,o=s,a=0,u=!1;function f(){o===s&&(o=new Map,s.forEach((g,y)=>{o.set(y,g)}))}function c(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function l(g){if(typeof g!="function")throw new Error(`Expected the listener to be a function. Instead, received: '${qn(g)}'`);if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;f();const b=a++;return o.set(b,g),function(){if(y){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,f(),o.delete(b),s=null}}}function h(g){if(!qu(g))throw new Error(`Actions must be plain objects. Instead, the actual type was: '${qn(g)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof g.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(`Action "type" property must be a string. Instead, the actual type was: '${qn(g.type)}'. Value was: '${g.type}' (stringified)`);if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,i=r(i,g)}finally{u=!1}return(s=o).forEach(b=>{b()}),g}function d(g){if(typeof g!="function")throw new Error(`Expected the nextReducer to be a function. Instead, received: '${qn(g)}`);r=g,h({type:br.REPLACE})}function _(){const g=l;return{subscribe(y){if(typeof y!="object"||y===null)throw new TypeError(`Expected the observer to be an object. Instead, received: '${qn(y)}'`);function b(){const m=y;m.next&&m.next(c())}return b(),{unsubscribe:g(b)}},[kw](){return this}}}return h({type:br.INIT}),{dispatch:h,subscribe:l,getState:c,replaceReducer:d,[kw]:_}}function bj(e,t,n){return Gh(e,t,n)}function qw(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function mj(e,t,n,r){const i=Object.keys(t),s=n&&n.type===br.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!qu(e))return`The ${s} has unexpected type of "${qn(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(a=>!t.hasOwnProperty(a)&&!r[a]);if(o.forEach(a=>{r[a]=!0}),!(n&&n.type===br.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function wj(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:br.INIT})>"u")throw new Error(`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:br.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${br.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Aj(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const a=t[o];process.env.NODE_ENV!=="production"&&typeof e[a]>"u"&&qw(`No reducer provided for key "${a}"`),typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{wj(n)}catch(o){s=o}return function(a={},u){if(s)throw s;if(process.env.NODE_ENV!=="production"){const l=mj(a,n,u,i);l&&qw(l)}let f=!1;const c={};for(let l=0;l<r.length;l++){const h=r[l],d=n[h],_=a[h],v=d(_,u);if(typeof v>"u"){const g=u&&u.type;throw new Error(`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}c[h]=v,f=f||v!==_}return f=f||r.length!==Object.keys(a).length,f?c:a}}function Gw(e,t){return function(...n){return t(e.apply(this,n))}}function Oj(e,t){if(typeof e=="function")return Gw(e,t);if(typeof e!="object"||e===null)throw new Error(`bindActionCreators expected an object or a function, but instead received: '${qn(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=Gw(i,t))}return n}function Hw(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Ej(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(u,...f)=>s(u,...f)},a=e.map(u=>u(o));return s=Hw(...a)(i.dispatch),{...i,dispatch:s}}}function Sj(e){return qu(e)&&"type"in e&&typeof e.type=="string"}const xj=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:br,applyMiddleware:Ej,bindActionCreators:Oj,combineReducers:Aj,compose:Hw,createStore:Gh,isAction:Sj,isPlainObject:qu,legacy_createStore:bj},Symbol.toStringTag,{value:"Module"}));var Tj={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(t,n){return"Cannot apply '"+t+"' to '"+n.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(t,n){return"[mobx.array] Index out of bounds, "+t+" is larger than "+n},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(t){return"Cannot initialize from classes that inherit from Map: "+t.constructor.name},20:function(t){return"Cannot initialize map from "+t},21:function(t){return"Cannot convert to map from '"+t+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(t){return"Cannot obtain administration from "+t},25:function(t,n){return"the entry '"+t+"' does not exist in the observable map '"+n+"'"},26:"please specify a property",27:function(t,n){return"no observable property '"+t.toString()+"' found on the observable object '"+n+"'"},28:function(t){return"Cannot obtain atom from "+t},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(t,n){return"Cycle detected in computation "+t+": "+n},33:function(t){return"The setter of computed value '"+t+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(t){return"[ComputedValue '"+t+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(t){return"[mobx] `observableArray."+t+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+t+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},Rj=process.env.NODE_ENV!=="production"?Tj:{};function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var i=typeof e=="string"?e:Rj[e];throw typeof i=="function"&&(i=i.apply(null,n)),new Error("[MobX] "+i)}throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var Pj={};function Gu(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Pj}var Kw=Object.assign,Hu=Object.getOwnPropertyDescriptor,mn=Object.defineProperty,Co=Object.prototype,Ku=[];Object.freeze(Ku);var Hh={};Object.freeze(Hh);var Nj=typeof Proxy<"u",$j=Object.toString();function Yw(){Nj||E(process.env.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function Lo(e){process.env.NODE_ENV!=="production"&&O.verifyProxies&&E("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function wt(){return++O.mobxGuid}function Kh(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var ns=function(){};function ue(e){return typeof e=="function"}function wn(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Yu(e){return e!==null&&typeof e=="object"}function st(e){if(!Yu(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===$j}function Xw(e){var t=e?.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function jo(e,t,n){mn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function Jw(e,t,n){mn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function mr(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(r){return Yu(r)&&r[n]===!0}}function rs(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function Mj(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),r=Object.getPrototypeOf(n);return r===null}function Gn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var Zw=typeof Object.getOwnPropertySymbols<"u";function Ij(e){var t=Object.keys(e);if(!Zw)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(r){return Co.propertyIsEnumerable.call(e,r)})):t}var is=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Zw?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Yh(e){return typeof e=="string"?e:typeof e=="symbol"?e.toString():new String(e).toString()}function Qw(e){return e===null?null:typeof e=="object"?""+e:e}function At(e,t){return Co.hasOwnProperty.call(e,t)}var Dj=Object.getOwnPropertyDescriptors||function(t){var n={};return is(t).forEach(function(r){n[r]=Hu(t,r)}),n};function Ot(e,t){return!!(e&t)}function Et(e,t,n){return n?e|=t:e&=~t,e}function eA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jj(r.key),r)}}function ss(e,t,n){return t&&Cj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function os(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Fj(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
64
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},An.apply(null,arguments)}function tA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xh(e,t)}function Xh(e,t){return Xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Xh(e,t)}function Lj(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function jj(e){var t=Lj(e,"string");return typeof t=="symbol"?t:t+""}function Fj(e,t){if(e){if(typeof e=="string")return eA(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eA(e,t):void 0}}var ot=Symbol("mobx-stored-annotations");function Jt(e){function t(n,r){if(Bo(r))return e.decorate_20223_(n,r);Fo(n,r,e)}return Object.assign(t,e)}function Fo(e,t,n){if(At(e,ot)||jo(e,ot,An({},e[ot])),process.env.NODE_ENV!=="production"&&Zu(n)&&!At(e[ot],t)){var r=e.constructor.name+".prototype."+t.toString();E("'"+r+"' is decorated with 'override', but no such decorated member was found on prototype.")}Bj(e,n,t),Zu(n)||(e[ot][t]=n)}function Bj(e,t,n){if(process.env.NODE_ENV!=="production"&&!Zu(t)&&At(e[ot],n)){var r=e.constructor.name+".prototype."+n.toString(),i=e[ot][n].annotationType_,s=t.annotationType_;E("Cannot apply '@"+s+"' to '"+r+"':"+(`
|
|
20
|
+
}`;var v=Ac(function(){return Function(s,d+"return "+l).apply(void 0,o)});if(v.source=l,Da(v))throw v;return v}var kD="Expected a function";function rm(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(kD);return oe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Xc(e,t,{leading:r,maxWait:t,trailing:i})}function Zs(e,t){return t(e)}var VD=9007199254740991,Dl=4294967295,WD=Math.min;function im(e,t){if(e=D(e),e<1||e>VD)return[];var n=Dl,r=WD(e,Dl);t=_n(t),e-=Dl;for(var i=_c(r,t);++n<e;)t(n);return i}function Cl(){return this}function sm(e,t){var n=e;return n instanceof L&&(n=n.value()),Tc(t,function(r,i){return i.func.apply(i.thisArg,or([r],i.args))},n)}function Qs(){return sm(this.__wrapped__,this.__actions__)}function om(e){return V(e).toLowerCase()}function am(e){return I(e)?se(e,hn):et(e)?[e]:tt(U_(V(e)))}var um=9007199254740991;function fm(e){return e?zr(D(e),-um,um):e===0?e:0}function cm(e){return V(e).toUpperCase()}function lm(e,t,n){var r=I(e),i=r||jn(e)||jr(e);if(t=$(t),n==null){var s=e&&e.constructor;i?n=r?new s:[]:oe(e)?n=cn(s)?Si(Ia(e)):{}:n={}}return(i?$t:dn)(e,function(o,a,u){return t(n,o,a,u)}),n}function hm(e,t){for(var n=e.length;n--&&Ti(t,e[n],0)>-1;);return n}function pm(e,t){for(var n=-1,r=e.length;++n<r&&Ti(t,e[n],0)>-1;);return n}function dm(e,t,n){if(e=V(e),e&&(n||t===void 0))return t_(e);if(!e||!(t=lt(t)))return e;var r=Yt(e),i=Yt(t),s=pm(r,i),o=hm(r,i)+1;return ar(r,s,o).join("")}function _m(e,t,n){if(e=V(e),e&&(n||t===void 0))return e.slice(0,e_(e)+1);if(!e||!(t=lt(t)))return e;var r=Yt(e),i=hm(r,Yt(t))+1;return ar(r,0,i).join("")}var qD=/^\s+/;function vm(e,t,n){if(e=V(e),e&&(n||t===void 0))return e.replace(qD,"");if(!e||!(t=lt(t)))return e;var r=Yt(e),i=pm(r,Yt(t));return ar(r,i).join("")}var GD=30,HD="...",KD=/\w*$/;function gm(e,t){var n=GD,r=HD;if(oe(t)){var i="separator"in t?t.separator:i;n="length"in t?D(t.length):n,r="omission"in t?lt(t.omission):r}e=V(e);var s=e.length;if(Mi(e)){var o=Yt(e);s=o.length}if(n>=s)return e;var a=n-Li(r);if(a<1)return r;var u=o?ar(o,0,a).join(""):e.slice(0,a);if(i===void 0)return u+r;if(o&&(a+=u.length-a),Xa(i)){if(e.slice(a).search(i)){var f,c=u;for(i.global||(i=RegExp(i.source,V(KD.exec(i))+"g")),i.lastIndex=0;f=i.exec(c);)var l=f.index;u=u.slice(0,l===void 0?a:l)}}else if(e.indexOf(lt(i),a)!=a){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r}function ym(e){return dc(e,1)}var YD={"&":"&","<":"<",">":">",""":'"',"'":"'"},XD=Rc(YD),bm=/&(?:amp|lt|gt|quot|#39);/g,JD=RegExp(bm.source);function mm(e){return e=V(e),e&&JD.test(e)?e.replace(bm,XD):e}var ZD=1/0,QD=Di&&1/za(new Di([,-0]))[1]==ZD?function(e){return new Di(e)}:Aa,eC=200;function cr(e,t,n){var r=-1,i=Ta,s=e.length,o=!0,a=[],u=a;if(n)o=!1,i=tl;else if(s>=eC){var f=t?null:QD(e);if(f)return za(f);o=!1,i=ks,u=new kr}else u=t?[]:a;e:for(;++r<s;){var c=e[r],l=t?t(c):c;if(c=n||c!==0?c:0,o&&l===l){for(var h=u.length;h--;)if(u[h]===l)continue e;t&&u.push(l),a.push(c)}else i(u,l,n)||(u!==a&&u.push(l),a.push(c))}return a}var wm=C(function(e){return cr(Pe(e,1,fe,!0))}),Am=C(function(e){var t=_t(e);return fe(t)&&(t=void 0),cr(Pe(e,1,fe,!0),$(t))}),Om=C(function(e){var t=_t(e);return t=typeof t=="function"?t:void 0,cr(Pe(e,1,fe,!0),void 0,t)});function Em(e){return e&&e.length?cr(e):[]}function Sm(e,t){return e&&e.length?cr(e,$(t)):[]}function xm(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?cr(e,void 0,t):[]}var tC=0;function Tm(e){var t=++tC;return V(e)+t}function Rm(e,t){return e==null?!0:Ol(e,t)}var nC=Math.max;function su(e){if(!(e&&e.length))return[];var t=0;return e=ur(e,function(n){if(fe(n))return t=nC(n.length,t),!0}),_c(t,function(n){return se(e,Hc(n))})}function Ll(e,t){if(!(e&&e.length))return[];var n=su(e);return t==null?n:se(n,function(r){return pt(t,void 0,r)})}function Pm(e,t,n,r){return Xs(e,t,n(Br(e,t)),r)}function Nm(e,t,n){return e==null?e:Pm(e,t,_n(n))}function Mm(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:Pm(e,t,_n(n),r)}var $m=Ii(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()});function Im(e){return e==null?[]:pl(e,Ge(e))}var Dm=C(function(e,t){return fe(e)?qs(e,t):[]});function Cm(e,t){return Js(_n(t),e)}var Lm=zn(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(s){return mc(s,e)};return t>1||this.__actions__.length||!(r instanceof L)||!Dn(n)?this.thru(i):(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Zs,args:[i],thisArg:void 0}),new Mt(r,this.__chain__).thru(function(s){return t&&!s.length&&s.push(void 0),s}))});function jm(){return $c(this)}function Fm(){var e=this.__wrapped__;if(e instanceof L){var t=e;return this.__actions__.length&&(t=new L(this)),t=t.reverse(),t.__actions__.push({func:Zs,args:[eu],thisArg:void 0}),new Mt(t,this.__chain__)}return this.thru(eu)}function jl(e,t,n){var r=e.length;if(r<2)return r?cr(e[0]):[];for(var i=-1,s=Array(r);++i<r;)for(var o=e[i],a=-1;++a<r;)a!=i&&(s[i]=qs(s[i]||o,e[a],t,n));return cr(Pe(s,1),t,n)}var Bm=C(function(e){return jl(ur(e,fe))}),zm=C(function(e){var t=_t(e);return fe(t)&&(t=void 0),jl(ur(e,fe),$(t))}),Um=C(function(e){var t=_t(e);return t=typeof t=="function"?t:void 0,jl(ur(e,fe),void 0,t)}),km=C(su);function Vm(e,t,n){for(var r=-1,i=e.length,s=t.length,o={};++r<i;){var a=r<s?t[r]:void 0;n(o,e[r],a)}return o}function Wm(e,t){return Vm(e||[],t||[],Is)}function qm(e,t){return Vm(e||[],t||[],Xs)}var Gm=C(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n=typeof n=="function"?(e.pop(),n):void 0,Ll(e,n)});const T={chunk:bv,compact:Hv,concat:Kv,difference:wg,differenceBy:Ag,differenceWith:Og,drop:Sg,dropRight:xg,dropRightWhile:Tg,dropWhile:Rg,fill:Fg,findIndex:fl,findLastIndex:cl,flatten:wc,flattenDeep:Jg,flattenDepth:Zg,fromPairs:u0,head:ll,indexOf:g0,initial:y0,intersection:b0,intersectionBy:m0,intersectionWith:w0,join:J0,lastIndexOf:ey,nth:Ay,pull:Xy,pullAll:Ml,pullAllBy:Jy,pullAllWith:Zy,pullAt:eb,remove:cb,reverse:eu,slice:Ob,sortedIndex:Tb,sortedIndexBy:Rb,sortedIndexOf:Pb,sortedLastIndex:Nb,sortedLastIndexBy:Mb,sortedLastIndexOf:$b,sortedUniq:Db,sortedUniqBy:Cb,tail:Gb,take:Hb,takeRight:Kb,takeRightWhile:Yb,takeWhile:Xb,union:wm,unionBy:Am,unionWith:Om,uniq:Em,uniqBy:Sm,uniqWith:xm,unzip:su,unzipWith:Ll,without:Dm,xor:Bm,xorBy:zm,xorWith:Um,zip:km,zipObject:Wm,zipObjectDeep:qm,zipWith:Gm},Y={countBy:lg,every:jg,filter:zg,find:kg,findLast:qg,flatMap:Kg,flatMapDeep:Yg,flatMapDepth:Xg,forEach:nl,forEachRight:il,groupBy:l0,includes:v0,invokeMap:R0,keyBy:Q0,map:Gs,orderBy:Ny,partition:Gy,reduce:ab,reduceRight:ub,reject:fb,sample:gb,sampleSize:yb,shuffle:wb,size:Ab,some:Sb,sortBy:xb},rC={now:Ws},ce={after:i_,ary:dc,before:Oc,bind:Us,bindKey:Ca,curry:Wa,curryRight:qa,debounce:Xc,defer:bg,delay:mg,flip:Qg,memoize:zs,once:Ty,overArgs:$y,partial:Js,partialRight:Qa,rearg:sb,rest:pb,spread:jb,throttle:rm,unary:ym,wrap:Cm},N={castArray:gv,clone:Wv,cloneDeep:Ba,cloneDeepWith:qv,cloneWith:Gv,conformsTo:ug,eq:It,gt:h0,gte:p0,isArguments:ir,isArrayBuffer:N0,isArrayLike:We,isArrayLikeObject:fe,isBoolean:M0,isBuffer:jn,isDate:I0,isElement:D0,isEmpty:C0,isEqual:Ci,isEqualWith:L0,isError:Da,isFinite:j0,isFunction:cn,isInteger:vl,isLength:Ds,isMap:Bc,isMatch:F0,isMatchWith:B0,isNaN:z0,isNative:U0,isNil:k0,isNull:V0,isNumber:gl,isObjectLike:ae,isPlainObject:Ni,isRegExp:Xa,isSafeInteger:G0,isSet:zc,isString:Hs,isSymbol:et,isTypedArray:jr,isUndefined:H0,isWeakMap:K0,isWeakSet:Y0,lt:ry,lte:iy,toArray:wl,toFinite:fn,toLength:ul,toNumber:ht,toPlainObject:Qc,toSafeInteger:fm,toString:V},He={add:Qd,ceil:yv,divide:Eg,floor:e0,max:fy,maxBy:cy,mean:hy,meanBy:py,min:gy,minBy:yy,multiply:my,round:_b,subtract:Vb,sum:Wb,sumBy:qb},Fl={clamp:mv,inRange:_0,random:tb},M={assign:B_,assignIn:yc,assignInWith:js,assignWith:z_,at:V_,create:hg,defaults:_g,defaultsDeep:gg,findKey:Wg,findLastKey:Gg,forIn:i0,forInRight:s0,forOwn:o0,forOwnRight:a0,functions:f0,functionsIn:c0,get:$a,has:d0,hasIn:ka,invert:O0,invertBy:S0,invoke:T0,keysIn:Ge,mapKeys:sy,mapValues:oy,merge:dy,mergeWith:el,omit:Ey,omitBy:xy,pick:Hy,pickBy:El,result:db,set:bb,setWith:mb,toPairs:sl,toPairsIn:ol,transform:lm,unset:Rm,update:Nm,updateWith:Mm,values:Vr,valuesIn:Im},vn={at:Lm,chain:$c,commit:Uc,next:Al,plant:Pl,reverse:Fm,tap:Jb,toIterator:Cl,value:Qs,wrapperChain:jm},W={camelCase:vv,capitalize:xc,deburr:Pc,endsWith:Mg,escape:al,escapeRegExp:Cg,kebabCase:Z0,lowerCase:ty,lowerFirst:ny,pad:ky,padEnd:Vy,padStart:Wy,parseInt:qy,repeat:lb,replace:hb,snakeCase:Eb,split:Lb,startCase:Fb,startsWith:Bb,template:nm,templateSettings:ru,toLower:om,toUpper:cm,trim:dm,trimEnd:_m,trimStart:vm,truncate:gm,unescape:mm,upperCase:$m,upperFirst:La,words:Nc},H={attempt:Ac,bindAll:q_,cond:sg,conforms:ag,constant:Ea,defaultTo:pg,flow:n0,flowRight:r0,iteratee:X0,matches:ay,matchesProperty:uy,method:_y,methodOf:vy,noop:Aa,nthArg:Oy,over:My,overEvery:Iy,overSome:Dy,property:Kc,propertyOf:Ky,range:rb,rangeRight:ib,stubArray:ja,stubFalse:Pa,stubObject:zb,stubString:Ub,stubTrue:kb,times:im,toPath:am,uniqueId:Tm};function iC(){var e=new L(this.__wrapped__);return e.__actions__=tt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=tt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=tt(this.__views__),e}function sC(){if(this.__filtered__){var e=new L(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}var oC=Math.max,aC=Math.min;function uC(e,t,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=aC(t,e+o);break;case"takeRight":e=oC(e,t-o);break}}return{start:e,end:t}}var fC=1,cC=2,lC=Math.min;function hC(){var e=this.__wrapped__.value(),t=this.__dir__,n=I(e),r=t<0,i=n?e.length:0,s=uC(0,i,this.__views__),o=s.start,a=s.end,u=a-o,f=r?a:o-1,c=this.__iteratees__,l=c.length,h=0,d=lC(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return sm(e,this.__actions__);var _=[];e:for(;u--&&h<d;){f+=t;for(var v=-1,g=e[f];++v<l;){var y=c[v],b=y.iteratee,w=y.type,m=b(g);if(w==cC)g=m;else if(!m){if(w==fC)continue e;break e}}_[h++]=g}return _}var pC="4.17.21",dC=2,_C=1,vC=3,Hm=4294967295,gC=Array.prototype,yC=Object.prototype,Km=yC.hasOwnProperty,Ym=$e?$e.iterator:void 0,bC=Math.max,Xm=Math.min,Bl=function(e){return function(t,n,r){if(r==null){var i=oe(n),s=i&&de(n),o=s&&s.length&&Ka(n,s);(o?o.length:i)||(r=n,n=t,t=this)}return e(t,n,r)}}(by);p.after=ce.after,p.ary=ce.ary,p.assign=M.assign,p.assignIn=M.assignIn,p.assignInWith=M.assignInWith,p.assignWith=M.assignWith,p.at=M.at,p.before=ce.before,p.bind=ce.bind,p.bindAll=H.bindAll,p.bindKey=ce.bindKey,p.castArray=N.castArray,p.chain=vn.chain,p.chunk=T.chunk,p.compact=T.compact,p.concat=T.concat,p.cond=H.cond,p.conforms=H.conforms,p.constant=H.constant,p.countBy=Y.countBy,p.create=M.create,p.curry=ce.curry,p.curryRight=ce.curryRight,p.debounce=ce.debounce,p.defaults=M.defaults,p.defaultsDeep=M.defaultsDeep,p.defer=ce.defer,p.delay=ce.delay,p.difference=T.difference,p.differenceBy=T.differenceBy,p.differenceWith=T.differenceWith,p.drop=T.drop,p.dropRight=T.dropRight,p.dropRightWhile=T.dropRightWhile,p.dropWhile=T.dropWhile,p.fill=T.fill,p.filter=Y.filter,p.flatMap=Y.flatMap,p.flatMapDeep=Y.flatMapDeep,p.flatMapDepth=Y.flatMapDepth,p.flatten=T.flatten,p.flattenDeep=T.flattenDeep,p.flattenDepth=T.flattenDepth,p.flip=ce.flip,p.flow=H.flow,p.flowRight=H.flowRight,p.fromPairs=T.fromPairs,p.functions=M.functions,p.functionsIn=M.functionsIn,p.groupBy=Y.groupBy,p.initial=T.initial,p.intersection=T.intersection,p.intersectionBy=T.intersectionBy,p.intersectionWith=T.intersectionWith,p.invert=M.invert,p.invertBy=M.invertBy,p.invokeMap=Y.invokeMap,p.iteratee=H.iteratee,p.keyBy=Y.keyBy,p.keys=de,p.keysIn=M.keysIn,p.map=Y.map,p.mapKeys=M.mapKeys,p.mapValues=M.mapValues,p.matches=H.matches,p.matchesProperty=H.matchesProperty,p.memoize=ce.memoize,p.merge=M.merge,p.mergeWith=M.mergeWith,p.method=H.method,p.methodOf=H.methodOf,p.mixin=Bl,p.negate=Ys,p.nthArg=H.nthArg,p.omit=M.omit,p.omitBy=M.omitBy,p.once=ce.once,p.orderBy=Y.orderBy,p.over=H.over,p.overArgs=ce.overArgs,p.overEvery=H.overEvery,p.overSome=H.overSome,p.partial=ce.partial,p.partialRight=ce.partialRight,p.partition=Y.partition,p.pick=M.pick,p.pickBy=M.pickBy,p.property=H.property,p.propertyOf=H.propertyOf,p.pull=T.pull,p.pullAll=T.pullAll,p.pullAllBy=T.pullAllBy,p.pullAllWith=T.pullAllWith,p.pullAt=T.pullAt,p.range=H.range,p.rangeRight=H.rangeRight,p.rearg=ce.rearg,p.reject=Y.reject,p.remove=T.remove,p.rest=ce.rest,p.reverse=T.reverse,p.sampleSize=Y.sampleSize,p.set=M.set,p.setWith=M.setWith,p.shuffle=Y.shuffle,p.slice=T.slice,p.sortBy=Y.sortBy,p.sortedUniq=T.sortedUniq,p.sortedUniqBy=T.sortedUniqBy,p.split=W.split,p.spread=ce.spread,p.tail=T.tail,p.take=T.take,p.takeRight=T.takeRight,p.takeRightWhile=T.takeRightWhile,p.takeWhile=T.takeWhile,p.tap=vn.tap,p.throttle=ce.throttle,p.thru=Zs,p.toArray=N.toArray,p.toPairs=M.toPairs,p.toPairsIn=M.toPairsIn,p.toPath=H.toPath,p.toPlainObject=N.toPlainObject,p.transform=M.transform,p.unary=ce.unary,p.union=T.union,p.unionBy=T.unionBy,p.unionWith=T.unionWith,p.uniq=T.uniq,p.uniqBy=T.uniqBy,p.uniqWith=T.uniqWith,p.unset=M.unset,p.unzip=T.unzip,p.unzipWith=T.unzipWith,p.update=M.update,p.updateWith=M.updateWith,p.values=M.values,p.valuesIn=M.valuesIn,p.without=T.without,p.words=W.words,p.wrap=ce.wrap,p.xor=T.xor,p.xorBy=T.xorBy,p.xorWith=T.xorWith,p.zip=T.zip,p.zipObject=T.zipObject,p.zipObjectDeep=T.zipObjectDeep,p.zipWith=T.zipWith,p.entries=M.toPairs,p.entriesIn=M.toPairsIn,p.extend=M.assignIn,p.extendWith=M.assignInWith,Bl(p,p),p.add=He.add,p.attempt=H.attempt,p.camelCase=W.camelCase,p.capitalize=W.capitalize,p.ceil=He.ceil,p.clamp=Fl.clamp,p.clone=N.clone,p.cloneDeep=N.cloneDeep,p.cloneDeepWith=N.cloneDeepWith,p.cloneWith=N.cloneWith,p.conformsTo=N.conformsTo,p.deburr=W.deburr,p.defaultTo=H.defaultTo,p.divide=He.divide,p.endsWith=W.endsWith,p.eq=N.eq,p.escape=W.escape,p.escapeRegExp=W.escapeRegExp,p.every=Y.every,p.find=Y.find,p.findIndex=T.findIndex,p.findKey=M.findKey,p.findLast=Y.findLast,p.findLastIndex=T.findLastIndex,p.findLastKey=M.findLastKey,p.floor=He.floor,p.forEach=Y.forEach,p.forEachRight=Y.forEachRight,p.forIn=M.forIn,p.forInRight=M.forInRight,p.forOwn=M.forOwn,p.forOwnRight=M.forOwnRight,p.get=M.get,p.gt=N.gt,p.gte=N.gte,p.has=M.has,p.hasIn=M.hasIn,p.head=T.head,p.identity=Ve,p.includes=Y.includes,p.indexOf=T.indexOf,p.inRange=Fl.inRange,p.invoke=M.invoke,p.isArguments=N.isArguments,p.isArray=I,p.isArrayBuffer=N.isArrayBuffer,p.isArrayLike=N.isArrayLike,p.isArrayLikeObject=N.isArrayLikeObject,p.isBoolean=N.isBoolean,p.isBuffer=N.isBuffer,p.isDate=N.isDate,p.isElement=N.isElement,p.isEmpty=N.isEmpty,p.isEqual=N.isEqual,p.isEqualWith=N.isEqualWith,p.isError=N.isError,p.isFinite=N.isFinite,p.isFunction=N.isFunction,p.isInteger=N.isInteger,p.isLength=N.isLength,p.isMap=N.isMap,p.isMatch=N.isMatch,p.isMatchWith=N.isMatchWith,p.isNaN=N.isNaN,p.isNative=N.isNative,p.isNil=N.isNil,p.isNull=N.isNull,p.isNumber=N.isNumber,p.isObject=oe,p.isObjectLike=N.isObjectLike,p.isPlainObject=N.isPlainObject,p.isRegExp=N.isRegExp,p.isSafeInteger=N.isSafeInteger,p.isSet=N.isSet,p.isString=N.isString,p.isSymbol=N.isSymbol,p.isTypedArray=N.isTypedArray,p.isUndefined=N.isUndefined,p.isWeakMap=N.isWeakMap,p.isWeakSet=N.isWeakSet,p.join=T.join,p.kebabCase=W.kebabCase,p.last=_t,p.lastIndexOf=T.lastIndexOf,p.lowerCase=W.lowerCase,p.lowerFirst=W.lowerFirst,p.lt=N.lt,p.lte=N.lte,p.max=He.max,p.maxBy=He.maxBy,p.mean=He.mean,p.meanBy=He.meanBy,p.min=He.min,p.minBy=He.minBy,p.stubArray=H.stubArray,p.stubFalse=H.stubFalse,p.stubObject=H.stubObject,p.stubString=H.stubString,p.stubTrue=H.stubTrue,p.multiply=He.multiply,p.nth=T.nth,p.noop=H.noop,p.now=rC.now,p.pad=W.pad,p.padEnd=W.padEnd,p.padStart=W.padStart,p.parseInt=W.parseInt,p.random=Fl.random,p.reduce=Y.reduce,p.reduceRight=Y.reduceRight,p.repeat=W.repeat,p.replace=W.replace,p.result=M.result,p.round=He.round,p.sample=Y.sample,p.size=Y.size,p.snakeCase=W.snakeCase,p.some=Y.some,p.sortedIndex=T.sortedIndex,p.sortedIndexBy=T.sortedIndexBy,p.sortedIndexOf=T.sortedIndexOf,p.sortedLastIndex=T.sortedLastIndex,p.sortedLastIndexBy=T.sortedLastIndexBy,p.sortedLastIndexOf=T.sortedLastIndexOf,p.startCase=W.startCase,p.startsWith=W.startsWith,p.subtract=He.subtract,p.sum=He.sum,p.sumBy=He.sumBy,p.template=W.template,p.times=H.times,p.toFinite=N.toFinite,p.toInteger=D,p.toLength=N.toLength,p.toLower=W.toLower,p.toNumber=N.toNumber,p.toSafeInteger=N.toSafeInteger,p.toString=N.toString,p.toUpper=W.toUpper,p.trim=W.trim,p.trimEnd=W.trimEnd,p.trimStart=W.trimStart,p.truncate=W.truncate,p.unescape=W.unescape,p.uniqueId=H.uniqueId,p.upperCase=W.upperCase,p.upperFirst=W.upperFirst,p.each=Y.forEach,p.eachRight=Y.forEachRight,p.first=T.head,Bl(p,function(){var e={};return dn(p,function(t,n){Km.call(p.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),p.VERSION=pC,(p.templateSettings=W.templateSettings).imports._=p,$t(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){p[e].placeholder=p}),$t(["drop","take"],function(e,t){L.prototype[e]=function(n){n=n===void 0?1:bC(D(n),0);var r=this.__filtered__&&!t?new L(this):this.clone();return r.__filtered__?r.__takeCount__=Xm(n,r.__takeCount__):r.__views__.push({size:Xm(n,Hm),type:e+(r.__dir__<0?"Right":"")}),r},L.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),$t(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==_C||n==vC;L.prototype[e]=function(i){var s=this.clone();return s.__iteratees__.push({iteratee:$(i),type:n}),s.__filtered__=s.__filtered__||r,s}}),$t(["head","last"],function(e,t){var n="take"+(t?"Right":"");L.prototype[e]=function(){return this[n](1).value()[0]}}),$t(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");L.prototype[e]=function(){return this.__filtered__?new L(this):this[n](1)}}),L.prototype.compact=function(){return this.filter(Ve)},L.prototype.find=function(e){return this.filter(e).head()},L.prototype.findLast=function(e){return this.reverse().find(e)},L.prototype.invokeMap=C(function(e,t){return typeof e=="function"?new L(this):this.map(function(n){return Ks(n,e,t)})}),L.prototype.reject=function(e){return this.filter(Ys($(e)))},L.prototype.slice=function(e,t){e=D(e);var n=this;return n.__filtered__&&(e>0||t<0)?new L(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==void 0&&(t=D(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},L.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},L.prototype.toArray=function(){return this.take(Hm)},dn(L.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=p[r?"take"+(t=="last"?"Right":""):t],s=r||/^find/.test(t);i&&(p.prototype[t]=function(){var o=this.__wrapped__,a=r?[1]:arguments,u=o instanceof L,f=a[0],c=u||I(o),l=function(y){var b=i.apply(p,or([y],a));return r&&h?b[0]:b};c&&n&&typeof f=="function"&&f.length!=1&&(u=c=!1);var h=this.__chain__,d=!!this.__actions__.length,_=s&&!h,v=u&&!d;if(!s&&c){o=v?o:new L(this);var g=e.apply(o,a);return g.__actions__.push({func:Zs,args:[l],thisArg:void 0}),new Mt(g,h)}return _&&v?e.apply(this,a):(g=this.thru(l),_?r?g.value()[0]:g.value():g)})}),$t(["pop","push","shift","sort","splice","unshift"],function(e){var t=gC[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var i=arguments;if(r&&!this.__chain__){var s=this.value();return t.apply(I(s)?s:[],i)}return this[n](function(o){return t.apply(I(o)?o:[],i)})}}),dn(L.prototype,function(e,t){var n=p[t];if(n){var r=n.name+"";Km.call(xi,r)||(xi[r]=[]),xi[r].push({name:t,func:n})}}),xi[Ra(void 0,dC).name]=[{name:"wrapper",func:void 0}],L.prototype.clone=iC,L.prototype.reverse=sC,L.prototype.value=hC,p.prototype.at=vn.at,p.prototype.chain=vn.wrapperChain,p.prototype.commit=vn.commit,p.prototype.next=vn.next,p.prototype.plant=vn.plant,p.prototype.reverse=vn.reverse,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=vn.value,p.prototype.first=p.prototype.head,Ym&&(p.prototype[Ym]=vn.toIterator);const mC=Object.freeze(Object.defineProperty({__proto__:null,add:Qd,after:i_,ary:dc,assign:B_,assignIn:yc,assignInWith:js,assignWith:z_,at:V_,attempt:Ac,before:Oc,bind:Us,bindAll:q_,bindKey:Ca,camelCase:vv,capitalize:xc,castArray:gv,ceil:yv,chain:$c,chunk:bv,clamp:mv,clone:Wv,cloneDeep:Ba,cloneDeepWith:qv,cloneWith:Gv,commit:Uc,compact:Hv,concat:Kv,cond:sg,conforms:ag,conformsTo:ug,constant:Ea,countBy:lg,create:hg,curry:Wa,curryRight:qa,debounce:Xc,deburr:Pc,default:p,defaultTo:pg,defaults:_g,defaultsDeep:gg,defer:bg,delay:mg,difference:wg,differenceBy:Ag,differenceWith:Og,divide:Eg,drop:Sg,dropRight:xg,dropRightWhile:Tg,dropWhile:Rg,each:nl,eachRight:il,endsWith:Mg,entries:sl,entriesIn:ol,eq:It,escape:al,escapeRegExp:Cg,every:jg,extend:yc,extendWith:js,fill:Fg,filter:zg,find:kg,findIndex:fl,findKey:Wg,findLast:qg,findLastIndex:cl,findLastKey:Gg,first:ll,flatMap:Kg,flatMapDeep:Yg,flatMapDepth:Xg,flatten:wc,flattenDeep:Jg,flattenDepth:Zg,flip:Qg,floor:e0,flow:n0,flowRight:r0,forEach:nl,forEachRight:il,forIn:i0,forInRight:s0,forOwn:o0,forOwnRight:a0,fromPairs:u0,functions:f0,functionsIn:c0,get:$a,groupBy:l0,gt:h0,gte:p0,has:d0,hasIn:ka,head:ll,identity:Ve,inRange:_0,includes:v0,indexOf:g0,initial:y0,intersection:b0,intersectionBy:m0,intersectionWith:w0,invert:O0,invertBy:S0,invoke:T0,invokeMap:R0,isArguments:ir,isArray:I,isArrayBuffer:N0,isArrayLike:We,isArrayLikeObject:fe,isBoolean:M0,isBuffer:jn,isDate:I0,isElement:D0,isEmpty:C0,isEqual:Ci,isEqualWith:L0,isError:Da,isFinite:j0,isFunction:cn,isInteger:vl,isLength:Ds,isMap:Bc,isMatch:F0,isMatchWith:B0,isNaN:z0,isNative:U0,isNil:k0,isNull:V0,isNumber:gl,isObject:oe,isObjectLike:ae,isPlainObject:Ni,isRegExp:Xa,isSafeInteger:G0,isSet:zc,isString:Hs,isSymbol:et,isTypedArray:jr,isUndefined:H0,isWeakMap:K0,isWeakSet:Y0,iteratee:X0,join:J0,kebabCase:Z0,keyBy:Q0,keys:de,keysIn:Ge,last:_t,lastIndexOf:ey,lodash:p,lowerCase:ty,lowerFirst:ny,lt:ry,lte:iy,map:Gs,mapKeys:sy,mapValues:oy,matches:ay,matchesProperty:uy,max:fy,maxBy:cy,mean:hy,meanBy:py,memoize:zs,merge:dy,mergeWith:el,method:_y,methodOf:vy,min:gy,minBy:yy,mixin:by,multiply:my,negate:Ys,next:Al,noop:Aa,now:Ws,nth:Ay,nthArg:Oy,omit:Ey,omitBy:xy,once:Ty,orderBy:Ny,over:My,overArgs:$y,overEvery:Iy,overSome:Dy,pad:ky,padEnd:Vy,padStart:Wy,parseInt:qy,partial:Js,partialRight:Qa,partition:Gy,pick:Hy,pickBy:El,plant:Pl,property:Kc,propertyOf:Ky,pull:Xy,pullAll:Ml,pullAllBy:Jy,pullAllWith:Zy,pullAt:eb,random:tb,range:rb,rangeRight:ib,rearg:sb,reduce:ab,reduceRight:ub,reject:fb,remove:cb,repeat:lb,replace:hb,rest:pb,result:db,reverse:eu,round:_b,sample:gb,sampleSize:yb,set:bb,setWith:mb,shuffle:wb,size:Ab,slice:Ob,snakeCase:Eb,some:Sb,sortBy:xb,sortedIndex:Tb,sortedIndexBy:Rb,sortedIndexOf:Pb,sortedLastIndex:Nb,sortedLastIndexBy:Mb,sortedLastIndexOf:$b,sortedUniq:Db,sortedUniqBy:Cb,split:Lb,spread:jb,startCase:Fb,startsWith:Bb,stubArray:ja,stubFalse:Pa,stubObject:zb,stubString:Ub,stubTrue:kb,subtract:Vb,sum:Wb,sumBy:qb,tail:Gb,take:Hb,takeRight:Kb,takeRightWhile:Yb,takeWhile:Xb,tap:Jb,template:nm,templateSettings:ru,throttle:rm,thru:Zs,times:im,toArray:wl,toFinite:fn,toInteger:D,toIterator:Cl,toJSON:Qs,toLength:ul,toLower:om,toNumber:ht,toPairs:sl,toPairsIn:ol,toPath:am,toPlainObject:Qc,toSafeInteger:fm,toString:V,toUpper:cm,transform:lm,trim:dm,trimEnd:_m,trimStart:vm,truncate:gm,unary:ym,unescape:mm,union:wm,unionBy:Am,unionWith:Om,uniq:Em,uniqBy:Sm,uniqWith:xm,uniqueId:Tm,unset:Rm,unzip:su,unzipWith:Ll,update:Nm,updateWith:Mm,upperCase:$m,upperFirst:La,value:Qs,valueOf:Qs,values:Vr,valuesIn:Im,without:Dm,words:Nc,wrap:Cm,wrapperAt:Lm,wrapperChain:jm,wrapperCommit:Uc,wrapperLodash:p,wrapperNext:Al,wrapperPlant:Pl,wrapperReverse:Fm,wrapperToIterator:Cl,wrapperValue:Qs,xor:Bm,xorBy:zm,xorWith:Um,zip:km,zipObject:Wm,zipObjectDeep:qm,zipWith:Gm},Symbol.toStringTag,{value:"Module"}));function Jm(e){return[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)]}function zl(e){const t=Math.round(e).toString(16);return t.length===1?`0${t}`:t}function Zm(e){return`#${zl(e[0])}${zl(e[1])}${zl(e[2])}`}const wC=/rgba?\(([\s.,0-9]+)\)/;function AC(){const e=document.createElement("i");return e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),e}let ou;function Qm(e){if(e[0]==="#"&&e.length===7)return e;ou||(ou=AC()),ou.style.color=e;let t=document.defaultView.getComputedStyle(ou,"").getPropertyValue("color");const r=wC.exec(t)[1].split(/\s*,\s*/).map(i=>Number(i));return t=Zm(r),t}function Ul(e,t,n,r){return e[r]+(t[r]-e[r])*n}function OC(e,t){const n=isNaN(Number(t))||t<0?0:t>1?1:Number(t),r=e.length-1,i=Math.floor(r*n),s=r*n-i,o=e[i],a=i===r?o:e[i+1];return Zm([Ul(o,a,s,0),Ul(o,a,s,1),Ul(o,a,s,2)])}function EC(e){const n=(typeof e=="string"?e.split("-"):e).map(r=>Jm(r.indexOf("#")===-1?Qm(r):r));return r=>OC(n,r)}const SC=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,xC=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,TC=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function RC(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)}function PC(e){if(RC(e)){let t="",n;if(e[0]==="l"){const i=SC.exec(e),s=+i[1]+90;n=i[2],t=`linear-gradient(${s}deg, `}else e[0]==="r"&&(t="radial-gradient(",n=xC.exec(e)[4]);const r=n.match(TC);return r.forEach((i,s)=>{const o=i.split(":");t+=`${o[1]} ${Number(o[0])*100}%`,s!==r.length-1&&(t+=", ")}),t+=")",t}return e}var e1=typeof Float32Array<"u"?Float32Array:Array;function au(e,t,n){var r=t[0],i=t[1],s=t[2],o=t[3],a=t[4],u=t[5],f=t[6],c=t[7],l=t[8],h=n[0],d=n[1],_=n[2],v=n[3],g=n[4],y=n[5],b=n[6],w=n[7],m=n[8];return e[0]=h*r+d*o+_*f,e[1]=h*i+d*a+_*c,e[2]=h*s+d*u+_*l,e[3]=v*r+g*o+y*f,e[4]=v*i+g*a+y*c,e[5]=v*s+g*u+y*l,e[6]=b*r+w*o+m*f,e[7]=b*i+w*a+m*c,e[8]=b*s+w*u+m*l,e}function NC(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function MC(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function $C(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function IC(){var e=new e1(2);return e1!=Float32Array&&(e[0]=0,e[1]=0),e}function DC(e,t){var n=e[0],r=e[1],i=t[0],s=t[1];return Math.abs(Math.atan2(r*i-n*s,n*i+r*s))}(function(){var e=IC();return function(t,n,r,i,s,o){var a,u;for(n||(n=2),r||(r=0),i?u=Math.min(i*n+r,t.length):u=t.length,a=r;a<u;a+=n)e[0]=t[a],e[1]=t[a+1],s(e,e,o),t[a]=e[0],t[a+1]=e[1];return t}})();function CC(e,t,n){const r=[0,0,0,0,0,0,0,0,0];return NC(r,n),au(e,r,t)}function LC(e,t,n){const r=[0,0,0,0,0,0,0,0,0];return MC(r,n),au(e,r,t)}function jC(e,t,n){const r=[0,0,0,0,0,0,0,0,0];return $C(r,n),au(e,r,t)}function FC(e,t,n){return au(e,n,t)}function BC(e,t){const n=e?[].concat(e):[1,0,0,0,1,0,0,0,1];for(let r=0,i=t.length;r<i;r++){const s=t[r];switch(s[0]){case"t":CC(n,n,[s[1],s[2]]);break;case"s":jC(n,n,[s[1],s[2]]);break;case"r":LC(n,n,s[1]);break;case"m":FC(n,n,s[1]);break}}return n}function t1(e,t){return e[0]*t[1]-t[0]*e[1]}function zC(e,t,n){const r=DC(e,t),i=t1(e,t)>=0;return n?i?Math.PI*2-r:r:i?r:Math.PI*2-r}function UC(e,t,n){return n?(e[0]=t[1],e[1]=-1*t[0]):(e[0]=-1*t[1],e[1]=t[0]),e}function ji(e){return e.map(t=>Array.isArray(t)?[].concat(t):t)}function kC(e,t){if(t==="off")return ji(e);const n=typeof t=="number"&&t>=1?10**t:1;return e.map(r=>{const i=r.slice(1).map(Number).map(s=>t?Math.round(s*n)/n:Math.round(s));return[r[0]].concat(i)})}function VC(e,t="off"){return kC(e,t).map(n=>n[0]+n.slice(1).join(" ")).join("")}const n1={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function WC(e,t,n){if(e[n].length>7){e[n].shift();const r=e[n];let i=n;for(;r.length;)t[n]="A",e.splice(i+=1,0,["C"].concat(r.splice(0,6)));e.splice(n,1)}}const eo={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function r1(e){return Array.isArray(e)&&e.every(t=>{const n=t[0].toLowerCase();return eo[n]===t.length-1&&"achlmqstvz".includes(n)})}function i1(e){return r1(e)&&e.every(([t])=>t===t.toUpperCase())}function s1(e){return i1(e)&&e.every(([t])=>"ACLMQZ".includes(t))}function o1(e){let t=e.pathValue[e.segmentStart],n=t.toLowerCase();const{data:r}=e;for(;r.length>=eo[n]&&(n==="m"&&r.length>2?(e.segments.push([t].concat(r.splice(0,2))),n="l",t=t==="m"?"l":"L"):e.segments.push([t].concat(r.splice(0,eo[n]))),!!eo[n]););}function qC(e){const{index:t,pathValue:n}=e,r=n.charCodeAt(t);if(r===48){e.param=0,e.index+=1;return}if(r===49){e.param=1,e.index+=1;return}e.err=`[path-util]: invalid Arc flag "${n[t]}", expecting 0 or 1 at index ${t}`}function GC(e){return e>=48&&e<=57||e===43||e===45||e===46}function Fi(e){return e>=48&&e<=57}function HC(e){const{max:t,pathValue:n,index:r}=e;let i=r,s=!1,o=!1,a=!1,u=!1,f;if(i>=t){e.err=`[path-util]: Invalid path value at index ${i}, "pathValue" is missing param`;return}if(f=n.charCodeAt(i),(f===43||f===45)&&(i+=1,f=n.charCodeAt(i)),!Fi(f)&&f!==46){e.err=`[path-util]: Invalid path value at index ${i}, "${n[i]}" is not a number`;return}if(f!==46){if(s=f===48,i+=1,f=n.charCodeAt(i),s&&i<t&&f&&Fi(f)){e.err=`[path-util]: Invalid path value at index ${r}, "${n[r]}" illegal number`;return}for(;i<t&&Fi(n.charCodeAt(i));)i+=1,o=!0;f=n.charCodeAt(i)}if(f===46){for(u=!0,i+=1;Fi(n.charCodeAt(i));)i+=1,a=!0;f=n.charCodeAt(i)}if(f===101||f===69){if(u&&!o&&!a){e.err=`[path-util]: Invalid path value at index ${i}, "${n[i]}" invalid float exponent`;return}if(i+=1,f=n.charCodeAt(i),(f===43||f===45)&&(i+=1),i<t&&Fi(n.charCodeAt(i)))for(;i<t&&Fi(n.charCodeAt(i));)i+=1;else{e.err=`[path-util]: Invalid path value at index ${i}, "${n[i]}" invalid integer exponent`;return}}e.index=i,e.param=+e.pathValue.slice(r,i)}function KC(e){const t=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];return e===10||e===13||e===8232||e===8233||e===32||e===9||e===11||e===12||e===160||e>=5760&&t.includes(e)}function uu(e){const{pathValue:t,max:n}=e;for(;e.index<n&&KC(t.charCodeAt(e.index));)e.index+=1}function YC(e){switch(e|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}function XC(e){return(e|32)===97}function JC(e){const{max:t,pathValue:n,index:r}=e,i=n.charCodeAt(r),s=eo[n[r].toLowerCase()];if(e.segmentStart=r,!YC(i)){e.err=`[path-util]: Invalid path value "${n[r]}" is not a path command`;return}if(e.index+=1,uu(e),e.data=[],!s){o1(e);return}for(;;){for(let o=s;o>0;o-=1){if(XC(i)&&(o===3||o===4)?qC(e):HC(e),e.err.length)return;e.data.push(e.param),uu(e),e.index<t&&n.charCodeAt(e.index)===44&&(e.index+=1,uu(e))}if(e.index>=e.max||!GC(n.charCodeAt(e.index)))break}o1(e)}class ZC{pathValue;segments;max;index;param;segmentStart;data;err;constructor(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}}function kl(e){if(r1(e))return ji(e);const t=new ZC(e);for(uu(t);t.index<t.max&&!t.err.length;)JC(t);return t.err?t.err:t.segments}function a1(e){if(i1(e))return ji(e);const t=kl(e);let n=0,r=0,i=0,s=0;return t.map(o=>{const a=o.slice(1).map(Number),[u]=o,f=u.toUpperCase();if(u==="M")return[n,r]=a,i=n,s=r,["M",n,r];let c;if(u!==f)switch(f){case"A":c=[f,a[0],a[1],a[2],a[3],a[4],a[5]+n,a[6]+r];break;case"V":c=[f,a[0]+r];break;case"H":c=[f,a[0]+n];break;default:{const h=a.map((d,_)=>d+(_%2?r:n));c=[f].concat(h)}}else c=[f].concat(a);const l=c.length;switch(f){case"Z":n=i,r=s;break;case"H":[,n]=c;break;case"V":[,r]=c;break;default:n=c[l-2],r=c[l-1],f==="M"&&(i=n,s=r)}return c})}function QC(e,t){const[n]=e,{x1:r,y1:i,x2:s,y2:o}=t,a=e.slice(1).map(Number);let u=e;if("TQ".includes(n)||(t.qx=null,t.qy=null),n==="H")u=["L",e[1],i];else if(n==="V")u=["L",r,e[1]];else if(n==="S"){const f=r*2-s,c=i*2-o;t.x1=f,t.y1=c,u=["C",f,c].concat(a)}else if(n==="T"){const f=r*2-t.qx,c=i*2-t.qy;t.qx=f,t.qy=c,u=["Q",f,c].concat(a)}else if(n==="Q"){const[f,c]=a;t.qx=f,t.qy=c}return u}function fu(e){if(s1(e))return ji(e);const t=a1(e),n={...n1},r=t.length;let i="";for(let s=0;s<r;s+=1){[i]=t[s],t[s]=QC(t[s],n);const o=t[s],a=o.length;n.x1=+o[a-2],n.y1=+o[a-1],n.x2=+o[a-4]||n.x1,n.y2=+o[a-3]||n.y1}return t}function eL(e){return s1(e)&&e.every(([t])=>"MC".includes(t))}function cu(e,t,n){const r=e*Math.cos(n)-t*Math.sin(n),i=e*Math.sin(n)+t*Math.cos(n);return{x:r,y:i}}function u1(e,t,n,r,i,s,o,a,u,f){let c=e,l=t,h=n,d=r,_=a,v=u;const g=Math.PI*120/180,y=Math.PI/180*(+i||0);let b=[],w,m,A,S,P;if(f)[m,A,S,P]=f;else{w=cu(c,l,-y),c=w.x,l=w.y,w=cu(_,v,-y),_=w.x,v=w.y;const Te=(c-_)/2,un=(l-v)/2;let yi=Te*Te/(h*h)+un*un/(d*d);yi>1&&(yi=Math.sqrt(yi),h*=yi,d*=yi);const gd=h*h,yd=d*d,IE=(s===o?-1:1)*Math.sqrt(Math.abs((gd*yd-gd*un*un-yd*Te*Te)/(gd*un*un+yd*Te*Te)));S=IE*h*un/d+(c+_)/2,P=IE*-d*Te/h+(l+v)/2,m=Math.asin(((l-P)/d*10**9>>0)/10**9),A=Math.asin(((v-P)/d*10**9>>0)/10**9),m=c<S?Math.PI-m:m,A=_<S?Math.PI-A:A,m<0&&(m=Math.PI*2+m),A<0&&(A=Math.PI*2+A),o&&m>A&&(m-=Math.PI*2),!o&&A>m&&(A-=Math.PI*2)}let k=A-m;if(Math.abs(k)>g){const Te=A,un=_,yi=v;A=m+g*(o&&A>m?1:-1),_=S+h*Math.cos(A),v=P+d*Math.sin(A),b=u1(_,v,h,d,i,0,o,un,yi,[A,Te,S,P])}k=A-m;const Qn=Math.cos(m),Hf=Math.sin(m),In=Math.cos(A),Kf=Math.sin(A),la=Math.tan(k/4),Yf=4/3*h*la,Xf=4/3*d*la,er=[c,l],tr=[c+Yf*Hf,l-Xf*Qn],ha=[_+Yf*Kf,v-Xf*In],pa=[_,v];if(tr[0]=2*er[0]-tr[0],tr[1]=2*er[1]-tr[1],f)return tr.concat(ha,pa,b);b=tr.concat(ha,pa,b);const vd=[];for(let Te=0,un=b.length;Te<un;Te+=1)vd[Te]=Te%2?cu(b[Te-1],b[Te],y).y:cu(b[Te],b[Te+1],y).x;return vd}function tL(e,t,n,r,i,s){const o=.3333333333333333,a=2/3;return[o*e+a*n,o*t+a*r,o*i+a*n,o*s+a*r,i,s]}function jt(e,t,n){const r=e[0],i=e[1],s=t[0],o=t[1];return[r+(s-r)*n,i+(o-i)*n]}function Bi(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function to(e,t,n,r,i){const s=Bi([e,t],[n,r]);let o={x:0,y:0};if(typeof i=="number")if(i<=0)o={x:e,y:t};else if(i>=s)o={x:n,y:r};else{const[a,u]=jt([e,t],[n,r],i/s);o={x:a,y:u}}return{length:s,point:o,min:{x:Math.min(e,n),y:Math.min(t,r)},max:{x:Math.max(e,n),y:Math.max(t,r)}}}function f1(e,t,n,r){const s=[e,t],o=[n,r],a=jt(s,o,.5),u=jt(o,a,.5),f=jt(a,u,.5),c=jt(u,f,.5),l=jt(f,c,.5),h=to(s[0],s[1],a[0],a[1],f[0]).point,d=to(l[0],l[1],c[0],c[1],u[0]).point;return[h.x,h.y,d.x,d.y,n,r]}function nL(e,t){const[n]=e,r=e.slice(1).map(Number),[i,s]=r;let o;const{x1:a,y1:u,x:f,y:c}=t;switch("TQ".includes(n)||(t.qx=null,t.qy=null),n){case"M":return t.x=i,t.y=s,e;case"A":return o=[a,u].concat(r),["C"].concat(u1(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9]));case"Q":return t.qx=i,t.qy=s,o=[a,u].concat(r),["C"].concat(tL(o[0],o[1],o[2],o[3],o[4],o[5]));case"L":return["C"].concat(f1(a,u,i,s));case"Z":return a===f&&u===c?["C",a,u,f,c,f,c]:["C"].concat(f1(a,u,f,c))}return e}function c1(e,t=!1){if(eL(e)){const c=ji(e);return t?[c,[]]:c}const n=fu(e),r={...n1},i=[];let s="",o=n.length,a,u;const f=[];for(let c=0;c<o;c+=1){n[c]&&([s]=n[c]),i[c]=s;const l=nL(n[c],r);n[c]=l,WC(n,i,c),o=n.length,s==="Z"&&f.push(c),a=n[c],u=a.length,r.x1=+a[u-2],r.y1=+a[u-1],r.x2=+a[u-4]||r.x1,r.y2=+a[u-3]||r.y1}return t?[n,f]:n}function rL(e){const t=e.slice(1).map((n,r,i)=>r?i[r-1].slice(-2).concat(n.slice(1)):e[0].slice(1).concat(n.slice(1))).map(n=>n.map((r,i)=>n[n.length-i-2*(1-i%2)])).reverse();return[["M"].concat(t[0].slice(0,2))].concat(t.map(n=>["C"].concat(n.slice(2))))}function l1(e,t){const{x:n,y:r}=e,{x:i,y:s}=t,o=n*i+r*s,a=Math.sqrt((n**2+r**2)*(i**2+s**2));return(n*s-r*i<0?-1:1)*Math.acos(o/a)}function iL(e,t,n,r,i,s,o,a,u,f){const{abs:c,sin:l,cos:h,sqrt:d,PI:_}=Math;let v=c(n),g=c(r);const b=(i%360+360)%360*(_/180);if(e===a&&t===u)return{x:e,y:t};if(v===0||g===0)return to(e,t,a,u,f).point;const w=(e-a)/2,m=(t-u)/2,A={x:h(b)*w+l(b)*m,y:-l(b)*w+h(b)*m},S=A.x**2/v**2+A.y**2/g**2;S>1&&(v*=d(S),g*=d(S));const P=v**2*g**2-v**2*A.y**2-g**2*A.x**2,k=v**2*A.y**2+g**2*A.x**2;let Qn=P/k;Qn=Qn<0?0:Qn;const Hf=(s!==o?1:-1)*d(Qn),In={x:Hf*(v*A.y/g),y:Hf*(-(g*A.x)/v)},Kf={x:h(b)*In.x-l(b)*In.y+(e+a)/2,y:l(b)*In.x+h(b)*In.y+(t+u)/2},la={x:(A.x-In.x)/v,y:(A.y-In.y)/g},Yf=l1({x:1,y:0},la),Xf={x:(-A.x-In.x)/v,y:(-A.y-In.y)/g};let er=l1(la,Xf);!o&&er>0?er-=2*_:o&&er<0&&(er+=2*_),er%=2*_;const tr=Yf+er*f,ha=v*h(tr),pa=g*l(tr);return{x:h(b)*ha-l(b)*pa+Kf.x,y:l(b)*ha+h(b)*pa+Kf.y}}function sL(e,t,n,r,i,s,o,a,u,f){const c=typeof f=="number";let l=e,h=t,d=0,_=[l,h,d],v=[l,h],g=0,y={x:0,y:0},b=[{x:l,y:h}];c&&f<=0&&(y={x:l,y:h});const w=100;for(let m=0;m<=w;m+=1){if(g=m/w,{x:l,y:h}=iL(e,t,n,r,i,s,o,a,u,g),b=b.concat({x:l,y:h}),d+=Bi(v,[l,h]),v=[l,h],c&&d>=f&&f>_[2]){const A=(d-f)/(d-_[2]);y={x:v[0]*(1-A)+_[0]*A,y:v[1]*(1-A)+_[1]*A}}_=[l,h,d]}return c&&f>=d&&(y={x:a,y:u}),{length:d,point:y,min:{x:Math.min.apply(null,b.map(m=>m.x)),y:Math.min.apply(null,b.map(m=>m.y))},max:{x:Math.max.apply(null,b.map(m=>m.x)),y:Math.max.apply(null,b.map(m=>m.y))}}}function oL(e,t,n,r,i,s,o,a,u){const f=1-u;return{x:f**3*e+3*f**2*u*n+3*f*u**2*i+u**3*o,y:f**3*t+3*f**2*u*r+3*f*u**2*s+u**3*a}}function h1(e,t,n,r,i,s,o,a,u){const f=typeof u=="number";let c=e,l=t,h=0,d=[c,l,h],_=[c,l],v=0,g={x:0,y:0},y=[{x:c,y:l}];f&&u<=0&&(g={x:c,y:l});const b=30;for(let w=0;w<=b;w+=1){if(v=w/b,{x:c,y:l}=oL(e,t,n,r,i,s,o,a,v),y=y.concat({x:c,y:l}),h+=Bi(_,[c,l]),_=[c,l],f&&h>=u&&u>d[2]){const m=(h-u)/(h-d[2]);g={x:_[0]*(1-m)+d[0]*m,y:_[1]*(1-m)+d[1]*m}}d=[c,l,h]}return f&&u>=h&&(g={x:o,y:a}),{length:h,point:g,min:{x:Math.min.apply(null,y.map(w=>w.x)),y:Math.min.apply(null,y.map(w=>w.y))},max:{x:Math.max.apply(null,y.map(w=>w.x)),y:Math.max.apply(null,y.map(w=>w.y))}}}function aL(e,t,n,r,i,s,o){const a=1-o;return{x:a**2*e+2*a*o*n+o**2*i,y:a**2*t+2*a*o*r+o**2*s}}function uL(e,t,n,r,i,s,o){const a=typeof o=="number";let u=e,f=t,c=0,l=[u,f,c],h=[u,f],d=0,_={x:0,y:0},v=[{x:u,y:f}];a&&o<=0&&(_={x:u,y:f});const g=30;for(let y=0;y<=g;y+=1){if(d=y/g,{x:u,y:f}=aL(e,t,n,r,i,s,d),v=v.concat({x:u,y:f}),c+=Bi(h,[u,f]),h=[u,f],a&&c>=o&&o>l[2]){const b=(c-o)/(c-l[2]);_={x:h[0]*(1-b)+l[0]*b,y:h[1]*(1-b)+l[1]*b}}l=[u,f,c]}return a&&o>=c&&(_={x:i,y:s}),{length:c,point:_,min:{x:Math.min.apply(null,v.map(y=>y.x)),y:Math.min.apply(null,v.map(y=>y.y))},max:{x:Math.max.apply(null,v.map(y=>y.x)),y:Math.max.apply(null,v.map(y=>y.y))}}}function lu(e,t){const n=fu(e),r=typeof t=="number";let i,s=[],o,a=0,u=0,f=0,c=0,l,h=[],d=[],_=0,v={x:0,y:0},g=v,y=v,b=v,w=0;for(let m=0,A=n.length;m<A;m+=1)l=n[m],[o]=l,i=o==="M",s=i?s:[a,u].concat(l.slice(1)),i?([,f,c]=l,v={x:f,y:c},g=v,_=0,r&&t<.001&&(b=v)):o==="L"?{length:_,min:v,max:g,point:y}=to(s[0],s[1],s[2],s[3],(t||0)-w):o==="A"?{length:_,min:v,max:g,point:y}=sL(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],(t||0)-w):o==="C"?{length:_,min:v,max:g,point:y}=h1(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],(t||0)-w):o==="Q"?{length:_,min:v,max:g,point:y}=uL(s[0],s[1],s[2],s[3],s[4],s[5],(t||0)-w):o==="Z"&&(s=[a,u,f,c],{length:_,min:v,max:g,point:y}=to(s[0],s[1],s[2],s[3],(t||0)-w)),r&&w<t&&w+_>=t&&(b=y),d.push(g),h.push(v),w+=_,[a,u]=o!=="Z"?l.slice(-2):[f,c];return r&&t>=w&&(b={x:a,y:u}),{length:w,point:b,min:{x:Math.min.apply(null,h.map(m=>m.x)),y:Math.min.apply(null,h.map(m=>m.y))},max:{x:Math.max.apply(null,d.map(m=>m.x)),y:Math.max.apply(null,d.map(m=>m.y))}}}function fL(e){if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};const{min:{x:t,y:n},max:{x:r,y:i}}=lu(e),s=r-t,o=i-n;return{width:s,height:o,x:t,y:n,x2:r,y2:i,cx:t+s/2,cy:n+o/2,cz:Math.max(s,o)+Math.min(s,o)/2}}function no(e){return lu(e).length}function cL(e){if(!e)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};const{length:t,min:{x:n,y:r},max:{x:i,y:s}}=lu(e),o=i-n,a=s-r;return{length:t,width:o,height:a,x:n,y:r,x2:i,y2:s,cx:n+o/2,cy:r+a/2,cz:Math.max(o,a)+Math.min(o,a)/2}}function lL(e){const t=e.length,n=t-1;return e.map((r,i)=>e.map((s,o)=>{let a=i+o,u;return o===0||e[a]&&e[a][0]==="M"?(u=e[a],["M"].concat(u.slice(-2))):(a>=t&&(a-=n),e[a])}))}function hL(e,t){const n=e.length-1,r=[];let i=0,s=0;const o=lL(e);return o.forEach((a,u)=>{e.slice(1).forEach((f,c)=>{s+=Bi(e[(u+c)%n].slice(-2),t[c%n].slice(-2))}),r[u]=s,s=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}function pL(e,t,n,r,i,s,o,a){return 3*((a-t)*(n+i)-(o-e)*(r+s)+r*(e-i)-n*(t-s)+a*(i+e/3)-o*(s+t/3))/20}function p1(e){let t=0,n=0,r=0;return c1(e).map(i=>{switch(i[0]){case"M":return[,t,n]=i,0;default:const[s,o,a,u,f,c]=i.slice(1);return r=pL(t,n,s,o,a,u,f,c),[t,n]=i.slice(-2),r}}).reduce((i,s)=>i+s,0)}function dL(e){return p1(e)>=0}function hu(e,t){return lu(e,t).point}function _L(e,t){const n=kl(e);if(typeof n=="string")throw TypeError(n);let r=n.slice(),i=no(r),s=r.length-1,o=0,a=0,u=n[0];const[f,c]=u.slice(-2),l={x:f,y:c};if(s<=0||!t||!Number.isFinite(t))return{segment:u,index:0,length:a,point:l,lengthAtSegment:o};if(t>=i)return r=n.slice(0,-1),o=no(r),a=i-o,{segment:n[s],index:s,length:a,lengthAtSegment:o};const h=[];for(;s>0;)u=r[s],r=r.slice(0,-1),o=no(r),a=i-o,i=o,h.push({segment:u,index:s,length:a,lengthAtSegment:o}),s-=1;return h.find(({lengthAtSegment:d})=>d<=t)}function vL(e,t){const n=kl(e),r=fu(n),i=no(n),s=m=>{const A=m.x-t.x,S=m.y-t.y;return A*A+S*S};let o=8,a,u=0,f={x:0,y:0},c=0,l=1/0;for(let m=0;m<=i;m+=o)a=hu(r,m),u=s(a),u<l&&(f=a,c=m,l=u);o/=2;let h,d,_=0,v=0,g=0,y=0;for(;o>.5;)_=c-o,h=hu(r,_),g=s(h),v=c+o,d=hu(r,v),y=s(d),_>=0&&g<l?(f=h,c=_,l=g):v<=i&&y<l?(f=d,c=v,l=y):o/=2;const b=_L(n,c),w=Math.sqrt(l);return{closest:f,distance:w,segment:b}}function gL(e,t){const{distance:n}=vL(e,t);return Math.abs(n)<.001}function yL(e,t=.5){const n=e.slice(0,2),r=e.slice(2,4),i=e.slice(4,6),s=e.slice(6,8),o=jt(n,r,t),a=jt(r,i,t),u=jt(i,s,t),f=jt(o,a,t),c=jt(a,u,t),l=jt(f,c,t);return[["C"].concat(o,f,l),["C"].concat(c,u,s)]}function d1(e){return e.map((t,n,r)=>{const i=n&&r[n-1].slice(-2).concat(t.slice(1)),s=n?h1(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8]).length:0;let o;return n?o=s?yL(i):[t,t]:o=[t],{s:t,ss:o,l:s}})}function _1(e,t,n){const r=d1(e),i=d1(t),s=r.length,o=i.length,a=r.filter(g=>g.l).length,u=i.filter(g=>g.l).length,f=r.filter(g=>g.l).reduce((g,{l:y})=>g+y,0)/a||0,c=i.filter(g=>g.l).reduce((g,{l:y})=>g+y,0)/u||0,l=n||Math.max(s,o),h=[f,c],d=[l-s,l-o];let _=0;const v=[r,i].map((g,y)=>g.l===l?g.map(b=>b.s):g.map((b,w)=>(_=w&&d[y]&&b.l>=h[y],d[y]-=_?1:0,_?b.ss:[b.s])).flat());return v[0].length===v[1].length?v:_1(v[0],v[1],l)}const bL=Object.freeze(Object.defineProperty({__proto__:null,angleTo:zC,clonePath:ji,direction:t1,distanceSquareRoot:Bi,equalizeSegments:_1,getDrawDirection:dL,getPathArea:p1,getPathBBox:fL,getPathBBoxTotalLength:cL,getPointAtLength:hu,getRotatedCurve:hL,getTotalLength:no,gradient:EC,isPointInStroke:gL,normalizePath:fu,path2Absolute:a1,path2Curve:c1,path2String:VC,reverseCurve:rL,rgb2arr:Jm,toCSSGradient:PC,toRGB:Qm,transform:BC,vertical:UC},Symbol.toStringTag,{value:"Module"}));var pu=Symbol.for("immer-nothing"),zi=Symbol.for("immer-draftable"),q=Symbol.for("immer-state"),v1=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function he(e,...t){if(process.env.NODE_ENV!=="production"){const n=v1[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Wr=Object.getPrototypeOf;function Un(e){return!!e&&!!e[q]}function Jt(e){return e?g1(e)||Array.isArray(e)||!!e[zi]||!!e.constructor?.[zi]||io(e)||so(e):!1}var mL=Object.prototype.constructor.toString();function g1(e){if(!e||typeof e!="object")return!1;const t=Wr(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===mL}function wL(e){return Un(e)||he(15,e),e[q].base_}function Ui(e,t){qr(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function qr(e){const t=e[q];return t?t.type_:Array.isArray(e)?1:io(e)?2:so(e)?3:0}function ro(e,t){return qr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Vl(e,t){return qr(e)===2?e.get(t):e[t]}function y1(e,t,n){const r=qr(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function AL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function io(e){return e instanceof Map}function so(e){return e instanceof Set}function Ae(e){return e.copy_||e.base_}function Wl(e,t){if(io(e))return new Map(e);if(so(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=g1(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[q];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const o=i[s],a=r[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Wr(e),r)}else{const r=Wr(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function du(e,t=!1){return _u(e)||Un(e)||!Jt(e)||(qr(e)>1&&(e.set=e.add=e.clear=e.delete=OL),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>du(r,!0))),e}function OL(){he(2)}function _u(e){return Object.isFrozen(e)}var ql={};function Gr(e){const t=ql[e];return t||he(0,e),t}function b1(e,t){ql[e]||(ql[e]=t)}var oo;function vu(){return oo}function EL(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function m1(e,t){t&&(Gr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Gl(e){Hl(e),e.drafts_.forEach(SL),e.drafts_=null}function Hl(e){e===oo&&(oo=e.parent_)}function w1(e){return oo=EL(oo,e)}function SL(e){const t=e[q];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function A1(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[q].modified_&&(Gl(t),he(4)),Jt(e)&&(e=gu(t,e),t.parent_||yu(t,e)),t.patches_&&Gr("Patches").generateReplacementPatches_(n[q].base_,e,t.patches_,t.inversePatches_)):e=gu(t,n,[]),Gl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pu?e:void 0}function gu(e,t,n){if(_u(t))return t;const r=t[q];if(!r)return Ui(t,(i,s)=>O1(e,r,t,i,s,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return yu(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let s=i,o=!1;r.type_===3&&(s=new Set(i),i.clear(),o=!0),Ui(s,(a,u)=>O1(e,r,i,a,u,n,o)),yu(e,i,!1),n&&e.patches_&&Gr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function O1(e,t,n,r,i,s,o){if(process.env.NODE_ENV!=="production"&&i===n&&he(5),Un(i)){const a=s&&t&&t.type_!==3&&!ro(t.assigned_,r)?s.concat(r):void 0,u=gu(e,i,a);if(y1(n,r,u),Un(u))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(Jt(i)&&!_u(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;gu(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&yu(e,i)}}function yu(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&du(t,n)}function xL(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:vu(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,s=Kl;n&&(i=[r],s=ao);const{revoke:o,proxy:a}=Proxy.revocable(i,s);return r.draft_=a,r.revoke_=o,a}var Kl={get(e,t){if(t===q)return e;const n=Ae(e);if(!ro(n,t))return TL(e,n,t);const r=n[t];return e.finalized_||!Jt(r)?r:r===Yl(e.base_,t)?(Xl(e),e.copy_[t]=uo(r,e)):r},has(e,t){return t in Ae(e)},ownKeys(e){return Reflect.ownKeys(Ae(e))},set(e,t,n){const r=E1(Ae(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Yl(Ae(e),t),s=i?.[q];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(AL(n,i)&&(n!==void 0||ro(e.base_,t)))return!0;Xl(e),kn(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Yl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Xl(e),kn(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ae(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){he(11)},getPrototypeOf(e){return Wr(e.base_)},setPrototypeOf(){he(12)}},ao={};Ui(Kl,(e,t)=>{ao[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ao.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&he(13),ao.set.call(this,e,t,void 0)},ao.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&he(14),Kl.set.call(this,e[0],t,n,e[0])};function Yl(e,t){const n=e[q];return(n?Ae(n):e)[t]}function TL(e,t,n){const r=E1(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function E1(e,t){if(!(t in e))return;let n=Wr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Wr(n)}}function kn(e){e.modified_||(e.modified_=!0,e.parent_&&kn(e.parent_))}function Xl(e){e.copy_||(e.copy_=Wl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var S1=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const o=this;return function(u=s,...f){return o.produce(u,c=>n.call(this,c,...f))}}typeof n!="function"&&he(6),r!==void 0&&typeof r!="function"&&he(7);let i;if(Jt(t)){const s=w1(this),o=uo(t,void 0);let a=!0;try{i=n(o),a=!1}finally{a?Gl(s):Hl(s)}return m1(s,r),A1(i,s)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===pu&&(i=void 0),this.autoFreeze_&&du(i,!0),r){const s=[],o=[];Gr("Patches").generateReplacementPatches_(t,i,s,o),r(s,o)}return i}else he(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...a)=>this.produceWithPatches(o,u=>t(u,...a));let r,i;return[this.produce(t,n,(o,a)=>{r=o,i=a}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Jt(e)||he(8),Un(e)&&(e=x1(e));const t=w1(this),n=uo(e,void 0);return n[q].isManual_=!0,Hl(t),n}finishDraft(e,t){const n=e&&e[q];(!n||!n.isManual_)&&he(9);const{scope_:r}=n;return m1(r,t),A1(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Gr("Patches").applyPatches_;return Un(e)?r(e,t):this.produce(e,i=>r(i,t))}};function uo(e,t){const n=io(e)?Gr("MapSet").proxyMap_(e,t):so(e)?Gr("MapSet").proxySet_(e,t):xL(e,t);return(t?t.scope_:vu()).drafts_.push(n),n}function x1(e){return Un(e)||he(10,e),T1(e)}function T1(e){if(!Jt(e)||_u(e))return e;const t=e[q];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Wl(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Wl(e,!0);return Ui(n,(r,i)=>{y1(n,r,T1(i))}),t&&(t.finalized_=!1),n}function RL(){process.env.NODE_ENV!=="production"&&v1.push('Sets cannot have "replace" patches.',function(h){return"Unsupported patch operation: "+h},function(h){return"Cannot apply patch, path doesn't resolve: "+h},"Patching reserved attributes like __proto__, prototype and constructor is not allowed");const t="replace",n="add",r="remove";function i(h,d,_,v){switch(h.type_){case 0:case 2:return o(h,d,_,v);case 1:return s(h,d,_,v);case 3:return a(h,d,_,v)}}function s(h,d,_,v){let{base_:g,assigned_:y}=h,b=h.copy_;b.length<g.length&&([g,b]=[b,g],[_,v]=[v,_]);for(let w=0;w<g.length;w++)if(y[w]&&b[w]!==g[w]){const m=d.concat([w]);_.push({op:t,path:m,value:l(b[w])}),v.push({op:t,path:m,value:l(g[w])})}for(let w=g.length;w<b.length;w++){const m=d.concat([w]);_.push({op:n,path:m,value:l(b[w])})}for(let w=b.length-1;g.length<=w;--w){const m=d.concat([w]);v.push({op:r,path:m})}}function o(h,d,_,v){const{base_:g,copy_:y}=h;Ui(h.assigned_,(b,w)=>{const m=Vl(g,b),A=Vl(y,b),S=w?ro(g,b)?t:n:r;if(m===A&&S===t)return;const P=d.concat(b);_.push(S===r?{op:S,path:P}:{op:S,path:P,value:A}),v.push(S===n?{op:r,path:P}:S===r?{op:n,path:P,value:l(m)}:{op:t,path:P,value:l(m)})})}function a(h,d,_,v){let{base_:g,copy_:y}=h,b=0;g.forEach(w=>{if(!y.has(w)){const m=d.concat([b]);_.push({op:r,path:m,value:w}),v.unshift({op:n,path:m,value:w})}b++}),b=0,y.forEach(w=>{if(!g.has(w)){const m=d.concat([b]);_.push({op:n,path:m,value:w}),v.unshift({op:r,path:m,value:w})}b++})}function u(h,d,_,v){_.push({op:t,path:[],value:d===pu?void 0:d}),v.push({op:t,path:[],value:h})}function f(h,d){return d.forEach(_=>{const{path:v,op:g}=_;let y=h;for(let A=0;A<v.length-1;A++){const S=qr(y);let P=v[A];typeof P!="string"&&typeof P!="number"&&(P=""+P),(S===0||S===1)&&(P==="__proto__"||P==="constructor")&&he(19),typeof y=="function"&&P==="prototype"&&he(19),y=Vl(y,P),typeof y!="object"&&he(18,v.join("/"))}const b=qr(y),w=c(_.value),m=v[v.length-1];switch(g){case t:switch(b){case 2:return y.set(m,w);case 3:he(16);default:return y[m]=w}case n:switch(b){case 1:return m==="-"?y.push(w):y.splice(m,0,w);case 2:return y.set(m,w);case 3:return y.add(w);default:return y[m]=w}case r:switch(b){case 1:return y.splice(m,1);case 2:return y.delete(m);case 3:return y.delete(_.value);default:return delete y[m]}default:he(17,g)}}),h}function c(h){if(!Jt(h))return h;if(Array.isArray(h))return h.map(c);if(io(h))return new Map(Array.from(h.entries()).map(([_,v])=>[_,c(v)]));if(so(h))return new Set(Array.from(h).map(c));const d=Object.create(Wr(h));for(const _ in h)d[_]=c(h[_]);return ro(h,zi)&&(d[zi]=h[zi]),d}function l(h){return Un(h)?c(h):h}b1("Patches",{applyPatches_:f,generatePatches_:i,generateReplacementPatches_:u})}function PL(){class e extends Map{constructor(u,f){super(),this[q]={type_:2,parent_:f,scope_:f?f.scope_:vu(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:u,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Ae(this[q]).size}has(u){return Ae(this[q]).has(u)}set(u,f){const c=this[q];return o(c),(!Ae(c).has(u)||Ae(c).get(u)!==f)&&(n(c),kn(c),c.assigned_.set(u,!0),c.copy_.set(u,f),c.assigned_.set(u,!0)),this}delete(u){if(!this.has(u))return!1;const f=this[q];return o(f),n(f),kn(f),f.base_.has(u)?f.assigned_.set(u,!1):f.assigned_.delete(u),f.copy_.delete(u),!0}clear(){const u=this[q];o(u),Ae(u).size&&(n(u),kn(u),u.assigned_=new Map,Ui(u.base_,f=>{u.assigned_.set(f,!1)}),u.copy_.clear())}forEach(u,f){const c=this[q];Ae(c).forEach((l,h,d)=>{u.call(f,this.get(h),h,this)})}get(u){const f=this[q];o(f);const c=Ae(f).get(u);if(f.finalized_||!Jt(c)||c!==f.base_.get(u))return c;const l=uo(c,f);return n(f),f.copy_.set(u,l),l}keys(){return Ae(this[q]).keys()}values(){const u=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const f=u.next();return f.done?f:{done:!1,value:this.get(f.value)}}}}entries(){const u=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const f=u.next();if(f.done)return f;const c=this.get(f.value);return{done:!1,value:[f.value,c]}}}}[Symbol.iterator](){return this.entries()}}function t(a,u){return new e(a,u)}function n(a){a.copy_||(a.assigned_=new Map,a.copy_=new Map(a.base_))}class r extends Set{constructor(u,f){super(),this[q]={type_:3,parent_:f,scope_:f?f.scope_:vu(),modified_:!1,finalized_:!1,copy_:void 0,base_:u,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Ae(this[q]).size}has(u){const f=this[q];return o(f),f.copy_?!!(f.copy_.has(u)||f.drafts_.has(u)&&f.copy_.has(f.drafts_.get(u))):f.base_.has(u)}add(u){const f=this[q];return o(f),this.has(u)||(s(f),kn(f),f.copy_.add(u)),this}delete(u){if(!this.has(u))return!1;const f=this[q];return o(f),s(f),kn(f),f.copy_.delete(u)||(f.drafts_.has(u)?f.copy_.delete(f.drafts_.get(u)):!1)}clear(){const u=this[q];o(u),Ae(u).size&&(s(u),kn(u),u.copy_.clear())}values(){const u=this[q];return o(u),s(u),u.copy_.values()}entries(){const u=this[q];return o(u),s(u),u.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(u,f){const c=this.values();let l=c.next();for(;!l.done;)u.call(f,l.value,l.value,this),l=c.next()}}function i(a,u){return new r(a,u)}function s(a){a.copy_||(a.copy_=new Set,a.base_.forEach(u=>{if(Jt(u)){const f=uo(u,a);a.drafts_.set(u,f),a.copy_.add(f)}else a.copy_.add(u)}))}function o(a){a.revoked_&&he(3,JSON.stringify(Ae(a)))}b1("MapSet",{proxyMap_:t,proxySet_:i})}var vt=new S1,NL=vt.produce,ML=vt.produceWithPatches.bind(vt),$L=vt.setAutoFreeze.bind(vt),IL=vt.setUseStrictShallowCopy.bind(vt),DL=vt.applyPatches.bind(vt),CL=vt.createDraft.bind(vt),LL=vt.finishDraft.bind(vt);function jL(e){return e}function FL(e){return e}const BL=Object.freeze(Object.defineProperty({__proto__:null,Immer:S1,applyPatches:DL,castDraft:jL,castImmutable:FL,createDraft:CL,current:x1,enableMapSet:PL,enablePatches:RL,finishDraft:LL,freeze:du,immerable:zi,isDraft:Un,isDraftable:Jt,nothing:pu,original:wL,produce:NL,produceWithPatches:ML,setAutoFreeze:$L,setUseStrictShallowCopy:IL},Symbol.toStringTag,{value:"Module"}));var fo="delete",X=5,gt=1<<X,Ke=gt-1,j={};function Jl(){return{value:!1}}function Ft(e){e&&(e.value=!0)}function Zl(){}function ki(e){return e.size===void 0&&(e.size=e.__iterate(R1)),e.size}function lr(e,t){if(typeof t!="number"){var n=t>>>0;if(""+n!==t||n===4294967295)return NaN;t=n}return t<0?ki(e)+t:t}function R1(){return!0}function co(e,t,n){return(e===0&&!N1(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function Vi(e,t){return P1(e,t,0)}function lo(e,t){return P1(e,t,t)}function P1(e,t,n){return e===void 0?n:N1(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function N1(e){return e<0||e===0&&1/e===-1/0}var M1="@@__IMMUTABLE_ITERABLE__@@";function nt(e){return!!(e&&e[M1])}var bu="@@__IMMUTABLE_KEYED__@@";function Q(e){return!!(e&&e[bu])}var mu="@@__IMMUTABLE_INDEXED__@@";function rt(e){return!!(e&&e[mu])}function wu(e){return Q(e)||rt(e)}var Oe=function(t){return nt(t)?t:De(t)},Bt=function(e){function t(n){return Q(n)?n:dr(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Oe),Hr=function(e){function t(n){return rt(n)?n:Ut(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Oe),Wi=function(e){function t(n){return nt(n)&&!wu(n)?n:Hi(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Oe);Oe.Keyed=Bt,Oe.Indexed=Hr,Oe.Set=Wi;var $1="@@__IMMUTABLE_SEQ__@@";function Au(e){return!!(e&&e[$1])}var I1="@@__IMMUTABLE_RECORD__@@";function hr(e){return!!(e&&e[I1])}function zt(e){return nt(e)||hr(e)}var pr="@@__IMMUTABLE_ORDERED__@@";function Zt(e){return!!(e&&e[pr])}var qi=0,yt=1,bt=2,Ql=typeof Symbol=="function"&&Symbol.iterator,D1="@@iterator",Ou=Ql||D1,B=function(t){this.next=t};B.prototype.toString=function(){return"[Iterator]"},B.KEYS=qi,B.VALUES=yt,B.ENTRIES=bt,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[Ou]=function(){return this};function re(e,t,n,r){var i=e===qi?t:e===yt?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function Ie(){return{value:void 0,done:!0}}function eh(e){return Array.isArray(e)?!0:!!Eu(e)}function C1(e){return e&&typeof e.next=="function"}function th(e){var t=Eu(e);return t&&t.call(e)}function Eu(e){var t=e&&(Ql&&e[Ql]||e[D1]);if(typeof t=="function")return t}function zL(e){var t=Eu(e);return t&&t===e.entries}function UL(e){var t=Eu(e);return t&&t===e.keys}var Gi=Object.prototype.hasOwnProperty;function nh(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var De=function(e){function t(n){return n==null?ih():zt(n)?n.toSeq():VL(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(r,i){var s=this._cache;if(s){for(var o=s.length,a=0;a!==o;){var u=s[i?o-++a:a++];if(r(u[1],u[0],this)===!1)break}return a}return this.__iterateUncached(r,i)},t.prototype.__iterator=function(r,i){var s=this._cache;if(s){var o=s.length,a=0;return new B(function(){if(a===o)return Ie();var u=s[i?o-++a:a++];return re(r,u[0],u[1])})}return this.__iteratorUncached(r,i)},t}(Oe),dr=function(e){function t(n){return n==null?ih().toKeyedSeq():nt(n)?Q(n)?n.toSeq():n.fromEntrySeq():hr(n)?n.toSeq():sh(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(De),Ut=function(e){function t(n){return n==null?ih():nt(n)?Q(n)?n.entrySeq():n.toIndexedSeq():hr(n)?n.toSeq().entrySeq():j1(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(De),Hi=function(e){function t(n){return(nt(n)&&!wu(n)?n:Ut(n)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(De);De.isSeq=Au,De.Keyed=dr,De.Set=Hi,De.Indexed=Ut,De.prototype[$1]=!0;var Ki=function(e){function t(n){this._array=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(r,i){return this.has(r)?this._array[lr(this,r)]:i},t.prototype.__iterate=function(r,i){for(var s=this._array,o=s.length,a=0;a!==o;){var u=i?o-++a:a++;if(r(s[u],u,this)===!1)break}return a},t.prototype.__iterator=function(r,i){var s=this._array,o=s.length,a=0;return new B(function(){if(a===o)return Ie();var u=i?o-++a:a++;return re(r,u,s[u])})},t}(Ut),rh=function(e){function t(n){var r=Object.keys(n).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[]);this._object=n,this._keys=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(r,i){return i!==void 0&&!this.has(r)?i:this._object[r]},t.prototype.has=function(r){return Gi.call(this._object,r)},t.prototype.__iterate=function(r,i){for(var s=this._object,o=this._keys,a=o.length,u=0;u!==a;){var f=o[i?a-++u:u++];if(r(s[f],f,this)===!1)break}return u},t.prototype.__iterator=function(r,i){var s=this._object,o=this._keys,a=o.length,u=0;return new B(function(){if(u===a)return Ie();var f=o[i?a-++u:u++];return re(r,f,s[f])})},t}(dr);rh.prototype[pr]=!0;var kL=function(e){function t(n){this._collection=n,this.size=n.length||n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(r,i){if(i)return this.cacheResult().__iterate(r,i);var s=this._collection,o=th(s),a=0;if(C1(o))for(var u;!(u=o.next()).done&&r(u.value,a++,this)!==!1;);return a},t.prototype.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var s=this._collection,o=th(s);if(!C1(o))return new B(Ie);var a=0;return new B(function(){var u=o.next();return u.done?u:re(r,a++,u.value)})},t}(Ut),L1;function ih(){return L1||(L1=new Ki([]))}function sh(e){var t=oh(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new rh(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function j1(e){var t=oh(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function VL(e){var t=oh(e);if(t)return zL(e)?t.fromEntrySeq():UL(e)?t.toSetSeq():t;if(typeof e=="object")return new rh(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function oh(e){return nh(e)?new Ki(e):eh(e)?new kL(e):void 0}var F1="@@__IMMUTABLE_MAP__@@";function Su(e){return!!(e&&e[F1])}function ah(e){return Su(e)&&Zt(e)}function uh(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function Ee(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(uh(e)&&uh(t)&&e.equals(t))}var ho=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,n){t|=0,n|=0;var r=t&65535,i=n&65535;return r*i+((t>>>16)*i+r*(n>>>16)<<16>>>0)|0};function xu(e){return e>>>1&1073741824|e&3221225471}var WL=Object.prototype.valueOf;function it(e){if(e==null)return B1(e);if(typeof e.hashCode=="function")return xu(e.hashCode(e));var t=XL(e);if(t==null)return B1(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return qL(t);case"string":return t.length>JL?GL(t):fh(t);case"object":case"function":return KL(t);case"symbol":return HL(t);default:if(typeof t.toString=="function")return fh(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function B1(e){return e===null?1108378658:1108378659}function qL(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return xu(t)}function GL(e){var t=dh[e];return t===void 0&&(t=fh(e),ph===ZL&&(ph=0,dh={}),ph++,dh[e]=t),t}function fh(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return xu(t)}function HL(e){var t=V1[e];return t!==void 0||(t=k1(),V1[e]=t),t}function KL(e){var t;if(ch&&(t=lh.get(e),t!==void 0)||(t=e[Kr],t!==void 0)||!U1&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Kr],t!==void 0||(t=YL(e),t!==void 0)))return t;if(t=k1(),ch)lh.set(e,t);else{if(z1!==void 0&&z1(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(U1)Object.defineProperty(e,Kr,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Kr]=t;else if(e.nodeType!==void 0)e[Kr]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var z1=Object.isExtensible,U1=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function YL(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function XL(e){return e.valueOf!==WL&&typeof e.valueOf=="function"?e.valueOf(e):e}function k1(){var e=++hh;return hh&1073741824&&(hh=0),e}var ch=typeof WeakMap=="function",lh;ch&&(lh=new WeakMap);var V1=Object.create(null),hh=0,Kr="__immutablehash__";typeof Symbol=="function"&&(Kr=Symbol(Kr));var JL=16,ZL=255,ph=0,dh={},Tu=function(e){function t(n,r){this._iter=n,this._useKeys=r,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(r,i){return this._iter.get(r,i)},t.prototype.has=function(r){return this._iter.has(r)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var r=this,i=_h(this,!0);return this._useKeys||(i.valueSeq=function(){return r._iter.toSeq().reverse()}),i},t.prototype.map=function(r,i){var s=this,o=K1(this,r,i);return this._useKeys||(o.valueSeq=function(){return s._iter.toSeq().map(r,i)}),o},t.prototype.__iterate=function(r,i){var s=this;return this._iter.__iterate(function(o,a){return r(o,a,s)},i)},t.prototype.__iterator=function(r,i){return this._iter.__iterator(r,i)},t}(dr);Tu.prototype[pr]=!0;var W1=function(e){function t(n){this._iter=n,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(r){return this._iter.includes(r)},t.prototype.__iterate=function(r,i){var s=this,o=0;return i&&ki(this),this._iter.__iterate(function(a){return r(a,i?s.size-++o:o++,s)},i)},t.prototype.__iterator=function(r,i){var s=this,o=this._iter.__iterator(yt,i),a=0;return i&&ki(this),new B(function(){var u=o.next();return u.done?u:re(r,i?s.size-++a:a++,u.value,u)})},t}(Ut),q1=function(e){function t(n){this._iter=n,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(r){return this._iter.includes(r)},t.prototype.__iterate=function(r,i){var s=this;return this._iter.__iterate(function(o){return r(o,o,s)},i)},t.prototype.__iterator=function(r,i){var s=this._iter.__iterator(yt,i);return new B(function(){var o=s.next();return o.done?o:re(r,o.value,o.value,o)})},t}(Hi),G1=function(e){function t(n){this._iter=n,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(r,i){var s=this;return this._iter.__iterate(function(o){if(o){Q1(o);var a=nt(o);return r(a?o.get(1):o[1],a?o.get(0):o[0],s)}},i)},t.prototype.__iterator=function(r,i){var s=this._iter.__iterator(yt,i);return new B(function(){for(;;){var o=s.next();if(o.done)return o;var a=o.value;if(a){Q1(a);var u=nt(a);return re(r,u?a.get(0):a[0],u?a.get(1):a[1],o)}}})},t}(dr);W1.prototype.cacheResult=Tu.prototype.cacheResult=q1.prototype.cacheResult=G1.prototype.cacheResult=yh;function H1(e){var t=gn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var n=e.reverse.apply(this);return n.flip=function(){return e.reverse()},n},t.has=function(n){return e.includes(n)},t.includes=function(n){return e.has(n)},t.cacheResult=yh,t.__iterateUncached=function(n,r){var i=this;return e.__iterate(function(s,o){return n(o,s,i)!==!1},r)},t.__iteratorUncached=function(n,r){if(n===bt){var i=e.__iterator(n,r);return new B(function(){var s=i.next();if(!s.done){var o=s.value[0];s.value[0]=s.value[1],s.value[1]=o}return s})}return e.__iterator(n===yt?qi:yt,r)},t}function K1(e,t,n){var r=gn(e);return r.size=e.size,r.has=function(i){return e.has(i)},r.get=function(i,s){var o=e.get(i,j);return o===j?s:t.call(n,o,i,e)},r.__iterateUncached=function(i,s){var o=this;return e.__iterate(function(a,u,f){return i(t.call(n,a,u,f),u,o)!==!1},s)},r.__iteratorUncached=function(i,s){var o=e.__iterator(bt,s);return new B(function(){var a=o.next();if(a.done)return a;var u=a.value,f=u[0];return re(i,f,t.call(n,u[1],f,e),a)})},r}function _h(e,t){var n=this,r=gn(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var i=H1(e);return i.reverse=function(){return e.flip()},i}),r.get=function(i,s){return e.get(t?i:-1-i,s)},r.has=function(i){return e.has(t?i:-1-i)},r.includes=function(i){return e.includes(i)},r.cacheResult=yh,r.__iterate=function(i,s){var o=this,a=0;return s&&ki(e),e.__iterate(function(u,f){return i(u,t?f:s?o.size-++a:a++,o)},!s)},r.__iterator=function(i,s){var o=0;s&&ki(e);var a=e.__iterator(bt,!s);return new B(function(){var u=a.next();if(u.done)return u;var f=u.value;return re(i,t?f[0]:s?n.size-++o:o++,f[1],u)})},r}function Y1(e,t,n,r){var i=gn(e);return r&&(i.has=function(s){var o=e.get(s,j);return o!==j&&!!t.call(n,o,s,e)},i.get=function(s,o){var a=e.get(s,j);return a!==j&&t.call(n,a,s,e)?a:o}),i.__iterateUncached=function(s,o){var a=this,u=0;return e.__iterate(function(f,c,l){if(t.call(n,f,c,l))return u++,s(f,r?c:u-1,a)},o),u},i.__iteratorUncached=function(s,o){var a=e.__iterator(bt,o),u=0;return new B(function(){for(;;){var f=a.next();if(f.done)return f;var c=f.value,l=c[0],h=c[1];if(t.call(n,h,l,e))return re(s,r?l:u++,h,f)}})},i}function QL(e,t,n){var r=Xr().asMutable();return e.__iterate(function(i,s){r.update(t.call(n,i,s,e),0,function(o){return o+1})}),r.asImmutable()}function e3(e,t,n){var r=Q(e),i=(Zt(e)?mn():Xr()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(u){return u=u||[],u.push(r?[a,o]:o),u})});var s=gh(e);return i.map(function(o){return J(e,s(o))}).asImmutable()}function t3(e,t,n){var r=Q(e),i=[[],[]];e.__iterate(function(o,a){i[t.call(n,o,a,e)?1:0].push(r?[a,o]:o)});var s=gh(e);return i.map(function(o){return J(e,s(o))})}function vh(e,t,n,r){var i=e.size;if(co(t,n,i))return e;if(typeof i>"u"&&(t<0||n<0))return vh(e.toSeq().cacheResult(),t,n,r);var s=Vi(t,i),o=lo(n,i),a=o-s,u;a===a&&(u=a<0?0:a);var f=gn(e);return f.size=u===0?u:e.size&&u||void 0,!r&&Au(e)&&u>=0&&(f.get=function(c,l){return c=lr(this,c),c>=0&&c<u?e.get(c+s,l):l}),f.__iterateUncached=function(c,l){var h=this;if(u===0)return 0;if(l)return this.cacheResult().__iterate(c,l);var d=0,_=!0,v=0;return e.__iterate(function(g,y){if(!(_&&(_=d++<s)))return v++,c(g,r?y:v-1,h)!==!1&&v!==u}),v},f.__iteratorUncached=function(c,l){if(u!==0&&l)return this.cacheResult().__iterator(c,l);if(u===0)return new B(Ie);var h=e.__iterator(c,l),d=0,_=0;return new B(function(){for(;d++<s;)h.next();if(++_>u)return Ie();var v=h.next();return r||c===yt||v.done?v:c===qi?re(c,_-1,void 0,v):re(c,_-1,v.value[1],v)})},f}function n3(e,t,n){var r=gn(e);return r.__iterateUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterate(i,s);var a=0;return e.__iterate(function(u,f,c){return t.call(n,u,f,c)&&++a&&i(u,f,o)}),a},r.__iteratorUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterator(i,s);var a=e.__iterator(bt,s),u=!0;return new B(function(){if(!u)return Ie();var f=a.next();if(f.done)return f;var c=f.value,l=c[0],h=c[1];return t.call(n,h,l,o)?i===bt?f:re(i,l,h,f):(u=!1,Ie())})},r}function X1(e,t,n,r){var i=gn(e);return i.__iterateUncached=function(s,o){var a=this;if(o)return this.cacheResult().__iterate(s,o);var u=!0,f=0;return e.__iterate(function(c,l,h){if(!(u&&(u=t.call(n,c,l,h))))return f++,s(c,r?l:f-1,a)}),f},i.__iteratorUncached=function(s,o){var a=this;if(o)return this.cacheResult().__iterator(s,o);var u=e.__iterator(bt,o),f=!0,c=0;return new B(function(){var l,h,d;do{if(l=u.next(),l.done)return r||s===yt?l:s===qi?re(s,c++,void 0,l):re(s,c++,l.value[1],l);var _=l.value;h=_[0],d=_[1],f&&(f=t.call(n,d,h,a))}while(f);return s===bt?l:re(s,h,d,l)})},i}var r3=function(e){function t(n){this._wrappedIterables=n.flatMap(function(r){return r._wrappedIterables?r._wrappedIterables:[r]}),this.size=this._wrappedIterables.reduce(function(r,i){if(r!==void 0){var s=i.size;if(s!==void 0)return r+s}},0),this[bu]=this._wrappedIterables[0][bu],this[mu]=this._wrappedIterables[0][mu],this[pr]=this._wrappedIterables[0][pr]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(r,i){if(this._wrappedIterables.length!==0){if(i)return this.cacheResult().__iterate(r,i);for(var s=0,o=Q(this),a=o?bt:yt,u=this._wrappedIterables[s].__iterator(a,i),f=!0,c=0;f;){for(var l=u.next();l.done;){if(s++,s===this._wrappedIterables.length)return c;u=this._wrappedIterables[s].__iterator(a,i),l=u.next()}var h=o?r(l.value[1],l.value[0],this):r(l.value,c,this);f=h!==!1,c++}return c}},t.prototype.__iteratorUncached=function(r,i){var s=this;if(this._wrappedIterables.length===0)return new B(Ie);if(i)return this.cacheResult().__iterator(r,i);var o=0,a=this._wrappedIterables[o].__iterator(r,i);return new B(function(){for(var u=a.next();u.done;){if(o++,o===s._wrappedIterables.length)return u;a=s._wrappedIterables[o].__iterator(r,i),u=a.next()}return u})},t}(De);function i3(e,t){var n=Q(e),r=[e].concat(t).map(function(s){return nt(s)?n&&(s=Bt(s)):s=n?sh(s):j1(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(r.length===0)return e;if(r.length===1){var i=r[0];if(i===e||n&&Q(i)||rt(e)&&rt(i))return i}return new r3(r)}function J1(e,t,n){var r=gn(e);return r.__iterateUncached=function(i,s){if(s)return this.cacheResult().__iterate(i,s);var o=0,a=!1;function u(f,c){f.__iterate(function(l,h){return(!t||c<t)&&nt(l)?u(l,c+1):(o++,i(l,n?h:o-1,r)===!1&&(a=!0)),!a},s)}return u(e,0),o},r.__iteratorUncached=function(i,s){if(s)return this.cacheResult().__iterator(i,s);var o=e.__iterator(i,s),a=[],u=0;return new B(function(){for(;o;){var f=o.next();if(f.done!==!1){o=a.pop();continue}var c=f.value;if(i===bt&&(c=c[1]),(!t||a.length<t)&&nt(c))a.push(o),o=c.__iterator(i,s);else return n?f:re(i,u++,c,f)}return Ie()})},r}function s3(e,t,n){var r=gh(e);return e.toSeq().map(function(i,s){return r(t.call(n,i,s,e))}).flatten(!0)}function o3(e,t){var n=gn(e);return n.size=e.size&&e.size*2-1,n.__iterateUncached=function(r,i){var s=this,o=0;return e.__iterate(function(a){return(!o||r(t,o++,s)!==!1)&&r(a,o++,s)!==!1},i),o},n.__iteratorUncached=function(r,i){var s=e.__iterator(yt,i),o=0,a;return new B(function(){return(!a||o%2)&&(a=s.next(),a.done)?a:o%2?re(r,o++,t):re(r,o++,a.value,a)})},n}function Yi(e,t,n){t||(t=ew);var r=Q(e),i=0,s=e.toSeq().map(function(o,a){return[a,o,i++,n?n(o,a,e):o]}).valueSeq().toArray();return s.sort(function(o,a){return t(o[3],a[3])||o[2]-a[2]}).forEach(r?function(o,a){s[a].length=2}:function(o,a){s[a]=o[1]}),r?dr(s):rt(e)?Ut(s):Hi(s)}function Ru(e,t,n){if(t||(t=ew),n){var r=e.toSeq().map(function(i,s){return[i,n(i,s,e)]}).reduce(function(i,s){return Z1(t,i[1],s[1])?s:i});return r&&r[0]}return e.reduce(function(i,s){return Z1(t,i,s)?s:i})}function Z1(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function Pu(e,t,n,r){var i=gn(e),s=new Ki(n).map(function(o){return o.size});return i.size=r?s.max():s.min(),i.__iterate=function(o,a){for(var u=this.__iterator(yt,a),f,c=0;!(f=u.next()).done&&o(f.value,c++,this)!==!1;);return c},i.__iteratorUncached=function(o,a){var u=n.map(function(l){return l=Oe(l),th(a?l.reverse():l)}),f=0,c=!1;return new B(function(){var l;return c||(l=u.map(function(h){return h.next()}),c=r?l.every(function(h){return h.done}):l.some(function(h){return h.done})),c?Ie():re(o,f++,t.apply(null,l.map(function(h){return h.value})))})},i}function J(e,t){return e===t?e:Au(e)?t:e.constructor(t)}function Q1(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function gh(e){return Q(e)?Bt:rt(e)?Hr:Wi}function gn(e){return Object.create((Q(e)?dr:rt(e)?Ut:Hi).prototype)}function yh(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):De.prototype.cacheResult.call(this)}function ew(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function yn(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function po(e,t){if(!e)throw new Error(t)}function mt(e){po(e!==1/0,"Cannot perform this action with an infinite size.")}function tw(e){if(nh(e)&&typeof e!="string")return e;if(Zt(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}var a3=Object.prototype.toString;function bh(e){if(!e||typeof e!="object"||a3.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t,r=Object.getPrototypeOf(t);r!==null;)n=r,r=Object.getPrototypeOf(n);return n===t}function _r(e){return typeof e=="object"&&(zt(e)||Array.isArray(e)||bh(e))}function _o(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function nw(e,t){return zt(e)?e.has(t):_r(e)&&Gi.call(e,t)}function mh(e,t,n){return zt(e)?e.get(t,n):nw(e,t)?typeof e.get=="function"?e.get(t):e[t]:n}function Nu(e){if(Array.isArray(e))return yn(e);var t={};for(var n in e)Gi.call(e,n)&&(t[n]=e[n]);return t}function rw(e,t){if(!_r(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(zt(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!Gi.call(e,t))return e;var n=Nu(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function iw(e,t,n){if(!_r(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(zt(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(Gi.call(e,t)&&n===e[t])return e;var r=Nu(e);return r[t]=n,r}function Yr(e,t,n,r){r||(r=n,n=void 0);var i=sw(zt(e),e,tw(t),0,n,r);return i===j?n:i}function sw(e,t,n,r,i,s){var o=t===j;if(r===n.length){var a=o?i:t,u=s(a);return u===a?t:u}if(!o&&!_r(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(n).slice(0,r).map(_o)+"]: "+t);var f=n[r],c=o?j:mh(t,f,j),l=sw(c===j?e:zt(c),c,n,r+1,i,s);return l===c?t:l===j?rw(t,f):iw(o?e?bn():{}:t,f,l)}function ow(e,t,n){return Yr(e,t,j,function(){return n})}function wh(e,t){return ow(this,e,t)}function aw(e,t){return Yr(e,t,function(){return j})}function Ah(e){return aw(this,e)}function Oh(e,t,n,r){return Yr(e,[t],n,r)}function Eh(e,t,n){return arguments.length===1?e(this):Oh(this,e,t,n)}function Sh(e,t,n){return Yr(this,e,t,n)}function uw(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return cw(this,e)}function fw(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return cw(this,t,e)}function cw(e,t,n){for(var r=[],i=0;i<t.length;i++){var s=Bt(t[i]);s.size!==0&&r.push(s)}return r.length===0?e:e.toSeq().size===0&&!e.__ownerID&&r.length===1?hr(e)?e:e.constructor(r[0]):e.withMutations(function(o){for(var a=n?function(f,c){Oh(o,c,j,function(l){return l===j?f:n(l,f,c)})}:function(f,c){o.set(c,f)},u=0;u<r.length;u++)r[u].forEach(a)})}function u3(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return go(e,t)}function f3(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return go(t,n,e)}function c3(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return vo(e,t)}function l3(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return vo(t,n,e)}function vo(e,t,n){return go(e,t,h3(n))}function go(e,t,n){if(!_r(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(zt(e))return typeof n=="function"&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,s=r?Hr:Bt,o=r?function(u){i===e&&(i=Nu(i)),i.push(u)}:function(u,f){var c=Gi.call(i,f),l=c&&n?n(i[f],u,f):u;(!c||l!==i[f])&&(i===e&&(i=Nu(i)),i[f]=l)},a=0;a<t.length;a++)s(t[a]).forEach(o);return i}function h3(e){function t(n,r,i){return _r(n)&&_r(r)&&p3(n,r)?go(n,[r],t):e?e(n,r,i):r}return t}function p3(e,t){var n=De(e),r=De(t);return rt(n)===rt(r)&&Q(n)===Q(r)}function lw(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return vo(this,e)}function hw(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return vo(this,t,e)}function xh(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Yr(this,e,bn(),function(r){return go(r,t)})}function Th(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Yr(this,e,bn(),function(r){return vo(r,t)})}function yo(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function bo(){return this.__ownerID?this:this.__ensureOwner(new Zl)}function mo(){return this.__ensureOwner()}function Rh(){return this.__altered}var Xr=function(e){function t(n){return n==null?bn():Su(n)&&!Zt(n)?n:bn().withMutations(function(r){var i=e(n);mt(i.size),i.forEach(function(s,o){return r.set(o,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(r,i){return this._root?this._root.get(0,void 0,r,i):i},t.prototype.set=function(r,i){return _w(this,r,i)},t.prototype.remove=function(r){return _w(this,r,j)},t.prototype.deleteAll=function(r){var i=Oe(r);return i.size===0?this:this.withMutations(function(s){i.forEach(function(o){return s.remove(o)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):bn()},t.prototype.sort=function(r){return mn(Yi(this,r))},t.prototype.sortBy=function(r,i){return mn(Yi(this,i,r))},t.prototype.map=function(r,i){var s=this;return this.withMutations(function(o){o.forEach(function(a,u){o.set(u,r.call(i,a,u,s))})})},t.prototype.__iterator=function(r,i){return new d3(this,r,i)},t.prototype.__iterate=function(r,i){var s=this,o=0;return this._root&&this._root.iterate(function(a){return o++,r(a[1],a[0],s)},i),o},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?Nh(this.size,this._root,r,this.__hash):this.size===0?bn():(this.__ownerID=r,this.__altered=!1,this)},t}(Bt);Xr.isMap=Su;var ie=Xr.prototype;ie[F1]=!0,ie[fo]=ie.remove,ie.removeAll=ie.deleteAll,ie.setIn=wh,ie.removeIn=ie.deleteIn=Ah,ie.update=Eh,ie.updateIn=Sh,ie.merge=ie.concat=uw,ie.mergeWith=fw,ie.mergeDeep=lw,ie.mergeDeepWith=hw,ie.mergeIn=xh,ie.mergeDeepIn=Th,ie.withMutations=yo,ie.wasAltered=Rh,ie.asImmutable=mo,ie["@@transducer/init"]=ie.asMutable=bo,ie["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},ie["@@transducer/result"]=function(e){return e.asImmutable()};var wo=function(t,n){this.ownerID=t,this.entries=n};wo.prototype.get=function(t,n,r,i){for(var s=this.entries,o=0,a=s.length;o<a;o++)if(Ee(r,s[o][0]))return s[o][1];return i},wo.prototype.update=function(t,n,r,i,s,o,a){for(var u=s===j,f=this.entries,c=0,l=f.length;c<l&&!Ee(i,f[c][0]);c++);var h=c<l;if(h?f[c][1]===s:u)return this;if(Ft(a),(u||!h)&&Ft(o),!(u&&f.length===1)){if(!h&&!u&&f.length>=m3)return _3(t,f,i,s);var d=t&&t===this.ownerID,_=d?f:yn(f);return h?u?c===l-1?_.pop():_[c]=_.pop():_[c]=[i,s]:_.push([i,s]),d?(this.entries=_,this):new wo(t,_)}};var Xi=function(t,n,r){this.ownerID=t,this.bitmap=n,this.nodes=r};Xi.prototype.get=function(t,n,r,i){n===void 0&&(n=it(r));var s=1<<((t===0?n:n>>>t)&Ke),o=this.bitmap;return(o&s)===0?i:this.nodes[gw(o&s-1)].get(t+X,n,r,i)},Xi.prototype.update=function(t,n,r,i,s,o,a){r===void 0&&(r=it(i));var u=(n===0?r:r>>>n)&Ke,f=1<<u,c=this.bitmap,l=(c&f)!==0;if(!l&&s===j)return this;var h=gw(c&f-1),d=this.nodes,_=l?d[h]:void 0,v=Mh(_,t,n+X,r,i,s,o,a);if(v===_)return this;if(!l&&v&&d.length>=w3)return g3(t,d,c,u,v);if(l&&!v&&d.length===2&&vw(d[h^1]))return d[h^1];if(l&&v&&d.length===1&&vw(v))return v;var g=t&&t===this.ownerID,y=l?v?c:c^f:c|f,b=l?v?yw(d,h,v,g):b3(d,h,g):y3(d,h,v,g);return g?(this.bitmap=y,this.nodes=b,this):new Xi(t,y,b)};var Ao=function(t,n,r){this.ownerID=t,this.count=n,this.nodes=r};Ao.prototype.get=function(t,n,r,i){n===void 0&&(n=it(r));var s=(t===0?n:n>>>t)&Ke,o=this.nodes[s];return o?o.get(t+X,n,r,i):i},Ao.prototype.update=function(t,n,r,i,s,o,a){r===void 0&&(r=it(i));var u=(n===0?r:r>>>n)&Ke,f=s===j,c=this.nodes,l=c[u];if(f&&!l)return this;var h=Mh(l,t,n+X,r,i,s,o,a);if(h===l)return this;var d=this.count;if(!l)d++;else if(!h&&(d--,d<A3))return v3(t,c,d,u);var _=t&&t===this.ownerID,v=yw(c,u,h,_);return _?(this.count=d,this.nodes=v,this):new Ao(t,d,v)};var Ji=function(t,n,r){this.ownerID=t,this.keyHash=n,this.entries=r};Ji.prototype.get=function(t,n,r,i){for(var s=this.entries,o=0,a=s.length;o<a;o++)if(Ee(r,s[o][0]))return s[o][1];return i},Ji.prototype.update=function(t,n,r,i,s,o,a){r===void 0&&(r=it(i));var u=s===j;if(r!==this.keyHash)return u?this:(Ft(a),Ft(o),$h(this,t,n,r,[i,s]));for(var f=this.entries,c=0,l=f.length;c<l&&!Ee(i,f[c][0]);c++);var h=c<l;if(h?f[c][1]===s:u)return this;if(Ft(a),(u||!h)&&Ft(o),u&&l===2)return new Vn(t,this.keyHash,f[c^1]);var d=t&&t===this.ownerID,_=d?f:yn(f);return h?u?c===l-1?_.pop():_[c]=_.pop():_[c]=[i,s]:_.push([i,s]),d?(this.entries=_,this):new Ji(t,this.keyHash,_)};var Vn=function(t,n,r){this.ownerID=t,this.keyHash=n,this.entry=r};Vn.prototype.get=function(t,n,r,i){return Ee(r,this.entry[0])?this.entry[1]:i},Vn.prototype.update=function(t,n,r,i,s,o,a){var u=s===j,f=Ee(i,this.entry[0]);if(f?s===this.entry[1]:u)return this;if(Ft(a),u){Ft(o);return}return f?t&&t===this.ownerID?(this.entry[1]=s,this):new Vn(t,this.keyHash,[i,s]):(Ft(o),$h(this,t,n,it(i),[i,s]))},wo.prototype.iterate=Ji.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1},Xi.prototype.iterate=Ao.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var s=n[t?i-r:r];if(s&&s.iterate(e,t)===!1)return!1}},Vn.prototype.iterate=function(e,t){return e(this.entry)};var d3=function(e){function t(n,r,i){this._type=r,this._reverse=i,this._stack=n._root&&pw(n._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var r=this._type,i=this._stack;i;){var s=i.node,o=i.index++,a=void 0;if(s.entry){if(o===0)return Ph(r,s.entry)}else if(s.entries){if(a=s.entries.length-1,o<=a)return Ph(r,s.entries[this._reverse?a-o:o])}else if(a=s.nodes.length-1,o<=a){var u=s.nodes[this._reverse?a-o:o];if(u){if(u.entry)return Ph(r,u.entry);i=this._stack=pw(u,i)}continue}i=this._stack=this._stack.__prev}return Ie()},t}(B);function Ph(e,t){return re(e,t[0],t[1])}function pw(e,t){return{node:e,index:0,__prev:t}}function Nh(e,t,n,r){var i=Object.create(ie);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var dw;function bn(){return dw||(dw=Nh(0))}function _w(e,t,n){var r,i;if(e._root){var s=Jl(),o=Jl();if(r=Mh(e._root,e.__ownerID,0,void 0,t,n,s,o),!o.value)return e;i=e.size+(s.value?n===j?-1:1:0)}else{if(n===j)return e;i=1,r=new wo(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Nh(i,r):bn()}function Mh(e,t,n,r,i,s,o,a){return e?e.update(t,n,r,i,s,o,a):s===j?e:(Ft(a),Ft(o),new Vn(t,r,[i,s]))}function vw(e){return e.constructor===Vn||e.constructor===Ji}function $h(e,t,n,r,i){if(e.keyHash===r)return new Ji(t,r,[e.entry,i]);var s=(n===0?e.keyHash:e.keyHash>>>n)&Ke,o=(n===0?r:r>>>n)&Ke,a,u=s===o?[$h(e,t,n+X,r,i)]:(a=new Vn(t,r,i),s<o?[e,a]:[a,e]);return new Xi(t,1<<s|1<<o,u)}function _3(e,t,n,r){e||(e=new Zl);for(var i=new Vn(e,it(n),[n,r]),s=0;s<t.length;s++){var o=t[s];i=i.update(e,0,void 0,o[0],o[1])}return i}function v3(e,t,n,r){for(var i=0,s=0,o=new Array(n),a=0,u=1,f=t.length;a<f;a++,u<<=1){var c=t[a];c!==void 0&&a!==r&&(i|=u,o[s++]=c)}return new Xi(e,i,o)}function g3(e,t,n,r,i){for(var s=0,o=new Array(gt),a=0;n!==0;a++,n>>>=1)o[a]=n&1?t[s++]:void 0;return o[r]=i,new Ao(e,s+1,o)}function gw(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function yw(e,t,n,r){var i=r?e:yn(e);return i[t]=n,i}function y3(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var s=new Array(i),o=0,a=0;a<i;a++)a===t?(s[a]=n,o=-1):s[a]=e[a+o];return s}function b3(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),s=0,o=0;o<r;o++)o===t&&(s=1),i[o]=e[o+s];return i}var m3=gt/4,w3=gt/2,A3=gt/4,bw="@@__IMMUTABLE_LIST__@@";function Ih(e){return!!(e&&e[bw])}var Oo=function(e){function t(n){var r=Mu();if(n==null)return r;if(Ih(n))return n;var i=e(n),s=i.size;return s===0?r:(mt(s),s>0&&s<gt?So(0,s,X,null,new vr(i.toArray())):r.withMutations(function(o){o.setSize(s),i.forEach(function(a,u){return o.set(u,a)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(r,i){if(r=lr(this,r),r>=0&&r<this.size){r+=this._origin;var s=ww(this,r);return s&&s.array[r&Ke]}return i},t.prototype.set=function(r,i){return O3(this,r,i)},t.prototype.remove=function(r){return this.has(r)?r===0?this.shift():r===this.size-1?this.pop():this.splice(r,1):this},t.prototype.insert=function(r,i){return this.splice(r,0,i)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=X,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Mu()},t.prototype.push=function(){var r=arguments,i=this.size;return this.withMutations(function(s){gr(s,0,i+r.length);for(var o=0;o<r.length;o++)s.set(i+o,r[o])})},t.prototype.pop=function(){return gr(this,0,-1)},t.prototype.unshift=function(){var r=arguments;return this.withMutations(function(i){gr(i,-r.length);for(var s=0;s<r.length;s++)i.set(s,r[s])})},t.prototype.shift=function(){return gr(this,1)},t.prototype.shuffle=function(r){return r===void 0&&(r=Math.random),this.withMutations(function(i){for(var s=i.size,o,a;s;)o=Math.floor(r()*s--),a=i.get(o),i.set(o,i.get(s)),i.set(s,a)})},t.prototype.concat=function(){for(var r=arguments,i=[],s=0;s<arguments.length;s++){var o=r[s],a=e(typeof o!="string"&&eh(o)?o:[o]);a.size!==0&&i.push(a)}return i.length===0?this:this.size===0&&!this.__ownerID&&i.length===1?this.constructor(i[0]):this.withMutations(function(u){i.forEach(function(f){return f.forEach(function(c){return u.push(c)})})})},t.prototype.setSize=function(r){return gr(this,0,r)},t.prototype.map=function(r,i){var s=this;return this.withMutations(function(o){for(var a=0;a<s.size;a++)o.set(a,r.call(i,o.get(a),a,s))})},t.prototype.slice=function(r,i){var s=this.size;return co(r,i,s)?this:gr(this,Vi(r,s),lo(i,s))},t.prototype.__iterator=function(r,i){var s=i?this.size:0,o=mw(this,i);return new B(function(){var a=o();return a===Eo?Ie():re(r,i?--s:s++,a)})},t.prototype.__iterate=function(r,i){for(var s=i?this.size:0,o=mw(this,i),a;(a=o())!==Eo&&r(a,i?--s:s++,this)!==!1;);return s},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?So(this._origin,this._capacity,this._level,this._root,this._tail,r,this.__hash):this.size===0?Mu():(this.__ownerID=r,this.__altered=!1,this)},t}(Hr);Oo.isList=Ih;var pe=Oo.prototype;pe[bw]=!0,pe[fo]=pe.remove,pe.merge=pe.concat,pe.setIn=wh,pe.deleteIn=pe.removeIn=Ah,pe.update=Eh,pe.updateIn=Sh,pe.mergeIn=xh,pe.mergeDeepIn=Th,pe.withMutations=yo,pe.wasAltered=Rh,pe.asImmutable=mo,pe["@@transducer/init"]=pe.asMutable=bo,pe["@@transducer/step"]=function(e,t){return e.push(t)},pe["@@transducer/result"]=function(e){return e.asImmutable()};var vr=function(t,n){this.array=t,this.ownerID=n};vr.prototype.removeBefore=function(t,n,r){if((r&(1<<n+X)-1)===0||this.array.length===0)return this;var i=r>>>n&Ke;if(i>=this.array.length)return new vr([],t);var s=i===0,o;if(n>0){var a=this.array[i];if(o=a&&a.removeBefore(t,n-X,r),o===a&&s)return this}if(s&&!o)return this;var u=Zi(this,t);if(!s)for(var f=0;f<i;f++)u.array[f]=void 0;return o&&(u.array[i]=o),u},vr.prototype.removeAfter=function(t,n,r){if(r===(n?1<<n+X:gt)||this.array.length===0)return this;var i=r-1>>>n&Ke;if(i>=this.array.length)return this;var s;if(n>0){var o=this.array[i];if(s=o&&o.removeAfter(t,n-X,r),s===o&&i===this.array.length-1)return this}var a=Zi(this,t);return a.array.splice(i+1),s&&(a.array[i]=s),a};var Eo={};function mw(e,t){var n=e._origin,r=e._capacity,i=xo(r),s=e._tail;return o(e._root,e._level,0);function o(f,c,l){return c===0?a(f,l):u(f,c,l)}function a(f,c){var l=c===i?s&&s.array:f&&f.array,h=c>n?0:n-c,d=r-c;return d>gt&&(d=gt),function(){if(h===d)return Eo;var _=t?--d:h++;return l&&l[_]}}function u(f,c,l){var h,d=f&&f.array,_=l>n?0:n-l>>c,v=(r-l>>c)+1;return v>gt&&(v=gt),function(){for(;;){if(h){var g=h();if(g!==Eo)return g;h=null}if(_===v)return Eo;var y=t?--v:_++;h=o(d&&d[y],c-X,l+(y<<c))}}}}function So(e,t,n,r,i,s,o){var a=Object.create(pe);return a.size=t-e,a._origin=e,a._capacity=t,a._level=n,a._root=r,a._tail=i,a.__ownerID=s,a.__hash=o,a.__altered=!1,a}function Mu(){return So(0,0,X)}function O3(e,t,n){if(t=lr(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(o){t<0?gr(o,t).set(0,n):gr(o,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,s=Jl();return t>=xo(e._capacity)?r=Dh(r,e.__ownerID,0,t,n,s):i=Dh(i,e.__ownerID,e._level,t,n,s),s.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):So(e._origin,e._capacity,e._level,i,r):e}function Dh(e,t,n,r,i,s){var o=r>>>n&Ke,a=e&&o<e.array.length;if(!a&&i===void 0)return e;var u;if(n>0){var f=e&&e.array[o],c=Dh(f,t,n-X,r,i,s);return c===f?e:(u=Zi(e,t),u.array[o]=c,u)}return a&&e.array[o]===i?e:(s&&Ft(s),u=Zi(e,t),i===void 0&&o===u.array.length-1?u.array.pop():u.array[o]=i,u)}function Zi(e,t){return t&&e&&t===e.ownerID?e:new vr(e?e.array.slice():[],t)}function ww(e,t){if(t>=xo(e._capacity))return e._tail;if(t<1<<e._level+X){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&Ke],r-=X;return n}}function gr(e,t,n){t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new Zl,i=e._origin,s=e._capacity,o=i+t,a=n===void 0?s:n<0?s+n:i+n;if(o===i&&a===s)return e;if(o>=a)return e.clear();for(var u=e._level,f=e._root,c=0;o+c<0;)f=new vr(f&&f.array.length?[void 0,f]:[],r),u+=X,c+=1<<u;c&&(o+=c,i+=c,a+=c,s+=c);for(var l=xo(s),h=xo(a);h>=1<<u+X;)f=new vr(f&&f.array.length?[f]:[],r),u+=X;var d=e._tail,_=h<l?ww(e,a-1):h>l?new vr([],r):d;if(d&&h>l&&o<s&&d.array.length){f=Zi(f,r);for(var v=f,g=u;g>X;g-=X){var y=l>>>g&Ke;v=v.array[y]=Zi(v.array[y],r)}v.array[l>>>X&Ke]=d}if(a<s&&(_=_&&_.removeAfter(r,0,a)),o>=h)o-=h,a-=h,u=X,f=null,_=_&&_.removeBefore(r,0,o);else if(o>i||h<l){for(c=0;f;){var b=o>>>u&Ke;if(b!==h>>>u&Ke)break;b&&(c+=(1<<u)*b),u-=X,f=f.array[b]}f&&o>i&&(f=f.removeBefore(r,u,o-c)),f&&h<l&&(f=f.removeAfter(r,u,h-c)),c&&(o-=c,a-=c)}return e.__ownerID?(e.size=a-o,e._origin=o,e._capacity=a,e._level=u,e._root=f,e._tail=_,e.__hash=void 0,e.__altered=!0,e):So(o,a,u,f,_)}function xo(e){return e<gt?0:e-1>>>X<<X}var mn=function(e){function t(n){return n==null?To():ah(n)?n:To().withMutations(function(r){var i=Bt(n);mt(i.size),i.forEach(function(s,o){return r.set(o,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(r,i){var s=this._map.get(r);return s!==void 0?this._list.get(s)[1]:i},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):To()},t.prototype.set=function(r,i){return Ow(this,r,i)},t.prototype.remove=function(r){return Ow(this,r,j)},t.prototype.__iterate=function(r,i){var s=this;return this._list.__iterate(function(o){return o&&r(o[1],o[0],s)},i)},t.prototype.__iterator=function(r,i){return this._list.fromEntrySeq().__iterator(r,i)},t.prototype.__ensureOwner=function(r){if(r===this.__ownerID)return this;var i=this._map.__ensureOwner(r),s=this._list.__ensureOwner(r);return r?Ch(i,s,r,this.__hash):this.size===0?To():(this.__ownerID=r,this.__altered=!1,this._map=i,this._list=s,this)},t}(Xr);mn.isOrderedMap=ah,mn.prototype[pr]=!0,mn.prototype[fo]=mn.prototype.remove;function Ch(e,t,n,r){var i=Object.create(mn.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var Aw;function To(){return Aw||(Aw=Ch(bn(),Mu()))}function Ow(e,t,n){var r=e._map,i=e._list,s=r.get(t),o=s!==void 0,a,u;if(n===j){if(!o)return e;i.size>=gt&&i.size>=r.size*2?(u=i.filter(function(f,c){return f!==void 0&&s!==c}),a=u.toKeyedSeq().map(function(f){return f[0]}).flip().toMap(),e.__ownerID&&(a.__ownerID=u.__ownerID=e.__ownerID)):(a=r.remove(t),u=s===i.size-1?i.pop():i.set(s,void 0))}else if(o){if(n===i.get(s)[1])return e;a=r,u=i.set(s,[t,n])}else a=r.set(t,i.size),u=i.set(i.size,[t,n]);return e.__ownerID?(e.size=a.size,e._map=a,e._list=u,e.__hash=void 0,e.__altered=!0,e):Ch(a,u)}var Ew="@@__IMMUTABLE_STACK__@@";function $u(e){return!!(e&&e[Ew])}var Iu=function(e){function t(n){return n==null?Du():$u(n)?n:Du().pushAll(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(r,i){var s=this._head;for(r=lr(this,r);s&&r--;)s=s.next;return s?s.value:i},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var r=arguments;if(arguments.length===0)return this;for(var i=this.size+arguments.length,s=this._head,o=arguments.length-1;o>=0;o--)s={value:r[o],next:s};return this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):Ro(i,s)},t.prototype.pushAll=function(r){if(r=e(r),r.size===0)return this;if(this.size===0&&$u(r))return r;mt(r.size);var i=this.size,s=this._head;return r.__iterate(function(o){i++,s={value:o,next:s}},!0),this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):Ro(i,s)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Du()},t.prototype.slice=function(r,i){if(co(r,i,this.size))return this;var s=Vi(r,this.size),o=lo(i,this.size);if(o!==this.size)return e.prototype.slice.call(this,r,i);for(var a=this.size-s,u=this._head;s--;)u=u.next;return this.__ownerID?(this.size=a,this._head=u,this.__hash=void 0,this.__altered=!0,this):Ro(a,u)},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?Ro(this.size,this._head,r,this.__hash):this.size===0?Du():(this.__ownerID=r,this.__altered=!1,this)},t.prototype.__iterate=function(r,i){var s=this;if(i)return new Ki(this.toArray()).__iterate(function(u,f){return r(u,f,s)},i);for(var o=0,a=this._head;a&&r(a.value,o++,this)!==!1;)a=a.next;return o},t.prototype.__iterator=function(r,i){if(i)return new Ki(this.toArray()).__iterator(r,i);var s=0,o=this._head;return new B(function(){if(o){var a=o.value;return o=o.next,re(r,s++,a)}return Ie()})},t}(Hr);Iu.isStack=$u;var Ye=Iu.prototype;Ye[Ew]=!0,Ye.shift=Ye.pop,Ye.unshift=Ye.push,Ye.unshiftAll=Ye.pushAll,Ye.withMutations=yo,Ye.wasAltered=Rh,Ye.asImmutable=mo,Ye["@@transducer/init"]=Ye.asMutable=bo,Ye["@@transducer/step"]=function(e,t){return e.unshift(t)},Ye["@@transducer/result"]=function(e){return e.asImmutable()};function Ro(e,t,n,r){var i=Object.create(Ye);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var Sw;function Du(){return Sw||(Sw=Ro(0))}var xw="@@__IMMUTABLE_SET__@@";function Cu(e){return!!(e&&e[xw])}function Lh(e){return Cu(e)&&Zt(e)}function jh(e,t){if(e===t)return!0;if(!nt(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||Q(e)!==Q(t)||rt(e)!==rt(t)||Zt(e)!==Zt(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!wu(e);if(Zt(e)){var r=e.entries();return t.every(function(u,f){var c=r.next().value;return c&&Ee(c[1],u)&&(n||Ee(c[0],f))})&&r.next().done}var i=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{i=!0;var s=e;e=t,t=s}var o=!0,a=t.__iterate(function(u,f){if(n?!e.has(u):i?!Ee(u,e.get(f,j)):!Ee(e.get(f,j),u))return o=!1,!1});return o&&e.size===a}function Jr(e,t){var n=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Lu(e){if(!e||typeof e!="object")return e;if(!nt(e)){if(!_r(e))return e;e=De(e)}if(Q(e)){var t={};return e.__iterate(function(r,i){t[i]=Lu(r)}),t}var n=[];return e.__iterate(function(r){n.push(Lu(r))}),n}var Po=function(e){function t(n){return n==null?No():Cu(n)&&!Zt(n)?n:No().withMutations(function(r){var i=e(n);mt(i.size),i.forEach(function(s){return r.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(r){return this(Bt(r).keySeq())},t.intersect=function(r){return r=Oe(r).toArray(),r.length?Ne.intersect.apply(t(r.pop()),r):No()},t.union=function(r){return r=Oe(r).toArray(),r.length?Ne.union.apply(t(r.pop()),r):No()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(r){return this._map.has(r)},t.prototype.add=function(r){return ju(this,this._map.set(r,r))},t.prototype.remove=function(r){return ju(this,this._map.remove(r))},t.prototype.clear=function(){return ju(this,this._map.clear())},t.prototype.map=function(r,i){var s=this,o=!1,a=ju(this,this._map.mapEntries(function(u){var f=u[1],c=r.call(i,f,f,s);return c!==f&&(o=!0),[c,c]},i));return o?a:this},t.prototype.union=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return r=r.filter(function(s){return s.size!==0}),r.length===0?this:this.size===0&&!this.__ownerID&&r.length===1?this.constructor(r[0]):this.withMutations(function(s){for(var o=0;o<r.length;o++)typeof r[o]=="string"?s.add(r[o]):e(r[o]).forEach(function(a){return s.add(a)})})},t.prototype.intersect=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];if(r.length===0)return this;r=r.map(function(o){return e(o)});var s=[];return this.forEach(function(o){r.every(function(a){return a.includes(o)})||s.push(o)}),this.withMutations(function(o){s.forEach(function(a){o.remove(a)})})},t.prototype.subtract=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];if(r.length===0)return this;r=r.map(function(o){return e(o)});var s=[];return this.forEach(function(o){r.some(function(a){return a.includes(o)})&&s.push(o)}),this.withMutations(function(o){s.forEach(function(a){o.remove(a)})})},t.prototype.sort=function(r){return ts(Yi(this,r))},t.prototype.sortBy=function(r,i){return ts(Yi(this,i,r))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(r,i){var s=this;return this._map.__iterate(function(o){return r(o,o,s)},i)},t.prototype.__iterator=function(r,i){return this._map.__iterator(r,i)},t.prototype.__ensureOwner=function(r){if(r===this.__ownerID)return this;var i=this._map.__ensureOwner(r);return r?this.__make(i,r):this.size===0?this.__empty():(this.__ownerID=r,this._map=i,this)},t}(Wi);Po.isSet=Cu;var Ne=Po.prototype;Ne[xw]=!0,Ne[fo]=Ne.remove,Ne.merge=Ne.concat=Ne.union,Ne.withMutations=yo,Ne.asImmutable=mo,Ne["@@transducer/init"]=Ne.asMutable=bo,Ne["@@transducer/step"]=function(e,t){return e.add(t)},Ne["@@transducer/result"]=function(e){return e.asImmutable()},Ne.__empty=No,Ne.__make=Tw;function ju(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function Tw(e,t){var n=Object.create(Ne);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var Rw;function No(){return Rw||(Rw=Tw(bn()))}var Pw=function(e){function t(n,r,i){if(i===void 0&&(i=1),!(this instanceof t))return new t(n,r,i);if(po(i!==0,"Cannot step a Range by 0"),po(n!==void 0,"You must define a start value when using Range"),po(r!==void 0,"You must define an end value when using Range"),i=Math.abs(i),r<n&&(i=-i),this._start=n,this._end=r,this._step=i,this.size=Math.max(0,Math.ceil((r-n)/i-1)+1),this.size===0){if(Fh)return Fh;Fh=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},t.prototype.get=function(r,i){return this.has(r)?this._start+lr(this,r)*this._step:i},t.prototype.includes=function(r){var i=(r-this._start)/this._step;return i>=0&&i<this.size&&i===Math.floor(i)},t.prototype.slice=function(r,i){return co(r,i,this.size)?this:(r=Vi(r,this.size),i=lo(i,this.size),i<=r?new t(0,0):new t(this.get(r,this._end),this.get(i,this._end),this._step))},t.prototype.indexOf=function(r){var i=r-this._start;if(i%this._step===0){var s=i/this._step;if(s>=0&&s<this.size)return s}return-1},t.prototype.lastIndexOf=function(r){return this.indexOf(r)},t.prototype.__iterate=function(r,i){for(var s=this.size,o=this._step,a=i?this._start+(s-1)*o:this._start,u=0;u!==s&&r(a,i?s-++u:u++,this)!==!1;)a+=i?-o:o;return u},t.prototype.__iterator=function(r,i){var s=this.size,o=this._step,a=i?this._start+(s-1)*o:this._start,u=0;return new B(function(){if(u===s)return Ie();var f=a;return a+=i?-o:o,re(r,i?s-++u:u++,f)})},t.prototype.equals=function(r){return r instanceof t?this._start===r._start&&this._end===r._end&&this._step===r._step:jh(this,r)},t}(Ut),Fh;function Bh(e,t,n){for(var r=tw(t),i=0;i!==r.length;)if(e=mh(e,r[i++],j),e===j)return n;return e}function Nw(e,t){return Bh(this,e,t)}function Mw(e,t){return Bh(e,t,j)!==j}function E3(e){return Mw(this,e)}function $w(){mt(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}Oe.Iterator=B,Jr(Oe,{toArray:function(){mt(this.size);var t=new Array(this.size||0),n=Q(this),r=0;return this.__iterate(function(i,s){t[r++]=n?[s,i]:i}),t},toIndexedSeq:function(){return new W1(this)},toJS:function(){return Lu(this)},toKeyedSeq:function(){return new Tu(this,!0)},toMap:function(){return Xr(this.toKeyedSeq())},toObject:$w,toOrderedMap:function(){return mn(this.toKeyedSeq())},toOrderedSet:function(){return ts(Q(this)?this.valueSeq():this)},toSet:function(){return Po(Q(this)?this.valueSeq():this)},toSetSeq:function(){return new q1(this)},toSeq:function(){return rt(this)?this.toIndexedSeq():Q(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Iu(Q(this)?this.valueSeq():this)},toList:function(){return Oo(Q(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,n){return this.size===0?t+n:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+n},concat:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return J(this,i3(this,t))},includes:function(t){return this.some(function(n){return Ee(n,t)})},entries:function(){return this.__iterator(bt)},every:function(t,n){mt(this.size);var r=!0;return this.__iterate(function(i,s,o){if(!t.call(n,i,s,o))return r=!1,!1}),r},filter:function(t,n){return J(this,Y1(this,t,n,!0))},partition:function(t,n){return t3(this,t,n)},find:function(t,n,r){var i=this.findEntry(t,n);return i?i[1]:r},forEach:function(t,n){return mt(this.size),this.__iterate(n?t.bind(n):t)},join:function(t){mt(this.size),t=t!==void 0?""+t:",";var n="",r=!0;return this.__iterate(function(i){r?r=!1:n+=t,n+=i!=null?i.toString():""}),n},keys:function(){return this.__iterator(qi)},map:function(t,n){return J(this,K1(this,t,n))},reduce:function(t,n,r){return Iw(this,t,n,r,arguments.length<2,!1)},reduceRight:function(t,n,r){return Iw(this,t,n,r,arguments.length<2,!0)},reverse:function(){return J(this,_h(this,!0))},slice:function(t,n){return J(this,vh(this,t,n,!0))},some:function(t,n){mt(this.size);var r=!1;return this.__iterate(function(i,s,o){if(t.call(n,i,s,o))return r=!0,!1}),r},sort:function(t){return J(this,Yi(this,t))},values:function(){return this.__iterator(yt)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,n){return ki(t?this.toSeq().filter(t,n):this)},countBy:function(t,n){return QL(this,t,n)},equals:function(t){return jh(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Ki(t._cache);var n=t.toSeq().map(x3).toIndexedSeq();return n.fromEntrySeq=function(){return t.toSeq()},n},filterNot:function(t,n){return this.filter(zh(t),n)},findEntry:function(t,n,r){var i=r;return this.__iterate(function(s,o,a){if(t.call(n,s,o,a))return i=[o,s],!1}),i},findKey:function(t,n){var r=this.findEntry(t,n);return r&&r[0]},findLast:function(t,n,r){return this.toKeyedSeq().reverse().find(t,n,r)},findLastEntry:function(t,n,r){return this.toKeyedSeq().reverse().findEntry(t,n,r)},findLastKey:function(t,n){return this.toKeyedSeq().reverse().findKey(t,n)},first:function(t){return this.find(R1,null,t)},flatMap:function(t,n){return J(this,s3(this,t,n))},flatten:function(t){return J(this,J1(this,t,!0))},fromEntrySeq:function(){return new G1(this)},get:function(t,n){return this.find(function(r,i){return Ee(i,t)},void 0,n)},getIn:Nw,groupBy:function(t,n){return e3(this,t,n)},has:function(t){return this.get(t,j)!==j},hasIn:E3,isSubset:function(t){return t=typeof t.includes=="function"?t:Oe(t),this.every(function(n){return t.includes(n)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:Oe(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(n){return Ee(n,t)})},keySeq:function(){return this.toSeq().map(S3).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Ru(this,t)},maxBy:function(t,n){return Ru(this,n,t)},min:function(t){return Ru(this,t?Dw(t):Lw)},minBy:function(t,n){return Ru(this,n?Dw(n):Lw,t)},rest:function(){return this.slice(1)},skip:function(t){return t===0?this:this.slice(Math.max(0,t))},skipLast:function(t){return t===0?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,n){return J(this,X1(this,t,n,!0))},skipUntil:function(t,n){return this.skipWhile(zh(t),n)},sortBy:function(t,n){return J(this,Yi(this,n,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,n){return J(this,n3(this,t,n))},takeUntil:function(t,n){return this.takeWhile(zh(t),n)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=T3(this))}});var Ce=Oe.prototype;Ce[M1]=!0,Ce[Ou]=Ce.values,Ce.toJSON=Ce.toArray,Ce.__toStringMapper=_o,Ce.inspect=Ce.toSource=function(){return this.toString()},Ce.chain=Ce.flatMap,Ce.contains=Ce.includes,Jr(Bt,{flip:function(){return J(this,H1(this))},mapEntries:function(t,n){var r=this,i=0;return J(this,this.toSeq().map(function(s,o){return t.call(n,[o,s],i++,r)}).fromEntrySeq())},mapKeys:function(t,n){var r=this;return J(this,this.toSeq().flip().map(function(i,s){return t.call(n,i,s,r)}).flip())}});var Mo=Bt.prototype;Mo[bu]=!0,Mo[Ou]=Ce.entries,Mo.toJSON=$w,Mo.__toStringMapper=function(e,t){return _o(t)+": "+_o(e)},Jr(Hr,{toKeyedSeq:function(){return new Tu(this,!1)},filter:function(t,n){return J(this,Y1(this,t,n,!1))},findIndex:function(t,n){var r=this.findEntry(t,n);return r?r[0]:-1},indexOf:function(t){var n=this.keyOf(t);return n===void 0?-1:n},lastIndexOf:function(t){var n=this.lastKeyOf(t);return n===void 0?-1:n},reverse:function(){return J(this,_h(this,!1))},slice:function(t,n){return J(this,vh(this,t,n,!1))},splice:function(t,n){var r=arguments.length;if(n=Math.max(n||0,0),r===0||r===2&&!n)return this;t=Vi(t,t<0?this.count():this.size);var i=this.slice(0,t);return J(this,r===1?i:i.concat(yn(arguments,2),this.slice(t+n)))},findLastIndex:function(t,n){var r=this.findLastEntry(t,n);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return J(this,J1(this,t,!1))},get:function(t,n){return t=lr(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?n:this.find(function(r,i){return i===t},void 0,n)},has:function(t){return t=lr(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return J(this,o3(this,t))},interleave:function(){var t=[this].concat(yn(arguments)),n=Pu(this.toSeq(),Ut.of,t),r=n.flatten(!0);return n.size&&(r.size=n.size*t.length),J(this,r)},keySeq:function(){return Pw(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,n){return J(this,X1(this,t,n,!1))},zip:function(){var t=[this].concat(yn(arguments));return J(this,Pu(this,Cw,t))},zipAll:function(){var t=[this].concat(yn(arguments));return J(this,Pu(this,Cw,t,!0))},zipWith:function(t){var n=yn(arguments);return n[0]=this,J(this,Pu(this,t,n))}});var Qi=Hr.prototype;Qi[mu]=!0,Qi[pr]=!0,Jr(Wi,{get:function(t,n){return this.has(t)?t:n},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var es=Wi.prototype;es.has=Ce.includes,es.contains=es.includes,es.keys=es.values,Jr(dr,Mo),Jr(Ut,Qi),Jr(Hi,es);function Iw(e,t,n,r,i,s){return mt(e.size),e.__iterate(function(o,a,u){i?(i=!1,n=o):n=t.call(r,n,o,a,u)},s),n}function S3(e,t){return t}function x3(e,t){return[t,e]}function zh(e){return function(){return!e.apply(this,arguments)}}function Dw(e){return function(){return-e.apply(this,arguments)}}function Cw(){return yn(arguments)}function Lw(e,t){return e<t?1:e>t?-1:0}function T3(e){if(e.size===1/0)return 0;var t=Zt(e),n=Q(e),r=t?1:0;return e.__iterate(n?t?function(i,s){r=31*r+jw(it(i),it(s))|0}:function(i,s){r=r+jw(it(i),it(s))|0}:t?function(i){r=31*r+it(i)|0}:function(i){r=r+it(i)|0}),R3(e.size,r)}function R3(e,t){return t=ho(t,3432918353),t=ho(t<<15|t>>>-15,461845907),t=ho(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=ho(t^t>>>16,2246822507),t=ho(t^t>>>13,3266489909),t=xu(t^t>>>16),t}function jw(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var ts=function(e){function t(n){return n==null?Uh():Lh(n)?n:Uh().withMutations(function(r){var i=Wi(n);mt(i.size),i.forEach(function(s){return r.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(r){return this(Bt(r).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Po);ts.isOrderedSet=Lh;var Zr=ts.prototype;Zr[pr]=!0,Zr.zip=Qi.zip,Zr.zipWith=Qi.zipWith,Zr.zipAll=Qi.zipAll,Zr.__empty=Uh,Zr.__make=Fw;function Fw(e,t){var n=Object.create(Zr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var Bw;function Uh(){return Bw||(Bw=Fw(To()))}var P3={LeftThenRight:-1,RightThenLeft:1};function N3(e){if(hr(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(zt(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var _e=function(t,n){var r;N3(t);var i=function(a){var u=this;if(a instanceof i)return a;if(!(this instanceof i))return new i(a);if(!r){r=!0;var f=Object.keys(t),c=s._indices={};s._name=n,s._keys=f,s._defaultValues=t;for(var l=0;l<f.length;l++){var h=f[l];c[h]=l,s[h]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+Vh(this)+' with property "'+h+'" since that property name is part of the Record API.'):M3(s,h)}}return this.__ownerID=void 0,this._values=Oo().withMutations(function(d){d.setSize(u._keys.length),Bt(a).forEach(function(_,v){d.set(u._indices[v],_===u._defaultValues[v]?void 0:_)})}),this},s=i.prototype=Object.create(ee);return s.constructor=i,n&&(i.displayName=n),i};_e.prototype.toString=function(){for(var t=Vh(this)+" { ",n=this._keys,r,i=0,s=n.length;i!==s;i++)r=n[i],t+=(i?", ":"")+r+": "+_o(this.get(r));return t+" }"},_e.prototype.equals=function(t){return this===t||hr(t)&&ns(this).equals(ns(t))},_e.prototype.hashCode=function(){return ns(this).hashCode()},_e.prototype.has=function(t){return this._indices.hasOwnProperty(t)},_e.prototype.get=function(t,n){if(!this.has(t))return n;var r=this._indices[t],i=this._values.get(r);return i===void 0?this._defaultValues[t]:i},_e.prototype.set=function(t,n){if(this.has(t)){var r=this._values.set(this._indices[t],n===this._defaultValues[t]?void 0:n);if(r!==this._values&&!this.__ownerID)return kh(this,r)}return this},_e.prototype.remove=function(t){return this.set(t)},_e.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:kh(this,t)},_e.prototype.wasAltered=function(){return this._values.wasAltered()},_e.prototype.toSeq=function(){return ns(this)},_e.prototype.toJS=function(){return Lu(this)},_e.prototype.entries=function(){return this.__iterator(bt)},_e.prototype.__iterator=function(t,n){return ns(this).__iterator(t,n)},_e.prototype.__iterate=function(t,n){return ns(this).__iterate(t,n)},_e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var n=this._values.__ensureOwner(t);return t?kh(this,n,t):(this.__ownerID=t,this._values=n,this)},_e.isRecord=hr,_e.getDescriptiveName=Vh;var ee=_e.prototype;ee[I1]=!0,ee[fo]=ee.remove,ee.deleteIn=ee.removeIn=Ah,ee.getIn=Nw,ee.hasIn=Ce.hasIn,ee.merge=uw,ee.mergeWith=fw,ee.mergeIn=xh,ee.mergeDeep=lw,ee.mergeDeepWith=hw,ee.mergeDeepIn=Th,ee.setIn=wh,ee.update=Eh,ee.updateIn=Sh,ee.withMutations=yo,ee.asMutable=bo,ee.asImmutable=mo,ee[Ou]=ee.entries,ee.toJSON=ee.toObject=Ce.toObject,ee.inspect=ee.toSource=function(){return this.toString()};function kh(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function Vh(e){return e.constructor.displayName||e.constructor.name||"Record"}function ns(e){return sh(e._keys.map(function(t){return[t,e.get(t)]}))}function M3(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(n){po(this.__ownerID,"Cannot set on an immutable record."),this.set(t,n)}})}catch{}}var $3=function(e){function t(n,r){if(!(this instanceof t))return new t(n,r);if(this._value=n,this.size=r===void 0?1/0:Math.max(0,r),this.size===0){if(Wh)return Wh;Wh=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(r,i){return this.has(r)?this._value:i},t.prototype.includes=function(r){return Ee(this._value,r)},t.prototype.slice=function(r,i){var s=this.size;return co(r,i,s)?this:new t(this._value,lo(i,s)-Vi(r,s))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(r){return Ee(this._value,r)?0:-1},t.prototype.lastIndexOf=function(r){return Ee(this._value,r)?this.size:-1},t.prototype.__iterate=function(r,i){for(var s=this.size,o=0;o!==s&&r(this._value,i?s-++o:o++,this)!==!1;);return o},t.prototype.__iterator=function(r,i){var s=this,o=this.size,a=0;return new B(function(){return a===o?Ie():re(r,i?o-++a:a++,s._value)})},t.prototype.equals=function(r){return r instanceof t?Ee(this._value,r._value):jh(this,r)},t}(Ut),Wh;function I3(e,t){return zw([],t||D3,e,"",t&&t.length>2?[]:void 0,{"":e})}function zw(e,t,n,r,i,s){if(typeof n!="string"&&!zt(n)&&(nh(n)||eh(n)||bh(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),i&&r!==""&&i.push(r);var o=t.call(s,r,De(n).map(function(a,u){return zw(e,t,a,u,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),o}return n}function D3(e,t){return rt(t)?t.toList():Q(t)?t.toMap():t.toSet()}var C3="5.1.3",L3=Oe;const j3=Object.freeze(Object.defineProperty({__proto__:null,Collection:Oe,Iterable:L3,List:Oo,Map:Xr,OrderedMap:mn,OrderedSet:ts,PairSorting:P3,Range:Pw,Record:_e,Repeat:$3,Seq:De,Set:Po,Stack:Iu,fromJS:I3,get:mh,getIn:Bh,has:nw,hasIn:Mw,hash:it,is:Ee,isAssociative:wu,isCollection:nt,isImmutable:zt,isIndexed:rt,isKeyed:Q,isList:Ih,isMap:Su,isOrdered:Zt,isOrderedMap:ah,isOrderedSet:Lh,isPlainObject:bh,isRecord:hr,isSeq:Au,isSet:Cu,isStack:$u,isValueObject:uh,merge:u3,mergeDeep:c3,mergeDeepWith:l3,mergeWith:f3,remove:rw,removeIn:aw,set:iw,setIn:ow,update:Oh,updateIn:Yr,version:C3},Symbol.toStringTag,{value:"Module"}));function F3(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const B3=Object.freeze({}),z3=()=>{},Fu=Object.assign,U3=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},k3=Object.prototype.hasOwnProperty,Bu=(e,t)=>k3.call(e,t),Wn=Array.isArray,rs=e=>zu(e)==="[object Map]",V3=e=>zu(e)==="[object Set]",$o=e=>typeof e=="function",W3=e=>typeof e=="string",Io=e=>typeof e=="symbol",Qr=e=>e!==null&&typeof e=="object",q3=Object.prototype.toString,zu=e=>q3.call(e),Uw=e=>zu(e).slice(8,-1),G3=e=>zu(e)==="[object Object]",qh=e=>W3(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,H3=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})(e=>e.charAt(0).toUpperCase()+e.slice(1)),yr=(e,t)=>!Object.is(e,t),K3=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})};function st(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Le;class kw{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Le;try{return Le=this,t()}finally{Le=n}}else st("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=Le,Le=this)}off(){this._on>0&&--this._on===0&&(Le=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Y3(e){return new kw(e)}function Vw(){return Le}function X3(e,t=!1){Le?Le.cleanups.push(e):t||st("onScopeDispose() is called when there is no active effect scope to be associated with.")}let z;const J3={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",PAUSED:64,64:"PAUSED",EVALUATED:128,128:"EVALUATED"},Gh=new WeakSet;class Do{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Le&&Le.active&&Le.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Gh.has(this)&&(Gh.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qw(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Yw(this),Gw(this);const t=z,n=wt;z=this,wt=!0;try{return this.fn()}finally{z!==this&&st("Active effect was not restored correctly - this is likely a Vue internal bug."),Hw(this),z=t,wt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Xh(t);this.deps=this.depsTail=void 0,Yw(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Gh.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Yh(this)&&this.run()}get dirty(){return Yh(this)}}let Ww=0,Co,Lo;function qw(e,t=!1){if(e.flags|=8,t){e.next=Lo,Lo=e;return}e.next=Co,Co=e}function Hh(){Ww++}function Kh(){if(--Ww>0)return;if(Lo){let t=Lo;for(Lo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Co;){let t=Co;for(Co=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Gw(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Hw(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Xh(r),Z3(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Yh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Kw(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Kw(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===jo)||(e.globalVersion=jo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Yh(e))))return;e.flags|=2;const t=e.dep,n=z,r=wt;z=e,wt=!0;try{Gw(e);const i=e.fn(e._value);(t.version===0||yr(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{z=n,wt=r,Hw(e),e.flags&=-3}}function Xh(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Xh(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Z3(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Q3(e,t){e.effect instanceof Do&&(e=e.effect.fn);const n=new Do(e);t&&Fu(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function ej(e){e.effect.stop()}let wt=!0;const Jh=[];function Zh(){Jh.push(wt),wt=!1}function tj(){Jh.push(wt),wt=!0}function Qh(){const e=Jh.pop();wt=e===void 0?!0:e}function nj(e,t=!1){z instanceof Do?z.cleanup=e:t||st("onEffectCleanup() was called when there was no active effect to associate with.")}function Yw(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=z;z=void 0;try{t()}finally{z=n}}}let jo=0;class rj{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Uu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,this.subsHead=void 0}track(t){if(!z||!wt||z===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==z)n=this.activeLink=new rj(z,this),z.deps?(n.prevDep=z.depsTail,z.depsTail.nextDep=n,z.depsTail=n):z.deps=z.depsTail=n,Xw(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=z.depsTail,n.nextDep=void 0,z.depsTail.nextDep=n,z.depsTail=n,z.deps===n&&(z.deps=r)}return z.onTrack&&z.onTrack(Fu({effect:z},t)),n}trigger(t){this.version++,jo++,this.notify(t)}notify(t){Hh();try{for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Fu({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Kh()}}}function Xw(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Xw(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const ku=new WeakMap,br=Symbol("Object iterate"),Vu=Symbol("Map keys iterate"),is=Symbol("Array iterate");function Xe(e,t,n){if(wt&&z){let r=ku.get(e);r||ku.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Uu),i.map=r,i.key=n),i.track({target:e,type:t,key:n})}}function qn(e,t,n,r,i,s){const o=ku.get(e);if(!o){jo++;return}const a=u=>{u&&u.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:s})};if(Hh(),t==="clear")o.forEach(a);else{const u=Wn(e),f=u&&qh(n);if(u&&n==="length"){const c=Number(r);o.forEach((l,h)=>{(h==="length"||h===is||!Io(h)&&h>=c)&&a(l)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),f&&a(o.get(is)),t){case"add":u?f&&a(o.get("length")):(a(o.get(br)),rs(e)&&a(o.get(Vu)));break;case"delete":u||(a(o.get(br)),rs(e)&&a(o.get(Vu)));break;case"set":rs(e)&&a(o.get(br));break}}Kh()}function ij(e,t){const n=ku.get(e);return n&&n.get(t)}function ei(e){const t=G(e);return t===e?t:(Xe(t,"iterate",is),kt(e)?t:t.map(je))}function Wu(e){return Xe(e=G(e),"iterate",is),e}const sj={__proto__:null,[Symbol.iterator](){return ep(this,Symbol.iterator,je)},concat(...e){return ei(this).concat(...e.map(t=>Wn(t)?ei(t):t))},entries(){return ep(this,"entries",e=>(e[1]=je(e[1]),e))},every(e,t){return Gn(this,"every",e,t,void 0,arguments)},filter(e,t){return Gn(this,"filter",e,t,n=>n.map(je),arguments)},find(e,t){return Gn(this,"find",e,t,je,arguments)},findIndex(e,t){return Gn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Gn(this,"findLast",e,t,je,arguments)},findLastIndex(e,t){return Gn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Gn(this,"forEach",e,t,void 0,arguments)},includes(...e){return tp(this,"includes",e)},indexOf(...e){return tp(this,"indexOf",e)},join(e){return ei(this).join(e)},lastIndexOf(...e){return tp(this,"lastIndexOf",e)},map(e,t){return Gn(this,"map",e,t,void 0,arguments)},pop(){return Fo(this,"pop")},push(...e){return Fo(this,"push",e)},reduce(e,...t){return Jw(this,"reduce",e,t)},reduceRight(e,...t){return Jw(this,"reduceRight",e,t)},shift(){return Fo(this,"shift")},some(e,t){return Gn(this,"some",e,t,void 0,arguments)},splice(...e){return Fo(this,"splice",e)},toReversed(){return ei(this).toReversed()},toSorted(e){return ei(this).toSorted(e)},toSpliced(...e){return ei(this).toSpliced(...e)},unshift(...e){return Fo(this,"unshift",e)},values(){return ep(this,"values",je)}};function ep(e,t,n){const r=Wu(e),i=r[t]();return r!==e&&!kt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const oj=Array.prototype;function Gn(e,t,n,r,i,s){const o=Wu(e),a=o!==e&&!kt(e),u=o[t];if(u!==oj[t]){const l=u.apply(e,s);return a?je(l):l}let f=n;o!==e&&(a?f=function(l,h){return n.call(this,je(l),h,e)}:n.length>2&&(f=function(l,h){return n.call(this,l,h,e)}));const c=u.call(o,f,r);return a&&i?i(c):c}function Jw(e,t,n,r){const i=Wu(e);let s=n;return i!==e&&(kt(e)?n.length>3&&(s=function(o,a,u){return n.call(this,o,a,u,e)}):s=function(o,a,u){return n.call(this,o,je(a),u,e)}),i[t](s,...r)}function tp(e,t,n){const r=G(e);Xe(r,"iterate",is);const i=r[t](...n);return(i===-1||i===!1)&&ip(n[0])?(n[0]=G(n[0]),r[t](...n)):i}function Fo(e,t,n=[]){Zh(),Hh();const r=G(e)[t].apply(e,n);return Kh(),Qh(),r}const aj=F3("__proto__,__v_isRef,__isVue"),Zw=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Io));function uj(e){Io(e)||(e=String(e));const t=G(this);return Xe(t,"has",e),t.hasOwnProperty(e)}class Qw{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?oA:sA:s?iA:rA).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Wn(t);if(!i){let u;if(o&&(u=sj[n]))return u;if(n==="hasOwnProperty")return uj}const a=Reflect.get(t,n,Je(t)?t:r);if((Io(n)?Zw.has(n):aj(n))||(i||Xe(t,"get",n),s))return a;if(Je(a)){const u=o&&qh(n)?a:a.value;return i&&Qr(u)?Ku(u):u}return Qr(a)?i?Ku(a):rp(a):a}}class eA extends Qw{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const u=mr(s);if(!kt(r)&&!mr(r)&&(s=G(s),r=G(r)),!Wn(t)&&Je(s)&&!Je(r))return u?(st(`Set operation on key "${String(n)}" failed: target is readonly.`,t[n]),!0):(s.value=r,!0)}const o=Wn(t)&&qh(n)?Number(n)<t.length:Bu(t,n),a=Reflect.set(t,n,r,Je(t)?t:i);return t===G(i)&&(o?yr(r,s)&&qn(t,"set",n,r,s):qn(t,"add",n,r)),a}deleteProperty(t,n){const r=Bu(t,n),i=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&qn(t,"delete",n,void 0,i),s}has(t,n){const r=Reflect.has(t,n);return(!Io(n)||!Zw.has(n))&&Xe(t,"has",n),r}ownKeys(t){return Xe(t,"iterate",Wn(t)?"length":br),Reflect.ownKeys(t)}}class tA extends Qw{constructor(t=!1){super(!0,t)}set(t,n){return st(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return st(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const fj=new eA,cj=new tA,lj=new eA(!0),hj=new tA(!0),np=e=>e,qu=e=>Reflect.getPrototypeOf(e);function pj(e,t,n){return function(...r){const i=this.__v_raw,s=G(i),o=rs(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,f=i[e](...r),c=n?np:t?Xu:je;return!t&&Xe(s,"iterate",u?Vu:br),{next(){const{value:l,done:h}=f.next();return h?{value:l,done:h}:{value:a?[c(l[0]),c(l[1])]:c(l),done:h}},[Symbol.iterator](){return this}}}}function Gu(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";st(`${H3(e)} operation ${n}failed: target is readonly.`,G(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function dj(e,t){const n={get(i){const s=this.__v_raw,o=G(s),a=G(i);e||(yr(i,a)&&Xe(o,"get",i),Xe(o,"get",a));const{has:u}=qu(o),f=t?np:e?Xu:je;if(u.call(o,i))return f(s.get(i));if(u.call(o,a))return f(s.get(a));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!e&&Xe(G(i),"iterate",br),i.size},has(i){const s=this.__v_raw,o=G(s),a=G(i);return e||(yr(i,a)&&Xe(o,"has",i),Xe(o,"has",a)),i===a?s.has(i):s.has(i)||s.has(a)},forEach(i,s){const o=this,a=o.__v_raw,u=G(a),f=t?np:e?Xu:je;return!e&&Xe(u,"iterate",br),a.forEach((c,l)=>i.call(s,f(c),f(l),o))}};return Fu(n,e?{add:Gu("add"),set:Gu("set"),delete:Gu("delete"),clear:Gu("clear")}:{add(i){!t&&!kt(i)&&!mr(i)&&(i=G(i));const s=G(this);return qu(s).has.call(s,i)||(s.add(i),qn(s,"add",i,i)),this},set(i,s){!t&&!kt(s)&&!mr(s)&&(s=G(s));const o=G(this),{has:a,get:u}=qu(o);let f=a.call(o,i);f?nA(o,a,i):(i=G(i),f=a.call(o,i));const c=u.call(o,i);return o.set(i,s),f?yr(s,c)&&qn(o,"set",i,s,c):qn(o,"add",i,s),this},delete(i){const s=G(this),{has:o,get:a}=qu(s);let u=o.call(s,i);u?nA(s,o,i):(i=G(i),u=o.call(s,i));const f=a?a.call(s,i):void 0,c=s.delete(i);return u&&qn(s,"delete",i,void 0,f),c},clear(){const i=G(this),s=i.size!==0,o=rs(i)?new Map(i):new Set(i),a=i.clear();return s&&qn(i,"clear",void 0,void 0,o),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=pj(i,e,t)}),n}function Hu(e,t){const n=dj(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Bu(n,i)&&i in r?n:r,i,s)}const _j={get:Hu(!1,!1)},vj={get:Hu(!1,!0)},gj={get:Hu(!0,!1)},yj={get:Hu(!0,!0)};function nA(e,t,n){const r=G(n);if(r!==n&&t.call(e,r)){const i=Uw(e);st(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const rA=new WeakMap,iA=new WeakMap,sA=new WeakMap,oA=new WeakMap;function bj(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mj(e){return e.__v_skip||!Object.isExtensible(e)?0:bj(Uw(e))}function rp(e){return mr(e)?e:Yu(e,!1,fj,_j,rA)}function wj(e){return Yu(e,!1,lj,vj,iA)}function Ku(e){return Yu(e,!0,cj,gj,sA)}function Aj(e){return Yu(e,!0,hj,yj,oA)}function Yu(e,t,n,r,i){if(!Qr(e))return st(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=mj(e);if(s===0)return e;const o=i.get(e);if(o)return o;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function ss(e){return mr(e)?ss(e.__v_raw):!!(e&&e.__v_isReactive)}function mr(e){return!!(e&&e.__v_isReadonly)}function kt(e){return!!(e&&e.__v_isShallow)}function ip(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Oj(e){return!Bu(e,"__v_skip")&&Object.isExtensible(e)&&K3(e,"__v_skip",!0),e}const je=e=>Qr(e)?rp(e):e,Xu=e=>Qr(e)?Ku(e):e;function Je(e){return e?e.__v_isRef===!0:!1}function aA(e){return uA(e,!1)}function Ej(e){return uA(e,!0)}function uA(e,t){return Je(e)?e:new Sj(e,t)}class Sj{constructor(t,n){this.dep=new Uu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:G(t),this._value=n?t:je(t),this.__v_isShallow=n}get value(){return this.dep.track({target:this,type:"get",key:"value"}),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||kt(t)||mr(t);t=r?t:G(t),yr(t,n)&&(this._rawValue=t,this._value=r?t:je(t),this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}))}}function xj(e){e.dep&&e.dep.trigger({target:e,type:"set",key:"value",newValue:e._value})}function sp(e){return Je(e)?e.value:e}function Tj(e){return $o(e)?e():sp(e)}const Rj={get:(e,t,n)=>t==="__v_raw"?e:sp(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Je(i)&&!Je(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Pj(e){return ss(e)?e:new Proxy(e,Rj)}class Nj{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Uu,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Mj(e){return new Nj(e)}function $j(e){ip(e)||st("toRefs() expects a reactive object but received a plain one.");const t=Wn(e)?new Array(e.length):{};for(const n in e)t[n]=fA(e,n);return t}class Ij{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ij(G(this._object),this._key)}}class Dj{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Cj(e,t,n){return Je(e)?e:$o(e)?new Dj(e):Qr(e)&&arguments.length>1?fA(e,t,n):aA(e)}function fA(e,t,n){const r=e[t];return Je(r)?r:new Ij(e,t,n)}class Lj{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Uu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=jo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&z!==this)return qw(this,!0),!0}get value(){const t=this.dep.track({target:this,type:"get",key:"value"});return Kw(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):st("Write operation failed: computed value is readonly")}}function jj(e,t,n=!1){let r,i;$o(e)?r=e:(r=e.get,i=e.set);const s=new Lj(r,i,n);return t&&!n&&(s.onTrack=t.onTrack,s.onTrigger=t.onTrigger),s}const Fj={GET:"get",HAS:"has",ITERATE:"iterate"},Bj={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},zj={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},Uj={WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP"},Ju={},Zu=new WeakMap;let wr;function kj(){return wr}function cA(e,t=!1,n=wr){if(n){let r=Zu.get(n);r||Zu.set(n,r=[]),r.push(e)}else t||st("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Vj(e,t,n=B3){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:u}=n,f=A=>{(n.onWarn||st)("Invalid watch source: ",A,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=A=>i?A:kt(A)||i===!1||i===0?Hn(A,1):Hn(A);let l,h,d,_,v=!1,g=!1;if(Je(e)?(h=()=>e.value,v=kt(e)):ss(e)?(h=()=>c(e),v=!0):Wn(e)?(g=!0,v=e.some(A=>ss(A)||kt(A)),h=()=>e.map(A=>{if(Je(A))return A.value;if(ss(A))return c(A);if($o(A))return u?u(A,2):A();f(A)})):$o(e)?t?h=u?()=>u(e,2):e:h=()=>{if(d){Zh();try{d()}finally{Qh()}}const A=wr;wr=l;try{return u?u(e,3,[_]):e(_)}finally{wr=A}}:(h=z3,f(e)),t&&i){const A=h,S=i===!0?1/0:i;h=()=>Hn(A(),S)}const y=Vw(),b=()=>{l.stop(),y&&y.active&&U3(y.effects,l)};if(s&&t){const A=t;t=(...S)=>{A(...S),b()}}let w=g?new Array(e.length).fill(Ju):Ju;const m=A=>{if(!(!(l.flags&1)||!l.dirty&&!A))if(t){const S=l.run();if(i||v||(g?S.some((P,k)=>yr(P,w[k])):yr(S,w))){d&&d();const P=wr;wr=l;try{const k=[S,w===Ju?void 0:g&&w[0]===Ju?[]:w,_];w=S,u?u(t,3,k):t(...k)}finally{wr=P}}}else l.run()};return a&&a(m),l=new Do(h),l.scheduler=o?()=>o(m,!1):m,_=A=>cA(A,!1,l),d=l.onStop=()=>{const A=Zu.get(l);if(A){if(u)u(A,4);else for(const S of A)S();Zu.delete(l)}},l.onTrack=n.onTrack,l.onTrigger=n.onTrigger,t?r?m(!0):w=l.run():o?o(m.bind(null,!0),!0):l.run(),b.pause=l.pause.bind(l),b.resume=l.resume.bind(l),b.stop=b,b}function Hn(e,t=1/0,n){if(t<=0||!Qr(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Je(e))Hn(e.value,t,n);else if(Wn(e))for(let r=0;r<e.length;r++)Hn(e[r],t,n);else if(V3(e)||rs(e))e.forEach(r=>{Hn(r,t,n)});else if(G3(e)){for(const r in e)Hn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Hn(e[r],t,n)}return e}const Wj=Object.freeze(Object.defineProperty({__proto__:null,ARRAY_ITERATE_KEY:is,EffectFlags:J3,EffectScope:kw,ITERATE_KEY:br,MAP_KEY_ITERATE_KEY:Vu,ReactiveEffect:Do,ReactiveFlags:zj,TrackOpTypes:Fj,TriggerOpTypes:Bj,WatchErrorCodes:Uj,computed:jj,customRef:Mj,effect:Q3,effectScope:Y3,enableTracking:tj,getCurrentScope:Vw,getCurrentWatcher:kj,isProxy:ip,isReactive:ss,isReadonly:mr,isRef:Je,isShallow:kt,markRaw:Oj,onEffectCleanup:nj,onScopeDispose:X3,onWatcherCleanup:cA,pauseTracking:Zh,proxyRefs:Pj,reactive:rp,reactiveReadArray:ei,readonly:Ku,ref:aA,resetTracking:Qh,shallowReactive:wj,shallowReadArray:Wu,shallowReadonly:Aj,shallowRef:Ej,stop:ej,toRaw:G,toReactive:je,toReadonly:Xu,toRef:Cj,toRefs:$j,toValue:Tj,track:Xe,traverse:Hn,trigger:qn,triggerRef:xj,unref:sp,watch:Vj},Symbol.toStringTag,{value:"Module"})),qj=Symbol.for("preact-signals"),wn=1,os=2,Bo=4,as=8,Qu=16,us=32;function ef(){Uo++}function tf(){if(Uo>1){Uo--;return}let e,t=!1;for(;zo!==void 0;){let n=zo;for(zo=void 0,ap++;n!==void 0;){const r=n._nextBatchedEffect;if(n._nextBatchedEffect=void 0,n._flags&=~os,!(n._flags&as)&&hA(n))try{n._callback()}catch(i){t||(e=i,t=!0)}n=r}}if(ap=0,Uo--,t)throw e}function Gj(e){if(Uo>0)return e();ef();try{return e()}finally{tf()}}let K;function op(e){const t=K;K=void 0;try{return e()}finally{K=t}}let zo,Uo=0,ap=0,nf=0;function lA(e){if(K===void 0)return;let t=e._node;if(t===void 0||t._target!==K)return t={_version:0,_source:e,_prevSource:K._sources,_nextSource:void 0,_target:K,_prevTarget:void 0,_nextTarget:void 0,_rollbackNode:t},K._sources!==void 0&&(K._sources._nextSource=t),K._sources=t,e._node=t,K._flags&us&&e._subscribe(t),t;if(t._version===-1)return t._version=0,t._nextSource!==void 0&&(t._nextSource._prevSource=t._prevSource,t._prevSource!==void 0&&(t._prevSource._nextSource=t._nextSource),t._prevSource=K._sources,t._nextSource=void 0,K._sources._nextSource=t,K._sources=t),t}function Fe(e,t){this._value=e,this._version=0,this._node=void 0,this._targets=void 0,this._watched=t?.watched,this._unwatched=t?.unwatched,this.name=t?.name}Fe.prototype.brand=qj,Fe.prototype._refresh=function(){return!0},Fe.prototype._subscribe=function(e){const t=this._targets;t!==e&&e._prevTarget===void 0&&(e._nextTarget=t,this._targets=e,t!==void 0?t._prevTarget=e:op(()=>{this._watched?.call(this)}))},Fe.prototype._unsubscribe=function(e){if(this._targets!==void 0){const t=e._prevTarget,n=e._nextTarget;t!==void 0&&(t._nextTarget=n,e._prevTarget=void 0),n!==void 0&&(n._prevTarget=t,e._nextTarget=void 0),e===this._targets&&(this._targets=n,n===void 0&&op(()=>{this._unwatched?.call(this)}))}},Fe.prototype.subscribe=function(e){return vA(()=>{const t=this.value,n=K;K=void 0;try{e(t)}finally{K=n}},{name:"sub"})},Fe.prototype.valueOf=function(){return this.value},Fe.prototype.toString=function(){return this.value+""},Fe.prototype.toJSON=function(){return this.value},Fe.prototype.peek=function(){const e=K;K=void 0;try{return this.value}finally{K=e}},Object.defineProperty(Fe.prototype,"value",{get(){const e=lA(this);return e!==void 0&&(e._version=this._version),this._value},set(e){if(e!==this._value){if(ap>100)throw new Error("Cycle detected");this._value=e,this._version++,nf++,ef();try{for(let t=this._targets;t!==void 0;t=t._nextTarget)t._target._notify()}finally{tf()}}}});function Hj(e,t){return new Fe(e,t)}function hA(e){for(let t=e._sources;t!==void 0;t=t._nextSource)if(t._source._version!==t._version||!t._source._refresh()||t._source._version!==t._version)return!0;return!1}function pA(e){for(let t=e._sources;t!==void 0;t=t._nextSource){const n=t._source._node;if(n!==void 0&&(t._rollbackNode=n),t._source._node=t,t._version=-1,t._nextSource===void 0){e._sources=t;break}}}function dA(e){let t=e._sources,n;for(;t!==void 0;){const r=t._prevSource;t._version===-1?(t._source._unsubscribe(t),r!==void 0&&(r._nextSource=t._nextSource),t._nextSource!==void 0&&(t._nextSource._prevSource=r)):n=t,t._source._node=t._rollbackNode,t._rollbackNode!==void 0&&(t._rollbackNode=void 0),t=r}e._sources=n}function Ar(e,t){Fe.call(this,void 0),this._fn=e,this._sources=void 0,this._globalVersion=nf-1,this._flags=Bo,this._watched=t?.watched,this._unwatched=t?.unwatched,this.name=t?.name}Ar.prototype=new Fe,Ar.prototype._refresh=function(){if(this._flags&=~os,this._flags&wn)return!1;if((this._flags&(Bo|us))===us||(this._flags&=~Bo,this._globalVersion===nf))return!0;if(this._globalVersion=nf,this._flags|=wn,this._version>0&&!hA(this))return this._flags&=~wn,!0;const e=K;try{pA(this),K=this;const t=this._fn();(this._flags&Qu||this._value!==t||this._version===0)&&(this._value=t,this._flags&=~Qu,this._version++)}catch(t){this._value=t,this._flags|=Qu,this._version++}return K=e,dA(this),this._flags&=~wn,!0},Ar.prototype._subscribe=function(e){if(this._targets===void 0){this._flags|=Bo|us;for(let t=this._sources;t!==void 0;t=t._nextSource)t._source._subscribe(t)}Fe.prototype._subscribe.call(this,e)},Ar.prototype._unsubscribe=function(e){if(this._targets!==void 0&&(Fe.prototype._unsubscribe.call(this,e),this._targets===void 0)){this._flags&=~us;for(let t=this._sources;t!==void 0;t=t._nextSource)t._source._unsubscribe(t)}},Ar.prototype._notify=function(){if(!(this._flags&os)){this._flags|=Bo|os;for(let e=this._targets;e!==void 0;e=e._nextTarget)e._target._notify()}},Object.defineProperty(Ar.prototype,"value",{get(){if(this._flags&wn)throw new Error("Cycle detected");const e=lA(this);if(this._refresh(),e!==void 0&&(e._version=this._version),this._flags&Qu)throw this._value;return this._value}});function Kj(e,t){return new Ar(e,t)}function _A(e){const t=e._cleanup;if(e._cleanup=void 0,typeof t=="function"){ef();const n=K;K=void 0;try{t()}catch(r){throw e._flags&=~wn,e._flags|=as,up(e),r}finally{K=n,tf()}}}function up(e){for(let t=e._sources;t!==void 0;t=t._nextSource)t._source._unsubscribe(t);e._fn=void 0,e._sources=void 0,_A(e)}function Yj(e){if(K!==this)throw new Error("Out-of-order effect");dA(this),K=e,this._flags&=~wn,this._flags&as&&up(this),tf()}function ti(e,t){this._fn=e,this._cleanup=void 0,this._sources=void 0,this._nextBatchedEffect=void 0,this._flags=us,this.name=t?.name}ti.prototype._callback=function(){const e=this._start();try{if(this._flags&as||this._fn===void 0)return;const t=this._fn();typeof t=="function"&&(this._cleanup=t)}finally{e()}},ti.prototype._start=function(){if(this._flags&wn)throw new Error("Cycle detected");this._flags|=wn,this._flags&=~as,_A(this),pA(this),ef();const e=K;return K=this,Yj.bind(this,e)},ti.prototype._notify=function(){this._flags&os||(this._flags|=os,this._nextBatchedEffect=zo,zo=this)},ti.prototype._dispose=function(){this._flags|=as,this._flags&wn||up(this)},ti.prototype.dispose=function(){this._dispose()};function vA(e,t){const n=new ti(e,t);try{n._callback()}catch(i){throw n._dispose(),i}const r=n._dispose.bind(n);return r[Symbol.dispose]=r,r}const Xj=Object.freeze(Object.defineProperty({__proto__:null,Computed:Ar,Effect:ti,Signal:Fe,batch:Gj,computed:Kj,effect:vA,signal:Hj,untracked:op},Symbol.toStringTag,{value:"Module"})),gA=typeof Symbol=="function"&&Symbol.observable||"@@observable",fp=()=>Math.random().toString(36).substring(7).split("").join("."),Or={INIT:`@@redux/INIT${fp()}`,REPLACE:`@@redux/REPLACE${fp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fp()}`};function rf(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Jj(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(eF(e))return"date";if(Qj(e))return"error";const n=Zj(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Zj(e){return typeof e.constructor=="function"?e.constructor.name:null}function Qj(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function eF(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Kn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Jj(e)),t}function cp(e,t,n){if(typeof e!="function")throw new Error(`Expected the root reducer to be a function. Instead, received: '${Kn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(`Expected the enhancer to be a function. Instead, received: '${Kn(n)}'`);return n(cp)(e,t)}let r=e,i=t,s=new Map,o=s,a=0,u=!1;function f(){o===s&&(o=new Map,s.forEach((g,y)=>{o.set(y,g)}))}function c(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function l(g){if(typeof g!="function")throw new Error(`Expected the listener to be a function. Instead, received: '${Kn(g)}'`);if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;f();const b=a++;return o.set(b,g),function(){if(y){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,f(),o.delete(b),s=null}}}function h(g){if(!rf(g))throw new Error(`Actions must be plain objects. Instead, the actual type was: '${Kn(g)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof g.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(`Action "type" property must be a string. Instead, the actual type was: '${Kn(g.type)}'. Value was: '${g.type}' (stringified)`);if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,i=r(i,g)}finally{u=!1}return(s=o).forEach(b=>{b()}),g}function d(g){if(typeof g!="function")throw new Error(`Expected the nextReducer to be a function. Instead, received: '${Kn(g)}`);r=g,h({type:Or.REPLACE})}function _(){const g=l;return{subscribe(y){if(typeof y!="object"||y===null)throw new TypeError(`Expected the observer to be an object. Instead, received: '${Kn(y)}'`);function b(){const m=y;m.next&&m.next(c())}return b(),{unsubscribe:g(b)}},[gA](){return this}}}return h({type:Or.INIT}),{dispatch:h,subscribe:l,getState:c,replaceReducer:d,[gA]:_}}function tF(e,t,n){return cp(e,t,n)}function yA(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function nF(e,t,n,r){const i=Object.keys(t),s=n&&n.type===Or.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!rf(e))return`The ${s} has unexpected type of "${Kn(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(a=>!t.hasOwnProperty(a)&&!r[a]);if(o.forEach(a=>{r[a]=!0}),!(n&&n.type===Or.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function rF(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Or.INIT})>"u")throw new Error(`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Or.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function iF(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const a=t[o];process.env.NODE_ENV!=="production"&&typeof e[a]>"u"&&yA(`No reducer provided for key "${a}"`),typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{rF(n)}catch(o){s=o}return function(a={},u){if(s)throw s;if(process.env.NODE_ENV!=="production"){const l=nF(a,n,u,i);l&&yA(l)}let f=!1;const c={};for(let l=0;l<r.length;l++){const h=r[l],d=n[h],_=a[h],v=d(_,u);if(typeof v>"u"){const g=u&&u.type;throw new Error(`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}c[h]=v,f=f||v!==_}return f=f||r.length!==Object.keys(a).length,f?c:a}}function bA(e,t){return function(...n){return t(e.apply(this,n))}}function sF(e,t){if(typeof e=="function")return bA(e,t);if(typeof e!="object"||e===null)throw new Error(`bindActionCreators expected an object or a function, but instead received: '${Kn(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=bA(i,t))}return n}function mA(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function oF(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(u,...f)=>s(u,...f)},a=e.map(u=>u(o));return s=mA(...a)(i.dispatch),{...i,dispatch:s}}}function aF(e){return rf(e)&&"type"in e&&typeof e.type=="string"}const uF=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:Or,applyMiddleware:oF,bindActionCreators:sF,combineReducers:iF,compose:mA,createStore:cp,isAction:aF,isPlainObject:rf,legacy_createStore:tF},Symbol.toStringTag,{value:"Module"}));var fF={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(t,n){return"Cannot apply '"+t+"' to '"+n.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(t,n){return"[mobx.array] Index out of bounds, "+t+" is larger than "+n},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(t){return"Cannot initialize from classes that inherit from Map: "+t.constructor.name},20:function(t){return"Cannot initialize map from "+t},21:function(t){return"Cannot convert to map from '"+t+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(t){return"Cannot obtain administration from "+t},25:function(t,n){return"the entry '"+t+"' does not exist in the observable map '"+n+"'"},26:"please specify a property",27:function(t,n){return"no observable property '"+t.toString()+"' found on the observable object '"+n+"'"},28:function(t){return"Cannot obtain atom from "+t},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(t,n){return"Cycle detected in computation "+t+": "+n},33:function(t){return"The setter of computed value '"+t+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(t){return"[ComputedValue '"+t+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(t){return"[mobx] `observableArray."+t+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+t+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},cF=process.env.NODE_ENV!=="production"?fF:{};function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var i=typeof e=="string"?e:cF[e];throw typeof i=="function"&&(i=i.apply(null,n)),new Error("[MobX] "+i)}throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var lF={};function sf(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:lF}var wA=Object.assign,of=Object.getOwnPropertyDescriptor,An=Object.defineProperty,ko=Object.prototype,af=[];Object.freeze(af);var lp={};Object.freeze(lp);var hF=typeof Proxy<"u",pF=Object.toString();function AA(){hF||E(process.env.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function Vo(e){process.env.NODE_ENV!=="production"&&O.verifyProxies&&E("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function At(){return++O.mobxGuid}function hp(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var fs=function(){};function ue(e){return typeof e=="function"}function On(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function uf(e){return e!==null&&typeof e=="object"}function ot(e){if(!uf(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===pF}function OA(e){var t=e?.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Wo(e,t,n){An(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function EA(e,t,n){An(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Er(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(r){return uf(r)&&r[n]===!0}}function cs(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function dF(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),r=Object.getPrototypeOf(n);return r===null}function Yn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var SA=typeof Object.getOwnPropertySymbols<"u";function _F(e){var t=Object.keys(e);if(!SA)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(r){return ko.propertyIsEnumerable.call(e,r)})):t}var ls=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:SA?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function pp(e){return typeof e=="string"?e:typeof e=="symbol"?e.toString():new String(e).toString()}function xA(e){return e===null?null:typeof e=="object"?""+e:e}function Ot(e,t){return ko.hasOwnProperty.call(e,t)}var vF=Object.getOwnPropertyDescriptors||function(t){var n={};return ls(t).forEach(function(r){n[r]=of(t,r)}),n};function Et(e,t){return!!(e&t)}function St(e,t,n){return n?e|=t:e&=~t,e}function TA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bF(r.key),r)}}function hs(e,t,n){return t&&gF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ps(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=mF(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function En(){return En=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},En.apply(null,arguments)}function RA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dp(e,t)}function dp(e,t){return dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},dp(e,t)}function yF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bF(e){var t=yF(e,"string");return typeof t=="symbol"?t:t+""}function mF(e,t){if(e){if(typeof e=="string")return TA(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TA(e,t):void 0}}var at=Symbol("mobx-stored-annotations");function Qt(e){function t(n,r){if(Go(r))return e.decorate_20223_(n,r);qo(n,r,e)}return Object.assign(t,e)}function qo(e,t,n){if(Ot(e,at)||Wo(e,at,En({},e[at])),process.env.NODE_ENV!=="production"&&lf(n)&&!Ot(e[at],t)){var r=e.constructor.name+".prototype."+t.toString();E("'"+r+"' is decorated with 'override', but no such decorated member was found on prototype.")}wF(e,n,t),lf(n)||(e[at][t]=n)}function wF(e,t,n){if(process.env.NODE_ENV!=="production"&&!lf(t)&&Ot(e[at],n)){var r=e.constructor.name+".prototype."+n.toString(),i=e[at][n].annotationType_,s=t.annotationType_;E("Cannot apply '@"+s+"' to '"+r+"':"+(`
|
|
65
22
|
The field is already decorated with '@`+i+"'.")+`
|
|
66
23
|
Re-decorating fields is not allowed.
|
|
67
|
-
Use '@override' decorator for methods overridden by subclass.`)}}function
|
|
68
|
-
'`+this.annotationType_+"' cannot be used on plain objects.")),process.env.NODE_ENV!=="production"&&!
|
|
69
|
-
'`+s.annotationType_+"' can only be used on properties with a function value."))}function
|
|
70
|
-
'`+i+"' can only be used on properties with a function value."))}function
|
|
71
|
-
'`+i+"' can only be used on properties with a generator function value."))}function
|
|
72
|
-
'`+i+"' can only be used on getter(+setter) properties."))}function
|
|
73
|
-
'`+i+"' cannot be used on getter/setter properties"))}var pF="true",dF=oA();function oA(e){return{annotationType_:pF,options_:e,make_:_F,extend_:vF,decorate_20223_:gF}}function _F(e,t,n,r){var i,s;if(n.get)return Uo.make_(e,t,n,r);if(n.set){var o=Ar(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:O.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(mn(r,t,{configurable:!0,set:o}),2)}if(r!==e.target_&&typeof n.value=="function"){var a;if(Xw(n.value)){var u,f=(u=this.options_)!=null&&u.autoBind?ti.bound:ti;return f.make_(e,t,n,r)}var c=(a=this.options_)!=null&&a.autoBind?us.bound:us;return c.make_(e,t,n,r)}var l=((i=this.options_)==null?void 0:i.deep)===!1?Se.ref:Se;if(typeof n.value=="function"&&(s=this.options_)!=null&&s.autoBind){var h;n.value=n.value.bind((h=e.proxy_)!=null?h:e.target_)}return l.make_(e,t,n,r)}function vF(e,t,n,r){var i,s;if(n.get)return Uo.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:O.safeDescriptors?e.isPlainObject_:!0,set:Ar(t.toString(),n.set)},r);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var o;n.value=n.value.bind((o=e.proxy_)!=null?o:e.target_)}var a=((s=this.options_)==null?void 0:s.deep)===!1?Se.ref:Se;return a.extend_(e,t,n,r)}function gF(e,t){E("'"+this.annotationType_+"' cannot be used as a decorator")}var yF="observable",bF="observable.ref",mF="observable.shallow",wF="observable.struct",aA={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(aA);function ef(e){return e||aA}var ep=Qu(yF),AF=Qu(bF,{enhancer:Ju}),OF=Qu(mF,{enhancer:qj}),EF=Qu(wF,{enhancer:Gj}),uA=Jt(ep);function tf(e){return e.deep===!0?Xr:e.deep===!1?Ju:xF(e.defaultDecorator)}function SF(e){var t;return e?(t=e.defaultDecorator)!=null?t:oA(e):void 0}function xF(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:Xr}function fA(e,t,n){if(Bo(t))return ep.decorate_20223_(e,t);if(wn(t)){Fo(e,t,ep);return}return ni(e)?e:st(e)?Se.object(e,t,n):Array.isArray(e)?Se.array(e,t):rs(e)?Se.map(e,t):Gn(e)?Se.set(e,t):typeof e=="object"&&e!==null?e:Se.box(e,t)}Kw(fA,uA);var TF={box:function(t,n){var r=ef(n);return new Or(t,tf(r),r.name,!0,r.equals)},array:function(t,n){var r=ef(n);return(O.useProxies===!1||r.proxy===!1?YB:BB)(t,tf(r),r.name)},map:function(t,n){var r=ef(n);return new gp(t,tf(r),r.name)},set:function(t,n){var r=ef(n);return new yp(t,tf(r),r.name)},object:function(t,n,r){return xr(function(){return pp(O.useProxies===!1||r?.proxy===!1?ii({},r):DB({},r),t,n)})},ref:Jt(AF),shallow:Jt(OF),deep:uA,struct:Jt(EF)},Se=Kw(fA,TF),cA="computed",RF="computed.struct",tp=Qh(cA),PF=Qh(RF,{equals:Yr.structural}),Uo=function(t,n){if(Bo(n))return tp.decorate_20223_(t,n);if(wn(n))return Fo(t,n,tp);if(st(t))return Jt(Qh(cA,t));process.env.NODE_ENV!=="production"&&(ue(t)||E("First argument to `computed` should be an expression."),ue(n)&&E("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var r=st(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new Ut(r)};Object.assign(Uo,tp),Uo.struct=Jt(PF);var lA,hA,nf=0,NF=1,$F=(lA=(hA=Hu(function(){},"name"))==null?void 0:hA.configurable)!=null?lA:!1,pA={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ar(e,t,n,r){n===void 0&&(n=!1),process.env.NODE_ENV!=="production"&&(ue(t)||E("`action` can only be invoked on functions"),(typeof e!="string"||!e)&&E("actions should have valid names, got: '"+e+"'"));function i(){return dA(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},$F&&(pA.value=e,mn(i,"name",pA)),i}function dA(e,t,n,r,i){var s=_A(e,t,r,i);try{return n.apply(r,i)}catch(o){throw s.error_=o,o}finally{vA(s)}}function _A(e,t,n,r){var i=process.env.NODE_ENV!=="production"&&$e()&&!!e,s=0;if(process.env.NODE_ENV!=="production"&&i){s=Date.now();var o=r?Array.from(r):Ku;St({type:up,name:e,object:n,arguments:o})}var a=O.trackingDerivation,u=!t||!a;at();var f=O.allowStateChanges;u&&(Zr(),f=rf(!0));var c=uf(!0),l={runAsAction_:u,prevDerivation_:a,prevAllowStateChanges_:f,prevAllowStateReads_:c,notifySpy_:i,startTime_:s,actionId_:NF++,parentActionId_:nf};return nf=l.actionId_,l}function vA(e){nf!==e.actionId_&&E(30),nf=e.parentActionId_,e.error_!==void 0&&(O.suppressReactionErrors=!0),sf(e.prevAllowStateChanges_),as(e.prevAllowStateReads_),ut(),e.runAsAction_&&Hn(e.prevDerivation_),process.env.NODE_ENV!=="production"&&e.notifySpy_&&xt({time:Date.now()-e.startTime_}),O.suppressReactionErrors=!1}function np(e,t){var n=rf(e);try{return t()}finally{sf(n)}}function rf(e){var t=O.allowStateChanges;return O.allowStateChanges=e,t}function sf(e){O.allowStateChanges=e}var MF="create",Or=function(e){function t(r,i,s,o,a){var u;return s===void 0&&(s=process.env.NODE_ENV!=="production"?"ObservableValue@"+wt():"ObservableValue"),o===void 0&&(o=!0),a===void 0&&(a=Yr.default),u=e.call(this,s)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=i,u.name_=s,u.equals=a,u.value_=i(r,void 0,s),process.env.NODE_ENV!=="production"&&o&&$e()&&Qr({type:MF,object:u,observableKind:"value",debugObjectName:u.name_,newValue:""+u.value_}),u}tA(t,e);var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){var s=this.value_;if(i=this.prepareNewValue_(i),i!==O.UNCHANGED){var o=$e();process.env.NODE_ENV!=="production"&&o&&St({type:en,object:this,observableKind:"value",debugObjectName:this.name_,newValue:i,oldValue:s}),this.setNewValue_(i),process.env.NODE_ENV!=="production"&&o&&xt()}},n.prepareNewValue_=function(i){if(On(this),Wt(this)){var s=kt(this,{object:this,type:en,newValue:i});if(!s)return O.UNCHANGED;i=s.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?O.UNCHANGED:i},n.setNewValue_=function(i){var s=this.value_;this.value_=i,this.reportChanged(),Zt(this)&&Qt(this,{type:en,object:this,newValue:i,oldValue:s})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return ko(this,i)},n.observe_=function(i,s){return s&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:en,newValue:this.value_,oldValue:void 0}),qo(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Qw(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(wr),rp=mr("ObservableValue",Or),Ut=function(){function e(n){this.dependenciesState_=U.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=U.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new of(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Vt.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||E(31),this.derivation=n.get,this.name_=n.name||(process.env.NODE_ENV!=="production"?"ComputedValue@"+wt():"ComputedValue"),n.set&&(this.setter_=Ar(process.env.NODE_ENV!=="production"?this.name_+"-setter":"ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Yr.structural:Yr.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){qF(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&E(32,this.name_,this.derivation),O.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)ip(this)&&(this.warnAboutUntrackedRead_(),at(),this.value_=this.computeValue_(!1),ut());else if(AA(this),ip(this)){var r=O.trackingContext;this.keepAlive_&&!r&&(O.trackingContext=this),this.trackAndCompute()&&kF(this),O.trackingContext=r}var i=this.value_;if(af(i))throw i.cause;return i},t.set=function(r){if(this.setter_){this.isRunningSetter&&E(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else E(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,i=this.dependenciesState_===U.NOT_TRACKING_,s=this.computeValue_(!0),o=i||af(r)||af(s)||!this.equals_(r,s);return o&&(this.value_=s,process.env.NODE_ENV!=="production"&&$e()&&Qr({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:r,newValue:s})),o},t.computeValue_=function(r){this.isComputing=!0;var i=rf(!1),s;if(r)s=gA(this,this.derivation,this.scope_);else if(O.disableErrorBoundaries===!0)s=this.derivation.call(this.scope_);else try{s=this.derivation.call(this.scope_)}catch(o){s=new of(o)}return sf(i),this.isComputing=!1,s},t.suspend_=function(){this.keepAlive_||(sp(this),this.value_=void 0,process.env.NODE_ENV!=="production"&&this.isTracing_!==Vt.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},t.observe_=function(r,i){var s=this,o=!0,a=void 0;return lp(function(){var u=s.get();if(!o||i){var f=Zr();r({observableKind:"computed",debugObjectName:s.name_,type:en,object:s,newValue:u,oldValue:a}),Hn(f)}o=!1,a=u})},t.warnAboutUntrackedRead_=function(){process.env.NODE_ENV!=="production"&&(this.isTracing_!==Vt.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),(typeof this.requiresReaction_=="boolean"?this.requiresReaction_:O.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."))},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Qw(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},ss(e,[{key:"isComputing",get:function(){return Ot(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=Et(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return Ot(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=Et(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return Ot(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=Et(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Ot(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=Et(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Ot(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=Et(this.flags_,e.diffValueMask_,r===1)}}])}();Ut.isComputingMask_=1,Ut.isRunningSetterMask_=2,Ut.isBeingObservedMask_=4,Ut.isPendingUnobservationMask_=8,Ut.diffValueMask_=16;var Jr=mr("ComputedValue",Ut),U;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(U||(U={}));var Vt;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Vt||(Vt={}));var of=function(t){this.cause=void 0,this.cause=t};function af(e){return e instanceof of}function ip(e){switch(e.dependenciesState_){case U.UP_TO_DATE_:return!1;case U.NOT_TRACKING_:case U.STALE_:return!0;case U.POSSIBLY_STALE_:{for(var t=uf(!0),n=Zr(),r=e.observing_,i=r.length,s=0;s<i;s++){var o=r[s];if(Jr(o)){if(O.disableErrorBoundaries)o.get();else try{o.get()}catch{return Hn(n),as(t),!0}if(e.dependenciesState_===U.STALE_)return Hn(n),as(t),!0}}return yA(e),Hn(n),as(t),!1}}}function IF(){return O.trackingDerivation!==null}function On(e){if(process.env.NODE_ENV!=="production"){var t=e.observers_.size>0;!O.allowStateChanges&&(t||O.enforceActions==="always")&&console.warn("[MobX] "+(O.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+e.name_)}}function DF(e){process.env.NODE_ENV!=="production"&&!O.allowStateReads&&O.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}function gA(e,t,n){var r=uf(!0);yA(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++O.runId;var i=O.trackingDerivation;O.trackingDerivation=e,O.inBatch++;var s;if(O.disableErrorBoundaries===!0)s=t.call(n);else try{s=t.call(n)}catch(o){s=new of(o)}return O.inBatch--,O.trackingDerivation=i,LF(e),CF(e),as(r),s}function CF(e){process.env.NODE_ENV!=="production"&&e.observing_.length===0&&(typeof e.requiresObservable_=="boolean"?e.requiresObservable_:O.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}function LF(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=U.UP_TO_DATE_,i=0,s=e.unboundDepsCount_,o=0;o<s;o++){var a=n[o];a.diffValue===0&&(a.diffValue=1,i!==o&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(n.length=i,e.newObserving_=null,s=t.length;s--;){var u=t[s];u.diffValue===0&&mA(u,e),u.diffValue=0}for(;i--;){var f=n[i];f.diffValue===1&&(f.diffValue=0,WF(f,e))}r!==U.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function sp(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)mA(t[n],e);e.dependenciesState_=U.NOT_TRACKING_}function op(e){var t=Zr();try{return e()}finally{Hn(t)}}function Zr(){var e=O.trackingDerivation;return O.trackingDerivation=null,e}function Hn(e){O.trackingDerivation=e}function uf(e){var t=O.allowStateReads;return O.allowStateReads=e,t}function as(e){O.allowStateReads=e}function yA(e){if(e.dependenciesState_!==U.UP_TO_DATE_){e.dependenciesState_=U.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=U.UP_TO_DATE_}}var jF=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],Vo=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ff=!0,bA=!1,O=function(){var e=Gu();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ff=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Vo().version&&(ff=!1),ff?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Vo):(setTimeout(function(){bA||E(35)},1),new Vo)}();function FF(){if((O.pendingReactions.length||O.inBatch||O.isRunningReactions)&&E(36),bA=!0,ff){var e=Gu();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),O=new Vo}}function BF(){return O}function zF(){var e=new Vo;for(var t in e)jF.indexOf(t)===-1&&(O[t]=e[t]);O.allowStateChanges=!O.enforceActions}function UF(e){return e.observers_&&e.observers_.size>0}function VF(e){return e.observers_}function WF(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function mA(e,t){e.observers_.delete(t),e.observers_.size===0&&wA(e)}function wA(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,O.pendingUnobservations.push(e))}function at(){O.inBatch++}function ut(){if(--O.inBatch===0){TA();for(var e=O.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Ut&&n.suspend_())}O.pendingUnobservations=[]}}function AA(e){DF(e);var t=O.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&O.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&O.inBatch>0&&wA(e),!1)}function OA(e){e.lowestObserverState_!==U.STALE_&&(e.lowestObserverState_=U.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===U.UP_TO_DATE_&&(process.env.NODE_ENV!=="production"&&t.isTracing_!==Vt.NONE&&EA(t,e),t.onBecomeStale_()),t.dependenciesState_=U.STALE_}))}function kF(e){e.lowestObserverState_!==U.STALE_&&(e.lowestObserverState_=U.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===U.POSSIBLY_STALE_?(t.dependenciesState_=U.STALE_,process.env.NODE_ENV!=="production"&&t.isTracing_!==Vt.NONE&&EA(t,e)):t.dependenciesState_===U.UP_TO_DATE_&&(e.lowestObserverState_=U.UP_TO_DATE_)}))}function qF(e){e.lowestObserverState_===U.UP_TO_DATE_&&(e.lowestObserverState_=U.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===U.UP_TO_DATE_&&(t.dependenciesState_=U.POSSIBLY_STALE_,t.onBecomeStale_())}))}function EA(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===Vt.BREAK){var n=[];SA(LA(e),n,1),new Function(`debugger;
|
|
24
|
+
Use '@override' decorator for methods overridden by subclass.`)}}function AF(e){return Ot(e,at)||Wo(e,at,En({},e[at])),e[at]}function Go(e){return typeof e=="object"&&typeof e.kind=="string"}function ff(e,t){process.env.NODE_ENV!=="production"&&!t.includes(e.kind)&&E("The decorator applied to '"+String(e.name)+"' cannot be used on a "+e.kind+" element")}var R=Symbol("mobx administration"),Sr=function(){function e(n){n===void 0&&(n=process.env.NODE_ENV!=="production"?"Atom@"+At():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=U.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return YA(this)},t.reportChanged=function(){ut(),XA(this),ft()},t.toString=function(){return this.name_},hs(e,[{key:"isBeingObserved",get:function(){return Et(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=St(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Et(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=St(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Et(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=St(this.flags_,e.diffValueMask_,r===1)}}])}();Sr.isBeingObservedMask_=1,Sr.isPendingUnobservationMask_=2,Sr.diffValueMask_=4;var _p=Er("Atom",Sr);function vp(e,t,n){t===void 0&&(t=fs),n===void 0&&(n=fs);var r=new Sr(e);return t!==fs&&aO(r,t),n!==fs&&Np(r,n),r}function OF(e,t){return e===t}function EF(e,t){return zp(e,t)}function SF(e,t){return zp(e,t,1)}function xF(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ni={identity:OF,structural:EF,default:xF,shallow:SF};function ri(e,t,n){return fi(e)?e:Array.isArray(e)?Se.array(e,{name:n}):ot(e)?Se.object(e,void 0,{name:n}):cs(e)?Se.map(e,{name:n}):Yn(e)?Se.set(e,{name:n}):typeof e=="function"&&!ai(e)&&!vs(e)?OA(e)?ui(e):_s(n,e):e}function TF(e,t,n){if(e==null||ye(e)||Ze(e)||ve(e)||ge(e))return e;if(Array.isArray(e))return Se.array(e,{name:n,deep:!1});if(ot(e))return Se.object(e,void 0,{name:n,deep:!1});if(cs(e))return Se.map(e,{name:n,deep:!1});if(Yn(e))return Se.set(e,{name:n,deep:!1});process.env.NODE_ENV!=="production"&&E("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}function cf(e){return e}function RF(e,t){return process.env.NODE_ENV!=="production"&&fi(e)&&E("observable.struct should not be used with observable values"),zp(e,t)?t:e}var PA="override",PF=Qt({annotationType_:PA,make_:NF,extend_:MF,decorate_20223_:$F});function lf(e){return e.annotationType_===PA}function NF(e,t){return process.env.NODE_ENV!=="production"&&e.isPlainObject_&&E("Cannot apply '"+this.annotationType_+"' to '"+e.name_+"."+t.toString()+"':"+(`
|
|
25
|
+
'`+this.annotationType_+"' cannot be used on plain objects.")),process.env.NODE_ENV!=="production"&&!Ot(e.appliedAnnotations_,t)&&E("'"+e.name_+"."+t.toString()+"' is annotated with '"+this.annotationType_+"', but no such annotated member was found on prototype."),0}function MF(e,t,n,r){E("'"+this.annotationType_+"' can only be used with 'makeObservable'")}function $F(e,t){console.warn("'"+this.annotationType_+"' cannot be used with decorators - this is a no-op")}function Ho(e,t){return{annotationType_:e,options_:t,make_:IF,extend_:DF,decorate_20223_:CF}}function IF(e,t,n,r){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,n,!1)===null?0:1;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if(ai(n.value))return 1;var s=NA(e,this,t,n,!1);return An(r,t,s),2}function DF(e,t,n,r){var i=NA(e,this,t,n);return e.defineProperty_(t,i,r)}function CF(e,t){process.env.NODE_ENV!=="production"&&ff(t,["method","field"]);var n=t.kind,r=t.name,i=t.addInitializer,s=this,o=function(f){var c,l,h,d;return xr((c=(l=s.options_)==null?void 0:l.name)!=null?c:r.toString(),f,(h=(d=s.options_)==null?void 0:d.autoAction)!=null?h:!1)};if(n=="field")return function(u){var f,c=u;return ai(c)||(c=o(c)),(f=s.options_)!=null&&f.bound&&(c=c.bind(this),c.isMobxAction=!0),c};if(n=="method"){var a;return ai(e)||(e=o(e)),(a=this.options_)!=null&&a.bound&&i(function(){var u=this,f=u[r].bind(u);f.isMobxAction=!0,u[r]=f}),e}E("Cannot apply '"+s.annotationType_+"' to '"+String(r)+"' (kind: "+n+"):"+(`
|
|
26
|
+
'`+s.annotationType_+"' can only be used on properties with a function value."))}function LF(e,t,n,r){var i=t.annotationType_,s=r.value;process.env.NODE_ENV!=="production"&&!ue(s)&&E("Cannot apply '"+i+"' to '"+e.name_+"."+n.toString()+"':"+(`
|
|
27
|
+
'`+i+"' can only be used on properties with a function value."))}function NA(e,t,n,r,i){var s,o,a,u,f,c,l;i===void 0&&(i=O.safeDescriptors),LF(e,t,n,r);var h=r.value;if((s=t.options_)!=null&&s.bound){var d;h=h.bind((d=e.proxy_)!=null?d:e.target_)}return{value:xr((o=(a=t.options_)==null?void 0:a.name)!=null?o:n.toString(),h,(u=(f=t.options_)==null?void 0:f.autoAction)!=null?u:!1,(c=t.options_)!=null&&c.bound?(l=e.proxy_)!=null?l:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function MA(e,t){return{annotationType_:e,options_:t,make_:jF,extend_:FF,decorate_20223_:BF}}function jF(e,t,n,r){var i;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!Ot(e.target_,t)||!vs(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(vs(n.value))return 1;var s=$A(e,this,t,n,!1,!1);return An(r,t,s),2}function FF(e,t,n,r){var i,s=$A(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,s,r)}function BF(e,t){var n;process.env.NODE_ENV!=="production"&&ff(t,["method"]);var r=t.name,i=t.addInitializer;return vs(e)||(e=ui(e)),(n=this.options_)!=null&&n.bound&&i(function(){var s=this,o=s[r].bind(s);o.isMobXFlow=!0,s[r]=o}),e}function zF(e,t,n,r){var i=t.annotationType_,s=r.value;process.env.NODE_ENV!=="production"&&!ue(s)&&E("Cannot apply '"+i+"' to '"+e.name_+"."+n.toString()+"':"+(`
|
|
28
|
+
'`+i+"' can only be used on properties with a generator function value."))}function $A(e,t,n,r,i,s){s===void 0&&(s=O.safeDescriptors),zF(e,t,n,r);var o=r.value;if(vs(o)||(o=ui(o)),i){var a;o=o.bind((a=e.proxy_)!=null?a:e.target_),o.isMobXFlow=!0}return{value:o,configurable:s?e.isPlainObject_:!0,enumerable:!1,writable:!s}}function gp(e,t){return{annotationType_:e,options_:t,make_:UF,extend_:kF,decorate_20223_:VF}}function UF(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function kF(e,t,n,r){return WF(e,this,t,n),e.defineComputedProperty_(t,En({},this.options_,{get:n.get,set:n.set}),r)}function VF(e,t){process.env.NODE_ENV!=="production"&&ff(t,["getter"]);var n=this,r=t.name,i=t.addInitializer;return i(function(){var s=li(this)[R],o=En({},n.options_,{get:e,context:this});o.name||(o.name=process.env.NODE_ENV!=="production"?s.name_+"."+r.toString():"ObservableObject."+r.toString()),s.values_.set(r,new Vt(o))}),function(){return this[R].getObservablePropValue_(r)}}function WF(e,t,n,r){var i=t.annotationType_,s=r.get;process.env.NODE_ENV!=="production"&&!s&&E("Cannot apply '"+i+"' to '"+e.name_+"."+n.toString()+"':"+(`
|
|
29
|
+
'`+i+"' can only be used on getter(+setter) properties."))}function hf(e,t){return{annotationType_:e,options_:t,make_:qF,extend_:GF,decorate_20223_:HF}}function qF(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function GF(e,t,n,r){var i,s;return KF(e,this,t,n),e.defineObservableProperty_(t,n.value,(i=(s=this.options_)==null?void 0:s.enhancer)!=null?i:ri,r)}function HF(e,t){if(process.env.NODE_ENV!=="production"){if(t.kind==="field")throw E("Please use `@observable accessor "+String(t.name)+"` instead of `@observable "+String(t.name)+"`");ff(t,["accessor"])}var n=this,r=t.kind,i=t.name,s=new WeakSet;function o(a,u){var f,c,l=li(a)[R],h=new Tr(u,(f=(c=n.options_)==null?void 0:c.enhancer)!=null?f:ri,process.env.NODE_ENV!=="production"?l.name_+"."+i.toString():"ObservableObject."+i.toString(),!1);l.values_.set(i,h),s.add(a)}if(r=="accessor")return{get:function(){return s.has(this)||o(this,e.get.call(this)),this[R].getObservablePropValue_(i)},set:function(u){return s.has(this)||o(this,u),this[R].setObservablePropValue_(i,u)},init:function(u){return s.has(this)||o(this,u),u}}}function KF(e,t,n,r){var i=t.annotationType_;process.env.NODE_ENV!=="production"&&!("value"in r)&&E("Cannot apply '"+i+"' to '"+e.name_+"."+n.toString()+"':"+(`
|
|
30
|
+
'`+i+"' cannot be used on getter/setter properties"))}var YF="true",XF=IA();function IA(e){return{annotationType_:YF,options_:e,make_:JF,extend_:ZF,decorate_20223_:QF}}function JF(e,t,n,r){var i,s;if(n.get)return Ko.make_(e,t,n,r);if(n.set){var o=xr(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:O.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(An(r,t,{configurable:!0,set:o}),2)}if(r!==e.target_&&typeof n.value=="function"){var a;if(OA(n.value)){var u,f=(u=this.options_)!=null&&u.autoBind?ui.bound:ui;return f.make_(e,t,n,r)}var c=(a=this.options_)!=null&&a.autoBind?_s.bound:_s;return c.make_(e,t,n,r)}var l=((i=this.options_)==null?void 0:i.deep)===!1?Se.ref:Se;if(typeof n.value=="function"&&(s=this.options_)!=null&&s.autoBind){var h;n.value=n.value.bind((h=e.proxy_)!=null?h:e.target_)}return l.make_(e,t,n,r)}function ZF(e,t,n,r){var i,s;if(n.get)return Ko.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:O.safeDescriptors?e.isPlainObject_:!0,set:xr(t.toString(),n.set)},r);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var o;n.value=n.value.bind((o=e.proxy_)!=null?o:e.target_)}var a=((s=this.options_)==null?void 0:s.deep)===!1?Se.ref:Se;return a.extend_(e,t,n,r)}function QF(e,t){E("'"+this.annotationType_+"' cannot be used as a decorator")}var eB="observable",tB="observable.ref",nB="observable.shallow",rB="observable.struct",DA={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(DA);function pf(e){return e||DA}var yp=hf(eB),iB=hf(tB,{enhancer:cf}),sB=hf(nB,{enhancer:TF}),oB=hf(rB,{enhancer:RF}),CA=Qt(yp);function df(e){return e.deep===!0?ri:e.deep===!1?cf:uB(e.defaultDecorator)}function aB(e){var t;return e?(t=e.defaultDecorator)!=null?t:IA(e):void 0}function uB(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:ri}function LA(e,t,n){if(Go(t))return yp.decorate_20223_(e,t);if(On(t)){qo(e,t,yp);return}return fi(e)?e:ot(e)?Se.object(e,t,n):Array.isArray(e)?Se.array(e,t):cs(e)?Se.map(e,t):Yn(e)?Se.set(e,t):typeof e=="object"&&e!==null?e:Se.box(e,t)}wA(LA,CA);var fB={box:function(t,n){var r=pf(n);return new Tr(t,df(r),r.name,!0,r.equals)},array:function(t,n){var r=pf(n);return(O.useProxies===!1||r.proxy===!1?Mz:wz)(t,df(r),r.name)},map:function(t,n){var r=pf(n);return new Cp(t,df(r),r.name)},set:function(t,n){var r=pf(n);return new Lp(t,df(r),r.name)},object:function(t,n,r){return Nr(function(){return Mp(O.useProxies===!1||r?.proxy===!1?li({},r):vz({},r),t,n)})},ref:Qt(iB),shallow:Qt(sB),deep:CA,struct:Qt(oB)},Se=wA(LA,fB),jA="computed",cB="computed.struct",bp=gp(jA),lB=gp(cB,{equals:ni.structural}),Ko=function(t,n){if(Go(n))return bp.decorate_20223_(t,n);if(On(n))return qo(t,n,bp);if(ot(t))return Qt(gp(jA,t));process.env.NODE_ENV!=="production"&&(ue(t)||E("First argument to `computed` should be an expression."),ue(n)&&E("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var r=ot(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new Vt(r)};Object.assign(Ko,bp),Ko.struct=Qt(lB);var FA,BA,_f=0,hB=1,pB=(FA=(BA=of(function(){},"name"))==null?void 0:BA.configurable)!=null?FA:!1,zA={value:"action",configurable:!0,writable:!1,enumerable:!1};function xr(e,t,n,r){n===void 0&&(n=!1),process.env.NODE_ENV!=="production"&&(ue(t)||E("`action` can only be invoked on functions"),(typeof e!="string"||!e)&&E("actions should have valid names, got: '"+e+"'"));function i(){return UA(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},pB&&(zA.value=e,An(i,"name",zA)),i}function UA(e,t,n,r,i){var s=kA(e,t,r,i);try{return n.apply(r,i)}catch(o){throw s.error_=o,o}finally{VA(s)}}function kA(e,t,n,r){var i=process.env.NODE_ENV!=="production"&&Me()&&!!e,s=0;if(process.env.NODE_ENV!=="production"&&i){s=Date.now();var o=r?Array.from(r):af;xt({type:xp,name:e,object:n,arguments:o})}var a=O.trackingDerivation,u=!t||!a;ut();var f=O.allowStateChanges;u&&(si(),f=vf(!0));var c=mf(!0),l={runAsAction_:u,prevDerivation_:a,prevAllowStateChanges_:f,prevAllowStateReads_:c,notifySpy_:i,startTime_:s,actionId_:hB++,parentActionId_:_f};return _f=l.actionId_,l}function VA(e){_f!==e.actionId_&&E(30),_f=e.parentActionId_,e.error_!==void 0&&(O.suppressReactionErrors=!0),gf(e.prevAllowStateChanges_),ds(e.prevAllowStateReads_),ft(),e.runAsAction_&&Xn(e.prevDerivation_),process.env.NODE_ENV!=="production"&&e.notifySpy_&&Tt({time:Date.now()-e.startTime_}),O.suppressReactionErrors=!1}function mp(e,t){var n=vf(e);try{return t()}finally{gf(n)}}function vf(e){var t=O.allowStateChanges;return O.allowStateChanges=e,t}function gf(e){O.allowStateChanges=e}var dB="create",Tr=function(e){function t(r,i,s,o,a){var u;return s===void 0&&(s=process.env.NODE_ENV!=="production"?"ObservableValue@"+At():"ObservableValue"),o===void 0&&(o=!0),a===void 0&&(a=ni.default),u=e.call(this,s)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=i,u.name_=s,u.equals=a,u.value_=i(r,void 0,s),process.env.NODE_ENV!=="production"&&o&&Me()&&oi({type:dB,object:u,observableKind:"value",debugObjectName:u.name_,newValue:""+u.value_}),u}RA(t,e);var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){var s=this.value_;if(i=this.prepareNewValue_(i),i!==O.UNCHANGED){var o=Me();process.env.NODE_ENV!=="production"&&o&&xt({type:nn,object:this,observableKind:"value",debugObjectName:this.name_,newValue:i,oldValue:s}),this.setNewValue_(i),process.env.NODE_ENV!=="production"&&o&&Tt()}},n.prepareNewValue_=function(i){if(Sn(this),qt(this)){var s=Gt(this,{object:this,type:nn,newValue:i});if(!s)return O.UNCHANGED;i=s.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?O.UNCHANGED:i},n.setNewValue_=function(i){var s=this.value_;this.value_=i,this.reportChanged(),en(this)&&tn(this,{type:nn,object:this,newValue:i,oldValue:s})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return Jo(this,i)},n.observe_=function(i,s){return s&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:nn,newValue:this.value_,oldValue:void 0}),Zo(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return xA(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Sr),wp=Er("ObservableValue",Tr),Vt=function(){function e(n){this.dependenciesState_=U.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=U.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new yf(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Wt.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||E(31),this.derivation=n.get,this.name_=n.name||(process.env.NODE_ENV!=="production"?"ComputedValue@"+At():"ComputedValue"),n.set&&(this.setter_=xr(process.env.NODE_ENV!=="production"?this.name_+"-setter":"ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?ni.structural:ni.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){TB(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&E(32,this.name_,this.derivation),O.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Ap(this)&&(this.warnAboutUntrackedRead_(),ut(),this.value_=this.computeValue_(!1),ft());else if(YA(this),Ap(this)){var r=O.trackingContext;this.keepAlive_&&!r&&(O.trackingContext=this),this.trackAndCompute()&&xB(this),O.trackingContext=r}var i=this.value_;if(bf(i))throw i.cause;return i},t.set=function(r){if(this.setter_){this.isRunningSetter&&E(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else E(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,i=this.dependenciesState_===U.NOT_TRACKING_,s=this.computeValue_(!0),o=i||bf(r)||bf(s)||!this.equals_(r,s);return o&&(this.value_=s,process.env.NODE_ENV!=="production"&&Me()&&oi({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:r,newValue:s})),o},t.computeValue_=function(r){this.isComputing=!0;var i=vf(!1),s;if(r)s=WA(this,this.derivation,this.scope_);else if(O.disableErrorBoundaries===!0)s=this.derivation.call(this.scope_);else try{s=this.derivation.call(this.scope_)}catch(o){s=new yf(o)}return gf(i),this.isComputing=!1,s},t.suspend_=function(){this.keepAlive_||(Op(this),this.value_=void 0,process.env.NODE_ENV!=="production"&&this.isTracing_!==Wt.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},t.observe_=function(r,i){var s=this,o=!0,a=void 0;return Pp(function(){var u=s.get();if(!o||i){var f=si();r({observableKind:"computed",debugObjectName:s.name_,type:nn,object:s,newValue:u,oldValue:a}),Xn(f)}o=!1,a=u})},t.warnAboutUntrackedRead_=function(){process.env.NODE_ENV!=="production"&&(this.isTracing_!==Wt.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),(typeof this.requiresReaction_=="boolean"?this.requiresReaction_:O.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."))},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return xA(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},hs(e,[{key:"isComputing",get:function(){return Et(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=St(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return Et(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=St(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return Et(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=St(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return Et(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=St(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return Et(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=St(this.flags_,e.diffValueMask_,r===1)}}])}();Vt.isComputingMask_=1,Vt.isRunningSetterMask_=2,Vt.isBeingObservedMask_=4,Vt.isPendingUnobservationMask_=8,Vt.diffValueMask_=16;var ii=Er("ComputedValue",Vt),U;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(U||(U={}));var Wt;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Wt||(Wt={}));var yf=function(t){this.cause=void 0,this.cause=t};function bf(e){return e instanceof yf}function Ap(e){switch(e.dependenciesState_){case U.UP_TO_DATE_:return!1;case U.NOT_TRACKING_:case U.STALE_:return!0;case U.POSSIBLY_STALE_:{for(var t=mf(!0),n=si(),r=e.observing_,i=r.length,s=0;s<i;s++){var o=r[s];if(ii(o)){if(O.disableErrorBoundaries)o.get();else try{o.get()}catch{return Xn(n),ds(t),!0}if(e.dependenciesState_===U.STALE_)return Xn(n),ds(t),!0}}return qA(e),Xn(n),ds(t),!1}}}function _B(){return O.trackingDerivation!==null}function Sn(e){if(process.env.NODE_ENV!=="production"){var t=e.observers_.size>0;!O.allowStateChanges&&(t||O.enforceActions==="always")&&console.warn("[MobX] "+(O.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+e.name_)}}function vB(e){process.env.NODE_ENV!=="production"&&!O.allowStateReads&&O.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}function WA(e,t,n){var r=mf(!0);qA(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++O.runId;var i=O.trackingDerivation;O.trackingDerivation=e,O.inBatch++;var s;if(O.disableErrorBoundaries===!0)s=t.call(n);else try{s=t.call(n)}catch(o){s=new yf(o)}return O.inBatch--,O.trackingDerivation=i,yB(e),gB(e),ds(r),s}function gB(e){process.env.NODE_ENV!=="production"&&e.observing_.length===0&&(typeof e.requiresObservable_=="boolean"?e.requiresObservable_:O.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}function yB(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=U.UP_TO_DATE_,i=0,s=e.unboundDepsCount_,o=0;o<s;o++){var a=n[o];a.diffValue===0&&(a.diffValue=1,i!==o&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(n.length=i,e.newObserving_=null,s=t.length;s--;){var u=t[s];u.diffValue===0&&HA(u,e),u.diffValue=0}for(;i--;){var f=n[i];f.diffValue===1&&(f.diffValue=0,SB(f,e))}r!==U.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function Op(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)HA(t[n],e);e.dependenciesState_=U.NOT_TRACKING_}function Ep(e){var t=si();try{return e()}finally{Xn(t)}}function si(){var e=O.trackingDerivation;return O.trackingDerivation=null,e}function Xn(e){O.trackingDerivation=e}function mf(e){var t=O.allowStateReads;return O.allowStateReads=e,t}function ds(e){O.allowStateReads=e}function qA(e){if(e.dependenciesState_!==U.UP_TO_DATE_){e.dependenciesState_=U.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=U.UP_TO_DATE_}}var bB=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],Yo=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},wf=!0,GA=!1,O=function(){var e=sf();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(wf=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Yo().version&&(wf=!1),wf?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Yo):(setTimeout(function(){GA||E(35)},1),new Yo)}();function mB(){if((O.pendingReactions.length||O.inBatch||O.isRunningReactions)&&E(36),GA=!0,wf){var e=sf();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),O=new Yo}}function wB(){return O}function AB(){var e=new Yo;for(var t in e)bB.indexOf(t)===-1&&(O[t]=e[t]);O.allowStateChanges=!O.enforceActions}function OB(e){return e.observers_&&e.observers_.size>0}function EB(e){return e.observers_}function SB(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function HA(e,t){e.observers_.delete(t),e.observers_.size===0&&KA(e)}function KA(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,O.pendingUnobservations.push(e))}function ut(){O.inBatch++}function ft(){if(--O.inBatch===0){eO();for(var e=O.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Vt&&n.suspend_())}O.pendingUnobservations=[]}}function YA(e){vB(e);var t=O.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&O.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&O.inBatch>0&&KA(e),!1)}function XA(e){e.lowestObserverState_!==U.STALE_&&(e.lowestObserverState_=U.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===U.UP_TO_DATE_&&(process.env.NODE_ENV!=="production"&&t.isTracing_!==Wt.NONE&&JA(t,e),t.onBecomeStale_()),t.dependenciesState_=U.STALE_}))}function xB(e){e.lowestObserverState_!==U.STALE_&&(e.lowestObserverState_=U.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===U.POSSIBLY_STALE_?(t.dependenciesState_=U.STALE_,process.env.NODE_ENV!=="production"&&t.isTracing_!==Wt.NONE&&JA(t,e)):t.dependenciesState_===U.UP_TO_DATE_&&(e.lowestObserverState_=U.UP_TO_DATE_)}))}function TB(e){e.lowestObserverState_===U.UP_TO_DATE_&&(e.lowestObserverState_=U.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===U.UP_TO_DATE_&&(t.dependenciesState_=U.POSSIBLY_STALE_,t.onBecomeStale_())}))}function JA(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===Wt.BREAK){var n=[];ZA(fO(e),n,1),new Function(`debugger;
|
|
74
31
|
/*
|
|
75
32
|
Tracing '`+e.name_+`'
|
|
76
33
|
|
|
@@ -78,26 +35,18 @@ You are entering this break point because derivation '`+e.name_+"' is being trac
|
|
|
78
35
|
Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
|
|
79
36
|
The stackframe you are looking for is at least ~6-8 stack-frames up.
|
|
80
37
|
|
|
81
|
-
`+(e instanceof
|
|
38
|
+
`+(e instanceof Vt?e.derivation.toString().replace(/[*]\//g,"/"):"")+`
|
|
82
39
|
|
|
83
40
|
The dependencies for this derivation are:
|
|
84
41
|
|
|
85
42
|
`+n.join(`
|
|
86
43
|
`)+`
|
|
87
44
|
*/
|
|
88
|
-
`)()}}function SA(e,t,n){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+" ".repeat(n-1)+e.name),e.dependencies&&e.dependencies.forEach(function(r){return SA(r,t,n+1)})}var En=function(){function e(n,r,i,s){n===void 0&&(n=process.env.NODE_ENV!=="production"?"Reaction@"+wt():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=U.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Vt.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=s}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,O.pendingReactions.push(this),TA())},t.runReaction_=function(){if(!this.isDisposed){at(),this.isScheduled=!1;var r=O.trackingContext;if(O.trackingContext=this,ip(this)){this.isTrackPending=!0;try{this.onInvalidate_(),process.env.NODE_ENV!=="production"&&this.isTrackPending&&$e()&&Qr({name:this.name_,type:"scheduled-reaction"})}catch(i){this.reportExceptionInDerivation_(i)}}O.trackingContext=r,ut()}},t.track=function(r){if(!this.isDisposed){at();var i=$e(),s;process.env.NODE_ENV!=="production"&&i&&(s=Date.now(),St({name:this.name_,type:"reaction"})),this.isRunning=!0;var o=O.trackingContext;O.trackingContext=this;var a=gA(this,r,void 0);O.trackingContext=o,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&sp(this),af(a)&&this.reportExceptionInDerivation_(a.cause),process.env.NODE_ENV!=="production"&&i&&xt({time:Date.now()-s}),ut()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(O.disableErrorBoundaries)throw r;var s=process.env.NODE_ENV!=="production"?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";O.suppressReactionErrors?process.env.NODE_ENV!=="production"&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(s,r),process.env.NODE_ENV!=="production"&&$e()&&Qr({type:"error",name:this.name_,message:s,error:""+r}),O.globalReactionErrorHandlers.forEach(function(o){return o(r,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(at(),sp(this),ut()))},t.getDisposer_=function(r){var i=this,s=function o(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",o)};return r==null||r.addEventListener==null||r.addEventListener("abort",s),s[R]=this,s},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){r===void 0&&(r=!1),qA(this,r)},ss(e,[{key:"isDisposed",get:function(){return Ot(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=Et(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return Ot(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=Et(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return Ot(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=Et(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return Ot(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=Et(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return Ot(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=Et(this.flags_,e.diffValueMask_,r===1)}}])}();En.isDisposedMask_=1,En.isScheduledMask_=2,En.isTrackPendingMask_=4,En.isRunningMask_=8,En.diffValueMask_=16;function GF(e){return O.globalReactionErrorHandlers.push(e),function(){var t=O.globalReactionErrorHandlers.indexOf(e);t>=0&&O.globalReactionErrorHandlers.splice(t,1)}}var xA=100,ap=function(t){return t()};function TA(){O.inBatch>0||O.isRunningReactions||ap(HF)}function HF(){O.isRunningReactions=!0;for(var e=O.pendingReactions,t=0;e.length>0;){++t===xA&&(console.error(process.env.NODE_ENV!=="production"?"Reaction doesn't converge to a stable state after "+xA+" iterations."+(" Probably there is a cycle in the reactive function: "+e[0]):"[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}O.isRunningReactions=!1}var cf=mr("Reaction",En);function KF(e){var t=ap;ap=function(r){return e(function(){return t(r)})}}function $e(){return process.env.NODE_ENV!=="production"&&!!O.spyListeners.length}function Qr(e){if(process.env.NODE_ENV!=="production"&&O.spyListeners.length)for(var t=O.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function St(e){if(process.env.NODE_ENV!=="production"){var t=An({},e,{spyReportStart:!0});Qr(t)}}var YF={type:"report-end",spyReportEnd:!0};function xt(e){process.env.NODE_ENV!=="production"&&Qr(e?An({},e,{type:"report-end",spyReportEnd:!0}):YF)}function RA(e){return process.env.NODE_ENV==="production"?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(O.spyListeners.push(e),Kh(function(){O.spyListeners=O.spyListeners.filter(function(t){return t!==e})}))}var up="action",XF="action.bound",PA="autoAction",JF="autoAction.bound",NA="<unnamed action>",fp=zo(up),ZF=zo(XF,{bound:!0}),cp=zo(PA,{autoAction:!0}),QF=zo(JF,{autoAction:!0,bound:!0});function $A(e){var t=function(r,i){if(ue(r))return Ar(r.name||NA,r,e);if(ue(i))return Ar(r,i,e);if(Bo(i))return(e?cp:fp).decorate_20223_(r,i);if(wn(i))return Fo(r,i,e?cp:fp);if(wn(r))return Jt(zo(e?PA:up,{name:r,autoAction:e}));process.env.NODE_ENV!=="production"&&E("Invalid arguments for `action`")};return t}var Er=$A(!1);Object.assign(Er,fp);var us=$A(!0);Object.assign(us,cp),Er.bound=Jt(ZF),us.bound=Jt(QF);function MA(e){return dA(e.name||NA,!1,e,this,void 0)}function ei(e){return ue(e)&&e.isMobxAction===!0}function lp(e,t){var n,r,i,s;t===void 0&&(t=Hh),process.env.NODE_ENV!=="production"&&(ue(e)||E("Autorun expects a function as first argument"),ei(e)&&E("Autorun does not accept actions since actions are untrackable"));var o=(n=(r=t)==null?void 0:r.name)!=null?n:process.env.NODE_ENV!=="production"?e.name||"Autorun@"+wt():"Autorun",a=!t.scheduler&&!t.delay,u;if(a)u=new En(o,function(){this.track(l)},t.onError,t.requiresObservable);else{var f=IA(t),c=!1;u=new En(o,function(){c||(c=!0,f(function(){c=!1,u.isDisposed||u.track(l)}))},t.onError,t.requiresObservable)}function l(){e(u)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||u.schedule_(),u.getDisposer_((s=t)==null?void 0:s.signal)}var eB=function(t){return t()};function IA(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:eB}function tB(e,t,n){var r,i,s;n===void 0&&(n=Hh),process.env.NODE_ENV!=="production"&&((!ue(e)||!ue(t))&&E("First and second argument to reaction should be functions"),st(n)||E("Third argument of reactions should be an object"));var o=(r=n.name)!=null?r:process.env.NODE_ENV!=="production"?"Reaction@"+wt():"Reaction",a=Er(o,n.onError?nB(n.onError,t):t),u=!n.scheduler&&!n.delay,f=IA(n),c=!0,l=!1,h,d=n.compareStructural?Yr.structural:n.equals||Yr.default,_=new En(o,function(){c||u?v():l||(l=!0,f(v))},n.onError,n.requiresObservable);function v(){if(l=!1,!_.isDisposed){var g=!1,y=h;_.track(function(){var b=np(!1,function(){return e(_)});g=c||!d(h,b),h=b}),(c&&n.fireImmediately||!c&&g)&&a(h,y,_),c=!1}}return(i=n)!=null&&(i=i.signal)!=null&&i.aborted||_.schedule_(),_.getDisposer_((s=n)==null?void 0:s.signal)}function nB(e,t){return function(){try{return t.apply(this,arguments)}catch(n){e.call(this,n)}}}var rB="onBO",iB="onBUO";function DA(e,t,n){return CA(rB,e,t,n)}function hp(e,t,n){return CA(iB,e,t,n)}function CA(e,t,n,r){var i=typeof r=="function"?nn(t,n):nn(t),s=ue(r)?r:n,o=e+"L";return i[o]?i[o].add(s):i[o]=new Set([s]),function(){var a=i[o];a&&(a.delete(s),a.size===0&&delete i[o])}}var sB="never",lf="always",oB="observed";function aB(e){e.isolateGlobalState===!0&&FF();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(O.useProxies=t===lf?!0:t===sB?!1:typeof Proxy<"u"),t==="ifavailable"&&(O.verifyProxies=!0),n!==void 0){var r=n===lf?lf:n===oB;O.enforceActions=r,O.allowStateChanges=!(r===!0||r===lf)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(O[i]=!!e[i])}),O.allowStateReads=!O.observableRequiresReaction,process.env.NODE_ENV!=="production"&&O.disableErrorBoundaries===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&KF(e.reactionScheduler)}function pp(e,t,n,r){process.env.NODE_ENV!=="production"&&(arguments.length>4&&E("'extendObservable' expected 2-4 arguments"),typeof e!="object"&&E("'extendObservable' expects an object as first argument"),ve(e)&&E("'extendObservable' should not be used on maps, use map.merge instead"),st(t)||E("'extendObservable' only accepts plain objects as second argument"),(ni(t)||ni(n))&&E("Extending an object with another observable (object) is not supported"));var i=Dj(t);return xr(function(){var s=ii(e,r)[R];is(i).forEach(function(o){s.extend_(o,i[o],n&&o in n?n[o]:!0)})}),e}function LA(e,t){return jA(nn(e,t))}function jA(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=fB(e.observing_).map(jA)),t}function uB(e,t){return FA(nn(e,t))}function FA(e){var t={name:e.name_};return UF(e)&&(t.observers=Array.from(VF(e)).map(FA)),t}function fB(e){return Array.from(new Set(e))}var cB=0;function hf(){this.message="FLOW_CANCELLED"}hf.prototype=Object.create(Error.prototype);function lB(e){return e instanceof hf}var dp=iA("flow"),hB=iA("flow.bound",{bound:!0}),ti=Object.assign(function(t,n){if(Bo(n))return dp.decorate_20223_(t,n);if(wn(n))return Fo(t,n,dp);process.env.NODE_ENV!=="production"&&arguments.length!==1&&E("Flow expects single argument with generator function");var r=t,i=r.name||"<unnamed flow>",s=function(){var a=this,u=arguments,f=++cB,c=Er(i+" - runid: "+f+" - init",r).apply(a,u),l,h=void 0,d=new Promise(function(_,v){var g=0;l=v;function y(m){h=void 0;var A;try{A=Er(i+" - runid: "+f+" - yield "+g++,c.next).call(c,m)}catch(S){return v(S)}w(A)}function b(m){h=void 0;var A;try{A=Er(i+" - runid: "+f+" - yield "+g++,c.throw).call(c,m)}catch(S){return v(S)}w(A)}function w(m){if(ue(m?.then)){m.then(w,v);return}return m.done?_(m.value):(h=Promise.resolve(m.value),h.then(y,b))}y(void 0)});return d.cancel=Er(i+" - runid: "+f+" - cancel",function(){try{h&&BA(h);var _=c.return(void 0),v=Promise.resolve(_.value);v.then(ns,ns),BA(v),l(new hf)}catch(g){l(g)}}),d};return s.isMobXFlow=!0,s},dp);ti.bound=Jt(hB);function BA(e){ue(e.cancel)&&e.cancel()}function pB(e){return e}function fs(e){return e?.isMobXFlow===!0}function dB(e,t,n){var r;if(ve(e)||Je(e)||rp(e))r=xn(e);else if(ye(e)){if(process.env.NODE_ENV!=="production"&&!wn(t))return E("InterceptReads can only be used with a specific property, not with an object in general");r=xn(e,t)}else if(process.env.NODE_ENV!=="production")return E("Expected observable map, object or array as first array");return process.env.NODE_ENV!=="production"&&r.dehancer!==void 0?E("An intercept reader was already established"):(r.dehancer=typeof t=="function"?t:n,function(){r.dehancer=void 0})}function _B(e,t,n){return ue(n)?gB(e,t,n):vB(e,t)}function vB(e,t){return xn(e).intercept_(t)}function gB(e,t,n){return xn(e,t).intercept_(n)}function zA(e,t){if(t===void 0)return Jr(e);if(ye(e)===!1||!e[R].values_.has(t))return!1;var n=nn(e,t);return Jr(n)}function yB(e){return process.env.NODE_ENV!=="production"&&arguments.length>1?E("isComputed expects only 1 argument. Use isComputedProp to inspect the observability of a property"):zA(e)}function bB(e,t){return process.env.NODE_ENV!=="production"&&!wn(t)?E("isComputed expected a property name as second argument"):zA(e,t)}function UA(e,t){return e?t!==void 0?process.env.NODE_ENV!=="production"&&(ve(e)||Je(e))?E("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead."):ye(e)?e[R].values_.has(t):!1:ye(e)||!!e[R]||Jh(e)||cf(e)||Jr(e):!1}function ni(e){return process.env.NODE_ENV!=="production"&&arguments.length!==1&&E("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),UA(e)}function mB(e,t){return process.env.NODE_ENV!=="production"&&!wn(t)?E("expected a property name as second argument"):UA(e,t)}function Wo(e){if(ye(e))return e[R].keys_();if(ve(e)||ge(e))return Array.from(e.keys());if(Je(e))return e.map(function(t,n){return n});E(5)}function wB(e){if(ye(e))return Wo(e).map(function(t){return e[t]});if(ve(e))return Wo(e).map(function(t){return e.get(t)});if(ge(e))return Array.from(e.values());if(Je(e))return e.slice();E(6)}function AB(e){if(ye(e))return Wo(e).map(function(t){return[t,e[t]]});if(ve(e))return Wo(e).map(function(t){return[t,e.get(t)]});if(ge(e))return Array.from(e.entries());if(Je(e))return e.map(function(t,n){return[n,t]});E(7)}function VA(e,t,n){if(arguments.length===2&&!ge(e)){at();var r=t;try{for(var i in r)VA(e,i,r[i])}finally{ut()}return}ye(e)?e[R].set_(t,n):ve(e)?e.set(t,n):ge(e)?e.add(t):Je(e)?(typeof t!="number"&&(t=parseInt(t,10)),t<0&&E("Invalid index: '"+t+"'"),at(),t>=e.length&&(e.length=t+1),e[t]=n,ut()):E(8)}function OB(e,t){ye(e)?e[R].delete_(t):ve(e)||ge(e)?e.delete(t):Je(e)?(typeof t!="number"&&(t=parseInt(t,10)),e.splice(t,1)):E(9)}function WA(e,t){if(ye(e))return e[R].has_(t);if(ve(e))return e.has(t);if(ge(e))return e.has(t);if(Je(e))return t>=0&&t<e.length;E(10)}function EB(e,t){if(WA(e,t)){if(ye(e))return e[R].get_(t);if(ve(e))return e.get(t);if(Je(e))return e[t];E(11)}}function SB(e,t,n){if(ye(e))return e[R].defineProperty_(t,n);E(39)}function kA(e){if(ye(e))return e[R].ownKeys_();E(38)}function xB(e,t,n,r){return ue(n)?RB(e,t,n,r):TB(e,t,n)}function TB(e,t,n){return xn(e).observe_(t,n)}function RB(e,t,n,r){return xn(e,t).observe_(n,r)}function pf(e,t,n){return e.set(t,n),n}function cs(e,t){if(e==null||typeof e!="object"||e instanceof Date||!ni(e))return e;if(rp(e)||Jr(e))return cs(e.get(),t);if(t.has(e))return t.get(e);if(Je(e)){var n=pf(t,e,new Array(e.length));return e.forEach(function(o,a){n[a]=cs(o,t)}),n}if(ge(e)){var r=pf(t,e,new Set);return e.forEach(function(o){r.add(cs(o,t))}),r}if(ve(e)){var i=pf(t,e,new Map);return e.forEach(function(o,a){i.set(a,cs(o,t))}),i}else{var s=pf(t,e,{});return kA(e).forEach(function(o){Co.propertyIsEnumerable.call(e,o)&&(s[o]=cs(e[o],t))}),s}}function PB(e,t){return process.env.NODE_ENV!=="production"&&t&&E("toJS no longer supports options"),cs(e,new Map)}function qA(){if(process.env.NODE_ENV!=="production"){for(var e=!1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[n.length-1]=="boolean"&&(e=n.pop());var i=NB(n);if(!i)return E("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");i.isTracing_===Vt.NONE&&console.log("[mobx.trace] '"+i.name_+"' tracing enabled"),i.isTracing_=e?Vt.BREAK:Vt.LOG}}function NB(e){switch(e.length){case 0:return O.trackingDerivation;case 1:return nn(e[0]);case 2:return nn(e[0],e[1])}}function Sn(e,t){t===void 0&&(t=void 0),at();try{return e.apply(t)}finally{ut()}}function $B(e,t,n){return arguments.length===1||t&&typeof t=="object"?MB(e,t):GA(e,t,n||{})}function GA(e,t,n){var r;if(typeof n.timeout=="number"){var i=new Error("WHEN_TIMEOUT");r=setTimeout(function(){if(!o[R].isDisposed)if(o(),n.onError)n.onError(i);else throw i},n.timeout)}n.name=process.env.NODE_ENV!=="production"?n.name||"When@"+wt():"When";var s=Ar(process.env.NODE_ENV!=="production"?n.name+"-effect":"When-effect",t),o=lp(function(a){var u=np(!1,e);u&&(a.dispose(),r&&clearTimeout(r),s())},n);return o}function MB(e,t){var n;if(process.env.NODE_ENV!=="production"&&t&&t.onError)return E("the options 'onError' and 'promise' cannot be combined");if(t!=null&&(n=t.signal)!=null&&n.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var r,i,s=new Promise(function(o,a){var u,f=GA(e,o,An({},t,{onError:a}));r=function(){f(),a(new Error("WHEN_CANCELLED"))},i=function(){f(),a(new Error("WHEN_ABORTED"))},t==null||(u=t.signal)==null||u.addEventListener==null||u.addEventListener("abort",i)}).finally(function(){var o;return t==null||(o=t.signal)==null||o.removeEventListener==null?void 0:o.removeEventListener("abort",i)});return s.cancel=r,s}function ri(e){return e[R]}var IB={has:function(t,n){return process.env.NODE_ENV!=="production"&&O.trackingDerivation&&Lo("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),ri(t).has_(n)},get:function(t,n){return ri(t).get_(n)},set:function(t,n,r){var i;return wn(n)?(process.env.NODE_ENV!=="production"&&!ri(t).values_.has(n)&&Lo("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),(i=ri(t).set_(n,r,!0))!=null?i:!0):!1},deleteProperty:function(t,n){var r;return process.env.NODE_ENV!=="production"&&Lo("delete properties from an observable object. Use 'remove' from 'mobx' instead."),wn(n)?(r=ri(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return process.env.NODE_ENV!=="production"&&Lo("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),(i=ri(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return process.env.NODE_ENV!=="production"&&O.trackingDerivation&&Lo("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),ri(t).ownKeys_()},preventExtensions:function(t){E(13)}};function DB(e,t){var n,r;return Yw(),e=ii(e,t),(r=(n=e[R]).proxy_)!=null?r:n.proxy_=new Proxy(e,IB)}function Wt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function ko(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),Kh(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function kt(e,t){var n=Zr();try{for(var r=[].concat(e.interceptors_||[]),i=0,s=r.length;i<s&&(t=r[i](t),t&&!t.type&&E(14),!!t);i++);return t}finally{Hn(n)}}function Zt(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function qo(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),Kh(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Qt(e,t){var n=Zr(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,s=r.length;i<s;i++)r[i](t);Hn(n)}}function CB(e,t,n){return xr(function(){var r,i=ii(e,n)[R];process.env.NODE_ENV!=="production"&&t&&e[ot]&&E("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),(r=t)!=null||(t=zj(e)),is(t).forEach(function(s){return i.make_(s,t[s])})}),e}var _p=Symbol("mobx-keys");function LB(e,t,n){return process.env.NODE_ENV!=="production"&&(!st(e)&&!st(Object.getPrototypeOf(e))&&E("'makeAutoObservable' can only be used for classes that don't have a superclass"),ye(e)&&E("makeAutoObservable can only be used on objects not already made observable")),st(e)?pp(e,e,t,n):(xr(function(){var r=ii(e,n)[R];if(!e[_p]){var i=Object.getPrototypeOf(e),s=new Set([].concat(is(e),is(i)));s.delete("constructor"),s.delete(R),jo(i,_p,s)}e[_p].forEach(function(o){return r.make_(o,t&&o in t?t[o]:!0)})}),e)}var HA="splice",en="update",jB=1e4,FB={get:function(t,n){var r=t[R];return n===R?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):At(df,n)?df[n]:t[n]},set:function(t,n,r){var i=t[R];return n==="length"&&i.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:i.set_(parseInt(n),r),!0},preventExtensions:function(){E(15)}},vp=function(){function e(n,r,i,s){n===void 0&&(n=process.env.NODE_ENV!=="production"?"ObservableArray@"+wt():"ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=s,this.atom_=new wr(n),this.enhancer_=function(o,a){return r(o,a,process.env.NODE_ENV!=="production"?n+"[..]":"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return ko(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),qo(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&E("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var s=new Array(r-i),o=0;o<r-i;o++)s[o]=void 0;this.spliceWithArray_(i,0,s)}else this.spliceWithArray_(r,i-r)},t.updateArrayLength_=function(r,i){r!==this.lastKnownLength_&&E(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&iO(r+i+1)},t.spliceWithArray_=function(r,i,s){var o=this;On(this.atom_);var a=this.values_.length;if(r===void 0?r=0:r>a?r=a:r<0&&(r=Math.max(0,a+r)),arguments.length===1?i=a-r:i==null?i=0:i=Math.max(0,Math.min(i,a-r)),s===void 0&&(s=Ku),Wt(this)){var u=kt(this,{object:this.proxy_,type:HA,index:r,removedCount:i,added:s});if(!u)return Ku;i=u.removedCount,s=u.added}if(s=s.length===0?s:s.map(function(l){return o.enhancer_(l,void 0)}),this.legacyMode_||process.env.NODE_ENV!=="production"){var f=s.length-i;this.updateArrayLength_(a,f)}var c=this.spliceItemsIntoValues_(r,i,s);return(i!==0||s.length!==0)&&this.notifyArraySplice_(r,s,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(r,i,s){if(s.length<jB){var o;return(o=this.values_).splice.apply(o,[r,i].concat(s))}else{var a=this.values_.slice(r,r+i),u=this.values_.slice(r+i);this.values_.length+=s.length-i;for(var f=0;f<s.length;f++)this.values_[r+f]=s[f];for(var c=0;c<u.length;c++)this.values_[r+s.length+c]=u[c];return a}},t.notifyArrayChildUpdate_=function(r,i,s){var o=!this.owned_&&$e(),a=Zt(this),u=a||o?{observableKind:"array",object:this.proxy_,type:en,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:s}:null;process.env.NODE_ENV!=="production"&&o&&St(u),this.atom_.reportChanged(),a&&Qt(this,u),process.env.NODE_ENV!=="production"&&o&&xt()},t.notifyArraySplice_=function(r,i,s){var o=!this.owned_&&$e(),a=Zt(this),u=a||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:HA,index:r,removed:s,added:i,removedCount:s.length,addedCount:i.length}:null;process.env.NODE_ENV!=="production"&&o&&St(u),this.atom_.reportChanged(),a&&Qt(this,u),process.env.NODE_ENV!=="production"&&o&&xt()},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn(process.env.NODE_ENV!=="production"?"[mobx.array] Attempt to read an array index ("+r+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX":"[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var s=this.values_;if(this.legacyMode_&&r>s.length&&E(17,r,s.length),r<s.length){On(this.atom_);var o=s[r];if(Wt(this)){var a=kt(this,{type:en,object:this.proxy_,index:r,newValue:i});if(!a)return;i=a.newValue}i=this.enhancer_(i,o);var u=i!==o;u&&(s[r]=i,this.notifyArrayChildUpdate_(r,i,o))}else{for(var f=new Array(r+1-s.length),c=0;c<f.length-1;c++)f[c]=void 0;f[f.length-1]=i,this.spliceWithArray_(s.length,0,f)}},e}();function BB(e,t,n,r){return n===void 0&&(n=process.env.NODE_ENV!=="production"?"ObservableArray@"+wt():"ObservableArray"),r===void 0&&(r=!1),Yw(),xr(function(){var i=new vp(n,t,r,!1);Jw(i.values_,R,i);var s=new Proxy(i.values_,FB);return i.proxy_=s,e&&e.length&&i.spliceWithArray_(0,0,e),s})}var df={clear:function(){return this.splice(0)},replace:function(t){var n=this[R];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];var o=this[R];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,n)}return o.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,r){return this[R].spliceWithArray_(t,n,r)},push:function(){for(var t=this[R],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[R].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[R],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return O.trackingDerivation&&E(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){O.trackingDerivation&&E(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[R],r=n.dehanceValues_(n.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};te("at",Tt),te("concat",Tt),te("flat",Tt),te("includes",Tt),te("indexOf",Tt),te("join",Tt),te("lastIndexOf",Tt),te("slice",Tt),te("toString",Tt),te("toLocaleString",Tt),te("toSorted",Tt),te("toSpliced",Tt),te("with",Tt),te("every",tn),te("filter",tn),te("find",tn),te("findIndex",tn),te("findLast",tn),te("findLastIndex",tn),te("flatMap",tn),te("forEach",tn),te("map",tn),te("some",tn),te("toReversed",tn),te("reduce",KA),te("reduceRight",KA);function te(e,t){typeof Array.prototype[e]=="function"&&(df[e]=t(e))}function Tt(e){return function(){var t=this[R];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function tn(e){return function(t,n){var r=this,i=this[R];i.atom_.reportObserved();var s=i.dehanceValues_(i.values_);return s[e](function(o,a){return t.call(n,o,a,r)})}}function KA(e){return function(){var t=this,n=this[R];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(s,o,a){return i(s,o,a,t)},r[e].apply(r,arguments)}}var zB=mr("ObservableArrayAdministration",vp);function Je(e){return Yu(e)&&zB(e[R])}var UB={},Sr="add",_f="delete",gp=function(){function e(n,r,i){var s=this;r===void 0&&(r=Xr),i===void 0&&(i=process.env.NODE_ENV!=="production"?"ObservableMap@"+wt():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[R]=UB,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,ue(Map)||E(18),xr(function(){s.keysAtom_=Zh(process.env.NODE_ENV!=="production"?s.name_+".keys()":"ObservableMap.keys()"),s.data_=new Map,s.hasMap_=new Map,n&&s.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!O.trackingDerivation)return this.has_(r);var s=this.hasMap_.get(r);if(!s){var o=s=new Or(this.has_(r),Ju,process.env.NODE_ENV!=="production"?this.name_+"."+Yh(r)+"?":"ObservableMap.key?",!1);this.hasMap_.set(r,o),hp(o,function(){return i.hasMap_.delete(r)})}return s.get()},t.set=function(r,i){var s=this.has_(r);if(Wt(this)){var o=kt(this,{type:s?en:Sr,object:this,newValue:i,name:r});if(!o)return this;i=o.newValue}return s?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(On(this.keysAtom_),Wt(this)){var s=kt(this,{type:_f,object:this,name:r});if(!s)return!1}if(this.has_(r)){var o=$e(),a=Zt(this),u=a||o?{observableKind:"map",debugObjectName:this.name_,type:_f,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return process.env.NODE_ENV!=="production"&&o&&St(u),Sn(function(){var f;i.keysAtom_.reportChanged(),(f=i.hasMap_.get(r))==null||f.setNewValue_(!1);var c=i.data_.get(r);c.setNewValue_(void 0),i.data_.delete(r)}),a&&Qt(this,u),process.env.NODE_ENV!=="production"&&o&&xt(),!0}return!1},t.updateValue_=function(r,i){var s=this.data_.get(r);if(i=s.prepareNewValue_(i),i!==O.UNCHANGED){var o=$e(),a=Zt(this),u=a||o?{observableKind:"map",debugObjectName:this.name_,type:en,object:this,oldValue:s.value_,name:r,newValue:i}:null;process.env.NODE_ENV!=="production"&&o&&St(u),s.setNewValue_(i),a&&Qt(this,u),process.env.NODE_ENV!=="production"&&o&&xt()}},t.addValue_=function(r,i){var s=this;On(this.keysAtom_),Sn(function(){var f,c=new Or(i,s.enhancer_,process.env.NODE_ENV!=="production"?s.name_+"."+Yh(r):"ObservableMap.key",!1);s.data_.set(r,c),i=c.value_,(f=s.hasMap_.get(r))==null||f.setNewValue_(!0),s.keysAtom_.reportChanged()});var o=$e(),a=Zt(this),u=a||o?{observableKind:"map",debugObjectName:this.name_,type:Sr,object:this,name:r,newValue:i}:null;process.env.NODE_ENV!=="production"&&o&&St(u),a&&Qt(this,u),process.env.NODE_ENV!=="production"&&o&&xt()},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return YA({next:function(){var o=i.next(),a=o.done,u=o.value;return{done:a,value:a?void 0:r.get(u)}}})},t.entries=function(){var r=this,i=this.keys();return YA({next:function(){var o=i.next(),a=o.done,u=o.value;return{done:a,value:a?void 0:[u,r.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,i){for(var s=os(this),o;!(o=s()).done;){var a=o.value,u=a[0],f=a[1];r.call(i,f,u,this)}},t.merge=function(r){var i=this;return ve(r)&&(r=new Map(r)),Sn(function(){st(r)?Ij(r).forEach(function(s){return i.set(s,r[s])}):Array.isArray(r)?r.forEach(function(s){var o=s[0],a=s[1];return i.set(o,a)}):rs(r)?(Mj(r)||E(19,r),r.forEach(function(s,o){return i.set(o,s)})):r!=null&&E(20,r)}),this},t.clear=function(){var r=this;Sn(function(){op(function(){for(var i=os(r.keys()),s;!(s=i()).done;){var o=s.value;r.delete(o)}})})},t.replace=function(r){var i=this;return Sn(function(){for(var s=VB(r),o=new Map,a=!1,u=os(i.data_.keys()),f;!(f=u()).done;){var c=f.value;if(!s.has(c)){var l=i.delete(c);if(l)a=!0;else{var h=i.data_.get(c);o.set(c,h)}}}for(var d=os(s.entries()),_;!(_=d()).done;){var v=_.value,g=v[0],y=v[1],b=i.data_.has(g);if(i.set(g,y),i.data_.has(g)){var w=i.data_.get(g);o.set(g,w),b||(a=!0)}}if(!a)if(i.data_.size!==o.size)i.keysAtom_.reportChanged();else for(var m=i.data_.keys(),A=o.keys(),S=m.next(),P=A.next();!S.done;){if(S.value!==P.value){i.keysAtom_.reportChanged();break}S=m.next(),P=A.next()}i.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return process.env.NODE_ENV!=="production"&&i===!0&&E("`observe` doesn't support fireImmediately=true in combination with maps."),qo(this,r)},t.intercept_=function(r){return ko(this,r)},ss(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),ve=mr("ObservableMap",gp);function YA(e){return e[Symbol.toStringTag]="MapIterator",Ep(e)}function VB(e){if(rs(e)||ve(e))return e;if(Array.isArray(e))return new Map(e);if(st(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return E(21,e)}var WB={},yp=function(){function e(n,r,i){var s=this;r===void 0&&(r=Xr),i===void 0&&(i=process.env.NODE_ENV!=="production"?"ObservableSet@"+wt():"ObservableSet"),this.name_=void 0,this[R]=WB,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,ue(Set)||E(22),this.enhancer_=function(o,a){return r(o,a,i)},xr(function(){s.atom_=Zh(s.name_),n&&s.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;Sn(function(){op(function(){for(var i=os(r.data_.values()),s;!(s=i()).done;){var o=s.value;r.delete(o)}})})},t.forEach=function(r,i){for(var s=os(this),o;!(o=s()).done;){var a=o.value;r.call(i,a,a,this)}},t.add=function(r){var i=this;if(On(this.atom_),Wt(this)){var s=kt(this,{type:Sr,object:this,newValue:r});if(!s)return this;r=s.newValue}if(!this.has(r)){Sn(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var o=process.env.NODE_ENV!=="production"&&$e(),a=Zt(this),u=a||o?{observableKind:"set",debugObjectName:this.name_,type:Sr,object:this,newValue:r}:null;o&&process.env.NODE_ENV!=="production"&&St(u),a&&Qt(this,u),o&&process.env.NODE_ENV!=="production"&&xt()}return this},t.delete=function(r){var i=this;if(Wt(this)){var s=kt(this,{type:_f,object:this,oldValue:r});if(!s)return!1}if(this.has(r)){var o=process.env.NODE_ENV!=="production"&&$e(),a=Zt(this),u=a||o?{observableKind:"set",debugObjectName:this.name_,type:_f,object:this,oldValue:r}:null;return o&&process.env.NODE_ENV!=="production"&&St(u),Sn(function(){i.atom_.reportChanged(),i.data_.delete(r)}),a&&Qt(this,u),o&&process.env.NODE_ENV!=="production"&&xt(),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=this.values();return XA({next:function(){var s=r.next(),o=s.value,a=s.done;return a?{value:void 0,done:a}:{value:[o,o],done:a}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=this.data_.values();return XA({next:function(){var o=i.next(),a=o.value,u=o.done;return u?{value:void 0,done:u}:{value:r.dehanceValue_(a),done:u}}})},t.intersection=function(r){if(Gn(r)&&!ge(r))return r.intersection(this);var i=new Set(this);return i.intersection(r)},t.union=function(r){if(Gn(r)&&!ge(r))return r.union(this);var i=new Set(this);return i.union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){if(Gn(r)&&!ge(r))return r.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){if(Gn(r)&&!ge(r))return r.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(r)},t.replace=function(r){var i=this;return ge(r)&&(r=new Set(r)),Sn(function(){Array.isArray(r)?(i.clear(),r.forEach(function(s){return i.add(s)})):Gn(r)?(i.clear(),r.forEach(function(s){return i.add(s)})):r!=null&&E("Cannot initialize set from "+r)}),this},t.observe_=function(r,i){return process.env.NODE_ENV!=="production"&&i===!0&&E("`observe` doesn't support fireImmediately=true in combination with sets."),qo(this,r)},t.intercept_=function(r){return ko(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},ss(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),ge=mr("ObservableSet",yp);function XA(e){return e[Symbol.toStringTag]="SetIterator",Ep(e)}var JA=Object.create(null),ZA="remove",bp=function(){function e(n,r,i,s){r===void 0&&(r=new Map),s===void 0&&(s=dF),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=r,this.name_=i,this.defaultAnnotation_=s,this.keysAtom_=new wr(process.env.NODE_ENV!=="production"?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=st(this.target_),process.env.NODE_ENV!=="production"&&!uO(this.defaultAnnotation_)&&E("defaultAnnotation must be valid annotation"),process.env.NODE_ENV!=="production"&&(this.appliedAnnotations_={})}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,i){var s=this.values_.get(r);if(s instanceof Ut)return s.set(i),!0;if(Wt(this)){var o=kt(this,{type:en,object:this.proxy_||this.target_,name:r,newValue:i});if(!o)return null;i=o.newValue}if(i=s.prepareNewValue_(i),i!==O.UNCHANGED){var a=Zt(this),u=process.env.NODE_ENV!=="production"&&$e(),f=a||u?{type:en,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:s.value_,name:r,newValue:i}:null;process.env.NODE_ENV!=="production"&&u&&St(f),s.setNewValue_(i),a&&Qt(this,f),process.env.NODE_ENV!=="production"&&u&&xt()}return!0},t.get_=function(r){return O.trackingDerivation&&!At(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,s){return s===void 0&&(s=!1),At(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,i):s?Reflect.set(this.target_,r,i):(this.target_[r]=i,!0):this.extend_(r,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,s)},t.has_=function(r){if(!O.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new Or(r in this.target_,Ju,process.env.NODE_ENV!=="production"?this.name_+"."+Yh(r)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(r,i)),i.get()},t.make_=function(r,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(tO(this,i,r),!(r in this.target_)){var s;if((s=this.target_[ot])!=null&&s[r])return;E(1,i.annotationType_,this.name_+"."+r.toString())}for(var o=this.target_;o&&o!==Co;){var a=Hu(o,r);if(a){var u=i.make_(this,r,a,o);if(u===0)return;if(u===1)break}o=Object.getPrototypeOf(o)}eO(this,i,r)}},t.extend_=function(r,i,s,o){if(o===void 0&&(o=!1),s===!0&&(s=this.defaultAnnotation_),s===!1)return this.defineProperty_(r,i,o);tO(this,s,r);var a=s.extend_(this,r,i,o);return a&&eO(this,s,r),a},t.defineProperty_=function(r,i,s){s===void 0&&(s=!1),On(this.keysAtom_);try{at();var o=this.delete_(r);if(!o)return o;if(Wt(this)){var a=kt(this,{object:this.proxy_||this.target_,name:r,type:Sr,newValue:i.value});if(!a)return null;var u=a.newValue;i.value!==u&&(i=An({},i,{value:u}))}if(s){if(!Reflect.defineProperty(this.target_,r,i))return!1}else mn(this.target_,r,i);this.notifyPropertyAddition_(r,i.value)}finally{ut()}return!0},t.defineObservableProperty_=function(r,i,s,o){o===void 0&&(o=!1),On(this.keysAtom_);try{at();var a=this.delete_(r);if(!a)return a;if(Wt(this)){var u=kt(this,{object:this.proxy_||this.target_,name:r,type:Sr,newValue:i});if(!u)return null;i=u.newValue}var f=QA(r),c={configurable:O.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:f.get,set:f.set};if(o){if(!Reflect.defineProperty(this.target_,r,c))return!1}else mn(this.target_,r,c);var l=new Or(i,s,process.env.NODE_ENV!=="production"?this.name_+"."+r.toString():"ObservableObject.key",!1);this.values_.set(r,l),this.notifyPropertyAddition_(r,l.value_)}finally{ut()}return!0},t.defineComputedProperty_=function(r,i,s){s===void 0&&(s=!1),On(this.keysAtom_);try{at();var o=this.delete_(r);if(!o)return o;if(Wt(this)){var a=kt(this,{object:this.proxy_||this.target_,name:r,type:Sr,newValue:void 0});if(!a)return null}i.name||(i.name=process.env.NODE_ENV!=="production"?this.name_+"."+r.toString():"ObservableObject.key"),i.context=this.proxy_||this.target_;var u=QA(r),f={configurable:O.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,r,f))return!1}else mn(this.target_,r,f);this.values_.set(r,new Ut(i)),this.notifyPropertyAddition_(r,void 0)}finally{ut()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),On(this.keysAtom_),!At(this.target_,r))return!0;if(Wt(this)){var s=kt(this,{object:this.proxy_||this.target_,name:r,type:ZA});if(!s)return null}try{var o;at();var a=Zt(this),u=process.env.NODE_ENV!=="production"&&$e(),f=this.values_.get(r),c=void 0;if(!f&&(a||u)){var l;c=(l=Hu(this.target_,r))==null?void 0:l.value}if(i){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(process.env.NODE_ENV!=="production"&&delete this.appliedAnnotations_[r],f&&(this.values_.delete(r),f instanceof Or&&(c=f.value_),OA(f)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(o=o.get(r))==null||o.set(r in this.target_),a||u){var h={type:ZA,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:r};process.env.NODE_ENV!=="production"&&u&&St(h),a&&Qt(this,h),process.env.NODE_ENV!=="production"&&u&&xt()}}finally{ut()}return!0},t.observe_=function(r,i){return process.env.NODE_ENV!=="production"&&i===!0&&E("`observe` doesn't support the fire immediately property for observable objects."),qo(this,r)},t.intercept_=function(r){return ko(this,r)},t.notifyPropertyAddition_=function(r,i){var s,o=Zt(this),a=process.env.NODE_ENV!=="production"&&$e();if(o||a){var u=o||a?{type:Sr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:i}:null;process.env.NODE_ENV!=="production"&&a&&St(u),o&&Qt(this,u),process.env.NODE_ENV!=="production"&&a&&xt()}(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),is(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function ii(e,t){var n;if(process.env.NODE_ENV!=="production"&&t&&ye(e)&&E("Options can't be provided for already observable objects."),At(e,R))return process.env.NODE_ENV!=="production"&&!(xn(e)instanceof bp)&&E("Cannot convert '"+Go(e)+`' into observable object:
|
|
45
|
+
`)()}}function ZA(e,t,n){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+" ".repeat(n-1)+e.name),e.dependencies&&e.dependencies.forEach(function(r){return ZA(r,t,n+1)})}var xn=function(){function e(n,r,i,s){n===void 0&&(n=process.env.NODE_ENV!=="production"?"Reaction@"+At():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=U.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Wt.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=s}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,O.pendingReactions.push(this),eO())},t.runReaction_=function(){if(!this.isDisposed){ut(),this.isScheduled=!1;var r=O.trackingContext;if(O.trackingContext=this,Ap(this)){this.isTrackPending=!0;try{this.onInvalidate_(),process.env.NODE_ENV!=="production"&&this.isTrackPending&&Me()&&oi({name:this.name_,type:"scheduled-reaction"})}catch(i){this.reportExceptionInDerivation_(i)}}O.trackingContext=r,ft()}},t.track=function(r){if(!this.isDisposed){ut();var i=Me(),s;process.env.NODE_ENV!=="production"&&i&&(s=Date.now(),xt({name:this.name_,type:"reaction"})),this.isRunning=!0;var o=O.trackingContext;O.trackingContext=this;var a=WA(this,r,void 0);O.trackingContext=o,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Op(this),bf(a)&&this.reportExceptionInDerivation_(a.cause),process.env.NODE_ENV!=="production"&&i&&Tt({time:Date.now()-s}),ft()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(O.disableErrorBoundaries)throw r;var s=process.env.NODE_ENV!=="production"?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";O.suppressReactionErrors?process.env.NODE_ENV!=="production"&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(s,r),process.env.NODE_ENV!=="production"&&Me()&&oi({type:"error",name:this.name_,message:s,error:""+r}),O.globalReactionErrorHandlers.forEach(function(o){return o(r,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(ut(),Op(this),ft()))},t.getDisposer_=function(r){var i=this,s=function o(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",o)};return r==null||r.addEventListener==null||r.addEventListener("abort",s),s[R]=this,s},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){r===void 0&&(r=!1),yO(this,r)},hs(e,[{key:"isDisposed",get:function(){return Et(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=St(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return Et(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=St(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return Et(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=St(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return Et(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=St(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return Et(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=St(this.flags_,e.diffValueMask_,r===1)}}])}();xn.isDisposedMask_=1,xn.isScheduledMask_=2,xn.isTrackPendingMask_=4,xn.isRunningMask_=8,xn.diffValueMask_=16;function RB(e){return O.globalReactionErrorHandlers.push(e),function(){var t=O.globalReactionErrorHandlers.indexOf(e);t>=0&&O.globalReactionErrorHandlers.splice(t,1)}}var QA=100,Sp=function(t){return t()};function eO(){O.inBatch>0||O.isRunningReactions||Sp(PB)}function PB(){O.isRunningReactions=!0;for(var e=O.pendingReactions,t=0;e.length>0;){++t===QA&&(console.error(process.env.NODE_ENV!=="production"?"Reaction doesn't converge to a stable state after "+QA+" iterations."+(" Probably there is a cycle in the reactive function: "+e[0]):"[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}O.isRunningReactions=!1}var Af=Er("Reaction",xn);function NB(e){var t=Sp;Sp=function(r){return e(function(){return t(r)})}}function Me(){return process.env.NODE_ENV!=="production"&&!!O.spyListeners.length}function oi(e){if(process.env.NODE_ENV!=="production"&&O.spyListeners.length)for(var t=O.spyListeners,n=0,r=t.length;n<r;n++)t[n](e)}function xt(e){if(process.env.NODE_ENV!=="production"){var t=En({},e,{spyReportStart:!0});oi(t)}}var MB={type:"report-end",spyReportEnd:!0};function Tt(e){process.env.NODE_ENV!=="production"&&oi(e?En({},e,{type:"report-end",spyReportEnd:!0}):MB)}function tO(e){return process.env.NODE_ENV==="production"?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(O.spyListeners.push(e),hp(function(){O.spyListeners=O.spyListeners.filter(function(t){return t!==e})}))}var xp="action",$B="action.bound",nO="autoAction",IB="autoAction.bound",rO="<unnamed action>",Tp=Ho(xp),DB=Ho($B,{bound:!0}),Rp=Ho(nO,{autoAction:!0}),CB=Ho(IB,{autoAction:!0,bound:!0});function iO(e){var t=function(r,i){if(ue(r))return xr(r.name||rO,r,e);if(ue(i))return xr(r,i,e);if(Go(i))return(e?Rp:Tp).decorate_20223_(r,i);if(On(i))return qo(r,i,e?Rp:Tp);if(On(r))return Qt(Ho(e?nO:xp,{name:r,autoAction:e}));process.env.NODE_ENV!=="production"&&E("Invalid arguments for `action`")};return t}var Rr=iO(!1);Object.assign(Rr,Tp);var _s=iO(!0);Object.assign(_s,Rp),Rr.bound=Qt(DB),_s.bound=Qt(CB);function sO(e){return UA(e.name||rO,!1,e,this,void 0)}function ai(e){return ue(e)&&e.isMobxAction===!0}function Pp(e,t){var n,r,i,s;t===void 0&&(t=lp),process.env.NODE_ENV!=="production"&&(ue(e)||E("Autorun expects a function as first argument"),ai(e)&&E("Autorun does not accept actions since actions are untrackable"));var o=(n=(r=t)==null?void 0:r.name)!=null?n:process.env.NODE_ENV!=="production"?e.name||"Autorun@"+At():"Autorun",a=!t.scheduler&&!t.delay,u;if(a)u=new xn(o,function(){this.track(l)},t.onError,t.requiresObservable);else{var f=oO(t),c=!1;u=new xn(o,function(){c||(c=!0,f(function(){c=!1,u.isDisposed||u.track(l)}))},t.onError,t.requiresObservable)}function l(){e(u)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||u.schedule_(),u.getDisposer_((s=t)==null?void 0:s.signal)}var LB=function(t){return t()};function oO(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:LB}function jB(e,t,n){var r,i,s;n===void 0&&(n=lp),process.env.NODE_ENV!=="production"&&((!ue(e)||!ue(t))&&E("First and second argument to reaction should be functions"),ot(n)||E("Third argument of reactions should be an object"));var o=(r=n.name)!=null?r:process.env.NODE_ENV!=="production"?"Reaction@"+At():"Reaction",a=Rr(o,n.onError?FB(n.onError,t):t),u=!n.scheduler&&!n.delay,f=oO(n),c=!0,l=!1,h,d=n.compareStructural?ni.structural:n.equals||ni.default,_=new xn(o,function(){c||u?v():l||(l=!0,f(v))},n.onError,n.requiresObservable);function v(){if(l=!1,!_.isDisposed){var g=!1,y=h;_.track(function(){var b=mp(!1,function(){return e(_)});g=c||!d(h,b),h=b}),(c&&n.fireImmediately||!c&&g)&&a(h,y,_),c=!1}}return(i=n)!=null&&(i=i.signal)!=null&&i.aborted||_.schedule_(),_.getDisposer_((s=n)==null?void 0:s.signal)}function FB(e,t){return function(){try{return t.apply(this,arguments)}catch(n){e.call(this,n)}}}var BB="onBO",zB="onBUO";function aO(e,t,n){return uO(BB,e,t,n)}function Np(e,t,n){return uO(zB,e,t,n)}function uO(e,t,n,r){var i=typeof r=="function"?sn(t,n):sn(t),s=ue(r)?r:n,o=e+"L";return i[o]?i[o].add(s):i[o]=new Set([s]),function(){var a=i[o];a&&(a.delete(s),a.size===0&&delete i[o])}}var UB="never",Of="always",kB="observed";function VB(e){e.isolateGlobalState===!0&&mB();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(O.useProxies=t===Of?!0:t===UB?!1:typeof Proxy<"u"),t==="ifavailable"&&(O.verifyProxies=!0),n!==void 0){var r=n===Of?Of:n===kB;O.enforceActions=r,O.allowStateChanges=!(r===!0||r===Of)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(O[i]=!!e[i])}),O.allowStateReads=!O.observableRequiresReaction,process.env.NODE_ENV!=="production"&&O.disableErrorBoundaries===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&NB(e.reactionScheduler)}function Mp(e,t,n,r){process.env.NODE_ENV!=="production"&&(arguments.length>4&&E("'extendObservable' expected 2-4 arguments"),typeof e!="object"&&E("'extendObservable' expects an object as first argument"),ve(e)&&E("'extendObservable' should not be used on maps, use map.merge instead"),ot(t)||E("'extendObservable' only accepts plain objects as second argument"),(fi(t)||fi(n))&&E("Extending an object with another observable (object) is not supported"));var i=vF(t);return Nr(function(){var s=li(e,r)[R];ls(i).forEach(function(o){s.extend_(o,i[o],n&&o in n?n[o]:!0)})}),e}function fO(e,t){return cO(sn(e,t))}function cO(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=qB(e.observing_).map(cO)),t}function WB(e,t){return lO(sn(e,t))}function lO(e){var t={name:e.name_};return OB(e)&&(t.observers=Array.from(EB(e)).map(lO)),t}function qB(e){return Array.from(new Set(e))}var GB=0;function Ef(){this.message="FLOW_CANCELLED"}Ef.prototype=Object.create(Error.prototype);function HB(e){return e instanceof Ef}var $p=MA("flow"),KB=MA("flow.bound",{bound:!0}),ui=Object.assign(function(t,n){if(Go(n))return $p.decorate_20223_(t,n);if(On(n))return qo(t,n,$p);process.env.NODE_ENV!=="production"&&arguments.length!==1&&E("Flow expects single argument with generator function");var r=t,i=r.name||"<unnamed flow>",s=function(){var a=this,u=arguments,f=++GB,c=Rr(i+" - runid: "+f+" - init",r).apply(a,u),l,h=void 0,d=new Promise(function(_,v){var g=0;l=v;function y(m){h=void 0;var A;try{A=Rr(i+" - runid: "+f+" - yield "+g++,c.next).call(c,m)}catch(S){return v(S)}w(A)}function b(m){h=void 0;var A;try{A=Rr(i+" - runid: "+f+" - yield "+g++,c.throw).call(c,m)}catch(S){return v(S)}w(A)}function w(m){if(ue(m?.then)){m.then(w,v);return}return m.done?_(m.value):(h=Promise.resolve(m.value),h.then(y,b))}y(void 0)});return d.cancel=Rr(i+" - runid: "+f+" - cancel",function(){try{h&&hO(h);var _=c.return(void 0),v=Promise.resolve(_.value);v.then(fs,fs),hO(v),l(new Ef)}catch(g){l(g)}}),d};return s.isMobXFlow=!0,s},$p);ui.bound=Qt(KB);function hO(e){ue(e.cancel)&&e.cancel()}function YB(e){return e}function vs(e){return e?.isMobXFlow===!0}function XB(e,t,n){var r;if(ve(e)||Ze(e)||wp(e))r=Rn(e);else if(ye(e)){if(process.env.NODE_ENV!=="production"&&!On(t))return E("InterceptReads can only be used with a specific property, not with an object in general");r=Rn(e,t)}else if(process.env.NODE_ENV!=="production")return E("Expected observable map, object or array as first array");return process.env.NODE_ENV!=="production"&&r.dehancer!==void 0?E("An intercept reader was already established"):(r.dehancer=typeof t=="function"?t:n,function(){r.dehancer=void 0})}function JB(e,t,n){return ue(n)?QB(e,t,n):ZB(e,t)}function ZB(e,t){return Rn(e).intercept_(t)}function QB(e,t,n){return Rn(e,t).intercept_(n)}function pO(e,t){if(t===void 0)return ii(e);if(ye(e)===!1||!e[R].values_.has(t))return!1;var n=sn(e,t);return ii(n)}function ez(e){return process.env.NODE_ENV!=="production"&&arguments.length>1?E("isComputed expects only 1 argument. Use isComputedProp to inspect the observability of a property"):pO(e)}function tz(e,t){return process.env.NODE_ENV!=="production"&&!On(t)?E("isComputed expected a property name as second argument"):pO(e,t)}function dO(e,t){return e?t!==void 0?process.env.NODE_ENV!=="production"&&(ve(e)||Ze(e))?E("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead."):ye(e)?e[R].values_.has(t):!1:ye(e)||!!e[R]||_p(e)||Af(e)||ii(e):!1}function fi(e){return process.env.NODE_ENV!=="production"&&arguments.length!==1&&E("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),dO(e)}function nz(e,t){return process.env.NODE_ENV!=="production"&&!On(t)?E("expected a property name as second argument"):dO(e,t)}function Xo(e){if(ye(e))return e[R].keys_();if(ve(e)||ge(e))return Array.from(e.keys());if(Ze(e))return e.map(function(t,n){return n});E(5)}function rz(e){if(ye(e))return Xo(e).map(function(t){return e[t]});if(ve(e))return Xo(e).map(function(t){return e.get(t)});if(ge(e))return Array.from(e.values());if(Ze(e))return e.slice();E(6)}function iz(e){if(ye(e))return Xo(e).map(function(t){return[t,e[t]]});if(ve(e))return Xo(e).map(function(t){return[t,e.get(t)]});if(ge(e))return Array.from(e.entries());if(Ze(e))return e.map(function(t,n){return[n,t]});E(7)}function _O(e,t,n){if(arguments.length===2&&!ge(e)){ut();var r=t;try{for(var i in r)_O(e,i,r[i])}finally{ft()}return}ye(e)?e[R].set_(t,n):ve(e)?e.set(t,n):ge(e)?e.add(t):Ze(e)?(typeof t!="number"&&(t=parseInt(t,10)),t<0&&E("Invalid index: '"+t+"'"),ut(),t>=e.length&&(e.length=t+1),e[t]=n,ft()):E(8)}function sz(e,t){ye(e)?e[R].delete_(t):ve(e)||ge(e)?e.delete(t):Ze(e)?(typeof t!="number"&&(t=parseInt(t,10)),e.splice(t,1)):E(9)}function vO(e,t){if(ye(e))return e[R].has_(t);if(ve(e))return e.has(t);if(ge(e))return e.has(t);if(Ze(e))return t>=0&&t<e.length;E(10)}function oz(e,t){if(vO(e,t)){if(ye(e))return e[R].get_(t);if(ve(e))return e.get(t);if(Ze(e))return e[t];E(11)}}function az(e,t,n){if(ye(e))return e[R].defineProperty_(t,n);E(39)}function gO(e){if(ye(e))return e[R].ownKeys_();E(38)}function uz(e,t,n,r){return ue(n)?cz(e,t,n,r):fz(e,t,n)}function fz(e,t,n){return Rn(e).observe_(t,n)}function cz(e,t,n,r){return Rn(e,t).observe_(n,r)}function Sf(e,t,n){return e.set(t,n),n}function gs(e,t){if(e==null||typeof e!="object"||e instanceof Date||!fi(e))return e;if(wp(e)||ii(e))return gs(e.get(),t);if(t.has(e))return t.get(e);if(Ze(e)){var n=Sf(t,e,new Array(e.length));return e.forEach(function(o,a){n[a]=gs(o,t)}),n}if(ge(e)){var r=Sf(t,e,new Set);return e.forEach(function(o){r.add(gs(o,t))}),r}if(ve(e)){var i=Sf(t,e,new Map);return e.forEach(function(o,a){i.set(a,gs(o,t))}),i}else{var s=Sf(t,e,{});return gO(e).forEach(function(o){ko.propertyIsEnumerable.call(e,o)&&(s[o]=gs(e[o],t))}),s}}function lz(e,t){return process.env.NODE_ENV!=="production"&&t&&E("toJS no longer supports options"),gs(e,new Map)}function yO(){if(process.env.NODE_ENV!=="production"){for(var e=!1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[n.length-1]=="boolean"&&(e=n.pop());var i=hz(n);if(!i)return E("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");i.isTracing_===Wt.NONE&&console.log("[mobx.trace] '"+i.name_+"' tracing enabled"),i.isTracing_=e?Wt.BREAK:Wt.LOG}}function hz(e){switch(e.length){case 0:return O.trackingDerivation;case 1:return sn(e[0]);case 2:return sn(e[0],e[1])}}function Tn(e,t){t===void 0&&(t=void 0),ut();try{return e.apply(t)}finally{ft()}}function pz(e,t,n){return arguments.length===1||t&&typeof t=="object"?dz(e,t):bO(e,t,n||{})}function bO(e,t,n){var r;if(typeof n.timeout=="number"){var i=new Error("WHEN_TIMEOUT");r=setTimeout(function(){if(!o[R].isDisposed)if(o(),n.onError)n.onError(i);else throw i},n.timeout)}n.name=process.env.NODE_ENV!=="production"?n.name||"When@"+At():"When";var s=xr(process.env.NODE_ENV!=="production"?n.name+"-effect":"When-effect",t),o=Pp(function(a){var u=mp(!1,e);u&&(a.dispose(),r&&clearTimeout(r),s())},n);return o}function dz(e,t){var n;if(process.env.NODE_ENV!=="production"&&t&&t.onError)return E("the options 'onError' and 'promise' cannot be combined");if(t!=null&&(n=t.signal)!=null&&n.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var r,i,s=new Promise(function(o,a){var u,f=bO(e,o,En({},t,{onError:a}));r=function(){f(),a(new Error("WHEN_CANCELLED"))},i=function(){f(),a(new Error("WHEN_ABORTED"))},t==null||(u=t.signal)==null||u.addEventListener==null||u.addEventListener("abort",i)}).finally(function(){var o;return t==null||(o=t.signal)==null||o.removeEventListener==null?void 0:o.removeEventListener("abort",i)});return s.cancel=r,s}function ci(e){return e[R]}var _z={has:function(t,n){return process.env.NODE_ENV!=="production"&&O.trackingDerivation&&Vo("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),ci(t).has_(n)},get:function(t,n){return ci(t).get_(n)},set:function(t,n,r){var i;return On(n)?(process.env.NODE_ENV!=="production"&&!ci(t).values_.has(n)&&Vo("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),(i=ci(t).set_(n,r,!0))!=null?i:!0):!1},deleteProperty:function(t,n){var r;return process.env.NODE_ENV!=="production"&&Vo("delete properties from an observable object. Use 'remove' from 'mobx' instead."),On(n)?(r=ci(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return process.env.NODE_ENV!=="production"&&Vo("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),(i=ci(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return process.env.NODE_ENV!=="production"&&O.trackingDerivation&&Vo("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),ci(t).ownKeys_()},preventExtensions:function(t){E(13)}};function vz(e,t){var n,r;return AA(),e=li(e,t),(r=(n=e[R]).proxy_)!=null?r:n.proxy_=new Proxy(e,_z)}function qt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Jo(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),hp(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Gt(e,t){var n=si();try{for(var r=[].concat(e.interceptors_||[]),i=0,s=r.length;i<s&&(t=r[i](t),t&&!t.type&&E(14),!!t);i++);return t}finally{Xn(n)}}function en(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Zo(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),hp(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function tn(e,t){var n=si(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,s=r.length;i<s;i++)r[i](t);Xn(n)}}function gz(e,t,n){return Nr(function(){var r,i=li(e,n)[R];process.env.NODE_ENV!=="production"&&t&&e[at]&&E("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),(r=t)!=null||(t=AF(e)),ls(t).forEach(function(s){return i.make_(s,t[s])})}),e}var Ip=Symbol("mobx-keys");function yz(e,t,n){return process.env.NODE_ENV!=="production"&&(!ot(e)&&!ot(Object.getPrototypeOf(e))&&E("'makeAutoObservable' can only be used for classes that don't have a superclass"),ye(e)&&E("makeAutoObservable can only be used on objects not already made observable")),ot(e)?Mp(e,e,t,n):(Nr(function(){var r=li(e,n)[R];if(!e[Ip]){var i=Object.getPrototypeOf(e),s=new Set([].concat(ls(e),ls(i)));s.delete("constructor"),s.delete(R),Wo(i,Ip,s)}e[Ip].forEach(function(o){return r.make_(o,t&&o in t?t[o]:!0)})}),e)}var mO="splice",nn="update",bz=1e4,mz={get:function(t,n){var r=t[R];return n===R?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):Ot(xf,n)?xf[n]:t[n]},set:function(t,n,r){var i=t[R];return n==="length"&&i.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:i.set_(parseInt(n),r),!0},preventExtensions:function(){E(15)}},Dp=function(){function e(n,r,i,s){n===void 0&&(n=process.env.NODE_ENV!=="production"?"ObservableArray@"+At():"ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=s,this.atom_=new Sr(n),this.enhancer_=function(o,a){return r(o,a,process.env.NODE_ENV!=="production"?n+"[..]":"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return Jo(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Zo(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&E("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var s=new Array(r-i),o=0;o<r-i;o++)s[o]=void 0;this.spliceWithArray_(i,0,s)}else this.spliceWithArray_(r,i-r)},t.updateArrayLength_=function(r,i){r!==this.lastKnownLength_&&E(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&MO(r+i+1)},t.spliceWithArray_=function(r,i,s){var o=this;Sn(this.atom_);var a=this.values_.length;if(r===void 0?r=0:r>a?r=a:r<0&&(r=Math.max(0,a+r)),arguments.length===1?i=a-r:i==null?i=0:i=Math.max(0,Math.min(i,a-r)),s===void 0&&(s=af),qt(this)){var u=Gt(this,{object:this.proxy_,type:mO,index:r,removedCount:i,added:s});if(!u)return af;i=u.removedCount,s=u.added}if(s=s.length===0?s:s.map(function(l){return o.enhancer_(l,void 0)}),this.legacyMode_||process.env.NODE_ENV!=="production"){var f=s.length-i;this.updateArrayLength_(a,f)}var c=this.spliceItemsIntoValues_(r,i,s);return(i!==0||s.length!==0)&&this.notifyArraySplice_(r,s,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(r,i,s){if(s.length<bz){var o;return(o=this.values_).splice.apply(o,[r,i].concat(s))}else{var a=this.values_.slice(r,r+i),u=this.values_.slice(r+i);this.values_.length+=s.length-i;for(var f=0;f<s.length;f++)this.values_[r+f]=s[f];for(var c=0;c<u.length;c++)this.values_[r+s.length+c]=u[c];return a}},t.notifyArrayChildUpdate_=function(r,i,s){var o=!this.owned_&&Me(),a=en(this),u=a||o?{observableKind:"array",object:this.proxy_,type:nn,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:s}:null;process.env.NODE_ENV!=="production"&&o&&xt(u),this.atom_.reportChanged(),a&&tn(this,u),process.env.NODE_ENV!=="production"&&o&&Tt()},t.notifyArraySplice_=function(r,i,s){var o=!this.owned_&&Me(),a=en(this),u=a||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:mO,index:r,removed:s,added:i,removedCount:s.length,addedCount:i.length}:null;process.env.NODE_ENV!=="production"&&o&&xt(u),this.atom_.reportChanged(),a&&tn(this,u),process.env.NODE_ENV!=="production"&&o&&Tt()},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn(process.env.NODE_ENV!=="production"?"[mobx.array] Attempt to read an array index ("+r+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX":"[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var s=this.values_;if(this.legacyMode_&&r>s.length&&E(17,r,s.length),r<s.length){Sn(this.atom_);var o=s[r];if(qt(this)){var a=Gt(this,{type:nn,object:this.proxy_,index:r,newValue:i});if(!a)return;i=a.newValue}i=this.enhancer_(i,o);var u=i!==o;u&&(s[r]=i,this.notifyArrayChildUpdate_(r,i,o))}else{for(var f=new Array(r+1-s.length),c=0;c<f.length-1;c++)f[c]=void 0;f[f.length-1]=i,this.spliceWithArray_(s.length,0,f)}},e}();function wz(e,t,n,r){return n===void 0&&(n=process.env.NODE_ENV!=="production"?"ObservableArray@"+At():"ObservableArray"),r===void 0&&(r=!1),AA(),Nr(function(){var i=new Dp(n,t,r,!1);EA(i.values_,R,i);var s=new Proxy(i.values_,mz);return i.proxy_=s,e&&e.length&&i.spliceWithArray_(0,0,e),s})}var xf={clear:function(){return this.splice(0)},replace:function(t){var n=this[R];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];var o=this[R];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,n)}return o.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,r){return this[R].spliceWithArray_(t,n,r)},push:function(){for(var t=this[R],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[R].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[R],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return O.trackingDerivation&&E(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){O.trackingDerivation&&E(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[R],r=n.dehanceValues_(n.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};te("at",Rt),te("concat",Rt),te("flat",Rt),te("includes",Rt),te("indexOf",Rt),te("join",Rt),te("lastIndexOf",Rt),te("slice",Rt),te("toString",Rt),te("toLocaleString",Rt),te("toSorted",Rt),te("toSpliced",Rt),te("with",Rt),te("every",rn),te("filter",rn),te("find",rn),te("findIndex",rn),te("findLast",rn),te("findLastIndex",rn),te("flatMap",rn),te("forEach",rn),te("map",rn),te("some",rn),te("toReversed",rn),te("reduce",wO),te("reduceRight",wO);function te(e,t){typeof Array.prototype[e]=="function"&&(xf[e]=t(e))}function Rt(e){return function(){var t=this[R];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function rn(e){return function(t,n){var r=this,i=this[R];i.atom_.reportObserved();var s=i.dehanceValues_(i.values_);return s[e](function(o,a){return t.call(n,o,a,r)})}}function wO(e){return function(){var t=this,n=this[R];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(s,o,a){return i(s,o,a,t)},r[e].apply(r,arguments)}}var Az=Er("ObservableArrayAdministration",Dp);function Ze(e){return uf(e)&&Az(e[R])}var Oz={},Pr="add",Tf="delete",Cp=function(){function e(n,r,i){var s=this;r===void 0&&(r=ri),i===void 0&&(i=process.env.NODE_ENV!=="production"?"ObservableMap@"+At():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[R]=Oz,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,ue(Map)||E(18),Nr(function(){s.keysAtom_=vp(process.env.NODE_ENV!=="production"?s.name_+".keys()":"ObservableMap.keys()"),s.data_=new Map,s.hasMap_=new Map,n&&s.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!O.trackingDerivation)return this.has_(r);var s=this.hasMap_.get(r);if(!s){var o=s=new Tr(this.has_(r),cf,process.env.NODE_ENV!=="production"?this.name_+"."+pp(r)+"?":"ObservableMap.key?",!1);this.hasMap_.set(r,o),Np(o,function(){return i.hasMap_.delete(r)})}return s.get()},t.set=function(r,i){var s=this.has_(r);if(qt(this)){var o=Gt(this,{type:s?nn:Pr,object:this,newValue:i,name:r});if(!o)return this;i=o.newValue}return s?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(Sn(this.keysAtom_),qt(this)){var s=Gt(this,{type:Tf,object:this,name:r});if(!s)return!1}if(this.has_(r)){var o=Me(),a=en(this),u=a||o?{observableKind:"map",debugObjectName:this.name_,type:Tf,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return process.env.NODE_ENV!=="production"&&o&&xt(u),Tn(function(){var f;i.keysAtom_.reportChanged(),(f=i.hasMap_.get(r))==null||f.setNewValue_(!1);var c=i.data_.get(r);c.setNewValue_(void 0),i.data_.delete(r)}),a&&tn(this,u),process.env.NODE_ENV!=="production"&&o&&Tt(),!0}return!1},t.updateValue_=function(r,i){var s=this.data_.get(r);if(i=s.prepareNewValue_(i),i!==O.UNCHANGED){var o=Me(),a=en(this),u=a||o?{observableKind:"map",debugObjectName:this.name_,type:nn,object:this,oldValue:s.value_,name:r,newValue:i}:null;process.env.NODE_ENV!=="production"&&o&&xt(u),s.setNewValue_(i),a&&tn(this,u),process.env.NODE_ENV!=="production"&&o&&Tt()}},t.addValue_=function(r,i){var s=this;Sn(this.keysAtom_),Tn(function(){var f,c=new Tr(i,s.enhancer_,process.env.NODE_ENV!=="production"?s.name_+"."+pp(r):"ObservableMap.key",!1);s.data_.set(r,c),i=c.value_,(f=s.hasMap_.get(r))==null||f.setNewValue_(!0),s.keysAtom_.reportChanged()});var o=Me(),a=en(this),u=a||o?{observableKind:"map",debugObjectName:this.name_,type:Pr,object:this,name:r,newValue:i}:null;process.env.NODE_ENV!=="production"&&o&&xt(u),a&&tn(this,u),process.env.NODE_ENV!=="production"&&o&&Tt()},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return AO({next:function(){var o=i.next(),a=o.done,u=o.value;return{done:a,value:a?void 0:r.get(u)}}})},t.entries=function(){var r=this,i=this.keys();return AO({next:function(){var o=i.next(),a=o.done,u=o.value;return{done:a,value:a?void 0:[u,r.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,i){for(var s=ps(this),o;!(o=s()).done;){var a=o.value,u=a[0],f=a[1];r.call(i,f,u,this)}},t.merge=function(r){var i=this;return ve(r)&&(r=new Map(r)),Tn(function(){ot(r)?_F(r).forEach(function(s){return i.set(s,r[s])}):Array.isArray(r)?r.forEach(function(s){var o=s[0],a=s[1];return i.set(o,a)}):cs(r)?(dF(r)||E(19,r),r.forEach(function(s,o){return i.set(o,s)})):r!=null&&E(20,r)}),this},t.clear=function(){var r=this;Tn(function(){Ep(function(){for(var i=ps(r.keys()),s;!(s=i()).done;){var o=s.value;r.delete(o)}})})},t.replace=function(r){var i=this;return Tn(function(){for(var s=Ez(r),o=new Map,a=!1,u=ps(i.data_.keys()),f;!(f=u()).done;){var c=f.value;if(!s.has(c)){var l=i.delete(c);if(l)a=!0;else{var h=i.data_.get(c);o.set(c,h)}}}for(var d=ps(s.entries()),_;!(_=d()).done;){var v=_.value,g=v[0],y=v[1],b=i.data_.has(g);if(i.set(g,y),i.data_.has(g)){var w=i.data_.get(g);o.set(g,w),b||(a=!0)}}if(!a)if(i.data_.size!==o.size)i.keysAtom_.reportChanged();else for(var m=i.data_.keys(),A=o.keys(),S=m.next(),P=A.next();!S.done;){if(S.value!==P.value){i.keysAtom_.reportChanged();break}S=m.next(),P=A.next()}i.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return process.env.NODE_ENV!=="production"&&i===!0&&E("`observe` doesn't support fireImmediately=true in combination with maps."),Zo(this,r)},t.intercept_=function(r){return Jo(this,r)},hs(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),ve=Er("ObservableMap",Cp);function AO(e){return e[Symbol.toStringTag]="MapIterator",kp(e)}function Ez(e){if(cs(e)||ve(e))return e;if(Array.isArray(e))return new Map(e);if(ot(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return E(21,e)}var Sz={},Lp=function(){function e(n,r,i){var s=this;r===void 0&&(r=ri),i===void 0&&(i=process.env.NODE_ENV!=="production"?"ObservableSet@"+At():"ObservableSet"),this.name_=void 0,this[R]=Sz,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,ue(Set)||E(22),this.enhancer_=function(o,a){return r(o,a,i)},Nr(function(){s.atom_=vp(s.name_),n&&s.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;Tn(function(){Ep(function(){for(var i=ps(r.data_.values()),s;!(s=i()).done;){var o=s.value;r.delete(o)}})})},t.forEach=function(r,i){for(var s=ps(this),o;!(o=s()).done;){var a=o.value;r.call(i,a,a,this)}},t.add=function(r){var i=this;if(Sn(this.atom_),qt(this)){var s=Gt(this,{type:Pr,object:this,newValue:r});if(!s)return this;r=s.newValue}if(!this.has(r)){Tn(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var o=process.env.NODE_ENV!=="production"&&Me(),a=en(this),u=a||o?{observableKind:"set",debugObjectName:this.name_,type:Pr,object:this,newValue:r}:null;o&&process.env.NODE_ENV!=="production"&&xt(u),a&&tn(this,u),o&&process.env.NODE_ENV!=="production"&&Tt()}return this},t.delete=function(r){var i=this;if(qt(this)){var s=Gt(this,{type:Tf,object:this,oldValue:r});if(!s)return!1}if(this.has(r)){var o=process.env.NODE_ENV!=="production"&&Me(),a=en(this),u=a||o?{observableKind:"set",debugObjectName:this.name_,type:Tf,object:this,oldValue:r}:null;return o&&process.env.NODE_ENV!=="production"&&xt(u),Tn(function(){i.atom_.reportChanged(),i.data_.delete(r)}),a&&tn(this,u),o&&process.env.NODE_ENV!=="production"&&Tt(),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=this.values();return OO({next:function(){var s=r.next(),o=s.value,a=s.done;return a?{value:void 0,done:a}:{value:[o,o],done:a}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=this.data_.values();return OO({next:function(){var o=i.next(),a=o.value,u=o.done;return u?{value:void 0,done:u}:{value:r.dehanceValue_(a),done:u}}})},t.intersection=function(r){if(Yn(r)&&!ge(r))return r.intersection(this);var i=new Set(this);return i.intersection(r)},t.union=function(r){if(Yn(r)&&!ge(r))return r.union(this);var i=new Set(this);return i.union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){if(Yn(r)&&!ge(r))return r.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){if(Yn(r)&&!ge(r))return r.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(r)},t.replace=function(r){var i=this;return ge(r)&&(r=new Set(r)),Tn(function(){Array.isArray(r)?(i.clear(),r.forEach(function(s){return i.add(s)})):Yn(r)?(i.clear(),r.forEach(function(s){return i.add(s)})):r!=null&&E("Cannot initialize set from "+r)}),this},t.observe_=function(r,i){return process.env.NODE_ENV!=="production"&&i===!0&&E("`observe` doesn't support fireImmediately=true in combination with sets."),Zo(this,r)},t.intercept_=function(r){return Jo(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},hs(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),ge=Er("ObservableSet",Lp);function OO(e){return e[Symbol.toStringTag]="SetIterator",kp(e)}var EO=Object.create(null),SO="remove",jp=function(){function e(n,r,i,s){r===void 0&&(r=new Map),s===void 0&&(s=XF),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=r,this.name_=i,this.defaultAnnotation_=s,this.keysAtom_=new Sr(process.env.NODE_ENV!=="production"?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=ot(this.target_),process.env.NODE_ENV!=="production"&&!CO(this.defaultAnnotation_)&&E("defaultAnnotation must be valid annotation"),process.env.NODE_ENV!=="production"&&(this.appliedAnnotations_={})}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,i){var s=this.values_.get(r);if(s instanceof Vt)return s.set(i),!0;if(qt(this)){var o=Gt(this,{type:nn,object:this.proxy_||this.target_,name:r,newValue:i});if(!o)return null;i=o.newValue}if(i=s.prepareNewValue_(i),i!==O.UNCHANGED){var a=en(this),u=process.env.NODE_ENV!=="production"&&Me(),f=a||u?{type:nn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:s.value_,name:r,newValue:i}:null;process.env.NODE_ENV!=="production"&&u&&xt(f),s.setNewValue_(i),a&&tn(this,f),process.env.NODE_ENV!=="production"&&u&&Tt()}return!0},t.get_=function(r){return O.trackingDerivation&&!Ot(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,s){return s===void 0&&(s=!1),Ot(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,i):s?Reflect.set(this.target_,r,i):(this.target_[r]=i,!0):this.extend_(r,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,s)},t.has_=function(r){if(!O.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new Tr(r in this.target_,cf,process.env.NODE_ENV!=="production"?this.name_+"."+pp(r)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(r,i)),i.get()},t.make_=function(r,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(RO(this,i,r),!(r in this.target_)){var s;if((s=this.target_[at])!=null&&s[r])return;E(1,i.annotationType_,this.name_+"."+r.toString())}for(var o=this.target_;o&&o!==ko;){var a=of(o,r);if(a){var u=i.make_(this,r,a,o);if(u===0)return;if(u===1)break}o=Object.getPrototypeOf(o)}TO(this,i,r)}},t.extend_=function(r,i,s,o){if(o===void 0&&(o=!1),s===!0&&(s=this.defaultAnnotation_),s===!1)return this.defineProperty_(r,i,o);RO(this,s,r);var a=s.extend_(this,r,i,o);return a&&TO(this,s,r),a},t.defineProperty_=function(r,i,s){s===void 0&&(s=!1),Sn(this.keysAtom_);try{ut();var o=this.delete_(r);if(!o)return o;if(qt(this)){var a=Gt(this,{object:this.proxy_||this.target_,name:r,type:Pr,newValue:i.value});if(!a)return null;var u=a.newValue;i.value!==u&&(i=En({},i,{value:u}))}if(s){if(!Reflect.defineProperty(this.target_,r,i))return!1}else An(this.target_,r,i);this.notifyPropertyAddition_(r,i.value)}finally{ft()}return!0},t.defineObservableProperty_=function(r,i,s,o){o===void 0&&(o=!1),Sn(this.keysAtom_);try{ut();var a=this.delete_(r);if(!a)return a;if(qt(this)){var u=Gt(this,{object:this.proxy_||this.target_,name:r,type:Pr,newValue:i});if(!u)return null;i=u.newValue}var f=xO(r),c={configurable:O.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:f.get,set:f.set};if(o){if(!Reflect.defineProperty(this.target_,r,c))return!1}else An(this.target_,r,c);var l=new Tr(i,s,process.env.NODE_ENV!=="production"?this.name_+"."+r.toString():"ObservableObject.key",!1);this.values_.set(r,l),this.notifyPropertyAddition_(r,l.value_)}finally{ft()}return!0},t.defineComputedProperty_=function(r,i,s){s===void 0&&(s=!1),Sn(this.keysAtom_);try{ut();var o=this.delete_(r);if(!o)return o;if(qt(this)){var a=Gt(this,{object:this.proxy_||this.target_,name:r,type:Pr,newValue:void 0});if(!a)return null}i.name||(i.name=process.env.NODE_ENV!=="production"?this.name_+"."+r.toString():"ObservableObject.key"),i.context=this.proxy_||this.target_;var u=xO(r),f={configurable:O.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,r,f))return!1}else An(this.target_,r,f);this.values_.set(r,new Vt(i)),this.notifyPropertyAddition_(r,void 0)}finally{ft()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),Sn(this.keysAtom_),!Ot(this.target_,r))return!0;if(qt(this)){var s=Gt(this,{object:this.proxy_||this.target_,name:r,type:SO});if(!s)return null}try{var o;ut();var a=en(this),u=process.env.NODE_ENV!=="production"&&Me(),f=this.values_.get(r),c=void 0;if(!f&&(a||u)){var l;c=(l=of(this.target_,r))==null?void 0:l.value}if(i){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(process.env.NODE_ENV!=="production"&&delete this.appliedAnnotations_[r],f&&(this.values_.delete(r),f instanceof Tr&&(c=f.value_),XA(f)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(o=o.get(r))==null||o.set(r in this.target_),a||u){var h={type:SO,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:r};process.env.NODE_ENV!=="production"&&u&&xt(h),a&&tn(this,h),process.env.NODE_ENV!=="production"&&u&&Tt()}}finally{ft()}return!0},t.observe_=function(r,i){return process.env.NODE_ENV!=="production"&&i===!0&&E("`observe` doesn't support the fire immediately property for observable objects."),Zo(this,r)},t.intercept_=function(r){return Jo(this,r)},t.notifyPropertyAddition_=function(r,i){var s,o=en(this),a=process.env.NODE_ENV!=="production"&&Me();if(o||a){var u=o||a?{type:Pr,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:i}:null;process.env.NODE_ENV!=="production"&&a&&xt(u),o&&tn(this,u),process.env.NODE_ENV!=="production"&&a&&Tt()}(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),ls(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function li(e,t){var n;if(process.env.NODE_ENV!=="production"&&t&&ye(e)&&E("Options can't be provided for already observable objects."),Ot(e,R))return process.env.NODE_ENV!=="production"&&!(Rn(e)instanceof jp)&&E("Cannot convert '"+Qo(e)+`' into observable object:
|
|
89
46
|
The target is already observable of different type.
|
|
90
|
-
Extending builtins is not supported.`),e;process.env.NODE_ENV!=="production"&&!Object.isExtensible(e)&&E("Cannot make the designated object observable; it is not extensible");var r=(n=t?.name)!=null?n:process.env.NODE_ENV!=="production"?(
|
|
47
|
+
Extending builtins is not supported.`),e;process.env.NODE_ENV!=="production"&&!Object.isExtensible(e)&&E("Cannot make the designated object observable; it is not extensible");var r=(n=t?.name)!=null?n:process.env.NODE_ENV!=="production"?(ot(e)?"ObservableObject":e.constructor.name)+"@"+At():"ObservableObject",i=new jp(e,new Map,String(r),aB(t));return Wo(e,R,i),e}var xz=Er("ObservableObjectAdministration",jp);function xO(e){return EO[e]||(EO[e]={get:function(){return this[R].getObservablePropValue_(e)},set:function(n){return this[R].setObservablePropValue_(e,n)}})}function ye(e){return uf(e)?xz(e[R]):!1}function TO(e,t,n){var r;process.env.NODE_ENV!=="production"&&(e.appliedAnnotations_[n]=t),(r=e.target_[at])==null||delete r[n]}function RO(e,t,n){if(process.env.NODE_ENV!=="production"&&!CO(t)&&E("Cannot annotate '"+e.name_+"."+n.toString()+"': Invalid annotation."),process.env.NODE_ENV!=="production"&&!lf(t)&&Ot(e.appliedAnnotations_,n)){var r=e.name_+"."+n.toString(),i=e.appliedAnnotations_[n].annotationType_,s=t.annotationType_;E("Cannot apply '"+s+"' to '"+r+"':"+(`
|
|
91
48
|
The field is already annotated with '`+i+"'.")+`
|
|
92
49
|
Re-annotating fields is not allowed.
|
|
93
|
-
Use 'override' annotation for methods overridden by subclass.`)}}var qB=rO(0),GB=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),mp=0,nO=function(){};function HB(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}HB(nO,Array.prototype);var wp=function(e){function t(r,i,s,o){var a;return s===void 0&&(s=process.env.NODE_ENV!=="production"?"ObservableArray@"+wt():"ObservableArray"),o===void 0&&(o=!1),a=e.call(this)||this,xr(function(){var u=new vp(s,i,o,!0);u.proxy_=a,Jw(a,R,u),r&&r.length&&a.spliceWithArray(0,0,r),GB&&Object.defineProperty(a,"0",qB)}),a}tA(t,e);var n=t.prototype;return n.concat=function(){this[R].atom_.reportObserved();for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return Array.prototype.concat.apply(this.slice(),s.map(function(a){return Je(a)?a.slice():a}))},n[Symbol.iterator]=function(){var r=this,i=0;return Ep({next:function(){return i<r.length?{value:r[i++],done:!1}:{done:!0,value:void 0}}})},ss(t,[{key:"length",get:function(){return this[R].getArrayLength_()},set:function(i){this[R].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(nO);Object.entries(df).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&jo(wp.prototype,t,n)});function rO(e){return{enumerable:!1,configurable:!0,get:function(){return this[R].get_(e)},set:function(n){this[R].set_(e,n)}}}function KB(e){mn(wp.prototype,""+e,rO(e))}function iO(e){if(e>mp){for(var t=mp;t<e+100;t++)KB(t);mp=e}}iO(1e3);function YB(e,t,n){return new wp(e,t,n)}function nn(e,t){if(typeof e=="object"&&e!==null){if(Je(e))return t!==void 0&&E(23),e[R].atom_;if(ge(e))return e.atom_;if(ve(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||E(25,t,Go(e)),n}if(ye(e)){if(!t)return E(26);var r=e[R].values_.get(t);return r||E(27,t,Go(e)),r}if(Jh(e)||Jr(e)||cf(e))return e}else if(ue(e)&&cf(e[R]))return e[R];E(28)}function xn(e,t){if(e||E(29),t!==void 0)return xn(nn(e,t));if(Jh(e)||Jr(e)||cf(e)||ve(e)||ge(e))return e;if(e[R])return e[R];E(24,e)}function Go(e,t){var n;if(t!==void 0)n=nn(e,t);else{if(ei(e))return e.name;ye(e)||ve(e)||ge(e)?n=xn(e):n=nn(e)}return n.name_}function xr(e){var t=Zr(),n=rf(!0);at();try{return e()}finally{ut(),sf(n),Hn(t)}}var sO=Co.toString;function Ap(e,t,n){return n===void 0&&(n=-1),Op(e,t,n)}function Op(e,t,n,r,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var s=typeof e;if(s!=="function"&&s!=="object"&&typeof t!="object")return!1;var o=sO.call(e);if(o!==sO.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=oO(e),t=oO(t);var a=o==="[object Array]";if(!a){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,f=t.constructor;if(u!==f&&!(ue(u)&&u instanceof u&&ue(f)&&f instanceof f)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var c=r.length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),a){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!Op(e[c],t[c],n-1,r,i))return!1}else{var l=Object.keys(e),h=l.length;if(Object.keys(t).length!==h)return!1;for(var d=0;d<h;d++){var _=l[d];if(!(At(t,_)&&Op(e[_],t[_],n-1,r,i)))return!1}}return r.pop(),i.pop(),!0}function oO(e){return Je(e)?e.slice():rs(e)||ve(e)||Gn(e)||ge(e)?Array.from(e.entries()):e}var aO,XB=((aO=Gu().Iterator)==null?void 0:aO.prototype)||{};function Ep(e){return e[Symbol.iterator]=JB,Object.assign(Object.create(XB),e)}function JB(){return this}function uO(e){return e instanceof Object&&typeof e.annotationType_=="string"&&ue(e.make_)&&ue(e.extend_)}["Symbol","Map","Set"].forEach(function(e){var t=Gu();typeof t[e]>"u"&&E("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:RA,extras:{getDebugName:Go},$mobx:R});const ZB=Object.freeze(Object.defineProperty({__proto__:null,$mobx:R,FlowCancellationError:hf,ObservableMap:gp,ObservableSet:yp,Reaction:En,_allowStateChanges:np,_allowStateChangesInsideComputed:MA,_allowStateReadsEnd:as,_allowStateReadsStart:uf,_autoAction:us,_endAction:vA,_getAdministration:xn,_getGlobalState:BF,_interceptReads:dB,_isComputingDerivation:IF,_resetGlobalState:zF,_startAction:_A,action:Er,autorun:lp,comparer:Yr,computed:Uo,configure:aB,createAtom:Zh,defineProperty:SB,entries:AB,extendObservable:pp,flow:ti,flowResult:pB,get:EB,getAtom:nn,getDebugName:Go,getDependencyTree:LA,getObserverTree:uB,has:WA,intercept:_B,isAction:ei,isBoxedObservable:rp,isComputed:yB,isComputedProp:bB,isFlow:fs,isFlowCancellationError:lB,isObservable:ni,isObservableArray:Je,isObservableMap:ve,isObservableObject:ye,isObservableProp:mB,isObservableSet:ge,keys:Wo,makeAutoObservable:LB,makeObservable:CB,observable:Se,observe:xB,onBecomeObserved:DA,onBecomeUnobserved:hp,onReactionError:GF,override:Hj,ownKeys:kA,reaction:tB,remove:OB,runInAction:MA,set:VA,spy:RA,toJS:PB,trace:qA,transaction:Sn,untracked:op,values:wB,when:$B},Symbol.toStringTag,{value:"Module"}));var F=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(F||{});function QB({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:s,checkDirty:o,shallowPropagate:a};function r(f,c,l){const h=c.depsTail;if(h!==void 0&&h.dep===f)return;const d=h!==void 0?h.nextDep:c.deps;if(d!==void 0&&d.dep===f){d.version=l,c.depsTail=d;return}const _=f.subsTail;if(_!==void 0&&_.version===l&&_.sub===c)return;const v=c.depsTail=f.subsTail={version:l,dep:f,sub:c,prevDep:h,nextDep:d,prevSub:_,nextSub:void 0};d!==void 0&&(d.prevDep=v),h!==void 0?h.nextDep=v:c.deps=v,_!==void 0?_.nextSub=v:f.subs=v}function i(f,c=f.sub){const l=f.dep,h=f.prevDep,d=f.nextDep,_=f.nextSub,v=f.prevSub;return d!==void 0?d.prevDep=h:c.depsTail=h,h!==void 0?h.nextDep=d:c.deps=d,_!==void 0?_.prevSub=v:l.subsTail=v,v!==void 0?v.nextSub=_:(l.subs=_)===void 0&&n(l),d}function s(f){let c=f.nextSub,l;e:do{const h=f.sub;let d=h.flags;if(d&60?d&12?d&4?!(d&48)&&u(f,h)?(h.flags=d|40,d&=1):d=0:h.flags=d&-9|32:d=0:h.flags=d|32,d&2&&t(h),d&1){const _=h.subs;if(_!==void 0){const v=(f=_).nextSub;v!==void 0&&(l={value:c,prev:l},c=v);continue}}if((f=c)!==void 0){c=f.nextSub;continue}for(;l!==void 0;)if(f=l.value,l=l.prev,f!==void 0){c=f.nextSub;continue e}break}while(!0)}function o(f,c){let l,h=0,d=!1;e:do{const _=f.dep,v=_.flags;if(c.flags&16)d=!0;else if((v&17)===17){if(e(_)){const g=_.subs;g.nextSub!==void 0&&a(g),d=!0}}else if((v&33)===33){(f.nextSub!==void 0||f.prevSub!==void 0)&&(l={value:f,prev:l}),f=_.deps,c=_,++h;continue}if(!d){const g=f.nextDep;if(g!==void 0){f=g;continue}}for(;h--;){const g=c.subs,y=g.nextSub!==void 0;if(y?(f=l.value,l=l.prev):f=g,d){if(e(c)){y&&a(g),c=f.sub;continue}d=!1}else c.flags&=-33;c=f.sub;const b=f.nextDep;if(b!==void 0){f=b;continue e}}return d}while(!0)}function a(f){do{const c=f.sub,l=c.flags;(l&48)===32&&(c.flags=l|16,(l&6)===2&&t(c))}while((f=f.nextSub)!==void 0)}function u(f,c){let l=c.depsTail;for(;l!==void 0;){if(l===f)return!0;l=l.prevDep}return!1}}let vf=0,Ho=0,gf=0,yf=0,rn;const si=[],{link:bf,unlink:Sp,propagate:fO,checkDirty:cO,shallowPropagate:xp}=QB({update(e){return e.depsTail!==void 0?lO(e):hO(e)},notify(e){let t=yf,n=t;do if(e.flags&=~F.Watching,si[t++]=e,e=e.subs?.sub,e===void 0||!(e.flags&F.Watching))break;while(!0);for(yf=t;n<--t;){const r=si[n];si[n++]=si[t],si[t]=r}},unwatched(e){e.flags&F.Mutable?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=F.Mutable|F.Dirty,wf(e)):mf.call(e)}});function ez(){return rn}function oi(e){const t=rn;return rn=e,t}function tz(){return Ho}function nz(){++Ho}function rz(){--Ho||Tp()}function iz(e){return e.name==="bound "+dO.name}function sz(e){return e.name==="bound "+pO.name}function oz(e){return e.name==="bound "+_O.name}function az(e){return e.name==="bound "+mf.name}function uz(e){return dO.bind({currentValue:e,pendingValue:e,subs:void 0,subsTail:void 0,flags:F.Mutable})}function fz(e){return pO.bind({value:void 0,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:F.None,getter:e})}function cz(e){const t={fn:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:F.Watching|F.RecursedCheck},n=oi(t);n!==void 0&&bf(t,n,0);try{t.fn()}finally{rn=n,t.flags&=~F.RecursedCheck}return _O.bind(t)}function lz(e){const t={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:F.None},n=oi(t);n!==void 0&&bf(t,n,0);try{e()}finally{rn=n}return mf.bind(t)}function hz(e){const t={deps:void 0,depsTail:void 0,flags:F.Watching},n=oi(t);try{e()}finally{for(rn=n;t.deps!==void 0;){const r=t.deps,i=r.dep;Sp(r,t),i.subs!==void 0&&(fO(i.subs),xp(i.subs))}Ho||Tp()}}function lO(e){++vf,e.depsTail=void 0,e.flags=F.Mutable|F.RecursedCheck;const t=oi(e);try{const n=e.value;return n!==(e.value=e.getter(n))}finally{rn=t,e.flags&=~F.RecursedCheck,wf(e)}}function hO(e){return e.flags=F.Mutable,e.currentValue!==(e.currentValue=e.pendingValue)}function pz(e){const t=e.flags;if(t&F.Dirty||t&F.Pending&&cO(e.deps,e)){++vf,e.depsTail=void 0,e.flags=F.Watching|F.RecursedCheck;const n=oi(e);try{e.fn()}finally{rn=n,e.flags&=~F.RecursedCheck,wf(e)}}else e.flags=F.Watching}function Tp(){for(;gf<yf;){const e=si[gf];si[gf++]=void 0,pz(e)}gf=0,yf=0}function pO(){const e=this.flags;if(e&F.Dirty||e&F.Pending&&(cO(this.deps,this)||(this.flags=e&~F.Pending,!1))){if(lO(this)){const n=this.subs;n!==void 0&&xp(n)}}else if(!e){this.flags=F.Mutable|F.RecursedCheck;const n=oi(this);try{this.value=this.getter()}finally{rn=n,this.flags&=~F.RecursedCheck}}const t=rn;return t!==void 0&&bf(this,t,vf),this.value}function dO(...e){if(e.length){if(this.pendingValue!==(this.pendingValue=e[0])){this.flags=F.Mutable|F.Dirty;const t=this.subs;t!==void 0&&(fO(t),Ho||Tp())}}else{if(this.flags&F.Dirty&&hO(this)){const n=this.subs;n!==void 0&&xp(n)}let t=rn;for(;t!==void 0;){if(t.flags&(F.Mutable|F.Watching)){bf(this,t,vf);break}t=t.subs?.sub}return this.currentValue}}function _O(){mf.call(this)}function mf(){this.depsTail=void 0,this.flags=F.None,wf(this);const e=this.subs;e!==void 0&&Sp(e)}function wf(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=Sp(n,e)}const dz=Object.freeze(Object.defineProperty({__proto__:null,computed:fz,effect:cz,effectScope:lz,endBatch:rz,getActiveSub:ez,getBatchDepth:tz,isComputed:sz,isEffect:oz,isEffectScope:az,isSignal:iz,setActiveSub:oi,signal:uz,startBatch:nz,trigger:hz},Symbol.toStringTag,{value:"Module"}));function vO(e,t){return Array.isArray(t)?t.includes(e):t===e}function Tn(e,t,n){return e.context?e.callback(n,...t):e.callback(...t)}class _z{interceptions;interceptionKeySet;constructor(){this.interceptions=[],this.interceptionKeySet=new Set}isUsed(){return this.interceptions.length>0}intercept(t){this.interceptions.push(t),Object.keys(t).forEach(n=>{this.interceptionKeySet.add(n)})}tap(t){this.interceptionKeySet.has("tap")&&this.interceptions.forEach(n=>{n.tap?.(t)})}call(t,...n){this.interceptionKeySet.has("call")&&this.interceptions.forEach(r=>{r.context?r.call?.(t,...n):r.call?.(...n)})}loop(...t){this.interceptionKeySet.has("loop")&&this.interceptions.forEach(n=>{n.loop?.(...t)})}error(t){if(this.interceptionKeySet.has("error")&&t instanceof Error){const n=t;this.interceptions.forEach(r=>{r.error?.(n)})}}result(t){this.interceptionKeySet.has("result")&&this.interceptions.forEach(n=>{n.result?.(t)})}done(){this.interceptionKeySet.has("done")&&this.interceptions.forEach(t=>{t.done?.()})}}class Rn{taps;interceptions;constructor(){this.taps=[],this.interceptions=new _z}tap(t,n){const r=typeof t=="string"?{name:t,context:!1}:{context:!1,...t},s={key:Symbol(r.name),...r,callback:n};if(s.before){let o=this.taps.length;const a=new Set(Array.isArray(s.before)?s.before:[s.before]);for(o;o>0&&a.size>0;o--){const u=this.taps[o-1];if(a.has(u.name)&&a.delete(u.name),u.before&&vO(s.name,u.before))break}this.taps.splice(o,0,s)}else this.taps.push(s);return this.interceptions.tap(s),s}untap(t){this.taps=this.taps.filter(n=>n.key!==t.key)}isUsed(){return this.taps.length>0||this.interceptions.isUsed()}intercept(t){this.interceptions.intercept(t)}}class vz extends Rn{call(...t){if(!this.isUsed())return;const n={};this.interceptions.call(n,...t);try{this.taps.forEach(r=>{Tn(r,t,n)})}catch(r){throw this.interceptions.error(r),r}this.interceptions.done()}}class gz extends Rn{call(...t){if(!this.isUsed())return;const n={};this.interceptions.call(n,...t);for(let r=0;r<this.taps.length;r+=1){const i=Tn(this.taps[r],t,n);if(i!==void 0)return this.interceptions.result(i),i}this.interceptions.done()}}class yz extends Rn{call(...t){const n={};this.interceptions.call(n,...t);let[r,...i]=t;for(let s=0;s<this.taps.length;s+=1){const o=Tn(this.taps[s],[r,...i],n);o!==void 0&&(r=o)}return this.interceptions.result(r),r}}class bz extends Rn{call(...t){let n=!1;const r={};this.interceptions.call(r,...t);try{for(;n!==!0;){n=!0,this.interceptions.loop(...t);for(let i=0;i<this.taps.length;i+=1)if(Tn(this.taps[i],t,r)!==void 0){n=!1;break}}}catch(i){throw this.interceptions.error(i),i}this.interceptions.done()}}class mz extends Rn{async call(...t){const n={};this.interceptions.call(n,...t),await Promise.allSettled(this.taps.map(r=>Tn(r,t,n))),this.interceptions.done()}}class wz extends Rn{async call(...t){const n={};this.interceptions.call(n,...t);try{const r=await Promise.race(this.taps.map(i=>Tn(i,t,n)));return this.interceptions.result(r),r}catch(r){throw this.interceptions.error(r),r}}}class Az extends Rn{async call(...t){const n={};this.interceptions.call(n,...t);try{for(let r=0;r<this.taps.length;r+=1)await Tn(this.taps[r],t,n)}catch(r){throw this.interceptions.error(r),r}this.interceptions.done()}}class Oz extends Rn{async call(...t){const n={};this.interceptions.call(n,...t);try{for(let r=0;r<this.taps.length;r+=1){const i=await Tn(this.taps[r],t,n);if(i!==void 0)return this.interceptions.result(i),i}}catch(r){throw this.interceptions.error(r),r}this.interceptions.done()}}class Ez extends Rn{async call(...t){let[n,...r]=t;const i={};this.interceptions.call(i,...t);try{for(let s=0;s<this.taps.length;s+=1){const o=await Tn(this.taps[s],[n,...r],i);o!==void 0&&(n=o)}}catch(s){throw this.interceptions.error(s),s}return this.interceptions.result(n),n}}class Sz extends Rn{async call(...t){let n=!1;const r={};this.interceptions.call(r,...t);try{for(;n!==!0;){n=!0,this.interceptions.loop(...t);for(let i=0;i<this.taps.length;i+=1)if(await Tn(this.taps[i],t,r)!==void 0){n=!1;break}}}catch(i){throw this.interceptions.error(i),i}this.interceptions.done()}}const xz=Object.freeze(Object.defineProperty({__proto__:null,AsyncParallelBailHook:wz,AsyncParallelHook:mz,AsyncSeriesBailHook:Oz,AsyncSeriesHook:Az,AsyncSeriesLoopHook:Sz,AsyncSeriesWaterfallHook:Ez,SyncBailHook:gz,SyncHook:vz,SyncLoopHook:bz,SyncWaterfallHook:yz,equalToOrIn:vO},Symbol.toStringTag,{value:"Module"}));function Af(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Af(e[r],t[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){var s=i[r];if(!Af(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}class Tz{name;fields;parent;context;options;current;dirty;constructor(t,n){this.context=t,this.options=n,this.current=this.default(),this.dirty=!0,n.overrideMethods&&Object.assign(this,n.overrideMethods),this.options.init?.call(this)}equal(t,n){return Af(t,n)}default(){return typeof this.options.default=="function"?this.options.default(this.context):this.options.default}reset(){this.set(this.default())}shouldUpdate(t){return!(!this.dirty&&this.equal(this.current,t))}set(t){return this.shouldUpdate(t)?(this.options.set?.call(this,t,this.context),this.current=this.options.map,this.dirty=!1,!0):!1}get(){return this.current}dispose(){this.options.dispose?.call(this)}}class Rp{static create(t,n){return new Rp(t,n)}context;options=new Map;optionClass=new Map;constructor(t,n){return this.context=t,n&&this.initOptions(n),new Proxy(this,{get(r,i){return r.options.has(i)?r.getOption(i):Reflect.get(r,i)}})}register(t,n){this.optionClass.set(t,n)}defineGetter(t){Object.defineProperty(this,t,{get:()=>this.getOption(t),enumerable:!0})}initOptions(t){for(let n in t)if(this.optionClass.has(n)){const r=this.optionClass.get(n),i=new r(this.context,t[n]);this.addOptionFromInstance(n,i)}else this.addOptionFromConfig(n,t[n])}getOption(t){return this.options.get(t)}removeOption(t){this.options.has(t)&&(this.options.get(t).dispose(),this.options.delete(t))}addOptionFromInstance(t,n){this.options.has(t)||(n.parent=this,n.name=t,this.options.set(t,n))}addOptionFromConfig(t,n){this.addOptionFromInstance(t,new Tz(this.context,n))}}function Rz(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Pz(e){return Nz(e)&&!$z(e)}function Nz(e){return!!e&&typeof e=="object"}function $z(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Dz(e)}var Mz=typeof Symbol=="function"&&Symbol.for,Iz=Mz?Symbol.for("react.element"):60103;function Dz(e){return e.$$typeof===Iz}var Cz=Pz;function Lz(e){return Array.isArray(e)?[]:{}}function Ko(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ls(Lz(e),e,t):e}function jz(e,t,n){return e.concat(t).map(function(r){return Ko(r,n)})}function Fz(e,t){if(!t.customMerge)return ls;var n=t.customMerge(e);return typeof n=="function"?n:ls}function Bz(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function gO(e){return Object.keys(e).concat(Bz(e))}function yO(e,t){try{return t in e}catch{return!1}}function zz(e,t){return yO(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Uz(e,t,n){var r={};return n.isMergeableObject(e)&&gO(e).forEach(function(i){r[i]=Ko(e[i],n)}),gO(t).forEach(function(i){zz(e,i)||(yO(e,i)&&n.isMergeableObject(t[i])?r[i]=Fz(i,n)(e[i],t[i],n):r[i]=Ko(t[i],n))}),r}function ls(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||jz,n.isMergeableObject=n.isMergeableObject||Cz,n.cloneUnlessOtherwiseSpecified=Ko;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge?.(e,t,n):Uz(e,t,n):Ko(t,n)}function Vz(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,r){return ls(n,r,t)},{})}ls.all=Vz;function hs(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function bO(e,t,n){e/=255,t/=255,n/=255;const r=Math.max(e,t,n),i=Math.min(e,t,n);let s=0,o,a=(r+i)/2;if(r==i)s=o=0;else{const u=r-i;switch(o=a>.5?u/(2-r-i):u/(r+i),r){case e:s=(t-n)/u+(t<n?6:0);break;case t:s=(n-e)/u+2;break;case n:s=(e-t)/u+4;break}s/=6}return{h:s,s:o,l:a}}function Pp(e,t,n){let r,i,s;if(t==0)r=i=s=n;else{const o=(f,c,l)=>(l<0&&(l+=1),l>1&&(l-=1),l<.16666666666666666?f+(c-f)*6*l:l<.5?c:l<.6666666666666666?f+(c-f)*(.6666666666666666-l)*6:f),a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;r=o(u,a,e+1/3),i=o(u,a,e),s=o(u,a,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function Wz(e,t,n){e/=255,t/=255,n/=255;const r=Math.max(e,t,n),i=Math.min(e,t,n);let s=0,o,a=r;const u=r-i;if(o=r==0?0:u/r,r==i)s=0;else{switch(r){case e:s=(t-n)/u+(t<n?6:0);break;case t:s=(n-e)/u+2;break;case n:s=(e-t)/u+4;break}s/=6}return{h:s,s:o,v:a}}function mO(e,t,n){let r=0,i=0,s=0;const o=Math.floor(e*6),a=e*6-o,u=n*(1-t),f=n*(1-a*t),c=n*(1-(1-a)*t);switch(o%6){case 0:r=n,i=c,s=u;break;case 1:r=f,i=n,s=u;break;case 2:r=u,i=n,s=c;break;case 3:r=u,i=f,s=n;break;case 4:r=c,i=u,s=n;break;case 5:r=n,i=u,s=f;break}return{r:r*255,g:i*255,b:s*255}}function kz(e,t,n){const r=n+t*Math.min(n,1-n),i=r===0?0:2*(1-n/r);return{h:e,s:i,v:r}}function qz(e,t,n){const r=(2-t)*n/2,i=t===0?t:r<=1?t*n/(2-t*n):t*n/(2-t);return{h:e,s:i,l:r}}function wO(e){typeof e=="string"&&(e=e.replace("#",""),e=e.length===3?e.replace(/(\w)/g,"$1$1"):e,e=parseInt("0x"+e,16));const t=e,n=t>>16&255,r=t>>8&255,i=t&255;return{r:n,g:r,b:i}}function AO(e,t,n){const r=e.r+(t.r-e.r)*n,i=e.g+(t.g-e.g)*n,s=e.b+(t.b-e.b)*n;return{r,g:i,b:s}}const OO={aliceblue:Float32Array.of(.941,.973,1,1),antiquewhite:Float32Array.of(.98,.922,.843,1),aqua:Float32Array.of(0,1,1,1),aquamarine:Float32Array.of(.498,1,.831,1),azure:Float32Array.of(.941,1,1,1),beige:Float32Array.of(.961,.961,.863,1),bisque:Float32Array.of(1,.894,.769,1),black:Float32Array.of(0,0,0,1),blanchedalmond:Float32Array.of(1,.922,.804,1),blue:Float32Array.of(0,0,1,1),blueviolet:Float32Array.of(.541,.169,.886,1),brown:Float32Array.of(.647,.165,.165,1),burlywood:Float32Array.of(.871,.722,.529,1),cadetblue:Float32Array.of(.373,.62,.627,1),chartreuse:Float32Array.of(.498,1,0,1),chocolate:Float32Array.of(.824,.412,.118,1),coral:Float32Array.of(1,.498,.314,1),cornflowerblue:Float32Array.of(.392,.584,.929,1),cornsilk:Float32Array.of(1,.973,.863,1),crimson:Float32Array.of(.863,.078,.235,1),cyan:Float32Array.of(0,1,1,1),darkblue:Float32Array.of(0,0,.545,1),darkcyan:Float32Array.of(0,.545,.545,1),darkgoldenrod:Float32Array.of(.722,.525,.043,1),darkgray:Float32Array.of(.663,.663,.663,1),darkgreen:Float32Array.of(0,.392,0,1),darkgrey:Float32Array.of(.663,.663,.663,1),darkkhaki:Float32Array.of(.741,.718,.42,1),darkmagenta:Float32Array.of(.545,0,.545,1),darkolivegreen:Float32Array.of(.333,.42,.184,1),darkorange:Float32Array.of(1,.549,0,1),darkorchid:Float32Array.of(.6,.196,.8,1),darkred:Float32Array.of(.545,0,0,1),darksalmon:Float32Array.of(.914,.588,.478,1),darkseagreen:Float32Array.of(.561,.737,.561,1),darkslateblue:Float32Array.of(.282,.239,.545,1),darkslategray:Float32Array.of(.184,.31,.31,1),darkslategrey:Float32Array.of(.184,.31,.31,1),darkturquoise:Float32Array.of(0,.808,.82,1),darkviolet:Float32Array.of(.58,0,.827,1),deeppink:Float32Array.of(1,.078,.576,1),deepskyblue:Float32Array.of(0,.749,1,1),dimgray:Float32Array.of(.412,.412,.412,1),dimgrey:Float32Array.of(.412,.412,.412,1),dodgerblue:Float32Array.of(.118,.565,1,1),firebrick:Float32Array.of(.698,.133,.133,1),floralwhite:Float32Array.of(1,.98,.941,1),forestgreen:Float32Array.of(.133,.545,.133,1),fuchsia:Float32Array.of(1,0,1,1),gainsboro:Float32Array.of(.863,.863,.863,1),ghostwhite:Float32Array.of(.973,.973,1,1),gold:Float32Array.of(1,.843,0,1),goldenrod:Float32Array.of(.855,.647,.125,1),gray:Float32Array.of(.502,.502,.502,1),green:Float32Array.of(0,.502,0,1),greenyellow:Float32Array.of(.678,1,.184,1),grey:Float32Array.of(.502,.502,.502,1),honeydew:Float32Array.of(.941,1,.941,1),hotpink:Float32Array.of(1,.412,.706,1),indianred:Float32Array.of(.804,.361,.361,1),indigo:Float32Array.of(.294,0,.51,1),ivory:Float32Array.of(1,1,.941,1),khaki:Float32Array.of(.941,.902,.549,1),lavender:Float32Array.of(.902,.902,.98,1),lavenderblush:Float32Array.of(1,.941,.961,1),lawngreen:Float32Array.of(.486,.988,0,1),lemonchiffon:Float32Array.of(1,.98,.804,1),lightblue:Float32Array.of(.678,.847,.902,1),lightcoral:Float32Array.of(.941,.502,.502,1),lightcyan:Float32Array.of(.878,1,1,1),lightgoldenrodyellow:Float32Array.of(.98,.98,.824,1),lightgray:Float32Array.of(.827,.827,.827,1),lightgreen:Float32Array.of(.565,.933,.565,1),lightgrey:Float32Array.of(.827,.827,.827,1),lightpink:Float32Array.of(1,.714,.757,1),lightsalmon:Float32Array.of(1,.627,.478,1),lightseagreen:Float32Array.of(.125,.698,.667,1),lightskyblue:Float32Array.of(.529,.808,.98,1),lightslategray:Float32Array.of(.467,.533,.6,1),lightslategrey:Float32Array.of(.467,.533,.6,1),lightsteelblue:Float32Array.of(.69,.769,.871,1),lightyellow:Float32Array.of(1,1,.878,1),lime:Float32Array.of(0,1,0,1),limegreen:Float32Array.of(.196,.804,.196,1),linen:Float32Array.of(.98,.941,.902,1),magenta:Float32Array.of(1,0,1,1),maroon:Float32Array.of(.502,0,0,1),mediumaquamarine:Float32Array.of(.4,.804,.667,1),mediumblue:Float32Array.of(0,0,.804,1),mediumorchid:Float32Array.of(.729,.333,.827,1),mediumpurple:Float32Array.of(.576,.439,.859,1),mediumseagreen:Float32Array.of(.235,.702,.443,1),mediumslateblue:Float32Array.of(.482,.408,.933,1),mediumspringgreen:Float32Array.of(0,.98,.604,1),mediumturquoise:Float32Array.of(.282,.82,.8,1),mediumvioletred:Float32Array.of(.78,.082,.522,1),midnightblue:Float32Array.of(.098,.098,.439,1),mintcream:Float32Array.of(.961,1,.98,1),mistyrose:Float32Array.of(1,.894,.882,1),moccasin:Float32Array.of(1,.894,.71,1),navajowhite:Float32Array.of(1,.871,.678,1),navy:Float32Array.of(0,0,.502,1),oldlace:Float32Array.of(.992,.961,.902,1),olive:Float32Array.of(.502,.502,0,1),olivedrab:Float32Array.of(.42,.557,.137,1),orange:Float32Array.of(1,.647,0,1),orangered:Float32Array.of(1,.271,0,1),orchid:Float32Array.of(.855,.439,.839,1),palegoldenrod:Float32Array.of(.933,.91,.667,1),palegreen:Float32Array.of(.596,.984,.596,1),paleturquoise:Float32Array.of(.686,.933,.933,1),palevioletred:Float32Array.of(.859,.439,.576,1),papayawhip:Float32Array.of(1,.937,.835,1),peachpuff:Float32Array.of(1,.855,.725,1),peru:Float32Array.of(.804,.522,.247,1),pink:Float32Array.of(1,.753,.796,1),plum:Float32Array.of(.867,.627,.867,1),powderblue:Float32Array.of(.69,.878,.902,1),purple:Float32Array.of(.502,0,.502,1),rebeccapurple:Float32Array.of(.4,.2,.6,1),red:Float32Array.of(1,0,0,1),rosybrown:Float32Array.of(.737,.561,.561,1),royalblue:Float32Array.of(.255,.412,.882,1),saddlebrown:Float32Array.of(.545,.271,.075,1),salmon:Float32Array.of(.98,.502,.447,1),sandybrown:Float32Array.of(.957,.643,.376,1),seagreen:Float32Array.of(.18,.545,.341,1),seashell:Float32Array.of(1,.961,.933,1),sienna:Float32Array.of(.627,.322,.176,1),silver:Float32Array.of(.753,.753,.753,1),skyblue:Float32Array.of(.529,.808,.922,1),slateblue:Float32Array.of(.416,.353,.804,1),slategray:Float32Array.of(.439,.502,.565,1),slategrey:Float32Array.of(.439,.502,.565,1),snow:Float32Array.of(1,.98,.98,1),springgreen:Float32Array.of(0,1,.498,1),steelblue:Float32Array.of(.275,.51,.706,1),tan:Float32Array.of(.824,.706,.549,1),teal:Float32Array.of(0,.502,.502,1),thistle:Float32Array.of(.847,.749,.847,1),tomato:Float32Array.of(1,.388,.278,1),transparent:Float32Array.of(0,0,0,0),turquoise:Float32Array.of(.251,.878,.816,1),violet:Float32Array.of(.933,.51,.933,1),wheat:Float32Array.of(.961,.871,.702,1),white:Float32Array.of(1,1,1,1),whitesmoke:Float32Array.of(.961,.961,.961,1),yellow:Float32Array.of(1,1,0,1),yellowgreen:Float32Array.of(.604,.804,.196,1)};class ft{static Transparent=ft.fromRGBA(0,0,0,0);static BLACK=ft.fromRGB(0,0,0);static WHITE=ft.fromRGB(255,255,255);static isColor(t){return typeof t=="string"||typeof t=="number"||t instanceof ft}static parse(t){const n=typeof t=="string";if(n&&t.toLowerCase().startsWith("rgb")){const r=t.match(/rgba?\s*\(([^)]+)\)\s*/i);if(r){const i=r[1].split(",").map(parseInt),s=this.fromRGB(i[0],i[1],i[2]);return i.length===4&&(s.alpha=i[3]),s}}else if(n&&t.startsWith("#")||typeof t=="number")return this.fromRGB(wO(t));if(n&&OO[t]){const r=OO[t];return this.fromRGB(r[0]*255>>0,r[1]*255>>0,r[2]*255>>0)}else if(typeof t=="object"&&t!==null)return this.fromRGB(t);return this.fromRGB(0,0,0)}static fromRGB(t,n,r){return t!==null&&typeof t=="object"?new ft(t.r,t.g,t.b):new ft(t,n,r)}static fromRGBA(t,n,r,i){return t!==null&&typeof t=="object"?new ft(t.r,t.g,t.b,n):new ft(t,n,r,i)}static fromHSL(t,n,r){const{r:i,g:s,b:o}=Pp(t,n,r);return new ft(i,s,o)}static fromHSV(t,n,r){const{r:i,g:s,b:o}=mO(t,n,r);return new ft(i,s,o)}_r=0;_g=0;_b=0;_a=1;constructor(t=0,n=0,r=0,i=1){this._r=t,this._g=n,this._b=r,this._a=i}copy(t){return this._r=t.r,this._g=t.g,this._b=t.b,this.alpha=t.alpha,this}clone(){return ft.fromRGB(0,0,0).copy(this)}setRGB(t,n,r){return this._r=t,this._g=n,this._b=r,this}normalize(){return this.r=hs(this._r/255,0,1),this.g=hs(this._g/255,0,1),this.b=hs(this._b/255,0,1),this}set r(t){this._r=t}get r(){return this._r}set g(t){this._g=t}get g(){return this._g}set b(t){this._b=t}get b(){return this._b}get a(){return this.alpha}set a(t){this.alpha=t}set alpha(t){this._a=Math.max(0,Math.min(1,t))}get alpha(){return this._a}equals(t){return this.r!==t.r||this.g!==t.g||this.b!==t.b||this.alpha!==t.alpha}setOpacity(t){return this.alpha=t,this}mix(t,n,r=.5){const{r:i,g:s,b:o}=AO(t,n,r);return new ft(i,s,o)}setRBG(t,n,r){return this.r=t,this.g=n,this.b=r,this}setRGBColor(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}brighten(t){const{h:n,s:r,l:i}=bO(this.r,this.g,this.b);return this.setRGBColor(Pp(n,r,i*(1+t)))}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}round(){return this.r=Math.round(this.r),this.g=Math.round(this.g),this.b=Math.round(this.b),this}floor(){return this.r=Math.floor(this.r),this.g=Math.floor(this.g),this.b=Math.floor(this.b),this}clamp(t=0,n=1){return this.r=hs(this.r,t,n),this.g=hs(this.g,t,n),this.b=hs(this.b,t,n),this}toCssRGB(){return`rgb(${Math.round(this.r)},${Math.round(this.g)},${Math.round(this.b)})`}}const Of=3,Gz={grad:360/400,turn:360,rad:360/(Math.PI*2)},Kn=e=>typeof e=="string"?e.length>0:typeof e=="number",xe=(e,t=0,n=Math.pow(10,t))=>Math.round(n*e)/n+0,qt=(e,t=0,n=1)=>e>n?n:e>t?e:t,EO=e=>(e=isFinite(e)?e%360:0,e>0?e:e+360),Hz=(e,t="deg")=>Number(e)*(Gz[t]||1),SO=e=>({r:qt(e.r,0,255),g:qt(e.g,0,255),b:qt(e.b,0,255),a:qt(e.a)}),Np=e=>({r:xe(e.r),g:xe(e.g),b:xe(e.b),a:xe(e.a,Of)}),Kz=({r:e,g:t,b:n,a:r=1})=>!Kn(e)||!Kn(t)||!Kn(n)?null:SO({r:Number(e),g:Number(t),b:Number(n),a:Number(r)}),Yz=/^#([0-9a-f]{3,8})$/i,Xz=e=>{const t=Yz.exec(e);return t?(e=t[1],e.length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?xe(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?xe(parseInt(e.substr(6,2),16)/255,2):1}:null):null},Ef=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},Jz=e=>{const{r:t,g:n,b:r,a:i}=Np(e),s=i<1?Ef(xe(i*255)):"";return"#"+Ef(t)+Ef(n)+Ef(r)+s},Zz=e=>({h:EO(e.h),s:qt(e.s,0,100),v:qt(e.v,0,100),a:qt(e.a)}),Qz=e=>({h:xe(e.h),s:xe(e.s),v:xe(e.v),a:xe(e.a,Of)}),e5=({h:e,s:t,v:n,a:r=1})=>{if(!Kn(e)||!Kn(t)||!Kn(n))return null;const i=Zz({h:Number(e),s:Number(t),v:Number(n),a:Number(r)});return TO(i)},xO=({r:e,g:t,b:n,a:r})=>{const i=Math.max(e,t,n),s=i-Math.min(e,t,n),o=s?i===e?(t-n)/s:i===t?2+(n-e)/s:4+(e-t)/s:0;return{h:60*(o<0?o+6:o),s:i?s/i*100:0,v:i/255*100,a:r}},TO=({h:e,s:t,v:n,a:r})=>{e=e/360*6,t=t/100,n=n/100;const i=Math.floor(e),s=n*(1-t),o=n*(1-(e-i)*t),a=n*(1-(1-e+i)*t),u=i%6;return{r:[n,o,s,s,a,n][u]*255,g:[a,n,n,o,s,s][u]*255,b:[s,s,a,n,n,o][u]*255,a:r}},RO=e=>({h:EO(e.h),s:qt(e.s,0,100),l:qt(e.l,0,100),a:qt(e.a)}),PO=e=>({h:xe(e.h),s:xe(e.s),l:xe(e.l),a:xe(e.a,Of)}),t5=({h:e,s:t,l:n,a:r=1})=>{if(!Kn(e)||!Kn(t)||!Kn(n))return null;const i=RO({h:Number(e),s:Number(t),l:Number(n),a:Number(r)});return NO(i)},n5=({h:e,s:t,l:n,a:r})=>(t*=(n<50?n:100-n)/100,{h:e,s:t>0?2*t/(n+t)*100:0,v:n+t,a:r}),r5=({h:e,s:t,v:n,a:r})=>{const i=(200-t)*n/100;return{h:e,s:i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:r}},NO=e=>TO(n5(e)),Yo=e=>r5(xO(e)),i5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,s5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,o5=e=>{const t=i5.exec(e)||s5.exec(e);if(!t)return null;const n=RO({h:Hz(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return NO(n)},a5=e=>{const{h:t,s:n,l:r,a:i}=PO(Yo(e));return i<1?`hsla(${t}, ${n}%, ${r}%, ${i})`:`hsl(${t}, ${n}%, ${r}%)`},u5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,f5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,c5=e=>{const t=u5.exec(e)||f5.exec(e);return!t||t[2]!==t[4]||t[4]!==t[6]?null:SO({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)})},l5=e=>{const{r:t,g:n,b:r,a:i}=Np(e);return i<1?`rgba(${t}, ${n}, ${r}, ${i})`:`rgb(${t}, ${n}, ${r})`},$p={string:[[Xz,"hex"],[c5,"rgb"],[o5,"hsl"]],object:[[Kz,"rgb"],[t5,"hsl"],[e5,"hsv"]]},$O=(e,t)=>{for(let n=0;n<t.length;n++){const r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},MO=e=>typeof e=="string"?$O(e.trim(),$p.string):typeof e=="object"&&e!==null?$O(e,$p.object):[null,void 0],h5=e=>MO(e)[1],p5=(e,t)=>({r:e.r,g:e.g,b:e.b,a:t}),Mp=(e,t)=>{const n=Yo(e);return{h:n.h,s:qt(n.s+t*100,0,100),l:n.l,a:n.a}},Ip=e=>(e.r*299+e.g*587+e.b*114)/1e3/255,IO=(e,t)=>{const n=Yo(e);return{h:n.h,s:n.s,l:qt(n.l+t*100,0,100),a:n.a}},d5=e=>({r:255-e.r,g:255-e.g,b:255-e.b,a:e.a});class Sf{parsed;rgba;constructor(t){this.parsed=MO(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}isValid(){return this.parsed!==null}brightness(){return xe(Ip(this.rgba),2)}isDark(){return Ip(this.rgba)<.5}isLight(){return Ip(this.rgba)>=.5}toHex(){return Jz(this.rgba)}toRgb(){return Np(this.rgba)}toRgbString(){return l5(this.rgba)}toHsl(){return PO(Yo(this.rgba))}toHslString(){return a5(this.rgba)}toHsv(){return Qz(xO(this.rgba))}invert(){return Pn(d5(this.rgba))}saturate(t=.1){return Pn(Mp(this.rgba,t))}desaturate(t=.1){return Pn(Mp(this.rgba,-t))}grayscale(){return Pn(Mp(this.rgba,-1))}lighten(t=.1){return Pn(IO(this.rgba,t))}darken(t=.1){return Pn(IO(this.rgba,-t))}rotate(t=15){return this.hue(this.hue()+t)}alpha(t){return typeof t=="number"?Pn(p5(this.rgba,t)):xe(this.rgba.a,Of)}hue(t){const n=Yo(this.rgba);return typeof t=="number"?Pn({h:t,s:n.s,l:n.l,a:n.a}):xe(n.h)}isEqual(t){return this.toHex()===Pn(t).toHex()}}const Pn=e=>e instanceof Sf?e:new Sf(e),DO=[],_5=Object.freeze(Object.defineProperty({__proto__:null,colord:Pn,extend:e=>{e.forEach(t=>{DO.indexOf(t)<0&&(t(Sf,$p),DO.push(t))})},getFormat:h5,random:()=>new Sf({r:Math.random()*255,g:Math.random()*255,b:Math.random()*255})},Symbol.toStringTag,{value:"Module"}));var CO=(e=>(e.create="create",e.add="add",e.modify="modify",e.event="event",e))(CO||{});class v5{constructor(t,n){this.config=n,this.context=t,this.config&&this.initPresetsAndPlugins(this.config)}hooks=new Map;methods=new Map;plugins=new Map;extraPresets=[];extraPlugins=[];context;initPresetsAndPlugins(t){this.extraPlugins=[],this.extraPresets=[],this.resolvePresets(t.presets??[]),this.resolvePlugins(t.plugins??[])}resolvePresets(t){Array.isArray(t)&&t.forEach(r=>{this.initPreset(r)});const n=this.extraPresets;for(;n.length;)this.initPreset(n.shift())}resolvePlugins(t){Array.isArray(t)&&t.forEach(r=>{this.initPlugin(r)});const n=this.extraPlugins;for(;n.length;)this.initPlugin(n.shift())}getApplyMethods(t){const n=this.methods.get(t)??[];return(...r)=>n.length===1?n[0](...r):n.reduceRight((i,s)=>(...o)=>s(i(...o)))(...r)}applyMethods(t,...n){const r=this.methods.get(t)??[];return r.length===1?r[0](...n):r.reduceRight((i,s)=>(...o)=>s(i(...o)))(...n)}getPluginContext(t){const n={pluginName:t.name,ctx:this.context,registerMethod:this.registerMethod.bind(this),register:this.register.bind(this)};return new Proxy(n,{get:(r,i,s)=>this.methods.has(i)?this.getApplyMethods(i):Reflect.get(r,i,s)})}initPreset(t){this.registerPlugin(t);const n=this.getPluginContext(t),{plugins:r,presets:i}=t.apply(n,t.config);i&&this.extraPresets.push(...i),r&&this.extraPlugins.push(...r)}initPlugin(t){this.registerPlugin(t);const n=this.getPluginContext(t);t.apply(n,t.config)}registerPlugin(t){if(this.plugins.has(t.name))throw`${t.name}:已存在`;this.plugins.set(t.name,t)}register(t){const n=this.hooks.get(t.name)??[];n.push(t),this.hooks.set(t.name,n)}registerMethod(t,n){const r=this.methods.get(t)??[];r.push(n||(i=>{this.register({name:t,fn:i})})),this.methods.set(t,r)}async applyPlugins(t){const n=typeof t=="string"?{name:t,type:void 0}:t;let{name:r,type:i}=n;i||(r.startsWith("modify")&&(i="modify"),r.startsWith("add")&&(i="add"),r.startsWith("on")&&(i="event"),r.startsWith("create")&&(i="create"));const s=(this.hooks.get(r)??[]).slice();switch(s.sort((o,a)=>{let u=o.order??0,f=a.order??0;return u-f}),i){case"create":{let o=n.initalValue;for(let a of s){let u=await Promise.resolve().then(()=>a.fn(n.args));if(u!=null)return u}return o}case"add":{let o=n.initalValue??[];for(let a of s){let u=await Promise.resolve().then(()=>a.fn(n.args));u!=null&&o.push(u)}return o}case"modify":{let o=n.initalValue??{};for(let a of s){let u=await Promise.resolve().then(()=>a.fn(o,n.args));u!=null&&(o=u)}return o}case"event":{if(n.sync)for(let o of s)o.fn(n.args);else{let o=Promise.resolve();for(let a of s)o=o.then(()=>{a.fn(n.args)})}break}}}uninstallPlugin(t){if(this.plugins.has(t.name)){const n=this.getPluginContext(t);t.dispose?.(n),this.plugins.delete(t.name)}}dispose(){this.plugins.forEach(t=>{t?.dispose?.(this.getPluginContext(t))}),this.extraPlugins=[],this.extraPresets=[],this.plugins.clear(),this.hooks.clear(),this.methods.clear()}}var Rt=-1,Ze=1,be=0;function Xo(e,t,n,r,i){if(e===t)return e?[[be,e]]:[];if(n!=null){var s=S5(e,t,n);if(s)return s}var o=Dp(e,t),a=e.substring(0,o);e=e.substring(o),t=t.substring(o),o=xf(e,t);var u=e.substring(e.length-o);e=e.substring(0,e.length-o),t=t.substring(0,t.length-o);var f=g5(e,t);return a&&f.unshift([be,a]),u&&f.push([be,u]),Cp(f,i),r&&m5(f),f}function g5(e,t){var n;if(!e)return[[Ze,t]];if(!t)return[[Rt,e]];var r=e.length>t.length?e:t,i=e.length>t.length?t:e,s=r.indexOf(i);if(s!==-1)return n=[[Ze,r.substring(0,s)],[be,i],[Ze,r.substring(s+i.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Rt),n;if(i.length===1)return[[Rt,e],[Ze,t]];var o=b5(e,t);if(o){var a=o[0],u=o[1],f=o[2],c=o[3],l=o[4],h=Xo(a,f),d=Xo(u,c);return h.concat([[be,l]],d)}return y5(e,t)}function y5(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),s=i,o=2*i,a=new Array(o),u=new Array(o),f=0;f<o;f++)a[f]=-1,u[f]=-1;a[s+1]=0,u[s+1]=0;for(var c=n-r,l=c%2!==0,h=0,d=0,_=0,v=0,g=0;g<i;g++){for(var y=-g+h;y<=g-d;y+=2){var b=s+y,w;y===-g||y!==g&&a[b-1]<a[b+1]?w=a[b+1]:w=a[b-1]+1;for(var m=w-y;w<n&&m<r&&e.charAt(w)===t.charAt(m);)w++,m++;if(a[b]=w,w>n)d+=2;else if(m>r)h+=2;else if(l){var A=s+c-y;if(A>=0&&A<o&&u[A]!==-1){var S=n-u[A];if(w>=S)return LO(e,t,w,m)}}}for(var P=-g+_;P<=g-v;P+=2){var A=s+P,S;P===-g||P!==g&&u[A-1]<u[A+1]?S=u[A+1]:S=u[A-1]+1;for(var V=S-P;S<n&&V<r&&e.charAt(n-S-1)===t.charAt(r-V-1);)S++,V++;if(u[A]=S,S>n)v+=2;else if(V>r)_+=2;else if(!l){var b=s+c-P;if(b>=0&&b<o&&a[b]!==-1){var w=a[b],m=s+w-b;if(S=n-S,w>=S)return LO(e,t,w,m)}}}}return[[Rt,e],[Ze,t]]}function LO(e,t,n,r){var i=e.substring(0,n),s=t.substring(0,r),o=e.substring(n),a=t.substring(r),u=Xo(i,s),f=Xo(o,a);return u.concat(f)}function Dp(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,s=0;n<i;)e.substring(s,i)==t.substring(s,i)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return UO(e.charCodeAt(i-1))&&i--,i}function jO(e,t){var n=e.length,r=t.length;if(n==0||r==0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var s=0,o=1;;){var a=e.substring(i-o),u=t.indexOf(a);if(u==-1)return s;o+=u,(u==0||e.substring(i-o)==t.substring(0,o))&&(s=o,o++)}}function xf(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,s=0;n<i;)e.substring(e.length-i,e.length-s)==t.substring(t.length-i,t.length-s)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return VO(e.charCodeAt(e.length-i))&&i--,i}function b5(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2<n.length)return null;function i(d,_,v){for(var g=d.substring(v,v+Math.floor(d.length/4)),y=-1,b="",w,m,A,S;(y=_.indexOf(g,y+1))!==-1;){var P=Dp(d.substring(v),_.substring(y)),V=xf(d.substring(0,v),_.substring(0,y));b.length<V+P&&(b=_.substring(y-V,y)+_.substring(y,y+P),w=d.substring(0,v-V),m=d.substring(v+P),A=_.substring(0,y-V),S=_.substring(y+P))}return b.length*2>=d.length?[w,m,A,S,b]:null}var s=i(n,r,Math.ceil(n.length/4)),o=i(n,r,Math.ceil(n.length/2)),a;if(!s&&!o)return null;o?s?a=s[4].length>o[4].length?s:o:a=o:a=s;var u,f,c,l;e.length>t.length?(u=a[0],f=a[1],c=a[2],l=a[3]):(c=a[0],l=a[1],u=a[2],f=a[3]);var h=a[4];return[u,f,c,l,h]}function m5(e){for(var t=!1,n=[],r=0,i=null,s=0,o=0,a=0,u=0,f=0;s<e.length;)e[s][0]==be?(n[r++]=s,o=u,a=f,u=0,f=0,i=e[s][1]):(e[s][0]==Ze?u+=e[s][1].length:f+=e[s][1].length,i&&i.length<=Math.max(o,a)&&i.length<=Math.max(u,f)&&(e.splice(n[r-1],0,[Rt,i]),e[n[r-1]+1][0]=Ze,r--,r--,s=r>0?n[r-1]:-1,o=0,a=0,u=0,f=0,i=null,t=!0)),s++;for(t&&Cp(e),O5(e),s=1;s<e.length;){if(e[s-1][0]==Rt&&e[s][0]==Ze){var c=e[s-1][1],l=e[s][1],h=jO(c,l),d=jO(l,c);h>=d?(h>=c.length/2||h>=l.length/2)&&(e.splice(s,0,[be,l.substring(0,h)]),e[s-1][1]=c.substring(0,c.length-h),e[s+1][1]=l.substring(h),s++):(d>=c.length/2||d>=l.length/2)&&(e.splice(s,0,[be,c.substring(0,d)]),e[s-1][0]=Ze,e[s-1][1]=l.substring(0,l.length-d),e[s+1][0]=Rt,e[s+1][1]=c.substring(d),s++),s++}s++}}var FO=/[^a-zA-Z0-9]/,BO=/\s/,zO=/[\r\n]/,w5=/\n\r?\n$/,A5=/^\r?\n\r?\n/;function O5(e){function t(d,_){if(!d||!_)return 6;var v=d.charAt(d.length-1),g=_.charAt(0),y=v.match(FO),b=g.match(FO),w=y&&v.match(BO),m=b&&g.match(BO),A=w&&v.match(zO),S=m&&g.match(zO),P=A&&d.match(w5),V=S&&_.match(A5);return P||V?5:A||S?4:y&&!w&&m?3:w||m?2:y||b?1:0}for(var n=1;n<e.length-1;){if(e[n-1][0]==be&&e[n+1][0]==be){var r=e[n-1][1],i=e[n][1],s=e[n+1][1],o=xf(r,i);if(o){var a=i.substring(i.length-o);r=r.substring(0,r.length-o),i=a+i.substring(0,i.length-o),s=a+s}for(var u=r,f=i,c=s,l=t(r,i)+t(i,s);i.charAt(0)===s.charAt(0);){r+=i.charAt(0),i=i.substring(1)+s.charAt(0),s=s.substring(1);var h=t(r,i)+t(i,s);h>=l&&(l=h,u=r,f=i,c=s)}e[n-1][1]!=u&&(u?e[n-1][1]=u:(e.splice(n-1,1),n--),e[n][1]=f,c?e[n+1][1]=c:(e.splice(n+1,1),n--))}n++}}function Cp(e,t){e.push([be,""]);for(var n=0,r=0,i=0,s="",o="",a;n<e.length;){if(n<e.length-1&&!e[n][1]){e.splice(n,1);continue}switch(e[n][0]){case Ze:i++,o+=e[n][1],n++;break;case Rt:r++,s+=e[n][1],n++;break;case be:var u=n-i-r-1;if(t){if(u>=0&&kO(e[u][1])){var f=e[u][1].slice(-1);if(e[u][1]=e[u][1].slice(0,-1),s=f+s,o=f+o,!e[u][1]){e.splice(u,1),n--;var c=u-1;e[c]&&e[c][0]===Ze&&(i++,o=e[c][1]+o,c--),e[c]&&e[c][0]===Rt&&(r++,s=e[c][1]+s,c--),u=c}}if(WO(e[n][1])){var f=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),s+=f,o+=f}}if(n<e.length-1&&!e[n][1]){e.splice(n,1);break}if(s.length>0||o.length>0){s.length>0&&o.length>0&&(a=Dp(o,s),a!==0&&(u>=0?e[u][1]+=o.substring(0,a):(e.splice(0,0,[be,o.substring(0,a)]),n++),o=o.substring(a),s=s.substring(a)),a=xf(o,s),a!==0&&(e[n][1]=o.substring(o.length-a)+e[n][1],o=o.substring(0,o.length-a),s=s.substring(0,s.length-a)));var l=i+r;s.length===0&&o.length===0?(e.splice(n-l,l),n=n-l):s.length===0?(e.splice(n-l,l,[Ze,o]),n=n-l+1):o.length===0?(e.splice(n-l,l,[Rt,s]),n=n-l+1):(e.splice(n-l,l,[Rt,s],[Ze,o]),n=n-l+2)}n!==0&&e[n-1][0]===be?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,i=0,r=0,s="",o="";break}}e[e.length-1][1]===""&&e.pop();var h=!1;for(n=1;n<e.length-1;)e[n-1][0]===be&&e[n+1][0]===be&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),h=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),h=!0)),n++;h&&Cp(e,t)}function UO(e){return e>=55296&&e<=56319}function VO(e){return e>=56320&&e<=57343}function WO(e){return VO(e.charCodeAt(0))}function kO(e){return UO(e.charCodeAt(e.length-1))}function E5(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function Lp(e,t,n,r){return kO(e)||WO(r)?null:E5([[be,e],[Rt,t],[Ze,n],[be,r]])}function S5(e,t,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,s=e.length,o=t.length;if(r.length===0&&(i===null||i.length===0)){var a=r.index,u=e.slice(0,a),f=e.slice(a),c=i?i.index:null;e:{var l=a+o-s;if(c!==null&&c!==l||l<0||l>o)break e;var h=t.slice(0,l),d=t.slice(l);if(d!==f)break e;var _=Math.min(a,l),v=u.slice(0,_),g=h.slice(0,_);if(v!==g)break e;var y=u.slice(_),b=h.slice(_);return Lp(v,y,b,f)}e:{if(c!==null&&c!==a)break e;var w=a,h=t.slice(0,w),d=t.slice(w);if(h!==u)break e;var m=Math.min(s-w,o-w),A=f.slice(f.length-m),S=d.slice(d.length-m);if(A!==S)break e;var y=f.slice(0,f.length-m),b=d.slice(0,d.length-m);return Lp(u,y,b,A)}}if(r.length>0&&i&&i.length===0)e:{var v=e.slice(0,r.index),A=e.slice(r.index+r.length),_=v.length,m=A.length;if(o<_+m)break e;var g=t.slice(0,_),S=t.slice(o-m);if(v!==g||A!==S)break e;var y=e.slice(_,s-m),b=t.slice(_,o-m);return Lp(v,y,b,A)}return null}function Tr(e,t,n,r){return Xo(e,t,n,r,!0)}Tr.INSERT=Ze,Tr.DELETE=Rt,Tr.EQUAL=be;/*!
|
|
94
|
-
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
95
|
-
* (c) 2017-2022 Joachim Wester
|
|
96
|
-
* MIT licensed
|
|
97
|
-
*/const x5=Object.prototype.hasOwnProperty;function T5(e,t){return x5.call(e,t)}function R5(e){if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<n.length;r++)n[r]=""+r;return n}if(Object.keys)return Object.keys(e);let t=[];for(let n in e)T5(e,n)&&t.push(n);return t}function ai(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function jp(e){let t=0;const n=e.length;let r;for(;t<n;){if(r=e.charCodeAt(t),r>=48&&r<=57){t++;continue}return!1}return!0}function P5(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Fp(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Fp(e[n]))return!0}else if(typeof e=="object"){const n=R5(e),r=n.length;for(var t=0;t<r;t++)if(Fp(e[n[t]]))return!0}}return!1}function qO(e,t){const n=[e];for(const r in t){const i=typeof t[r]=="object"?JSON.stringify(t[r],null,2):t[r];typeof i<"u"&&n.push(`${r}: ${i}`)}return n.join(`
|
|
98
|
-
`)}class N5 extends Error{constructor(t,n,r,i,s){super(qO(t,{name:n,index:r,operation:i,tree:s})),this.name=n,this.index=r,this.operation=i,this.tree=s,Object.setPrototypeOf(this,new.target.prototype),this.message=qO(t,{name:n,index:r,operation:i,tree:s})}}/*!
|
|
99
|
-
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
100
|
-
* (c) 2013-2021 Joachim Wester
|
|
101
|
-
* MIT license
|
|
102
|
-
*/const le=N5,$5=ai,ps={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){let r=Tf(n,this.path);r&&(r=ai(r));const i=ui(n,{op:"remove",path:this.from}).removed;return ui(n,{op:"add",path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){const r=Tf(n,this.from);return ui(n,{op:"add",path:this.path,value:ai(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:Jo(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}};var M5={add:function(e,t,n){return jp(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){var r=e.splice(t,1);return{newDocument:n,removed:r[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:ps.move,copy:ps.copy,test:ps.test,_get:ps._get};function Tf(e,t){if(t=="")return e;var n={op:"_get",path:t};return ui(e,n),n.value}function ui(e,t,n=!1,r=!0,i=!0,s=0){if(n&&(typeof n=="function"?n(t,0,e,t.path):Rf(t,0)),t.path===""){let o={newDocument:e};if(t.op==="add")return o.newDocument=t.value,o;if(t.op==="replace")return o.newDocument=t.value,o.removed=e,o;if(t.op==="move"||t.op==="copy")return o.newDocument=Tf(e,t.from),t.op==="move"&&(o.removed=e),o;if(t.op==="test"){if(o.test=Jo(e,t.value),o.test===!1)throw new le("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return o.newDocument=e,o}else{if(t.op==="remove")return o.removed=e,o.newDocument=null,o;if(t.op==="_get")return t.value=e,o;if(n)throw new le("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",s,t,e);return o}}else{r||(e=ai(e));const a=(t.path||"").split("/");let u=e,f=1,c=a.length,l,h,d;for(typeof n=="function"?d=n:d=Rf;;){if(h=a[f],h&&h.indexOf("~")!=-1&&(h=P5(h)),i&&(h=="__proto__"||h=="prototype"&&f>0&&a[f-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&l===void 0&&(u[h]===void 0?l=a.slice(0,f).join("/"):f==c-1&&(l=t.path),l!==void 0&&d(t,0,e,l)),f++,Array.isArray(u)){if(h==="-")h=u.length;else{if(n&&!jp(h))throw new le("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",s,t,e);jp(h)&&(h=~~h)}if(f>=c){if(n&&t.op==="add"&&h>u.length)throw new le("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s,t,e);const _=M5[t.op].call(t,u,h,e);if(_.test===!1)throw new le("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return _}}else if(f>=c){const _=ps[t.op].call(t,u,h,e);if(_.test===!1)throw new le("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return _}if(u=u[h],n&&f<c&&(!u||typeof u!="object"))throw new le("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",s,t,e)}}}function GO(e,t,n,r=!0,i=!0){if(n&&!Array.isArray(t))throw new le("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=ai(e));const s=new Array(t.length);for(let o=0,a=t.length;o<a;o++)s[o]=ui(e,t[o],n,!0,i,o),e=s[o].newDocument;return s.newDocument=e,s}function I5(e,t,n){const r=ui(e,t);if(r.test===!1)throw new le("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function Rf(e,t,n,r){if(typeof e!="object"||e===null||Array.isArray(e))throw new le("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(ps[e.op]){if(typeof e.path!="string")throw new le("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new le('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new le("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new le("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Fp(e.value))throw new le("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var i=e.path.split("/").length,s=r.split("/").length;if(i!==s+1&&i!==s)throw new le("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new le("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var o={op:"_get",path:e.from,value:void 0},a=HO([o],n);if(a&&a.name==="OPERATION_PATH_UNRESOLVABLE")throw new le("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new le("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function HO(e,t,n){try{if(!Array.isArray(e))throw new le("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)GO(ai(t),ai(e),n||!0);else{n=n||Rf;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(i){if(i instanceof le)return i;throw i}}function Jo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Array.isArray(e),r=Array.isArray(t),i,s,o;if(n&&r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!Jo(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var a=Object.keys(e);if(s=a.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!t.hasOwnProperty(a[i]))return!1;for(i=s;i--!==0;)if(o=a[i],!Jo(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}const D5=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:le,_areEquals:Jo,applyOperation:ui,applyPatch:GO,applyReducer:I5,deepClone:$5,getValueByPointer:Tf,validate:HO,validator:Rf},Symbol.toStringTag,{value:"Module"}));var Bp;(e=>{function t(s={},o={},a=!1){typeof s!="object"&&(s={}),typeof o!="object"&&(o={});let u=Ta(o);a||(u=Object.keys(u).reduce((f,c)=>(u[c]!=null&&(f[c]=u[c]),f),{}));for(const f in s)s[f]!==void 0&&o[f]===void 0&&(u[f]=s[f]);return Object.keys(u).length>0?u:void 0}e.compose=t;function n(s={},o={}){typeof s!="object"&&(s={}),typeof o!="object"&&(o={});const a=Object.keys(s).concat(Object.keys(o)).reduce((u,f)=>(Ri(s[f],o[f])||(u[f]=o[f]===void 0?null:o[f]),u),{});return Object.keys(a).length>0?a:void 0}e.diff=n;function r(s={},o={}){s=s||{};const a=Object.keys(o).reduce((u,f)=>(o[f]!==s[f]&&s[f]!==void 0&&(u[f]=o[f]),u),{});return Object.keys(s).reduce((u,f)=>(s[f]!==o[f]&&o[f]===void 0&&(u[f]=null),u),a)}e.invert=r;function i(s,o,a=!1){if(typeof s!="object")return o;if(typeof o!="object")return;if(!a)return o;const u=Object.keys(o).reduce((f,c)=>(s[c]===void 0&&(f[c]=o[c]),f),{});return Object.keys(u).length>0?u:void 0}e.transform=i})(Bp||(Bp={}));const fi=Bp;var zp;(e=>{function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t})(zp||(zp={}));const sn=zp;class Gt{ops;index;offset;constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);const n=this.ops[this.index];if(n){const r=this.offset,i=sn.length(n);if(t>=i-r?(t=i-r,this.index+=1,this.offset=0):this.offset+=t,typeof n.delete=="number")return{delete:t};{const s={};return n.attributes&&(s.attributes=n.attributes),typeof n.retain=="number"?s.retain=t:typeof n.retain=="object"&&n.retain!==null?s.retain=n.retain:typeof n.insert=="string"?s.insert=n.insert.substr(r,t):s.insert=n.insert,s}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?sn.length(this.ops[this.index])-this.offset:1/0}peekType(){const t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const t=this.offset,n=this.index,r=this.next(),i=this.ops.slice(this.index);return this.offset=t,this.index=n,[r].concat(i)}}else return[]}}const C5="\0",KO=(e,t)=>{if(typeof e!="object"||e===null)throw new Error(`cannot retain a ${typeof e}`);if(typeof t!="object"||t===null)throw new Error(`cannot retain a ${typeof t}`);const n=Object.keys(e)[0];if(!n||n!==Object.keys(t)[0])throw new Error(`embed types not matched: ${n} != ${Object.keys(t)[0]}`);return[n,e[n],t[n]]};class Be{static Op=sn;static OpIterator=Gt;static AttributeMap=fi;static handlers={};static registerEmbed(t,n){this.handlers[t]=n}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){const n=this.handlers[t];if(!n)throw new Error(`no handlers for embed type "${t}"`);return n}ops;constructor(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}insert(t,n){const r={};return typeof t=="string"&&t.length===0?this:(r.insert=t,n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,n){if(typeof t=="number"&&t<=0)return this;const r={retain:t};return n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r)}push(t){let n=this.ops.length,r=this.ops[n-1];if(t=Ta(t),typeof r=="object"){if(typeof t.delete=="number"&&typeof r.delete=="number")return this.ops[n-1]={delete:r.delete+t.delete},this;if(typeof r.delete=="number"&&t.insert!=null&&(n-=1,r=this.ops[n-1],typeof r!="object"))return this.ops.unshift(t),this;if(Ri(t.attributes,r.attributes)){if(typeof t.insert=="string"&&typeof r.insert=="string")return this.ops[n-1]={insert:r.insert+t.insert},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof r.retain=="number")return this.ops[n-1]={retain:r.retain+t.retain},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this}}return n===this.ops.length?this.ops.push(t):this.ops.splice(n,0,t),this}chop(){const t=this.ops[this.ops.length-1];return t&&typeof t.retain=="number"&&!t.attributes&&this.ops.pop(),this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){const n=[],r=[];return this.forEach(i=>{(t(i)?n:r).push(i)}),[n,r]}reduce(t,n){return this.ops.reduce(t,n)}changeLength(){return this.reduce((t,n)=>n.insert?t+sn.length(n):n.delete?t-n.delete:t,0)}length(){return this.reduce((t,n)=>t+sn.length(n),0)}slice(t=0,n=1/0){const r=[],i=new Gt(this.ops);let s=0;for(;s<n&&i.hasNext();){let o;s<t?o=i.next(t-s):(o=i.next(n-s),r.push(o)),s+=sn.length(o)}return new Be(r)}compose(t){const n=new Gt(this.ops),r=new Gt(t.ops),i=[],s=r.peek();if(s!=null&&typeof s.retain=="number"&&s.attributes==null){let a=s.retain;for(;n.peekType()==="insert"&&n.peekLength()<=a;)a-=n.peekLength(),i.push(n.next());s.retain-a>0&&r.next(s.retain-a)}const o=new Be(i);for(;n.hasNext()||r.hasNext();)if(r.peekType()==="insert")o.push(r.next());else if(n.peekType()==="delete")o.push(n.next());else{const a=Math.min(n.peekLength(),r.peekLength()),u=n.next(a),f=r.next(a);if(f.retain){const c={};if(typeof u.retain=="number")c.retain=typeof f.retain=="number"?a:f.retain;else if(typeof f.retain=="number")u.retain==null?c.insert=u.insert:c.retain=u.retain;else{const h=u.retain==null?"insert":"retain",[d,_,v]=KO(u[h],f.retain),g=Be.getHandler(d);c[h]={[d]:g.compose(_,v,h==="retain")}}const l=fi.compose(u.attributes,f.attributes,typeof u.retain=="number");if(l&&(c.attributes=l),o.push(c),!r.hasNext()&&Ri(o.ops[o.ops.length-1],c)){const h=new Be(n.rest());return o.concat(h).chop()}}else typeof f.delete=="number"&&(typeof u.retain=="number"||typeof u.retain=="object"&&u.retain!==null)&&o.push(f)}return o.chop()}concat(t){const n=new Be(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n}diff(t,n){if(this.ops===t.ops)return new Be;const r=[this,t].map(u=>u.map(f=>{if(f.insert!=null)return typeof f.insert=="string"?f.insert:C5;const c=u===t?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")),i=new Be,s=Tr(r[0],r[1],n,!0),o=new Gt(this.ops),a=new Gt(t.ops);return s.forEach(u=>{let f=u[1].length;for(;f>0;){let c=0;switch(u[0]){case Tr.INSERT:c=Math.min(a.peekLength(),f),i.push(a.next(c));break;case Tr.DELETE:c=Math.min(f,o.peekLength()),o.next(c),i.delete(c);break;case Tr.EQUAL:c=Math.min(o.peekLength(),a.peekLength(),f);const l=o.next(c),h=a.next(c);Ri(l.insert,h.insert)?i.retain(c,fi.diff(l.attributes,h.attributes)):i.push(h).delete(c);break}f-=c}}),i.chop()}eachLine(t,n=`
|
|
103
|
-
`){const r=new Gt(this.ops);let i=new Be,s=0;for(;r.hasNext();){if(r.peekType()!=="insert")return;const o=r.peek(),a=sn.length(o)-r.peekLength(),u=typeof o.insert=="string"?o.insert.indexOf(n,a)-a:-1;if(u<0)i.push(r.next());else if(u>0)i.push(r.next(u));else{if(t(i,r.next(1).attributes||{},s)===!1)return;s+=1,i=new Be}}i.length()>0&&t(i,{},s)}invert(t){const n=new Be;return this.reduce((r,i)=>{if(i.insert)n.delete(sn.length(i));else{if(typeof i.retain=="number"&&i.attributes==null)return n.retain(i.retain),r+i.retain;if(i.delete||typeof i.retain=="number"){const s=i.delete||i.retain;return t.slice(r,r+s).forEach(a=>{i.delete?n.push(a):i.retain&&i.attributes&&n.retain(sn.length(a),fi.invert(i.attributes,a.attributes))}),r+s}else if(typeof i.retain=="object"&&i.retain!==null){const s=t.slice(r,r+1),o=new Gt(s.ops).next(),[a,u,f]=KO(i.retain,o.insert),c=Be.getHandler(a);return n.retain({[a]:c.invert(u,f)},fi.invert(i.attributes,o.attributes)),r+1}}return r},0),n.chop()}transform(t,n=!1){if(n=!!n,typeof t=="number")return this.transformPosition(t,n);const r=t,i=new Gt(this.ops),s=new Gt(r.ops),o=new Be;for(;i.hasNext()||s.hasNext();)if(i.peekType()==="insert"&&(n||s.peekType()!=="insert"))o.retain(sn.length(i.next()));else if(s.peekType()==="insert")o.push(s.next());else{const a=Math.min(i.peekLength(),s.peekLength()),u=i.next(a),f=s.next(a);if(u.delete)continue;if(f.delete)o.push(f);else{const c=u.retain,l=f.retain;let h=typeof l=="object"&&l!==null?l:a;if(typeof c=="object"&&c!==null&&typeof l=="object"&&l!==null){const d=Object.keys(c)[0];if(d===Object.keys(l)[0]){const _=Be.getHandler(d);_&&(h={[d]:_.transform(c[d],l[d],n)})}}o.retain(h,fi.transform(u.attributes,f.attributes,n))}}return o.chop()}transformPosition(t,n=!1){n=!!n;const r=new Gt(this.ops);let i=0;for(;r.hasNext()&&i<=t;){const s=r.peekLength(),o=r.peekType();if(r.next(),o==="delete"){t-=Math.min(s,t-i);continue}else o==="insert"&&(i<t||!n)&&(t+=s);i+=s}return t}}const L5=Object.freeze(Object.defineProperty({__proto__:null,AttributeMap:fi,Delta:Be,Op:sn,OpIterator:Gt,default:Be},Symbol.toStringTag,{value:"Module"})),Up={};class j5{transactionWrappers;wrapperInitData;constructor(){this.reinitializeTransaction()}_isInTransaction=!1;isInTransaction(){return!!this._isInTransaction}reinitializeTransaction(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1}perform(t,n,r,i,s,o,a,u){if(this.isInTransaction)return;let f,c;try{this._isInTransaction=!0,f=!0,this.initializeAll(0),c=t.call(n,r,i,s,o,a,u),f=!1}finally{try{if(f)try{this.closeAll(0)}catch{}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c}initializeAll(t){for(var n=this.transactionWrappers,r=t;r<n.length;r++){var i=n[r];try{this.wrapperInitData[r]=Up,this.wrapperInitData[r]=i.initialize?i.initialize.call(this):null}finally{if(this.wrapperInitData[r]===Up)try{this.initializeAll(r+1)}catch{}}}}closeAll(t){for(var n=this.transactionWrappers,r=t;r<n.length;r++){var i=n[r],s=this.wrapperInitData[r],o;try{o=!0,s!==Up&&i.close&&i.close.call(this,s),o=!1}finally{if(o)try{this.closeAll(r+1)}catch{}}}this.wrapperInitData.length=0}}const Vp=[];let Zo=-1;const F5=e=>({current:e}),B5=(e,t)=>{Vp[++Zo]=e.current,e.current=t},z5=e=>{Zo<0||(e.current=Vp[Zo],Vp[Zo]=null,Zo--)};class YO{available=[];inUse=new Set;maxSize;create;reset;validate;totalCreated=0;constructor(t){this.maxSize=t.maxSize||100,this.create=t.create,this.reset=t.reset,this.validate=t.validate;const n=t.preAllocate||0;for(let r=0;r<n&&this.available.length<this.maxSize;r++){const i=this.create();this.available.push(i),this.totalCreated++}}acquire(){for(;this.available.length>0;){const t=this.available.pop();if(!this.validate||this.validate(t))return this.inUse.add(t),t}if(this.totalCreated<this.maxSize){const t=this.create();return this.inUse.add(t),this.totalCreated++,t}throw new Error(`Pool reached maximum size: ${this.maxSize}`)}release(t){if(!this.inUse.has(t)){console.warn("Attempted to release an object not in use");return}this.reset&&this.reset(t),this.inUse.delete(t),this.available.length<this.maxSize&&this.available.push(t)}releaseAll(t){t.forEach(n=>this.release(n))}getStats(){return{available:this.available.length,inUse:this.inUse.size,totalCreated:this.totalCreated,maxSize:this.maxSize}}dispose(){this.available=[],this.inUse.clear(),this.totalCreated=0}get availableCount(){return this.available.length}get inUseCount(){return this.inUse.size}isInUse(t){return this.inUse.has(t)}}class U5{constructor(t,n){this.pool=t,this.obj=n}get value(){return this.obj}release(){this.pool.release(this.obj)}[Symbol.dispose](){this.release()}}class V5 extends YO{autoAcquire(){const t=this.acquire();return new U5(this,t)}}const XO=e=>{ci&&ci.add(e)};let ci=null;class W5{static add=XO;static mixin(t,n={}){const r=t.prototype.dispose;t.prototype.__isDisposed=!1,t.prototype.isDisposed=function(){return!!this.__isDisposed},t.prototype.dispose=function(){this.__isDisposed||(this.__isDisposed=!0,n.dispose?.(this),r?.call(t))},t.prototype.disposeLater=function(){ci&&!this.__isDisposed&&ci.add(this)}}disposables=[];persistentDisposables=[];add(t){this.disposables.push(t)}addPersistent(t){this.persistentDisposables.push(t)}destroy(){this.dispose();for(let t=0;t<this.persistentDisposables.length;t++)this.persistentDisposables[t].dispose();this.persistentDisposables.length=0}dispose(){for(let t=0;t<this.disposables.length;t++)this.disposables[t].dispose();this.disposables.length=0}run(t){let n=ci;try{return ci=this,t()}finally{this.dispose(),ci=n}}}x.AT_TARGET=Df,x.AutoPool=V5,x.BUBBLING_PHASE=Kp,x.CAPTURING_PHASE=Hp,x.Callbacks=vE,x.Color=ft,x.DisposableManager=W5,x.Emitter4Event=ra,x.Event=QO,x.EventEmitter=me,x.EventEmitter4=oE,x.EventPhase=vs,x.EventPropagation=Zn,x.EventTarget=Zn,x.HookType=CO,x.Immutable=t3,x.NONE=If,x.Options=Rp,x.PluginService=v5,x.Pool=YO,x.PriorityQueue=gE,x.QuillDelta=L5,x.Signals=_E,x.Transaction=j5,x.addDisposable=XO,x.alienSignals=dz,x.antvUtil=jC,x.colord=_5,x.compose=Rz,x.createCursor=F5,x.deepmerge=ls,x.fastDeepEqual=Af,x.fastDiff=Tr,x.fastJsonPatch=D5,x.hexToRgb=wO,x.hslToHsv=kz,x.hslToRgb=Pp,x.hsvToHsl=qz,x.hsvToRgb=mO,x.immer=rL,x.lerpColor=AO,x.lodash=FD,x.mitt=eE,x.mobx=ZB,x.observable=dE,x.pop=z5,x.push=B5,x.radash=ES,x.reactivity=uj,x.redux=xj,x.rgbToHsl=bO,x.rgbToHsv=Wz,x.signals=dj,x.tapable=xz,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
50
|
+
Use 'override' annotation for methods overridden by subclass.`)}}var Tz=NO(0),Rz=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Fp=0,PO=function(){};function Pz(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}Pz(PO,Array.prototype);var Bp=function(e){function t(r,i,s,o){var a;return s===void 0&&(s=process.env.NODE_ENV!=="production"?"ObservableArray@"+At():"ObservableArray"),o===void 0&&(o=!1),a=e.call(this)||this,Nr(function(){var u=new Dp(s,i,o,!0);u.proxy_=a,EA(a,R,u),r&&r.length&&a.spliceWithArray(0,0,r),Rz&&Object.defineProperty(a,"0",Tz)}),a}RA(t,e);var n=t.prototype;return n.concat=function(){this[R].atom_.reportObserved();for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return Array.prototype.concat.apply(this.slice(),s.map(function(a){return Ze(a)?a.slice():a}))},n[Symbol.iterator]=function(){var r=this,i=0;return kp({next:function(){return i<r.length?{value:r[i++],done:!1}:{done:!0,value:void 0}}})},hs(t,[{key:"length",get:function(){return this[R].getArrayLength_()},set:function(i){this[R].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(PO);Object.entries(xf).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Wo(Bp.prototype,t,n)});function NO(e){return{enumerable:!1,configurable:!0,get:function(){return this[R].get_(e)},set:function(n){this[R].set_(e,n)}}}function Nz(e){An(Bp.prototype,""+e,NO(e))}function MO(e){if(e>Fp){for(var t=Fp;t<e+100;t++)Nz(t);Fp=e}}MO(1e3);function Mz(e,t,n){return new Bp(e,t,n)}function sn(e,t){if(typeof e=="object"&&e!==null){if(Ze(e))return t!==void 0&&E(23),e[R].atom_;if(ge(e))return e.atom_;if(ve(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||E(25,t,Qo(e)),n}if(ye(e)){if(!t)return E(26);var r=e[R].values_.get(t);return r||E(27,t,Qo(e)),r}if(_p(e)||ii(e)||Af(e))return e}else if(ue(e)&&Af(e[R]))return e[R];E(28)}function Rn(e,t){if(e||E(29),t!==void 0)return Rn(sn(e,t));if(_p(e)||ii(e)||Af(e)||ve(e)||ge(e))return e;if(e[R])return e[R];E(24,e)}function Qo(e,t){var n;if(t!==void 0)n=sn(e,t);else{if(ai(e))return e.name;ye(e)||ve(e)||ge(e)?n=Rn(e):n=sn(e)}return n.name_}function Nr(e){var t=si(),n=vf(!0);ut();try{return e()}finally{ft(),gf(n),Xn(t)}}var $O=ko.toString;function zp(e,t,n){return n===void 0&&(n=-1),Up(e,t,n)}function Up(e,t,n,r,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var s=typeof e;if(s!=="function"&&s!=="object"&&typeof t!="object")return!1;var o=$O.call(e);if(o!==$O.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=IO(e),t=IO(t);var a=o==="[object Array]";if(!a){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,f=t.constructor;if(u!==f&&!(ue(u)&&u instanceof u&&ue(f)&&f instanceof f)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var c=r.length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),a){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!Up(e[c],t[c],n-1,r,i))return!1}else{var l=Object.keys(e),h=l.length;if(Object.keys(t).length!==h)return!1;for(var d=0;d<h;d++){var _=l[d];if(!(Ot(t,_)&&Up(e[_],t[_],n-1,r,i)))return!1}}return r.pop(),i.pop(),!0}function IO(e){return Ze(e)?e.slice():cs(e)||ve(e)||Yn(e)||ge(e)?Array.from(e.entries()):e}var DO,$z=((DO=sf().Iterator)==null?void 0:DO.prototype)||{};function kp(e){return e[Symbol.iterator]=Iz,Object.assign(Object.create($z),e)}function Iz(){return this}function CO(e){return e instanceof Object&&typeof e.annotationType_=="string"&&ue(e.make_)&&ue(e.extend_)}["Symbol","Map","Set"].forEach(function(e){var t=sf();typeof t[e]>"u"&&E("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:tO,extras:{getDebugName:Qo},$mobx:R});const Dz=Object.freeze(Object.defineProperty({__proto__:null,$mobx:R,FlowCancellationError:Ef,ObservableMap:Cp,ObservableSet:Lp,Reaction:xn,_allowStateChanges:mp,_allowStateChangesInsideComputed:sO,_allowStateReadsEnd:ds,_allowStateReadsStart:mf,_autoAction:_s,_endAction:VA,_getAdministration:Rn,_getGlobalState:wB,_interceptReads:XB,_isComputingDerivation:_B,_resetGlobalState:AB,_startAction:kA,action:Rr,autorun:Pp,comparer:ni,computed:Ko,configure:VB,createAtom:vp,defineProperty:az,entries:iz,extendObservable:Mp,flow:ui,flowResult:YB,get:oz,getAtom:sn,getDebugName:Qo,getDependencyTree:fO,getObserverTree:WB,has:vO,intercept:JB,isAction:ai,isBoxedObservable:wp,isComputed:ez,isComputedProp:tz,isFlow:vs,isFlowCancellationError:HB,isObservable:fi,isObservableArray:Ze,isObservableMap:ve,isObservableObject:ye,isObservableProp:nz,isObservableSet:ge,keys:Xo,makeAutoObservable:yz,makeObservable:gz,observable:Se,observe:uz,onBecomeObserved:aO,onBecomeUnobserved:Np,onReactionError:RB,override:PF,ownKeys:gO,reaction:jB,remove:sz,runInAction:sO,set:_O,spy:tO,toJS:lz,trace:yO,transaction:Tn,untracked:Ep,values:rz,when:pz},Symbol.toStringTag,{value:"Module"}));var F=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(F||{});function Cz({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:s,checkDirty:o,shallowPropagate:a};function r(f,c,l){const h=c.depsTail;if(h!==void 0&&h.dep===f)return;const d=h!==void 0?h.nextDep:c.deps;if(d!==void 0&&d.dep===f){d.version=l,c.depsTail=d;return}const _=f.subsTail;if(_!==void 0&&_.version===l&&_.sub===c)return;const v=c.depsTail=f.subsTail={version:l,dep:f,sub:c,prevDep:h,nextDep:d,prevSub:_,nextSub:void 0};d!==void 0&&(d.prevDep=v),h!==void 0?h.nextDep=v:c.deps=v,_!==void 0?_.nextSub=v:f.subs=v}function i(f,c=f.sub){const l=f.dep,h=f.prevDep,d=f.nextDep,_=f.nextSub,v=f.prevSub;return d!==void 0?d.prevDep=h:c.depsTail=h,h!==void 0?h.nextDep=d:c.deps=d,_!==void 0?_.prevSub=v:l.subsTail=v,v!==void 0?v.nextSub=_:(l.subs=_)===void 0&&n(l),d}function s(f){let c=f.nextSub,l;e:do{const h=f.sub;let d=h.flags;if(d&60?d&12?d&4?!(d&48)&&u(f,h)?(h.flags=d|40,d&=1):d=0:h.flags=d&-9|32:d=0:h.flags=d|32,d&2&&t(h),d&1){const _=h.subs;if(_!==void 0){const v=(f=_).nextSub;v!==void 0&&(l={value:c,prev:l},c=v);continue}}if((f=c)!==void 0){c=f.nextSub;continue}for(;l!==void 0;)if(f=l.value,l=l.prev,f!==void 0){c=f.nextSub;continue e}break}while(!0)}function o(f,c){let l,h=0,d=!1;e:do{const _=f.dep,v=_.flags;if(c.flags&16)d=!0;else if((v&17)===17){if(e(_)){const g=_.subs;g.nextSub!==void 0&&a(g),d=!0}}else if((v&33)===33){(f.nextSub!==void 0||f.prevSub!==void 0)&&(l={value:f,prev:l}),f=_.deps,c=_,++h;continue}if(!d){const g=f.nextDep;if(g!==void 0){f=g;continue}}for(;h--;){const g=c.subs,y=g.nextSub!==void 0;if(y?(f=l.value,l=l.prev):f=g,d){if(e(c)){y&&a(g),c=f.sub;continue}d=!1}else c.flags&=-33;c=f.sub;const b=f.nextDep;if(b!==void 0){f=b;continue e}}return d}while(!0)}function a(f){do{const c=f.sub,l=c.flags;(l&48)===32&&(c.flags=l|16,(l&6)===2&&t(c))}while((f=f.nextSub)!==void 0)}function u(f,c){let l=c.depsTail;for(;l!==void 0;){if(l===f)return!0;l=l.prevDep}return!1}}let Rf=0,ea=0,Pf=0,Nf=0,on;const hi=[],{link:Mf,unlink:Vp,propagate:LO,checkDirty:jO,shallowPropagate:Wp}=Cz({update(e){return e.depsTail!==void 0?FO(e):BO(e)},notify(e){let t=Nf,n=t;do if(e.flags&=~F.Watching,hi[t++]=e,e=e.subs?.sub,e===void 0||!(e.flags&F.Watching))break;while(!0);for(Nf=t;n<--t;){const r=hi[n];hi[n++]=hi[t],hi[t]=r}},unwatched(e){e.flags&F.Mutable?e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=F.Mutable|F.Dirty,If(e)):$f.call(e)}});function Lz(){return on}function pi(e){const t=on;return on=e,t}function jz(){return ea}function Fz(){++ea}function Bz(){--ea||qp()}function zz(e){return e.name==="bound "+UO.name}function Uz(e){return e.name==="bound "+zO.name}function kz(e){return e.name==="bound "+kO.name}function Vz(e){return e.name==="bound "+$f.name}function Wz(e){return UO.bind({currentValue:e,pendingValue:e,subs:void 0,subsTail:void 0,flags:F.Mutable})}function qz(e){return zO.bind({value:void 0,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:F.None,getter:e})}function Gz(e){const t={fn:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:F.Watching|F.RecursedCheck},n=pi(t);n!==void 0&&Mf(t,n,0);try{t.fn()}finally{on=n,t.flags&=~F.RecursedCheck}return kO.bind(t)}function Hz(e){const t={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:F.None},n=pi(t);n!==void 0&&Mf(t,n,0);try{e()}finally{on=n}return $f.bind(t)}function Kz(e){const t={deps:void 0,depsTail:void 0,flags:F.Watching},n=pi(t);try{e()}finally{for(on=n;t.deps!==void 0;){const r=t.deps,i=r.dep;Vp(r,t),i.subs!==void 0&&(LO(i.subs),Wp(i.subs))}ea||qp()}}function FO(e){++Rf,e.depsTail=void 0,e.flags=F.Mutable|F.RecursedCheck;const t=pi(e);try{const n=e.value;return n!==(e.value=e.getter(n))}finally{on=t,e.flags&=~F.RecursedCheck,If(e)}}function BO(e){return e.flags=F.Mutable,e.currentValue!==(e.currentValue=e.pendingValue)}function Yz(e){const t=e.flags;if(t&F.Dirty||t&F.Pending&&jO(e.deps,e)){++Rf,e.depsTail=void 0,e.flags=F.Watching|F.RecursedCheck;const n=pi(e);try{e.fn()}finally{on=n,e.flags&=~F.RecursedCheck,If(e)}}else e.flags=F.Watching}function qp(){for(;Pf<Nf;){const e=hi[Pf];hi[Pf++]=void 0,Yz(e)}Pf=0,Nf=0}function zO(){const e=this.flags;if(e&F.Dirty||e&F.Pending&&(jO(this.deps,this)||(this.flags=e&~F.Pending,!1))){if(FO(this)){const n=this.subs;n!==void 0&&Wp(n)}}else if(!e){this.flags=F.Mutable|F.RecursedCheck;const n=pi(this);try{this.value=this.getter()}finally{on=n,this.flags&=~F.RecursedCheck}}const t=on;return t!==void 0&&Mf(this,t,Rf),this.value}function UO(...e){if(e.length){if(this.pendingValue!==(this.pendingValue=e[0])){this.flags=F.Mutable|F.Dirty;const t=this.subs;t!==void 0&&(LO(t),ea||qp())}}else{if(this.flags&F.Dirty&&BO(this)){const n=this.subs;n!==void 0&&Wp(n)}let t=on;for(;t!==void 0;){if(t.flags&(F.Mutable|F.Watching)){Mf(this,t,Rf);break}t=t.subs?.sub}return this.currentValue}}function kO(){$f.call(this)}function $f(){this.depsTail=void 0,this.flags=F.None,If(this);const e=this.subs;e!==void 0&&Vp(e)}function If(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=Vp(n,e)}const Xz=Object.freeze(Object.defineProperty({__proto__:null,computed:qz,effect:Gz,effectScope:Hz,endBatch:Bz,getActiveSub:Lz,getBatchDepth:jz,isComputed:Uz,isEffect:kz,isEffectScope:Vz,isSignal:zz,setActiveSub:pi,signal:Wz,startBatch:Fz,trigger:Kz},Symbol.toStringTag,{value:"Module"}));function VO(e,t){return Array.isArray(t)?t.includes(e):t===e}function Pn(e,t,n){return e.context?e.callback(n,...t):e.callback(...t)}class Jz{interceptions;interceptionKeySet;constructor(){this.interceptions=[],this.interceptionKeySet=new Set}isUsed(){return this.interceptions.length>0}intercept(t){this.interceptions.push(t),Object.keys(t).forEach(n=>{this.interceptionKeySet.add(n)})}tap(t){this.interceptionKeySet.has("tap")&&this.interceptions.forEach(n=>{n.tap?.(t)})}call(t,...n){this.interceptionKeySet.has("call")&&this.interceptions.forEach(r=>{r.context?r.call?.(t,...n):r.call?.(...n)})}loop(...t){this.interceptionKeySet.has("loop")&&this.interceptions.forEach(n=>{n.loop?.(...t)})}error(t){if(this.interceptionKeySet.has("error")&&t instanceof Error){const n=t;this.interceptions.forEach(r=>{r.error?.(n)})}}result(t){this.interceptionKeySet.has("result")&&this.interceptions.forEach(n=>{n.result?.(t)})}done(){this.interceptionKeySet.has("done")&&this.interceptions.forEach(t=>{t.done?.()})}}class Nn{taps;interceptions;constructor(){this.taps=[],this.interceptions=new Jz}tap(t,n){const r=typeof t=="string"?{name:t,context:!1}:{context:!1,...t},s={key:Symbol(r.name),...r,callback:n};if(s.before){let o=this.taps.length;const a=new Set(Array.isArray(s.before)?s.before:[s.before]);for(o;o>0&&a.size>0;o--){const u=this.taps[o-1];if(a.has(u.name)&&a.delete(u.name),u.before&&VO(s.name,u.before))break}this.taps.splice(o,0,s)}else this.taps.push(s);return this.interceptions.tap(s),s}untap(t){this.taps=this.taps.filter(n=>n.key!==t.key)}isUsed(){return this.taps.length>0||this.interceptions.isUsed()}intercept(t){this.interceptions.intercept(t)}}class Zz extends Nn{call(...t){if(!this.isUsed())return;const n={};this.interceptions.call(n,...t);try{this.taps.forEach(r=>{Pn(r,t,n)})}catch(r){throw this.interceptions.error(r),r}this.interceptions.done()}}class Qz extends Nn{call(...t){if(!this.isUsed())return;const n={};this.interceptions.call(n,...t);for(let r=0;r<this.taps.length;r+=1){const i=Pn(this.taps[r],t,n);if(i!==void 0)return this.interceptions.result(i),i}this.interceptions.done()}}class e5 extends Nn{call(...t){const n={};this.interceptions.call(n,...t);let[r,...i]=t;for(let s=0;s<this.taps.length;s+=1){const o=Pn(this.taps[s],[r,...i],n);o!==void 0&&(r=o)}return this.interceptions.result(r),r}}class t5 extends Nn{call(...t){let n=!1;const r={};this.interceptions.call(r,...t);try{for(;n!==!0;){n=!0,this.interceptions.loop(...t);for(let i=0;i<this.taps.length;i+=1)if(Pn(this.taps[i],t,r)!==void 0){n=!1;break}}}catch(i){throw this.interceptions.error(i),i}this.interceptions.done()}}class n5 extends Nn{async call(...t){const n={};this.interceptions.call(n,...t),await Promise.allSettled(this.taps.map(r=>Pn(r,t,n))),this.interceptions.done()}}class r5 extends Nn{async call(...t){const n={};this.interceptions.call(n,...t);try{const r=await Promise.race(this.taps.map(i=>Pn(i,t,n)));return this.interceptions.result(r),r}catch(r){throw this.interceptions.error(r),r}}}class i5 extends Nn{async call(...t){const n={};this.interceptions.call(n,...t);try{for(let r=0;r<this.taps.length;r+=1)await Pn(this.taps[r],t,n)}catch(r){throw this.interceptions.error(r),r}this.interceptions.done()}}class s5 extends Nn{async call(...t){const n={};this.interceptions.call(n,...t);try{for(let r=0;r<this.taps.length;r+=1){const i=await Pn(this.taps[r],t,n);if(i!==void 0)return this.interceptions.result(i),i}}catch(r){throw this.interceptions.error(r),r}this.interceptions.done()}}class o5 extends Nn{async call(...t){let[n,...r]=t;const i={};this.interceptions.call(i,...t);try{for(let s=0;s<this.taps.length;s+=1){const o=await Pn(this.taps[s],[n,...r],i);o!==void 0&&(n=o)}}catch(s){throw this.interceptions.error(s),s}return this.interceptions.result(n),n}}class a5 extends Nn{async call(...t){let n=!1;const r={};this.interceptions.call(r,...t);try{for(;n!==!0;){n=!0,this.interceptions.loop(...t);for(let i=0;i<this.taps.length;i+=1)if(await Pn(this.taps[i],t,r)!==void 0){n=!1;break}}}catch(i){throw this.interceptions.error(i),i}this.interceptions.done()}}const u5=Object.freeze(Object.defineProperty({__proto__:null,AsyncParallelBailHook:r5,AsyncParallelHook:n5,AsyncSeriesBailHook:s5,AsyncSeriesHook:i5,AsyncSeriesLoopHook:a5,AsyncSeriesWaterfallHook:o5,SyncBailHook:Qz,SyncHook:Zz,SyncLoopHook:t5,SyncWaterfallHook:e5,equalToOrIn:VO},Symbol.toStringTag,{value:"Module"}));function Df(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Df(e[r],t[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){var s=i[r];if(!Df(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}class f5{name;fields;parent;context;options;current;dirty;constructor(t,n){this.context=t,this.options=n,this.current=this.default(),this.dirty=!0,n.overrideMethods&&Object.assign(this,n.overrideMethods),this.options.init?.call(this)}equal(t,n){return Df(t,n)}default(){return typeof this.options.default=="function"?this.options.default(this.context):this.options.default}reset(){this.set(this.default())}shouldUpdate(t){return!(!this.dirty&&this.equal(this.current,t))}set(t){return this.shouldUpdate(t)?(this.options.set?.call(this,t,this.context),this.current=this.options.map,this.dirty=!1,!0):!1}get(){return this.current}dispose(){this.options.dispose?.call(this)}}class Gp{static create(t,n){return new Gp(t,n)}context;options=new Map;optionClass=new Map;constructor(t,n){return this.context=t,n&&this.initOptions(n),new Proxy(this,{get(r,i){return r.options.has(i)?r.getOption(i):Reflect.get(r,i)}})}register(t,n){this.optionClass.set(t,n)}defineGetter(t){Object.defineProperty(this,t,{get:()=>this.getOption(t),enumerable:!0})}initOptions(t){for(let n in t)if(this.optionClass.has(n)){const r=this.optionClass.get(n),i=new r(this.context,t[n]);this.addOptionFromInstance(n,i)}else this.addOptionFromConfig(n,t[n])}getOption(t){return this.options.get(t)}removeOption(t){this.options.has(t)&&(this.options.get(t).dispose(),this.options.delete(t))}addOptionFromInstance(t,n){this.options.has(t)||(n.parent=this,n.name=t,this.options.set(t,n))}addOptionFromConfig(t,n){this.addOptionFromInstance(t,new f5(this.context,n))}}function c5(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function l5(e){return h5(e)&&!p5(e)}function h5(e){return!!e&&typeof e=="object"}function p5(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||v5(e)}var d5=typeof Symbol=="function"&&Symbol.for,_5=d5?Symbol.for("react.element"):60103;function v5(e){return e.$$typeof===_5}var g5=l5;function y5(e){return Array.isArray(e)?[]:{}}function ta(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ys(y5(e),e,t):e}function b5(e,t,n){return e.concat(t).map(function(r){return ta(r,n)})}function m5(e,t){if(!t.customMerge)return ys;var n=t.customMerge(e);return typeof n=="function"?n:ys}function w5(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function WO(e){return Object.keys(e).concat(w5(e))}function qO(e,t){try{return t in e}catch{return!1}}function A5(e,t){return qO(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function O5(e,t,n){var r={};return n.isMergeableObject(e)&&WO(e).forEach(function(i){r[i]=ta(e[i],n)}),WO(t).forEach(function(i){A5(e,i)||(qO(e,i)&&n.isMergeableObject(t[i])?r[i]=m5(i,n)(e[i],t[i],n):r[i]=ta(t[i],n))}),r}function ys(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||b5,n.isMergeableObject=n.isMergeableObject||g5,n.cloneUnlessOtherwiseSpecified=ta;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge?.(e,t,n):O5(e,t,n):ta(t,n)}function E5(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,r){return ys(n,r,t)},{})}ys.all=E5;function bs(e,t=0,n=1){return Math.min(Math.max(e,t),n)}function GO(e,t,n){e/=255,t/=255,n/=255;const r=Math.max(e,t,n),i=Math.min(e,t,n);let s=0,o,a=(r+i)/2;if(r==i)s=o=0;else{const u=r-i;switch(o=a>.5?u/(2-r-i):u/(r+i),r){case e:s=(t-n)/u+(t<n?6:0);break;case t:s=(n-e)/u+2;break;case n:s=(e-t)/u+4;break}s/=6}return{h:s,s:o,l:a}}function Hp(e,t,n){let r,i,s;if(t==0)r=i=s=n;else{const o=(f,c,l)=>(l<0&&(l+=1),l>1&&(l-=1),l<.16666666666666666?f+(c-f)*6*l:l<.5?c:l<.6666666666666666?f+(c-f)*(.6666666666666666-l)*6:f),a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;r=o(u,a,e+1/3),i=o(u,a,e),s=o(u,a,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function S5(e,t,n){e/=255,t/=255,n/=255;const r=Math.max(e,t,n),i=Math.min(e,t,n);let s=0,o,a=r;const u=r-i;if(o=r==0?0:u/r,r==i)s=0;else{switch(r){case e:s=(t-n)/u+(t<n?6:0);break;case t:s=(n-e)/u+2;break;case n:s=(e-t)/u+4;break}s/=6}return{h:s,s:o,v:a}}function HO(e,t,n){let r=0,i=0,s=0;const o=Math.floor(e*6),a=e*6-o,u=n*(1-t),f=n*(1-a*t),c=n*(1-(1-a)*t);switch(o%6){case 0:r=n,i=c,s=u;break;case 1:r=f,i=n,s=u;break;case 2:r=u,i=n,s=c;break;case 3:r=u,i=f,s=n;break;case 4:r=c,i=u,s=n;break;case 5:r=n,i=u,s=f;break}return{r:r*255,g:i*255,b:s*255}}function x5(e,t,n){const r=n+t*Math.min(n,1-n),i=r===0?0:2*(1-n/r);return{h:e,s:i,v:r}}function T5(e,t,n){const r=(2-t)*n/2,i=t===0?t:r<=1?t*n/(2-t*n):t*n/(2-t);return{h:e,s:i,l:r}}function KO(e){typeof e=="string"&&(e=e.replace("#",""),e=e.length===3?e.replace(/(\w)/g,"$1$1"):e,e=parseInt("0x"+e,16));const t=e,n=t>>16&255,r=t>>8&255,i=t&255;return{r:n,g:r,b:i}}function YO(e,t,n){const r=e.r+(t.r-e.r)*n,i=e.g+(t.g-e.g)*n,s=e.b+(t.b-e.b)*n;return{r,g:i,b:s}}const XO={aliceblue:Float32Array.of(.941,.973,1,1),antiquewhite:Float32Array.of(.98,.922,.843,1),aqua:Float32Array.of(0,1,1,1),aquamarine:Float32Array.of(.498,1,.831,1),azure:Float32Array.of(.941,1,1,1),beige:Float32Array.of(.961,.961,.863,1),bisque:Float32Array.of(1,.894,.769,1),black:Float32Array.of(0,0,0,1),blanchedalmond:Float32Array.of(1,.922,.804,1),blue:Float32Array.of(0,0,1,1),blueviolet:Float32Array.of(.541,.169,.886,1),brown:Float32Array.of(.647,.165,.165,1),burlywood:Float32Array.of(.871,.722,.529,1),cadetblue:Float32Array.of(.373,.62,.627,1),chartreuse:Float32Array.of(.498,1,0,1),chocolate:Float32Array.of(.824,.412,.118,1),coral:Float32Array.of(1,.498,.314,1),cornflowerblue:Float32Array.of(.392,.584,.929,1),cornsilk:Float32Array.of(1,.973,.863,1),crimson:Float32Array.of(.863,.078,.235,1),cyan:Float32Array.of(0,1,1,1),darkblue:Float32Array.of(0,0,.545,1),darkcyan:Float32Array.of(0,.545,.545,1),darkgoldenrod:Float32Array.of(.722,.525,.043,1),darkgray:Float32Array.of(.663,.663,.663,1),darkgreen:Float32Array.of(0,.392,0,1),darkgrey:Float32Array.of(.663,.663,.663,1),darkkhaki:Float32Array.of(.741,.718,.42,1),darkmagenta:Float32Array.of(.545,0,.545,1),darkolivegreen:Float32Array.of(.333,.42,.184,1),darkorange:Float32Array.of(1,.549,0,1),darkorchid:Float32Array.of(.6,.196,.8,1),darkred:Float32Array.of(.545,0,0,1),darksalmon:Float32Array.of(.914,.588,.478,1),darkseagreen:Float32Array.of(.561,.737,.561,1),darkslateblue:Float32Array.of(.282,.239,.545,1),darkslategray:Float32Array.of(.184,.31,.31,1),darkslategrey:Float32Array.of(.184,.31,.31,1),darkturquoise:Float32Array.of(0,.808,.82,1),darkviolet:Float32Array.of(.58,0,.827,1),deeppink:Float32Array.of(1,.078,.576,1),deepskyblue:Float32Array.of(0,.749,1,1),dimgray:Float32Array.of(.412,.412,.412,1),dimgrey:Float32Array.of(.412,.412,.412,1),dodgerblue:Float32Array.of(.118,.565,1,1),firebrick:Float32Array.of(.698,.133,.133,1),floralwhite:Float32Array.of(1,.98,.941,1),forestgreen:Float32Array.of(.133,.545,.133,1),fuchsia:Float32Array.of(1,0,1,1),gainsboro:Float32Array.of(.863,.863,.863,1),ghostwhite:Float32Array.of(.973,.973,1,1),gold:Float32Array.of(1,.843,0,1),goldenrod:Float32Array.of(.855,.647,.125,1),gray:Float32Array.of(.502,.502,.502,1),green:Float32Array.of(0,.502,0,1),greenyellow:Float32Array.of(.678,1,.184,1),grey:Float32Array.of(.502,.502,.502,1),honeydew:Float32Array.of(.941,1,.941,1),hotpink:Float32Array.of(1,.412,.706,1),indianred:Float32Array.of(.804,.361,.361,1),indigo:Float32Array.of(.294,0,.51,1),ivory:Float32Array.of(1,1,.941,1),khaki:Float32Array.of(.941,.902,.549,1),lavender:Float32Array.of(.902,.902,.98,1),lavenderblush:Float32Array.of(1,.941,.961,1),lawngreen:Float32Array.of(.486,.988,0,1),lemonchiffon:Float32Array.of(1,.98,.804,1),lightblue:Float32Array.of(.678,.847,.902,1),lightcoral:Float32Array.of(.941,.502,.502,1),lightcyan:Float32Array.of(.878,1,1,1),lightgoldenrodyellow:Float32Array.of(.98,.98,.824,1),lightgray:Float32Array.of(.827,.827,.827,1),lightgreen:Float32Array.of(.565,.933,.565,1),lightgrey:Float32Array.of(.827,.827,.827,1),lightpink:Float32Array.of(1,.714,.757,1),lightsalmon:Float32Array.of(1,.627,.478,1),lightseagreen:Float32Array.of(.125,.698,.667,1),lightskyblue:Float32Array.of(.529,.808,.98,1),lightslategray:Float32Array.of(.467,.533,.6,1),lightslategrey:Float32Array.of(.467,.533,.6,1),lightsteelblue:Float32Array.of(.69,.769,.871,1),lightyellow:Float32Array.of(1,1,.878,1),lime:Float32Array.of(0,1,0,1),limegreen:Float32Array.of(.196,.804,.196,1),linen:Float32Array.of(.98,.941,.902,1),magenta:Float32Array.of(1,0,1,1),maroon:Float32Array.of(.502,0,0,1),mediumaquamarine:Float32Array.of(.4,.804,.667,1),mediumblue:Float32Array.of(0,0,.804,1),mediumorchid:Float32Array.of(.729,.333,.827,1),mediumpurple:Float32Array.of(.576,.439,.859,1),mediumseagreen:Float32Array.of(.235,.702,.443,1),mediumslateblue:Float32Array.of(.482,.408,.933,1),mediumspringgreen:Float32Array.of(0,.98,.604,1),mediumturquoise:Float32Array.of(.282,.82,.8,1),mediumvioletred:Float32Array.of(.78,.082,.522,1),midnightblue:Float32Array.of(.098,.098,.439,1),mintcream:Float32Array.of(.961,1,.98,1),mistyrose:Float32Array.of(1,.894,.882,1),moccasin:Float32Array.of(1,.894,.71,1),navajowhite:Float32Array.of(1,.871,.678,1),navy:Float32Array.of(0,0,.502,1),oldlace:Float32Array.of(.992,.961,.902,1),olive:Float32Array.of(.502,.502,0,1),olivedrab:Float32Array.of(.42,.557,.137,1),orange:Float32Array.of(1,.647,0,1),orangered:Float32Array.of(1,.271,0,1),orchid:Float32Array.of(.855,.439,.839,1),palegoldenrod:Float32Array.of(.933,.91,.667,1),palegreen:Float32Array.of(.596,.984,.596,1),paleturquoise:Float32Array.of(.686,.933,.933,1),palevioletred:Float32Array.of(.859,.439,.576,1),papayawhip:Float32Array.of(1,.937,.835,1),peachpuff:Float32Array.of(1,.855,.725,1),peru:Float32Array.of(.804,.522,.247,1),pink:Float32Array.of(1,.753,.796,1),plum:Float32Array.of(.867,.627,.867,1),powderblue:Float32Array.of(.69,.878,.902,1),purple:Float32Array.of(.502,0,.502,1),rebeccapurple:Float32Array.of(.4,.2,.6,1),red:Float32Array.of(1,0,0,1),rosybrown:Float32Array.of(.737,.561,.561,1),royalblue:Float32Array.of(.255,.412,.882,1),saddlebrown:Float32Array.of(.545,.271,.075,1),salmon:Float32Array.of(.98,.502,.447,1),sandybrown:Float32Array.of(.957,.643,.376,1),seagreen:Float32Array.of(.18,.545,.341,1),seashell:Float32Array.of(1,.961,.933,1),sienna:Float32Array.of(.627,.322,.176,1),silver:Float32Array.of(.753,.753,.753,1),skyblue:Float32Array.of(.529,.808,.922,1),slateblue:Float32Array.of(.416,.353,.804,1),slategray:Float32Array.of(.439,.502,.565,1),slategrey:Float32Array.of(.439,.502,.565,1),snow:Float32Array.of(1,.98,.98,1),springgreen:Float32Array.of(0,1,.498,1),steelblue:Float32Array.of(.275,.51,.706,1),tan:Float32Array.of(.824,.706,.549,1),teal:Float32Array.of(0,.502,.502,1),thistle:Float32Array.of(.847,.749,.847,1),tomato:Float32Array.of(1,.388,.278,1),transparent:Float32Array.of(0,0,0,0),turquoise:Float32Array.of(.251,.878,.816,1),violet:Float32Array.of(.933,.51,.933,1),wheat:Float32Array.of(.961,.871,.702,1),white:Float32Array.of(1,1,1,1),whitesmoke:Float32Array.of(.961,.961,.961,1),yellow:Float32Array.of(1,1,0,1),yellowgreen:Float32Array.of(.604,.804,.196,1)};class ct{static Transparent=ct.fromRGBA(0,0,0,0);static BLACK=ct.fromRGB(0,0,0);static WHITE=ct.fromRGB(255,255,255);static isColor(t){return typeof t=="string"||typeof t=="number"||t instanceof ct}static parse(t){const n=typeof t=="string";if(n&&t.toLowerCase().startsWith("rgb")){const r=t.match(/rgba?\s*\(([^)]+)\)\s*/i);if(r){const i=r[1].split(",").map(parseInt),s=this.fromRGB(i[0],i[1],i[2]);return i.length===4&&(s.alpha=i[3]),s}}else if(n&&t.startsWith("#")||typeof t=="number")return this.fromRGB(KO(t));if(n&&XO[t]){const r=XO[t];return this.fromRGB(r[0]*255>>0,r[1]*255>>0,r[2]*255>>0)}else if(typeof t=="object"&&t!==null)return this.fromRGB(t);return this.fromRGB(0,0,0)}static fromRGB(t,n,r){return t!==null&&typeof t=="object"?new ct(t.r,t.g,t.b):new ct(t,n,r)}static fromRGBA(t,n,r,i){return t!==null&&typeof t=="object"?new ct(t.r,t.g,t.b,n):new ct(t,n,r,i)}static fromHSL(t,n,r){const{r:i,g:s,b:o}=Hp(t,n,r);return new ct(i,s,o)}static fromHSV(t,n,r){const{r:i,g:s,b:o}=HO(t,n,r);return new ct(i,s,o)}_r=0;_g=0;_b=0;_a=1;constructor(t=0,n=0,r=0,i=1){this._r=t,this._g=n,this._b=r,this._a=i}copy(t){return this._r=t.r,this._g=t.g,this._b=t.b,this.alpha=t.alpha,this}clone(){return ct.fromRGB(0,0,0).copy(this)}setRGB(t,n,r){return this._r=t,this._g=n,this._b=r,this}normalize(){return this.r=bs(this._r/255,0,1),this.g=bs(this._g/255,0,1),this.b=bs(this._b/255,0,1),this}set r(t){this._r=t}get r(){return this._r}set g(t){this._g=t}get g(){return this._g}set b(t){this._b=t}get b(){return this._b}get a(){return this.alpha}set a(t){this.alpha=t}set alpha(t){this._a=Math.max(0,Math.min(1,t))}get alpha(){return this._a}equals(t){return this.r!==t.r||this.g!==t.g||this.b!==t.b||this.alpha!==t.alpha}setOpacity(t){return this.alpha=t,this}mix(t,n,r=.5){const{r:i,g:s,b:o}=YO(t,n,r);return new ct(i,s,o)}setRBG(t,n,r){return this.r=t,this.g=n,this.b=r,this}setRGBColor(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}brighten(t){const{h:n,s:r,l:i}=GO(this.r,this.g,this.b);return this.setRGBColor(Hp(n,r,i*(1+t)))}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}round(){return this.r=Math.round(this.r),this.g=Math.round(this.g),this.b=Math.round(this.b),this}floor(){return this.r=Math.floor(this.r),this.g=Math.floor(this.g),this.b=Math.floor(this.b),this}clamp(t=0,n=1){return this.r=bs(this.r,t,n),this.g=bs(this.g,t,n),this.b=bs(this.b,t,n),this}toCssRGB(){return`rgb(${Math.round(this.r)},${Math.round(this.g)},${Math.round(this.b)})`}}const Cf=3,R5={grad:360/400,turn:360,rad:360/(Math.PI*2)},Jn=e=>typeof e=="string"?e.length>0:typeof e=="number",xe=(e,t=0,n=Math.pow(10,t))=>Math.round(n*e)/n+0,Ht=(e,t=0,n=1)=>e>n?n:e>t?e:t,JO=e=>(e=isFinite(e)?e%360:0,e>0?e:e+360),P5=(e,t="deg")=>Number(e)*(R5[t]||1),ZO=e=>({r:Ht(e.r,0,255),g:Ht(e.g,0,255),b:Ht(e.b,0,255),a:Ht(e.a)}),Kp=e=>({r:xe(e.r),g:xe(e.g),b:xe(e.b),a:xe(e.a,Cf)}),N5=({r:e,g:t,b:n,a:r=1})=>!Jn(e)||!Jn(t)||!Jn(n)?null:ZO({r:Number(e),g:Number(t),b:Number(n),a:Number(r)}),M5=/^#([0-9a-f]{3,8})$/i,$5=e=>{const t=M5.exec(e);return t?(e=t[1],e.length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?xe(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?xe(parseInt(e.substr(6,2),16)/255,2):1}:null):null},Lf=e=>{const t=e.toString(16);return t.length<2?"0"+t:t},I5=e=>{const{r:t,g:n,b:r,a:i}=Kp(e),s=i<1?Lf(xe(i*255)):"";return"#"+Lf(t)+Lf(n)+Lf(r)+s},D5=e=>({h:JO(e.h),s:Ht(e.s,0,100),v:Ht(e.v,0,100),a:Ht(e.a)}),C5=e=>({h:xe(e.h),s:xe(e.s),v:xe(e.v),a:xe(e.a,Cf)}),L5=({h:e,s:t,v:n,a:r=1})=>{if(!Jn(e)||!Jn(t)||!Jn(n))return null;const i=D5({h:Number(e),s:Number(t),v:Number(n),a:Number(r)});return eE(i)},QO=({r:e,g:t,b:n,a:r})=>{const i=Math.max(e,t,n),s=i-Math.min(e,t,n),o=s?i===e?(t-n)/s:i===t?2+(n-e)/s:4+(e-t)/s:0;return{h:60*(o<0?o+6:o),s:i?s/i*100:0,v:i/255*100,a:r}},eE=({h:e,s:t,v:n,a:r})=>{e=e/360*6,t=t/100,n=n/100;const i=Math.floor(e),s=n*(1-t),o=n*(1-(e-i)*t),a=n*(1-(1-e+i)*t),u=i%6;return{r:[n,o,s,s,a,n][u]*255,g:[a,n,n,o,s,s][u]*255,b:[s,s,a,n,n,o][u]*255,a:r}},tE=e=>({h:JO(e.h),s:Ht(e.s,0,100),l:Ht(e.l,0,100),a:Ht(e.a)}),nE=e=>({h:xe(e.h),s:xe(e.s),l:xe(e.l),a:xe(e.a,Cf)}),j5=({h:e,s:t,l:n,a:r=1})=>{if(!Jn(e)||!Jn(t)||!Jn(n))return null;const i=tE({h:Number(e),s:Number(t),l:Number(n),a:Number(r)});return rE(i)},F5=({h:e,s:t,l:n,a:r})=>(t*=(n<50?n:100-n)/100,{h:e,s:t>0?2*t/(n+t)*100:0,v:n+t,a:r}),B5=({h:e,s:t,v:n,a:r})=>{const i=(200-t)*n/100;return{h:e,s:i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:r}},rE=e=>eE(F5(e)),na=e=>B5(QO(e)),z5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,U5=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,k5=e=>{const t=z5.exec(e)||U5.exec(e);if(!t)return null;const n=tE({h:P5(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return rE(n)},V5=e=>{const{h:t,s:n,l:r,a:i}=nE(na(e));return i<1?`hsla(${t}, ${n}%, ${r}%, ${i})`:`hsl(${t}, ${n}%, ${r}%)`},W5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,q5=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,G5=e=>{const t=W5.exec(e)||q5.exec(e);return!t||t[2]!==t[4]||t[4]!==t[6]?null:ZO({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)})},H5=e=>{const{r:t,g:n,b:r,a:i}=Kp(e);return i<1?`rgba(${t}, ${n}, ${r}, ${i})`:`rgb(${t}, ${n}, ${r})`},Yp={string:[[$5,"hex"],[G5,"rgb"],[k5,"hsl"]],object:[[N5,"rgb"],[j5,"hsl"],[L5,"hsv"]]},iE=(e,t)=>{for(let n=0;n<t.length;n++){const r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},sE=e=>typeof e=="string"?iE(e.trim(),Yp.string):typeof e=="object"&&e!==null?iE(e,Yp.object):[null,void 0],K5=e=>sE(e)[1],Y5=(e,t)=>({r:e.r,g:e.g,b:e.b,a:t}),Xp=(e,t)=>{const n=na(e);return{h:n.h,s:Ht(n.s+t*100,0,100),l:n.l,a:n.a}},Jp=e=>(e.r*299+e.g*587+e.b*114)/1e3/255,oE=(e,t)=>{const n=na(e);return{h:n.h,s:n.s,l:Ht(n.l+t*100,0,100),a:n.a}},X5=e=>({r:255-e.r,g:255-e.g,b:255-e.b,a:e.a});class jf{parsed;rgba;constructor(t){this.parsed=sE(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}isValid(){return this.parsed!==null}brightness(){return xe(Jp(this.rgba),2)}isDark(){return Jp(this.rgba)<.5}isLight(){return Jp(this.rgba)>=.5}toHex(){return I5(this.rgba)}toRgb(){return Kp(this.rgba)}toRgbString(){return H5(this.rgba)}toHsl(){return nE(na(this.rgba))}toHslString(){return V5(this.rgba)}toHsv(){return C5(QO(this.rgba))}invert(){return Mn(X5(this.rgba))}saturate(t=.1){return Mn(Xp(this.rgba,t))}desaturate(t=.1){return Mn(Xp(this.rgba,-t))}grayscale(){return Mn(Xp(this.rgba,-1))}lighten(t=.1){return Mn(oE(this.rgba,t))}darken(t=.1){return Mn(oE(this.rgba,-t))}rotate(t=15){return this.hue(this.hue()+t)}alpha(t){return typeof t=="number"?Mn(Y5(this.rgba,t)):xe(this.rgba.a,Cf)}hue(t){const n=na(this.rgba);return typeof t=="number"?Mn({h:t,s:n.s,l:n.l,a:n.a}):xe(n.h)}isEqual(t){return this.toHex()===Mn(t).toHex()}}const Mn=e=>e instanceof jf?e:new jf(e),aE=[],J5=Object.freeze(Object.defineProperty({__proto__:null,colord:Mn,extend:e=>{e.forEach(t=>{aE.indexOf(t)<0&&(t(jf,Yp),aE.push(t))})},getFormat:K5,random:()=>new jf({r:Math.random()*255,g:Math.random()*255,b:Math.random()*255})},Symbol.toStringTag,{value:"Module"}));var uE=(e=>(e.create="create",e.add="add",e.modify="modify",e.event="event",e))(uE||{});class Z5{constructor(t,n){this.config=n,this.context=t,this.config&&this.initPresetsAndPlugins(this.config)}hooks=new Map;methods=new Map;plugins=new Map;extraPresets=[];extraPlugins=[];context;initPresetsAndPlugins(t){this.extraPlugins=[],this.extraPresets=[],this.resolvePresets(t.presets??[]),this.resolvePlugins(t.plugins??[])}resolvePresets(t){Array.isArray(t)&&t.forEach(r=>{this.initPreset(r)});const n=this.extraPresets;for(;n.length;)this.initPreset(n.shift())}resolvePlugins(t){Array.isArray(t)&&t.forEach(r=>{this.initPlugin(r)});const n=this.extraPlugins;for(;n.length;)this.initPlugin(n.shift())}getApplyMethods(t){const n=this.methods.get(t)??[];return(...r)=>n.length===1?n[0](...r):n.reduceRight((i,s)=>(...o)=>s(i(...o)))(...r)}applyMethods(t,...n){const r=this.methods.get(t)??[];return r.length===1?r[0](...n):r.reduceRight((i,s)=>(...o)=>s(i(...o)))(...n)}getPluginContext(t){const n={pluginName:t.name,ctx:this.context,registerMethod:this.registerMethod.bind(this),register:this.register.bind(this)};return new Proxy(n,{get:(r,i,s)=>this.methods.has(i)?this.getApplyMethods(i):Reflect.get(r,i,s)})}initPreset(t){this.registerPlugin(t);const n=this.getPluginContext(t),{plugins:r,presets:i}=t.apply(n,t.config);i&&this.extraPresets.push(...i),r&&this.extraPlugins.push(...r)}initPlugin(t){this.registerPlugin(t);const n=this.getPluginContext(t);t.apply(n,t.config)}registerPlugin(t){if(this.plugins.has(t.name))throw`${t.name}:已存在`;this.plugins.set(t.name,t)}register(t){const n=this.hooks.get(t.name)??[];n.push(t),this.hooks.set(t.name,n)}registerMethod(t,n){const r=this.methods.get(t)??[];r.push(n||(i=>{this.register({name:t,fn:i})})),this.methods.set(t,r)}async applyPlugins(t){const n=typeof t=="string"?{name:t,type:void 0}:t;let{name:r,type:i}=n;i||(r.startsWith("modify")&&(i="modify"),r.startsWith("add")&&(i="add"),r.startsWith("on")&&(i="event"),r.startsWith("create")&&(i="create"));const s=(this.hooks.get(r)??[]).slice();switch(s.sort((o,a)=>{let u=o.order??0,f=a.order??0;return u-f}),i){case"create":{let o=n.initalValue;for(let a of s){let u=await Promise.resolve().then(()=>a.fn(n.args));if(u!=null)return u}return o}case"add":{let o=n.initalValue??[];for(let a of s){let u=await Promise.resolve().then(()=>a.fn(n.args));u!=null&&o.push(u)}return o}case"modify":{let o=n.initalValue??{};for(let a of s){let u=await Promise.resolve().then(()=>a.fn(o,n.args));u!=null&&(o=u)}return o}case"event":{if(n.sync)for(let o of s)o.fn(n.args);else{let o=Promise.resolve();for(let a of s)o=o.then(()=>{a.fn(n.args)})}break}}}uninstallPlugin(t){if(this.plugins.has(t.name)){const n=this.getPluginContext(t);t.dispose?.(n),this.plugins.delete(t.name)}}dispose(){this.plugins.forEach(t=>{t?.dispose?.(this.getPluginContext(t))}),this.extraPlugins=[],this.extraPresets=[],this.plugins.clear(),this.hooks.clear(),this.methods.clear()}}var Pt=-1,Qe=1,be=0;function ra(e,t,n,r,i){if(e===t)return e?[[be,e]]:[];if(n!=null){var s=a4(e,t,n);if(s)return s}var o=Zp(e,t),a=e.substring(0,o);e=e.substring(o),t=t.substring(o),o=Ff(e,t);var u=e.substring(e.length-o);e=e.substring(0,e.length-o),t=t.substring(0,t.length-o);var f=Q5(e,t);return a&&f.unshift([be,a]),u&&f.push([be,u]),Qp(f,i),r&&n4(f),f}function Q5(e,t){var n;if(!e)return[[Qe,t]];if(!t)return[[Pt,e]];var r=e.length>t.length?e:t,i=e.length>t.length?t:e,s=r.indexOf(i);if(s!==-1)return n=[[Qe,r.substring(0,s)],[be,i],[Qe,r.substring(s+i.length)]],e.length>t.length&&(n[0][0]=n[2][0]=Pt),n;if(i.length===1)return[[Pt,e],[Qe,t]];var o=t4(e,t);if(o){var a=o[0],u=o[1],f=o[2],c=o[3],l=o[4],h=ra(a,f),d=ra(u,c);return h.concat([[be,l]],d)}return e4(e,t)}function e4(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),s=i,o=2*i,a=new Array(o),u=new Array(o),f=0;f<o;f++)a[f]=-1,u[f]=-1;a[s+1]=0,u[s+1]=0;for(var c=n-r,l=c%2!==0,h=0,d=0,_=0,v=0,g=0;g<i;g++){for(var y=-g+h;y<=g-d;y+=2){var b=s+y,w;y===-g||y!==g&&a[b-1]<a[b+1]?w=a[b+1]:w=a[b-1]+1;for(var m=w-y;w<n&&m<r&&e.charAt(w)===t.charAt(m);)w++,m++;if(a[b]=w,w>n)d+=2;else if(m>r)h+=2;else if(l){var A=s+c-y;if(A>=0&&A<o&&u[A]!==-1){var S=n-u[A];if(w>=S)return fE(e,t,w,m)}}}for(var P=-g+_;P<=g-v;P+=2){var A=s+P,S;P===-g||P!==g&&u[A-1]<u[A+1]?S=u[A+1]:S=u[A-1]+1;for(var k=S-P;S<n&&k<r&&e.charAt(n-S-1)===t.charAt(r-k-1);)S++,k++;if(u[A]=S,S>n)v+=2;else if(k>r)_+=2;else if(!l){var b=s+c-P;if(b>=0&&b<o&&a[b]!==-1){var w=a[b],m=s+w-b;if(S=n-S,w>=S)return fE(e,t,w,m)}}}}return[[Pt,e],[Qe,t]]}function fE(e,t,n,r){var i=e.substring(0,n),s=t.substring(0,r),o=e.substring(n),a=t.substring(r),u=ra(i,s),f=ra(o,a);return u.concat(f)}function Zp(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,s=0;n<i;)e.substring(s,i)==t.substring(s,i)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return dE(e.charCodeAt(i-1))&&i--,i}function cE(e,t){var n=e.length,r=t.length;if(n==0||r==0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var s=0,o=1;;){var a=e.substring(i-o),u=t.indexOf(a);if(u==-1)return s;o+=u,(u==0||e.substring(i-o)==t.substring(0,o))&&(s=o,o++)}}function Ff(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,s=0;n<i;)e.substring(e.length-i,e.length-s)==t.substring(t.length-i,t.length-s)?(n=i,s=n):r=i,i=Math.floor((r-n)/2+n);return _E(e.charCodeAt(e.length-i))&&i--,i}function t4(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2<n.length)return null;function i(d,_,v){for(var g=d.substring(v,v+Math.floor(d.length/4)),y=-1,b="",w,m,A,S;(y=_.indexOf(g,y+1))!==-1;){var P=Zp(d.substring(v),_.substring(y)),k=Ff(d.substring(0,v),_.substring(0,y));b.length<k+P&&(b=_.substring(y-k,y)+_.substring(y,y+P),w=d.substring(0,v-k),m=d.substring(v+P),A=_.substring(0,y-k),S=_.substring(y+P))}return b.length*2>=d.length?[w,m,A,S,b]:null}var s=i(n,r,Math.ceil(n.length/4)),o=i(n,r,Math.ceil(n.length/2)),a;if(!s&&!o)return null;o?s?a=s[4].length>o[4].length?s:o:a=o:a=s;var u,f,c,l;e.length>t.length?(u=a[0],f=a[1],c=a[2],l=a[3]):(c=a[0],l=a[1],u=a[2],f=a[3]);var h=a[4];return[u,f,c,l,h]}function n4(e){for(var t=!1,n=[],r=0,i=null,s=0,o=0,a=0,u=0,f=0;s<e.length;)e[s][0]==be?(n[r++]=s,o=u,a=f,u=0,f=0,i=e[s][1]):(e[s][0]==Qe?u+=e[s][1].length:f+=e[s][1].length,i&&i.length<=Math.max(o,a)&&i.length<=Math.max(u,f)&&(e.splice(n[r-1],0,[Pt,i]),e[n[r-1]+1][0]=Qe,r--,r--,s=r>0?n[r-1]:-1,o=0,a=0,u=0,f=0,i=null,t=!0)),s++;for(t&&Qp(e),s4(e),s=1;s<e.length;){if(e[s-1][0]==Pt&&e[s][0]==Qe){var c=e[s-1][1],l=e[s][1],h=cE(c,l),d=cE(l,c);h>=d?(h>=c.length/2||h>=l.length/2)&&(e.splice(s,0,[be,l.substring(0,h)]),e[s-1][1]=c.substring(0,c.length-h),e[s+1][1]=l.substring(h),s++):(d>=c.length/2||d>=l.length/2)&&(e.splice(s,0,[be,c.substring(0,d)]),e[s-1][0]=Qe,e[s-1][1]=l.substring(0,l.length-d),e[s+1][0]=Pt,e[s+1][1]=c.substring(d),s++),s++}s++}}var lE=/[^a-zA-Z0-9]/,hE=/\s/,pE=/[\r\n]/,r4=/\n\r?\n$/,i4=/^\r?\n\r?\n/;function s4(e){function t(d,_){if(!d||!_)return 6;var v=d.charAt(d.length-1),g=_.charAt(0),y=v.match(lE),b=g.match(lE),w=y&&v.match(hE),m=b&&g.match(hE),A=w&&v.match(pE),S=m&&g.match(pE),P=A&&d.match(r4),k=S&&_.match(i4);return P||k?5:A||S?4:y&&!w&&m?3:w||m?2:y||b?1:0}for(var n=1;n<e.length-1;){if(e[n-1][0]==be&&e[n+1][0]==be){var r=e[n-1][1],i=e[n][1],s=e[n+1][1],o=Ff(r,i);if(o){var a=i.substring(i.length-o);r=r.substring(0,r.length-o),i=a+i.substring(0,i.length-o),s=a+s}for(var u=r,f=i,c=s,l=t(r,i)+t(i,s);i.charAt(0)===s.charAt(0);){r+=i.charAt(0),i=i.substring(1)+s.charAt(0),s=s.substring(1);var h=t(r,i)+t(i,s);h>=l&&(l=h,u=r,f=i,c=s)}e[n-1][1]!=u&&(u?e[n-1][1]=u:(e.splice(n-1,1),n--),e[n][1]=f,c?e[n+1][1]=c:(e.splice(n+1,1),n--))}n++}}function Qp(e,t){e.push([be,""]);for(var n=0,r=0,i=0,s="",o="",a;n<e.length;){if(n<e.length-1&&!e[n][1]){e.splice(n,1);continue}switch(e[n][0]){case Qe:i++,o+=e[n][1],n++;break;case Pt:r++,s+=e[n][1],n++;break;case be:var u=n-i-r-1;if(t){if(u>=0&&gE(e[u][1])){var f=e[u][1].slice(-1);if(e[u][1]=e[u][1].slice(0,-1),s=f+s,o=f+o,!e[u][1]){e.splice(u,1),n--;var c=u-1;e[c]&&e[c][0]===Qe&&(i++,o=e[c][1]+o,c--),e[c]&&e[c][0]===Pt&&(r++,s=e[c][1]+s,c--),u=c}}if(vE(e[n][1])){var f=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),s+=f,o+=f}}if(n<e.length-1&&!e[n][1]){e.splice(n,1);break}if(s.length>0||o.length>0){s.length>0&&o.length>0&&(a=Zp(o,s),a!==0&&(u>=0?e[u][1]+=o.substring(0,a):(e.splice(0,0,[be,o.substring(0,a)]),n++),o=o.substring(a),s=s.substring(a)),a=Ff(o,s),a!==0&&(e[n][1]=o.substring(o.length-a)+e[n][1],o=o.substring(0,o.length-a),s=s.substring(0,s.length-a)));var l=i+r;s.length===0&&o.length===0?(e.splice(n-l,l),n=n-l):s.length===0?(e.splice(n-l,l,[Qe,o]),n=n-l+1):o.length===0?(e.splice(n-l,l,[Pt,s]),n=n-l+1):(e.splice(n-l,l,[Pt,s],[Qe,o]),n=n-l+2)}n!==0&&e[n-1][0]===be?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,i=0,r=0,s="",o="";break}}e[e.length-1][1]===""&&e.pop();var h=!1;for(n=1;n<e.length-1;)e[n-1][0]===be&&e[n+1][0]===be&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),h=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),h=!0)),n++;h&&Qp(e,t)}function dE(e){return e>=55296&&e<=56319}function _E(e){return e>=56320&&e<=57343}function vE(e){return _E(e.charCodeAt(0))}function gE(e){return dE(e.charCodeAt(e.length-1))}function o4(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}function ed(e,t,n,r){return gE(e)||vE(r)?null:o4([[be,e],[Pt,t],[Qe,n],[be,r]])}function a4(e,t,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,s=e.length,o=t.length;if(r.length===0&&(i===null||i.length===0)){var a=r.index,u=e.slice(0,a),f=e.slice(a),c=i?i.index:null;e:{var l=a+o-s;if(c!==null&&c!==l||l<0||l>o)break e;var h=t.slice(0,l),d=t.slice(l);if(d!==f)break e;var _=Math.min(a,l),v=u.slice(0,_),g=h.slice(0,_);if(v!==g)break e;var y=u.slice(_),b=h.slice(_);return ed(v,y,b,f)}e:{if(c!==null&&c!==a)break e;var w=a,h=t.slice(0,w),d=t.slice(w);if(h!==u)break e;var m=Math.min(s-w,o-w),A=f.slice(f.length-m),S=d.slice(d.length-m);if(A!==S)break e;var y=f.slice(0,f.length-m),b=d.slice(0,d.length-m);return ed(u,y,b,A)}}if(r.length>0&&i&&i.length===0)e:{var v=e.slice(0,r.index),A=e.slice(r.index+r.length),_=v.length,m=A.length;if(o<_+m)break e;var g=t.slice(0,_),S=t.slice(o-m);if(v!==g||A!==S)break e;var y=e.slice(_,s-m),b=t.slice(_,o-m);return ed(v,y,b,A)}return null}function Mr(e,t,n,r){return ra(e,t,n,r,!0)}Mr.INSERT=Qe,Mr.DELETE=Pt,Mr.EQUAL=be;const u4=Object.prototype.hasOwnProperty;function f4(e,t){return u4.call(e,t)}function c4(e){if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<n.length;r++)n[r]=""+r;return n}if(Object.keys)return Object.keys(e);let t=[];for(let n in e)f4(e,n)&&t.push(n);return t}function di(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function td(e){let t=0;const n=e.length;let r;for(;t<n;){if(r=e.charCodeAt(t),r>=48&&r<=57){t++;continue}return!1}return!0}function l4(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function nd(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(nd(e[n]))return!0}else if(typeof e=="object"){const n=c4(e),r=n.length;for(var t=0;t<r;t++)if(nd(e[n[t]]))return!0}}return!1}function yE(e,t){const n=[e];for(const r in t){const i=typeof t[r]=="object"?JSON.stringify(t[r],null,2):t[r];typeof i<"u"&&n.push(`${r}: ${i}`)}return n.join(`
|
|
51
|
+
`)}class h4 extends Error{constructor(t,n,r,i,s){super(yE(t,{name:n,index:r,operation:i,tree:s})),this.name=n,this.index=r,this.operation=i,this.tree=s,Object.setPrototypeOf(this,new.target.prototype),this.message=yE(t,{name:n,index:r,operation:i,tree:s})}}const le=h4,p4=di,ms={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){let r=Bf(n,this.path);r&&(r=di(r));const i=_i(n,{op:"remove",path:this.from}).removed;return _i(n,{op:"add",path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){const r=Bf(n,this.from);return _i(n,{op:"add",path:this.path,value:di(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:ia(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}};var d4={add:function(e,t,n){return td(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){var r=e.splice(t,1);return{newDocument:n,removed:r[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:ms.move,copy:ms.copy,test:ms.test,_get:ms._get};function Bf(e,t){if(t=="")return e;var n={op:"_get",path:t};return _i(e,n),n.value}function _i(e,t,n=!1,r=!0,i=!0,s=0){if(n&&(typeof n=="function"?n(t,0,e,t.path):zf(t,0)),t.path===""){let o={newDocument:e};if(t.op==="add")return o.newDocument=t.value,o;if(t.op==="replace")return o.newDocument=t.value,o.removed=e,o;if(t.op==="move"||t.op==="copy")return o.newDocument=Bf(e,t.from),t.op==="move"&&(o.removed=e),o;if(t.op==="test"){if(o.test=ia(e,t.value),o.test===!1)throw new le("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return o.newDocument=e,o}else{if(t.op==="remove")return o.removed=e,o.newDocument=null,o;if(t.op==="_get")return t.value=e,o;if(n)throw new le("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",s,t,e);return o}}else{r||(e=di(e));const a=(t.path||"").split("/");let u=e,f=1,c=a.length,l,h,d;for(typeof n=="function"?d=n:d=zf;;){if(h=a[f],h&&h.indexOf("~")!=-1&&(h=l4(h)),i&&(h=="__proto__"||h=="prototype"&&f>0&&a[f-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&l===void 0&&(u[h]===void 0?l=a.slice(0,f).join("/"):f==c-1&&(l=t.path),l!==void 0&&d(t,0,e,l)),f++,Array.isArray(u)){if(h==="-")h=u.length;else{if(n&&!td(h))throw new le("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",s,t,e);td(h)&&(h=~~h)}if(f>=c){if(n&&t.op==="add"&&h>u.length)throw new le("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s,t,e);const _=d4[t.op].call(t,u,h,e);if(_.test===!1)throw new le("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return _}}else if(f>=c){const _=ms[t.op].call(t,u,h,e);if(_.test===!1)throw new le("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return _}if(u=u[h],n&&f<c&&(!u||typeof u!="object"))throw new le("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",s,t,e)}}}function bE(e,t,n,r=!0,i=!0){if(n&&!Array.isArray(t))throw new le("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=di(e));const s=new Array(t.length);for(let o=0,a=t.length;o<a;o++)s[o]=_i(e,t[o],n,!0,i,o),e=s[o].newDocument;return s.newDocument=e,s}function _4(e,t,n){const r=_i(e,t);if(r.test===!1)throw new le("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function zf(e,t,n,r){if(typeof e!="object"||e===null||Array.isArray(e))throw new le("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(ms[e.op]){if(typeof e.path!="string")throw new le("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new le('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new le("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new le("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&nd(e.value))throw new le("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var i=e.path.split("/").length,s=r.split("/").length;if(i!==s+1&&i!==s)throw new le("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new le("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var o={op:"_get",path:e.from,value:void 0},a=mE([o],n);if(a&&a.name==="OPERATION_PATH_UNRESOLVABLE")throw new le("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new le("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function mE(e,t,n){try{if(!Array.isArray(e))throw new le("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)bE(di(t),di(e),n||!0);else{n=n||zf;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(i){if(i instanceof le)return i;throw i}}function ia(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Array.isArray(e),r=Array.isArray(t),i,s,o;if(n&&r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!ia(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var a=Object.keys(e);if(s=a.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!t.hasOwnProperty(a[i]))return!1;for(i=s;i--!==0;)if(o=a[i],!ia(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}const v4=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:le,_areEquals:ia,applyOperation:_i,applyPatch:bE,applyReducer:_4,deepClone:p4,getValueByPointer:Bf,validate:mE,validator:zf},Symbol.toStringTag,{value:"Module"}));var rd;(e=>{function t(s={},o={},a=!1){typeof s!="object"&&(s={}),typeof o!="object"&&(o={});let u=Ba(o);a||(u=Object.keys(u).reduce((f,c)=>(u[c]!=null&&(f[c]=u[c]),f),{}));for(const f in s)s[f]!==void 0&&o[f]===void 0&&(u[f]=s[f]);return Object.keys(u).length>0?u:void 0}e.compose=t;function n(s={},o={}){typeof s!="object"&&(s={}),typeof o!="object"&&(o={});const a=Object.keys(s).concat(Object.keys(o)).reduce((u,f)=>(Ci(s[f],o[f])||(u[f]=o[f]===void 0?null:o[f]),u),{});return Object.keys(a).length>0?a:void 0}e.diff=n;function r(s={},o={}){s=s||{};const a=Object.keys(o).reduce((u,f)=>(o[f]!==s[f]&&s[f]!==void 0&&(u[f]=o[f]),u),{});return Object.keys(s).reduce((u,f)=>(s[f]!==o[f]&&o[f]===void 0&&(u[f]=null),u),a)}e.invert=r;function i(s,o,a=!1){if(typeof s!="object")return o;if(typeof o!="object")return;if(!a)return o;const u=Object.keys(o).reduce((f,c)=>(s[c]===void 0&&(f[c]=o[c]),f),{});return Object.keys(u).length>0?u:void 0}e.transform=i})(rd||(rd={}));const vi=rd;var id;(e=>{function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t})(id||(id={}));const an=id;class Kt{ops;index;offset;constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);const n=this.ops[this.index];if(n){const r=this.offset,i=an.length(n);if(t>=i-r?(t=i-r,this.index+=1,this.offset=0):this.offset+=t,typeof n.delete=="number")return{delete:t};{const s={};return n.attributes&&(s.attributes=n.attributes),typeof n.retain=="number"?s.retain=t:typeof n.retain=="object"&&n.retain!==null?s.retain=n.retain:typeof n.insert=="string"?s.insert=n.insert.substr(r,t):s.insert=n.insert,s}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?an.length(this.ops[this.index])-this.offset:1/0}peekType(){const t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const t=this.offset,n=this.index,r=this.next(),i=this.ops.slice(this.index);return this.offset=t,this.index=n,[r].concat(i)}}else return[]}}const g4="\0",wE=(e,t)=>{if(typeof e!="object"||e===null)throw new Error(`cannot retain a ${typeof e}`);if(typeof t!="object"||t===null)throw new Error(`cannot retain a ${typeof t}`);const n=Object.keys(e)[0];if(!n||n!==Object.keys(t)[0])throw new Error(`embed types not matched: ${n} != ${Object.keys(t)[0]}`);return[n,e[n],t[n]]};class Be{static Op=an;static OpIterator=Kt;static AttributeMap=vi;static handlers={};static registerEmbed(t,n){this.handlers[t]=n}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){const n=this.handlers[t];if(!n)throw new Error(`no handlers for embed type "${t}"`);return n}ops;constructor(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}insert(t,n){const r={};return typeof t=="string"&&t.length===0?this:(r.insert=t,n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,n){if(typeof t=="number"&&t<=0)return this;const r={retain:t};return n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(r.attributes=n),this.push(r)}push(t){let n=this.ops.length,r=this.ops[n-1];if(t=Ba(t),typeof r=="object"){if(typeof t.delete=="number"&&typeof r.delete=="number")return this.ops[n-1]={delete:r.delete+t.delete},this;if(typeof r.delete=="number"&&t.insert!=null&&(n-=1,r=this.ops[n-1],typeof r!="object"))return this.ops.unshift(t),this;if(Ci(t.attributes,r.attributes)){if(typeof t.insert=="string"&&typeof r.insert=="string")return this.ops[n-1]={insert:r.insert+t.insert},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof r.retain=="number")return this.ops[n-1]={retain:r.retain+t.retain},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this}}return n===this.ops.length?this.ops.push(t):this.ops.splice(n,0,t),this}chop(){const t=this.ops[this.ops.length-1];return t&&typeof t.retain=="number"&&!t.attributes&&this.ops.pop(),this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){const n=[],r=[];return this.forEach(i=>{(t(i)?n:r).push(i)}),[n,r]}reduce(t,n){return this.ops.reduce(t,n)}changeLength(){return this.reduce((t,n)=>n.insert?t+an.length(n):n.delete?t-n.delete:t,0)}length(){return this.reduce((t,n)=>t+an.length(n),0)}slice(t=0,n=1/0){const r=[],i=new Kt(this.ops);let s=0;for(;s<n&&i.hasNext();){let o;s<t?o=i.next(t-s):(o=i.next(n-s),r.push(o)),s+=an.length(o)}return new Be(r)}compose(t){const n=new Kt(this.ops),r=new Kt(t.ops),i=[],s=r.peek();if(s!=null&&typeof s.retain=="number"&&s.attributes==null){let a=s.retain;for(;n.peekType()==="insert"&&n.peekLength()<=a;)a-=n.peekLength(),i.push(n.next());s.retain-a>0&&r.next(s.retain-a)}const o=new Be(i);for(;n.hasNext()||r.hasNext();)if(r.peekType()==="insert")o.push(r.next());else if(n.peekType()==="delete")o.push(n.next());else{const a=Math.min(n.peekLength(),r.peekLength()),u=n.next(a),f=r.next(a);if(f.retain){const c={};if(typeof u.retain=="number")c.retain=typeof f.retain=="number"?a:f.retain;else if(typeof f.retain=="number")u.retain==null?c.insert=u.insert:c.retain=u.retain;else{const h=u.retain==null?"insert":"retain",[d,_,v]=wE(u[h],f.retain),g=Be.getHandler(d);c[h]={[d]:g.compose(_,v,h==="retain")}}const l=vi.compose(u.attributes,f.attributes,typeof u.retain=="number");if(l&&(c.attributes=l),o.push(c),!r.hasNext()&&Ci(o.ops[o.ops.length-1],c)){const h=new Be(n.rest());return o.concat(h).chop()}}else typeof f.delete=="number"&&(typeof u.retain=="number"||typeof u.retain=="object"&&u.retain!==null)&&o.push(f)}return o.chop()}concat(t){const n=new Be(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n}diff(t,n){if(this.ops===t.ops)return new Be;const r=[this,t].map(u=>u.map(f=>{if(f.insert!=null)return typeof f.insert=="string"?f.insert:g4;const c=u===t?"on":"with";throw new Error("diff() called "+c+" non-document")}).join("")),i=new Be,s=Mr(r[0],r[1],n,!0),o=new Kt(this.ops),a=new Kt(t.ops);return s.forEach(u=>{let f=u[1].length;for(;f>0;){let c=0;switch(u[0]){case Mr.INSERT:c=Math.min(a.peekLength(),f),i.push(a.next(c));break;case Mr.DELETE:c=Math.min(f,o.peekLength()),o.next(c),i.delete(c);break;case Mr.EQUAL:c=Math.min(o.peekLength(),a.peekLength(),f);const l=o.next(c),h=a.next(c);Ci(l.insert,h.insert)?i.retain(c,vi.diff(l.attributes,h.attributes)):i.push(h).delete(c);break}f-=c}}),i.chop()}eachLine(t,n=`
|
|
52
|
+
`){const r=new Kt(this.ops);let i=new Be,s=0;for(;r.hasNext();){if(r.peekType()!=="insert")return;const o=r.peek(),a=an.length(o)-r.peekLength(),u=typeof o.insert=="string"?o.insert.indexOf(n,a)-a:-1;if(u<0)i.push(r.next());else if(u>0)i.push(r.next(u));else{if(t(i,r.next(1).attributes||{},s)===!1)return;s+=1,i=new Be}}i.length()>0&&t(i,{},s)}invert(t){const n=new Be;return this.reduce((r,i)=>{if(i.insert)n.delete(an.length(i));else{if(typeof i.retain=="number"&&i.attributes==null)return n.retain(i.retain),r+i.retain;if(i.delete||typeof i.retain=="number"){const s=i.delete||i.retain;return t.slice(r,r+s).forEach(a=>{i.delete?n.push(a):i.retain&&i.attributes&&n.retain(an.length(a),vi.invert(i.attributes,a.attributes))}),r+s}else if(typeof i.retain=="object"&&i.retain!==null){const s=t.slice(r,r+1),o=new Kt(s.ops).next(),[a,u,f]=wE(i.retain,o.insert),c=Be.getHandler(a);return n.retain({[a]:c.invert(u,f)},vi.invert(i.attributes,o.attributes)),r+1}}return r},0),n.chop()}transform(t,n=!1){if(n=!!n,typeof t=="number")return this.transformPosition(t,n);const r=t,i=new Kt(this.ops),s=new Kt(r.ops),o=new Be;for(;i.hasNext()||s.hasNext();)if(i.peekType()==="insert"&&(n||s.peekType()!=="insert"))o.retain(an.length(i.next()));else if(s.peekType()==="insert")o.push(s.next());else{const a=Math.min(i.peekLength(),s.peekLength()),u=i.next(a),f=s.next(a);if(u.delete)continue;if(f.delete)o.push(f);else{const c=u.retain,l=f.retain;let h=typeof l=="object"&&l!==null?l:a;if(typeof c=="object"&&c!==null&&typeof l=="object"&&l!==null){const d=Object.keys(c)[0];if(d===Object.keys(l)[0]){const _=Be.getHandler(d);_&&(h={[d]:_.transform(c[d],l[d],n)})}}o.retain(h,vi.transform(u.attributes,f.attributes,n))}}return o.chop()}transformPosition(t,n=!1){n=!!n;const r=new Kt(this.ops);let i=0;for(;r.hasNext()&&i<=t;){const s=r.peekLength(),o=r.peekType();if(r.next(),o==="delete"){t-=Math.min(s,t-i);continue}else o==="insert"&&(i<t||!n)&&(t+=s);i+=s}return t}}const y4=Object.freeze(Object.defineProperty({__proto__:null,AttributeMap:vi,Delta:Be,Op:an,OpIterator:Kt,default:Be},Symbol.toStringTag,{value:"Module"})),sd={};class b4{transactionWrappers;wrapperInitData;constructor(){this.reinitializeTransaction()}_isInTransaction=!1;isInTransaction(){return!!this._isInTransaction}reinitializeTransaction(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1}perform(t,n,r,i,s,o,a,u){if(this.isInTransaction)return;let f,c;try{this._isInTransaction=!0,f=!0,this.initializeAll(0),c=t.call(n,r,i,s,o,a,u),f=!1}finally{try{if(f)try{this.closeAll(0)}catch{}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c}initializeAll(t){for(var n=this.transactionWrappers,r=t;r<n.length;r++){var i=n[r];try{this.wrapperInitData[r]=sd,this.wrapperInitData[r]=i.initialize?i.initialize.call(this):null}finally{if(this.wrapperInitData[r]===sd)try{this.initializeAll(r+1)}catch{}}}}closeAll(t){for(var n=this.transactionWrappers,r=t;r<n.length;r++){var i=n[r],s=this.wrapperInitData[r],o;try{o=!0,s!==sd&&i.close&&i.close.call(this,s),o=!1}finally{if(o)try{this.closeAll(r+1)}catch{}}}this.wrapperInitData.length=0}}const od=[];let sa=-1;const m4=e=>({current:e}),w4=(e,t)=>{od[++sa]=e.current,e.current=t},A4=e=>{sa<0||(e.current=od[sa],od[sa]=null,sa--)};class AE{available=[];inUse=new Set;maxSize;create;reset;validate;totalCreated=0;constructor(t){this.maxSize=t.maxSize||100,this.create=t.create,this.reset=t.reset,this.validate=t.validate;const n=t.preAllocate||0;for(let r=0;r<n&&this.available.length<this.maxSize;r++){const i=this.create();this.available.push(i),this.totalCreated++}}acquire(){for(;this.available.length>0;){const t=this.available.pop();if(!this.validate||this.validate(t))return this.inUse.add(t),t}if(this.totalCreated<this.maxSize){const t=this.create();return this.inUse.add(t),this.totalCreated++,t}throw new Error(`Pool reached maximum size: ${this.maxSize}`)}release(t){if(!this.inUse.has(t)){console.warn("Attempted to release an object not in use");return}this.reset&&this.reset(t),this.inUse.delete(t),this.available.length<this.maxSize&&this.available.push(t)}releaseAll(t){t.forEach(n=>this.release(n))}getStats(){return{available:this.available.length,inUse:this.inUse.size,totalCreated:this.totalCreated,maxSize:this.maxSize}}dispose(){this.available=[],this.inUse.clear(),this.totalCreated=0}get availableCount(){return this.available.length}get inUseCount(){return this.inUse.size}isInUse(t){return this.inUse.has(t)}}class O4{constructor(t,n){this.pool=t,this.obj=n}get value(){return this.obj}release(){this.pool.release(this.obj)}[Symbol.dispose](){this.release()}}class E4 extends AE{autoAcquire(){const t=this.acquire();return new O4(this,t)}}const OE=e=>{gi&&gi.add(e)};let gi=null;class S4{static add=OE;static mixin(t,n={}){const r=t.prototype.dispose;t.prototype.__isDisposed=!1,t.prototype.isDisposed=function(){return!!this.__isDisposed},t.prototype.dispose=function(){this.__isDisposed||(this.__isDisposed=!0,n.dispose?.(this),r?.call(t))},t.prototype.disposeLater=function(){gi&&!this.__isDisposed&&gi.add(this)}}disposables=[];persistentDisposables=[];add(t){this.disposables.push(t)}addPersistent(t){this.persistentDisposables.push(t)}destroy(){this.dispose();for(let t=0;t<this.persistentDisposables.length;t++)this.persistentDisposables[t].dispose();this.persistentDisposables.length=0}dispose(){for(let t=0;t<this.disposables.length;t++)this.disposables[t].dispose();this.disposables.length=0}run(t){let n=gi;try{return gi=this,t()}finally{this.dispose(),gi=n}}}function ad(e,t){let n=e.length;e.push(t);e:for(;0<n;){let r=n-1>>>1,i=e[r];if(0<kf(i,t))e[r]=t,e[n]=i,n=r;else break e}}function $n(e){return e.length===0?null:e[0]}function Uf(e){if(e.length===0)return null;let t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(let r=0,i=e.length,s=i>>>1;r<s;){let o=2*(r+1)-1,a=e[o],u=o+1,f=e[u];if(0>kf(a,n))u<i&&0>kf(f,a)?(e[r]=f,e[u]=n,r=u):(e[r]=a,e[o]=n,r=o);else if(u<i&&0>kf(f,n))e[r]=f,e[u]=n,r=u;else break e}}return t}function kf(e,t){const n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}const x4=0,oa=1,aa=2,$r=3,Vf=4,Wf=5,EE=!1,ud=5,SE=250,xE=5e3,TE=1e4,T4=!0,R4=!0;let Ir;if(typeof performance=="object"&&typeof performance.now=="function"){const e=performance;Ir=()=>e.now()}else{const e=Date,t=e.now();Ir=()=>e.now()-t}let P4=1073741823,Zn=[],Dr=[],N4=1,Nt=null,ze=$r,fd=!1,ua=!1,fa=!1;const RE=typeof setTimeout=="function"?setTimeout:null,M4=typeof clearTimeout=="function"?clearTimeout:null,PE=typeof setImmediate<"u"?setImmediate:null;function qf(e){let t=$n(Dr);for(;t!==null;){if(t.callback===null)Uf(Dr);else if(t.startTime<=e)Uf(Dr),t.sortIndex=t.expirationTime,ad(Zn,t);else return;t=$n(Dr)}}function cd(e){if(fa=!1,qf(e),!ua)if($n(Zn)!==null)ua=!0,ME();else{const t=$n(Dr);t!==null&&dd(cd,t.startTime-e)}}function $4(e){ua=!1,fa&&(fa=!1,$E()),fd=!0;const t=ze;try{if(!EE)return I4(e)}finally{Nt=null,ze=t,fd=!1}}function I4(e){let t=e;for(qf(t),Nt=$n(Zn);Nt!==null;){const n=Nt.callback;if(typeof n=="function"){Nt.callback=null,ze=Nt.priorityLevel;const r=Nt.expirationTime<=t,i=n(r);if(t=Ir(),typeof i=="function")return Nt.callback=i,qf(t),!0;Nt===$n(Zn)&&Uf(Zn),qf(t)}else Uf(Zn);if(Nt=$n(Zn),Nt===null||Nt.expirationTime>t)break}if(Nt!==null)return!0;{const n=$n(Dr);return n!==null&&dd(cd,n.startTime-t),!1}}function D4(e,t){switch(e){case oa:case aa:case $r:case Vf:case Wf:break;default:e=$r}let n=ze;ze=e;try{return t()}finally{ze=n}}function C4(e){let t;switch(ze){case oa:case aa:case $r:t=$r;break;default:t=ze;break}let n=ze;ze=t;try{return e()}finally{ze=n}}function L4(e){let t=ze;return function(...n){let r=ze;ze=t;try{return e.apply(this,n)}finally{ze=r}}}function j4(e,t,n){let r=Ir(),i;if(typeof n=="object"&&n!==null){let u=n.delay;typeof u=="number"&&u>0?i=r+u:i=r}else i=r;let s;switch(e){case oa:s=-1;break;case aa:s=SE;break;case Wf:s=P4;break;case Vf:s=TE;break;case $r:default:s=xE;break}let o=i+s,a={id:N4++,callback:t,priorityLevel:e,startTime:i,expirationTime:o,sortIndex:-1};return i>r?(a.sortIndex=i,ad(Dr,a),$n(Zn)===null&&a===$n(Dr)&&(fa?$E():fa=!0,dd(cd,i-r))):(a.sortIndex=o,ad(Zn,a),!ua&&!fd&&(ua=!0,ME())),a}function F4(e){e.callback=null}function B4(){return ze}let Gf=!1,ld=-1,hd=ud,NE=-1;function z4(){return!(Ir()-NE<hd)}function U4(){}function k4(e){if(e<0||e>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}e>0?hd=Math.floor(1e3/e):hd=ud}const pd=()=>{if(Gf){const e=Ir();NE=e;let t=!0;try{t=$4(e)}finally{t?ca():Gf=!1}}};let ca;if(typeof PE=="function")ca=()=>{PE(pd)};else if(typeof MessageChannel<"u"){const e=new MessageChannel,t=e.port2;e.port1.onmessage=pd,ca=()=>{t.postMessage(null)}}else ca=()=>{RE(pd,0)};function ME(){Gf||(Gf=!0,ca())}function dd(e,t){ld=RE(()=>{e(Ir())},t)}function $E(){M4(ld),ld=-1}const V4=Object.freeze(Object.defineProperty({__proto__:null,IdlePriority:Wf,ImmediatePriority:oa,LowPriority:Vf,NoPriority:x4,NormalPriority:$r,UserBlockingPriority:aa,enableAlwaysYieldScheduler:R4,enableProfiling:EE,enableRequestPaint:T4,frameYieldMs:ud,lowPriorityTimeout:TE,normalPriorityTimeout:xE,unstable_IdlePriority:Wf,unstable_ImmediatePriority:oa,unstable_LowPriority:Vf,unstable_NormalPriority:$r,unstable_UserBlockingPriority:aa,unstable_cancelCallback:F4,unstable_forceFrameRate:k4,unstable_getCurrentPriorityLevel:B4,unstable_next:C4,get unstable_now(){return Ir},unstable_requestPaint:U4,unstable_runWithPriority:D4,unstable_scheduleCallback:j4,unstable_shouldYield:z4,unstable_wrapCallback:L4,userBlockingPriorityTimeout:SE},Symbol.toStringTag,{value:"Module"})),W4=Object.freeze(Object.defineProperty({__proto__:null,StateMachine:class{currentState;context;config;listeners=[];constructor(t){this.config=t,this.currentState=t.initial,this.context=t.context}getState(){return this.currentState}getContext(){return this.context}send(t,n){const r=this.config.states[this.currentState],i=r.on?.[t];if(!i)return console.warn(`事件 "${t}" 在当前状态 "${this.currentState}" 下无效`),!1;r.onExit?.(this.context,this);const s=this.currentState;return i.action&&(this.context=i.action(this.context,{type:t,prevState:s,payload:n},this)),this.currentState=i.target,this.config.states[this.currentState].onEnter?.(this.context,this),this.listeners.forEach(o=>o(this.currentState,this.context)),!0}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}reset(){this.currentState=this.config.initial,this.context=this.config.context,this.listeners.forEach(t=>t(this.currentState,this.context))}}},Symbol.toStringTag,{value:"Module"}));class _d{startState;_currentState;get currentState(){return this._currentState}set currentState(t){this._currentState=t}states=new Map;data;static create(t,n){const r=new _d;r.data=n;for(const i in t.states)r.states.set(i,{name:i,...t.states[i]});for(const i of r.states.values())for(const s of i.transitions)if(s!=="*"&&!r.states.has(s))throw Error(`Invalid state machine, state [${i.name}] has a transition to another state that doesn't exist [${s}]`);return r.currentState=r.startState=r.states.get(t.start),r}in(t){return this.currentState.name===t}go(t,n){if(this.currentState.transitions.includes(t)||this.currentState.transitions.includes("*")){const r=this.states.get(t);return this.currentState.onExit&&this.currentState?.onExit({to:r.name,data:this.data})===!1||r?.onEnter&&r?.onEnter({from:this.currentState.name,eventData:n,data:this.data})===!1?!1:(this.currentState=r,this.currentState?.onState&&this.currentState.onState(),!0)}return!1}update(t){this.currentState.onUpdate&&this.currentState.onUpdate(this.data,t)}save(t){localStorage.setItem(t,JSON.stringify({currentState:this.currentState.name,data:this.data}))}restore(t){const n=JSON.parse(localStorage.getItem(t));this.currentState=this.states.get(n.currentState),this.data=n.data}}const q4=Object.freeze(Object.defineProperty({__proto__:null,StateMachine:_d},Symbol.toStringTag,{value:"Module"}));x.AT_TARGET=Zf,x.AutoPool=E4,x.BUBBLING_PHASE=wd,x.CAPTURING_PHASE=md,x.Callbacks=ZE,x.Color=ct,x.DisposableManager=S4,x.Emitter4Event=_a,x.Event=CE,x.EventEmitter=me,x.EventEmitter4=kE,x.EventPhase=Os,x.EventPropagation=nr,x.EventTarget=nr,x.HookType=uE,x.Immutable=j3,x.NONE=Jf,x.Options=Gp,x.PluginService=Z5,x.Pool=AE,x.PriorityQueue=QE,x.QuillDelta=y4,x.Scheduler=V4,x.Signals=JE,x.StateMachine=W4,x.StateMachinePlus=q4,x.Transaction=b4,x.addDisposable=OE,x.alienSignals=Xz,x.antvUtil=bL,x.colord=J5,x.compose=c5,x.createCursor=m4,x.deepmerge=ys,x.fastDeepEqual=Df,x.fastDiff=Mr,x.fastJsonPatch=v4,x.hexToRgb=KO,x.hslToHsv=x5,x.hslToRgb=Hp,x.hsvToHsl=T5,x.hsvToRgb=HO,x.immer=BL,x.lerpColor=YO,x.lodash=mC,x.mitt=LE,x.mobx=Dz,x.observable=XE,x.pop=A4,x.push=w4,x.radash=ox,x.reactivity=Wj,x.redux=uF,x.rgbToHsl=GO,x.rgbToHsv=S5,x.signals=Xj,x.tapable=u5,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|