@expofp/floorplan 3.1.5 → 3.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/browser/{CookieConsent-CGFAI892.js → CookieConsent-DfE_fkts.js} +34 -32
  2. package/dist/browser/{Debug-BAAWHY1b.js → Debug-BjYRfFht.js} +6 -6
  3. package/dist/browser/{Demo-Cm_by3lL.js → Demo-Dbi2jpnc.js} +8 -8
  4. package/dist/browser/{Free-CUPxUHvY.js → Free-BSnZx5sK.js} +8 -8
  5. package/dist/browser/{Gallery-DtNCOKUl.js → Gallery-CXDwIc_X.js} +8 -8
  6. package/dist/browser/{GpsLoader-DKUaUUoH.js → GpsLoader-BxC0jQJL.js} +8 -8
  7. package/dist/browser/{KioskStore-BAmI2FTC.js → KioskStore-Bx9njFnf.js} +3 -3
  8. package/dist/browser/{Mapbox-DjOk35zh.js → Mapbox-BL4uCq3u.js} +8 -8
  9. package/dist/browser/{SetKioskMode-BMpt2zSm.js → SetKioskMode-CmUEpNr8.js} +7 -7
  10. package/dist/browser/{ShowKiosk-liYrlKC7.js → ShowKiosk-Dqk68IPs.js} +9 -9
  11. package/dist/browser/{ThreeComponent-Bw9_agz4.js → ThreeComponent-Bs4fIgXe.js} +9 -9
  12. package/dist/browser/{TouchHand-CyxZwo32.js → TouchHand-F4RwHukr.js} +4 -4
  13. package/dist/browser/{ViewerMenuPanel-DMfQx5Ja.js → ViewerMenuPanel-Da8d4AKA.js} +7 -7
  14. package/dist/browser/{add-debug-secret-listener-mC8ioAqk.js → add-debug-secret-listener-CzY7rBoG.js} +1 -1
  15. package/dist/browser/{boolean-editor-CRYNpeqJ.js → boolean-editor-EtntC8E2.js} +6 -6
  16. package/dist/browser/{bootIntercom-_3LLB12h.js → bootIntercom-DgAJUEEd.js} +1 -1
  17. package/dist/browser/bundle.json +44 -44
  18. package/dist/browser/{chunk-CVMCP8yt.js → chunk-RBEdwIRm.js} +1 -1
  19. package/dist/browser/{classnames-BUX2Oklh.js → classnames-qZ9_2hbn.js} +2 -2
  20. package/dist/browser/{client-xgqRsUiA.js → client-C19UpouP.js} +4 -4
  21. package/dist/browser/{data-CydRbpN8.js → data-oHqnWMYj.js} +3 -3
  22. package/dist/browser/{debug-overlay-Bn2KbCKg.js → debug-overlay-BMB9VRVy.js} +8 -8
  23. package/dist/browser/{debug-ui-BFXB-AHK.js → debug-ui-CeUHj66R.js} +6 -6
  24. package/dist/browser/{dist-ClOaKySy.js → dist-DV-fRVqs.js} +5 -5
  25. package/dist/browser/{exports-C46oFGwo.js → exports-BLsk2ygZ.js} +1 -1
  26. package/dist/browser/{favicon-BVZCGJ03.js → favicon-DHl8ze48.js} +1 -1
  27. package/dist/browser/{fetch-retry.umd-GNk8060O.js → fetch-retry.umd-BeZhMPIj.js} +2 -2
  28. package/dist/browser/{flex-Dxc6hY3Z.js → flex-BiRWYXbM.js} +6 -6
  29. package/dist/browser/{floorplan.loader-BC-tDHoL.js → floorplan.loader-ic4sBsDi.js} +9 -9
  30. package/dist/browser/{floorplan.ready-CStDgQOC.js → floorplan.ready-DucQMO3I.js} +10 -10
  31. package/dist/browser/fuse-nzPqJLRF.js +1177 -0
  32. package/dist/browser/index.js +11 -11
  33. package/dist/browser/{is-debug-YMktIloe.js → is-debug-BTIP9fyG.js} +2 -2
  34. package/dist/browser/{jsx-runtime-C5d_Cwou.js → jsx-runtime-C40T-D9O.js} +2 -2
  35. package/dist/browser/{lib-zd-dWEXB.js → lib-CviNrhqa.js} +4 -4
  36. package/dist/browser/{main-iX2tegqy.js → main-B_zTGBSI.js} +1 -1
  37. package/dist/browser/{mobx-BMMCrtUu.js → mobx-B035tRw8.js} +4 -4
  38. package/dist/browser/{particles.min-DaqLS_tp.js → particles.min-DSPwSJ2J.js} +2 -2
  39. package/dist/browser/{prop-types-BGx1FmF8.js → prop-types-BW7NYwOo.js} +2 -2
  40. package/dist/browser/{react-VwIX1aro.js → react-BrB6NhR9.js} +2 -2
  41. package/dist/browser/{react-dom-CMGEX3eG.js → react-dom-D67jzu6q.js} +3 -3
  42. package/dist/browser/{reset-all-settings-CK1tFj38.js → reset-all-settings-B4otpIDL.js} +1 -1
  43. package/dist/browser/{settings-CRLQ_hS2.js → settings-CB1rylda.js} +6 -6
  44. package/dist/browser/{src-B0HnxTLj.js → src-DdXQDzCb.js} +4 -4
  45. package/dist/browser/{store-BKvT1wpF.js → store-BnxcP6Pt.js} +7 -7
  46. package/dist/browser/{ui-DU6ggbCR.js → ui-24Jpsemb.js} +6 -6
  47. package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
  48. package/package.json +4 -4
  49. package/dist/browser/fuse-SiDaNxKZ.js +0 -887
@@ -0,0 +1,1177 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "3.1.7" };
5
+ var t = new e.Error().stack;
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "bcd280ca-da4c-4f49-8aed-609a289b6c07", e._sentryDebugIdIdentifier = "sentry-dbid-bcd280ca-da4c-4f49-8aed-609a289b6c07");
7
+ } catch {}
8
+ })();
9
+ import { n as e } from "./chunk-RBEdwIRm.js";
10
+ //#region ../../node_modules/.pnpm/fuse.js@7.3.0/node_modules/fuse.js/dist/fuse.mjs
11
+ var t = /* @__PURE__ */ e({ default: () => $ });
12
+ function n(e) {
13
+ return Array.isArray ? Array.isArray(e) : f(e) === "[object Array]";
14
+ }
15
+ function r(e) {
16
+ if (typeof e == "string") return e;
17
+ if (typeof e == "bigint") return e.toString();
18
+ let t = e + "";
19
+ return t == "0" && 1 / e == -Infinity ? "-0" : t;
20
+ }
21
+ function i(e) {
22
+ return e == null ? "" : r(e);
23
+ }
24
+ function a(e) {
25
+ return typeof e == "string";
26
+ }
27
+ function o(e) {
28
+ return typeof e == "number";
29
+ }
30
+ function s(e) {
31
+ return e === !0 || e === !1 || l(e) && f(e) == "[object Boolean]";
32
+ }
33
+ function c(e) {
34
+ return typeof e == "object";
35
+ }
36
+ function l(e) {
37
+ return c(e) && e !== null;
38
+ }
39
+ function u(e) {
40
+ return e != null;
41
+ }
42
+ function d(e) {
43
+ return !e.trim().length;
44
+ }
45
+ function f(e) {
46
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
47
+ }
48
+ var p = "Incorrect 'index' type", m = (e) => `Invalid value for key ${e}`, h = (e) => `Pattern length exceeds max of ${e}.`, g = (e) => `Missing ${e} property in key`, _ = (e) => `Property 'weight' in key '${e}' must be a positive integer`, v = Object.prototype.hasOwnProperty, y = class {
49
+ constructor(e) {
50
+ this._keys = [], this._keyMap = {};
51
+ let t = 0;
52
+ e.forEach((e) => {
53
+ let n = b(e);
54
+ this._keys.push(n), this._keyMap[n.id] = n, t += n.weight;
55
+ }), this._keys.forEach((e) => {
56
+ e.weight /= t;
57
+ });
58
+ }
59
+ get(e) {
60
+ return this._keyMap[e];
61
+ }
62
+ keys() {
63
+ return this._keys;
64
+ }
65
+ toJSON() {
66
+ return JSON.stringify(this._keys);
67
+ }
68
+ };
69
+ function b(e) {
70
+ let t = null, r = null, i = null, o = 1, s = null;
71
+ if (a(e) || n(e)) i = e, t = x(e), r = S(e);
72
+ else {
73
+ if (!v.call(e, "name")) throw Error(g("name"));
74
+ let n = e.name;
75
+ if (i = n, v.call(e, "weight") && (o = e.weight, o <= 0)) throw Error(_(n));
76
+ t = x(n), r = S(n), s = e.getFn;
77
+ }
78
+ return {
79
+ path: t,
80
+ id: r,
81
+ weight: o,
82
+ src: i,
83
+ getFn: s
84
+ };
85
+ }
86
+ function x(e) {
87
+ return n(e) ? e : e.split(".");
88
+ }
89
+ function S(e) {
90
+ return n(e) ? e.join(".") : e;
91
+ }
92
+ function C(e, t) {
93
+ let r = [], c = !1, l = (e, t, d, f) => {
94
+ if (u(e)) if (!t[d]) r.push(f === void 0 ? e : {
95
+ v: e,
96
+ i: f
97
+ });
98
+ else {
99
+ let p = e[t[d]];
100
+ if (!u(p)) return;
101
+ if (d === t.length - 1 && (a(p) || o(p) || s(p) || typeof p == "bigint")) r.push(f === void 0 ? i(p) : {
102
+ v: i(p),
103
+ i: f
104
+ });
105
+ else if (n(p)) {
106
+ c = !0;
107
+ for (let e = 0, n = p.length; e < n; e += 1) l(p[e], t, d + 1, e);
108
+ } else t.length && l(p, t, d + 1, f);
109
+ }
110
+ };
111
+ return l(e, a(t) ? t.split(".") : t, 0), c ? r : r[0];
112
+ }
113
+ var w = {
114
+ includeMatches: !1,
115
+ findAllMatches: !1,
116
+ minMatchCharLength: 1
117
+ }, ee = {
118
+ isCaseSensitive: !1,
119
+ ignoreDiacritics: !1,
120
+ includeScore: !1,
121
+ keys: [],
122
+ shouldSort: !0,
123
+ sortFn: (e, t) => e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
124
+ }, te = {
125
+ location: 0,
126
+ threshold: .6,
127
+ distance: 100
128
+ }, ne = {
129
+ useExtendedSearch: !1,
130
+ useTokenSearch: !1,
131
+ getFn: C,
132
+ ignoreLocation: !1,
133
+ ignoreFieldNorm: !1,
134
+ fieldNormWeight: 1
135
+ }, T = Object.freeze({
136
+ ...ee,
137
+ ...w,
138
+ ...te,
139
+ ...ne
140
+ }), re = /[^ ]+/g;
141
+ function ie(e = 1, t = 3) {
142
+ let n = /* @__PURE__ */ new Map(), r = 10 ** t;
143
+ return {
144
+ get(t) {
145
+ let i = t.match(re).length;
146
+ if (n.has(i)) return n.get(i);
147
+ let a = 1 / i ** (.5 * e), o = parseFloat(Math.round(a * r) / r);
148
+ return n.set(i, o), o;
149
+ },
150
+ clear() {
151
+ n.clear();
152
+ }
153
+ };
154
+ }
155
+ var E = class {
156
+ constructor({ getFn: e = T.getFn, fieldNormWeight: t = T.fieldNormWeight } = {}) {
157
+ this.norm = ie(t, 3), this.getFn = e, this.isCreated = !1, this.docs = [], this.keys = [], this._keysMap = {}, this.setIndexRecords();
158
+ }
159
+ setSources(e = []) {
160
+ this.docs = e;
161
+ }
162
+ setIndexRecords(e = []) {
163
+ this.records = e;
164
+ }
165
+ setKeys(e = []) {
166
+ this.keys = e, this._keysMap = {}, e.forEach((e, t) => {
167
+ this._keysMap[e.id] = t;
168
+ });
169
+ }
170
+ create() {
171
+ this.isCreated || !this.docs.length || (this.isCreated = !0, a(this.docs[0]) ? this.docs.forEach((e, t) => {
172
+ this._addString(e, t);
173
+ }) : this.docs.forEach((e, t) => {
174
+ this._addObject(e, t);
175
+ }), this.norm.clear());
176
+ }
177
+ add(e) {
178
+ let t = this.size();
179
+ a(e) ? this._addString(e, t) : this._addObject(e, t);
180
+ }
181
+ removeAt(e) {
182
+ this.records.splice(e, 1);
183
+ for (let t = e, n = this.size(); t < n; t += 1) --this.records[t].i;
184
+ }
185
+ removeAll(e) {
186
+ for (let t = e.length - 1; t >= 0; --t) this.records.splice(e[t], 1);
187
+ for (let e = 0, t = this.records.length; e < t; e += 1) this.records[e].i = e;
188
+ }
189
+ getValueForItemAtKeyId(e, t) {
190
+ return e[this._keysMap[t]];
191
+ }
192
+ size() {
193
+ return this.records.length;
194
+ }
195
+ _addString(e, t) {
196
+ if (!u(e) || d(e)) return;
197
+ let n = {
198
+ v: e,
199
+ i: t,
200
+ n: this.norm.get(e)
201
+ };
202
+ this.records.push(n);
203
+ }
204
+ _addObject(e, t) {
205
+ let r = {
206
+ i: t,
207
+ $: {}
208
+ };
209
+ this.keys.forEach((t, o) => {
210
+ let s = t.getFn ? t.getFn(e) : this.getFn(e, t.path);
211
+ if (u(s)) {
212
+ if (n(s)) {
213
+ let e = [];
214
+ for (let t = 0, n = s.length; t < n; t += 1) {
215
+ let n = s[t];
216
+ if (u(n)) {
217
+ if (a(n)) {
218
+ if (!d(n)) {
219
+ let r = {
220
+ v: n,
221
+ i: t,
222
+ n: this.norm.get(n)
223
+ };
224
+ e.push(r);
225
+ }
226
+ } else if (u(n.v)) {
227
+ let t = a(n.v) ? n.v : i(n.v);
228
+ if (!d(t)) {
229
+ let r = {
230
+ v: t,
231
+ i: n.i,
232
+ n: this.norm.get(t)
233
+ };
234
+ e.push(r);
235
+ }
236
+ }
237
+ }
238
+ }
239
+ r.$[o] = e;
240
+ } else if (a(s) && !d(s)) {
241
+ let e = {
242
+ v: s,
243
+ n: this.norm.get(s)
244
+ };
245
+ r.$[o] = e;
246
+ }
247
+ }
248
+ }), this.records.push(r);
249
+ }
250
+ toJSON() {
251
+ return {
252
+ keys: this.keys.map(({ getFn: e, ...t }) => t),
253
+ records: this.records
254
+ };
255
+ }
256
+ };
257
+ function D(e, t, { getFn: n = T.getFn, fieldNormWeight: r = T.fieldNormWeight } = {}) {
258
+ let i = new E({
259
+ getFn: n,
260
+ fieldNormWeight: r
261
+ });
262
+ return i.setKeys(e.map(b)), i.setSources(t), i.create(), i;
263
+ }
264
+ function ae(e, { getFn: t = T.getFn, fieldNormWeight: n = T.fieldNormWeight } = {}) {
265
+ let { keys: r, records: i } = e, a = new E({
266
+ getFn: t,
267
+ fieldNormWeight: n
268
+ });
269
+ return a.setKeys(r), a.setIndexRecords(i), a;
270
+ }
271
+ function oe(e = [], t = T.minMatchCharLength) {
272
+ let n = [], r = -1, i = -1, a = 0;
273
+ for (let o = e.length; a < o; a += 1) {
274
+ let o = e[a];
275
+ o && r === -1 ? r = a : !o && r !== -1 && (i = a - 1, i - r + 1 >= t && n.push([r, i]), r = -1);
276
+ }
277
+ return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
278
+ }
279
+ var O = 32;
280
+ function k(e, t, n, { location: r = T.location, distance: i = T.distance, threshold: a = T.threshold, findAllMatches: o = T.findAllMatches, minMatchCharLength: s = T.minMatchCharLength, includeMatches: c = T.includeMatches, ignoreLocation: l = T.ignoreLocation } = {}) {
281
+ if (t.length > O) throw Error(h(O));
282
+ let u = t.length, d = e.length, f = Math.max(0, Math.min(r, d)), p = a, m = f, g = (e, t) => {
283
+ let n = e / u;
284
+ if (l) return n;
285
+ let r = Math.abs(f - t);
286
+ return i ? n + r / i : r ? 1 : n;
287
+ }, _ = s > 1 || c, v = _ ? Array(d) : [], y;
288
+ for (; (y = e.indexOf(t, m)) > -1;) {
289
+ let e = g(0, y);
290
+ if (p = Math.min(e, p), m = y + u, _) {
291
+ let e = 0;
292
+ for (; e < u;) v[y + e] = 1, e += 1;
293
+ }
294
+ }
295
+ m = -1;
296
+ let b = [], x = 1, S = u + d, C = 1 << u - 1;
297
+ for (let t = 0; t < u; t += 1) {
298
+ let r = 0, i = S;
299
+ for (; r < i;) g(t, f + i) <= p ? r = i : S = i, i = Math.floor((S - r) / 2 + r);
300
+ S = i;
301
+ let a = Math.max(1, f - i + 1), s = o ? d : Math.min(f + i, d) + u, c = Array(s + 2);
302
+ c[s + 1] = (1 << t) - 1;
303
+ for (let r = s; r >= a; --r) {
304
+ let i = r - 1, o = n[e[i]];
305
+ if (_ && (v[i] = +!!o), c[r] = (c[r + 1] << 1 | 1) & o, t && (c[r] |= (b[r + 1] | b[r]) << 1 | 1 | b[r + 1]), c[r] & C && (x = g(t, i), x <= p)) {
306
+ if (p = x, m = i, m <= f) break;
307
+ a = Math.max(1, 2 * f - m);
308
+ }
309
+ }
310
+ if (g(t + 1, f) > p) break;
311
+ b = c;
312
+ }
313
+ let w = {
314
+ isMatch: m >= 0,
315
+ score: Math.max(.001, x)
316
+ };
317
+ if (_) {
318
+ let e = oe(v, s);
319
+ e.length ? c && (w.indices = e) : w.isMatch = !1;
320
+ }
321
+ return w;
322
+ }
323
+ function A(e) {
324
+ let t = {};
325
+ for (let n = 0, r = e.length; n < r; n += 1) {
326
+ let i = e.charAt(n);
327
+ t[i] = (t[i] || 0) | 1 << r - n - 1;
328
+ }
329
+ return t;
330
+ }
331
+ function j(e) {
332
+ if (e.length <= 1) return e;
333
+ e.sort((e, t) => e[0] - t[0] || e[1] - t[1]);
334
+ let t = [e[0]];
335
+ for (let n = 1, r = e.length; n < r; n += 1) {
336
+ let r = t[t.length - 1], i = e[n];
337
+ i[0] <= r[1] + 1 ? r[1] = Math.max(r[1], i[1]) : t.push(i);
338
+ }
339
+ return t;
340
+ }
341
+ var M = {
342
+ ł: "l",
343
+ Ł: "L",
344
+ đ: "d",
345
+ Đ: "D",
346
+ ø: "o",
347
+ Ø: "O",
348
+ ħ: "h",
349
+ Ħ: "H",
350
+ ŧ: "t",
351
+ Ŧ: "T",
352
+ ı: "i",
353
+ ß: "ss"
354
+ }, se = RegExp("[" + Object.keys(M).join("") + "]", "g"), N = String.prototype.normalize ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(se, (e) => M[e]) : (e) => e, P = class {
355
+ constructor(e, { location: t = T.location, threshold: n = T.threshold, distance: r = T.distance, includeMatches: i = T.includeMatches, findAllMatches: a = T.findAllMatches, minMatchCharLength: o = T.minMatchCharLength, isCaseSensitive: s = T.isCaseSensitive, ignoreDiacritics: c = T.ignoreDiacritics, ignoreLocation: l = T.ignoreLocation } = {}) {
356
+ if (this.options = {
357
+ location: t,
358
+ threshold: n,
359
+ distance: r,
360
+ includeMatches: i,
361
+ findAllMatches: a,
362
+ minMatchCharLength: o,
363
+ isCaseSensitive: s,
364
+ ignoreDiacritics: c,
365
+ ignoreLocation: l
366
+ }, e = s ? e : e.toLowerCase(), e = c ? N(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
367
+ let u = (e, t) => {
368
+ this.chunks.push({
369
+ pattern: e,
370
+ alphabet: A(e),
371
+ startIndex: t
372
+ });
373
+ }, d = this.pattern.length;
374
+ if (d > O) {
375
+ let e = 0, t = d % O, n = d - t;
376
+ for (; e < n;) u(this.pattern.substr(e, O), e), e += O;
377
+ if (t) {
378
+ let e = d - O;
379
+ u(this.pattern.substr(e), e);
380
+ }
381
+ } else u(this.pattern, 0);
382
+ }
383
+ searchIn(e) {
384
+ let { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
385
+ if (e = t ? e : e.toLowerCase(), e = n ? N(e) : e, this.pattern === e) {
386
+ let t = {
387
+ isMatch: !0,
388
+ score: 0
389
+ };
390
+ return r && (t.indices = [[0, e.length - 1]]), t;
391
+ }
392
+ let { location: i, distance: a, threshold: o, findAllMatches: s, minMatchCharLength: c, ignoreLocation: l } = this.options, u = [], d = 0, f = !1;
393
+ this.chunks.forEach(({ pattern: t, alphabet: n, startIndex: p }) => {
394
+ let { isMatch: m, score: h, indices: g } = k(e, t, n, {
395
+ location: i + p,
396
+ distance: a,
397
+ threshold: o,
398
+ findAllMatches: s,
399
+ minMatchCharLength: c,
400
+ includeMatches: r,
401
+ ignoreLocation: l
402
+ });
403
+ m && (f = !0), d += h, m && g && u.push(...g);
404
+ });
405
+ let p = {
406
+ isMatch: f,
407
+ score: f ? d / this.chunks.length : 1
408
+ };
409
+ return f && r && (p.indices = j(u)), p;
410
+ }
411
+ }, F = class {
412
+ constructor(e) {
413
+ this.pattern = e;
414
+ }
415
+ static isMultiMatch(e) {
416
+ return I(e, this.multiRegex);
417
+ }
418
+ static isSingleMatch(e) {
419
+ return I(e, this.singleRegex);
420
+ }
421
+ search(e) {
422
+ return {
423
+ isMatch: !1,
424
+ score: 1
425
+ };
426
+ }
427
+ };
428
+ function I(e, t) {
429
+ let n = e.match(t);
430
+ return n ? n[1] : null;
431
+ }
432
+ var ce = class extends F {
433
+ constructor(e) {
434
+ super(e);
435
+ }
436
+ static get type() {
437
+ return "exact";
438
+ }
439
+ static get multiRegex() {
440
+ return /^="(.*)"$/;
441
+ }
442
+ static get singleRegex() {
443
+ return /^=(.*)$/;
444
+ }
445
+ search(e) {
446
+ let t = e === this.pattern;
447
+ return {
448
+ isMatch: t,
449
+ score: +!t,
450
+ indices: [0, this.pattern.length - 1]
451
+ };
452
+ }
453
+ }, le = class extends F {
454
+ constructor(e) {
455
+ super(e);
456
+ }
457
+ static get type() {
458
+ return "inverse-exact";
459
+ }
460
+ static get multiRegex() {
461
+ return /^!"(.*)"$/;
462
+ }
463
+ static get singleRegex() {
464
+ return /^!(.*)$/;
465
+ }
466
+ search(e) {
467
+ let t = e.indexOf(this.pattern) === -1;
468
+ return {
469
+ isMatch: t,
470
+ score: +!t,
471
+ indices: [0, e.length - 1]
472
+ };
473
+ }
474
+ }, ue = class extends F {
475
+ constructor(e) {
476
+ super(e);
477
+ }
478
+ static get type() {
479
+ return "prefix-exact";
480
+ }
481
+ static get multiRegex() {
482
+ return /^\^"(.*)"$/;
483
+ }
484
+ static get singleRegex() {
485
+ return /^\^(.*)$/;
486
+ }
487
+ search(e) {
488
+ let t = e.startsWith(this.pattern);
489
+ return {
490
+ isMatch: t,
491
+ score: +!t,
492
+ indices: [0, this.pattern.length - 1]
493
+ };
494
+ }
495
+ }, de = class extends F {
496
+ constructor(e) {
497
+ super(e);
498
+ }
499
+ static get type() {
500
+ return "inverse-prefix-exact";
501
+ }
502
+ static get multiRegex() {
503
+ return /^!\^"(.*)"$/;
504
+ }
505
+ static get singleRegex() {
506
+ return /^!\^(.*)$/;
507
+ }
508
+ search(e) {
509
+ let t = !e.startsWith(this.pattern);
510
+ return {
511
+ isMatch: t,
512
+ score: +!t,
513
+ indices: [0, e.length - 1]
514
+ };
515
+ }
516
+ }, fe = class extends F {
517
+ constructor(e) {
518
+ super(e);
519
+ }
520
+ static get type() {
521
+ return "suffix-exact";
522
+ }
523
+ static get multiRegex() {
524
+ return /^"(.*)"\$$/;
525
+ }
526
+ static get singleRegex() {
527
+ return /^(.*)\$$/;
528
+ }
529
+ search(e) {
530
+ let t = e.endsWith(this.pattern);
531
+ return {
532
+ isMatch: t,
533
+ score: +!t,
534
+ indices: [e.length - this.pattern.length, e.length - 1]
535
+ };
536
+ }
537
+ }, pe = class extends F {
538
+ constructor(e) {
539
+ super(e);
540
+ }
541
+ static get type() {
542
+ return "inverse-suffix-exact";
543
+ }
544
+ static get multiRegex() {
545
+ return /^!"(.*)"\$$/;
546
+ }
547
+ static get singleRegex() {
548
+ return /^!(.*)\$$/;
549
+ }
550
+ search(e) {
551
+ let t = !e.endsWith(this.pattern);
552
+ return {
553
+ isMatch: t,
554
+ score: +!t,
555
+ indices: [0, e.length - 1]
556
+ };
557
+ }
558
+ }, L = class extends F {
559
+ constructor(e, { location: t = T.location, threshold: n = T.threshold, distance: r = T.distance, includeMatches: i = T.includeMatches, findAllMatches: a = T.findAllMatches, minMatchCharLength: o = T.minMatchCharLength, isCaseSensitive: s = T.isCaseSensitive, ignoreDiacritics: c = T.ignoreDiacritics, ignoreLocation: l = T.ignoreLocation } = {}) {
560
+ super(e), this._bitapSearch = new P(e, {
561
+ location: t,
562
+ threshold: n,
563
+ distance: r,
564
+ includeMatches: i,
565
+ findAllMatches: a,
566
+ minMatchCharLength: o,
567
+ isCaseSensitive: s,
568
+ ignoreDiacritics: c,
569
+ ignoreLocation: l
570
+ });
571
+ }
572
+ static get type() {
573
+ return "fuzzy";
574
+ }
575
+ static get multiRegex() {
576
+ return /^"(.*)"$/;
577
+ }
578
+ static get singleRegex() {
579
+ return /^(.*)$/;
580
+ }
581
+ search(e) {
582
+ return this._bitapSearch.searchIn(e);
583
+ }
584
+ }, R = class extends F {
585
+ constructor(e) {
586
+ super(e);
587
+ }
588
+ static get type() {
589
+ return "include";
590
+ }
591
+ static get multiRegex() {
592
+ return /^'"(.*)"$/;
593
+ }
594
+ static get singleRegex() {
595
+ return /^'(.*)$/;
596
+ }
597
+ search(e) {
598
+ let t = 0, n, r = [], i = this.pattern.length;
599
+ for (; (n = e.indexOf(this.pattern, t)) > -1;) t = n + i, r.push([n, t - 1]);
600
+ let a = !!r.length;
601
+ return {
602
+ isMatch: a,
603
+ score: +!a,
604
+ indices: r
605
+ };
606
+ }
607
+ }, z = [
608
+ ce,
609
+ R,
610
+ ue,
611
+ de,
612
+ pe,
613
+ fe,
614
+ le,
615
+ L
616
+ ], B = z.length, me = "\0", he = "|";
617
+ function ge(e) {
618
+ let t = [], n = e.length, r = 0;
619
+ for (; r < n;) {
620
+ for (; r < n && e[r] === " ";) r++;
621
+ if (r >= n) break;
622
+ let i = r;
623
+ for (; i < n && e[i] !== " " && e[i] !== "\"";) i++;
624
+ if (i < n && e[i] === "\"") {
625
+ for (i++; i < n;) {
626
+ if (e[i] === "\"") {
627
+ let t = i + 1;
628
+ if (t >= n || e[t] === " ") {
629
+ i++;
630
+ break;
631
+ }
632
+ if (e[t] === "$" && (t + 1 >= n || e[t + 1] === " ")) {
633
+ i += 2;
634
+ break;
635
+ }
636
+ }
637
+ i++;
638
+ }
639
+ t.push(e.substring(r, i)), r = i;
640
+ } else {
641
+ for (; i < n && e[i] !== " ";) i++;
642
+ t.push(e.substring(r, i)), r = i;
643
+ }
644
+ }
645
+ return t;
646
+ }
647
+ function _e(e, t = {}) {
648
+ return e.replace(/\\\|/g, me).split(he).map((e) => {
649
+ let n = ge(e.replace(/\u0000/g, "|").trim()).filter((e) => e && !!e.trim()), r = [];
650
+ for (let e = 0, i = n.length; e < i; e += 1) {
651
+ let i = n[e], a = !1, o = -1;
652
+ for (; !a && ++o < B;) {
653
+ let e = z[o], n = e.isMultiMatch(i);
654
+ n && (r.push(new e(n, t)), a = !0);
655
+ }
656
+ if (!a) for (o = -1; ++o < B;) {
657
+ let e = z[o], n = e.isSingleMatch(i);
658
+ if (n) {
659
+ r.push(new e(n, t));
660
+ break;
661
+ }
662
+ }
663
+ }
664
+ return r;
665
+ });
666
+ }
667
+ var ve = new Set([L.type, R.type]), ye = class {
668
+ constructor(e, { isCaseSensitive: t = T.isCaseSensitive, ignoreDiacritics: n = T.ignoreDiacritics, includeMatches: r = T.includeMatches, minMatchCharLength: i = T.minMatchCharLength, ignoreLocation: a = T.ignoreLocation, findAllMatches: o = T.findAllMatches, location: s = T.location, threshold: c = T.threshold, distance: l = T.distance } = {}) {
669
+ this.query = null, this.options = {
670
+ isCaseSensitive: t,
671
+ ignoreDiacritics: n,
672
+ includeMatches: r,
673
+ minMatchCharLength: i,
674
+ findAllMatches: o,
675
+ ignoreLocation: a,
676
+ location: s,
677
+ threshold: c,
678
+ distance: l
679
+ }, e = t ? e : e.toLowerCase(), e = n ? N(e) : e, this.pattern = e, this.query = _e(this.pattern, this.options);
680
+ }
681
+ static condition(e, t) {
682
+ return t.useExtendedSearch;
683
+ }
684
+ searchIn(e) {
685
+ let t = this.query;
686
+ if (!t) return {
687
+ isMatch: !1,
688
+ score: 1
689
+ };
690
+ let { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: i } = this.options;
691
+ e = r ? e : e.toLowerCase(), e = i ? N(e) : e;
692
+ let a = 0, o = [], s = 0, c = !1;
693
+ for (let r = 0, i = t.length; r < i; r += 1) {
694
+ let i = t[r];
695
+ o.length = 0, a = 0, c = !1;
696
+ for (let t = 0, r = i.length; t < r; t += 1) {
697
+ let r = i[t], { isMatch: l, indices: u, score: d } = r.search(e);
698
+ if (l) {
699
+ a += 1, s += d;
700
+ let e = r.constructor.type;
701
+ e.startsWith("inverse") && (c = !0), n && (ve.has(e) ? o.push(...u) : o.push(u));
702
+ } else {
703
+ s = 0, a = 0, o.length = 0, c = !1;
704
+ break;
705
+ }
706
+ }
707
+ if (a) {
708
+ let e = {
709
+ isMatch: !0,
710
+ score: s / a
711
+ };
712
+ return c && (e.hasInverse = !0), n && (e.indices = j(o)), e;
713
+ }
714
+ }
715
+ return {
716
+ isMatch: !1,
717
+ score: 1
718
+ };
719
+ }
720
+ }, V = [];
721
+ function H(...e) {
722
+ V.push(...e);
723
+ }
724
+ function U(e, t) {
725
+ for (let n = 0, r = V.length; n < r; n += 1) {
726
+ let r = V[n];
727
+ if (r.condition(e, t)) return new r(e, t);
728
+ }
729
+ return new P(e, t);
730
+ }
731
+ var W = {
732
+ AND: "$and",
733
+ OR: "$or"
734
+ }, G = {
735
+ PATH: "$path",
736
+ PATTERN: "$val"
737
+ }, K = (e) => !!(e[W.AND] || e[W.OR]), be = (e) => !!e[G.PATH], xe = (e) => !n(e) && c(e) && !K(e), q = (e) => ({ [W.AND]: Object.keys(e).map((t) => ({ [t]: e[t] })) });
738
+ function J(e, t, { auto: r = !0 } = {}) {
739
+ let i = (e) => {
740
+ if (a(e)) {
741
+ let n = {
742
+ keyId: null,
743
+ pattern: e
744
+ };
745
+ return r && (n.searcher = U(e, t)), n;
746
+ }
747
+ let o = Object.keys(e), s = be(e);
748
+ if (!s && o.length > 1 && !K(e)) return i(q(e));
749
+ if (xe(e)) {
750
+ let n = s ? e[G.PATH] : o[0], i = s ? e[G.PATTERN] : e[n];
751
+ if (!a(i)) throw Error(m(n));
752
+ let c = {
753
+ keyId: S(n),
754
+ pattern: i
755
+ };
756
+ return r && (c.searcher = U(i, t)), c;
757
+ }
758
+ let c = {
759
+ children: [],
760
+ operator: o[0]
761
+ };
762
+ return o.forEach((t) => {
763
+ let r = e[t];
764
+ n(r) && r.forEach((e) => {
765
+ c.children.push(i(e));
766
+ });
767
+ }), c;
768
+ };
769
+ return K(e) || (e = q(e)), i(e);
770
+ }
771
+ function Y(e, { ignoreFieldNorm: t = T.ignoreFieldNorm }) {
772
+ let n = 1;
773
+ return e.forEach(({ key: e, norm: r, score: i }) => {
774
+ let a = e ? e.weight : null;
775
+ n *= (i === 0 && a ? 2 ** -52 : i) ** +((a || 1) * (t ? 1 : r));
776
+ }), n;
777
+ }
778
+ function Se(e, { ignoreFieldNorm: t = T.ignoreFieldNorm }) {
779
+ e.forEach((e) => {
780
+ e.score = Y(e.matches, { ignoreFieldNorm: t });
781
+ });
782
+ }
783
+ var Ce = class {
784
+ constructor(e) {
785
+ this.limit = e, this.heap = [];
786
+ }
787
+ get size() {
788
+ return this.heap.length;
789
+ }
790
+ shouldInsert(e) {
791
+ return this.size < this.limit || e < this.heap[0].score;
792
+ }
793
+ insert(e) {
794
+ this.size < this.limit ? (this.heap.push(e), this._bubbleUp(this.size - 1)) : e.score < this.heap[0].score && (this.heap[0] = e, this._sinkDown(0));
795
+ }
796
+ extractSorted(e) {
797
+ return this.heap.sort(e);
798
+ }
799
+ _bubbleUp(e) {
800
+ let t = this.heap;
801
+ for (; e > 0;) {
802
+ let n = e - 1 >> 1;
803
+ if (t[e].score <= t[n].score) break;
804
+ let r = t[e];
805
+ t[e] = t[n], t[n] = r, e = n;
806
+ }
807
+ }
808
+ _sinkDown(e) {
809
+ let t = this.heap, n = t.length, r = e;
810
+ do {
811
+ e = r;
812
+ let i = 2 * e + 1, a = 2 * e + 2;
813
+ if (i < n && t[i].score > t[r].score && (r = i), a < n && t[a].score > t[r].score && (r = a), r !== e) {
814
+ let n = t[e];
815
+ t[e] = t[r], t[r] = n;
816
+ }
817
+ } while (r !== e);
818
+ }
819
+ };
820
+ function we(e, t) {
821
+ let n = e.matches;
822
+ t.matches = [], u(n) && n.forEach((e) => {
823
+ if (!u(e.indices) || !e.indices.length) return;
824
+ let { indices: n, value: r } = e, i = {
825
+ indices: n,
826
+ value: r
827
+ };
828
+ e.key && (i.key = e.key.src), e.idx > -1 && (i.refIndex = e.idx), t.matches.push(i);
829
+ });
830
+ }
831
+ function Te(e, t) {
832
+ t.score = e.score;
833
+ }
834
+ function Ee(e, t, { includeMatches: n = T.includeMatches, includeScore: r = T.includeScore } = {}) {
835
+ let i = [];
836
+ return n && i.push(we), r && i.push(Te), e.map((e) => {
837
+ let { idx: n } = e, r = {
838
+ item: t[n],
839
+ refIndex: n
840
+ };
841
+ return i.length && i.forEach((t) => {
842
+ t(e, r);
843
+ }), r;
844
+ });
845
+ }
846
+ var X = /\b\w+\b/g;
847
+ function Z({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1 } = {}) {
848
+ return { tokenize(n) {
849
+ return e || (n = n.toLowerCase()), t && (n = N(n)), n.match(X) || [];
850
+ } };
851
+ }
852
+ function De(e, t, n) {
853
+ let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = 0;
854
+ function o(e, t, o, s) {
855
+ let c = n.tokenize(e);
856
+ if (!c.length) return;
857
+ a++;
858
+ let l = /* @__PURE__ */ new Map();
859
+ for (let e of c) l.set(e, (l.get(e) || 0) + 1);
860
+ for (let [e, n] of l) {
861
+ let a = {
862
+ docIdx: t,
863
+ keyIdx: o,
864
+ subIdx: s,
865
+ tf: n
866
+ }, c = r.get(e);
867
+ c || (c = [], r.set(e, c)), c.push(a), i.set(e, (i.get(e) || 0) + 1);
868
+ }
869
+ }
870
+ for (let n of e) {
871
+ let { i: e, v: r, $: i } = n;
872
+ if (r !== void 0) {
873
+ o(r, e, -1, -1);
874
+ continue;
875
+ }
876
+ if (i) for (let n = 0; n < t; n++) {
877
+ let t = i[n];
878
+ if (t) if (Array.isArray(t)) for (let r of t) {
879
+ var s;
880
+ o(r.v, e, n, (s = r.i) == null ? -1 : s);
881
+ }
882
+ else o(t.v, e, n, -1);
883
+ }
884
+ }
885
+ return {
886
+ terms: r,
887
+ fieldCount: a,
888
+ df: i
889
+ };
890
+ }
891
+ function Oe(e, t, n, r) {
892
+ let { i, v: a, $: o } = t;
893
+ function s(t, n, a) {
894
+ let o = r.tokenize(t);
895
+ if (!o.length) return;
896
+ e.fieldCount++;
897
+ let s = /* @__PURE__ */ new Map();
898
+ for (let e of o) s.set(e, (s.get(e) || 0) + 1);
899
+ for (let [t, r] of s) {
900
+ let o = {
901
+ docIdx: i,
902
+ keyIdx: n,
903
+ subIdx: a,
904
+ tf: r
905
+ }, s = e.terms.get(t);
906
+ s || (s = [], e.terms.set(t, s)), s.push(o), e.df.set(t, (e.df.get(t) || 0) + 1);
907
+ }
908
+ }
909
+ if (a !== void 0) {
910
+ s(a, -1, -1);
911
+ return;
912
+ }
913
+ if (o) for (let e = 0; e < n; e++) {
914
+ let t = o[e];
915
+ if (t) if (Array.isArray(t)) for (let n of t) {
916
+ var c;
917
+ s(n.v, e, (c = n.i) == null ? -1 : c);
918
+ }
919
+ else s(t.v, e, -1);
920
+ }
921
+ }
922
+ function Q(e, t) {
923
+ for (let [n, r] of e.terms) {
924
+ let i = r.filter((e) => e.docIdx !== t), a = r.length - i.length;
925
+ a > 0 && (e.fieldCount -= a, e.df.set(n, (e.df.get(n) || 0) - a), i.length === 0 ? (e.terms.delete(n), e.df.delete(n)) : e.terms.set(n, i));
926
+ }
927
+ }
928
+ var $ = class {
929
+ constructor(e, t, n) {
930
+ this.options = {
931
+ ...T,
932
+ ...t
933
+ }, this.options.useExtendedSearch, this.options.useTokenSearch, this._keyStore = new y(this.options.keys), this._docs = e, this._myIndex = null, this._invertedIndex = null, this.setCollection(e, n), this._lastQuery = null, this._lastSearcher = null;
934
+ }
935
+ _getSearcher(e) {
936
+ if (this._lastQuery === e) return this._lastSearcher;
937
+ let t = U(e, this._invertedIndex ? {
938
+ ...this.options,
939
+ _invertedIndex: this._invertedIndex
940
+ } : this.options);
941
+ return this._lastQuery = e, this._lastSearcher = t, t;
942
+ }
943
+ setCollection(e, t) {
944
+ if (this._docs = e, t && !(t instanceof E)) throw Error(p);
945
+ if (this._myIndex = t || D(this.options.keys, this._docs, {
946
+ getFn: this.options.getFn,
947
+ fieldNormWeight: this.options.fieldNormWeight
948
+ }), this.options.useTokenSearch) {
949
+ let e = Z({
950
+ isCaseSensitive: this.options.isCaseSensitive,
951
+ ignoreDiacritics: this.options.ignoreDiacritics
952
+ });
953
+ this._invertedIndex = De(this._myIndex.records, this._myIndex.keys.length, e);
954
+ }
955
+ }
956
+ add(e) {
957
+ if (u(e) && (this._docs.push(e), this._myIndex.add(e), this._invertedIndex)) {
958
+ let e = this._myIndex.records[this._myIndex.records.length - 1], t = Z({
959
+ isCaseSensitive: this.options.isCaseSensitive,
960
+ ignoreDiacritics: this.options.ignoreDiacritics
961
+ });
962
+ Oe(this._invertedIndex, e, this._myIndex.keys.length, t);
963
+ }
964
+ }
965
+ remove(e = () => !1) {
966
+ let t = [], n = [];
967
+ for (let r = 0, i = this._docs.length; r < i; r += 1) e(this._docs[r], r) && (t.push(this._docs[r]), n.push(r));
968
+ if (n.length) {
969
+ if (this._invertedIndex) for (let e of n) Q(this._invertedIndex, e);
970
+ for (let e = n.length - 1; e >= 0; --e) this._docs.splice(n[e], 1);
971
+ this._myIndex.removeAll(n);
972
+ }
973
+ return t;
974
+ }
975
+ removeAt(e) {
976
+ this._invertedIndex && Q(this._invertedIndex, e);
977
+ let t = this._docs.splice(e, 1)[0];
978
+ return this._myIndex.removeAt(e), t;
979
+ }
980
+ getIndex() {
981
+ return this._myIndex;
982
+ }
983
+ search(e, t) {
984
+ let { limit: n = -1 } = t || {}, { includeMatches: r, includeScore: i, shouldSort: s, sortFn: c, ignoreFieldNorm: l } = this.options;
985
+ if (a(e) && !e.trim()) {
986
+ let e = this._docs.map((e, t) => ({
987
+ item: e,
988
+ refIndex: t
989
+ }));
990
+ return o(n) && n > -1 && (e = e.slice(0, n)), e;
991
+ }
992
+ let u = o(n) && n > 0 && a(e), d;
993
+ if (u) {
994
+ let t = new Ce(n);
995
+ a(this._docs[0]) ? this._searchStringList(e, {
996
+ heap: t,
997
+ ignoreFieldNorm: l
998
+ }) : this._searchObjectList(e, {
999
+ heap: t,
1000
+ ignoreFieldNorm: l
1001
+ }), d = t.extractSorted(c);
1002
+ } else d = a(e) ? a(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e), Se(d, { ignoreFieldNorm: l }), s && d.sort(c), o(n) && n > -1 && (d = d.slice(0, n));
1003
+ return Ee(d, this._docs, {
1004
+ includeMatches: r,
1005
+ includeScore: i
1006
+ });
1007
+ }
1008
+ _searchStringList(e, { heap: t, ignoreFieldNorm: n } = {}) {
1009
+ let r = this._getSearcher(e), { records: i } = this._myIndex, a = t ? null : [];
1010
+ return i.forEach(({ v: e, i, n: o }) => {
1011
+ if (!u(e)) return;
1012
+ let { isMatch: s, score: c, indices: l } = r.searchIn(e);
1013
+ if (s) {
1014
+ let r = {
1015
+ item: e,
1016
+ idx: i,
1017
+ matches: [{
1018
+ score: c,
1019
+ value: e,
1020
+ norm: o,
1021
+ indices: l
1022
+ }]
1023
+ };
1024
+ t ? (r.score = Y(r.matches, { ignoreFieldNorm: n }), t.shouldInsert(r.score) && t.insert(r)) : a.push(r);
1025
+ }
1026
+ }), a;
1027
+ }
1028
+ _searchLogical(e) {
1029
+ let t = J(e, this.options), n = (e, t, r) => {
1030
+ if (!("children" in e)) {
1031
+ let { keyId: n, searcher: i } = e, a;
1032
+ return n === null ? (a = [], this._myIndex.keys.forEach((e, n) => {
1033
+ a.push(...this._findMatches({
1034
+ key: e,
1035
+ value: t[n],
1036
+ searcher: i
1037
+ }));
1038
+ })) : a = this._findMatches({
1039
+ key: this._keyStore.get(n),
1040
+ value: this._myIndex.getValueForItemAtKeyId(t, n),
1041
+ searcher: i
1042
+ }), a && a.length ? [{
1043
+ idx: r,
1044
+ item: t,
1045
+ matches: a
1046
+ }] : [];
1047
+ }
1048
+ let { children: i, operator: a } = e, o = [];
1049
+ for (let e = 0, s = i.length; e < s; e += 1) {
1050
+ let s = i[e], c = n(s, t, r);
1051
+ if (c.length) o.push(...c);
1052
+ else if (a === W.AND) return [];
1053
+ }
1054
+ return o;
1055
+ }, r = this._myIndex.records, i = /* @__PURE__ */ new Map(), a = [];
1056
+ return r.forEach(({ $: e, i: r }) => {
1057
+ if (u(e)) {
1058
+ let o = n(t, e, r);
1059
+ o.length && (i.has(r) || (i.set(r, {
1060
+ idx: r,
1061
+ item: e,
1062
+ matches: []
1063
+ }), a.push(i.get(r))), o.forEach(({ matches: e }) => {
1064
+ i.get(r).matches.push(...e);
1065
+ }));
1066
+ }
1067
+ }), a;
1068
+ }
1069
+ _searchObjectList(e, { heap: t, ignoreFieldNorm: n } = {}) {
1070
+ let r = this._getSearcher(e), { keys: i, records: a } = this._myIndex, o = t ? null : [];
1071
+ return a.forEach(({ $: e, i: a }) => {
1072
+ if (!u(e)) return;
1073
+ let s = [], c = !1, l = !1;
1074
+ if (i.forEach((t, n) => {
1075
+ let i = this._findMatches({
1076
+ key: t,
1077
+ value: e[n],
1078
+ searcher: r
1079
+ });
1080
+ i.length ? (s.push(...i), i[0].hasInverse && (l = !0)) : c = !0;
1081
+ }), !(l && c) && s.length) {
1082
+ let r = {
1083
+ idx: a,
1084
+ item: e,
1085
+ matches: s
1086
+ };
1087
+ t ? (r.score = Y(r.matches, { ignoreFieldNorm: n }), t.shouldInsert(r.score) && t.insert(r)) : o.push(r);
1088
+ }
1089
+ }), o;
1090
+ }
1091
+ _findMatches({ key: e, value: t, searcher: r }) {
1092
+ if (!u(t)) return [];
1093
+ let i = [];
1094
+ if (n(t)) t.forEach(({ v: t, i: n, n: a }) => {
1095
+ if (!u(t)) return;
1096
+ let { isMatch: o, score: s, indices: c, hasInverse: l } = r.searchIn(t);
1097
+ o && i.push({
1098
+ score: s,
1099
+ key: e,
1100
+ value: t,
1101
+ idx: n,
1102
+ norm: a,
1103
+ indices: c,
1104
+ hasInverse: l
1105
+ });
1106
+ });
1107
+ else {
1108
+ let { v: n, n: a } = t, { isMatch: o, score: s, indices: c, hasInverse: l } = r.searchIn(n);
1109
+ o && i.push({
1110
+ score: s,
1111
+ key: e,
1112
+ value: n,
1113
+ norm: a,
1114
+ indices: c,
1115
+ hasInverse: l
1116
+ });
1117
+ }
1118
+ return i;
1119
+ }
1120
+ }, ke = class {
1121
+ static condition(e, t) {
1122
+ return t.useTokenSearch;
1123
+ }
1124
+ constructor(e, t) {
1125
+ this.options = t, this.analyzer = Z({
1126
+ isCaseSensitive: t.isCaseSensitive,
1127
+ ignoreDiacritics: t.ignoreDiacritics
1128
+ });
1129
+ let n = this.analyzer.tokenize(e), { df: r, fieldCount: i } = t._invertedIndex;
1130
+ this.termSearchers = [], this.idfWeights = [];
1131
+ for (let e of n) {
1132
+ this.termSearchers.push(new P(e, {
1133
+ location: t.location,
1134
+ threshold: t.threshold,
1135
+ distance: t.distance,
1136
+ includeMatches: t.includeMatches,
1137
+ findAllMatches: t.findAllMatches,
1138
+ minMatchCharLength: t.minMatchCharLength,
1139
+ isCaseSensitive: t.isCaseSensitive,
1140
+ ignoreDiacritics: t.ignoreDiacritics,
1141
+ ignoreLocation: !0
1142
+ }));
1143
+ let n = r.get(e) || 0, a = Math.log(1 + (i - n + .5) / (n + .5));
1144
+ this.idfWeights.push(a);
1145
+ }
1146
+ }
1147
+ searchIn(e) {
1148
+ if (!this.termSearchers.length) return {
1149
+ isMatch: !1,
1150
+ score: 1
1151
+ };
1152
+ let t = [], n = 0, r = 0, i = 0;
1153
+ for (let a = 0; a < this.termSearchers.length; a++) {
1154
+ let o = this.termSearchers[a].searchIn(e), s = this.idfWeights[a];
1155
+ r += s, o.isMatch && (i++, n += s * (1 - o.score), o.indices && t.push(...o.indices));
1156
+ }
1157
+ if (i === 0) return {
1158
+ isMatch: !1,
1159
+ score: 1
1160
+ };
1161
+ let a = r > 0 ? 1 - n / r : 0, o = {
1162
+ isMatch: !0,
1163
+ score: Math.max(.001, a)
1164
+ };
1165
+ return this.options.includeMatches && t.length && (o.indices = j(t)), o;
1166
+ }
1167
+ };
1168
+ $.version = "7.3.0", $.createIndex = D, $.parseIndex = ae, $.config = T, $.match = function(e, t, n) {
1169
+ return U(e, {
1170
+ ...T,
1171
+ ...n
1172
+ }).searchIn(t);
1173
+ }, $.parseQuery = J, H(ye), H(ke), $.use = function(...e) {
1174
+ e.forEach((e) => H(e));
1175
+ };
1176
+ //#endregion
1177
+ export { t as n, $ as t };