@eox/itemfilter 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-itemfilter.js +653 -495
- package/dist/eox-itemfilter.umd.cjs +81 -48
- package/package.json +3 -2
- package/test/general.cy.ts +19 -1
- package/test/inlineMode.cy.ts +24 -0
- package/test/styledResults.cy.ts +21 -0
- package/test/styledResults.html +45 -0
package/dist/eox-itemfilter.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var m = (i, t, e) => (
|
|
1
|
+
var _e = Object.defineProperty;
|
|
2
|
+
var $e = (i, t, e) => t in i ? _e(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var m = (i, t, e) => ($e(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2019 Google LLC
|
|
7
7
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
8
|
*/
|
|
9
|
-
const
|
|
10
|
-
let
|
|
9
|
+
const nt = window, Ot = nt.ShadowRoot && (nt.ShadyCSS === void 0 || nt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ie = Symbol(), Pt = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
let ye = class {
|
|
11
11
|
constructor(t, e, s) {
|
|
12
|
-
if (this._$cssResult$ = !0, s !==
|
|
12
|
+
if (this._$cssResult$ = !0, s !== ie)
|
|
13
13
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
14
14
|
this.cssText = t, this.t = e;
|
|
15
15
|
}
|
|
16
16
|
get styleSheet() {
|
|
17
17
|
let t = this.o;
|
|
18
18
|
const e = this.t;
|
|
19
|
-
if (
|
|
19
|
+
if (Ot && t === void 0) {
|
|
20
20
|
const s = e !== void 0 && e.length === 1;
|
|
21
|
-
s && (t =
|
|
21
|
+
s && (t = Pt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Pt.set(e, t));
|
|
22
22
|
}
|
|
23
23
|
return t;
|
|
24
24
|
}
|
|
@@ -26,27 +26,27 @@ let pe = class {
|
|
|
26
26
|
return this.cssText;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
const s = document.createElement("style"), r =
|
|
29
|
+
const ve = (i) => new ye(typeof i == "string" ? i : i + "", void 0, ie), Ae = (i, t) => {
|
|
30
|
+
Ot ? i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
|
|
31
|
+
const s = document.createElement("style"), r = nt.litNonce;
|
|
32
32
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, i.appendChild(s);
|
|
33
33
|
});
|
|
34
|
-
},
|
|
34
|
+
}, jt = Ot ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
35
35
|
let e = "";
|
|
36
36
|
for (const s of t.cssRules)
|
|
37
37
|
e += s.cssText;
|
|
38
|
-
return
|
|
38
|
+
return ve(e);
|
|
39
39
|
})(i) : i;
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
const
|
|
45
|
+
var dt;
|
|
46
|
+
const ot = window, Ht = ot.trustedTypes, Ee = Ht ? Ht.emptyScript : "", Ut = ot.reactiveElementPolyfillSupport, At = { toAttribute(i, t) {
|
|
47
47
|
switch (t) {
|
|
48
48
|
case Boolean:
|
|
49
|
-
i = i ?
|
|
49
|
+
i = i ? Ee : null;
|
|
50
50
|
break;
|
|
51
51
|
case Object:
|
|
52
52
|
case Array:
|
|
@@ -71,7 +71,7 @@ const it = window, Nt = it.trustedTypes, me = Nt ? Nt.emptyScript : "", Pt = it.
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
return e;
|
|
74
|
-
} },
|
|
74
|
+
} }, re = (i, t) => t !== i && (t == t || i == i), ft = { attribute: !0, type: String, converter: At, reflect: !1, hasChanged: re };
|
|
75
75
|
let z = class extends HTMLElement {
|
|
76
76
|
constructor() {
|
|
77
77
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
@@ -88,7 +88,7 @@ let z = class extends HTMLElement {
|
|
|
88
88
|
r !== void 0 && (this._$Ev.set(r, s), t.push(r));
|
|
89
89
|
}), t;
|
|
90
90
|
}
|
|
91
|
-
static createProperty(t, e =
|
|
91
|
+
static createProperty(t, e = ft) {
|
|
92
92
|
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
93
93
|
const s = typeof t == "symbol" ? Symbol() : "__" + t, r = this.getPropertyDescriptor(t, s, e);
|
|
94
94
|
r !== void 0 && Object.defineProperty(this.prototype, t, r);
|
|
@@ -103,7 +103,7 @@ let z = class extends HTMLElement {
|
|
|
103
103
|
}, configurable: !0, enumerable: !0 };
|
|
104
104
|
}
|
|
105
105
|
static getPropertyOptions(t) {
|
|
106
|
-
return this.elementProperties.get(t) ||
|
|
106
|
+
return this.elementProperties.get(t) || ft;
|
|
107
107
|
}
|
|
108
108
|
static finalize() {
|
|
109
109
|
if (this.hasOwnProperty("finalized"))
|
|
@@ -122,9 +122,9 @@ let z = class extends HTMLElement {
|
|
|
122
122
|
if (Array.isArray(t)) {
|
|
123
123
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
124
124
|
for (const r of s)
|
|
125
|
-
e.unshift(
|
|
125
|
+
e.unshift(jt(r));
|
|
126
126
|
} else
|
|
127
|
-
t !== void 0 && e.push(
|
|
127
|
+
t !== void 0 && e.push(jt(t));
|
|
128
128
|
return e;
|
|
129
129
|
}
|
|
130
130
|
static _$Ep(t, e) {
|
|
@@ -151,7 +151,7 @@ let z = class extends HTMLElement {
|
|
|
151
151
|
createRenderRoot() {
|
|
152
152
|
var t;
|
|
153
153
|
const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
154
|
-
return
|
|
154
|
+
return Ae(e, this.constructor.elementStyles), e;
|
|
155
155
|
}
|
|
156
156
|
connectedCallback() {
|
|
157
157
|
var t;
|
|
@@ -172,11 +172,11 @@ let z = class extends HTMLElement {
|
|
|
172
172
|
attributeChangedCallback(t, e, s) {
|
|
173
173
|
this._$AK(t, s);
|
|
174
174
|
}
|
|
175
|
-
_$EO(t, e, s =
|
|
175
|
+
_$EO(t, e, s = ft) {
|
|
176
176
|
var r;
|
|
177
177
|
const n = this.constructor._$Ep(t, s);
|
|
178
178
|
if (n !== void 0 && s.reflect === !0) {
|
|
179
|
-
const o = (((r = s.converter) === null || r === void 0 ? void 0 : r.toAttribute) !== void 0 ? s.converter :
|
|
179
|
+
const o = (((r = s.converter) === null || r === void 0 ? void 0 : r.toAttribute) !== void 0 ? s.converter : At).toAttribute(e, s.type);
|
|
180
180
|
this._$El = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$El = null;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
@@ -184,13 +184,13 @@ let z = class extends HTMLElement {
|
|
|
184
184
|
var s;
|
|
185
185
|
const r = this.constructor, n = r._$Ev.get(t);
|
|
186
186
|
if (n !== void 0 && this._$El !== n) {
|
|
187
|
-
const o = r.getPropertyOptions(n), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter :
|
|
187
|
+
const o = r.getPropertyOptions(n), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter : At;
|
|
188
188
|
this._$El = n, this[n] = c.fromAttribute(e, o.type), this._$El = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
requestUpdate(t, e, s) {
|
|
192
192
|
let r = !0;
|
|
193
|
-
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged ||
|
|
193
|
+
t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || re)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : r = !1), !this.isUpdatePending && r && (this._$E_ = this._$Ej());
|
|
194
194
|
}
|
|
195
195
|
async _$Ej() {
|
|
196
196
|
this.isUpdatePending = !0;
|
|
@@ -251,91 +251,91 @@ let z = class extends HTMLElement {
|
|
|
251
251
|
firstUpdated(t) {
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
|
-
z.finalized = !0, z.elementProperties = /* @__PURE__ */ new Map(), z.elementStyles = [], z.shadowRootOptions = { mode: "open" },
|
|
254
|
+
z.finalized = !0, z.elementProperties = /* @__PURE__ */ new Map(), z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, Ut == null || Ut({ ReactiveElement: z }), ((dt = ot.reactiveElementVersions) !== null && dt !== void 0 ? dt : ot.reactiveElementVersions = []).push("1.6.1");
|
|
255
255
|
/**
|
|
256
256
|
* @license
|
|
257
257
|
* Copyright 2017 Google LLC
|
|
258
258
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
259
259
|
*/
|
|
260
|
-
var
|
|
261
|
-
const
|
|
262
|
-
\f\r]`,
|
|
263
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
260
|
+
var pt;
|
|
261
|
+
const lt = window, W = lt.trustedTypes, Ft = W ? W.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Et = "$lit$", T = `lit$${(Math.random() + "").slice(9)}$`, ne = "?" + T, be = `<${ne}>`, H = document, Q = () => H.createComment(""), Z = (i) => i === null || typeof i != "object" && typeof i != "function", oe = Array.isArray, xe = (i) => oe(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", gt = `[
|
|
262
|
+
\f\r]`, Y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Bt = />/g, N = RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
|
|
263
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), zt = /'/g, Wt = /"/g, le = /^(?:script|style|textarea|title)$/i, Se = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), x = Se(1), U = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), Vt = /* @__PURE__ */ new WeakMap(), j = H.createTreeWalker(H, 129, null, !1), we = (i, t) => {
|
|
264
264
|
const e = i.length - 1, s = [];
|
|
265
|
-
let r, n = t === 2 ? "<svg>" : "", o =
|
|
265
|
+
let r, n = t === 2 ? "<svg>" : "", o = Y;
|
|
266
266
|
for (let l = 0; l < e; l++) {
|
|
267
|
-
const
|
|
268
|
-
let
|
|
269
|
-
for (; p <
|
|
270
|
-
p = o.lastIndex, o ===
|
|
271
|
-
const g = o ===
|
|
272
|
-
n += o ===
|
|
267
|
+
const a = i[l];
|
|
268
|
+
let u, h, d = -1, p = 0;
|
|
269
|
+
for (; p < a.length && (o.lastIndex = p, h = o.exec(a), h !== null); )
|
|
270
|
+
p = o.lastIndex, o === Y ? h[1] === "!--" ? o = Dt : h[1] !== void 0 ? o = Bt : h[2] !== void 0 ? (le.test(h[2]) && (r = RegExp("</" + h[2], "g")), o = N) : h[3] !== void 0 && (o = N) : o === N ? h[0] === ">" ? (o = r ?? Y, d = -1) : h[1] === void 0 ? d = -2 : (d = o.lastIndex - h[2].length, u = h[1], o = h[3] === void 0 ? N : h[3] === '"' ? Wt : zt) : o === Wt || o === zt ? o = N : o === Dt || o === Bt ? o = Y : (o = N, r = void 0);
|
|
271
|
+
const g = o === N && i[l + 1].startsWith("/>") ? " " : "";
|
|
272
|
+
n += o === Y ? a + be : d >= 0 ? (s.push(u), a.slice(0, d) + Et + a.slice(d) + T + g) : a + T + (d === -2 ? (s.push(void 0), l) : g);
|
|
273
273
|
}
|
|
274
274
|
const c = n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "");
|
|
275
275
|
if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
|
|
276
276
|
throw Error("invalid template strings array");
|
|
277
|
-
return [
|
|
277
|
+
return [Ft !== void 0 ? Ft.createHTML(c) : c, s];
|
|
278
278
|
};
|
|
279
|
-
class
|
|
279
|
+
class tt {
|
|
280
280
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
281
281
|
let r;
|
|
282
282
|
this.parts = [];
|
|
283
283
|
let n = 0, o = 0;
|
|
284
|
-
const c = t.length - 1, l = this.parts, [
|
|
285
|
-
if (this.el =
|
|
286
|
-
const
|
|
287
|
-
d.remove(),
|
|
284
|
+
const c = t.length - 1, l = this.parts, [a, u] = we(t, e);
|
|
285
|
+
if (this.el = tt.createElement(a, s), j.currentNode = this.el.content, e === 2) {
|
|
286
|
+
const h = this.el.content, d = h.firstChild;
|
|
287
|
+
d.remove(), h.append(...d.childNodes);
|
|
288
288
|
}
|
|
289
|
-
for (; (r =
|
|
289
|
+
for (; (r = j.nextNode()) !== null && l.length < c; ) {
|
|
290
290
|
if (r.nodeType === 1) {
|
|
291
291
|
if (r.hasAttributes()) {
|
|
292
|
-
const
|
|
292
|
+
const h = [];
|
|
293
293
|
for (const d of r.getAttributeNames())
|
|
294
|
-
if (d.endsWith(
|
|
295
|
-
const p =
|
|
296
|
-
if (
|
|
297
|
-
const g = r.getAttribute(p.toLowerCase() +
|
|
298
|
-
l.push({ type: 1, index: n, name:
|
|
294
|
+
if (d.endsWith(Et) || d.startsWith(T)) {
|
|
295
|
+
const p = u[o++];
|
|
296
|
+
if (h.push(d), p !== void 0) {
|
|
297
|
+
const g = r.getAttribute(p.toLowerCase() + Et).split(T), v = /([.?@])?(.*)/.exec(p);
|
|
298
|
+
l.push({ type: 1, index: n, name: v[2], strings: g, ctor: v[1] === "." ? Re : v[1] === "?" ? Ie : v[1] === "@" ? Oe : at });
|
|
299
299
|
} else
|
|
300
300
|
l.push({ type: 6, index: n });
|
|
301
301
|
}
|
|
302
|
-
for (const d of
|
|
302
|
+
for (const d of h)
|
|
303
303
|
r.removeAttribute(d);
|
|
304
304
|
}
|
|
305
|
-
if (
|
|
306
|
-
const
|
|
305
|
+
if (le.test(r.tagName)) {
|
|
306
|
+
const h = r.textContent.split(T), d = h.length - 1;
|
|
307
307
|
if (d > 0) {
|
|
308
|
-
r.textContent =
|
|
308
|
+
r.textContent = W ? W.emptyScript : "";
|
|
309
309
|
for (let p = 0; p < d; p++)
|
|
310
|
-
r.append(
|
|
311
|
-
r.append(
|
|
310
|
+
r.append(h[p], Q()), j.nextNode(), l.push({ type: 2, index: ++n });
|
|
311
|
+
r.append(h[d], Q());
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
} else if (r.nodeType === 8)
|
|
315
|
-
if (r.data ===
|
|
315
|
+
if (r.data === ne)
|
|
316
316
|
l.push({ type: 2, index: n });
|
|
317
317
|
else {
|
|
318
|
-
let
|
|
319
|
-
for (; (
|
|
320
|
-
l.push({ type: 7, index: n }),
|
|
318
|
+
let h = -1;
|
|
319
|
+
for (; (h = r.data.indexOf(T, h + 1)) !== -1; )
|
|
320
|
+
l.push({ type: 7, index: n }), h += T.length - 1;
|
|
321
321
|
}
|
|
322
322
|
n++;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
static createElement(t, e) {
|
|
326
|
-
const s =
|
|
326
|
+
const s = H.createElement("template");
|
|
327
327
|
return s.innerHTML = t, s;
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function V(i, t, e = i, s) {
|
|
331
331
|
var r, n, o, c;
|
|
332
332
|
if (t === U)
|
|
333
333
|
return t;
|
|
334
334
|
let l = s !== void 0 ? (r = e._$Co) === null || r === void 0 ? void 0 : r[s] : e._$Cl;
|
|
335
|
-
const
|
|
336
|
-
return (l == null ? void 0 : l.constructor) !==
|
|
335
|
+
const a = Z(t) ? void 0 : t._$litDirective$;
|
|
336
|
+
return (l == null ? void 0 : l.constructor) !== a && ((n = l == null ? void 0 : l._$AO) === null || n === void 0 || n.call(l, !1), a === void 0 ? l = void 0 : (l = new a(i), l._$AT(i, e, s)), s !== void 0 ? ((o = (c = e)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[s] = l : e._$Cl = l), l !== void 0 && (t = V(i, l._$AS(i, t.values), l, s)), t;
|
|
337
337
|
}
|
|
338
|
-
class
|
|
338
|
+
class Me {
|
|
339
339
|
constructor(t, e) {
|
|
340
340
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
341
341
|
}
|
|
@@ -347,17 +347,17 @@ class Ee {
|
|
|
347
347
|
}
|
|
348
348
|
u(t) {
|
|
349
349
|
var e;
|
|
350
|
-
const { el: { content: s }, parts: r } = this._$AD, n = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e :
|
|
351
|
-
|
|
352
|
-
let o =
|
|
353
|
-
for (;
|
|
354
|
-
if (c ===
|
|
355
|
-
let
|
|
356
|
-
|
|
350
|
+
const { el: { content: s }, parts: r } = this._$AD, n = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : H).importNode(s, !0);
|
|
351
|
+
j.currentNode = n;
|
|
352
|
+
let o = j.nextNode(), c = 0, l = 0, a = r[0];
|
|
353
|
+
for (; a !== void 0; ) {
|
|
354
|
+
if (c === a.index) {
|
|
355
|
+
let u;
|
|
356
|
+
a.type === 2 ? u = new et(o, o.nextSibling, this, t) : a.type === 1 ? u = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (u = new Te(o, this, t)), this._$AV.push(u), a = r[++l];
|
|
357
357
|
}
|
|
358
|
-
c !== (
|
|
358
|
+
c !== (a == null ? void 0 : a.index) && (o = j.nextNode(), c++);
|
|
359
359
|
}
|
|
360
|
-
return
|
|
360
|
+
return j.currentNode = H, n;
|
|
361
361
|
}
|
|
362
362
|
v(t) {
|
|
363
363
|
let e = 0;
|
|
@@ -365,7 +365,7 @@ class Ee {
|
|
|
365
365
|
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
class
|
|
368
|
+
class et {
|
|
369
369
|
constructor(t, e, s, r) {
|
|
370
370
|
var n;
|
|
371
371
|
this.type = 2, this._$AH = _, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = r, this._$Cp = (n = r == null ? void 0 : r.isConnected) === null || n === void 0 || n;
|
|
@@ -386,7 +386,7 @@ class Q {
|
|
|
386
386
|
return this._$AB;
|
|
387
387
|
}
|
|
388
388
|
_$AI(t, e = this) {
|
|
389
|
-
t =
|
|
389
|
+
t = V(this, t, e), Z(t) ? t === _ || t == null || t === "" ? (this._$AH !== _ && this._$AR(), this._$AH = _) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : xe(t) ? this.T(t) : this._(t);
|
|
390
390
|
}
|
|
391
391
|
k(t) {
|
|
392
392
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -395,28 +395,28 @@ class Q {
|
|
|
395
395
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
396
396
|
}
|
|
397
397
|
_(t) {
|
|
398
|
-
this._$AH !== _ &&
|
|
398
|
+
this._$AH !== _ && Z(this._$AH) ? this._$AA.nextSibling.data = t : this.$(H.createTextNode(t)), this._$AH = t;
|
|
399
399
|
}
|
|
400
400
|
g(t) {
|
|
401
401
|
var e;
|
|
402
|
-
const { values: s, _$litType$: r } = t, n = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el =
|
|
402
|
+
const { values: s, _$litType$: r } = t, n = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = tt.createElement(r.h, this.options)), r);
|
|
403
403
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === n)
|
|
404
404
|
this._$AH.v(s);
|
|
405
405
|
else {
|
|
406
|
-
const o = new
|
|
406
|
+
const o = new Me(n, this), c = o.u(this.options);
|
|
407
407
|
o.v(s), this.$(c), this._$AH = o;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
_$AC(t) {
|
|
411
|
-
let e =
|
|
412
|
-
return e === void 0 &&
|
|
411
|
+
let e = Vt.get(t.strings);
|
|
412
|
+
return e === void 0 && Vt.set(t.strings, e = new tt(t)), e;
|
|
413
413
|
}
|
|
414
414
|
T(t) {
|
|
415
|
-
|
|
415
|
+
oe(this._$AH) || (this._$AH = [], this._$AR());
|
|
416
416
|
const e = this._$AH;
|
|
417
417
|
let s, r = 0;
|
|
418
418
|
for (const n of t)
|
|
419
|
-
r === e.length ? e.push(s = new
|
|
419
|
+
r === e.length ? e.push(s = new et(this.k(Q()), this.k(Q()), this, this.options)) : s = e[r], s._$AI(n), r++;
|
|
420
420
|
r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
|
|
421
421
|
}
|
|
422
422
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -431,7 +431,7 @@ class Q {
|
|
|
431
431
|
this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
class
|
|
434
|
+
class at {
|
|
435
435
|
constructor(t, e, s, r, n) {
|
|
436
436
|
this.type = 1, this._$AH = _, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = _;
|
|
437
437
|
}
|
|
@@ -445,12 +445,12 @@ class ot {
|
|
|
445
445
|
const n = this.strings;
|
|
446
446
|
let o = !1;
|
|
447
447
|
if (n === void 0)
|
|
448
|
-
t =
|
|
448
|
+
t = V(this, t, e, 0), o = !Z(t) || t !== this._$AH && t !== U, o && (this._$AH = t);
|
|
449
449
|
else {
|
|
450
450
|
const c = t;
|
|
451
|
-
let l,
|
|
451
|
+
let l, a;
|
|
452
452
|
for (t = n[0], l = 0; l < n.length - 1; l++)
|
|
453
|
-
|
|
453
|
+
a = V(this, c[s + l], e, l), a === U && (a = this._$AH[l]), o || (o = !Z(a) || a !== this._$AH[l]), a === _ ? t = _ : t !== _ && (t += (a ?? "") + n[l + 1]), this._$AH[l] = a;
|
|
454
454
|
}
|
|
455
455
|
o && !r && this.j(t);
|
|
456
456
|
}
|
|
@@ -458,7 +458,7 @@ class ot {
|
|
|
458
458
|
t === _ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
class
|
|
461
|
+
class Re extends at {
|
|
462
462
|
constructor() {
|
|
463
463
|
super(...arguments), this.type = 3;
|
|
464
464
|
}
|
|
@@ -466,22 +466,22 @@ class xe extends ot {
|
|
|
466
466
|
this.element[this.name] = t === _ ? void 0 : t;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
const
|
|
470
|
-
class
|
|
469
|
+
const Ce = W ? W.emptyScript : "";
|
|
470
|
+
class Ie extends at {
|
|
471
471
|
constructor() {
|
|
472
472
|
super(...arguments), this.type = 4;
|
|
473
473
|
}
|
|
474
474
|
j(t) {
|
|
475
|
-
t && t !== _ ? this.element.setAttribute(this.name,
|
|
475
|
+
t && t !== _ ? this.element.setAttribute(this.name, Ce) : this.element.removeAttribute(this.name);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
class
|
|
478
|
+
class Oe extends at {
|
|
479
479
|
constructor(t, e, s, r, n) {
|
|
480
480
|
super(t, e, s, r, n), this.type = 5;
|
|
481
481
|
}
|
|
482
482
|
_$AI(t, e = this) {
|
|
483
483
|
var s;
|
|
484
|
-
if ((t = (s =
|
|
484
|
+
if ((t = (s = V(this, t, e, 0)) !== null && s !== void 0 ? s : _) === U)
|
|
485
485
|
return;
|
|
486
486
|
const r = this._$AH, n = t === _ && r !== _ || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, o = t !== _ && (r === _ || n);
|
|
487
487
|
n && this.element.removeEventListener(this.name, this, r), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
@@ -491,7 +491,7 @@ class we extends ot {
|
|
|
491
491
|
typeof this._$AH == "function" ? this._$AH.call((s = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
class
|
|
494
|
+
class Te {
|
|
495
495
|
constructor(t, e, s) {
|
|
496
496
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
497
497
|
}
|
|
@@ -499,18 +499,18 @@ class Me {
|
|
|
499
499
|
return this._$AM._$AU;
|
|
500
500
|
}
|
|
501
501
|
_$AI(t) {
|
|
502
|
-
|
|
502
|
+
V(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
const
|
|
505
|
+
const Kt = lt.litHtmlPolyfillSupport;
|
|
506
|
+
Kt == null || Kt(tt, et), ((pt = lt.litHtmlVersions) !== null && pt !== void 0 ? pt : lt.litHtmlVersions = []).push("2.7.4");
|
|
507
|
+
const ke = (i, t, e) => {
|
|
508
508
|
var s, r;
|
|
509
509
|
const n = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : t;
|
|
510
510
|
let o = n._$litPart$;
|
|
511
511
|
if (o === void 0) {
|
|
512
512
|
const c = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : null;
|
|
513
|
-
n._$litPart$ = o = new
|
|
513
|
+
n._$litPart$ = o = new et(t.insertBefore(Q(), c), c, void 0, e ?? {});
|
|
514
514
|
}
|
|
515
515
|
return o._$AI(i), o;
|
|
516
516
|
};
|
|
@@ -519,8 +519,8 @@ const Re = (i, t, e) => {
|
|
|
519
519
|
* Copyright 2017 Google LLC
|
|
520
520
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
521
521
|
*/
|
|
522
|
-
var
|
|
523
|
-
class
|
|
522
|
+
var mt, _t;
|
|
523
|
+
class X extends z {
|
|
524
524
|
constructor() {
|
|
525
525
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
526
526
|
}
|
|
@@ -531,7 +531,7 @@ class Y extends z {
|
|
|
531
531
|
}
|
|
532
532
|
update(t) {
|
|
533
533
|
const e = this.render();
|
|
534
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
534
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ke(e, this.renderRoot, this.renderOptions);
|
|
535
535
|
}
|
|
536
536
|
connectedCallback() {
|
|
537
537
|
var t;
|
|
@@ -545,16 +545,16 @@ class Y extends z {
|
|
|
545
545
|
return U;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
((
|
|
548
|
+
X.finalized = !0, X._$litElement$ = !0, (mt = globalThis.litElementHydrateSupport) === null || mt === void 0 || mt.call(globalThis, { LitElement: X });
|
|
549
|
+
const Gt = globalThis.litElementPolyfillSupport;
|
|
550
|
+
Gt == null || Gt({ LitElement: X });
|
|
551
|
+
((_t = globalThis.litElementVersions) !== null && _t !== void 0 ? _t : globalThis.litElementVersions = []).push("3.3.2");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
554
554
|
* Copyright 2017 Google LLC
|
|
555
555
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
556
556
|
*/
|
|
557
|
-
const
|
|
557
|
+
const Le = (i) => (t) => typeof t == "function" ? ((e, s) => (customElements.define(e, s), s))(i, t) : ((e, s) => {
|
|
558
558
|
const { kind: r, elements: n } = s;
|
|
559
559
|
return { kind: r, elements: n, finisher(o) {
|
|
560
560
|
customElements.define(e, o);
|
|
@@ -565,39 +565,39 @@ const Ce = (i) => (t) => typeof t == "function" ? ((e, s) => (customElements.def
|
|
|
565
565
|
* Copyright 2017 Google LLC
|
|
566
566
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
567
567
|
*/
|
|
568
|
-
const
|
|
568
|
+
const Ne = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
|
|
569
569
|
e.createProperty(t.key, i);
|
|
570
570
|
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
|
|
571
571
|
typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
|
|
572
572
|
}, finisher(e) {
|
|
573
573
|
e.createProperty(t.key, i);
|
|
574
574
|
} };
|
|
575
|
-
function
|
|
575
|
+
function Tt(i) {
|
|
576
576
|
return (t, e) => e !== void 0 ? ((s, r, n) => {
|
|
577
577
|
r.constructor.createProperty(n, s);
|
|
578
|
-
})(i, t, e) :
|
|
578
|
+
})(i, t, e) : Ne(i, t);
|
|
579
579
|
}
|
|
580
580
|
/**
|
|
581
581
|
* @license
|
|
582
582
|
* Copyright 2017 Google LLC
|
|
583
583
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
584
584
|
*/
|
|
585
|
-
function
|
|
586
|
-
return
|
|
585
|
+
function ht(i) {
|
|
586
|
+
return Tt({ ...i, state: !0 });
|
|
587
587
|
}
|
|
588
588
|
/**
|
|
589
589
|
* @license
|
|
590
590
|
* Copyright 2021 Google LLC
|
|
591
591
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
592
592
|
*/
|
|
593
|
-
var
|
|
594
|
-
((
|
|
593
|
+
var $t;
|
|
594
|
+
(($t = window.HTMLSlotElement) === null || $t === void 0 ? void 0 : $t.prototype.assignedElements) != null;
|
|
595
595
|
/**
|
|
596
596
|
* @license
|
|
597
597
|
* Copyright 2021 Google LLC
|
|
598
598
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
599
599
|
*/
|
|
600
|
-
function
|
|
600
|
+
function q(i, t, e) {
|
|
601
601
|
return i ? t() : e == null ? void 0 : e();
|
|
602
602
|
}
|
|
603
603
|
/**
|
|
@@ -605,7 +605,7 @@ function tt(i, t, e) {
|
|
|
605
605
|
* Copyright 2021 Google LLC
|
|
606
606
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
607
607
|
*/
|
|
608
|
-
function*
|
|
608
|
+
function* J(i, t) {
|
|
609
609
|
if (i !== void 0) {
|
|
610
610
|
let e = 0;
|
|
611
611
|
for (const s of i)
|
|
@@ -617,8 +617,8 @@ function* K(i, t) {
|
|
|
617
617
|
* Copyright 2017 Google LLC
|
|
618
618
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
619
619
|
*/
|
|
620
|
-
const
|
|
621
|
-
class
|
|
620
|
+
const Pe = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, je = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
621
|
+
class He {
|
|
622
622
|
constructor(t) {
|
|
623
623
|
}
|
|
624
624
|
get _$AU() {
|
|
@@ -639,9 +639,9 @@ class ke {
|
|
|
639
639
|
* Copyright 2017 Google LLC
|
|
640
640
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
641
641
|
*/
|
|
642
|
-
class
|
|
642
|
+
class bt extends He {
|
|
643
643
|
constructor(t) {
|
|
644
|
-
if (super(t), this.et = _, t.type !==
|
|
644
|
+
if (super(t), this.et = _, t.type !== Pe.CHILD)
|
|
645
645
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
646
646
|
}
|
|
647
647
|
render(t) {
|
|
@@ -658,52 +658,52 @@ class yt extends ke {
|
|
|
658
658
|
return e.raw = e, this.ft = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
|
|
662
|
-
const
|
|
663
|
-
function
|
|
664
|
-
return Array.isArray ? Array.isArray(i) :
|
|
661
|
+
bt.directiveName = "unsafeHTML", bt.resultType = 1;
|
|
662
|
+
const Yt = je(bt);
|
|
663
|
+
function O(i) {
|
|
664
|
+
return Array.isArray ? Array.isArray(i) : he(i) === "[object Array]";
|
|
665
665
|
}
|
|
666
|
-
const
|
|
667
|
-
function
|
|
666
|
+
const Ue = 1 / 0;
|
|
667
|
+
function Fe(i) {
|
|
668
668
|
if (typeof i == "string")
|
|
669
669
|
return i;
|
|
670
670
|
let t = i + "";
|
|
671
|
-
return t == "0" && 1 / i == -
|
|
671
|
+
return t == "0" && 1 / i == -Ue ? "-0" : t;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
return i == null ? "" :
|
|
673
|
+
function De(i) {
|
|
674
|
+
return i == null ? "" : Fe(i);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function R(i) {
|
|
677
677
|
return typeof i == "string";
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function ce(i) {
|
|
680
680
|
return typeof i == "number";
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
return i === !0 || i === !1 ||
|
|
682
|
+
function Be(i) {
|
|
683
|
+
return i === !0 || i === !1 || ze(i) && he(i) == "[object Boolean]";
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function ae(i) {
|
|
686
686
|
return typeof i == "object";
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
return
|
|
688
|
+
function ze(i) {
|
|
689
|
+
return ae(i) && i !== null;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function b(i) {
|
|
692
692
|
return i != null;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function yt(i) {
|
|
695
695
|
return !i.trim().length;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function he(i) {
|
|
698
698
|
return i == null ? i === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(i);
|
|
699
699
|
}
|
|
700
|
-
const
|
|
701
|
-
class
|
|
700
|
+
const We = "Incorrect 'index' type", Ve = (i) => `Invalid value for key ${i}`, Ke = (i) => `Pattern length exceeds max of ${i}.`, Ge = (i) => `Missing ${i} property in key`, Ye = (i) => `Property 'weight' in key '${i}' must be a positive integer`, qt = Object.prototype.hasOwnProperty;
|
|
701
|
+
class qe {
|
|
702
702
|
constructor(t) {
|
|
703
703
|
this._keys = [], this._keyMap = {};
|
|
704
704
|
let e = 0;
|
|
705
705
|
t.forEach((s) => {
|
|
706
|
-
let r =
|
|
706
|
+
let r = ue(s);
|
|
707
707
|
e += r.weight, this._keys.push(r), this._keyMap[r.id] = r, e += r.weight;
|
|
708
708
|
}), this._keys.forEach((s) => {
|
|
709
709
|
s.weight /= e;
|
|
@@ -719,50 +719,50 @@ class We {
|
|
|
719
719
|
return JSON.stringify(this._keys);
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function ue(i) {
|
|
723
723
|
let t = null, e = null, s = null, r = 1, n = null;
|
|
724
|
-
if (
|
|
725
|
-
s = i, t =
|
|
724
|
+
if (R(i) || O(i))
|
|
725
|
+
s = i, t = Jt(i), e = xt(i);
|
|
726
726
|
else {
|
|
727
|
-
if (!
|
|
728
|
-
throw new Error(
|
|
727
|
+
if (!qt.call(i, "name"))
|
|
728
|
+
throw new Error(Ge("name"));
|
|
729
729
|
const o = i.name;
|
|
730
|
-
if (s = o,
|
|
731
|
-
throw new Error(
|
|
732
|
-
t =
|
|
730
|
+
if (s = o, qt.call(i, "weight") && (r = i.weight, r <= 0))
|
|
731
|
+
throw new Error(Ye(o));
|
|
732
|
+
t = Jt(o), e = xt(o), n = i.getFn;
|
|
733
733
|
}
|
|
734
734
|
return { path: t, id: e, weight: r, src: s, getFn: n };
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
return
|
|
736
|
+
function Jt(i) {
|
|
737
|
+
return O(i) ? i : i.split(".");
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
return
|
|
739
|
+
function xt(i) {
|
|
740
|
+
return O(i) ? i.join(".") : i;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function Je(i, t) {
|
|
743
743
|
let e = [], s = !1;
|
|
744
744
|
const r = (n, o, c) => {
|
|
745
|
-
if (
|
|
745
|
+
if (b(n))
|
|
746
746
|
if (!o[c])
|
|
747
747
|
e.push(n);
|
|
748
748
|
else {
|
|
749
749
|
let l = o[c];
|
|
750
|
-
const
|
|
751
|
-
if (!
|
|
750
|
+
const a = n[l];
|
|
751
|
+
if (!b(a))
|
|
752
752
|
return;
|
|
753
|
-
if (c === o.length - 1 && (
|
|
754
|
-
e.push(
|
|
755
|
-
else if (
|
|
753
|
+
if (c === o.length - 1 && (R(a) || ce(a) || Be(a)))
|
|
754
|
+
e.push(De(a));
|
|
755
|
+
else if (O(a)) {
|
|
756
756
|
s = !0;
|
|
757
|
-
for (let
|
|
758
|
-
r(
|
|
757
|
+
for (let u = 0, h = a.length; u < h; u += 1)
|
|
758
|
+
r(a[u], o, c + 1);
|
|
759
759
|
} else
|
|
760
|
-
o.length && r(
|
|
760
|
+
o.length && r(a, o, c + 1);
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
|
-
return r(i,
|
|
763
|
+
return r(i, R(t) ? t.split(".") : t, 0), s ? e : e[0];
|
|
764
764
|
}
|
|
765
|
-
const
|
|
765
|
+
const Xe = {
|
|
766
766
|
// Whether the matches should be included in the result set. When `true`, each record in the result
|
|
767
767
|
// set will include the indices of the matched characters.
|
|
768
768
|
// These can consequently be used for highlighting purposes.
|
|
@@ -772,7 +772,7 @@ const Ke = {
|
|
|
772
772
|
findAllMatches: !1,
|
|
773
773
|
// Minimum number of characters that must be matched before a result is considered a match
|
|
774
774
|
minMatchCharLength: 1
|
|
775
|
-
},
|
|
775
|
+
}, Qe = {
|
|
776
776
|
// When `true`, the algorithm continues searching to the end of the input even if a perfect
|
|
777
777
|
// match is found before the end of the same input.
|
|
778
778
|
isCaseSensitive: !1,
|
|
@@ -784,7 +784,7 @@ const Ke = {
|
|
|
784
784
|
shouldSort: !0,
|
|
785
785
|
// Default sort function: sort by ascending score, ascending index
|
|
786
786
|
sortFn: (i, t) => i.score === t.score ? i.idx < t.idx ? -1 : 1 : i.score < t.score ? -1 : 1
|
|
787
|
-
},
|
|
787
|
+
}, Ze = {
|
|
788
788
|
// Approximately where in the text is the pattern expected to be found?
|
|
789
789
|
location: 0,
|
|
790
790
|
// At what point does the match algorithm give up. A threshold of '0.0' requires a perfect match
|
|
@@ -796,12 +796,12 @@ const Ke = {
|
|
|
796
796
|
// the exact location specified, a threshold of '1000' would require a perfect match
|
|
797
797
|
// to be within 800 characters of the fuzzy location to be found using a 0.8 threshold.
|
|
798
798
|
distance: 100
|
|
799
|
-
},
|
|
799
|
+
}, ts = {
|
|
800
800
|
// When `true`, it enables the use of unix-like search commands
|
|
801
801
|
useExtendedSearch: !1,
|
|
802
802
|
// The get function to use when fetching an object's properties.
|
|
803
803
|
// The default will search nested paths *ie foo.bar.baz*
|
|
804
|
-
getFn:
|
|
804
|
+
getFn: Je,
|
|
805
805
|
// When `true`, search will ignore `location` and `distance`, so it won't matter
|
|
806
806
|
// where in the string the pattern appears.
|
|
807
807
|
// More info: https://fusejs.io/concepts/scoring-theory.html#fuzziness-score
|
|
@@ -814,17 +814,17 @@ const Ke = {
|
|
|
814
814
|
fieldNormWeight: 1
|
|
815
815
|
};
|
|
816
816
|
var f = {
|
|
817
|
-
...
|
|
818
|
-
...
|
|
819
|
-
...
|
|
820
|
-
...
|
|
817
|
+
...Qe,
|
|
818
|
+
...Xe,
|
|
819
|
+
...Ze,
|
|
820
|
+
...ts
|
|
821
821
|
};
|
|
822
|
-
const
|
|
823
|
-
function
|
|
822
|
+
const es = /[^ ]+/g;
|
|
823
|
+
function ss(i = 1, t = 3) {
|
|
824
824
|
const e = /* @__PURE__ */ new Map(), s = Math.pow(10, t);
|
|
825
825
|
return {
|
|
826
826
|
get(r) {
|
|
827
|
-
const n = r.match(
|
|
827
|
+
const n = r.match(es).length;
|
|
828
828
|
if (e.has(n))
|
|
829
829
|
return e.get(n);
|
|
830
830
|
const o = 1 / Math.pow(n, 0.5 * i), c = parseFloat(Math.round(o * s) / s);
|
|
@@ -835,12 +835,12 @@ function Qe(i = 1, t = 3) {
|
|
|
835
835
|
}
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
|
-
class
|
|
838
|
+
class kt {
|
|
839
839
|
constructor({
|
|
840
840
|
getFn: t = f.getFn,
|
|
841
841
|
fieldNormWeight: e = f.fieldNormWeight
|
|
842
842
|
} = {}) {
|
|
843
|
-
this.norm =
|
|
843
|
+
this.norm = ss(e, 3), this.getFn = t, this.isCreated = !1, this.setIndexRecords();
|
|
844
844
|
}
|
|
845
845
|
setSources(t = []) {
|
|
846
846
|
this.docs = t;
|
|
@@ -854,7 +854,7 @@ class Ct {
|
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
856
|
create() {
|
|
857
|
-
this.isCreated || !this.docs.length || (this.isCreated = !0,
|
|
857
|
+
this.isCreated || !this.docs.length || (this.isCreated = !0, R(this.docs[0]) ? this.docs.forEach((t, e) => {
|
|
858
858
|
this._addString(t, e);
|
|
859
859
|
}) : this.docs.forEach((t, e) => {
|
|
860
860
|
this._addObject(t, e);
|
|
@@ -863,7 +863,7 @@ class Ct {
|
|
|
863
863
|
// Adds a doc to the end of the index
|
|
864
864
|
add(t) {
|
|
865
865
|
const e = this.size();
|
|
866
|
-
|
|
866
|
+
R(t) ? this._addString(t, e) : this._addObject(t, e);
|
|
867
867
|
}
|
|
868
868
|
// Removes the doc at the specified index of the index
|
|
869
869
|
removeAt(t) {
|
|
@@ -878,7 +878,7 @@ class Ct {
|
|
|
878
878
|
return this.records.length;
|
|
879
879
|
}
|
|
880
880
|
_addString(t, e) {
|
|
881
|
-
if (!
|
|
881
|
+
if (!b(t) || yt(t))
|
|
882
882
|
return;
|
|
883
883
|
let s = {
|
|
884
884
|
v: t,
|
|
@@ -891,30 +891,30 @@ class Ct {
|
|
|
891
891
|
let s = { i: e, $: {} };
|
|
892
892
|
this.keys.forEach((r, n) => {
|
|
893
893
|
let o = r.getFn ? r.getFn(t) : this.getFn(t, r.path);
|
|
894
|
-
if (
|
|
895
|
-
if (
|
|
894
|
+
if (b(o)) {
|
|
895
|
+
if (O(o)) {
|
|
896
896
|
let c = [];
|
|
897
897
|
const l = [{ nestedArrIndex: -1, value: o }];
|
|
898
898
|
for (; l.length; ) {
|
|
899
|
-
const { nestedArrIndex:
|
|
900
|
-
if (
|
|
901
|
-
if (
|
|
902
|
-
let
|
|
903
|
-
v:
|
|
904
|
-
i:
|
|
905
|
-
n: this.norm.get(
|
|
899
|
+
const { nestedArrIndex: a, value: u } = l.pop();
|
|
900
|
+
if (b(u))
|
|
901
|
+
if (R(u) && !yt(u)) {
|
|
902
|
+
let h = {
|
|
903
|
+
v: u,
|
|
904
|
+
i: a,
|
|
905
|
+
n: this.norm.get(u)
|
|
906
906
|
};
|
|
907
|
-
c.push(
|
|
907
|
+
c.push(h);
|
|
908
908
|
} else
|
|
909
|
-
|
|
909
|
+
O(u) && u.forEach((h, d) => {
|
|
910
910
|
l.push({
|
|
911
911
|
nestedArrIndex: d,
|
|
912
|
-
value:
|
|
912
|
+
value: h
|
|
913
913
|
});
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
s.$[n] = c;
|
|
917
|
-
} else if (
|
|
917
|
+
} else if (R(o) && !yt(o)) {
|
|
918
918
|
let c = {
|
|
919
919
|
v: o,
|
|
920
920
|
n: this.norm.get(o)
|
|
@@ -931,15 +931,15 @@ class Ct {
|
|
|
931
931
|
};
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
function
|
|
935
|
-
const r = new
|
|
936
|
-
return r.setKeys(i.map(
|
|
934
|
+
function de(i, t, { getFn: e = f.getFn, fieldNormWeight: s = f.fieldNormWeight } = {}) {
|
|
935
|
+
const r = new kt({ getFn: e, fieldNormWeight: s });
|
|
936
|
+
return r.setKeys(i.map(ue)), r.setSources(t), r.create(), r;
|
|
937
937
|
}
|
|
938
|
-
function
|
|
939
|
-
const { keys: s, records: r } = i, n = new
|
|
938
|
+
function is(i, { getFn: t = f.getFn, fieldNormWeight: e = f.fieldNormWeight } = {}) {
|
|
939
|
+
const { keys: s, records: r } = i, n = new kt({ getFn: t, fieldNormWeight: e });
|
|
940
940
|
return n.setKeys(s), n.setIndexRecords(r), n;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function it(i, {
|
|
943
943
|
errors: t = 0,
|
|
944
944
|
currentLocation: e = 0,
|
|
945
945
|
expectedLocation: s = 0,
|
|
@@ -952,7 +952,7 @@ function et(i, {
|
|
|
952
952
|
const c = Math.abs(s - e);
|
|
953
953
|
return r ? o + c / r : c ? 1 : o;
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function rs(i = [], t = f.minMatchCharLength) {
|
|
956
956
|
let e = [], s = -1, r = -1, n = 0;
|
|
957
957
|
for (let o = i.length; n < o; n += 1) {
|
|
958
958
|
let c = i[n];
|
|
@@ -960,87 +960,87 @@ function Ze(i = [], t = f.minMatchCharLength) {
|
|
|
960
960
|
}
|
|
961
961
|
return i[n - 1] && n - s >= t && e.push([s, n - 1]), e;
|
|
962
962
|
}
|
|
963
|
-
const
|
|
964
|
-
function
|
|
963
|
+
const P = 32;
|
|
964
|
+
function ns(i, t, e, {
|
|
965
965
|
location: s = f.location,
|
|
966
966
|
distance: r = f.distance,
|
|
967
967
|
threshold: n = f.threshold,
|
|
968
968
|
findAllMatches: o = f.findAllMatches,
|
|
969
969
|
minMatchCharLength: c = f.minMatchCharLength,
|
|
970
970
|
includeMatches: l = f.includeMatches,
|
|
971
|
-
ignoreLocation:
|
|
971
|
+
ignoreLocation: a = f.ignoreLocation
|
|
972
972
|
} = {}) {
|
|
973
|
-
if (t.length >
|
|
974
|
-
throw new Error(
|
|
975
|
-
const
|
|
973
|
+
if (t.length > P)
|
|
974
|
+
throw new Error(Ke(P));
|
|
975
|
+
const u = t.length, h = i.length, d = Math.max(0, Math.min(s, h));
|
|
976
976
|
let p = n, g = d;
|
|
977
|
-
const
|
|
978
|
-
let
|
|
979
|
-
for (; (
|
|
980
|
-
let y =
|
|
981
|
-
currentLocation:
|
|
977
|
+
const v = c > 1 || l, M = v ? Array(h) : [];
|
|
978
|
+
let A;
|
|
979
|
+
for (; (A = i.indexOf(t, g)) > -1; ) {
|
|
980
|
+
let y = it(t, {
|
|
981
|
+
currentLocation: A,
|
|
982
982
|
expectedLocation: d,
|
|
983
983
|
distance: r,
|
|
984
|
-
ignoreLocation:
|
|
984
|
+
ignoreLocation: a
|
|
985
985
|
});
|
|
986
|
-
if (p = Math.min(y, p), g =
|
|
987
|
-
let
|
|
988
|
-
for (;
|
|
989
|
-
|
|
986
|
+
if (p = Math.min(y, p), g = A + u, v) {
|
|
987
|
+
let E = 0;
|
|
988
|
+
for (; E < u; )
|
|
989
|
+
M[A + E] = 1, E += 1;
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
g = -1;
|
|
993
|
-
let
|
|
994
|
-
const
|
|
995
|
-
for (let y = 0; y <
|
|
996
|
-
let
|
|
997
|
-
for (;
|
|
998
|
-
|
|
993
|
+
let C = [], I = 1, D = u + h;
|
|
994
|
+
const G = 1 << u - 1;
|
|
995
|
+
for (let y = 0; y < u; y += 1) {
|
|
996
|
+
let E = 0, S = D;
|
|
997
|
+
for (; E < S; )
|
|
998
|
+
it(t, {
|
|
999
999
|
errors: y,
|
|
1000
|
-
currentLocation: d +
|
|
1000
|
+
currentLocation: d + S,
|
|
1001
1001
|
expectedLocation: d,
|
|
1002
1002
|
distance: r,
|
|
1003
|
-
ignoreLocation:
|
|
1004
|
-
}) <= p ?
|
|
1005
|
-
|
|
1006
|
-
let
|
|
1007
|
-
|
|
1008
|
-
for (let
|
|
1009
|
-
let
|
|
1010
|
-
if (
|
|
1003
|
+
ignoreLocation: a
|
|
1004
|
+
}) <= p ? E = S : D = S, S = Math.floor((D - E) / 2 + E);
|
|
1005
|
+
D = S;
|
|
1006
|
+
let Lt = Math.max(1, d - S + 1), ut = o ? h : Math.min(d + S, h) + u, B = Array(ut + 2);
|
|
1007
|
+
B[ut + 1] = (1 << y) - 1;
|
|
1008
|
+
for (let w = ut; w >= Lt; w -= 1) {
|
|
1009
|
+
let st = w - 1, Nt = e[i.charAt(st)];
|
|
1010
|
+
if (v && (M[st] = +!!Nt), B[w] = (B[w + 1] << 1 | 1) & Nt, y && (B[w] |= (C[w + 1] | C[w]) << 1 | 1 | C[w + 1]), B[w] & G && (I = it(t, {
|
|
1011
1011
|
errors: y,
|
|
1012
|
-
currentLocation:
|
|
1012
|
+
currentLocation: st,
|
|
1013
1013
|
expectedLocation: d,
|
|
1014
1014
|
distance: r,
|
|
1015
|
-
ignoreLocation:
|
|
1016
|
-
}),
|
|
1017
|
-
if (p =
|
|
1015
|
+
ignoreLocation: a
|
|
1016
|
+
}), I <= p)) {
|
|
1017
|
+
if (p = I, g = st, g <= d)
|
|
1018
1018
|
break;
|
|
1019
|
-
|
|
1019
|
+
Lt = Math.max(1, 2 * d - g);
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
if (
|
|
1022
|
+
if (it(t, {
|
|
1023
1023
|
errors: y + 1,
|
|
1024
1024
|
currentLocation: d,
|
|
1025
1025
|
expectedLocation: d,
|
|
1026
1026
|
distance: r,
|
|
1027
|
-
ignoreLocation:
|
|
1027
|
+
ignoreLocation: a
|
|
1028
1028
|
}) > p)
|
|
1029
1029
|
break;
|
|
1030
|
-
|
|
1030
|
+
C = B;
|
|
1031
1031
|
}
|
|
1032
|
-
const
|
|
1032
|
+
const $ = {
|
|
1033
1033
|
isMatch: g >= 0,
|
|
1034
1034
|
// Count exact matches (those with a score of 0) to be "almost" exact
|
|
1035
|
-
score: Math.max(1e-3,
|
|
1035
|
+
score: Math.max(1e-3, I)
|
|
1036
1036
|
};
|
|
1037
|
-
if (
|
|
1038
|
-
const y =
|
|
1039
|
-
y.length ? l && (
|
|
1037
|
+
if (v) {
|
|
1038
|
+
const y = rs(M, c);
|
|
1039
|
+
y.length ? l && ($.indices = y) : $.isMatch = !1;
|
|
1040
1040
|
}
|
|
1041
|
-
return
|
|
1041
|
+
return $;
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function os(i) {
|
|
1044
1044
|
let t = {};
|
|
1045
1045
|
for (let e = 0, s = i.length; e < s; e += 1) {
|
|
1046
1046
|
const r = i.charAt(e);
|
|
@@ -1048,7 +1048,7 @@ function es(i) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
return t;
|
|
1050
1050
|
}
|
|
1051
|
-
class
|
|
1051
|
+
class fe {
|
|
1052
1052
|
constructor(t, {
|
|
1053
1053
|
location: e = f.location,
|
|
1054
1054
|
threshold: s = f.threshold,
|
|
@@ -1057,7 +1057,7 @@ class le {
|
|
|
1057
1057
|
findAllMatches: o = f.findAllMatches,
|
|
1058
1058
|
minMatchCharLength: c = f.minMatchCharLength,
|
|
1059
1059
|
isCaseSensitive: l = f.isCaseSensitive,
|
|
1060
|
-
ignoreLocation:
|
|
1060
|
+
ignoreLocation: a = f.ignoreLocation
|
|
1061
1061
|
} = {}) {
|
|
1062
1062
|
if (this.options = {
|
|
1063
1063
|
location: e,
|
|
@@ -1067,27 +1067,27 @@ class le {
|
|
|
1067
1067
|
findAllMatches: o,
|
|
1068
1068
|
minMatchCharLength: c,
|
|
1069
1069
|
isCaseSensitive: l,
|
|
1070
|
-
ignoreLocation:
|
|
1070
|
+
ignoreLocation: a
|
|
1071
1071
|
}, this.pattern = l ? t : t.toLowerCase(), this.chunks = [], !this.pattern.length)
|
|
1072
1072
|
return;
|
|
1073
|
-
const
|
|
1073
|
+
const u = (d, p) => {
|
|
1074
1074
|
this.chunks.push({
|
|
1075
1075
|
pattern: d,
|
|
1076
|
-
alphabet:
|
|
1076
|
+
alphabet: os(d),
|
|
1077
1077
|
startIndex: p
|
|
1078
1078
|
});
|
|
1079
|
-
},
|
|
1080
|
-
if (
|
|
1079
|
+
}, h = this.pattern.length;
|
|
1080
|
+
if (h > P) {
|
|
1081
1081
|
let d = 0;
|
|
1082
|
-
const p =
|
|
1082
|
+
const p = h % P, g = h - p;
|
|
1083
1083
|
for (; d < g; )
|
|
1084
|
-
|
|
1084
|
+
u(this.pattern.substr(d, P), d), d += P;
|
|
1085
1085
|
if (p) {
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1086
|
+
const v = h - P;
|
|
1087
|
+
u(this.pattern.substr(v), v);
|
|
1088
1088
|
}
|
|
1089
1089
|
} else
|
|
1090
|
-
|
|
1090
|
+
u(this.pattern, 0);
|
|
1091
1091
|
}
|
|
1092
1092
|
searchIn(t) {
|
|
1093
1093
|
const { isCaseSensitive: e, includeMatches: s } = this.options;
|
|
@@ -1104,46 +1104,46 @@ class le {
|
|
|
1104
1104
|
threshold: o,
|
|
1105
1105
|
findAllMatches: c,
|
|
1106
1106
|
minMatchCharLength: l,
|
|
1107
|
-
ignoreLocation:
|
|
1107
|
+
ignoreLocation: a
|
|
1108
1108
|
} = this.options;
|
|
1109
|
-
let
|
|
1110
|
-
this.chunks.forEach(({ pattern: g, alphabet:
|
|
1111
|
-
const { isMatch:
|
|
1112
|
-
location: r +
|
|
1109
|
+
let u = [], h = 0, d = !1;
|
|
1110
|
+
this.chunks.forEach(({ pattern: g, alphabet: v, startIndex: M }) => {
|
|
1111
|
+
const { isMatch: A, score: C, indices: I } = ns(t, g, v, {
|
|
1112
|
+
location: r + M,
|
|
1113
1113
|
distance: n,
|
|
1114
1114
|
threshold: o,
|
|
1115
1115
|
findAllMatches: c,
|
|
1116
1116
|
minMatchCharLength: l,
|
|
1117
1117
|
includeMatches: s,
|
|
1118
|
-
ignoreLocation:
|
|
1118
|
+
ignoreLocation: a
|
|
1119
1119
|
});
|
|
1120
|
-
|
|
1120
|
+
A && (d = !0), h += C, A && I && (u = [...u, ...I]);
|
|
1121
1121
|
});
|
|
1122
1122
|
let p = {
|
|
1123
1123
|
isMatch: d,
|
|
1124
|
-
score: d ?
|
|
1124
|
+
score: d ? h / this.chunks.length : 1
|
|
1125
1125
|
};
|
|
1126
|
-
return d && s && (p.indices =
|
|
1126
|
+
return d && s && (p.indices = u), p;
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
class
|
|
1129
|
+
class L {
|
|
1130
1130
|
constructor(t) {
|
|
1131
1131
|
this.pattern = t;
|
|
1132
1132
|
}
|
|
1133
1133
|
static isMultiMatch(t) {
|
|
1134
|
-
return
|
|
1134
|
+
return Xt(t, this.multiRegex);
|
|
1135
1135
|
}
|
|
1136
1136
|
static isSingleMatch(t) {
|
|
1137
|
-
return
|
|
1137
|
+
return Xt(t, this.singleRegex);
|
|
1138
1138
|
}
|
|
1139
1139
|
search() {
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function Xt(i, t) {
|
|
1143
1143
|
const e = i.match(t);
|
|
1144
1144
|
return e ? e[1] : null;
|
|
1145
1145
|
}
|
|
1146
|
-
class
|
|
1146
|
+
class ls extends L {
|
|
1147
1147
|
constructor(t) {
|
|
1148
1148
|
super(t);
|
|
1149
1149
|
}
|
|
@@ -1165,7 +1165,7 @@ class ss extends I {
|
|
|
1165
1165
|
};
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
class
|
|
1168
|
+
class cs extends L {
|
|
1169
1169
|
constructor(t) {
|
|
1170
1170
|
super(t);
|
|
1171
1171
|
}
|
|
@@ -1187,7 +1187,7 @@ class is extends I {
|
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
|
-
class
|
|
1190
|
+
class as extends L {
|
|
1191
1191
|
constructor(t) {
|
|
1192
1192
|
super(t);
|
|
1193
1193
|
}
|
|
@@ -1209,7 +1209,7 @@ class rs extends I {
|
|
|
1209
1209
|
};
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
1212
|
-
class
|
|
1212
|
+
class hs extends L {
|
|
1213
1213
|
constructor(t) {
|
|
1214
1214
|
super(t);
|
|
1215
1215
|
}
|
|
@@ -1231,7 +1231,7 @@ class ns extends I {
|
|
|
1231
1231
|
};
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
class
|
|
1234
|
+
class us extends L {
|
|
1235
1235
|
constructor(t) {
|
|
1236
1236
|
super(t);
|
|
1237
1237
|
}
|
|
@@ -1253,7 +1253,7 @@ class os extends I {
|
|
|
1253
1253
|
};
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
|
-
class
|
|
1256
|
+
class ds extends L {
|
|
1257
1257
|
constructor(t) {
|
|
1258
1258
|
super(t);
|
|
1259
1259
|
}
|
|
@@ -1275,7 +1275,7 @@ class ls extends I {
|
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
class
|
|
1278
|
+
class pe extends L {
|
|
1279
1279
|
constructor(t, {
|
|
1280
1280
|
location: e = f.location,
|
|
1281
1281
|
threshold: s = f.threshold,
|
|
@@ -1284,9 +1284,9 @@ class ce extends I {
|
|
|
1284
1284
|
findAllMatches: o = f.findAllMatches,
|
|
1285
1285
|
minMatchCharLength: c = f.minMatchCharLength,
|
|
1286
1286
|
isCaseSensitive: l = f.isCaseSensitive,
|
|
1287
|
-
ignoreLocation:
|
|
1287
|
+
ignoreLocation: a = f.ignoreLocation
|
|
1288
1288
|
} = {}) {
|
|
1289
|
-
super(t), this._bitapSearch = new
|
|
1289
|
+
super(t), this._bitapSearch = new fe(t, {
|
|
1290
1290
|
location: e,
|
|
1291
1291
|
threshold: s,
|
|
1292
1292
|
distance: r,
|
|
@@ -1294,7 +1294,7 @@ class ce extends I {
|
|
|
1294
1294
|
findAllMatches: o,
|
|
1295
1295
|
minMatchCharLength: c,
|
|
1296
1296
|
isCaseSensitive: l,
|
|
1297
|
-
ignoreLocation:
|
|
1297
|
+
ignoreLocation: a
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
static get type() {
|
|
@@ -1310,7 +1310,7 @@ class ce extends I {
|
|
|
1310
1310
|
return this._bitapSearch.searchIn(t);
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
|
-
class
|
|
1313
|
+
class ge extends L {
|
|
1314
1314
|
constructor(t) {
|
|
1315
1315
|
super(t);
|
|
1316
1316
|
}
|
|
@@ -1336,33 +1336,33 @@ class he extends I {
|
|
|
1336
1336
|
};
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
|
-
const
|
|
1340
|
-
ss,
|
|
1341
|
-
he,
|
|
1342
|
-
rs,
|
|
1343
|
-
ns,
|
|
1339
|
+
const St = [
|
|
1344
1340
|
ls,
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1341
|
+
ge,
|
|
1342
|
+
as,
|
|
1343
|
+
hs,
|
|
1344
|
+
ds,
|
|
1345
|
+
us,
|
|
1346
|
+
cs,
|
|
1347
|
+
pe
|
|
1348
|
+
], Qt = St.length, fs = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, ps = "|";
|
|
1349
|
+
function gs(i, t = {}) {
|
|
1350
|
+
return i.split(ps).map((e) => {
|
|
1351
|
+
let s = e.trim().split(fs).filter((n) => n && !!n.trim()), r = [];
|
|
1352
1352
|
for (let n = 0, o = s.length; n < o; n += 1) {
|
|
1353
1353
|
const c = s[n];
|
|
1354
|
-
let l = !1,
|
|
1355
|
-
for (; !l && ++
|
|
1356
|
-
const
|
|
1357
|
-
let
|
|
1358
|
-
|
|
1354
|
+
let l = !1, a = -1;
|
|
1355
|
+
for (; !l && ++a < Qt; ) {
|
|
1356
|
+
const u = St[a];
|
|
1357
|
+
let h = u.isMultiMatch(c);
|
|
1358
|
+
h && (r.push(new u(h, t)), l = !0);
|
|
1359
1359
|
}
|
|
1360
1360
|
if (!l)
|
|
1361
|
-
for (
|
|
1362
|
-
const
|
|
1363
|
-
let
|
|
1364
|
-
if (
|
|
1365
|
-
r.push(new
|
|
1361
|
+
for (a = -1; ++a < Qt; ) {
|
|
1362
|
+
const u = St[a];
|
|
1363
|
+
let h = u.isSingleMatch(c);
|
|
1364
|
+
if (h) {
|
|
1365
|
+
r.push(new u(h, t));
|
|
1366
1366
|
break;
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
@@ -1370,8 +1370,8 @@ function as(i, t = {}) {
|
|
|
1370
1370
|
return r;
|
|
1371
1371
|
});
|
|
1372
1372
|
}
|
|
1373
|
-
const
|
|
1374
|
-
class
|
|
1373
|
+
const ms = /* @__PURE__ */ new Set([pe.type, ge.type]);
|
|
1374
|
+
class _s {
|
|
1375
1375
|
constructor(t, {
|
|
1376
1376
|
isCaseSensitive: e = f.isCaseSensitive,
|
|
1377
1377
|
includeMatches: s = f.includeMatches,
|
|
@@ -1380,7 +1380,7 @@ class ds {
|
|
|
1380
1380
|
findAllMatches: o = f.findAllMatches,
|
|
1381
1381
|
location: c = f.location,
|
|
1382
1382
|
threshold: l = f.threshold,
|
|
1383
|
-
distance:
|
|
1383
|
+
distance: a = f.distance
|
|
1384
1384
|
} = {}) {
|
|
1385
1385
|
this.query = null, this.options = {
|
|
1386
1386
|
isCaseSensitive: e,
|
|
@@ -1390,8 +1390,8 @@ class ds {
|
|
|
1390
1390
|
ignoreLocation: n,
|
|
1391
1391
|
location: c,
|
|
1392
1392
|
threshold: l,
|
|
1393
|
-
distance:
|
|
1394
|
-
}, this.pattern = e ? t : t.toLowerCase(), this.query =
|
|
1393
|
+
distance: a
|
|
1394
|
+
}, this.pattern = e ? t : t.toLowerCase(), this.query = gs(this.pattern, this.options);
|
|
1395
1395
|
}
|
|
1396
1396
|
static condition(t, e) {
|
|
1397
1397
|
return e.useExtendedSearch;
|
|
@@ -1406,15 +1406,15 @@ class ds {
|
|
|
1406
1406
|
const { includeMatches: s, isCaseSensitive: r } = this.options;
|
|
1407
1407
|
t = r ? t : t.toLowerCase();
|
|
1408
1408
|
let n = 0, o = [], c = 0;
|
|
1409
|
-
for (let l = 0,
|
|
1410
|
-
const
|
|
1409
|
+
for (let l = 0, a = e.length; l < a; l += 1) {
|
|
1410
|
+
const u = e[l];
|
|
1411
1411
|
o.length = 0, n = 0;
|
|
1412
|
-
for (let
|
|
1413
|
-
const p =
|
|
1412
|
+
for (let h = 0, d = u.length; h < d; h += 1) {
|
|
1413
|
+
const p = u[h], { isMatch: g, indices: v, score: M } = p.search(t);
|
|
1414
1414
|
if (g) {
|
|
1415
|
-
if (n += 1, c +=
|
|
1416
|
-
const
|
|
1417
|
-
|
|
1415
|
+
if (n += 1, c += M, s) {
|
|
1416
|
+
const A = p.constructor.type;
|
|
1417
|
+
ms.has(A) ? o = [...o, ...v] : o.push(v);
|
|
1418
1418
|
}
|
|
1419
1419
|
} else {
|
|
1420
1420
|
c = 0, n = 0, o.length = 0;
|
|
@@ -1422,11 +1422,11 @@ class ds {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
1424
|
if (n) {
|
|
1425
|
-
let
|
|
1425
|
+
let h = {
|
|
1426
1426
|
isMatch: !0,
|
|
1427
1427
|
score: c / n
|
|
1428
1428
|
};
|
|
1429
|
-
return s && (
|
|
1429
|
+
return s && (h.indices = o), h;
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
return {
|
|
@@ -1435,59 +1435,59 @@ class ds {
|
|
|
1435
1435
|
};
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
|
-
const
|
|
1439
|
-
function
|
|
1440
|
-
|
|
1438
|
+
const wt = [];
|
|
1439
|
+
function $s(...i) {
|
|
1440
|
+
wt.push(...i);
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1443
|
-
for (let e = 0, s =
|
|
1444
|
-
let r =
|
|
1442
|
+
function Mt(i, t) {
|
|
1443
|
+
for (let e = 0, s = wt.length; e < s; e += 1) {
|
|
1444
|
+
let r = wt[e];
|
|
1445
1445
|
if (r.condition(i, t))
|
|
1446
1446
|
return new r(i, t);
|
|
1447
1447
|
}
|
|
1448
|
-
return new
|
|
1448
|
+
return new fe(i, t);
|
|
1449
1449
|
}
|
|
1450
|
-
const
|
|
1450
|
+
const ct = {
|
|
1451
1451
|
AND: "$and",
|
|
1452
1452
|
OR: "$or"
|
|
1453
|
-
},
|
|
1453
|
+
}, Rt = {
|
|
1454
1454
|
PATH: "$path",
|
|
1455
1455
|
PATTERN: "$val"
|
|
1456
|
-
},
|
|
1457
|
-
[
|
|
1456
|
+
}, Ct = (i) => !!(i[ct.AND] || i[ct.OR]), ys = (i) => !!i[Rt.PATH], vs = (i) => !O(i) && ae(i) && !Ct(i), Zt = (i) => ({
|
|
1457
|
+
[ct.AND]: Object.keys(i).map((t) => ({
|
|
1458
1458
|
[t]: i[t]
|
|
1459
1459
|
}))
|
|
1460
1460
|
});
|
|
1461
|
-
function
|
|
1461
|
+
function me(i, t, { auto: e = !0 } = {}) {
|
|
1462
1462
|
const s = (r) => {
|
|
1463
1463
|
let n = Object.keys(r);
|
|
1464
|
-
const o =
|
|
1465
|
-
if (!o && n.length > 1 && !
|
|
1466
|
-
return s(
|
|
1467
|
-
if (
|
|
1468
|
-
const l = o ? r[
|
|
1469
|
-
if (!
|
|
1470
|
-
throw new Error(
|
|
1471
|
-
const
|
|
1472
|
-
keyId:
|
|
1473
|
-
pattern:
|
|
1464
|
+
const o = ys(r);
|
|
1465
|
+
if (!o && n.length > 1 && !Ct(r))
|
|
1466
|
+
return s(Zt(r));
|
|
1467
|
+
if (vs(r)) {
|
|
1468
|
+
const l = o ? r[Rt.PATH] : n[0], a = o ? r[Rt.PATTERN] : r[l];
|
|
1469
|
+
if (!R(a))
|
|
1470
|
+
throw new Error(Ve(l));
|
|
1471
|
+
const u = {
|
|
1472
|
+
keyId: xt(l),
|
|
1473
|
+
pattern: a
|
|
1474
1474
|
};
|
|
1475
|
-
return e && (
|
|
1475
|
+
return e && (u.searcher = Mt(a, t)), u;
|
|
1476
1476
|
}
|
|
1477
1477
|
let c = {
|
|
1478
1478
|
children: [],
|
|
1479
1479
|
operator: n[0]
|
|
1480
1480
|
};
|
|
1481
1481
|
return n.forEach((l) => {
|
|
1482
|
-
const
|
|
1483
|
-
|
|
1484
|
-
c.children.push(s(
|
|
1482
|
+
const a = r[l];
|
|
1483
|
+
O(a) && a.forEach((u) => {
|
|
1484
|
+
c.children.push(s(u));
|
|
1485
1485
|
});
|
|
1486
1486
|
}), c;
|
|
1487
1487
|
};
|
|
1488
|
-
return
|
|
1488
|
+
return Ct(i) || (i = Zt(i)), s(i);
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function As(i, { ignoreFieldNorm: t = f.ignoreFieldNorm }) {
|
|
1491
1491
|
i.forEach((e) => {
|
|
1492
1492
|
let s = 1;
|
|
1493
1493
|
e.matches.forEach(({ key: r, norm: n, score: o }) => {
|
|
@@ -1499,10 +1499,10 @@ function _s(i, { ignoreFieldNorm: t = f.ignoreFieldNorm }) {
|
|
|
1499
1499
|
}), e.score = s;
|
|
1500
1500
|
});
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function Es(i, t) {
|
|
1503
1503
|
const e = i.matches;
|
|
1504
|
-
t.matches = [],
|
|
1505
|
-
if (!
|
|
1504
|
+
t.matches = [], b(e) && e.forEach((s) => {
|
|
1505
|
+
if (!b(s.indices) || !s.indices.length)
|
|
1506
1506
|
return;
|
|
1507
1507
|
const { indices: r, value: n } = s;
|
|
1508
1508
|
let o = {
|
|
@@ -1512,15 +1512,15 @@ function ms(i, t) {
|
|
|
1512
1512
|
s.key && (o.key = s.key.src), s.idx > -1 && (o.refIndex = s.idx), t.matches.push(o);
|
|
1513
1513
|
});
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function bs(i, t) {
|
|
1516
1516
|
t.score = i.score;
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1518
|
+
function xs(i, t, {
|
|
1519
1519
|
includeMatches: e = f.includeMatches,
|
|
1520
1520
|
includeScore: s = f.includeScore
|
|
1521
1521
|
} = {}) {
|
|
1522
1522
|
const r = [];
|
|
1523
|
-
return e && r.push(
|
|
1523
|
+
return e && r.push(Es), s && r.push(bs), i.map((n) => {
|
|
1524
1524
|
const { idx: o } = n, c = {
|
|
1525
1525
|
item: t[o],
|
|
1526
1526
|
refIndex: o
|
|
@@ -1530,20 +1530,20 @@ function vs(i, t, {
|
|
|
1530
1530
|
}), c;
|
|
1531
1531
|
});
|
|
1532
1532
|
}
|
|
1533
|
-
class
|
|
1533
|
+
class K {
|
|
1534
1534
|
constructor(t, e = {}, s) {
|
|
1535
|
-
this.options = { ...f, ...e }, this.options.useExtendedSearch, this._keyStore = new
|
|
1535
|
+
this.options = { ...f, ...e }, this.options.useExtendedSearch, this._keyStore = new qe(this.options.keys), this.setCollection(t, s);
|
|
1536
1536
|
}
|
|
1537
1537
|
setCollection(t, e) {
|
|
1538
|
-
if (this._docs = t, e && !(e instanceof
|
|
1539
|
-
throw new Error(
|
|
1540
|
-
this._myIndex = e ||
|
|
1538
|
+
if (this._docs = t, e && !(e instanceof kt))
|
|
1539
|
+
throw new Error(We);
|
|
1540
|
+
this._myIndex = e || de(this.options.keys, this._docs, {
|
|
1541
1541
|
getFn: this.options.getFn,
|
|
1542
1542
|
fieldNormWeight: this.options.fieldNormWeight
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
1545
|
add(t) {
|
|
1546
|
-
|
|
1546
|
+
b(t) && (this._docs.push(t), this._myIndex.add(t));
|
|
1547
1547
|
}
|
|
1548
1548
|
remove(t = () => !1) {
|
|
1549
1549
|
const e = [];
|
|
@@ -1567,71 +1567,71 @@ class W {
|
|
|
1567
1567
|
sortFn: o,
|
|
1568
1568
|
ignoreFieldNorm: c
|
|
1569
1569
|
} = this.options;
|
|
1570
|
-
let l =
|
|
1571
|
-
return
|
|
1570
|
+
let l = R(t) ? R(this._docs[0]) ? this._searchStringList(t) : this._searchObjectList(t) : this._searchLogical(t);
|
|
1571
|
+
return As(l, { ignoreFieldNorm: c }), n && l.sort(o), ce(e) && e > -1 && (l = l.slice(0, e)), xs(l, this._docs, {
|
|
1572
1572
|
includeMatches: s,
|
|
1573
1573
|
includeScore: r
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
1576
|
_searchStringList(t) {
|
|
1577
|
-
const e =
|
|
1577
|
+
const e = Mt(t, this.options), { records: s } = this._myIndex, r = [];
|
|
1578
1578
|
return s.forEach(({ v: n, i: o, n: c }) => {
|
|
1579
|
-
if (!
|
|
1579
|
+
if (!b(n))
|
|
1580
1580
|
return;
|
|
1581
|
-
const { isMatch: l, score:
|
|
1581
|
+
const { isMatch: l, score: a, indices: u } = e.searchIn(n);
|
|
1582
1582
|
l && r.push({
|
|
1583
1583
|
item: n,
|
|
1584
1584
|
idx: o,
|
|
1585
|
-
matches: [{ score:
|
|
1585
|
+
matches: [{ score: a, value: n, norm: c, indices: u }]
|
|
1586
1586
|
});
|
|
1587
1587
|
}), r;
|
|
1588
1588
|
}
|
|
1589
1589
|
_searchLogical(t) {
|
|
1590
|
-
const e =
|
|
1590
|
+
const e = me(t, this.options), s = (c, l, a) => {
|
|
1591
1591
|
if (!c.children) {
|
|
1592
|
-
const { keyId:
|
|
1593
|
-
key: this._keyStore.get(
|
|
1594
|
-
value: this._myIndex.getValueForItemAtKeyId(l,
|
|
1592
|
+
const { keyId: h, searcher: d } = c, p = this._findMatches({
|
|
1593
|
+
key: this._keyStore.get(h),
|
|
1594
|
+
value: this._myIndex.getValueForItemAtKeyId(l, h),
|
|
1595
1595
|
searcher: d
|
|
1596
1596
|
});
|
|
1597
1597
|
return p && p.length ? [
|
|
1598
1598
|
{
|
|
1599
|
-
idx:
|
|
1599
|
+
idx: a,
|
|
1600
1600
|
item: l,
|
|
1601
1601
|
matches: p
|
|
1602
1602
|
}
|
|
1603
1603
|
] : [];
|
|
1604
1604
|
}
|
|
1605
|
-
const
|
|
1606
|
-
for (let
|
|
1607
|
-
const p = c.children[
|
|
1605
|
+
const u = [];
|
|
1606
|
+
for (let h = 0, d = c.children.length; h < d; h += 1) {
|
|
1607
|
+
const p = c.children[h], g = s(p, l, a);
|
|
1608
1608
|
if (g.length)
|
|
1609
|
-
|
|
1610
|
-
else if (c.operator ===
|
|
1609
|
+
u.push(...g);
|
|
1610
|
+
else if (c.operator === ct.AND)
|
|
1611
1611
|
return [];
|
|
1612
1612
|
}
|
|
1613
|
-
return
|
|
1613
|
+
return u;
|
|
1614
1614
|
}, r = this._myIndex.records, n = {}, o = [];
|
|
1615
1615
|
return r.forEach(({ $: c, i: l }) => {
|
|
1616
|
-
if (
|
|
1617
|
-
let
|
|
1618
|
-
|
|
1619
|
-
n[l].matches.push(...
|
|
1616
|
+
if (b(c)) {
|
|
1617
|
+
let a = s(e, c, l);
|
|
1618
|
+
a.length && (n[l] || (n[l] = { idx: l, item: c, matches: [] }, o.push(n[l])), a.forEach(({ matches: u }) => {
|
|
1619
|
+
n[l].matches.push(...u);
|
|
1620
1620
|
}));
|
|
1621
1621
|
}
|
|
1622
1622
|
}), o;
|
|
1623
1623
|
}
|
|
1624
1624
|
_searchObjectList(t) {
|
|
1625
|
-
const e =
|
|
1625
|
+
const e = Mt(t, this.options), { keys: s, records: r } = this._myIndex, n = [];
|
|
1626
1626
|
return r.forEach(({ $: o, i: c }) => {
|
|
1627
|
-
if (!
|
|
1627
|
+
if (!b(o))
|
|
1628
1628
|
return;
|
|
1629
1629
|
let l = [];
|
|
1630
|
-
s.forEach((
|
|
1630
|
+
s.forEach((a, u) => {
|
|
1631
1631
|
l.push(
|
|
1632
1632
|
...this._findMatches({
|
|
1633
|
-
key:
|
|
1634
|
-
value: o[
|
|
1633
|
+
key: a,
|
|
1634
|
+
value: o[u],
|
|
1635
1635
|
searcher: e
|
|
1636
1636
|
})
|
|
1637
1637
|
);
|
|
@@ -1643,53 +1643,133 @@ class W {
|
|
|
1643
1643
|
}), n;
|
|
1644
1644
|
}
|
|
1645
1645
|
_findMatches({ key: t, value: e, searcher: s }) {
|
|
1646
|
-
if (!
|
|
1646
|
+
if (!b(e))
|
|
1647
1647
|
return [];
|
|
1648
1648
|
let r = [];
|
|
1649
|
-
if (
|
|
1649
|
+
if (O(e))
|
|
1650
1650
|
e.forEach(({ v: n, i: o, n: c }) => {
|
|
1651
|
-
if (!
|
|
1651
|
+
if (!b(n))
|
|
1652
1652
|
return;
|
|
1653
|
-
const { isMatch: l, score:
|
|
1653
|
+
const { isMatch: l, score: a, indices: u } = s.searchIn(n);
|
|
1654
1654
|
l && r.push({
|
|
1655
|
-
score:
|
|
1655
|
+
score: a,
|
|
1656
1656
|
key: t,
|
|
1657
1657
|
value: n,
|
|
1658
1658
|
idx: o,
|
|
1659
1659
|
norm: c,
|
|
1660
|
-
indices:
|
|
1660
|
+
indices: u
|
|
1661
1661
|
});
|
|
1662
1662
|
});
|
|
1663
1663
|
else {
|
|
1664
|
-
const { v: n, n: o } = e, { isMatch: c, score: l, indices:
|
|
1665
|
-
c && r.push({ score: l, key: t, value: n, norm: o, indices:
|
|
1664
|
+
const { v: n, n: o } = e, { isMatch: c, score: l, indices: a } = s.searchIn(n);
|
|
1665
|
+
c && r.push({ score: l, key: t, value: n, norm: o, indices: a });
|
|
1666
1666
|
}
|
|
1667
1667
|
return r;
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1670
|
+
K.version = "6.6.2";
|
|
1671
|
+
K.createIndex = de;
|
|
1672
|
+
K.parseIndex = is;
|
|
1673
|
+
K.config = f;
|
|
1674
|
+
K.parseQuery = me;
|
|
1675
|
+
$s(_s);
|
|
1676
|
+
var rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1677
|
+
function Ss(i) {
|
|
1678
|
+
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
1679
|
+
}
|
|
1680
|
+
var ws = "Expected a function", te = 0 / 0, Ms = "[object Symbol]", Rs = /^\s+|\s+$/g, Cs = /^[-+]0x[0-9a-f]+$/i, Is = /^0b[01]+$/i, Os = /^0o[0-7]+$/i, Ts = parseInt, ks = typeof rt == "object" && rt && rt.Object === Object && rt, Ls = typeof self == "object" && self && self.Object === Object && self, Ns = ks || Ls || Function("return this")(), Ps = Object.prototype, js = Ps.toString, Hs = Math.max, Us = Math.min, vt = function() {
|
|
1681
|
+
return Ns.Date.now();
|
|
1682
|
+
};
|
|
1683
|
+
function Fs(i, t, e) {
|
|
1684
|
+
var s, r, n, o, c, l, a = 0, u = !1, h = !1, d = !0;
|
|
1685
|
+
if (typeof i != "function")
|
|
1686
|
+
throw new TypeError(ws);
|
|
1687
|
+
t = ee(t) || 0, It(e) && (u = !!e.leading, h = "maxWait" in e, n = h ? Hs(ee(e.maxWait) || 0, t) : n, d = "trailing" in e ? !!e.trailing : d);
|
|
1688
|
+
function p($) {
|
|
1689
|
+
var y = s, E = r;
|
|
1690
|
+
return s = r = void 0, a = $, o = i.apply(E, y), o;
|
|
1691
|
+
}
|
|
1692
|
+
function g($) {
|
|
1693
|
+
return a = $, c = setTimeout(A, t), u ? p($) : o;
|
|
1694
|
+
}
|
|
1695
|
+
function v($) {
|
|
1696
|
+
var y = $ - l, E = $ - a, S = t - y;
|
|
1697
|
+
return h ? Us(S, n - E) : S;
|
|
1698
|
+
}
|
|
1699
|
+
function M($) {
|
|
1700
|
+
var y = $ - l, E = $ - a;
|
|
1701
|
+
return l === void 0 || y >= t || y < 0 || h && E >= n;
|
|
1702
|
+
}
|
|
1703
|
+
function A() {
|
|
1704
|
+
var $ = vt();
|
|
1705
|
+
if (M($))
|
|
1706
|
+
return C($);
|
|
1707
|
+
c = setTimeout(A, v($));
|
|
1708
|
+
}
|
|
1709
|
+
function C($) {
|
|
1710
|
+
return c = void 0, d && s ? p($) : (s = r = void 0, o);
|
|
1711
|
+
}
|
|
1712
|
+
function I() {
|
|
1713
|
+
c !== void 0 && clearTimeout(c), a = 0, s = l = r = c = void 0;
|
|
1714
|
+
}
|
|
1715
|
+
function D() {
|
|
1716
|
+
return c === void 0 ? o : C(vt());
|
|
1717
|
+
}
|
|
1718
|
+
function G() {
|
|
1719
|
+
var $ = vt(), y = M($);
|
|
1720
|
+
if (s = arguments, r = this, l = $, y) {
|
|
1721
|
+
if (c === void 0)
|
|
1722
|
+
return g(l);
|
|
1723
|
+
if (h)
|
|
1724
|
+
return c = setTimeout(A, t), p(l);
|
|
1725
|
+
}
|
|
1726
|
+
return c === void 0 && (c = setTimeout(A, t)), o;
|
|
1727
|
+
}
|
|
1728
|
+
return G.cancel = I, G.flush = D, G;
|
|
1729
|
+
}
|
|
1730
|
+
function It(i) {
|
|
1731
|
+
var t = typeof i;
|
|
1732
|
+
return !!i && (t == "object" || t == "function");
|
|
1733
|
+
}
|
|
1734
|
+
function Ds(i) {
|
|
1735
|
+
return !!i && typeof i == "object";
|
|
1736
|
+
}
|
|
1737
|
+
function Bs(i) {
|
|
1738
|
+
return typeof i == "symbol" || Ds(i) && js.call(i) == Ms;
|
|
1739
|
+
}
|
|
1740
|
+
function ee(i) {
|
|
1741
|
+
if (typeof i == "number")
|
|
1742
|
+
return i;
|
|
1743
|
+
if (Bs(i))
|
|
1744
|
+
return te;
|
|
1745
|
+
if (It(i)) {
|
|
1746
|
+
var t = typeof i.valueOf == "function" ? i.valueOf() : i;
|
|
1747
|
+
i = It(t) ? t + "" : t;
|
|
1748
|
+
}
|
|
1749
|
+
if (typeof i != "string")
|
|
1750
|
+
return i === 0 ? i : +i;
|
|
1751
|
+
i = i.replace(Rs, "");
|
|
1752
|
+
var e = Is.test(i);
|
|
1753
|
+
return e || Os.test(i) ? Ts(i.slice(2), e ? 2 : 8) : Cs.test(i) ? te : +i;
|
|
1754
|
+
}
|
|
1755
|
+
var zs = Fs;
|
|
1756
|
+
const Ws = /* @__PURE__ */ Ss(zs), Vs = (i, t = "highlight", e = "title") => {
|
|
1677
1757
|
const s = (n, o, c) => {
|
|
1678
1758
|
const l = o.split(".");
|
|
1679
|
-
let
|
|
1680
|
-
for (
|
|
1681
|
-
n = n[l[
|
|
1682
|
-
n[l[
|
|
1759
|
+
let a;
|
|
1760
|
+
for (a = 0; a < l.length - 1; a++)
|
|
1761
|
+
n = n[l[a]];
|
|
1762
|
+
n[l[a]] = c;
|
|
1683
1763
|
}, r = (n, o = []) => {
|
|
1684
1764
|
let c = "", l = 0;
|
|
1685
|
-
return o.forEach((
|
|
1686
|
-
const
|
|
1765
|
+
return o.forEach((a) => {
|
|
1766
|
+
const u = a[1] + 1;
|
|
1687
1767
|
c += [
|
|
1688
|
-
n.substring(l,
|
|
1768
|
+
n.substring(l, a[0]),
|
|
1689
1769
|
`<mark class="${t}">`,
|
|
1690
|
-
n.substring(
|
|
1770
|
+
n.substring(a[0], u),
|
|
1691
1771
|
"</mark>"
|
|
1692
|
-
].join(""), l =
|
|
1772
|
+
].join(""), l = u;
|
|
1693
1773
|
}), c += n.substring(l), c;
|
|
1694
1774
|
};
|
|
1695
1775
|
return i.filter(({ matches: n }) => n && n.length).map(({ item: n, matches: o }) => {
|
|
@@ -1702,12 +1782,11 @@ const ys = (i, t = "highlight", e = "title") => {
|
|
|
1702
1782
|
);
|
|
1703
1783
|
}), c;
|
|
1704
1784
|
});
|
|
1705
|
-
},
|
|
1785
|
+
}, Ks = `
|
|
1706
1786
|
:host {
|
|
1707
1787
|
display: flex;
|
|
1708
1788
|
box-sizing: border-box;
|
|
1709
1789
|
height: 100%;
|
|
1710
|
-
overflow: hidden;
|
|
1711
1790
|
}
|
|
1712
1791
|
*,
|
|
1713
1792
|
*:before,
|
|
@@ -1741,6 +1820,14 @@ label {
|
|
|
1741
1820
|
details {
|
|
1742
1821
|
margin-bottom: 0.5rem;
|
|
1743
1822
|
}
|
|
1823
|
+
details[open] {
|
|
1824
|
+
position: absolute;
|
|
1825
|
+
left: 16px;
|
|
1826
|
+
right: 12px;
|
|
1827
|
+
}
|
|
1828
|
+
details[open] summary {
|
|
1829
|
+
height: 30px;
|
|
1830
|
+
}
|
|
1744
1831
|
details summary > * {
|
|
1745
1832
|
display: inline;
|
|
1746
1833
|
}
|
|
@@ -1748,28 +1835,28 @@ details summary {
|
|
|
1748
1835
|
display: flex;
|
|
1749
1836
|
align-items: center;
|
|
1750
1837
|
}
|
|
1751
|
-
|
|
1838
|
+
.details-filter summary {
|
|
1752
1839
|
justify-content: space-between;
|
|
1753
1840
|
}
|
|
1754
1841
|
#details-results summary {
|
|
1755
1842
|
list-style: none;
|
|
1756
1843
|
}
|
|
1757
|
-
|
|
1844
|
+
.details-filter summary svg,
|
|
1758
1845
|
#details-results summary svg {
|
|
1759
|
-
width:
|
|
1760
|
-
height:
|
|
1846
|
+
width: 14px;
|
|
1847
|
+
height: 14px;
|
|
1761
1848
|
transition: all ease-in-out 0.3s;
|
|
1762
1849
|
}
|
|
1763
1850
|
#details-results summary svg {
|
|
1764
1851
|
transform: rotate(-90deg);
|
|
1765
1852
|
}
|
|
1766
|
-
|
|
1853
|
+
.details-filter[open] summary svg {
|
|
1767
1854
|
transform: rotate(180deg);
|
|
1768
1855
|
}
|
|
1769
1856
|
#details-results[open] summary svg {
|
|
1770
1857
|
transform: rotate(0deg);
|
|
1771
1858
|
}
|
|
1772
|
-
|
|
1859
|
+
.details-filter li span,
|
|
1773
1860
|
details summary {
|
|
1774
1861
|
text-transform: capitalize;
|
|
1775
1862
|
}
|
|
@@ -1815,18 +1902,37 @@ ul#results li {
|
|
|
1815
1902
|
#filter-reset {
|
|
1816
1903
|
cursor: pointer;
|
|
1817
1904
|
}
|
|
1905
|
+
section.inline,
|
|
1906
|
+
section.inline > ul {
|
|
1907
|
+
display: flex;
|
|
1908
|
+
align-items: flex-start;
|
|
1909
|
+
flex-wrap: wrap;
|
|
1910
|
+
justify-content: space-between;
|
|
1911
|
+
margin: 0;
|
|
1912
|
+
}
|
|
1913
|
+
section.inline details.details-filter {
|
|
1914
|
+
background: lightgrey;
|
|
1915
|
+
border-radius: 13px;
|
|
1916
|
+
margin: 0;
|
|
1917
|
+
margin-right: 4px;
|
|
1918
|
+
padding: 4px 7px;
|
|
1919
|
+
}
|
|
1920
|
+
section.inline details.details-filter summary {
|
|
1921
|
+
display: flex;
|
|
1922
|
+
align-items: center;
|
|
1923
|
+
}
|
|
1818
1924
|
.scroll {
|
|
1819
1925
|
height: 100%;
|
|
1820
1926
|
overflow-x: hidden;
|
|
1821
1927
|
overflow-y: auto;
|
|
1822
1928
|
}
|
|
1823
1929
|
`;
|
|
1824
|
-
var
|
|
1825
|
-
for (var r = s > 1 ? void 0 : s ?
|
|
1930
|
+
var Gs = Object.defineProperty, Ys = Object.getOwnPropertyDescriptor, F = (i, t, e, s) => {
|
|
1931
|
+
for (var r = s > 1 ? void 0 : s ? Ys(t, e) : t, n = i.length - 1, o; n >= 0; n--)
|
|
1826
1932
|
(o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
|
1827
|
-
return s && r &&
|
|
1933
|
+
return s && r && Gs(t, e, r), r;
|
|
1828
1934
|
};
|
|
1829
|
-
class
|
|
1935
|
+
class se {
|
|
1830
1936
|
constructor() {
|
|
1831
1937
|
/**
|
|
1832
1938
|
* Aggregate results by a property key
|
|
@@ -1840,14 +1946,15 @@ class qt {
|
|
|
1840
1946
|
* Search functionality
|
|
1841
1947
|
*/
|
|
1842
1948
|
m(this, "enableSearch", !1);
|
|
1843
|
-
/**
|
|
1844
|
-
* Display results list
|
|
1845
|
-
*/
|
|
1846
|
-
m(this, "showResults", !0);
|
|
1847
1949
|
/**
|
|
1848
1950
|
* Make the filters mutually exclusive
|
|
1849
1951
|
*/
|
|
1850
1952
|
m(this, "exclusiveFilters", !1);
|
|
1953
|
+
/**
|
|
1954
|
+
* Use an external search endpoint instead of fuse search.
|
|
1955
|
+
* Passed properties: input string, filters object
|
|
1956
|
+
*/
|
|
1957
|
+
m(this, "externalSearch");
|
|
1851
1958
|
/**
|
|
1852
1959
|
* The filter properties.
|
|
1853
1960
|
* @param filterProperties
|
|
@@ -1859,6 +1966,11 @@ class qt {
|
|
|
1859
1966
|
m(this, "fuseConfig", {
|
|
1860
1967
|
keys: ["title"]
|
|
1861
1968
|
});
|
|
1969
|
+
/**
|
|
1970
|
+
* Inline mode, for rendering the itemfilter in avery condensed space.
|
|
1971
|
+
* Expexts showResults to be false and enableSearch to be true
|
|
1972
|
+
*/
|
|
1973
|
+
m(this, "inlineMode", !1);
|
|
1862
1974
|
/**
|
|
1863
1975
|
* Show all result items if nothing is input by the user
|
|
1864
1976
|
* @default true
|
|
@@ -1876,27 +1988,31 @@ class qt {
|
|
|
1876
1988
|
*/
|
|
1877
1989
|
m(this, "onSelect", () => {
|
|
1878
1990
|
});
|
|
1991
|
+
/**
|
|
1992
|
+
* Display results list
|
|
1993
|
+
*/
|
|
1994
|
+
m(this, "showResults", !0);
|
|
1879
1995
|
/**
|
|
1880
1996
|
* The property of the result items used for display
|
|
1881
1997
|
*/
|
|
1882
1998
|
m(this, "titleProperty", "title");
|
|
1883
1999
|
}
|
|
1884
2000
|
}
|
|
1885
|
-
let
|
|
2001
|
+
let k = class extends X {
|
|
1886
2002
|
constructor() {
|
|
1887
2003
|
super(...arguments);
|
|
1888
2004
|
m(this, "_fuse");
|
|
1889
2005
|
m(this, "_resultAggregation", []);
|
|
1890
2006
|
m(this, "_items", []);
|
|
1891
|
-
m(this, "_results"
|
|
2007
|
+
m(this, "_results");
|
|
1892
2008
|
m(this, "_filters", {});
|
|
1893
2009
|
m(this, "_selectedResult");
|
|
1894
|
-
m(this, "_config", new
|
|
2010
|
+
m(this, "_config", new se());
|
|
1895
2011
|
m(this, "apply", (t) => {
|
|
1896
2012
|
this._items = t.map((e, s) => ({
|
|
1897
2013
|
...e,
|
|
1898
2014
|
id: `item-${s}`
|
|
1899
|
-
})), this._fuse = new
|
|
2015
|
+
})), this._fuse = new K(this._items, {
|
|
1900
2016
|
minMatchCharLength: 3,
|
|
1901
2017
|
// location: 0,
|
|
1902
2018
|
threshold: 0.4,
|
|
@@ -1917,31 +2033,41 @@ let C = class extends Y {
|
|
|
1917
2033
|
)
|
|
1918
2034
|
].sort());
|
|
1919
2035
|
});
|
|
2036
|
+
m(this, "inputHandler", () => {
|
|
2037
|
+
this.search(this.renderRoot.querySelector("input[type='text']").value);
|
|
2038
|
+
});
|
|
2039
|
+
m(this, "debouncedInputHandler", Ws(this.inputHandler, 500, {
|
|
2040
|
+
leading: !0
|
|
2041
|
+
}));
|
|
1920
2042
|
}
|
|
1921
2043
|
set config(t) {
|
|
1922
2044
|
const e = this._config;
|
|
1923
2045
|
this._config = {
|
|
1924
|
-
...new
|
|
2046
|
+
...new se(),
|
|
1925
2047
|
...t
|
|
1926
2048
|
}, this.requestUpdate("config", e);
|
|
1927
2049
|
}
|
|
1928
2050
|
get config() {
|
|
1929
2051
|
return this._config;
|
|
1930
2052
|
}
|
|
1931
|
-
search(t = "", e = this._filters) {
|
|
2053
|
+
async search(t = "", e = this._filters) {
|
|
1932
2054
|
const s = Object.entries(e).reduce(
|
|
1933
2055
|
(n, [o, c]) => {
|
|
1934
|
-
const l = (
|
|
1935
|
-
const
|
|
1936
|
-
|
|
2056
|
+
const l = (a) => {
|
|
2057
|
+
const u = {};
|
|
2058
|
+
u[o] = `="${a}"`, n.push(u);
|
|
1937
2059
|
};
|
|
1938
|
-
return Object.entries(c).filter(([
|
|
2060
|
+
return Object.entries(c).filter(([a, u]) => u).forEach(([a, u]) => l(a)), n;
|
|
1939
2061
|
},
|
|
1940
2062
|
[]
|
|
1941
2063
|
);
|
|
1942
2064
|
let r;
|
|
1943
2065
|
if (!(t.length > 2) && !s.length && this._config.matchAllWhenEmpty !== !1)
|
|
1944
2066
|
r = this._items;
|
|
2067
|
+
else if (this.config.externalSearch)
|
|
2068
|
+
r = (await (await fetch(
|
|
2069
|
+
`${this.config.externalSearch(t, e)}`
|
|
2070
|
+
)).json()).features;
|
|
1945
2071
|
else {
|
|
1946
2072
|
const n = {
|
|
1947
2073
|
...t.length > 2 && s.length ? {
|
|
@@ -1970,7 +2096,7 @@ let C = class extends Y {
|
|
|
1970
2096
|
]
|
|
1971
2097
|
}
|
|
1972
2098
|
}, o = this._fuse.search(n);
|
|
1973
|
-
r = this._config.enableHighlighting ?
|
|
2099
|
+
r = this._config.enableHighlighting ? Vs(o, "highlight", this._config.titleProperty) : o.map((c) => c.item);
|
|
1974
2100
|
}
|
|
1975
2101
|
this._results = this.sortResults(r), this._config.onSearch(r), this.requestUpdate();
|
|
1976
2102
|
}
|
|
@@ -2017,7 +2143,7 @@ let C = class extends Y {
|
|
|
2017
2143
|
});
|
|
2018
2144
|
}
|
|
2019
2145
|
resetFilters() {
|
|
2020
|
-
this.renderRoot.querySelectorAll("
|
|
2146
|
+
this.renderRoot.querySelectorAll(".details-filter input").forEach((e) => {
|
|
2021
2147
|
e.checked = !1;
|
|
2022
2148
|
});
|
|
2023
2149
|
const t = this.renderRoot.querySelector('input[type="text"]');
|
|
@@ -2028,49 +2154,65 @@ let C = class extends Y {
|
|
|
2028
2154
|
}), this.search(), this.requestUpdate();
|
|
2029
2155
|
}
|
|
2030
2156
|
render() {
|
|
2031
|
-
return
|
|
2157
|
+
return x`
|
|
2032
2158
|
<style>
|
|
2033
|
-
${
|
|
2159
|
+
${Ks}
|
|
2034
2160
|
</style>
|
|
2035
2161
|
<form>
|
|
2036
|
-
${
|
|
2162
|
+
${q(
|
|
2037
2163
|
this._config.enableSearch,
|
|
2038
|
-
() =>
|
|
2164
|
+
() => x`
|
|
2039
2165
|
<section>
|
|
2040
2166
|
<input
|
|
2041
2167
|
type="text"
|
|
2042
|
-
placeholder="
|
|
2168
|
+
placeholder="Type something..."
|
|
2043
2169
|
data-cy="search"
|
|
2044
|
-
|
|
2170
|
+
part="input-search"
|
|
2171
|
+
@input="${this.debouncedInputHandler}"
|
|
2045
2172
|
/>
|
|
2046
2173
|
</section>
|
|
2047
2174
|
`
|
|
2048
2175
|
)}
|
|
2049
|
-
${
|
|
2176
|
+
${q(
|
|
2050
2177
|
this._config.filterProperties.length,
|
|
2051
|
-
() =>
|
|
2052
|
-
<section>
|
|
2053
|
-
|
|
2178
|
+
() => x`
|
|
2179
|
+
<section class="${this.config.inlineMode ? "inline" : _}">
|
|
2180
|
+
${q(
|
|
2181
|
+
!this.config.inlineMode,
|
|
2182
|
+
() => x` <slot name="filterstitle"></slot> `
|
|
2183
|
+
)}
|
|
2054
2184
|
<ul id="filters">
|
|
2055
|
-
${
|
|
2185
|
+
${J(
|
|
2056
2186
|
this._config.filterProperties,
|
|
2057
|
-
(t) =>
|
|
2187
|
+
(t) => x`
|
|
2058
2188
|
<details
|
|
2059
|
-
|
|
2189
|
+
class="details-filter"
|
|
2190
|
+
part="details-filter"
|
|
2060
2191
|
data-filter="${t}"
|
|
2061
|
-
@click=${() => this.renderRoot.querySelectorAll("details
|
|
2192
|
+
@click=${() => this.renderRoot.querySelectorAll("details.details-filter").forEach((e) => {
|
|
2062
2193
|
e.getAttribute("data-filter") !== t && (e.removeAttribute("open"), this.requestUpdate());
|
|
2063
2194
|
})}
|
|
2064
2195
|
>
|
|
2065
2196
|
<summary>
|
|
2066
2197
|
<small>
|
|
2067
|
-
<strong class="title">
|
|
2198
|
+
<strong class="title">
|
|
2199
|
+
${t}
|
|
2200
|
+
${// @ts-ignore
|
|
2201
|
+
Object.values(this._filters[t]).filter(
|
|
2202
|
+
(e) => e
|
|
2203
|
+
).length ? `(${// @ts-ignore
|
|
2204
|
+
Object.values(this._filters[t]).filter(
|
|
2205
|
+
(e) => e
|
|
2206
|
+
).length})` : _}
|
|
2207
|
+
</strong>
|
|
2068
2208
|
</small>
|
|
2069
|
-
<div
|
|
2209
|
+
<div
|
|
2210
|
+
style="display: flex; align-items: center; justify-content: center; margin-left: 4px;"
|
|
2211
|
+
>
|
|
2070
2212
|
<svg
|
|
2071
2213
|
data-cy="expand-button"
|
|
2072
2214
|
xmlns="http://www.w3.org/2000/svg"
|
|
2073
|
-
viewBox="
|
|
2215
|
+
viewBox="6 6 12 12"
|
|
2074
2216
|
>
|
|
2075
2217
|
<title>chevron-down</title>
|
|
2076
2218
|
<path
|
|
@@ -2082,10 +2224,10 @@ let C = class extends Y {
|
|
|
2082
2224
|
<div class="scroll" style="max-height: 150px">
|
|
2083
2225
|
<ul>
|
|
2084
2226
|
${// @ts-ignore
|
|
2085
|
-
this._filters[t] ?
|
|
2227
|
+
this._filters[t] ? J(
|
|
2086
2228
|
// @ts-ignore
|
|
2087
2229
|
Object.keys(this._filters[t]).sort(),
|
|
2088
|
-
(e) =>
|
|
2230
|
+
(e) => x`
|
|
2089
2231
|
<li>
|
|
2090
2232
|
<label>
|
|
2091
2233
|
<input
|
|
@@ -2106,9 +2248,9 @@ let C = class extends Y {
|
|
|
2106
2248
|
`
|
|
2107
2249
|
)}
|
|
2108
2250
|
</ul>
|
|
2109
|
-
${
|
|
2251
|
+
${q(
|
|
2110
2252
|
this._config.filterProperties,
|
|
2111
|
-
() =>
|
|
2253
|
+
() => x`
|
|
2112
2254
|
<a
|
|
2113
2255
|
id="filter-reset"
|
|
2114
2256
|
data-cy="filter-reset"
|
|
@@ -2120,24 +2262,24 @@ let C = class extends Y {
|
|
|
2120
2262
|
</section>
|
|
2121
2263
|
`
|
|
2122
2264
|
)}
|
|
2123
|
-
${
|
|
2124
|
-
this.config.showResults,
|
|
2125
|
-
() =>
|
|
2265
|
+
${q(
|
|
2266
|
+
this.config.showResults && this._results,
|
|
2267
|
+
() => x`
|
|
2126
2268
|
<section id="section-results">
|
|
2127
2269
|
<div>
|
|
2128
2270
|
<slot name="resultstitle"></slot>
|
|
2129
2271
|
</div>
|
|
2130
2272
|
<div id="container-results" class="scroll">
|
|
2131
|
-
${this._results.length < 1 ?
|
|
2132
|
-
<ul id="results">
|
|
2133
|
-
${this._config.aggregateResults ?
|
|
2273
|
+
${this._results.length < 1 ? x` <small class="no-results">No matching items</small> ` : _}
|
|
2274
|
+
<ul id="results" part="results">
|
|
2275
|
+
${this._config.aggregateResults ? J(
|
|
2134
2276
|
this._resultAggregation.filter(
|
|
2135
2277
|
(t) => this.aggregateResults(
|
|
2136
2278
|
this._results,
|
|
2137
2279
|
t
|
|
2138
2280
|
).length
|
|
2139
2281
|
),
|
|
2140
|
-
(t) =>
|
|
2282
|
+
(t) => x`<details
|
|
2141
2283
|
id="details-results"
|
|
2142
2284
|
open
|
|
2143
2285
|
>
|
|
@@ -2162,13 +2304,13 @@ let C = class extends Y {
|
|
|
2162
2304
|
>
|
|
2163
2305
|
</summary>
|
|
2164
2306
|
<ul>
|
|
2165
|
-
${
|
|
2307
|
+
${J(
|
|
2166
2308
|
this.aggregateResults(
|
|
2167
2309
|
this._results,
|
|
2168
2310
|
t
|
|
2169
2311
|
),
|
|
2170
2312
|
// @ts-ignore
|
|
2171
|
-
(e) =>
|
|
2313
|
+
(e) => x`
|
|
2172
2314
|
<li>
|
|
2173
2315
|
<label>
|
|
2174
2316
|
<input
|
|
@@ -2181,7 +2323,7 @@ let C = class extends Y {
|
|
|
2181
2323
|
}}
|
|
2182
2324
|
/>
|
|
2183
2325
|
<span class="title"
|
|
2184
|
-
>${
|
|
2326
|
+
>${Yt(
|
|
2185
2327
|
// @ts-ignore
|
|
2186
2328
|
e[this._config.titleProperty]
|
|
2187
2329
|
)}</span
|
|
@@ -2192,12 +2334,12 @@ let C = class extends Y {
|
|
|
2192
2334
|
)}
|
|
2193
2335
|
</ul>
|
|
2194
2336
|
</details>`
|
|
2195
|
-
) :
|
|
2337
|
+
) : J(
|
|
2196
2338
|
this._results,
|
|
2197
2339
|
// @ts-ignore
|
|
2198
|
-
(t) =>
|
|
2340
|
+
(t) => x`<li part="result">
|
|
2199
2341
|
${// @ts-ignore
|
|
2200
|
-
|
|
2342
|
+
Yt(t[this._config.titleProperty])}
|
|
2201
2343
|
</li>`
|
|
2202
2344
|
)}
|
|
2203
2345
|
</ul>
|
|
@@ -2208,28 +2350,44 @@ let C = class extends Y {
|
|
|
2208
2350
|
</form>
|
|
2209
2351
|
`;
|
|
2210
2352
|
}
|
|
2353
|
+
// protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void {
|
|
2354
|
+
// function parseStringTemplate(str, obj, key) {
|
|
2355
|
+
// const strP = str.replaceAll(`${key}.`, '')
|
|
2356
|
+
// let parts = strP.split(/\$\{(?!\d)[\wæøåÆØÅ]*\}/);
|
|
2357
|
+
// let args = strP.match(/[^{\}]+(?=})/g) || [];
|
|
2358
|
+
// let parameters = args.map(argument => obj[argument] || (obj[argument] === undefined ? "" : obj[argument]));
|
|
2359
|
+
// return String.raw({ raw: parts }, ...parameters);
|
|
2360
|
+
// }
|
|
2361
|
+
// const slot = this.shadowRoot.querySelector('slot[name=results]');
|
|
2362
|
+
// const template = slot.assignedElements({flatten: true})[0]
|
|
2363
|
+
// const dataType = template.getAttribute('data-type')
|
|
2364
|
+
// const pT = parseStringTemplate(template.innerHTML, this[dataType], dataType);
|
|
2365
|
+
// template.innerHTML = pT
|
|
2366
|
+
// let clon = template.content.cloneNode(true);
|
|
2367
|
+
// slot.replaceWith(clon);
|
|
2368
|
+
// }
|
|
2211
2369
|
};
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
],
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
],
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
],
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
],
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
],
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
],
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
],
|
|
2370
|
+
F([
|
|
2371
|
+
ht()
|
|
2372
|
+
], k.prototype, "_items", 2);
|
|
2373
|
+
F([
|
|
2374
|
+
ht()
|
|
2375
|
+
], k.prototype, "_results", 2);
|
|
2376
|
+
F([
|
|
2377
|
+
ht()
|
|
2378
|
+
], k.prototype, "_filters", 2);
|
|
2379
|
+
F([
|
|
2380
|
+
ht()
|
|
2381
|
+
], k.prototype, "_selectedResult", 2);
|
|
2382
|
+
F([
|
|
2383
|
+
Tt({ attribute: !1 })
|
|
2384
|
+
], k.prototype, "config", 1);
|
|
2385
|
+
F([
|
|
2386
|
+
Tt()
|
|
2387
|
+
], k.prototype, "apply", 2);
|
|
2388
|
+
k = F([
|
|
2389
|
+
Le("eox-itemfilter")
|
|
2390
|
+
], k);
|
|
2233
2391
|
export {
|
|
2234
|
-
|
|
2392
|
+
k as EOxItemFilter
|
|
2235
2393
|
};
|