storybook
Version:
Storybook: Develop, document, and test UI components in isolation
997 lines (974 loc) • 926 kB
JavaScript
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
var __require = /* @__PURE__ */ ((x2) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x2, {
get: (a2, b2) => (typeof require < "u" ? require : a2)[b2]
}) : x2)(function(x2) {
if (typeof require < "u") return require.apply(this, arguments);
throw Error('Dynamic require of "' + x2 + '" is not supported');
});
var __esm = (fn, res) => function() {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
};
var __commonJS = (cb, mod) => function() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: !0 });
}, __copyProps = (to, from, except, desc) => {
if (from && typeof from == "object" || typeof from == "function")
for (let key of __getOwnPropNames(from))
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
mod
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
// global-externals:react
var react_exports = {};
__export(react_exports, {
Children: () => Children,
Component: () => Component,
Fragment: () => Fragment,
Profiler: () => Profiler,
PureComponent: () => PureComponent,
StrictMode: () => StrictMode,
Suspense: () => Suspense,
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
act: () => act,
cloneElement: () => cloneElement,
createContext: () => createContext,
createElement: () => createElement,
createFactory: () => createFactory,
createRef: () => createRef,
default: () => react_default,
forwardRef: () => forwardRef,
isValidElement: () => isValidElement,
lazy: () => lazy,
memo: () => memo,
startTransition: () => startTransition,
unstable_act: () => unstable_act,
useCallback: () => useCallback,
useContext: () => useContext,
useDebugValue: () => useDebugValue,
useDeferredValue: () => useDeferredValue,
useEffect: () => useEffect,
useId: () => useId,
useImperativeHandle: () => useImperativeHandle,
useInsertionEffect: () => useInsertionEffect,
useLayoutEffect: () => useLayoutEffect,
useMemo: () => useMemo,
useReducer: () => useReducer,
useRef: () => useRef,
useState: () => useState,
useSyncExternalStore: () => useSyncExternalStore,
useTransition: () => useTransition,
version: () => version
});
var react_default, Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, act, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, startTransition, unstable_act, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, version, init_react = __esm({
"global-externals:react"() {
react_default = __REACT__, { Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, act, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, startTransition, unstable_act, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, version } = __REACT__;
}
});
// ../../node_modules/prop-types/lib/ReactPropTypesSecret.js
var require_ReactPropTypesSecret = __commonJS({
"../../node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports, module) {
"use strict";
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
module.exports = ReactPropTypesSecret;
}
});
// ../../node_modules/prop-types/factoryWithThrowingShims.js
var require_factoryWithThrowingShims = __commonJS({
"../../node_modules/prop-types/factoryWithThrowingShims.js"(exports, module) {
"use strict";
var ReactPropTypesSecret = require_ReactPropTypesSecret();
function emptyFunction() {
}
function emptyFunctionWithReset() {
}
emptyFunctionWithReset.resetWarningCache = emptyFunction;
module.exports = function() {
function shim(props, propName, componentName, location2, propFullName, secret) {
if (secret !== ReactPropTypesSecret) {
var err = new Error(
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
);
throw err.name = "Invariant Violation", err;
}
}
shim.isRequired = shim;
function getShim() {
return shim;
}
var ReactPropTypes = {
array: shim,
bigint: shim,
bool: shim,
func: shim,
number: shim,
object: shim,
string: shim,
symbol: shim,
any: shim,
arrayOf: getShim,
element: shim,
elementType: shim,
instanceOf: getShim,
node: shim,
objectOf: getShim,
oneOf: getShim,
oneOfType: getShim,
shape: getShim,
exact: getShim,
checkPropTypes: emptyFunctionWithReset,
resetWarningCache: emptyFunction
};
return ReactPropTypes.PropTypes = ReactPropTypes, ReactPropTypes;
};
}
});
// ../../node_modules/prop-types/index.js
var require_prop_types = __commonJS({
"../../node_modules/prop-types/index.js"(exports, module) {
module.exports = require_factoryWithThrowingShims()();
var ReactIs, throwOnDirectAccess;
}
});
// ../../node_modules/react-fast-compare/index.js
var require_react_fast_compare = __commonJS({
"../../node_modules/react-fast-compare/index.js"(exports, module) {
var hasElementType = typeof Element < "u", hasMap = typeof Map == "function", hasSet = typeof Set == "function", hasArrayBuffer = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
function equal4(a2, b2) {
if (a2 === b2) return !0;
if (a2 && b2 && typeof a2 == "object" && typeof b2 == "object") {
if (a2.constructor !== b2.constructor) return !1;
var length, i2, keys;
if (Array.isArray(a2)) {
if (length = a2.length, length != b2.length) return !1;
for (i2 = length; i2-- !== 0; )
if (!equal4(a2[i2], b2[i2])) return !1;
return !0;
}
var it;
if (hasMap && a2 instanceof Map && b2 instanceof Map) {
if (a2.size !== b2.size) return !1;
for (it = a2.entries(); !(i2 = it.next()).done; )
if (!b2.has(i2.value[0])) return !1;
for (it = a2.entries(); !(i2 = it.next()).done; )
if (!equal4(i2.value[1], b2.get(i2.value[0]))) return !1;
return !0;
}
if (hasSet && a2 instanceof Set && b2 instanceof Set) {
if (a2.size !== b2.size) return !1;
for (it = a2.entries(); !(i2 = it.next()).done; )
if (!b2.has(i2.value[0])) return !1;
return !0;
}
if (hasArrayBuffer && ArrayBuffer.isView(a2) && ArrayBuffer.isView(b2)) {
if (length = a2.length, length != b2.length) return !1;
for (i2 = length; i2-- !== 0; )
if (a2[i2] !== b2[i2]) return !1;
return !0;
}
if (a2.constructor === RegExp) return a2.source === b2.source && a2.flags === b2.flags;
if (a2.valueOf !== Object.prototype.valueOf && typeof a2.valueOf == "function" && typeof b2.valueOf == "function") return a2.valueOf() === b2.valueOf();
if (a2.toString !== Object.prototype.toString && typeof a2.toString == "function" && typeof b2.toString == "function") return a2.toString() === b2.toString();
if (keys = Object.keys(a2), length = keys.length, length !== Object.keys(b2).length) return !1;
for (i2 = length; i2-- !== 0; )
if (!Object.prototype.hasOwnProperty.call(b2, keys[i2])) return !1;
if (hasElementType && a2 instanceof Element) return !1;
for (i2 = length; i2-- !== 0; )
if (!((keys[i2] === "_owner" || keys[i2] === "__v" || keys[i2] === "__o") && a2.$$typeof) && !equal4(a2[keys[i2]], b2[keys[i2]]))
return !1;
return !0;
}
return a2 !== a2 && b2 !== b2;
}
module.exports = function(a2, b2) {
try {
return equal4(a2, b2);
} catch (error) {
if ((error.message || "").match(/stack|recursion/i))
return console.warn("react-fast-compare cannot handle circular refs"), !1;
throw error;
}
};
}
});
// ../../node_modules/invariant/browser.js
var require_browser = __commonJS({
"../../node_modules/invariant/browser.js"(exports, module) {
"use strict";
var invariant = function(condition, format, a2, b2, c2, d2, e2, f2) {
if (!condition) {
var error;
if (format === void 0)
error = new Error(
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
);
else {
var args = [a2, b2, c2, d2, e2, f2], argIndex = 0;
error = new Error(
format.replace(/%s/g, function() {
return args[argIndex++];
})
), error.name = "Invariant Violation";
}
throw error.framesToPop = 1, error;
}
};
module.exports = invariant;
}
});
// ../../node_modules/shallowequal/index.js
var require_shallowequal = __commonJS({
"../../node_modules/shallowequal/index.js"(exports, module) {
module.exports = function(objA, objB, compare, compareContext) {
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
if (ret !== void 0)
return !!ret;
if (objA === objB)
return !0;
if (typeof objA != "object" || !objA || typeof objB != "object" || !objB)
return !1;
var keysA = Object.keys(objA), keysB = Object.keys(objB);
if (keysA.length !== keysB.length)
return !1;
for (var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB), idx = 0; idx < keysA.length; idx++) {
var key = keysA[idx];
if (!bHasOwnProperty(key))
return !1;
var valueA = objA[key], valueB = objB[key];
if (ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0, ret === !1 || ret === void 0 && valueA !== valueB)
return !1;
}
return !0;
};
}
});
// ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
var require_use_sync_external_store_shim_production = __commonJS({
"../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
"use strict";
var React = (init_react(), __toCommonJS(react_exports));
function is4(x2, y2) {
return x2 === y2 && (x2 !== 0 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
}
var objectIs = typeof Object.is == "function" ? Object.is : is4, useState2 = React.useState, useEffect2 = React.useEffect, useLayoutEffect2 = React.useLayoutEffect, useDebugValue2 = React.useDebugValue;
function useSyncExternalStore$2(subscribe, getSnapshot) {
var value = getSnapshot(), _useState = useState2({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
return useLayoutEffect2(
function() {
inst.value = value, inst.getSnapshot = getSnapshot, checkIfSnapshotChanged(inst) && forceUpdate({ inst });
},
[subscribe, value, getSnapshot]
), useEffect2(
function() {
return checkIfSnapshotChanged(inst) && forceUpdate({ inst }), subscribe(function() {
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
});
},
[subscribe]
), useDebugValue2(value), value;
}
function checkIfSnapshotChanged(inst) {
var latestGetSnapshot = inst.getSnapshot;
inst = inst.value;
try {
var nextValue = latestGetSnapshot();
return !objectIs(inst, nextValue);
} catch {
return !0;
}
}
function useSyncExternalStore$1(subscribe, getSnapshot) {
return getSnapshot();
}
var shim = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? useSyncExternalStore$1 : useSyncExternalStore$2;
exports.useSyncExternalStore = React.useSyncExternalStore !== void 0 ? React.useSyncExternalStore : shim;
}
});
// ../../node_modules/use-sync-external-store/shim/index.js
var require_shim = __commonJS({
"../../node_modules/use-sync-external-store/shim/index.js"(exports, module) {
"use strict";
module.exports = require_use_sync_external_store_shim_production();
}
});
// ../../node_modules/memoizerific/memoizerific.js
var require_memoizerific = __commonJS({
"../../node_modules/memoizerific/memoizerific.js"(exports, module) {
(function(f2) {
if (typeof exports == "object" && typeof module < "u")
module.exports = f2();
else if (typeof define == "function" && define.amd)
define([], f2);
else {
var g2;
typeof window < "u" ? g2 = window : typeof global < "u" ? g2 = global : typeof self < "u" ? g2 = self : g2 = this, g2.memoizerific = f2();
}
})(function() {
var define2, module2, exports2;
return (function e2(t2, n3, r3) {
function s2(o4, u2) {
if (!n3[o4]) {
if (!t2[o4]) {
var a2 = typeof __require == "function" && __require;
if (!u2 && a2) return a2(o4, !0);
if (i2) return i2(o4, !0);
var f2 = new Error("Cannot find module '" + o4 + "'");
throw f2.code = "MODULE_NOT_FOUND", f2;
}
var l3 = n3[o4] = { exports: {} };
t2[o4][0].call(l3.exports, function(e3) {
var n4 = t2[o4][1][e3];
return s2(n4 || e3);
}, l3, l3.exports, e2, t2, n3, r3);
}
return n3[o4].exports;
}
for (var i2 = typeof __require == "function" && __require, o3 = 0; o3 < r3.length; o3++) s2(r3[o3]);
return s2;
})({ 1: [function(_dereq_, module3, exports3) {
module3.exports = function(forceSimilar) {
if (typeof Map != "function" || forceSimilar) {
var Similar = _dereq_("./similar");
return new Similar();
} else
return /* @__PURE__ */ new Map();
};
}, { "./similar": 2 }], 2: [function(_dereq_, module3, exports3) {
function Similar() {
return this.list = [], this.lastItem = void 0, this.size = 0, this;
}
Similar.prototype.get = function(key) {
var index;
if (this.lastItem && this.isEqual(this.lastItem.key, key))
return this.lastItem.val;
if (index = this.indexOf(key), index >= 0)
return this.lastItem = this.list[index], this.list[index].val;
}, Similar.prototype.set = function(key, val) {
var index;
return this.lastItem && this.isEqual(this.lastItem.key, key) ? (this.lastItem.val = val, this) : (index = this.indexOf(key), index >= 0 ? (this.lastItem = this.list[index], this.list[index].val = val, this) : (this.lastItem = { key, val }, this.list.push(this.lastItem), this.size++, this));
}, Similar.prototype.delete = function(key) {
var index;
if (this.lastItem && this.isEqual(this.lastItem.key, key) && (this.lastItem = void 0), index = this.indexOf(key), index >= 0)
return this.size--, this.list.splice(index, 1)[0];
}, Similar.prototype.has = function(key) {
var index;
return this.lastItem && this.isEqual(this.lastItem.key, key) ? !0 : (index = this.indexOf(key), index >= 0 ? (this.lastItem = this.list[index], !0) : !1);
}, Similar.prototype.forEach = function(callback, thisArg) {
var i2;
for (i2 = 0; i2 < this.size; i2++)
callback.call(thisArg || this, this.list[i2].val, this.list[i2].key, this);
}, Similar.prototype.indexOf = function(key) {
var i2;
for (i2 = 0; i2 < this.size; i2++)
if (this.isEqual(this.list[i2].key, key))
return i2;
return -1;
}, Similar.prototype.isEqual = function(val1, val2) {
return val1 === val2 || val1 !== val1 && val2 !== val2;
}, module3.exports = Similar;
}, {}], 3: [function(_dereq_, module3, exports3) {
var MapOrSimilar = _dereq_("map-or-similar");
module3.exports = function(limit) {
var cache = new MapOrSimilar(!1), lru = [];
return function(fn) {
var memoizerific3 = function() {
var currentCache = cache, newMap, fnResult, argsLengthMinusOne = arguments.length - 1, lruPath = Array(argsLengthMinusOne + 1), isMemoized = !0, i2;
if ((memoizerific3.numArgs || memoizerific3.numArgs === 0) && memoizerific3.numArgs !== argsLengthMinusOne + 1)
throw new Error("Memoizerific functions should always be called with the same number of arguments");
for (i2 = 0; i2 < argsLengthMinusOne; i2++) {
if (lruPath[i2] = {
cacheItem: currentCache,
arg: arguments[i2]
}, currentCache.has(arguments[i2])) {
currentCache = currentCache.get(arguments[i2]);
continue;
}
isMemoized = !1, newMap = new MapOrSimilar(!1), currentCache.set(arguments[i2], newMap), currentCache = newMap;
}
return isMemoized && (currentCache.has(arguments[argsLengthMinusOne]) ? fnResult = currentCache.get(arguments[argsLengthMinusOne]) : isMemoized = !1), isMemoized || (fnResult = fn.apply(null, arguments), currentCache.set(arguments[argsLengthMinusOne], fnResult)), limit > 0 && (lruPath[argsLengthMinusOne] = {
cacheItem: currentCache,
arg: arguments[argsLengthMinusOne]
}, isMemoized ? moveToMostRecentLru(lru, lruPath) : lru.push(lruPath), lru.length > limit && removeCachedResult(lru.shift())), memoizerific3.wasMemoized = isMemoized, memoizerific3.numArgs = argsLengthMinusOne + 1, fnResult;
};
return memoizerific3.limit = limit, memoizerific3.wasMemoized = !1, memoizerific3.cache = cache, memoizerific3.lru = lru, memoizerific3;
};
};
function moveToMostRecentLru(lru, lruPath) {
var lruLen = lru.length, lruPathLen = lruPath.length, isMatch, i2, ii;
for (i2 = 0; i2 < lruLen; i2++) {
for (isMatch = !0, ii = 0; ii < lruPathLen; ii++)
if (!isEqual(lru[i2][ii].arg, lruPath[ii].arg)) {
isMatch = !1;
break;
}
if (isMatch)
break;
}
lru.push(lru.splice(i2, 1)[0]);
}
function removeCachedResult(removedLru) {
var removedLruLen = removedLru.length, currentLru = removedLru[removedLruLen - 1], tmp, i2;
for (currentLru.cacheItem.delete(currentLru.arg), i2 = removedLruLen - 2; i2 >= 0 && (currentLru = removedLru[i2], tmp = currentLru.cacheItem.get(currentLru.arg), !tmp || !tmp.size); i2--)
currentLru.cacheItem.delete(currentLru.arg);
}
function isEqual(val1, val2) {
return val1 === val2 || val1 !== val1 && val2 !== val2;
}
}, { "map-or-similar": 1 }] }, {}, [3])(3);
});
}
});
// ../../node_modules/toggle-selection/index.js
var require_toggle_selection = __commonJS({
"../../node_modules/toggle-selection/index.js"(exports, module) {
module.exports = function() {
var selection = document.getSelection();
if (!selection.rangeCount)
return function() {
};
for (var active = document.activeElement, ranges = [], i2 = 0; i2 < selection.rangeCount; i2++)
ranges.push(selection.getRangeAt(i2));
switch (active.tagName.toUpperCase()) {
// .toUpperCase handles XHTML
case "INPUT":
case "TEXTAREA":
active.blur();
break;
default:
active = null;
break;
}
return selection.removeAllRanges(), function() {
selection.type === "Caret" && selection.removeAllRanges(), selection.rangeCount || ranges.forEach(function(range) {
selection.addRange(range);
}), active && active.focus();
};
};
}
});
// ../../node_modules/copy-to-clipboard/index.js
var require_copy_to_clipboard = __commonJS({
"../../node_modules/copy-to-clipboard/index.js"(exports, module) {
"use strict";
var deselectCurrent = require_toggle_selection(), clipboardToIE11Formatting = {
"text/plain": "Text",
"text/html": "Url",
default: "Text"
}, defaultMessage = "Copy to clipboard: #{key}, Enter";
function format(message) {
var copyKey = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C";
return message.replace(/#{\s*key\s*}/g, copyKey);
}
function copy3(text, options2) {
var debug, message, reselectPrevious, range, selection, mark, success = !1;
options2 || (options2 = {}), debug = options2.debug || !1;
try {
reselectPrevious = deselectCurrent(), range = document.createRange(), selection = document.getSelection(), mark = document.createElement("span"), mark.textContent = text, mark.ariaHidden = "true", mark.style.all = "unset", mark.style.position = "fixed", mark.style.top = 0, mark.style.clip = "rect(0, 0, 0, 0)", mark.style.whiteSpace = "pre", mark.style.webkitUserSelect = "text", mark.style.MozUserSelect = "text", mark.style.msUserSelect = "text", mark.style.userSelect = "text", mark.addEventListener("copy", function(e2) {
if (e2.stopPropagation(), options2.format)
if (e2.preventDefault(), typeof e2.clipboardData > "u") {
debug && console.warn("unable to use e.clipboardData"), debug && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
var format2 = clipboardToIE11Formatting[options2.format] || clipboardToIE11Formatting.default;
window.clipboardData.setData(format2, text);
} else
e2.clipboardData.clearData(), e2.clipboardData.setData(options2.format, text);
options2.onCopy && (e2.preventDefault(), options2.onCopy(e2.clipboardData));
}), document.body.appendChild(mark), range.selectNodeContents(mark), selection.addRange(range);
var successful = document.execCommand("copy");
if (!successful)
throw new Error("copy command was unsuccessful");
success = !0;
} catch (err) {
debug && console.error("unable to copy using execCommand: ", err), debug && console.warn("trying IE specific stuff");
try {
window.clipboardData.setData(options2.format || "text", text), options2.onCopy && options2.onCopy(window.clipboardData), success = !0;
} catch (err2) {
debug && console.error("unable to copy using clipboardData: ", err2), debug && console.error("falling back to prompt"), message = format("message" in options2 ? options2.message : defaultMessage), window.prompt(message, text);
}
} finally {
selection && (typeof selection.removeRange == "function" ? selection.removeRange(range) : selection.removeAllRanges()), mark && document.body.removeChild(mark), reselectPrevious();
}
return success;
}
module.exports = copy3;
}
});
// ../../node_modules/scroll/index.js
var require_scroll = __commonJS({
"../../node_modules/scroll/index.js"(exports, module) {
var E_NOSCROLL = new Error("Element already at target scroll position"), E_CANCELLED = new Error("Scroll cancelled"), min = Math.min, ms = Date.now;
module.exports = {
left: make("scrollLeft"),
top: make("scrollTop")
};
function make(prop) {
return function(el, to, opts, cb) {
opts = opts || {}, typeof opts == "function" && (cb = opts, opts = {}), typeof cb != "function" && (cb = noop5);
var start = ms(), from = el[prop], ease = opts.ease || inOutSine, duration = isNaN(opts.duration) ? 350 : +opts.duration, cancelled = !1;
return from === to ? cb(E_NOSCROLL, el[prop]) : requestAnimationFrame(animate), cancel;
function cancel() {
cancelled = !0;
}
function animate(timestamp) {
if (cancelled) return cb(E_CANCELLED, el[prop]);
var now = ms(), time = min(1, (now - start) / duration), eased = ease(time);
el[prop] = eased * (to - from) + from, time < 1 ? requestAnimationFrame(animate) : requestAnimationFrame(function() {
cb(null, el[prop]);
});
}
};
}
function inOutSine(n3) {
return 0.5 * (1 - Math.cos(Math.PI * n3));
}
function noop5() {
}
}
});
// ../../node_modules/scrollparent/scrollparent.js
var require_scrollparent = __commonJS({
"../../node_modules/scrollparent/scrollparent.js"(exports, module) {
(function(root2, factory) {
typeof define == "function" && define.amd ? define([], factory) : typeof module == "object" && module.exports ? module.exports = factory() : root2.Scrollparent = factory();
})(exports, function() {
function isScrolling(node) {
var overflow = getComputedStyle(node, null).getPropertyValue("overflow");
return overflow.indexOf("scroll") > -1 || overflow.indexOf("auto") > -1;
}
function scrollParent2(node) {
if (node instanceof HTMLElement || node instanceof SVGElement) {
for (var current = node.parentNode; current.parentNode; ) {
if (isScrolling(current))
return current;
current = current.parentNode;
}
return document.scrollingElement || document.documentElement;
}
}
return scrollParent2;
});
}
});
// ../../node_modules/react-innertext/index.js
var require_react_innertext = __commonJS({
"../../node_modules/react-innertext/index.js"(exports, module) {
"use strict";
var hasProps = function(jsx2) {
return Object.prototype.hasOwnProperty.call(jsx2, "props");
}, reduceJsxToString = function(previous, current) {
return previous + innerText2(current);
}, innerText2 = function(jsx2) {
return jsx2 === null || typeof jsx2 == "boolean" || typeof jsx2 > "u" ? "" : typeof jsx2 == "number" ? jsx2.toString() : typeof jsx2 == "string" ? jsx2 : Array.isArray(jsx2) ? jsx2.reduce(reduceJsxToString, "") : hasProps(jsx2) && Object.prototype.hasOwnProperty.call(jsx2.props, "children") ? innerText2(jsx2.props.children) : "";
};
innerText2.default = innerText2;
module.exports = innerText2;
}
});
// ../../node_modules/deepmerge/dist/cjs.js
var require_cjs = __commonJS({
"../../node_modules/deepmerge/dist/cjs.js"(exports, module) {
"use strict";
var isMergeableObject = function(value) {
return isNonNullObject(value) && !isSpecial(value);
};
function isNonNullObject(value) {
return !!value && typeof value == "object";
}
function isSpecial(value) {
var stringValue = Object.prototype.toString.call(value);
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
}
var canUseSymbol = typeof Symbol == "function" && Symbol.for, REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
function isReactElement(value) {
return value.$$typeof === REACT_ELEMENT_TYPE;
}
function emptyTarget(val) {
return Array.isArray(val) ? [] : {};
}
function cloneUnlessOtherwiseSpecified(value, options2) {
return options2.clone !== !1 && options2.isMergeableObject(value) ? deepmerge4(emptyTarget(value), value, options2) : value;
}
function defaultArrayMerge(target, source, options2) {
return target.concat(source).map(function(element) {
return cloneUnlessOtherwiseSpecified(element, options2);
});
}
function getMergeFunction(key, options2) {
if (!options2.customMerge)
return deepmerge4;
var customMerge = options2.customMerge(key);
return typeof customMerge == "function" ? customMerge : deepmerge4;
}
function getEnumerableOwnPropertySymbols(target) {
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
return Object.propertyIsEnumerable.call(target, symbol);
}) : [];
}
function getKeys(target) {
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
}
function propertyIsOnObject(object, property) {
try {
return property in object;
} catch {
return !1;
}
}
function propertyIsUnsafe(target, key) {
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
}
function mergeObject(target, source, options2) {
var destination = {};
return options2.isMergeableObject(target) && getKeys(target).forEach(function(key) {
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options2);
}), getKeys(source).forEach(function(key) {
propertyIsUnsafe(target, key) || (propertyIsOnObject(target, key) && options2.isMergeableObject(source[key]) ? destination[key] = getMergeFunction(key, options2)(target[key], source[key], options2) : destination[key] = cloneUnlessOtherwiseSpecified(source[key], options2));
}), destination;
}
function deepmerge4(target, source, options2) {
options2 = options2 || {}, options2.arrayMerge = options2.arrayMerge || defaultArrayMerge, options2.isMergeableObject = options2.isMergeableObject || isMergeableObject, options2.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
var sourceIsArray = Array.isArray(source), targetIsArray = Array.isArray(target), sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
return sourceAndTargetTypesMatch ? sourceIsArray ? options2.arrayMerge(target, source, options2) : mergeObject(target, source, options2) : cloneUnlessOtherwiseSpecified(source, options2);
}
deepmerge4.all = function(array, options2) {
if (!Array.isArray(array))
throw new Error("first argument should be an array");
return array.reduce(function(prev, next) {
return deepmerge4(prev, next, options2);
}, {});
};
var deepmerge_1 = deepmerge4;
module.exports = deepmerge_1;
}
});
// ../../node_modules/downshift/node_modules/react-is/cjs/react-is.production.min.js
var require_react_is_production_min = __commonJS({
"../../node_modules/downshift/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
"use strict";
var b2 = Symbol.for("react.element"), c2 = Symbol.for("react.portal"), d2 = Symbol.for("react.fragment"), e2 = Symbol.for("react.strict_mode"), f2 = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h2 = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l3 = Symbol.for("react.forward_ref"), m2 = Symbol.for("react.suspense"), n3 = Symbol.for("react.suspense_list"), p2 = Symbol.for("react.memo"), q2 = Symbol.for("react.lazy"), t2 = Symbol.for("react.offscreen"), u2;
u2 = Symbol.for("react.module.reference");
function v2(a2) {
if (typeof a2 == "object" && a2 !== null) {
var r3 = a2.$$typeof;
switch (r3) {
case b2:
switch (a2 = a2.type, a2) {
case d2:
case f2:
case e2:
case m2:
case n3:
return a2;
default:
switch (a2 = a2 && a2.$$typeof, a2) {
case k2:
case h2:
case l3:
case q2:
case p2:
case g2:
return a2;
default:
return r3;
}
}
case c2:
return r3;
}
}
}
exports.ContextConsumer = h2;
exports.ContextProvider = g2;
exports.Element = b2;
exports.ForwardRef = l3;
exports.Fragment = d2;
exports.Lazy = q2;
exports.Memo = p2;
exports.Portal = c2;
exports.Profiler = f2;
exports.StrictMode = e2;
exports.Suspense = m2;
exports.SuspenseList = n3;
exports.isAsyncMode = function() {
return !1;
};
exports.isConcurrentMode = function() {
return !1;
};
exports.isContextConsumer = function(a2) {
return v2(a2) === h2;
};
exports.isContextProvider = function(a2) {
return v2(a2) === g2;
};
exports.isElement = function(a2) {
return typeof a2 == "object" && a2 !== null && a2.$$typeof === b2;
};
exports.isForwardRef = function(a2) {
return v2(a2) === l3;
};
exports.isFragment = function(a2) {
return v2(a2) === d2;
};
exports.isLazy = function(a2) {
return v2(a2) === q2;
};
exports.isMemo = function(a2) {
return v2(a2) === p2;
};
exports.isPortal = function(a2) {
return v2(a2) === c2;
};
exports.isProfiler = function(a2) {
return v2(a2) === f2;
};
exports.isStrictMode = function(a2) {
return v2(a2) === e2;
};
exports.isSuspense = function(a2) {
return v2(a2) === m2;
};
exports.isSuspenseList = function(a2) {
return v2(a2) === n3;
};
exports.isValidElementType = function(a2) {
return typeof a2 == "string" || typeof a2 == "function" || a2 === d2 || a2 === f2 || a2 === e2 || a2 === m2 || a2 === n3 || a2 === t2 || typeof a2 == "object" && a2 !== null && (a2.$$typeof === q2 || a2.$$typeof === p2 || a2.$$typeof === g2 || a2.$$typeof === h2 || a2.$$typeof === l3 || a2.$$typeof === u2 || a2.getModuleId !== void 0);
};
exports.typeOf = v2;
}
});
// ../../node_modules/downshift/node_modules/react-is/index.js
var require_react_is = __commonJS({
"../../node_modules/downshift/node_modules/react-is/index.js"(exports, module) {
"use strict";
module.exports = require_react_is_production_min();
}
});
// ../../node_modules/fuse.js/dist/fuse.js
var require_fuse = __commonJS({
"../../node_modules/fuse.js/dist/fuse.js"(exports, module) {
(function(e2, t2) {
typeof exports == "object" && typeof module == "object" ? module.exports = t2() : typeof define == "function" && define.amd ? define("Fuse", [], t2) : typeof exports == "object" ? exports.Fuse = t2() : e2.Fuse = t2();
})(exports, function() {
return (function(e2) {
var t2 = {};
function r3(n3) {
if (t2[n3]) return t2[n3].exports;
var o3 = t2[n3] = { i: n3, l: !1, exports: {} };
return e2[n3].call(o3.exports, o3, o3.exports, r3), o3.l = !0, o3.exports;
}
return r3.m = e2, r3.c = t2, r3.d = function(e3, t3, n3) {
r3.o(e3, t3) || Object.defineProperty(e3, t3, { enumerable: !0, get: n3 });
}, r3.r = function(e3) {
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(e3, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e3, "__esModule", { value: !0 });
}, r3.t = function(e3, t3) {
if (1 & t3 && (e3 = r3(e3)), 8 & t3 || 4 & t3 && typeof e3 == "object" && e3 && e3.__esModule) return e3;
var n3 = /* @__PURE__ */ Object.create(null);
if (r3.r(n3), Object.defineProperty(n3, "default", { enumerable: !0, value: e3 }), 2 & t3 && typeof e3 != "string") for (var o3 in e3) r3.d(n3, o3, function(t4) {
return e3[t4];
}.bind(null, o3));
return n3;
}, r3.n = function(e3) {
var t3 = e3 && e3.__esModule ? function() {
return e3.default;
} : function() {
return e3;
};
return r3.d(t3, "a", t3), t3;
}, r3.o = function(e3, t3) {
return Object.prototype.hasOwnProperty.call(e3, t3);
}, r3.p = "", r3(r3.s = 0);
})([function(e2, t2, r3) {
function n3(e3) {
return (n3 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e4) {
return typeof e4;
} : function(e4) {
return e4 && typeof Symbol == "function" && e4.constructor === Symbol && e4 !== Symbol.prototype ? "symbol" : typeof e4;
})(e3);
}
function o3(e3, t3) {
for (var r4 = 0; r4 < t3.length; r4++) {
var n4 = t3[r4];
n4.enumerable = n4.enumerable || !1, n4.configurable = !0, "value" in n4 && (n4.writable = !0), Object.defineProperty(e3, n4.key, n4);
}
}
var i2 = r3(1), a2 = r3(7), s2 = a2.get, c2 = (a2.deepValue, a2.isArray), h2 = (function() {
function e3(t4, r5) {
var n4 = r5.location, o4 = n4 === void 0 ? 0 : n4, i3 = r5.distance, a4 = i3 === void 0 ? 100 : i3, c3 = r5.threshold, h3 = c3 === void 0 ? 0.6 : c3, l3 = r5.maxPatternLength, u2 = l3 === void 0 ? 32 : l3, f2 = r5.caseSensitive, v2 = f2 !== void 0 && f2, p2 = r5.tokenSeparator, d2 = p2 === void 0 ? / +/g : p2, g2 = r5.findAllMatches, y2 = g2 !== void 0 && g2, m2 = r5.minMatchCharLength, k2 = m2 === void 0 ? 1 : m2, b2 = r5.id, S2 = b2 === void 0 ? null : b2, x2 = r5.keys, M2 = x2 === void 0 ? [] : x2, _2 = r5.shouldSort, w2 = _2 === void 0 || _2, L3 = r5.getFn, A3 = L3 === void 0 ? s2 : L3, O2 = r5.sortFn, C2 = O2 === void 0 ? function(e4, t5) {
return e4.score - t5.score;
} : O2, j2 = r5.tokenize, P3 = j2 !== void 0 && j2, I2 = r5.matchAllTokens, F2 = I2 !== void 0 && I2, T3 = r5.includeMatches, N2 = T3 !== void 0 && T3, z2 = r5.includeScore, E2 = z2 !== void 0 && z2, W2 = r5.verbose, K2 = W2 !== void 0 && W2;
(function(e4, t5) {
if (!(e4 instanceof t5)) throw new TypeError("Cannot call a class as a function");
})(this, e3), this.options = { location: o4, distance: a4, threshold: h3, maxPatternLength: u2, isCaseSensitive: v2, tokenSeparator: d2, findAllMatches: y2, minMatchCharLength: k2, id: S2, keys: M2, includeMatches: N2, includeScore: E2, shouldSort: w2, getFn: A3, sortFn: C2, verbose: K2, tokenize: P3, matchAllTokens: F2 }, this.setCollection(t4), this._processKeys(M2);
}
var t3, r4, a3;
return t3 = e3, (r4 = [{ key: "setCollection", value: function(e4) {
return this.list = e4, e4;
} }, { key: "_processKeys", value: function(e4) {
if (this._keyWeights = {}, this._keyNames = [], e4.length && typeof e4[0] == "string") for (var t4 = 0, r5 = e4.length; t4 < r5; t4 += 1) {
var n4 = e4[t4];
this._keyWeights[n4] = 1, this._keyNames.push(n4);
}
else {
for (var o4 = null, i3 = null, a4 = 0, s3 = 0, c3 = e4.length; s3 < c3; s3 += 1) {
var h3 = e4[s3];
if (!h3.hasOwnProperty("name")) throw new Error('Missing "name" property in key object');
var l3 = h3.name;
if (this._keyNames.push(l3), !h3.hasOwnProperty("weight")) throw new Error('Missing "weight" property in key object');
var u2 = h3.weight;
if (u2 < 0 || u2 > 1) throw new Error('"weight" property in key must bein the range of [0, 1)');
i3 = i3 == null ? u2 : Math.max(i3, u2), o4 = o4 == null ? u2 : Math.min(o4, u2), this._keyWeights[l3] = u2, a4 += u2;
}
if (a4 > 1) throw new Error("Total of weights cannot exceed 1");
}
} }, { key: "search", value: function(e4) {
var t4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { limit: !1 };
this._log(`---------
Search pattern: "`.concat(e4, '"'));
var r5 = this._prepareSearchers(e4), n4 = r5.tokenSearchers, o4 = r5.fullSearcher, i3 = this._search(n4, o4);
return this._computeScore(i3), this.options.shouldSort && this._sort(i3), t4.limit && typeof t4.limit == "number" && (i3 = i3.slice(0, t4.limit)), this._format(i3);
} }, { key: "_prepareSearchers", value: function() {
var e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t4 = [];
if (this.options.tokenize) for (var r5 = e4.split(this.options.tokenSeparator), n4 = 0, o4 = r5.length; n4 < o4; n4 += 1) t4.push(new i2(r5[n4], this.options));
return { tokenSearchers: t4, fullSearcher: new i2(e4, this.options) };
} }, { key: "_search", value: function() {
var e4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t4 = arguments.length > 1 ? arguments[1] : void 0, r5 = this.list, n4 = {}, o4 = [];
if (typeof r5[0] == "string") {
for (var i3 = 0, a4 = r5.length; i3 < a4; i3 += 1) this._analyze({ key: "", value: r5[i3], record: i3, index: i3 }, { resultMap: n4, results: o4, tokenSearchers: e4, fullSearcher: t4 });
return o4;
}
for (var s3 = 0, c3 = r5.length; s3 < c3; s3 += 1) for (var h3 = r5[s3], l3 = 0, u2 = this._keyNames.length; l3 < u2; l3 += 1) {
var f2 = this._keyNames[l3];
this._analyze({ key: f2, value: this.options.getFn(h3, f2), record: h3, index: s3 }, { resultMap: n4, results: o4, tokenSearchers: e4, fullSearcher: t4 });
}
return o4;
} }, { key: "_analyze", value: function(e4, t4) {
var r5 = this, n4 = e4.key, o4 = e4.arrayIndex, i3 = o4 === void 0 ? -1 : o4, a4 = e4.value, s3 = e4.record, h3 = e4.index, l3 = t4.tokenSearchers, u2 = l3 === void 0 ? [] : l3, f2 = t4.fullSearcher, v2 = t4.resultMap, p2 = v2 === void 0 ? {} : v2, d2 = t4.results, g2 = d2 === void 0 ? [] : d2;
(function e5(t5, o5, i4, a5) {
if (o5 != null) {
if (typeof o5 == "string") {
var s4 = !1, h4 = -1, l4 = 0;
r5._log(`
Key: `.concat(n4 === "" ? "--" : n4));
var v3 = f2.search(o5);
if (r5._log('Full text: "'.concat(o5, '", score: ').concat(v3.score)), r5.options.tokenize) {
for (var d3 = o5.split(r5.options.tokenSeparator), y2 = d3.length, m2 = [], k2 = 0, b2 = u2.length; k2 < b2; k2 += 1) {
var S2 = u2[k2];
r5._log(`
Pattern: "`.concat(S2.pattern, '"'));
for (var x2 = !1, M2 = 0; M2 < y2; M2 += 1) {
var _2 = d3[M2], w2 = S2.search(_2), L3 = {};
w2.isMatch ? (L3[_2] = w2.score, s4 = !0, x2 = !0, m2.push(w2.score)) : (L3[_2] = 1, r5.options.matchAllTokens || m2.push(1)), r5._log('Token: "'.concat(_2, '", score: ').concat(L3[_2]));
}
x2 && (l4 += 1);
}
h4 = m2[0];
for (var A3 = m2.length, O2 = 1; O2 < A3; O2 += 1) h4 += m2[O2];
h4 /= A3, r5._log("Token score average:", h4);
}
var C2 = v3.score;
h4 > -1 && (C2 = (C2 + h4) / 2), r5._log("Score average:", C2);
var j2 = !r5.options.tokenize || !r5.options.matchAllTokens || l4 >= u2.length;
if (r5._log(`
Check Matches: `.concat(j2)), (s4 || v3.isMatch) && j2) {
var P3 = { key: n4, arrayIndex: t5, value: o5, score: C2 };
r5.options.includeMatches && (P3.matchedIndices = v3.matchedIndices);
var I2 = p2[a5];
I2 ? I2.output.push(P3) : (p2[a5] = { item: i4, output: [P3] }, g2.push(p2[a5]));
}
} else if (c2(o5)) for (var F2 = 0, T3 = o5.length; F2 < T3; F2 += 1) e5(F2, o5[F2], i4, a5);
}
})(i3, a4, s3, h3);
} }, { key: "_computeScore", value: function(e4) {
this._log(`
Computing score:
`);
for (var t4 = this._keyWeights, r5 = !!Object.keys(t4).length, n4 = 0, o4 = e4.length; n4 < o4; n4 += 1) {
for (var i3 = e4[n4], a4 = i3.output, s3 = a4.length, c3 = 1, h3 = 0; h3 < s3; h3 += 1) {
var l3 = a4[h3], u2 = l3.key, f2 = r5 ? t4[u2] : 1, v2 = l3.score === 0 && t4 && t4[u2] > 0 ? Number.EPSILON : l3.score;
c3 *= Math.pow(v2, f2);
}
i3.score = c3, this._log(i3);
}
} }, { key: "_sort", value: function(e4) {
this._log(`
Sorting....`), e4.sort(this.options.sortFn);
} }, { key: "_format", value: function(e4) {
var t4 = [];
if (this.options.verbose) {
var r5 = [];
this._log(`
Output:
`, JSON.stringify(e4, function(e5, t5) {
if (n3(t5) === "object" && t5 !== null) {
if (r5.indexOf(t5) !== -1) return;
r5.push(t5);
}
return t5;
}, 2)), r5 = null;
}
var o4 = [];
this.options.includeMatches && o4.push(function(e5, t5) {
var r6 = e5.output;
t5.matches = [];
for (var n4 = 0, o5 = r6.length; n4 < o5; n4 += 1) {
var i4 = r6[n4];
if (i4.matchedIndices.length !== 0) {
var a5 = { indices: i4.matchedIndices, value: i4.value };
i4.key && (a5.key = i4.key), i4.hasOwnProperty("arrayIndex") && i4.arrayIndex > -1 && (a5.arrayIndex = i4.arrayIndex), t5.matches.push(a5);
}
}
}), this.options.includeScore && o4.push(function(e5, t5) {
t5.score = e5.score;
});
for (var i3 = 0, a4 = e4.length; i3 < a4; i3 += 1) {
var s3 = e4[i3];
if (this.options.id && (s3.item = this.options.getFn(s3.item, this.options.id)[0]), o4.length) {
for (var c3 = { item: s3.item }, h3 = 0, l3 = o4.length; h3 < l3; h3 += 1) o4[h3](s3, c3);
t4.push(c3);
} else t4.push(s3.item);
}
return t4;
} }, { key: "_log", value: function() {
var e4;
this.options.verbose && (e4 = console).log.apply(e4, arguments);
} }]) && o3(t3.prototype, r4), a3 && o3(t3, a3), e3;
})();
e2.exports = h2;
}, function(e2, t2, r3) {
function n3(e3, t3) {
for (var r4 = 0; r4 < t3.length; r4++) {
var n4 = t3[r4];
n4.enumerable = n4.enumerable || !1, n4.configurable = !0, "value" in n4 && (n4.writable = !0), Object.defineProperty(e3, n4.key, n4);
}
}
var o3 = r3(2), i2 = r3(3), a2 = r3(6), s2 = (function() {
function e3(t4, r5) {
var n4 = r5.location, o4 = n4 === void 0 ? 0 : n4, i3 = r5.distance, s4 = i3 === void 0 ? 100 : i3, c2 = r5.threshold, h2 = c2 === void 0 ? 0.6 : c2, l3 = r5.maxPatternLength, u2 = l3 === void 0 ? 32 : l3, f2 = r5.isCaseSensitive, v2 = f2 !== void 0 && f2, p2 = r5.tokenSeparator, d2 = p2 === void 0 ? / +/g : p2, g2 = r5.findAllMatches, y2 = g2 !== void 0 && g2, m2 = r5.minMatchCharLength, k2 = m2 === void 0 ? 1 : m2, b2 = r5.includeMatches, S2 = b2 !== void 0 && b2;
(function(e4, t5) {
if (!(e4 instanceof t5)) throw new TypeError("Cannot call a class as a function");
})(this, e3), this.options = { location: o4, distance: s4, threshold: h2, maxPatternLength: u2, isCaseSensitive: v2, tokenSeparator: d2, findAllMatches: y2, includeMatches: S2, minMatchCharLength: k2 }, this.pattern = v2 ? t4 : t4.toLowerCase(), this.pattern.length <= u2 && (this.patternAlphabet = a2(this.pattern));
}
var t3, r4, s3;
return t3 = e3, (r4 = [{ key: "search", value: function(e4) {
var t4 = this.options, r5 = t4.isCaseSensitive, n4 = t4.includeMatches;
if (r5 || (e4 = e4.toLowerCase()), this.pattern === e4) {
var a3 = { isMatch: !0, score: 0 };
return n4 && (a3.matchedIndices = [[0, e4.length - 1]]), a3;
}
var s4 = this.options, c2 = s4.maxPatternLength, h2 = s4.tokenSeparator;
if (this.pattern.length > c2) return o3(e4, this.pattern, h2);
var l3 = this.options, u2 = l3.location, f2 = l3.distance, v2 = l3.threshold, p2 = l3.findAllMatches, d2 = l3.minMatchCharLength;
return i2(e4, this.pattern, this.patternAlphabet, { location: u2, distance: f2, threshold: v2, findAllMatches: p2, minMa