UNPKG

@sap-ux/ui-components

Version:
1,628 lines (1,605 loc) 450 kB
var um = Object.create; var Yn = Object.defineProperty; var pm = Object.getOwnPropertyDescriptor; var cm = Object.getOwnPropertyNames; var dm = Object.getPrototypeOf, fm = Object.prototype.hasOwnProperty; var s = (e, t) => Yn(e, "name", { value: t, configurable: !0 }), $o = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, o) => (typeof require < "u" ? require : t)[o] }) : e)(function(e) { if (typeof require < "u") return require.apply(this, arguments); throw Error('Dynamic require of "' + e + '" is not supported'); }); var _e = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); var mm = (e, t, o, i) => { if (t && typeof t == "object" || typeof t == "function") for (let n of cm(t)) !fm.call(e, n) && n !== o && Yn(e, n, { get: () => t[n], enumerable: !(i = pm(t, n)) || i.enumerable }); return e; }; var Ve = (e, t, o) => (o = e != null ? um(dm(e)) : {}, mm( // 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. t || !e || !e.__esModule ? Yn(o, "default", { value: e, enumerable: !0 }) : o, e )); // ../node_modules/prop-types/lib/ReactPropTypesSecret.js var Ua = _e((ZS, Ka) => { "use strict"; var hm = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; Ka.exports = hm; }); // ../node_modules/prop-types/factoryWithThrowingShims.js var Xa = _e((JS, Ya) => { "use strict"; var gm = Ua(); function qa() { } s(qa, "emptyFunction"); function Ga() { } s(Ga, "emptyFunctionWithReset"); Ga.resetWarningCache = qa; Ya.exports = function() { function e(i, n, r, l, u, p) { if (p !== gm) { var c = 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 c.name = "Invariant Violation", c; } } s(e, "shim"), e.isRequired = e; function t() { return e; } s(t, "getShim"); var o = { array: e, bigint: e, bool: e, func: e, number: e, object: e, string: e, symbol: e, any: e, arrayOf: t, element: e, elementType: e, instanceOf: t, node: e, objectOf: t, oneOf: t, oneOfType: t, shape: t, exact: t, checkPropTypes: Ga, resetWarningCache: qa }; return o.PropTypes = o, o; }; }); // ../node_modules/prop-types/index.js var ti = _e((rw, Qa) => { Qa.exports = Xa()(); var tw, ow; }); // ../node_modules/react-fast-compare/index.js var oi = _e((nw, Za) => { var ym = typeof Element < "u", vm = typeof Map == "function", bm = typeof Set == "function", xm = typeof ArrayBuffer == "function" && !!ArrayBuffer. isView; function wr(e, t) { if (e === t) return !0; if (e && t && typeof e == "object" && typeof t == "object") { if (e.constructor !== t.constructor) return !1; var o, i, n; if (Array.isArray(e)) { if (o = e.length, o != t.length) return !1; for (i = o; i-- !== 0; ) if (!wr(e[i], t[i])) return !1; return !0; } var r; if (vm && e instanceof Map && t instanceof Map) { if (e.size !== t.size) return !1; for (r = e.entries(); !(i = r.next()).done; ) if (!t.has(i.value[0])) return !1; for (r = e.entries(); !(i = r.next()).done; ) if (!wr(i.value[1], t.get(i.value[0]))) return !1; return !0; } if (bm && e instanceof Set && t instanceof Set) { if (e.size !== t.size) return !1; for (r = e.entries(); !(i = r.next()).done; ) if (!t.has(i.value[0])) return !1; return !0; } if (xm && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) { if (o = e.length, o != t.length) return !1; for (i = o; i-- !== 0; ) if (e[i] !== t[i]) return !1; return !0; } if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags; if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf(); if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString(); if (n = Object.keys(e), o = n.length, o !== Object.keys(t).length) return !1; for (i = o; i-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(t, n[i])) return !1; if (ym && e instanceof Element) return !1; for (i = o; i-- !== 0; ) if (!((n[i] === "_owner" || n[i] === "__v" || n[i] === "__o") && e.$$typeof) && !wr(e[n[i]], t[n[i]])) return !1; return !0; } return e !== e && t !== t; } s(wr, "equal"); Za.exports = /* @__PURE__ */ s(function(t, o) { try { return wr(t, o); } catch (i) { if ((i.message || "").match(/stack|recursion/i)) return console.warn("react-fast-compare cannot handle circular refs"), !1; throw i; } }, "isEqual"); }); // ../node_modules/invariant/browser.js var el = _e((sw, Ja) => { "use strict"; var Im = /* @__PURE__ */ s(function(e, t, o, i, n, r, l, u) { if (!e) { var p; if (t === void 0) p = new Error( "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings." ); else { var c = [o, i, n, r, l, u], d = 0; p = new Error( t.replace(/%s/g, function() { return c[d++]; }) ), p.name = "Invariant Violation"; } throw p.framesToPop = 1, p; } }, "invariant"); Ja.exports = Im; }); // ../node_modules/shallowequal/index.js var ol = _e((lw, tl) => { tl.exports = /* @__PURE__ */ s(function(t, o, i, n) { var r = i ? i.call(n, t, o) : void 0; if (r !== void 0) return !!r; if (t === o) return !0; if (typeof t != "object" || !t || typeof o != "object" || !o) return !1; var l = Object.keys(t), u = Object.keys(o); if (l.length !== u.length) return !1; for (var p = Object.prototype.hasOwnProperty.bind(o), c = 0; c < l.length; c++) { var d = l[c]; if (!p(d)) return !1; var m = t[d], f = o[d]; if (r = i ? i.call(n, m, f, d) : void 0, r === !1 || r === void 0 && m !== f) return !1; } return !0; }, "shallowEqual"); }); // ../node_modules/memoizerific/memoizerific.js var Zo = _e((wu, Ti) => { (function(e) { if (typeof wu == "object" && typeof Ti < "u") Ti.exports = e(); else if (typeof define == "function" && define.amd) define([], e); else { var t; typeof window < "u" ? t = window : typeof global < "u" ? t = global : typeof self < "u" ? t = self : t = this, t.memoizerific = e(); } })(function() { var e, t, o; return (/* @__PURE__ */ s(function i(n, r, l) { function u(d, m) { if (!r[d]) { if (!n[d]) { var f = typeof $o == "function" && $o; if (!m && f) return f(d, !0); if (p) return p(d, !0); var y = new Error("Cannot find module '" + d + "'"); throw y.code = "MODULE_NOT_FOUND", y; } var h = r[d] = { exports: {} }; n[d][0].call(h.exports, function(v) { var I = n[d][1][v]; return u(I || v); }, h, h.exports, i, n, r, l); } return r[d].exports; } s(u, "s"); for (var p = typeof $o == "function" && $o, c = 0; c < l.length; c++) u(l[c]); return u; }, "e"))({ 1: [function(i, n, r) { n.exports = function(l) { if (typeof Map != "function" || l) { var u = i("./similar"); return new u(); } else return /* @__PURE__ */ new Map(); }; }, { "./similar": 2 }], 2: [function(i, n, r) { function l() { return this.list = [], this.lastItem = void 0, this.size = 0, this; } s(l, "Similar"), l.prototype.get = function(u) { var p; if (this.lastItem && this.isEqual(this.lastItem.key, u)) return this.lastItem.val; if (p = this.indexOf(u), p >= 0) return this.lastItem = this.list[p], this.list[p].val; }, l.prototype.set = function(u, p) { var c; return this.lastItem && this.isEqual(this.lastItem.key, u) ? (this.lastItem.val = p, this) : (c = this.indexOf(u), c >= 0 ? (this.lastItem = this.list[c], this.list[c].val = p, this) : (this.lastItem = { key: u, val: p }, this.list.push(this.lastItem), this.size++, this)); }, l.prototype.delete = function(u) { var p; if (this.lastItem && this.isEqual(this.lastItem.key, u) && (this.lastItem = void 0), p = this.indexOf(u), p >= 0) return this.size--, this.list.splice(p, 1)[0]; }, l.prototype.has = function(u) { var p; return this.lastItem && this.isEqual(this.lastItem.key, u) ? !0 : (p = this.indexOf(u), p >= 0 ? (this.lastItem = this.list[p], !0) : !1); }, l.prototype.forEach = function(u, p) { var c; for (c = 0; c < this.size; c++) u.call(p || this, this.list[c].val, this.list[c].key, this); }, l.prototype.indexOf = function(u) { var p; for (p = 0; p < this.size; p++) if (this.isEqual(this.list[p].key, u)) return p; return -1; }, l.prototype.isEqual = function(u, p) { return u === p || u !== u && p !== p; }, n.exports = l; }, {}], 3: [function(i, n, r) { var l = i("map-or-similar"); n.exports = function(d) { var m = new l(!1), f = []; return function(y) { var h = /* @__PURE__ */ s(function() { var v = m, I, C, b = arguments.length - 1, x = Array(b + 1), g = !0, w; if ((h.numArgs || h.numArgs === 0) && h.numArgs !== b + 1) throw new Error("Memoizerific functions should always be called with the same number of arguments"); for (w = 0; w < b; w++) { if (x[w] = { cacheItem: v, arg: arguments[w] }, v.has(arguments[w])) { v = v.get(arguments[w]); continue; } g = !1, I = new l(!1), v.set(arguments[w], I), v = I; } return g && (v.has(arguments[b]) ? C = v.get(arguments[b]) : g = !1), g || (C = y.apply(null, arguments), v.set(arguments[b], C)), d > 0 && (x[b] = { cacheItem: v, arg: arguments[b] }, g ? u(f, x) : f.push(x), f.length > d && p(f.shift())), h.wasMemoized = g, h.numArgs = b + 1, C; }, "memoizerific"); return h.limit = d, h.wasMemoized = !1, h.cache = m, h.lru = f, h; }; }; function u(d, m) { var f = d.length, y = m.length, h, v, I; for (v = 0; v < f; v++) { for (h = !0, I = 0; I < y; I++) if (!c(d[v][I].arg, m[I].arg)) { h = !1; break; } if (h) break; } d.push(d.splice(v, 1)[0]); } s(u, "moveToMostRecentLru"); function p(d) { var m = d.length, f = d[m - 1], y, h; for (f.cacheItem.delete(f.arg), h = m - 2; h >= 0 && (f = d[h], y = f.cacheItem.get(f.arg), !y || !y.size); h--) f.cacheItem.delete(f.arg); } s(p, "removeCachedResult"); function c(d, m) { return d === m || d !== d && m !== m; } s(c, "isEqual"); }, { "map-or-similar": 1 }] }, {}, [3])(3); }); }); // ../node_modules/picoquery/lib/string-util.js var Ai = _e((Pi) => { "use strict"; Object.defineProperty(Pi, "__esModule", { value: !0 }); Pi.encodeString = Hh; var bt = Array.from({ length: 256 }, (e, t) => "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase()), Bh = 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 Hh(e) { let t = e.length; if (t === 0) return ""; let o = "", i = 0, n = 0; e: for (; n < t; n++) { let r = e.charCodeAt(n); for (; r < 128; ) { if (Bh[r] !== 1 && (i < n && (o += e.slice(i, n)), i = n + 1, o += bt[r]), ++n === t) break e; r = e.charCodeAt(n); } if (i < n && (o += e.slice(i, n)), r < 2048) { i = n + 1, o += bt[192 | r >> 6] + bt[128 | r & 63]; continue; } if (r < 55296 || r >= 57344) { i = n + 1, o += bt[224 | r >> 12] + bt[128 | r >> 6 & 63] + bt[128 | r & 63]; continue; } if (++n, n >= t) throw new Error("URI malformed"); let l = e.charCodeAt(n) & 1023; i = n + 1, r = 65536 + ((r & 1023) << 10 | l), o += bt[240 | r >> 18] + bt[128 | r >> 12 & 63] + bt[128 | r >> 6 & 63] + bt[128 | r & 63]; } return i === 0 ? e : i < t ? o + e.slice(i) : o; } s(Hh, "encodeString"); }); // ../node_modules/picoquery/lib/shared.js var Xr = _e((xt) => { "use strict"; Object.defineProperty(xt, "__esModule", { value: !0 }); xt.defaultOptions = xt.defaultShouldSerializeObject = xt.defaultValueSerializer = void 0; var Di = Ai(), Rh = /* @__PURE__ */ s((e) => { switch (typeof e) { case "string": return (0, Di.encodeString)(e); case "bigint": case "boolean": return "" + e; case "number": if (Number.isFinite(e)) return e < 1e21 ? "" + e : (0, Di.encodeString)("" + e); break; } return e instanceof Date ? (0, Di.encodeString)(e.toISOString()) : ""; }, "defaultValueSerializer"); xt.defaultValueSerializer = Rh; var zh = /* @__PURE__ */ s((e) => e instanceof Date, "defaultShouldSerializeObject"); xt.defaultShouldSerializeObject = zh; var _u = /* @__PURE__ */ s((e) => e, "identityFunc"); xt.defaultOptions = { nesting: !0, nestingSyntax: "dot", arrayRepeat: !1, arrayRepeatSyntax: "repeat", delimiter: 38, valueDeserializer: _u, valueSerializer: xt.defaultValueSerializer, keyDeserializer: _u, shouldSerializeObject: xt.defaultShouldSerializeObject }; }); // ../node_modules/picoquery/lib/object-util.js var Mi = _e((Qr) => { "use strict"; Object.defineProperty(Qr, "__esModule", { value: !0 }); Qr.getDeepObject = Vh; Qr.stringifyObject = ku; var eo = Xr(), Wh = Ai(); function jh(e) { return e === "__proto__" || e === "constructor" || e === "prototype"; } s(jh, "isPrototypeKey"); function Vh(e, t, o, i, n) { if (jh(t)) return e; let r = e[t]; return typeof r == "object" && r !== null ? r : !i && (n || typeof o == "number" || typeof o == "string" && o * 0 === 0 && o.indexOf(".") === -1) ? e[t] = [] : e[t] = {}; } s(Vh, "getDeepObject"); var $h = 20, Kh = "[]", Uh = "[", qh = "]", Gh = "."; function ku(e, t, o = 0, i, n) { let { nestingSyntax: r = eo.defaultOptions.nestingSyntax, arrayRepeat: l = eo.defaultOptions.arrayRepeat, arrayRepeatSyntax: u = eo.defaultOptions. arrayRepeatSyntax, nesting: p = eo.defaultOptions.nesting, delimiter: c = eo.defaultOptions.delimiter, valueSerializer: d = eo.defaultOptions. valueSerializer, shouldSerializeObject: m = eo.defaultOptions.shouldSerializeObject } = t, f = typeof c == "number" ? String.fromCharCode( c) : c, y = n === !0 && l, h = r === "dot" || r === "js" && !n; if (o > $h) return ""; let v = "", I = !0, C = !1; for (let b in e) { let x = e[b], g; i ? (g = i, y ? u === "bracket" && (g += Kh) : h ? (g += Gh, g += b) : (g += Uh, g += b, g += qh)) : g = b, I || (v += f), typeof x == "object" && x !== null && !m(x) ? (C = x.pop !== void 0, (p || l && C) && (v += ku(x, t, o + 1, g, C))) : (v += (0, Wh.encodeString)(g), v += "=", v += d(x, b)), I && (I = !1); } return v; } s(ku, "stringifyObject"); }); // ../node_modules/fast-decode-uri-component/index.js var Du = _e((XO, Au) => { "use strict"; var Ou = 12, Yh = 0, Li = [ // 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 Xh(e) { var t = e.indexOf("%"); if (t === -1) return e; for (var o = e.length, i = "", n = 0, r = 0, l = t, u = Ou; t > -1 && t < o; ) { var p = Pu(e[t + 1], 4), c = Pu(e[t + 2], 0), d = p | c, m = Li[d]; if (u = Li[256 + u + m], r = r << 6 | d & Li[364 + m], u === Ou) i += e.slice(n, l), i += r <= 65535 ? String.fromCharCode(r) : String.fromCharCode( 55232 + (r >> 10), 56320 + (r & 1023) ), r = 0, n = t + 3, t = l = e.indexOf("%", n); else { if (u === Yh) return null; if (t += 3, t < o && e.charCodeAt(t) === 37) continue; return null; } } return i + e.slice(n); } s(Xh, "decodeURIComponent"); var Qh = { 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 Pu(e, t) { var o = Qh[e]; return o === void 0 ? 255 : o << t; } s(Pu, "hexCodeToInt"); Au.exports = Xh; }); // ../node_modules/picoquery/lib/parse.js var Fu = _e((kt) => { "use strict"; var Zh = kt && kt.__importDefault || function(e) { return e && e.__esModule ? e : { default: e }; }; Object.defineProperty(kt, "__esModule", { value: !0 }); kt.numberValueDeserializer = kt.numberKeyDeserializer = void 0; kt.parse = tg; var Zr = Mi(), to = Xr(), Mu = Zh(Du()), Jh = /* @__PURE__ */ s((e) => { let t = Number(e); return Number.isNaN(t) ? e : t; }, "numberKeyDeserializer"); kt.numberKeyDeserializer = Jh; var eg = /* @__PURE__ */ s((e) => { let t = Number(e); return Number.isNaN(t) ? e : t; }, "numberValueDeserializer"); kt.numberValueDeserializer = eg; var Lu = /\+/g, Nu = /* @__PURE__ */ s(function() { }, "Empty"); Nu.prototype = /* @__PURE__ */ Object.create(null); function Jr(e, t, o, i, n) { let r = e.substring(t, o); return i && (r = r.replace(Lu, " ")), n && (r = (0, Mu.default)(r) || r), r; } s(Jr, "computeKeySlice"); function tg(e, t) { let { valueDeserializer: o = to.defaultOptions.valueDeserializer, keyDeserializer: i = to.defaultOptions.keyDeserializer, arrayRepeatSyntax: n = to. defaultOptions.arrayRepeatSyntax, nesting: r = to.defaultOptions.nesting, arrayRepeat: l = to.defaultOptions.arrayRepeat, nestingSyntax: u = to. defaultOptions.nestingSyntax, delimiter: p = to.defaultOptions.delimiter } = t ?? {}, c = typeof p == "string" ? p.charCodeAt(0) : p, d = u === "js", m = new Nu(); if (typeof e != "string") return m; let f = e.length, y = "", h = -1, v = -1, I = -1, C = m, b, x = "", g = "", w = !1, T = !1, _ = !1, k = !1, E = !1, O = !1, P = !1, A = 0, D = -1, L = -1, B = -1; for (let N = 0; N < f + 1; N++) { if (A = N !== f ? e.charCodeAt(N) : c, A === c) { if (P = v > h, P || (v = N), I !== v - 1 && (g = Jr(e, I + 1, D > -1 ? D : v, _, w), x = i(g), b !== void 0 && (C = (0, Zr.getDeepObject)( C, b, x, d && E, d && O))), P || x !== "") { P && (y = e.slice(v + 1, N), k && (y = y.replace(Lu, " ")), T && (y = (0, Mu.default)(y) || y)); let V = o(y, x); if (l) { let R = C[x]; R === void 0 ? D > -1 ? C[x] = [V] : C[x] = V : R.pop ? R.push(V) : C[x] = [R, V]; } else C[x] = V; } y = "", h = N, v = N, w = !1, T = !1, _ = !1, k = !1, E = !1, O = !1, D = -1, I = N, C = m, b = void 0, x = ""; } else A === 93 ? (l && n === "bracket" && B === 91 && (D = L), r && (u === "index" || d) && v <= h && (I !== L && (g = Jr(e, I + 1, N, _, w), x = i(g), b !== void 0 && (C = (0, Zr.getDeepObject)(C, b, x, void 0, d)), b = x, _ = !1, w = !1), I = N, O = !0, E = !1)) : A === 46 ? r && (u === "dot" || d) && v <= h && (I !== L && (g = Jr(e, I + 1, N, _, w), x = i(g), b !== void 0 && (C = (0, Zr.getDeepObject)( C, b, x, d)), b = x, _ = !1, w = !1), E = !0, O = !1, I = N) : A === 91 ? r && (u === "index" || d) && v <= h && (I !== L && (g = Jr(e, I + 1, N, _, w), x = i(g), d && b !== void 0 && (C = (0, Zr.getDeepObject)(C, b, x, d)), b = x, _ = !1, w = !1, E = !1, O = !0), I = N) : A === 61 ? v <= h ? v = N : T = !0 : A === 43 ? v > h ? k = !0 : _ = !0 : A === 37 && (v > h ? T = !0 : w = !0); L = N, B = A; } return m; } s(tg, "parse"); }); // ../node_modules/picoquery/lib/stringify.js var Bu = _e((Ni) => { "use strict"; Object.defineProperty(Ni, "__esModule", { value: !0 }); Ni.stringify = rg; var og = Mi(); function rg(e, t) { if (e === null || typeof e != "object") return ""; let o = t ?? {}; return (0, og.stringifyObject)(e, o); } s(rg, "stringify"); }); // ../node_modules/picoquery/lib/main.js var Hu = _e((dt) => { "use strict"; var ng = dt && dt.__createBinding || (Object.create ? function(e, t, o, i) { i === void 0 && (i = o); var n = Object.getOwnPropertyDescriptor(t, o); (!n || ("get" in n ? !t.__esModule : n.writable || n.configurable)) && (n = { enumerable: !0, get: /* @__PURE__ */ s(function() { return t[o]; }, "get") }), Object.defineProperty(e, i, n); } : function(e, t, o, i) { i === void 0 && (i = o), e[i] = t[o]; }), ig = dt && dt.__exportStar || function(e, t) { for (var o in e) o !== "default" && !Object.prototype.hasOwnProperty.call(t, o) && ng(t, e, o); }; Object.defineProperty(dt, "__esModule", { value: !0 }); dt.stringify = dt.parse = void 0; var sg = Fu(); Object.defineProperty(dt, "parse", { enumerable: !0, get: /* @__PURE__ */ s(function() { return sg.parse; }, "get") }); var ag = Bu(); Object.defineProperty(dt, "stringify", { enumerable: !0, get: /* @__PURE__ */ s(function() { return ag.stringify; }, "get") }); ig(Xr(), dt); }); // ../node_modules/toggle-selection/index.js var $u = _e((xP, Vu) => { Vu.exports = function() { var e = document.getSelection(); if (!e.rangeCount) return function() { }; for (var t = document.activeElement, o = [], i = 0; i < e.rangeCount; i++) o.push(e.getRangeAt(i)); switch (t.tagName.toUpperCase()) { // .toUpperCase handles XHTML case "INPUT": case "TEXTAREA": t.blur(); break; default: t = null; break; } return e.removeAllRanges(), function() { e.type === "Caret" && e.removeAllRanges(), e.rangeCount || o.forEach(function(n) { e.addRange(n); }), t && t.focus(); }; }; }); // ../node_modules/copy-to-clipboard/index.js var qu = _e((IP, Uu) => { "use strict"; var fg = $u(), Ku = { "text/plain": "Text", "text/html": "Url", default: "Text" }, mg = "Copy to clipboard: #{key}, Enter"; function hg(e) { var t = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C"; return e.replace(/#{\s*key\s*}/g, t); } s(hg, "format"); function gg(e, t) { var o, i, n, r, l, u, p = !1; t || (t = {}), o = t.debug || !1; try { n = fg(), r = document.createRange(), l = document.getSelection(), u = document.createElement("span"), u.textContent = e, u.ariaHidden = "true", u.style.all = "unset", u.style.position = "fixed", u.style.top = 0, u.style.clip = "rect(0, 0, 0, 0)", u.style.whiteSpace = "p\ re", u.style.webkitUserSelect = "text", u.style.MozUserSelect = "text", u.style.msUserSelect = "text", u.style.userSelect = "text", u.addEventListener( "copy", function(d) { if (d.stopPropagation(), t.format) if (d.preventDefault(), typeof d.clipboardData > "u") { o && console.warn("unable to use e.clipboardData"), o && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); var m = Ku[t.format] || Ku.default; window.clipboardData.setData(m, e); } else d.clipboardData.clearData(), d.clipboardData.setData(t.format, e); t.onCopy && (d.preventDefault(), t.onCopy(d.clipboardData)); }), document.body.appendChild(u), r.selectNodeContents(u), l.addRange(r); var c = document.execCommand("copy"); if (!c) throw new Error("copy command was unsuccessful"); p = !0; } catch (d) { o && console.error("unable to copy using execCommand: ", d), o && console.warn("trying IE specific stuff"); try { window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), p = !0; } catch (m) { o && console.error("unable to copy using clipboardData: ", m), o && console.error("falling back to prompt"), i = hg("message" in t ? t.message : mg), window.prompt(i, e); } } finally { l && (typeof l.removeRange == "function" ? l.removeRange(r) : l.removeAllRanges()), u && document.body.removeChild(u), n(); } return p; } s(gg, "copy"); Uu.exports = gg; }); // ../node_modules/downshift/node_modules/react-is/cjs/react-is.production.min.js var Kc = _e((de) => { "use strict"; var qi = Symbol.for("react.element"), Gi = Symbol.for("react.portal"), fn = Symbol.for("react.fragment"), mn = Symbol.for("react.strict_mo\ de"), hn = Symbol.for("react.profiler"), gn = Symbol.for("react.provider"), yn = Symbol.for("react.context"), lv = Symbol.for("react.server_\ context"), vn = Symbol.for("react.forward_ref"), bn = Symbol.for("react.suspense"), xn = Symbol.for("react.suspense_list"), In = Symbol.for( "react.memo"), Sn = Symbol.for("react.lazy"), uv = Symbol.for("react.offscreen"), $c; $c = Symbol.for("react.module.reference"); function ot(e) { if (typeof e == "object" && e !== null) { var t = e.$$typeof; switch (t) { case qi: switch (e = e.type, e) { case fn: case hn: case mn: case bn: case xn: return e; default: switch (e = e && e.$$typeof, e) { case lv: case yn: case vn: case Sn: case In: case gn: return e; default: return t; } } case Gi: return t; } } } s(ot, "v"); de.ContextConsumer = yn; de.ContextProvider = gn; de.Element = qi; de.ForwardRef = vn; de.Fragment = fn; de.Lazy = Sn; de.Memo = In; de.Portal = Gi; de.Profiler = hn; de.StrictMode = mn; de.Suspense = bn; de.SuspenseList = xn; de.isAsyncMode = function() { return !1; }; de.isConcurrentMode = function() { return !1; }; de.isContextConsumer = function(e) { return ot(e) === yn; }; de.isContextProvider = function(e) { return ot(e) === gn; }; de.isElement = function(e) { return typeof e == "object" && e !== null && e.$$typeof === qi; }; de.isForwardRef = function(e) { return ot(e) === vn; }; de.isFragment = function(e) { return ot(e) === fn; }; de.isLazy = function(e) { return ot(e) === Sn; }; de.isMemo = function(e) { return ot(e) === In; }; de.isPortal = function(e) { return ot(e) === Gi; }; de.isProfiler = function(e) { return ot(e) === hn; }; de.isStrictMode = function(e) { return ot(e) === mn; }; de.isSuspense = function(e) { return ot(e) === bn; }; de.isSuspenseList = function(e) { return ot(e) === xn; }; de.isValidElementType = function(e) { return typeof e == "string" || typeof e == "function" || e === fn || e === hn || e === mn || e === bn || e === xn || e === uv || typeof e == "object" && e !== null && (e.$$typeof === Sn || e.$$typeof === In || e.$$typeof === gn || e.$$typeof === yn || e.$$typeof === vn || e.$$typeof === $c || e.getModuleId !== void 0); }; de.typeOf = ot; }); // ../node_modules/downshift/node_modules/react-is/index.js var qc = _e((VN, Uc) => { "use strict"; Uc.exports = Kc(); }); // ../node_modules/fuse.js/dist/fuse.js var tf = _e((ar, Rs) => { (function(e, t) { typeof ar == "object" && typeof Rs == "object" ? Rs.exports = t() : typeof define == "function" && define.amd ? define("Fuse", [], t) : typeof ar == "object" ? ar.Fuse = t() : e.Fuse = t(); })(ar, function() { return function(e) { var t = {}; function o(i) { if (t[i]) return t[i].exports; var n = t[i] = { i, l: !1, exports: {} }; return e[i].call(n.exports, n, n.exports, o), n.l = !0, n.exports; } return s(o, "r"), o.m = e, o.c = t, o.d = function(i, n, r) { o.o(i, n) || Object.defineProperty(i, n, { enumerable: !0, get: r }); }, o.r = function(i) { typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }), Object.defineProperty( i, "__esModule", { value: !0 }); }, o.t = function(i, n) { if (1 & n && (i = o(i)), 8 & n || 4 & n && typeof i == "object" && i && i.__esModule) return i; var r = /* @__PURE__ */ Object.create(null); if (o.r(r), Object.defineProperty(r, "default", { enumerable: !0, value: i }), 2 & n && typeof i != "string") for (var l in i) o.d(r, l, (function(u) { return i[u]; }).bind(null, l)); return r; }, o.n = function(i) { var n = i && i.__esModule ? function() { return i.default; } : function() { return i; }; return o.d(n, "a", n), n; }, o.o = function(i, n) { return Object.prototype.hasOwnProperty.call(i, n); }, o.p = "", o(o.s = 0); }([function(e, t, o) { function i(d) { return (i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(m) { return typeof m; } : function(m) { return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m; })(d); } s(i, "n"); function n(d, m) { for (var f = 0; f < m.length; f++) { var y = m[f]; y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(d, y.key, y); } } s(n, "o"); var r = o(1), l = o(7), u = l.get, p = (l.deepValue, l.isArray), c = function() { function d(h, v) { var I = v.location, C = I === void 0 ? 0 : I, b = v.distance, x = b === void 0 ? 100 : b, g = v.threshold, w = g === void 0 ? 0.6 : g, T = v.maxPatternLength, _ = T === void 0 ? 32 : T, k = v.caseSensitive, E = k !== void 0 && k, O = v.tokenSeparator, P = O === void 0 ? / +/g : O, A = v.findAllMatches, D = A !== void 0 && A, L = v.minMatchCharLength, B = L === void 0 ? 1 : L, N = v.id, V = N === void 0 ? null : N, R = v.keys, K = R === void 0 ? [] : R, W = v.shouldSort, ee = W === void 0 || W, H = v.getFn, j = H === void 0 ? u : H, F = v. sortFn, $ = F === void 0 ? function(ue, be) { return ue.score - be.score; } : F, X = v.tokenize, oe = X !== void 0 && X, J = v.matchAllTokens, ae = J !== void 0 && J, ie = v.includeMatches, se = ie !== void 0 && ie, le = v.includeScore, ve = le !== void 0 && le, he = v.verbose, Pe = he !== void 0 && he; (function(ue, be) { if (!(ue instanceof be)) throw new TypeError("Cannot call a class as a function"); })(this, d), this.options = { location: C, distance: x, threshold: w, maxPatternLength: _, isCaseSensitive: E, tokenSeparator: P, findAllMatches: D, minMatchCharLength: B, id: V, keys: K, includeMatches: se, includeScore: ve, shouldSort: ee, getFn: j, sortFn: $, verbose: Pe, tokenize: oe, matchAllTokens: ae }, this.setCollection(h), this._processKeys(K); } s(d, "e"); var m, f, y; return m = d, (f = [{ key: "setCollection", value: /* @__PURE__ */ s(function(h) { return this.list = h, h; }, "value") }, { key: "_processKeys", value: /* @__PURE__ */ s(function(h) { if (this._keyWeights = {}, this._keyNames = [], h.length && typeof h[0] == "string") for (var v = 0, I = h.length; v < I; v += 1) { var C = h[v]; this._keyWeights[C] = 1, this._keyNames.push(C); } else { for (var b = null, x = null, g = 0, w = 0, T = h.length; w < T; w += 1) { var _ = h[w]; if (!_.hasOwnProperty("name")) throw new Error('Missing "name" property in key object'); var k = _.name; if (this._keyNames.push(k), !_.hasOwnProperty("weight")) throw new Error('Missing "weight" property in key object'); var E = _.weight; if (E < 0 || E > 1) throw new Error('"weight" property in key must bein the range of [0, 1)'); x = x == null ? E : Math.max(x, E), b = b == null ? E : Math.min(b, E), this._keyWeights[k] = E, g += E; } if (g > 1) throw new Error("Total of weights cannot exceed 1"); } }, "value") }, { key: "search", value: /* @__PURE__ */ s(function(h) { var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { limit: !1 }; this._log(`--------- Search pattern: "`.concat(h, '"')); var I = this._prepareSearchers(h), C = I.tokenSearchers, b = I.fullSearcher, x = this._search(C, b); return this._computeScore(x), this.options.shouldSort && this._sort(x), v.limit && typeof v.limit == "number" && (x = x.slice(0, v. limit)), this._format(x); }, "value") }, { key: "_prepareSearchers", value: /* @__PURE__ */ s(function() { var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", v = []; if (this.options.tokenize) for (var I = h.split(this.options.tokenSeparator), C = 0, b = I.length; C < b; C += 1) v.push(new r(I[C], this.options)); return { tokenSearchers: v, fullSearcher: new r(h, this.options) }; }, "value") }, { key: "_search", value: /* @__PURE__ */ s(function() { var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], v = arguments.length > 1 ? arguments[1] : void 0, I = this. list, C = {}, b = []; if (typeof I[0] == "string") { for (var x = 0, g = I.length; x < g; x += 1) this._analyze({ key: "", value: I[x], record: x, index: x }, { resultMap: C, results: b, tokenSearchers: h, fullSearcher: v }); return b; } for (var w = 0, T = I.length; w < T; w += 1) for (var _ = I[w], k = 0, E = this._keyNames.length; k < E; k += 1) { var O = this._keyNames[k]; this._analyze({ key: O, value: this.options.getFn(_, O), record: _, index: w }, { resultMap: C, results: b, tokenSearchers: h, fullSearcher: v }); } return b; }, "value") }, { key: "_analyze", value: /* @__PURE__ */ s(function(h, v) { var I = this, C = h.key, b = h.arrayIndex, x = b === void 0 ? -1 : b, g = h.value, w = h.record, T = h.index, _ = v.tokenSearchers, k = _ === void 0 ? [] : _, E = v.fullSearcher, O = v.resultMap, P = O === void 0 ? {} : O, A = v.results, D = A === void 0 ? [] : A; (/* @__PURE__ */ s(function L(B, N, V, R) { if (N != null) { if (typeof N == "string") { var K = !1, W = -1, ee = 0; I._log(` Key: `.concat(C === "" ? "--" : C)); var H = E.search(N); if (I._log('Full text: "'.concat(N, '", score: ').concat(H.score)), I.options.tokenize) { for (var j = N.split(I.options.tokenSeparator), F = j.length, $ = [], X = 0, oe = k.length; X < oe; X += 1) { var J = k[X]; I._log(` Pattern: "`.concat(J.pattern, '"')); for (var ae = !1, ie = 0; ie < F; ie += 1) { var se = j[ie], le = J.search(se), ve = {}; le.isMatch ? (ve[se] = le.score, K = !0, ae = !0, $.push(le.score)) : (ve[se] = 1, I.options.matchAllTokens || $.push( 1)), I._log('Token: "'.concat(se, '", score: ').concat(ve[se])); } ae && (ee += 1); } W = $[0]; for (var he = $.length, Pe = 1; Pe < he; Pe += 1) W += $[Pe]; W /= he, I._log("Token score average:", W); } var ue = H.score; W > -1 && (ue = (ue + W) / 2), I._log("Score average:", ue); var be = !I.options.tokenize || !I.options.matchAllTokens || ee >= k.length; if (I._log(` Check Matches: `.concat(be)), (K || H.isMatch) && be) { var Te = { key: C, arrayIndex: B, value: N, score: ue }; I.options.includeMatches && (Te.matchedIndices = H.matchedIndices); var Re = P[R]; Re ? Re.output.push(Te) : (P[R] = { item: V, output: [Te] }, D.push(P[R])); } } else if (p(N)) for (var Le = 0, Se = N.length; Le < Se; Le += 1) L(Le, N[Le], V, R); } }, "e"))(x, g, w, T); }, "value") }, { key: "_computeScore", value: /* @__PURE__ */ s(function(h) { this._log(` Computing score: `); for (var v = this._keyWeights, I = !!Object.keys(v).length, C = 0, b = h.length; C < b; C += 1) { for (var x = h[C], g = x.output, w = g.length, T = 1, _ = 0; _ < w; _ += 1) { var k = g[_], E = k.key, O = I ? v[E] : 1, P = k.score === 0 && v && v[E] > 0 ? Number.EPSILON : k.score; T *= Math.pow(P, O); } x.score = T, this._log(x); } }, "value") }, { key: "_sort", value: /* @__PURE__ */ s(function(h) { this._log(` Sorting....`), h.sort(this.options.sortFn); }, "value") }, { key: "_format", value: /* @__PURE__ */ s(function(h) { var v = []; if (this.options.verbose) { var I = []; this._log(` Output: `, JSON.stringify(h, function(k, E) { if (i(E) === "object" && E !== null) { if (I.indexOf(E) !== -1) return; I.push(E); } return E; }, 2)), I = null; } var C = []; this.options.includeMatches && C.push(function(k, E) { var O = k.output; E.matches = []; for (var P = 0, A = O.length; P < A; P += 1) { var D = O[P]; if (D.matchedIndices.length !== 0) { var L = { indices: D.matchedIndices, value: D.value }; D.key && (L.key = D.key), D.hasOwnProperty("arrayIndex") && D.arrayIndex > -1 && (L.arrayIndex = D.arrayIndex), E.matches.push( L); } } }), this.options.includeScore && C.push(function(k, E) { E.score = k.score; }); for (var b = 0, x = h.length; b < x; b += 1) { var g = h[b]; if (this.options.id && (g.item = this.options.getFn(g.item, this.options.id)[0]), C.length) { for (var w = { item: g.item }, T = 0, _ = C.length; T < _; T += 1) C[T](g, w); v.push(w); } else v.push(g.item); } return v; }, "value") }, { key: "_log", value: /* @__PURE__ */ s(function() { var h; this.options.verbose && (h = console).log.apply(h, arguments); }, "value") }]) && n(m.prototype, f), y && n(m, y), d; }(); e.exports = c; }, function(e, t, o) { function i(p, c) { for (var d = 0; d < c.length; d++) { var m = c[d]; m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(p, m.key, m); } } s(i, "n"); var n = o(2), r = o(3), l = o(6), u = function() { function p(f, y) { var h = y.location, v = h === void 0 ? 0 : h, I = y.distance, C = I === void 0 ? 100 : I, b = y.threshold, x = b === void 0 ? 0.6 : b, g = y.maxPatternLength, w = g === void 0 ? 32 : g, T = y.isCaseSensitive, _ = T !== void 0 && T, k = y.tokenSeparator, E = k === void 0 ? / +/g : k, O = y.findAllMatches, P = O !== void 0 && O, A = y.minMatchCharLength, D = A === void 0 ? 1 : A, L = y.includeMatches, B = L !== void 0 && L; (function(N, V) { if (!(N instanceof V)) throw new TypeError("Cannot call a class as a function"); })(this, p), this.options = { location: v, distance: C, threshold: x, maxPatternLength: w, isCaseSensitive: _, tokenSeparator: E, findAllMatches: P, includeMatches: B, minMatchCharLength: D }, this.pattern = _ ? f : f.toLowerCase(), this.pattern.length <= w && (this.patternAlphabet = l(this.pattern)); } s(p, "e"); var c, d, m; return c = p, (d = [{ key: "search", value: /* @__PURE__ */ s(function(f) { var y = this.options, h = y.isCaseSensitive, v = y.includeMatches; if (h || (f = f.toLowerCase()), this.pattern === f) { var I = { isMatch: !0, score: 0 }; return v && (I.matchedIndices = [[0, f.length - 1]]), I; } var C = this.options, b = C.maxPatternLength, x = C.tokenSeparator; if (this.pattern.length > b) return n(f, this.pattern, x); var g = this.options, w = g.location, T = g.distance, _ = g.threshold, k = g.findAllMatches, E = g.minMatchCharLength; return r(f, this.pattern, this.patternAlphabet, { location: w, distance: T, threshold: _, findAllMatches: k, minMatchCharLength: E, includeMatches: v }); }, "value") }]) && i(c.prototype, d), m && i(c, m), p; }(); e.exports = u; }, function(e, t) { var o = /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g; e.exports = function(i, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : / +/g, l = new RegExp(n.replace(o, "\\$&").replace(r, "|")), u = i.match(l), p = !!u, c = []; if (p) for (var d = 0, m = u.length; d < m; d += 1) { var f = u[d]; c.push([i.indexOf(f), f.length - 1]); } return { score: p ? 0.5 : 1, isMatch: p, matchedIndices: c }; }; }, function(e, t, o) { var i = o(4), n = o(5); e.exports = function(r, l, u, p) { for (var c = p.location, d = c === void 0 ? 0 : c, m = p.distance, f = m === void 0 ? 100 : m, y = p.threshold, h = y === void 0 ? 0.6 : y, v = p.findAllMatches, I = v !== void 0 && v, C = p.minMatchCharLength, b = C === void 0 ? 1 : C, x = p.includeMatches, g = x !== void 0 && x, w = d, T = r.length, _ = h, k = r.indexOf(l, w), E = l.length, O = [], P = 0; P < T; P += 1) O[P] = 0; if (k !== -1) { var A = i(l, { errors: 0, currentLocation: k, expectedLocation: w, distance: f }); if (_ = Math.min(A, _), (k = r.lastIndexOf(l, w + E)) !== -1) { var D = i(l, { errors: 0, currentLocation: k, expectedLocation: w, distance: f }); _ = Math.min(D, _); } } k = -1; for (var L = [], B = 1, N = E + T, V = 1 << (E <= 31 ? E - 1 : 30), R = 0; R < E; R += 1) { for (var K = 0, W = N; K < W; ) i(l, { errors: R, currentLocation: w + W, expectedLocation: w, distance: f }) <= _ ? K = W : N = W, W = Math.floor((N - K) / 2 + K); N = W; var ee = Math.max(1, w - W + 1), H = I ? T : Math.min(w + W, T) + E, j = Array(H + 2); j[H + 1] = (1 << R) - 1; for (var F = H; F >= ee; F -= 1) { var $ = F - 1, X = u[r.charAt($)]; if (X && (O[$] = 1), j[F] = (j[F + 1] << 1 | 1) & X, R !== 0 && (j[F] |= (L[F + 1] | L[F]) << 1 | 1 | L[F + 1]), j[F] & V && (B = i(l, { errors: R, currentLocation: $, expectedLocation: w, distance: f })) <= _) { if (_ = B, (k = $) <= w) break; ee = Math.max(1, 2 * w - k); } } if (i(l, { errors: R + 1, currentLocation: w, expectedLocation: w, distance: f }) > _) break; L = j; } var oe = { isMatch: k >= 0, score: B === 0 ? 1e-3 : B }; return g && (oe.matchedIndices = n(O, b)), oe; }; }, function(e, t) { e.exports = function(o, i) { var n = i.errors, r = n === void 0 ? 0 : n, l = i.currentLocation, u = l === void 0 ? 0 : l, p = i.expectedLocation, c = p === void 0 ? 0 : p, d = i.distance, m = d === void 0 ? 100 : d, f = r / o.length, y = Math.abs(c - u); return m ? f + y / m : y ? 1 : f; }; }, function(e, t) { e.exports = function() { for (var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, n = [], r = -1, l = -1, u = 0, p = o.length; u < p; u += 1) { var c = o[u]; c && r === -1 ? r = u : c || r === -1 || ((l = u - 1) - r + 1 >= i && n.push([r, l]), r = -1); } return o[u - 1] && u - r >= i && n.push([r, u - 1]), n; }; }, function(e, t) { e.exports = function(o) { for (var i = {}, n = o.length, r = 0; r < n; r += 1) i[o.charAt(r)] = 0; for (var l = 0; l < n; l += 1) i[o.charAt(l)] |= 1 << n - l - 1; return i; }; }, function(e, t) { var o = /* @__PURE__ */ s(function(l) { return Array.isArray ? Array.isArray(l) : Object.prototype.toString.call(l) === "[object Array]"; }, "r"), i = /* @__P