storybook
Version:
Storybook: Develop, document, and test UI components in isolation
1,413 lines (1,392 loc) • 891 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 __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
));
// ../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/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/picoquery/lib/string-util.js
var require_string_util = __commonJS({
"../node_modules/picoquery/lib/string-util.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.encodeString = encodeString;
var hexTable = Array.from({ length: 256 }, (_2, i2) => "%" + ((i2 < 16 ? "0" : "") + i2.toString(16)).toUpperCase()), noEscape = new Int8Array([
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
1,
0
]);
function encodeString(str) {
let len = str.length;
if (len === 0)
return "";
let out = "", lastPos = 0, i2 = 0;
outer: for (; i2 < len; i2++) {
let c2 = str.charCodeAt(i2);
for (; c2 < 128; ) {
if (noEscape[c2] !== 1 && (lastPos < i2 && (out += str.slice(lastPos, i2)), lastPos = i2 + 1, out += hexTable[c2]), ++i2 === len)
break outer;
c2 = str.charCodeAt(i2);
}
if (lastPos < i2 && (out += str.slice(lastPos, i2)), c2 < 2048) {
lastPos = i2 + 1, out += hexTable[192 | c2 >> 6] + hexTable[128 | c2 & 63];
continue;
}
if (c2 < 55296 || c2 >= 57344) {
lastPos = i2 + 1, out += hexTable[224 | c2 >> 12] + hexTable[128 | c2 >> 6 & 63] + hexTable[128 | c2 & 63];
continue;
}
if (++i2, i2 >= len)
throw new Error("URI malformed");
let c22 = str.charCodeAt(i2) & 1023;
lastPos = i2 + 1, c2 = 65536 + ((c2 & 1023) << 10 | c22), out += hexTable[240 | c2 >> 18] + hexTable[128 | c2 >> 12 & 63] + hexTable[128 | c2 >> 6 & 63] + hexTable[128 | c2 & 63];
}
return lastPos === 0 ? str : lastPos < len ? out + str.slice(lastPos) : out;
}
}
});
// ../node_modules/picoquery/lib/shared.js
var require_shared = __commonJS({
"../node_modules/picoquery/lib/shared.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.defaultOptions = exports.defaultShouldSerializeObject = exports.defaultValueSerializer = void 0;
var string_util_js_1 = require_string_util(), defaultValueSerializer = (value) => {
switch (typeof value) {
case "string":
return (0, string_util_js_1.encodeString)(value);
case "bigint":
case "boolean":
return "" + value;
case "number":
if (Number.isFinite(value))
return value < 1e21 ? "" + value : (0, string_util_js_1.encodeString)("" + value);
break;
}
return value instanceof Date ? (0, string_util_js_1.encodeString)(value.toISOString()) : "";
};
exports.defaultValueSerializer = defaultValueSerializer;
var defaultShouldSerializeObject = (val) => val instanceof Date;
exports.defaultShouldSerializeObject = defaultShouldSerializeObject;
var identityFunc = (v2) => v2;
exports.defaultOptions = {
nesting: !0,
nestingSyntax: "dot",
arrayRepeat: !1,
arrayRepeatSyntax: "repeat",
delimiter: 38,
valueDeserializer: identityFunc,
valueSerializer: exports.defaultValueSerializer,
keyDeserializer: identityFunc,
shouldSerializeObject: exports.defaultShouldSerializeObject
};
}
});
// ../node_modules/picoquery/lib/object-util.js
var require_object_util = __commonJS({
"../node_modules/picoquery/lib/object-util.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.getDeepObject = getDeepObject;
exports.stringifyObject = stringifyObject;
var shared_js_1 = require_shared(), string_util_js_1 = require_string_util();
function isPrototypeKey(value) {
return value === "__proto__" || value === "constructor" || value === "prototype";
}
function getDeepObject(obj, key, nextKey, forceObject, forceArray) {
if (isPrototypeKey(key))
return obj;
let currObj = obj[key];
return typeof currObj == "object" && currObj !== null ? currObj : !forceObject && (forceArray || typeof nextKey == "number" || typeof nextKey == "string" && nextKey * 0 === 0 && nextKey.indexOf(".") === -1) ? obj[key] = [] : obj[key] = {};
}
var MAX_DEPTH = 20, strBracketPair = "[]", strBracketLeft = "[", strBracketRight = "]", strDot = ".";
function stringifyObject(obj, options2, depth = 0, parentKey, isProbableArray) {
let { nestingSyntax = shared_js_1.defaultOptions.nestingSyntax, arrayRepeat = shared_js_1.defaultOptions.arrayRepeat, arrayRepeatSyntax = shared_js_1.defaultOptions.arrayRepeatSyntax, nesting = shared_js_1.defaultOptions.nesting, delimiter = shared_js_1.defaultOptions.delimiter, valueSerializer = shared_js_1.defaultOptions.valueSerializer, shouldSerializeObject = shared_js_1.defaultOptions.shouldSerializeObject } = options2, strDelimiter = typeof delimiter == "number" ? String.fromCharCode(delimiter) : delimiter, useArrayRepeatKey = isProbableArray === !0 && arrayRepeat, shouldUseDot = nestingSyntax === "dot" || nestingSyntax === "js" && !isProbableArray;
if (depth > MAX_DEPTH)
return "";
let result = "", firstKey = !0, valueIsProbableArray = !1;
for (let key in obj) {
let value = obj[key];
if (value === void 0)
continue;
let path;
parentKey ? (path = parentKey, useArrayRepeatKey ? arrayRepeatSyntax === "bracket" && (path += strBracketPair) : shouldUseDot ? (path += strDot, path += key) : (path += strBracketLeft, path += key, path += strBracketRight)) : path = key, firstKey || (result += strDelimiter), typeof value == "object" && value !== null && !shouldSerializeObject(value) ? (valueIsProbableArray = value.pop !== void 0, (nesting || arrayRepeat && valueIsProbableArray) && (result += stringifyObject(value, options2, depth + 1, path, valueIsProbableArray))) : (result += (0, string_util_js_1.encodeString)(path), result += "=", result += valueSerializer(value, key)), firstKey && (firstKey = !1);
}
return result;
}
}
});
// ../node_modules/picoquery/lib/decode-uri-component.js
var require_decode_uri_component = __commonJS({
"../node_modules/picoquery/lib/decode-uri-component.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.decodeURIComponent = decodeURIComponent;
var UTF8_ACCEPT = 12, UTF8_REJECT = 0, UTF8_DATA = [
// The first part of the table maps bytes to character to a transition.
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
4,
4,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
6,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
7,
8,
7,
7,
10,
9,
9,
9,
11,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
4,
// The second part of the table maps a state to a new state when adding a
// transition.
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
12,
0,
0,
0,
0,
24,
36,
48,
60,
72,
84,
96,
0,
12,
12,
12,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
24,
0,
0,
0,
0,
0,
0,
0,
0,
0,
24,
24,
24,
0,
0,
0,
0,
0,
0,
0,
0,
0,
24,
24,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
48,
48,
48,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
48,
48,
0,
0,
0,
0,
0,
0,
0,
0,
0,
48,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
// The third part maps the current transition to a mask that needs to apply
// to the byte.
127,
63,
63,
63,
0,
31,
15,
15,
15,
7,
7,
7
];
function decodeURIComponent(uri) {
let percentPosition = uri.indexOf("%");
if (percentPosition === -1)
return uri;
let length = uri.length, decoded = "", last = 0, codepoint = 0, startOfOctets = percentPosition, state = UTF8_ACCEPT;
for (; percentPosition > -1 && percentPosition < length; ) {
let high = hexCodeToInt(uri[percentPosition + 1], 4), low = hexCodeToInt(uri[percentPosition + 2], 0), byte = high | low, type = UTF8_DATA[byte];
if (state = UTF8_DATA[256 + state + type], codepoint = codepoint << 6 | byte & UTF8_DATA[364 + type], state === UTF8_ACCEPT)
decoded += uri.slice(last, startOfOctets), decoded += codepoint <= 65535 ? String.fromCharCode(codepoint) : String.fromCharCode(55232 + (codepoint >> 10), 56320 + (codepoint & 1023)), codepoint = 0, last = percentPosition + 3, percentPosition = startOfOctets = uri.indexOf("%", last);
else {
if (state === UTF8_REJECT)
return null;
if (percentPosition += 3, percentPosition < length && uri.charCodeAt(percentPosition) === 37)
continue;
return null;
}
}
return decoded + uri.slice(last);
}
var HEX = {
0: 0,
1: 1,
2: 2,
3: 3,
4: 4,
5: 5,
6: 6,
7: 7,
8: 8,
9: 9,
a: 10,
A: 10,
b: 11,
B: 11,
c: 12,
C: 12,
d: 13,
D: 13,
e: 14,
E: 14,
f: 15,
F: 15
};
function hexCodeToInt(c2, shift2) {
let i2 = HEX[c2];
return i2 === void 0 ? 255 : i2 << shift2;
}
}
});
// ../node_modules/picoquery/lib/parse.js
var require_parse = __commonJS({
"../node_modules/picoquery/lib/parse.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.numberValueDeserializer = exports.numberKeyDeserializer = void 0;
exports.parse = parse;
var object_util_js_1 = require_object_util(), shared_js_1 = require_shared(), decode_uri_component_js_1 = require_decode_uri_component(), numberKeyDeserializer = (key) => {
let asNumber = Number(key);
return Number.isNaN(asNumber) ? key : asNumber;
};
exports.numberKeyDeserializer = numberKeyDeserializer;
var numberValueDeserializer = (value) => {
let asNumber = Number(value);
return Number.isNaN(asNumber) ? value : asNumber;
};
exports.numberValueDeserializer = numberValueDeserializer;
var regexPlus = /\+/g, Empty = function() {
};
Empty.prototype = /* @__PURE__ */ Object.create(null);
function computeKeySlice(input, startIndex, endIndex, keyHasPlus, shouldDecodeKey) {
let chunk = input.substring(startIndex, endIndex);
return keyHasPlus && (chunk = chunk.replace(regexPlus, " ")), shouldDecodeKey && (chunk = (0, decode_uri_component_js_1.decodeURIComponent)(chunk) || chunk), chunk;
}
function parse(input, options2) {
let { valueDeserializer = shared_js_1.defaultOptions.valueDeserializer, keyDeserializer = shared_js_1.defaultOptions.keyDeserializer, arrayRepeatSyntax = shared_js_1.defaultOptions.arrayRepeatSyntax, nesting = shared_js_1.defaultOptions.nesting, arrayRepeat = shared_js_1.defaultOptions.arrayRepeat, nestingSyntax = shared_js_1.defaultOptions.nestingSyntax, delimiter = shared_js_1.defaultOptions.delimiter } = options2 ?? {}, charDelimiter = typeof delimiter == "string" ? delimiter.charCodeAt(0) : delimiter, isJsNestingSyntax = nestingSyntax === "js", result = new Empty();
if (typeof input != "string")
return result;
let inputLength = input.length, value = "", startingIndex = -1, equalityIndex = -1, keySeparatorIndex = -1, currentObj = result, lastKey, currentKey = "", keyChunk = "", shouldDecodeKey = !1, shouldDecodeValue = !1, keyHasPlus = !1, valueHasPlus = !1, keyIsDot = !1, hasBothKeyValuePair = !1, c2 = 0, arrayRepeatBracketIndex = -1, prevIndex = -1, prevChar = -1;
for (let i2 = 0; i2 < inputLength + 1; i2++) {
if (c2 = i2 !== inputLength ? input.charCodeAt(i2) : charDelimiter, c2 === charDelimiter) {
if (hasBothKeyValuePair = equalityIndex > startingIndex, hasBothKeyValuePair || (equalityIndex = i2), keySeparatorIndex !== equalityIndex - 1 && (keyChunk = computeKeySlice(input, keySeparatorIndex + 1, arrayRepeatBracketIndex > -1 ? arrayRepeatBracketIndex : equalityIndex, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax && keyIsDot, void 0))), hasBothKeyValuePair || currentKey !== "") {
hasBothKeyValuePair && (value = input.slice(equalityIndex + 1, i2), valueHasPlus && (value = value.replace(regexPlus, " ")), shouldDecodeValue && (value = (0, decode_uri_component_js_1.decodeURIComponent)(value) || value));
let newValue = valueDeserializer(value, currentKey);
if (arrayRepeat) {
let currentValue = currentObj[currentKey];
currentValue === void 0 ? arrayRepeatBracketIndex > -1 ? currentObj[currentKey] = [newValue] : currentObj[currentKey] = newValue : currentValue.pop ? currentValue.push(newValue) : currentObj[currentKey] = [currentValue, newValue];
} else
currentObj[currentKey] = newValue;
}
value = "", startingIndex = i2, equalityIndex = i2, shouldDecodeKey = !1, shouldDecodeValue = !1, keyHasPlus = !1, valueHasPlus = !1, keyIsDot = !1, arrayRepeatBracketIndex = -1, keySeparatorIndex = i2, currentObj = result, lastKey = void 0, currentKey = "";
} else c2 === 93 ? (arrayRepeat && arrayRepeatSyntax === "bracket" && prevChar === 91 && (arrayRepeatBracketIndex = prevIndex), nesting && (nestingSyntax === "index" || isJsNestingSyntax) && equalityIndex <= startingIndex && (keySeparatorIndex !== prevIndex && (keyChunk = computeKeySlice(input, keySeparatorIndex + 1, i2, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, void 0, void 0)), lastKey = currentKey, keyHasPlus = !1, shouldDecodeKey = !1), keySeparatorIndex = i2, keyIsDot = !1)) : c2 === 46 ? nesting && (nestingSyntax === "dot" || isJsNestingSyntax) && equalityIndex <= startingIndex && (keySeparatorIndex !== prevIndex && (keyChunk = computeKeySlice(input, keySeparatorIndex + 1, i2, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax)), lastKey = currentKey, keyHasPlus = !1, shouldDecodeKey = !1), keyIsDot = !0, keySeparatorIndex = i2) : c2 === 91 ? nesting && (nestingSyntax === "index" || isJsNestingSyntax) && equalityIndex <= startingIndex && (keySeparatorIndex !== prevIndex && (keyChunk = computeKeySlice(input, keySeparatorIndex + 1, i2, keyHasPlus, shouldDecodeKey), currentKey = keyDeserializer(keyChunk), isJsNestingSyntax && lastKey !== void 0 && (currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax)), lastKey = currentKey, keyHasPlus = !1, shouldDecodeKey = !1, keyIsDot = !1), keySeparatorIndex = i2) : c2 === 61 ? equalityIndex <= startingIndex ? equalityIndex = i2 : shouldDecodeValue = !0 : c2 === 43 ? equalityIndex > startingIndex ? valueHasPlus = !0 : keyHasPlus = !0 : c2 === 37 && (equalityIndex > startingIndex ? shouldDecodeValue = !0 : shouldDecodeKey = !0);
prevIndex = i2, prevChar = c2;
}
return result;
}
}
});
// ../node_modules/picoquery/lib/stringify.js
var require_stringify = __commonJS({
"../node_modules/picoquery/lib/stringify.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.stringify = stringify2;
var object_util_js_1 = require_object_util();
function stringify2(input, options2) {
if (input === null || typeof input != "object")
return "";
let optionsObj = options2 ?? {};
return (0, object_util_js_1.stringifyObject)(input, optionsObj);
}
}
});
// ../node_modules/picoquery/lib/main.js
var require_main = __commonJS({
"../node_modules/picoquery/lib/main.js"(exports) {
"use strict";
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o3, m2, k2, k22) {
k22 === void 0 && (k22 = k2);
var desc = Object.getOwnPropertyDescriptor(m2, k2);
(!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() {
return m2[k2];
} }), Object.defineProperty(o3, k22, desc);
}) : (function(o3, m2, k2, k22) {
k22 === void 0 && (k22 = k2), o3[k22] = m2[k2];
})), __exportStar = exports && exports.__exportStar || function(m2, exports2) {
for (var p2 in m2) p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2) && __createBinding(exports2, m2, p2);
};
Object.defineProperty(exports, "__esModule", { value: !0 });
exports.stringify = exports.parse = void 0;
var parse_js_1 = require_parse();
Object.defineProperty(exports, "parse", { enumerable: !0, get: function() {
return parse_js_1.parse;
} });
var stringify_js_1 = require_stringify();
Object.defineProperty(exports, "stringify", { enumerable: !0, get: function() {
return stringify_js_1.stringify;
} });
__exportStar(require_shared(), exports);
}
});
// ../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;
};
e