Package_html_static.mk               |    2 
 help3xsl/flexsearch.compact.debug.js | 1619 +++++++++++++++++++++++++++++++++++
 help3xsl/flexsearch.debug.js         |  963 --------------------
 help3xsl/online_transform.xsl        |    2 
 4 files changed, 1621 insertions(+), 965 deletions(-)

New commits:
commit c642d5fe55e225223d9a994f2ec77cd9eba62d2f
Author:     Ilmari Lauhakangas <[email protected]>
AuthorDate: Fri Feb 13 13:21:16 2026 +0200
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Fri Feb 13 12:24:01 2026 +0100

    Update Flexsearch to v0.8.2 - compact is enough for us
    
    Change-Id: I1f14624e4025af9f9becbcfe82b9a0b44f1ffadf
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/199332
    Tested-by: Jenkins
    Tested-by: Ilmari Lauhakangas <[email protected]>
    Reviewed-by: Ilmari Lauhakangas <[email protected]>

diff --git a/Package_html_static.mk b/Package_html_static.mk
index 4ef37566d1..a75f8ac09d 100644
--- a/Package_html_static.mk
+++ b/Package_html_static.mk
@@ -18,7 +18,7 @@ $(eval $(call 
gb_Package_add_file,helpcontent2_html_static,$(LIBO_SHARE_HELP_FOL
 
 $(eval $(call 
gb_Package_add_files,helpcontent2_html_static,$(LIBO_SHARE_HELP_FOLDER)$(if 
$(HELP_ONLINE),/$(PRODUCTVERSION)),\
        a11y-toggle.js \
-       flexsearch.debug.js \
+       flexsearch.compact.debug.js \
        help.js \
        normalize.css \
        paginathing.js \
diff --git a/help3xsl/flexsearch.compact.debug.js 
b/help3xsl/flexsearch.compact.debug.js
new file mode 100644
index 0000000000..dca27127d3
--- /dev/null
+++ b/help3xsl/flexsearch.compact.debug.js
@@ -0,0 +1,1619 @@
+/**!
+ * FlexSearch.js v0.8.200 (Bundle/Debug)
+ * Author and Copyright: Thomas Wilkerling
+ * Licence: Apache-2.0
+ * Hosted by Nextapps GmbH
+ * https://github.com/nextapps-de/flexsearch
+ */
+(function(self){'use strict';
+var A;
+function I(a, c, b) {
+  const e = typeof b, d = typeof a;
+  if ("undefined" !== e) {
+    if ("undefined" !== d) {
+      if (b) {
+        if ("function" === d && e === d) {
+          return function(h) {
+            return a(b(h));
+          };
+        }
+        c = a.constructor;
+        if (c === b.constructor) {
+          if (c === Array) {
+            return b.concat(a);
+          }
+          if (c === Map) {
+            var f = new Map(b);
+            for (var g of a) {
+              f.set(g[0], g[1]);
+            }
+            return f;
+          }
+          if (c === Set) {
+            g = new Set(b);
+            for (f of a.values()) {
+              g.add(f);
+            }
+            return g;
+          }
+        }
+      }
+      return a;
+    }
+    return b;
+  }
+  return "undefined" === d ? c : a;
+}
+function J(a, c) {
+  return "undefined" === typeof a ? c : a;
+}
+function M() {
+  return Object.create(null);
+}
+function P(a) {
+  return "string" === typeof a;
+}
+function R(a) {
+  return "object" === typeof a;
+}
+function S(a, c) {
+  if (P(c)) {
+    a = a[c];
+  } else {
+    for (let b = 0; a && b < c.length; b++) {
+      a = a[c[b]];
+    }
+  }
+  return a;
+}
+;const aa = /[^\p{L}\p{N}]+/u, da = /(\d{3})/g, ea = /(\D)(\d{3})/g, fa = 
/(\d{3})(\D)/g, ha = /[\u0300-\u036f]/g;
+function ka(a = {}) {
+  if (!this || this.constructor !== ka) {
+    return new ka(...arguments);
+  }
+  if (arguments.length) {
+    for (a = 0; a < arguments.length; a++) {
+      this.assign(arguments[a]);
+    }
+  } else {
+    this.assign(a);
+  }
+}
+A = ka.prototype;
+A.assign = function(a) {
+  this.normalize = I(a.normalize, !0, this.normalize);
+  let c = a.include, b = c || a.exclude || a.split, e;
+  if (b || "" === b) {
+    if ("object" === typeof b && b.constructor !== RegExp) {
+      let d = "";
+      e = !c;
+      c || (d += "\p{Z}");
+      b.letter && (d += "\p{L}");
+      b.number && (d += "\p{N}", e = !!c);
+      b.symbol && (d += "\p{S}");
+      b.punctuation && (d += "\p{P}");
+      b.control && (d += "\p{C}");
+      if (b = b.char) {
+        d += "object" === typeof b ? b.join("") : b;
+      }
+      try {
+        this.split = new RegExp("[" + (c ? "^" : "") + d + "]+", "u");
+      } catch (f) {
+        console.error("Your split configuration:", b, "is not supported on 
this platform. It falls back to using simple whitespace splitter instead: 
/s+/."), this.split = /\s+/;
+      }
+    } else {
+      this.split = b, e = !1 === b || 2 > "a1a".split(b).length;
+    }
+    this.numeric = I(a.numeric, e);
+  } else {
+    try {
+      this.split = I(this.split, aa);
+    } catch (d) {
+      console.warn("This platform does not support unicode regex. It falls 
back to using simple whitespace splitter instead: /s+/."), this.split = /\s+/;
+    }
+    this.numeric = I(a.numeric, I(this.numeric, !0));
+  }
+  this.prepare = I(a.prepare, null, this.prepare);
+  this.finalize = I(a.finalize, null, this.finalize);
+  b = a.filter;
+  this.filter = "function" === typeof b ? b : I(b && new Set(b), null, 
this.filter);
+  this.dedupe = I(a.dedupe, !0, this.dedupe);
+  this.matcher = I((b = a.matcher) && new Map(b), null, this.matcher);
+  this.mapper = I((b = a.mapper) && new Map(b), null, this.mapper);
+  this.stemmer = I((b = a.stemmer) && new Map(b), null, this.stemmer);
+  this.replacer = I(a.replacer, null, this.replacer);
+  this.minlength = I(a.minlength, 1, this.minlength);
+  this.maxlength = I(a.maxlength, 1024, this.maxlength);
+  this.rtl = I(a.rtl, !1, this.rtl);
+  if (this.cache = b = I(a.cache, !0, this.cache)) {
+    this.H = null, this.O = "number" === typeof b ? b : 2e5, this.F = new 
Map(), this.G = new Map(), this.L = this.K = 128;
+  }
+  this.h = "";
+  this.M = null;
+  this.C = "";
+  this.N = null;
+  if (this.matcher) {
+    for (const d of this.matcher.keys()) {
+      this.h += (this.h ? "|" : "") + d;
+    }
+  }
+  if (this.stemmer) {
+    for (const d of this.stemmer.keys()) {
+      this.C += (this.C ? "|" : "") + d;
+    }
+  }
+  return this;
+};
+A.addStemmer = function(a, c) {
+  this.stemmer || (this.stemmer = new Map());
+  this.stemmer.set(a, c);
+  this.C += (this.C ? "|" : "") + a;
+  this.N = null;
+  this.cache && T(this);
+  return this;
+};
+A.addFilter = function(a) {
+  "function" === typeof a ? this.filter = a : (this.filter || (this.filter = 
new Set()), this.filter.add(a));
+  this.cache && T(this);
+  return this;
+};
+A.addMapper = function(a, c) {
+  if ("object" === typeof a) {
+    return this.addReplacer(a, c);
+  }
+  if (1 < a.length) {
+    return this.addMatcher(a, c);
+  }
+  this.mapper || (this.mapper = new Map());
+  this.mapper.set(a, c);
+  this.cache && T(this);
+  return this;
+};
+A.addMatcher = function(a, c) {
+  if ("object" === typeof a) {
+    return this.addReplacer(a, c);
+  }
+  if (2 > a.length && (this.dedupe || this.mapper)) {
+    return this.addMapper(a, c);
+  }
+  this.matcher || (this.matcher = new Map());
+  this.matcher.set(a, c);
+  this.h += (this.h ? "|" : "") + a;
+  this.M = null;
+  this.cache && T(this);
+  return this;
+};
+A.addReplacer = function(a, c) {
+  if ("string" === typeof a) {
+    return this.addMatcher(a, c);
+  }
+  this.replacer || (this.replacer = []);
+  this.replacer.push(a, c);
+  this.cache && T(this);
+  return this;
+};
+A.encode = function(a, c) {
+  if (this.cache && a.length <= this.K) {
+    if (this.H) {
+      if (this.F.has(a)) {
+        return this.F.get(a);
+      }
+    } else {
+      this.H = setTimeout(T, 50, this);
+    }
+  }
+  this.normalize && ("function" === typeof this.normalize ? a = 
this.normalize(a) : a = ha ? a.normalize("NFKD").replace(ha, "").toLowerCase() 
: a.toLowerCase());
+  this.prepare && (a = this.prepare(a));
+  this.numeric && 3 < a.length && (a = a.replace(ea, "$1 $2").replace(fa, "$1 
$2").replace(da, "$1 "));
+  const b = !(this.dedupe || this.mapper || this.filter || this.matcher || 
this.stemmer || this.replacer);
+  let e = [], d = M(), f, g, h = this.split || "" === this.split ? 
a.split(this.split) : [a];
+  for (let n = 0, l, D; n < h.length; n++) {
+    if ((l = D = h[n]) && !(l.length < this.minlength || l.length > 
this.maxlength)) {
+      if (c) {
+        if (d[l]) {
+          continue;
+        }
+        d[l] = 1;
+      } else {
+        if (f === l) {
+          continue;
+        }
+        f = l;
+      }
+      if (b) {
+        e.push(l);
+      } else {
+        if (!this.filter || ("function" === typeof this.filter ? 
this.filter(l) : !this.filter.has(l))) {
+          if (this.cache && l.length <= this.L) {
+            if (this.H) {
+              var k = this.G.get(l);
+              if (k || "" === k) {
+                k && e.push(k);
+                continue;
+              }
+            } else {
+              this.H = setTimeout(T, 50, this);
+            }
+          }
+          if (this.stemmer) {
+            this.N || (this.N = new RegExp("(?!^)(" + this.C + ")$"));
+            let w;
+            for (; w !== l && 2 < l.length;) {
+              w = l, l = l.replace(this.N, t => this.stemmer.get(t));
+            }
+          }
+          if (l && (this.mapper || this.dedupe && 1 < l.length)) {
+            k = "";
+            for (let w = 0, t = "", p, x; w < l.length; w++) {
+              p = l.charAt(w), p === t && this.dedupe || ((x = this.mapper && 
this.mapper.get(p)) || "" === x ? x === t && this.dedupe || !(t = x) || (k += 
x) : k += t = p);
+            }
+            l = k;
+          }
+          this.matcher && 1 < l.length && (this.M || (this.M = new RegExp("(" 
+ this.h + ")", "g")), l = l.replace(this.M, w => this.matcher.get(w)));
+          if (l && this.replacer) {
+            for (k = 0; l && k < this.replacer.length; k += 2) {
+              l = l.replace(this.replacer[k], this.replacer[k + 1]);
+            }
+          }
+          this.cache && D.length <= this.L && (this.G.set(D, l), this.G.size > 
this.O && (this.G.clear(), this.L = this.L / 1.1 | 0));
+          if (l) {
+            if (l !== D) {
+              if (c) {
+                if (d[l]) {
+                  continue;
+                }
+                d[l] = 1;
+              } else {
+                if (g === l) {
+                  continue;
+                }
+                g = l;
+              }
+            }
+            e.push(l);
+          }
+        }
+      }
+    }
+  }
+  this.finalize && (e = this.finalize(e) || e);
+  this.cache && a.length <= this.K && (this.F.set(a, e), this.F.size > this.O 
&& (this.F.clear(), this.K = this.K / 1.1 | 0));
+  return e;
+};
+function T(a) {
+  a.H = null;
+  a.F.clear();
+  a.G.clear();
+}
+;function la(a, c, b) {
+  b || (c || "object" !== typeof a ? "object" === typeof c && (b = c, c = 0) : 
b = a);
+  b && (a = b.query || a, c = b.limit || c);
+  let e = "" + (c || 0);
+  b && (e += (b.offset || 0) + !!b.context + !!b.suggest + (!1 !== b.resolve) 
+ (b.resolution || this.resolution) + (b.boost || 0));
+  a = ("" + a).toLowerCase();
+  this.cache || (this.cache = new W());
+  let d = this.cache.get(a + e);
+  if (!d) {
+    const f = b && b.cache;
+    f && (b.cache = !1);
+    d = this.search(a, c, b);
+    f && (b.cache = f);
+    this.cache.set(a + e, d);
+  }
+  return d;
+}
+function W(a) {
+  this.limit = a && !0 !== a ? a : 1000;
+  this.cache = new Map();
+  this.h = "";
+}
+W.prototype.set = function(a, c) {
+  this.cache.set(this.h = a, c);
+  this.cache.size > this.limit && 
this.cache.delete(this.cache.keys().next().value);
+};
+W.prototype.get = function(a) {
+  const c = this.cache.get(a);
+  c && this.h !== a && (this.cache.delete(a), this.cache.set(this.h = a, c));
+  return c;
+};
+W.prototype.remove = function(a) {
+  for (const c of this.cache) {
+    const b = c[0];
+    c[1].includes(a) && this.cache.delete(b);
+  }
+};
+W.prototype.clear = function() {
+  this.cache.clear();
+  this.h = "";
+};
+const ma = {normalize:!1, numeric:!1, dedupe:!1};
+const na = {};
+const oa = new Map([["b", "p"], ["v", "f"], ["w", "f"], ["z", "s"], ["x", 
"s"], ["d", "t"], ["n", "m"], ["c", "k"], ["g", "k"], ["j", "k"], ["q", "k"], 
["i", "e"], ["y", "e"], ["u", "o"]]);
+const pa = new Map([["ae", "a"], ["oe", "o"], ["sh", "s"], ["kh", "k"], ["th", 
"t"], ["ph", "f"], ["pf", "f"]]), qa = [/([^aeo])h(.)/g, "$1$2", 
/([aeo])h([^aeo]|$)/g, "$1$2", /(.)+/g, "$1"];
+const ra = {a:"", e:"", i:"", o:"", u:"", y:"", b:1, f:1, p:1, v:1, c:2, g:2, 
j:2, k:2, q:2, s:2, x:2, z:2, "\u00df":2, d:3, t:3, l:4, m:5, n:5, r:6};
+var sa = {Exact:ma, Default:na, Normalize:na, LatinBalance:{mapper:oa}, 
LatinAdvanced:{mapper:oa, matcher:pa, replacer:qa}, LatinExtra:{mapper:oa, 
replacer:qa.concat([/(?!^)[aeo]/g, ""]), matcher:pa}, LatinSoundex:{dedupe:!1, 
include:{letter:!0}, finalize:function(a) {
+  for (let b = 0; b < a.length; b++) {
+    var c = a[b];
+    let e = c.charAt(0), d = ra[e];
+    for (let f = 1, g; f < c.length && (g = c.charAt(f), "h" === g || "w" === 
g || !(g = ra[g]) || g === d || (e += g, d = g, 4 !== e.length)); f++) {
+    }
+    a[b] = e;
+  }
+}}, CJK:{split:""}, LatinExact:ma, LatinDefault:na, LatinSimple:na};
+function va(a) {
+  X.call(a, "add");
+  X.call(a, "append");
+  X.call(a, "search");
+  X.call(a, "update");
+  X.call(a, "remove");
+  X.call(a, "searchCache");
+}
+let wa, xa, ya;
+function za() {
+  wa = ya = 0;
+}
+function X(a) {
+  this[a + "Async"] = function() {
+    const c = arguments;
+    var b = c[c.length - 1];
+    let e;
+    "function" === typeof b && (e = b, delete c[c.length - 1]);
+    wa ? ya || (ya = Date.now() - xa >= this.priority * this.priority * 3) : 
(wa = setTimeout(za, 0), xa = Date.now());
+    if (ya) {
+      const f = this;
+      return new Promise(g => {
+        setTimeout(function() {
+          g(f[a + "Async"].apply(f, c));
+        }, 0);
+      });
+    }
+    const d = this[a].apply(this, c);
+    b = d.then ? d : new Promise(f => f(d));
+    e && b.then(e);
+    return b;
+  };
+}
+;Y.prototype.add = function(a, c, b) {
+  R(a) && (c = a, a = S(c, this.key));
+  if (c && (a || 0 === a)) {
+    if (!b && this.reg.has(a)) {
+      return this.update(a, c);
+    }
+    for (let h = 0, k; h < this.field.length; h++) {
+      k = this.D[h];
+      var e = this.index.get(this.field[h]);
+      if ("function" === typeof k) {
+        var d = k(c);
+        d && e.add(a, d, !1, !0);
+      } else {
+        if (d = k.I, !d || d(c)) {
+          k.constructor === String ? k = ["" + k] : P(k) && (k = [k]), Aa(c, 
k, this.J, 0, e, a, k[0], b);
+        }
+      }
+    }
+    if (this.tag) {
+      for (e = 0; e < this.B.length; e++) {
+        var f = this.B[e], g = this.R[e];
+        d = this.tag.get(g);
+        let h = M();
+        if ("function" === typeof f) {
+          if (f = f(c), !f) {
+            continue;
+          }
+        } else {
+          const k = f.I;
+          if (k && !k(c)) {
+            continue;
+          }
+          f.constructor === String && (f = "" + f);
+          f = S(c, f);
+        }
+        if (d && f) {
+          P(f) && (f = [f]);
+          for (let k = 0, n, l; k < f.length; k++) {
+            n = f[k], h[n] || (h[n] = 1, (g = d.get(n)) ? l = g : d.set(n, l = 
[]), b && l.includes(a) || (l.push(a), this.fastupdate && ((g = 
this.reg.get(a)) ? g.push(l) : this.reg.set(a, [l]))));
+          }
+        } else {
+          d || console.warn("Tag '" + g + "' was not found");
+        }
+      }
+    }
+    if (this.store && (!b || !this.store.has(a))) {
+      let h;
+      if (this.A) {
+        h = M();
+        for (let k = 0, n; k < this.A.length; k++) {
+          n = this.A[k];
+          if ((b = n.I) && !b(c)) {
+            continue;
+          }
+          let l;
+          if ("function" === typeof n) {
+            l = n(c);
+            if (!l) {
+              continue;
+            }
+            n = [n.S];
+          } else if (P(n) || n.constructor === String) {
+            h[n] = c[n];
+            continue;
+          }
+          Ba(c, h, n, 0, n[0], l);
+        }
+      }
+      this.store.set(a, h || c);
+    }
+  }
+  return this;
+};
+function Ba(a, c, b, e, d, f) {
+  a = a[d];
+  if (e === b.length - 1) {
+    c[d] = f || a;
+  } else if (a) {
+    if (a.constructor === Array) {
+      for (c = c[d] = Array(a.length), d = 0; d < a.length; d++) {
+        Ba(a, c, b, e, d);
+      }
+    } else {
+      c = c[d] || (c[d] = M()), d = b[++e], Ba(a, c, b, e, d);
+    }
+  }
+}
+function Aa(a, c, b, e, d, f, g, h) {
+  if (a = a[g]) {
+    if (e === c.length - 1) {
+      if (a.constructor === Array) {
+        if (b[e]) {
+          for (c = 0; c < a.length; c++) {
+            d.add(f, a[c], !0, !0);
+          }
+          return;
+        }
+        a = a.join(" ");
+      }
+      d.add(f, a, h, !0);
+    } else {
+      if (a.constructor === Array) {
+        for (g = 0; g < a.length; g++) {
+          Aa(a, c, b, e, d, f, g, h);
+        }
+      } else {
+        g = c[++e], Aa(a, c, b, e, d, f, g, h);
+      }
+    }
+  }
+}
+;function Ca(a, c, b) {
+  if (!a.length) {
+    return a;
+  }
+  if (1 === a.length) {
+    return a = a[0], a = b || a.length > c ? a.slice(b, b + c) : a;
+  }
+  let e = [];
+  for (let d = 0, f, g; d < a.length; d++) {
+    if ((f = a[d]) && (g = f.length)) {
+      if (b) {
+        if (b >= g) {
+          b -= g;
+          continue;
+        }
+        f = f.slice(b, b + c);
+        g = f.length;
+        b = 0;
+      }
+      g > c && (f = f.slice(0, c), g = c);
+      if (!e.length && g >= c) {
+        return f;
+      }
+      e.push(f);
+      c -= g;
+      if (!c) {
+        break;
+      }
+    }
+  }
+  return e = 1 < e.length ? [].concat.apply([], e) : e[0];
+}
+;function Da(a, c) {
+  const b = M(), e = [];
+  for (let d = 0, f; d < c.length; d++) {
+    f = c[d];
+    for (let g = 0; g < f.length; g++) {
+      b[f[g]] = 1;
+    }
+  }
+  for (let d = 0, f; d < a.length; d++) {
+    f = a[d], b[f] && (e.push(f), b[f] = 0);
+  }
+  return e;
+}
+;M();
+function Ea(a, c, b, e, d) {
+  let f, g, h;
+  "string" === typeof d ? (f = d, d = "") : f = d.template;
+  if (!f) {
+    throw Error('No template pattern was specified by the search option 
"highlight"');
+  }
+  g = f.indexOf("$1");
+  if (-1 === g) {
+    throw Error('Invalid highlight template. The replacement pattern "$1" was 
not found in template: ' + f);
+  }
+  h = f.substring(g + 2);
+  g = f.substring(0, g);
+  let k = d && d.boundary, n = !d || !1 !== d.clip, l = d && d.merge && h && g 
&& new RegExp(h + " " + g, "g");
+  d = d && d.ellipsis;
+  var D = 0;
+  if ("object" === typeof d) {
+    var w = d.template;
+    D = w.length - 2;
+    d = d.pattern;
+  }
+  "string" !== typeof d && (d = !1 === d ? "" : "...");
+  D && (d = w.replace("$1", d));
+  w = d.length - D;
+  let t, p;
+  "object" === typeof k && (t = k.before, 0 === t && (t = -1), p = k.after, 0 
=== p && (p = -1), k = k.total || 9e5);
+  D = new Map();
+  for (let ta = 0, U, Ka, ba; ta < c.length; ta++) {
+    let ca;
+    if (e) {
+      ca = c, ba = e;
+    } else {
+      var x = c[ta];
+      ba = x.field;
+      if (!ba) {
+        continue;
+      }
+      ca = x.result;
+    }
+    Ka = b.get(ba);
+    U = Ka.encoder;
+    x = D.get(U);
+    "string" !== typeof x && (x = U.encode(a), D.set(U, x));
+    for (let ia = 0; ia < ca.length; ia++) {
+      var m = ca[ia].doc;
+      if (!m) {
+        continue;
+      }
+      m = S(m, ba);
+      if (!m) {
+        continue;
+      }
+      var v = m.trim().split(/\s+/);
+      if (!v.length) {
+        continue;
+      }
+      m = "";
+      var u = [];
+      let ja = [];
+      var F = -1, z = -1, r = 0;
+      for (var y = 0; y < v.length; y++) {
+        var E = v[y], B = U.encode(E);
+        B = 1 < B.length ? B.join(" ") : B[0];
+        let q;
+        if (B && E) {
+          var C = E.length, K = (U.split ? E.replace(U.split, "") : E).length 
- B.length, L = "", Q = 0;
+          for (var V = 0; V < x.length; V++) {
+            var N = x[V];
+            if (N) {
+              var H = N.length;
+              H += K;
+              Q && H <= Q || (N = B.indexOf(N), -1 < N && (L = (N ? 
E.substring(0, N) : "") + g + E.substring(N, N + H) + h + (N + H < C ? 
E.substring(N + H) : ""), Q = H, q = !0));
+            }
+          }
+          L && (k && (0 > F && (F = m.length + (m ? 1 : 0)), z = m.length + (m 
? 1 : 0) + L.length, r += C, ja.push(u.length), u.push({match:L})), m += (m ? " 
" : "") + L);
+        }
+        if (!q) {
+          E = v[y], m += (m ? " " : "") + E, k && u.push({text:E});
+        } else if (k && r >= k) {
+          break;
+        }
+      }
+      r = ja.length * (f.length - 2);
+      if (t || p || k && m.length - r > k) {
+        if (r = k + r - 2 * w, y = z - F, 0 < t && (y += t), 0 < p && (y += 
p), y <= r) {
+          v = t ? F - (0 < t ? t : 0) : F - ((r - y) / 2 | 0), u = p ? z + (0 
< p ? p : 0) : v + r, n || (0 < v && " " !== m.charAt(v) && " " !== m.charAt(v 
- 1) && (v = m.indexOf(" ", v), 0 > v && (v = 0)), u < m.length && " " !== 
m.charAt(u - 1) && " " !== m.charAt(u) && (u = m.lastIndexOf(" ", u), u < z ? u 
= z : ++u)), m = (v ? d : "") + m.substring(v, u) + (u < m.length ? d : "");
+        } else {
+          z = [];
+          F = {};
+          r = {};
+          y = {};
+          E = {};
+          B = {};
+          L = K = C = 0;
+          for (V = Q = 1;;) {
+            var O = void 0;
+            for (let q = 0, G; q < ja.length; q++) {
+              G = ja[q];
+              if (L) {
+                if (K !== L) {
+                  if (y[q + 1]) {
+                    continue;
+                  }
+                  G += L;
+                  if (F[G]) {
+                    C -= w;
+                    r[q + 1] = 1;
+                    y[q + 1] = 1;
+                    continue;
+                  }
+                  if (G >= u.length - 1) {
+                    if (G >= u.length) {
+                      y[q + 1] = 1;
+                      G >= v.length && (r[q + 1] = 1);
+                      continue;
+                    }
+                    C -= w;
+                  }
+                  m = u[G].text;
+                  if (H = p && B[q]) {
+                    if (0 < H) {
+                      if (m.length > H) {
+                        if (y[q + 1] = 1, n) {
+                          m = m.substring(0, H);
+                        } else {
+                          continue;
+                        }
+                      }
+                      (H -= m.length) || (H = -1);
+                      B[q] = H;
+                    } else {
+                      y[q + 1] = 1;
+                      continue;
+                    }
+                  }
+                  if (C + m.length + 1 <= k) {
+                    m = " " + m, z[q] += m;
+                  } else if (n) {
+                    O = k - C - 1, 0 < O && (m = " " + m.substring(0, O), z[q] 
+= m), y[q + 1] = 1;
+                  } else {
+                    y[q + 1] = 1;
+                    continue;
+                  }
+                } else {
+                  if (y[q]) {
+                    continue;
+                  }
+                  G -= K;
+                  if (F[G]) {
+                    C -= w;
+                    y[q] = 1;
+                    r[q] = 1;
+                    continue;
+                  }
+                  if (0 >= G) {
+                    if (0 > G) {
+                      y[q] = 1;
+                      r[q] = 1;
+                      continue;
+                    }
+                    C -= w;
+                  }
+                  m = u[G].text;
+                  if (H = t && E[q]) {
+                    if (0 < H) {
+                      if (m.length > H) {
+                        if (y[q] = 1, n) {
+                          m = m.substring(m.length - H);
+                        } else {
+                          continue;
+                        }
+                      }
+                      (H -= m.length) || (H = -1);
+                      E[q] = H;
+                    } else {
+                      y[q] = 1;
+                      continue;
+                    }
+                  }
+                  if (C + m.length + 1 <= k) {
+                    m += " ", z[q] = m + z[q];
+                  } else if (n) {
+                    O = m.length + 1 - (k - C), 0 <= O && O < m.length && (m = 
m.substring(O) + " ", z[q] = m + z[q]), y[q] = 1;
+                  } else {
+                    y[q] = 1;
+                    continue;
+                  }
+                }
+              } else {
+                m = u[G].match;
+                t && (E[q] = t);
+                p && (B[q] = p);
+                q && C++;
+                let ua;
+                G ? !q && w && (C += w) : (r[q] = 1, y[q] = 1);
+                G >= v.length - 1 ? ua = 1 : G < u.length - 1 && u[G + 
1].match ? ua = 1 : w && (C += w);
+                C -= f.length - 2;
+                if (!q || C + m.length <= k) {
+                  z[q] = m;
+                } else {
+                  O = Q = V = r[q] = 0;
+                  break;
+                }
+                ua && (r[q + 1] = 1, y[q + 1] = 1);
+              }
+              C += m.length;
+              O = F[G] = 1;
+            }
+            if (O) {
+              K === L ? L++ : K++;
+            } else {
+              K === L ? Q = 0 : V = 0;
+              if (!Q && !V) {
+                break;
+              }
+              Q ? (K++, L = K) : L++;
+            }
+          }
+          m = "";
+          for (let q = 0, G; q < z.length; q++) {
+            G = (q && r[q] ? " " : (q && !d ? " " : "") + d) + z[q], m += G;
+          }
+          d && !r[z.length] && (m += d);
+        }
+      }
+      l && (m = m.replace(l, " "));
+      ca[ia].highlight = m;
+    }
+    if (e) {
+      break;
+    }
+  }
+  return c;
+}
+;Y.prototype.search = function(a, c, b, e) {
+  b || (!c && R(a) ? (b = a, a = "") : R(c) && (b = c, c = 0));
+  let d = [];
+  var f = [];
+  let g;
+  let h, k, n, l;
+  let D = 0, w = !0, t;
+  if (b) {
+    b.constructor === Array && (b = {index:b});
+    a = b.query || a;
+    var p = b.pluck;
+    var x = b.merge;
+    n = p || b.field || (n = b.index) && (n.index ? null : n);
+    l = this.tag && b.tag;
+    h = b.suggest;
+    w = !0;
+    k = b.cache;
+    this.store && b.highlight && !w ? console.warn("Highlighting results can 
only be done on a final resolver task or when calling .resolve({ highlight: ... 
})") : this.store && b.enrich && !w && console.warn("Enrich results can only be 
done on a final resolver task or when calling .resolve({ enrich: true })");
+    t = w && this.store && b.highlight;
+    g = !!t || w && this.store && b.enrich;
+    c = b.limit || c;
+    var m = b.offset || 0;
+    c || (c = w ? 100 : 0);
+    if (l) {
+      l.constructor !== Array && (l = [l]);
+      var v = [];
+      for (let z = 0, r; z < l.length; z++) {
+        r = l[z];
+        if (P(r)) {
+          throw Error("A tag option can't be a string, instead it needs a { 
field: tag } format.");
+        }
+        if (r.field && r.tag) {
+          var u = r.tag;
+          if (u.constructor === Array) {
+            for (var F = 0; F < u.length; F++) {
+              v.push(r.field, u[F]);
+            }
+          } else {
+            v.push(r.field, u);
+          }
+        } else {
+          u = Object.keys(r);
+          for (let y = 0, E, B; y < u.length; y++) {
+            if (E = u[y], B = r[E], B.constructor === Array) {
+              for (F = 0; F < B.length; F++) {
+                v.push(E, B[F]);
+              }
+            } else {
+              v.push(E, B);
+            }
+          }
+        }
+      }
+      if (!v.length) {
+        throw Error("Your tag definition within the search options is probably 
wrong. No valid tags found.");
+      }
+      l = v;
+      if (!a) {
+        f = [];
+        if (v.length) {
+          for (p = 0; p < v.length; p += 2) {
+            x = Fa.call(this, v[p], v[p + 1], c, m, g), d.push({field:v[p], 
tag:v[p + 1], result:x});
+          }
+        }
+        return f.length ? Promise.all(f).then(function(z) {
+          for (let r = 0; r < z.length; r++) {
+            d[r].result = z[r];
+          }
+          return d;
+        }) : d;
+      }
+    }
+    n && n.constructor !== Array && (n = [n]);
+  }
+  n || (n = this.field);
+  v = !1;
+  for (let z = 0, r, y, E; z < n.length; z++) {
+    y = n[z];
+    let B;
+    P(y) || (B = y, y = B.field, a = B.query || a, c = J(B.limit, c), m = 
J(B.offset, m), h = J(B.suggest, h), t = w && this.store && J(B.highlight, t), 
g = !!t || w && this.store && J(B.enrich, g), k = J(B.cache, k));
+    if (e) {
+      r = e[z];
+    } else {
+      u = B || b || {};
+      F = u.enrich;
+      const C = this.index.get(y);
+      l && F && (u.enrich = !1);
+      r = k ? C.searchCache(a, c, u) : C.search(a, c, u);
+      F && (u.enrich = F);
+      if (v) {
+        v[z] = r;
+        continue;
+      }
+    }
+    E = (r = r.result || r) && r.length;
+    if (l && E) {
+      u = [];
+      F = 0;
+      for (let C = 0, K, L; C < l.length; C += 2) {
+        K = this.tag.get(l[C]);
+        if (!K) {
+          if (console.warn("Tag '" + l[C] + ":" + l[C + 1] + "' will be 
skipped because there is no field '" + l[C] + "'."), h) {
+            continue;
+          } else {
+            return d;
+          }
+        }
+        if (L = (K = K && K.get(l[C + 1])) && K.length) {
+          F++, u.push(K);
+        } else if (!h) {
+          return d;
+        }
+      }
+      if (F) {
+        r = Da(r, u);
+        E = r.length;
+        if (!E && !h) {
+          return r;
+        }
+        F--;
+      }
+    }
+    if (E) {
+      f[D] = y, d.push(r), D++;
+    } else if (1 === n.length) {
+      return d;
+    }
+  }
+  if (v) {
+    const z = this;
+    return Promise.all(v).then(function(r) {
+      b && (b.resolve = w);
+      r.length && (r = z.search(a, c, b, r));
+      return r;
+    });
+  }
+  if (!D) {
+    return d;
+  }
+  if (p && (!g || !this.store)) {
+    return d = d[0];
+  }
+  v = [];
+  for (m = 0; m < f.length; m++) {
+    e = d[m];
+    g && e.length && "undefined" === typeof e[0].doc && (e = Ga.call(this, e));
+    if (p) {
+      return t ? Ea(a, e, this.index, p, t) : e;
+    }
+    d[m] = {field:f[m], result:e};
+  }
+  t && (d = Ea(a, d, this.index, p, t));
+  return x ? Ha(d) : d;
+};
+function Ha(a) {
+  const c = [], b = M(), e = M();
+  for (let d = 0, f, g, h, k, n, l, D; d < a.length; d++) {
+    f = a[d];
+    g = f.field;
+    h = f.result;
+    for (let w = 0; w < h.length; w++) {
+      if (n = h[w], "object" !== typeof n ? n = {id:k = n} : k = n.id, (l = 
b[k]) ? l.push(g) : (n.field = b[k] = [g], c.push(n)), D = n.highlight) {
+        l = e[k], l || (e[k] = l = {}, n.highlight = l), l[g] = D;
+      }
+    }
+  }
+  return c;
+}
+function Fa(a, c, b, e, d) {
+  a = this.tag.get(a);
+  if (!a) {
+    return [];
+  }
+  a = a.get(c);
+  if (!a) {
+    return [];
+  }
+  c = a.length - e;
+  if (0 < c) {
+    if (b && c > b || e) {
+      a = a.slice(e, e + b);
+    }
+    d && (a = Ga.call(this, a));
+  }
+  return a;
+}
+function Ga(a) {
+  if (!this || !this.store) {
+    return a;
+  }
+  const c = Array(a.length);
+  for (let b = 0, e; b < a.length; b++) {
+    e = a[b], c[b] = {id:e, doc:this.store.get(e)};
+  }
+  return c;
+}
+;function Y(a) {
+  if (!this || this.constructor !== Y) {
+    return new Y(a);
+  }
+  const c = a.document || a.doc || a;
+  var b;
+  this.D = [];
+  this.field = [];
+  this.J = [];
+  this.key = (b = c.key || c.id) && Ia(b, this.J) || "id";
+  this.reg = (this.fastupdate = !!a.fastupdate) ? new Map() : new Set();
+  this.A = (b = c.store || null) && b && !0 !== b && [];
+  this.store = b && new Map();
+  this.cache = (b = a.cache || null) && new W(b);
+  a.cache = !1;
+  this.priority = a.priority || 4;
+  b = new Map();
+  let e = c.index || c.field || c;
+  P(e) && (e = [e]);
+  for (let d = 0, f, g; d < e.length; d++) {
+    f = e[d], P(f) || (g = f, f = f.field), g = R(g) ? Object.assign({}, a, g) 
: a, b.set(f, new Z(g, this.reg)), g.custom ? this.D[d] = g.custom : (this.D[d] 
= Ia(f, this.J), g.filter && ("string" === typeof this.D[d] && (this.D[d] = new 
String(this.D[d])), this.D[d].I = g.filter)), this.field[d] = f;
+  }
+  if (this.A) {
+    a = c.store;
+    P(a) && (a = [a]);
+    for (let d = 0, f, g; d < a.length; d++) {
+      f = a[d], g = f.field || f, f.custom ? (this.A[d] = f.custom, f.custom.S 
= g) : (this.A[d] = Ia(g, this.J), f.filter && ("string" === typeof this.A[d] 
&& (this.A[d] = new String(this.A[d])), this.A[d].I = f.filter));
+    }
+  }
+  this.index = b;
+  this.tag = null;
+  if (b = c.tag) {
+    if ("string" === typeof b && (b = [b]), b.length) {
+      this.tag = new Map();
+      this.B = [];
+      this.R = [];
+      for (let d = 0, f, g; d < b.length; d++) {
+        f = b[d];
+        g = f.field || f;
+        if (!g) {
+          throw Error("The tag field from the document descriptor is 
undefined.");
+        }
+        f.custom ? this.B[d] = f.custom : (this.B[d] = Ia(g, this.J), f.filter 
&& ("string" === typeof this.B[d] && (this.B[d] = new String(this.B[d])), 
this.B[d].I = f.filter));
+        this.R[d] = g;
+        this.tag.set(g, new Map());
+      }
+    }
+  }
+}
+function Ia(a, c) {
+  const b = a.split(":");
+  let e = 0;
+  for (let d = 0; d < b.length; d++) {
+    a = b[d], "]" === a[a.length - 1] && (a = a.substring(0, a.length - 2)) && 
(c[e] = !0), a && (b[e++] = a);
+  }
+  e < b.length && (b.length = e);
+  return 1 < e ? b : b[0];
+}
+A = Y.prototype;
+A.append = function(a, c) {
+  return this.add(a, c, !0);
+};
+A.update = function(a, c) {
+  return this.remove(a).add(a, c);
+};
+A.remove = function(a) {
+  R(a) && (a = S(a, this.key));
+  for (var c of this.index.values()) {
+    c.remove(a, !0);
+  }
+  if (this.reg.has(a)) {
+    if (this.tag && !this.fastupdate) {
+      for (let b of this.tag.values()) {
+        for (let e of b) {
+          c = e[0];
+          const d = e[1], f = d.indexOf(a);
+          -1 < f && (1 < d.length ? d.splice(f, 1) : b.delete(c));
+        }
+      }
+    }
+    this.store && this.store.delete(a);
+    this.reg.delete(a);
+  }
+  this.cache && this.cache.remove(a);
+  return this;
+};
+A.clear = function() {
+  const a = [];
+  for (const c of this.index.values()) {
+    const b = c.clear();
+    b.then && a.push(b);
+  }
+  if (this.tag) {
+    for (const c of this.tag.values()) {
+      c.clear();
+    }
+  }
+  this.store && this.store.clear();
+  this.cache && this.cache.clear();
+  return a.length ? Promise.all(a) : this;
+};
+A.contain = function(a) {
+  return this.reg.has(a);
+};
+A.cleanup = function() {
+  for (const a of this.index.values()) {
+    a.cleanup();
+  }
+  return this;
+};
+A.get = function(a) {
+  return this.store.get(a) || null;
+};
+A.set = function(a, c) {
+  "object" === typeof a && (c = a, a = S(c, this.key));
+  this.store.set(a, c);
+  return this;
+};
+A.searchCache = la;
+A.export = Ja;
+A.import = La;
+va(Y.prototype);
+function Ma(a, c = 0) {
+  let b = [], e = [];
+  c && (c = 250000 / c * 5000 | 0);
+  for (const d of a.entries()) {
+    e.push(d), e.length === c && (b.push(e), e = []);
+  }
+  e.length && b.push(e);
+  return b;
+}
+function Na(a, c) {
+  c || (c = new Map());
+  for (let b = 0, e; b < a.length; b++) {
+    e = a[b], c.set(e[0], e[1]);
+  }
+  return c;
+}
+function Oa(a, c = 0) {
+  let b = [], e = [];
+  c && (c = 250000 / c * 1000 | 0);
+  for (const d of a.entries()) {
+    e.push([d[0], Ma(d[1])[0]]), e.length === c && (b.push(e), e = []);
+  }
+  e.length && b.push(e);
+  return b;
+}
+function Pa(a, c) {
+  c || (c = new Map());
+  for (let b = 0, e, d; b < a.length; b++) {
+    e = a[b], d = c.get(e[0]), c.set(e[0], Na(e[1], d));
+  }
+  return c;
+}
+function Qa(a) {
+  let c = [], b = [];
+  for (const e of a.keys()) {
+    b.push(e), 250000 === b.length && (c.push(b), b = []);
+  }
+  b.length && c.push(b);
+  return c;
+}
+function Ra(a, c) {
+  c || (c = new Set());
+  for (let b = 0; b < a.length; b++) {
+    c.add(a[b]);
+  }
+  return c;
+}
+function Sa(a, c, b, e, d, f, g = 0) {
+  const h = e && e.constructor === Array;
+  var k = h ? e.shift() : e;
+  if (!k) {
+    return this.export(a, c, d, f + 1);
+  }
+  if ((k = a((c ? c + "." : "") + (g + 1) + "." + b, JSON.stringify(k))) && 
k.then) {
+    const n = this;
+    return k.then(function() {
+      return Sa.call(n, a, c, b, h ? e : null, d, f, g + 1);
+    });
+  }
+  return Sa.call(this, a, c, b, h ? e : null, d, f, g + 1);
+}
+function Ja(a, c, b = 0, e = 0) {
+  if (b < this.field.length) {
+    const g = this.field[b];
+    if ((c = this.index.get(g).export(a, g, b, e = 1)) && c.then) {
+      const h = this;
+      return c.then(function() {
+        return h.export(a, g, b + 1);
+      });
+    }
+    return this.export(a, g, b + 1);
+  }
+  let d, f;
+  switch(e) {
+    case 0:
+      d = "reg";
+      f = Qa(this.reg);
+      c = null;
+      break;
+    case 1:
+      d = "tag";
+      f = this.tag && Oa(this.tag, this.reg.size);
+      c = null;
+      break;
+    case 2:
+      d = "doc";
+      f = this.store && Ma(this.store);
+      c = null;
+      break;
+    default:
+      return;
+  }
+  return Sa.call(this, a, c, d, f, b, e);
+}
+function La(a, c) {
+  var b = a.split(".");
+  "json" === b[b.length - 1] && b.pop();
+  a = 2 < b.length ? b[0] : "";
+  b = 2 < b.length ? b[2] : b[1];
+  if (c) {
+    "string" === typeof c && (c = JSON.parse(c));
+    if (a) {
+      return this.index.get(a).import(b, c);
+    }
+    switch(b) {
+      case "reg":
+        this.fastupdate = !1;
+        this.reg = Ra(c, this.reg);
+        for (let e = 0, d; e < this.field.length; e++) {
+          d = this.index.get(this.field[e]), d.fastupdate = !1, d.reg = 
this.reg;
+        }
+        break;
+      case "tag":
+        this.tag = Pa(c, this.tag);
+        break;
+      case "doc":
+        this.store = Na(c, this.store);
+    }
+  }
+}
+function Ta(a, c) {
+  let b = "";
+  for (const e of a.entries()) {
+    a = e[0];
+    const d = e[1];
+    let f = "";
+    for (let g = 0, h; g < d.length; g++) {
+      h = d[g] || [""];
+      let k = "";
+      for (let n = 0; n < h.length; n++) {
+        k += (k ? "," : "") + ("string" === c ? '"' + h[n] + '"' : h[n]);
+      }
+      k = "[" + k + "]";
+      f += (f ? "," : "") + k;
+    }
+    f = '["' + a + '",[' + f + "]]";
+    b += (b ? "," : "") + f;
+  }
+  return b;
+}
+;Z.prototype.remove = function(a, c) {
+  const b = this.reg.size && (this.fastupdate ? this.reg.get(a) : 
this.reg.has(a));
+  if (b) {
+    if (this.fastupdate) {
+      for (let e = 0, d, f; e < b.length; e++) {
+        if ((d = b[e]) && (f = d.length)) {
+          if (d[f - 1] === a) {
+            d.pop();
+          } else {
+            const g = d.indexOf(a);
+            0 <= g && d.splice(g, 1);
+          }
+        }
+      }
+    } else {
+      Ua(this.map, a), this.depth && Ua(this.ctx, a);
+    }
+    c || this.reg.delete(a);
+  }
+  this.cache && this.cache.remove(a);
+  return this;
+};
+function Ua(a, c) {
+  let b = 0;
+  var e = "undefined" === typeof c;
+  if (a.constructor === Array) {
+    for (let d = 0, f, g, h; d < a.length; d++) {
+      if ((f = a[d]) && f.length) {
+        if (e) {
+          return 1;
+        }
+        g = f.indexOf(c);
+        if (0 <= g) {
+          if (1 < f.length) {
+            return f.splice(g, 1), 1;
+          }
+          delete a[d];
+          if (b) {
+            return 1;
+          }
+          h = 1;
+        } else {
+          if (h) {
+            return 1;
+          }
+          b++;
+        }
+      }
+    }
+  } else {
+    for (let d of a.entries()) {
+      e = d[0], Ua(d[1], c) ? b++ : a.delete(e);
+    }
+  }
+  return b;
+}
+;const Va = {memory:{resolution:1}, performance:{resolution:3, fastupdate:!0, 
context:{depth:1, resolution:1}}, match:{tokenize:"forward"}, 
score:{resolution:9, context:{depth:2, resolution:3}}};
+Z.prototype.add = function(a, c, b, e) {
+  if (c && (a || 0 === a)) {
+    if (!e && !b && this.reg.has(a)) {
+      return this.update(a, c);
+    }
+    e = this.depth;
+    c = this.encoder.encode(c, !e);
+    const n = c.length;
+    if (n) {
+      const l = M(), D = M(), w = this.resolution;
+      for (let t = 0; t < n; t++) {
+        let p = c[this.rtl ? n - 1 - t : t];
+        var d = p.length;
+        if (d && (e || !D[p])) {
+          var f = this.score ? this.score(c, p, t, null, 0) : Wa(w, n, t), g = 
"";
+          switch(this.tokenize) {
+            case "full":
+              if (2 < d) {
+                for (let x = 0, m; x < d; x++) {
+                  for (f = d; f > x; f--) {
+                    g = p.substring(x, f);
+                    m = this.rtl ? d - 1 - x : x;
+                    var h = this.score ? this.score(c, p, t, g, m) : Wa(w, n, 
t, d, m);
+                    Xa(this, D, g, h, a, b);
+                  }
+                }
+                break;
+              }
+            case "bidirectional":
+            case "reverse":
+              if (1 < d) {
+                for (h = d - 1; 0 < h; h--) {
+                  g = p[this.rtl ? d - 1 - h : h] + g;
+                  var k = this.score ? this.score(c, p, t, g, h) : Wa(w, n, t, 
d, h);
+                  Xa(this, D, g, k, a, b);
+                }
+                g = "";
+              }
+            case "forward":
+              if (1 < d) {
+                for (h = 0; h < d; h++) {
+                  g += p[this.rtl ? d - 1 - h : h], Xa(this, D, g, f, a, b);
+                }
+                break;
+              }
+            default:
+              if (Xa(this, D, p, f, a, b), e && 1 < n && t < n - 1) {
+                for (d = M(), g = this.P, f = p, h = Math.min(e + 1, this.rtl 
? t + 1 : n - t), d[f] = 1, k = 1; k < h; k++) {
+                  if ((p = c[this.rtl ? n - 1 - t - k : t + k]) && !d[p]) {
+                    d[p] = 1;
+                    const x = this.score ? this.score(c, f, t, p, k - 1) : 
Wa(g + (n / 2 > g ? 0 : 1), n, t, h - 1, k - 1), m = this.bidirectional && p > 
f;
+                    Xa(this, l, m ? f : p, x, a, b, m ? p : f);
+                  }
+                }
+              }
+          }
+        }
+      }
+      this.fastupdate || this.reg.add(a);
+    }
+  }
+  return this;
+};
+function Xa(a, c, b, e, d, f, g) {
+  let h = g ? a.ctx : a.map, k;
+  if (!c[b] || g && !(k = c[b])[g]) {
+    g ? (c = k || (c[b] = M()), c[g] = 1, (k = h.get(g)) ? h = k : h.set(g, h 
= new Map())) : c[b] = 1, (k = h.get(b)) ? h = k : h.set(b, h = []), h = h[e] 
|| (h[e] = []), f && h.includes(d) || (h.push(d), a.fastupdate && ((c = 
a.reg.get(d)) ? c.push(h) : a.reg.set(d, [h])));
+  }
+}
+function Wa(a, c, b, e, d) {
+  return b && 1 < a ? c + (e || 0) <= a ? b + (d || 0) : (a - 1) / (c + (e || 
0)) * (b + (d || 0)) + 1 | 0 : 0;
+}
+;Z.prototype.search = function(a, c, b) {
+  b || (c || "object" !== typeof a ? "object" === typeof c && (b = c, c = 0) : 
(b = a, a = ""));
+  if (b && b.cache) {
+    return b.cache = !1, c = this.searchCache(a, c, b), b.cache = !0, c;
+  }
+  var e = [], d = 0;
+  if (b) {
+    a = b.query || a;
+    c = b.limit || c;
+    d = b.offset || 0;
+    var f = b.context;
+    var g = b.suggest;
+    var h = !0;
+    var k = b.resolution;
+  }
+  "undefined" === typeof h && (h = !0);
+  f = this.depth && !1 !== f;
+  b = this.encoder.encode(a, !f);
+  a = b.length;
+  c = c || (h ? 100 : 0);
+  if (1 === a) {
+    return g = d, (d = Ya(this, b[0], "")) && d.length ? Ca.call(this, d, c, 
g) : [];
+  }
+  if (2 === a && f && !g) {
+    return g = d, (d = Ya(this, b[1], b[0])) && d.length ? Ca.call(this, d, c, 
g) : [];
+  }
+  h = M();
+  var n = 0;
+  if (f) {
+    var l = b[0];
+    n = 1;
+  }
+  k || 0 === k || (k = l ? this.P : this.resolution);
+  for (let p, x; n < a; n++) {
+    if ((x = b[n]) && !h[x]) {
+      h[x] = 1;
+      p = Ya(this, x, l);
+      a: {
+        f = p;
+        var D = e, w = g, t = k;
+        let m = [];
+        if (f && f.length) {
+          if (f.length <= t) {
+            D.push(f);
+            p = void 0;
+            break a;
+          }
+          for (let v = 0, u; v < t; v++) {
+            if (u = f[v]) {
+              m[v] = u;
+            }
+          }
+          if (m.length) {
+            D.push(m);
+            p = void 0;
+            break a;
+          }
+        }
+        p = w ? void 0 : m;
+      }
+      if (p) {
+        e = p;
+        break;
+      }
+      l && (g && p && e.length || (l = x));
+    }
+    g && l && n === a - 1 && !e.length && (k = this.resolution, l = "", n = 
-1, h = M());
+  }
+  a: {
+    b = e;
+    e = b.length;
+    l = b;
+    if (1 < e) {
+      b: {
+        e = g;
+        l = b.length;
+        g = [];
+        a = M();
+        for (let p = 0, x, m, v, u; p < k; p++) {
+          for (n = 0; n < l; n++) {
+            if (v = b[n], p < v.length && (x = v[p])) {
+              for (f = 0; f < x.length; f++) {
+                if (m = x[f], (h = a[m]) ? a[m]++ : (h = 0, a[m] = 1), u = 
g[h] || (g[h] = []), u.push(m), c && h === l - 1 && u.length - d === c) {
+                  l = d ? u.slice(d) : u;
+                  break b;
+                }
+              }
+            }
+          }
+        }
+        if (b = g.length) {
+          if (e) {
+            if (1 < g.length) {
+              c: {
+                for (b = [], k = M(), e = g.length, h = e - 1; 0 <= h; h--) {
+                  if (a = (e = g[h]) && e.length) {
+                    for (n = 0; n < a; n++) {
+                      if (l = e[n], !k[l]) {
+                        if (k[l] = 1, d) {
+                          d--;
+                        } else {
+                          if (b.push(l), b.length === c) {
+                            break c;
+                          }
+                        }
+                      }
+                    }
+                  }
+                }
+              }
+            } else {
+              b = (g = g[0]) && c && g.length > c || d ? g.slice(d, c + d) : g;
+            }
+            g = b;
+          } else {
+            if (b < l) {
+              l = [];
+              break b;
+            }
+            g = g[b - 1];
+            if (c || d) {
+              if (g.length > c || d) {
+                g = g.slice(d, c + d);
+              }
+            }
+          }
+        }
+        l = g;
+      }
+    } else if (1 === e) {
+      c = Ca.call(null, b[0], c, d);
+      break a;
+    }
+    c = l;
+  }
+  return c;
+};
+function Ya(a, c, b) {
+  let e;
+  b && (e = a.bidirectional && c > b) && (e = b, b = c, c = e);
+  a = b ? (a = a.ctx.get(b)) && a.get(c) : a.map.get(c);
+  return a;
+}
+;function Z(a, c) {
+  if (!this || this.constructor !== Z) {
+    return new Z(a);
+  }
+  if (a) {
+    var b = P(a) ? a : a.preset;
+    b && (Va[b] || console.warn("Preset not found: " + b), a = 
Object.assign({}, Va[b], a));
+  } else {
+    a = {};
+  }
+  b = a.context;
+  const e = !0 === b ? {depth:1} : b || {}, d = P(a.encoder) ? sa[a.encoder] : 
a.encode || a.encoder || {};
+  this.encoder = d.encode ? d : "object" === typeof d ? new ka(d) : {encode:d};
+  this.resolution = a.resolution || 9;
+  this.tokenize = b = (b = a.tokenize) && "default" !== b && "exact" !== b && 
b || "strict";
+  this.depth = "strict" === b && e.depth || 0;
+  this.bidirectional = !1 !== e.bidirectional;
+  this.fastupdate = !!a.fastupdate;
+  this.score = a.score || null;
+  e && e.depth && "strict" !== this.tokenize && console.warn('Context-Search 
could not applied, because it is just supported when using the tokenizer 
"strict".');
+  b = !1;
+  this.map = new Map();
+  this.ctx = new Map();
+  this.reg = c || (this.fastupdate ? new Map() : new Set());
+  this.P = e.resolution || 3;
+  this.rtl = d.rtl || a.rtl || !1;
+  this.cache = (b = a.cache || null) && new W(b);
+  this.priority = a.priority || 4;
+}
+A = Z.prototype;
+A.clear = function() {
+  this.map.clear();
+  this.ctx.clear();
+  this.reg.clear();
+  this.cache && this.cache.clear();
+  return this;
+};
+A.append = function(a, c) {
+  return this.add(a, c, !0);
+};
+A.contain = function(a) {
+  return this.reg.has(a);
+};
+A.update = function(a, c) {
+  const b = this, e = this.remove(a);
+  return e && e.then ? e.then(() => b.add(a, c)) : this.add(a, c);
+};
+A.cleanup = function() {
+  if (!this.fastupdate) {
+    return console.info('Cleanup the index isn\'t required when not using 
"fastupdate".'), this;
+  }
+  Ua(this.map);
+  this.depth && Ua(this.ctx);
+  return this;
+};
+A.searchCache = la;
+A.export = function(a, c, b = 0, e = 0) {
+  let d, f;
+  switch(e) {
+    case 0:
+      d = "reg";
+      f = Qa(this.reg);
+      break;
+    case 1:
+      d = "cfg";
+      f = null;
+      break;
+    case 2:
+      d = "map";
+      f = Ma(this.map, this.reg.size);
+      break;
+    case 3:
+      d = "ctx";
+      f = Oa(this.ctx, this.reg.size);
+      break;
+    default:
+      return;
+  }
+  return Sa.call(this, a, c, d, f, b, e);
+};
+A.import = function(a, c) {
+  if (c) {
+    switch("string" === typeof c && (c = JSON.parse(c)), a = a.split("."), 
"json" === a[a.length - 1] && a.pop(), 3 === a.length && a.shift(), a = 1 < 
a.length ? a[1] : a[0], a) {
+      case "reg":
+        this.fastupdate = !1;
+        this.reg = Ra(c, this.reg);
+        break;
+      case "map":
+        this.map = Na(c, this.map);
+        break;
+      case "ctx":
+        this.ctx = Pa(c, this.ctx);
+    }
+  }
+};
+A.serialize = function(a = !0) {
+  let c = "", b = "", e = "";
+  if (this.reg.size) {
+    let f;
+    for (var d of this.reg.keys()) {
+      f || (f = typeof d), c += (c ? "," : "") + ("string" === f ? '"' + d + 
'"' : d);
+    }
+    c = "index.reg=new Set([" + c + "]);";
+    b = Ta(this.map, f);
+    b = "index.map=new Map([" + b + "]);";
+    for (const g of this.ctx.entries()) {
+      d = g[0];
+      let h = Ta(g[1], f);
+      h = "new Map([" + h + "])";
+      h = '["' + d + '",' + h + "]";
+      e += (e ? "," : "") + h;
+    }
+    e = "index.ctx=new Map([" + e + "]);";
+  }
+  return a ? "function inject(index){" + c + b + e + "}" : c + b + e;
+};
+va(Z.prototype);
+M();
+const Za = {Index:Z, Charset:sa, Encoder:ka, Document:Y, Worker:null, 
Resolver:null, IndexedDB:null, Language:{}}, $a = "undefined" !== typeof self ? 
self : "undefined" !== typeof global ? global : self;
+let ab;
+(ab = $a.define) && ab.amd ? ab([], function() {
+  return Za;
+}) : "object" === typeof $a.exports ? $a.exports = Za : $a.FlexSearch = Za;
+}(this||self));
diff --git a/help3xsl/flexsearch.debug.js b/help3xsl/flexsearch.debug.js
deleted file mode 100644
index 98e658130a..0000000000
--- a/help3xsl/flexsearch.debug.js
+++ /dev/null
@@ -1,963 +0,0 @@
-/**!
- * FlexSearch.js v0.7.2 (Debug)
- * Copyright 2018-2021 Nextapps GmbH
- * Author: Thomas Wilkerling
- * Licence: Apache-2.0
- * https://github.com/nextapps-de/flexsearch
- */
-(function(self){'use strict';
-function r(a, b) {
-  return "undefined" !== typeof a ? a : b;
-}
-function v(a) {
-  const b = Array(a);
-  for (let c = 0; c < a; c++) {
-    b[c] = w();
-  }
-  return b;
-}
-function w() {
-  return Object.create(null);
-}
-function aa(a, b) {
-  return b.length - a.length;
-}
-function x(a) {
-  return "string" === typeof a;
-}
-function z(a) {
-  return "object" === typeof a;
-}
-function D(a) {
-  return "function" === typeof a;
-}
-;function ba(a, b, c, d) {
-  if (a && (b && (a = E(a, b)), this.matcher && (a = E(a, this.matcher)), 
this.stemmer && 1 < a.length && (a = E(a, this.stemmer)), d && 1 < a.length && 
(a = F(a)), c || "" === c)) {
-    a = a.split(c);
-    if (this.filter) {
-      b = this.filter;
-      c = a.length;
-      d = [];
-      for (let e = 0, f = 0; e < c; e++) {
-        const g = a[e];
-        g && !b[g] && (d[f++] = g);
-      }
-      a = d;
-    }
-    return a;
-  }
-  return a;
-}
-const ca = /[\p{Z}\p{S}\p{P}\p{C}]+/u, da = /[\u0300-\u036f]/g;
-function ea(a, b) {
-  const c = Object.keys(a), d = c.length, e = [];
-  let f = "", g = 0;
-  for (let h = 0, k, m; h < d; h++) {
-    k = c[h], (m = a[k]) ? (e[g++] = G(b ? "(?!\b)" + k + "(\b|_)" : k), 
e[g++] = m) : f += (f ? "|" : "") + k;
-  }
-  f && (e[g++] = G(b ? "(?!\b)(" + f + ")(\b|_)" : "(" + f + ")"), e[g] = "");
-  return e;
-}
-function E(a, b) {
-  for (let c = 0, d = b.length; c < d && (a = a.replace(b[c], b[c + 1]), a); c 
+= 2) {
-  }
-  return a;
-}
-function G(a) {
-  return new RegExp(a, "g");
-}
-function F(a) {
-  let b = "", c = "";
-  for (let d = 0, e = a.length, f; d < e; d++) {
-    (f = a[d]) !== c && (b += c = f);
-  }
-  return b;
-}
-;var ha = {encode:fa, rtl:!1, tokenize:""};
-function fa(a) {
-  return ba.call(this, a.toLowerCase(), !1, ca, !1);
-}
-;const ia = {}, I = {};
-function ja(a) {
-  J(a, "add");
-  J(a, "append");
-  J(a, "search");
-  J(a, "update");
-  J(a, "remove");
-}
-function J(a, b) {
-  a[b + "Async"] = function() {
-    const c = this, d = arguments;
-    var e = d[d.length - 1];
-    let f;
-    D(e) && (f = e, delete d[d.length - 1]);
-    e = new Promise(function(g) {
-      setTimeout(function() {
-        c.async = !0;
-        const h = c[b].apply(c, d);
-        c.async = !1;
-        g(h);
-      });
-    });
-    return f ? (e.then(f), this) : e;
-  };
-}
-;function ka(a, b, c, d) {
-  const e = a.length;
-  let f = [], g, h, k = 0;
-  d && (d = []);
-  for (let m = e - 1; 0 <= m; m--) {
-    const p = a[m], u = p.length, q = w();
-    let n = !g;
-    for (let l = 0; l < u; l++) {
-      const t = p[l], y = t.length;
-      if (y) {
-        for (let C = 0, B, A; C < y; C++) {
-          if (A = t[C], g) {
-            if (g[A]) {
-              if (!m) {
-                if (c) {
-                  c--;
-                } else {
-                  if (f[k++] = A, k === b) {
-                    return f;
-                  }
-                }
-              }
-              if (m || d) {
-                q[A] = 1;
-              }
-              n = !0;
-            }
-            if (d && (h[A] = (B = h[A]) ? ++B : B = 1, B < e)) {
-              const H = d[B - 2] || (d[B - 2] = []);
-              H[H.length] = A;
-            }
-          } else {
-            q[A] = 1;
-          }
-        }
-      }
-    }
-    if (d) {
-      g || (h = q);
-    } else {
-      if (!n) {
-        return [];
-      }
-    }
-    g = q;
-  }
-  if (d) {
-    for (let m = d.length - 1, p, u; 0 <= m; m--) {
-      p = d[m];
-      u = p.length;
-      for (let q = 0, n; q < u; q++) {
-        if (n = p[q], !g[n]) {
-          if (c) {
-            c--;
-          } else {
-            if (f[k++] = n, k === b) {
-              return f;
-            }
-          }
-          g[n] = 1;
-        }
-      }
-    }
-  }
-  return f;
-}
-function la(a, b) {
-  const c = w(), d = w(), e = [];
-  for (let f = 0; f < a.length; f++) {
-    c[a[f]] = 1;
-  }
-  for (let f = 0, g; f < b.length; f++) {
-    g = b[f];
-    for (let h = 0, k; h < g.length; h++) {
-      k = g[h], c[k] && !d[k] && (d[k] = 1, e[e.length] = k);
-    }
-  }
-  return e;
-}
-;function K(a) {
-  this.limit = !0 !== a && a;
-  this.cache = w();
-  this.queue = [];
-}
-function ma(a, b, c) {
-  z(a) && (a = a.query);
-  let d = this.cache.get(a);
-  d || (d = this.search(a, b, c), this.cache.set(a, d));
-  return d;
-}
-K.prototype.set = function(a, b) {
-  if (!this.cache[a]) {
-    var c = this.queue.length;
-    c === this.limit ? delete this.cache[this.queue[c - 1]] : c++;
-    for (--c; 0 < c; c--) {
-      this.queue[c] = this.queue[c - 1];
-    }
-    this.queue[0] = a;
-  }
-  this.cache[a] = b;
-};
-K.prototype.get = function(a) {
-  const b = this.cache[a];
-  if (this.limit && b && (a = this.queue.indexOf(a))) {
-    const c = this.queue[a - 1];
-    this.queue[a - 1] = this.queue[a];
-    this.queue[a] = c;
-  }
-  return b;
-};
-K.prototype.del = function(a) {
-  for (let b = 0, c, d; b < this.queue.length; b++) {
-    d = this.queue[b], c = this.cache[d], -1 !== c.indexOf(a) && 
(this.queue.splice(b--, 1), delete this.cache[d]);
-  }
-};
-const na = {memory:{charset:"latin:extra", resolution:3, minlength:4, 
fastupdate:!1}, performance:{resolution:3, minlength:3, optimize:!1, 
context:{depth:2, resolution:1}}, match:{charset:"latin:extra", 
tokenize:"reverse", }, score:{charset:"latin:advanced", resolution:20, 
minlength:3, context:{depth:3, resolution:9, }}, "default":{}, };
-function pa(a, b, c, d, e, f) {
-  setTimeout(function() {
-    const g = a(c, JSON.stringify(f));
-    g && g.then ? g.then(function() {
-      b.export(a, b, c, d, e + 1);
-    }) : b.export(a, b, c, d, e + 1);
-  });
-}
-;function L(a, b) {
-  if (!(this instanceof L)) {
-    return new L(a);
-  }
-  var c;
-  if (a) {
-    if (x(a)) {
-      na[a] || console.warn("Preset not found: " + a), a = na[a];
-    } else {
-      if (c = a.preset) {
-        c[c] || console.warn("Preset not found: " + c), a = Object.assign({}, 
c[c], a);
-      }
-    }
-    c = a.charset;
-    var d = a.lang;
-    x(c) && (-1 === c.indexOf(":") && (c += ":default"), c = I[c]);
-    x(d) && (d = ia[d]);
-  } else {
-    a = {};
-  }
-  let e, f, g = a.context || {};
-  this.encode = a.encode || c && c.encode || fa;
-  this.register = b || w();
-  this.resolution = e = a.resolution || 9;
-  this.tokenize = b = c && c.tokenize || a.tokenize || "strict";
-  this.depth = "strict" === b && g.depth;
-  this.bidirectional = r(g.bidirectional, !0);
-  this.optimize = f = r(a.optimize, !0);
-  this.fastupdate = r(a.fastupdate, !0);
-  this.minlength = a.minlength || 1;
-  this.boost = a.boost;
-  this.map = f ? v(e) : w();
-  this.resolution_ctx = e = g.resolution || 1;
-  this.ctx = f ? v(e) : w();
-  this.rtl = c && c.rtl || a.rtl;
-  this.matcher = (b = a.matcher || d && d.matcher) && ea(b, !1);
-  this.stemmer = (b = a.stemmer || d && d.stemmer) && ea(b, !0);
-  if (c = b = a.filter || d && d.filter) {
-    c = b;
-    d = w();
-    for (let h = 0, k = c.length; h < k; h++) {
-      d[c[h]] = 1;
-    }
-    c = d;
-  }
-  this.filter = c;
-  this.cache = (b = a.cache) && new K(b);
-}
-L.prototype.append = function(a, b) {
-  return this.add(a, b, !0);
-};
-L.prototype.add = function(a, b, c, d) {
-  if (b && (a || 0 === a)) {
-    if (!d && !c && this.register[a]) {
-      return this.update(a, b);
-    }
-    b = this.encode(b);
-    if (d = b.length) {
-      const m = w(), p = w(), u = this.depth, q = this.resolution;
-      for (let n = 0; n < d; n++) {
-        let l = b[this.rtl ? d - 1 - n : n];
-        var e = l.length;
-        if (l && e >= this.minlength && (u || !p[l])) {
-          var f = M(q, d, n), g = "";
-          switch(this.tokenize) {
-            case "full":
-              if (3 < e) {
-                for (f = 0; f < e; f++) {
-                  for (var h = e; h > f; h--) {
-                    if (h - f >= this.minlength) {
-                      var k = M(q, d, n, e, f);
-                      g = l.substring(f, h);
-                      this.push_index(p, g, k, a, c);
-                    }
-                  }
-                }
-                break;
-              }
-            case "reverse":
-              if (2 < e) {
-                for (h = e - 1; 0 < h; h--) {
-                  g = l[h] + g, g.length >= this.minlength && (k = M(q, d, n, 
e, h), this.push_index(p, g, k, a, c));
-                }
-                g = "";
-              }
-            case "forward":
-              if (1 < e) {
-                for (h = 0; h < e; h++) {
-                  g += l[h], g.length >= this.minlength && this.push_index(p, 
g, f, a, c);
-                }
-                break;
-              }
-            default:
-              if (this.boost && (f = Math.min(f / this.boost(b, l, n) | 0, q - 
1)), this.push_index(p, l, f, a, c), u && 1 < d && n < d - 1) {
-                for (e = w(), g = this.resolution_ctx, f = l, h = Math.min(u + 
1, d - n), e[f] = 1, k = 1; k < h; k++) {
-                  if ((l = b[this.rtl ? d - 1 - n - k : n + k]) && l.length >= 
this.minlength && !e[l]) {
-                    e[l] = 1;
-                    const t = M(g + (d / 2 > g ? 0 : 1), d, n, h - 1, k - 1), 
y = this.bidirectional && l > f;
-                    this.push_index(m, y ? f : l, t, a, c, y ? l : f);
-                  }
-                }
-              }
-          }
-        }
-      }
-      this.fastupdate || (this.register[a] = 1);
-    }
-  }
-  return this;
-};
-function M(a, b, c, d, e) {
-  return c && 1 < a ? b + (d || 0) <= a ? c + (e || 0) : (a - 1) / (b + (d || 
0)) * (c + (e || 0)) + 1 | 0 : 0;
-}
-L.prototype.push_index = function(a, b, c, d, e, f) {
-  let g = f ? this.ctx : this.map;
-  if (!a[b] || f && !a[b][f]) {
-    this.optimize && (g = g[c]), f ? (a = a[b] || (a[b] = w()), a[f] = 1, g = 
g[f] || (g[f] = w())) : a[b] = 1, g = g[b] || (g[b] = []), this.optimize || (g 
= g[c] || (g[c] = [])), e && -1 !== g.indexOf(d) || (g[g.length] = d, 
this.fastupdate && (a = this.register[d] || (this.register[d] = []), 
a[a.length] = g));
-  }
-};
-L.prototype.search = function(a, b, c) {
-  c || (!b && z(a) ? (c = a, a = c.query) : z(b) && (c = b));
-  let d = [], e;
-  let f, g = 0;
-  if (c) {
-    b = c.limit;
-    g = c.offset || 0;
-    var h = c.context;
-    f = c.suggest;
-  }
-  if (a && (a = this.encode(a), e = a.length, 1 < e)) {
-    c = w();
-    var k = [];
-    for (let p = 0, u = 0, q; p < e; p++) {
-      if ((q = a[p]) && q.length >= this.minlength && !c[q]) {
-        if (this.optimize || f || this.map[q]) {
-          k[u++] = q, c[q] = 1;
-        } else {
-          return d;
-        }
-      }
-    }
-    a = k;
-    e = a.length;
-  }
-  if (!e) {
-    return d;
-  }
-  b || (b = 100);
-  h = this.depth && 1 < e && !1 !== h;
-  c = 0;
-  let m;
-  h ? (m = a[0], c = 1) : 1 < e && a.sort(aa);
-  for (let p, u; c < e; c++) {
-    u = a[c];
-    h ? (p = this.add_result(d, f, b, g, 2 === e, u, m), f && !1 === p && 
d.length || (m = u)) : p = this.add_result(d, f, b, g, 1 === e, u);
-    if (p) {
-      return p;
-    }
-    if (f && c === e - 1) {
-      k = d.length;
-      if (!k) {
-        if (h) {
-          h = 0;
-          c = -1;
-          continue;
-        }
-        return d;
-      }
-      if (1 === k) {
-        return qa(d[0], b, g);
-      }
-    }
-  }
-  return ka(d, b, g, f);
-};
-L.prototype.add_result = function(a, b, c, d, e, f, g) {
-  let h = [], k = g ? this.ctx : this.map;
-  this.optimize || (k = ra(k, f, g, this.bidirectional));
-  if (k) {
-    let m = 0;
-    const p = Math.min(k.length, g ? this.resolution_ctx : this.resolution);
-    for (let u = 0, q = 0, n, l; u < p; u++) {
-      if (n = k[u]) {
-        if (this.optimize && (n = ra(n, f, g, this.bidirectional)), d && n && 
e && (l = n.length, l <= d ? (d -= l, n = null) : (n = n.slice(d), d = 0)), n 
&& (h[m++] = n, e && (q += n.length, q >= c))) {
-          break;
-        }
-      }
-    }
-    if (m) {
-      if (e) {
-        return qa(h, c, 0);
-      }
-      a[a.length] = h;
-      return;
-    }
-  }
-  return !b && h;
-};
-function qa(a, b, c) {
-  a = 1 === a.length ? a[0] : [].concat.apply([], a);
-  return c || a.length > b ? a.slice(c, c + b) : a;
-}
-function ra(a, b, c, d) {
-  c ? (d = d && b > c, a = (a = a[d ? b : c]) && a[d ? c : b]) : a = a[b];
-  return a;
-}
-L.prototype.contain = function(a) {
-  return !!this.register[a];
-};
-L.prototype.update = function(a, b) {
-  return this.remove(a).add(a, b);
-};
-L.prototype.remove = function(a, b) {
-  const c = this.register[a];
-  if (c) {
-    if (this.fastupdate) {
-      for (let d = 0, e; d < c.length; d++) {
-        e = c[d], e.splice(e.indexOf(a), 1);
-      }
-    } else {
-      N(this.map, a, this.resolution, this.optimize), this.depth && 
N(this.ctx, a, this.resolution_ctx, this.optimize);
-    }
-    b || delete this.register[a];
-    this.cache && this.cache.del(a);
-  }
-  return this;
-};
-function N(a, b, c, d, e) {
-  let f = 0;
-  if (a.constructor === Array) {
-    if (e) {
-      b = a.indexOf(b), -1 !== b ? 1 < a.length && (a.splice(b, 1), f++) : f++;
-    } else {
-      e = Math.min(a.length, c);
-      for (let g = 0, h; g < e; g++) {
-        if (h = a[g]) {
-          f = N(h, b, c, d, e), d || f || delete a[g];
-        }
-      }
-    }
-  } else {
-    for (let g in a) {
-      (f = N(a[g], b, c, d, e)) || delete a[g];
-    }
-  }
-  return f;
-}
-L.prototype.searchCache = ma;
-L.prototype.export = function(a, b, c, d, e) {
-  let f, g;
-  switch(e || (e = 0)) {
-    case 0:
-      f = "reg";
-      if (this.fastupdate) {
-        g = w();
-        for (let h in this.register) {
-          g[h] = 1;
-        }
-      } else {
-        g = this.register;
-      }
-      break;
-    case 1:
-      f = "cfg";
-      g = {doc:0, opt:this.optimize ? 1 : 0};
-      break;
-    case 2:
-      f = "map";
-      g = this.map;
-      break;
-    case 3:
-      f = "ctx";
-      g = this.ctx;
-      break;
-    default:
-      return;
-  }
-  pa(a, b || this, c ? c + "." + f : f, d, e, g);
-  return !0;
-};
-L.prototype.import = function(a, b) {
-  if (b) {
-    switch(x(b) && (b = JSON.parse(b)), a) {
-      case "cfg":
-        this.optimize = !!b.opt;
-        break;
-      case "reg":
-        this.fastupdate = !1;
-        this.register = b;
-        break;
-      case "map":
-        this.map = b;
-        break;
-      case "ctx":
-        this.ctx = b;
-    }
-  }
-};
-ja(L.prototype);
-function sa(a) {
-  a = a.data;
-  var b = self._index;
-  const c = a.args;
-  var d = a.task;
-  switch(d) {
-    case "init":
-      d = a.options || {};
-      a = a.factory;
-      b = d.encode;
-      d.cache = !1;
-      b && 0 === b.indexOf("function") && (d.encode = Function("return " + 
b)());
-      a ? (Function("return " + a)()(self), self._index = new 
self.FlexSearch.Index(d), delete self.FlexSearch) : self._index = new L(d);
-      break;
-    default:
-      a = a.id, b = b[d].apply(b, c), postMessage("search" === d ? {id:a, 
msg:b} : {id:a});
-  }
-}
-;let ta = 0;
-function O(a) {
-  if (!(this instanceof O)) {
-    return new O(a);
-  }
-  var b;
-  a ? D(b = a.encode) && (a.encode = b.toString()) : a = {};
-  (b = (self || window)._factory) && (b = b.toString());
-  const c = self.exports, d = this;
-  this.worker = ua(b, c, a.worker);
-  this.resolver = w();
-  if (this.worker) {
-    if (c) {
-      this.worker.on("message", function(e) {
-        d.resolver[e.id](e.msg);
-        delete d.resolver[e.id];
-      });
-    } else {
-      this.worker.onmessage = function(e) {
-        e = e.data;
-        d.resolver[e.id](e.msg);
-        delete d.resolver[e.id];
-      };
-    }
-    this.worker.postMessage({task:"init", factory:b, options:a});
-  }
-}
-Q("add");
-Q("append");
-Q("search");
-Q("update");
-Q("remove");
-function Q(a) {
-  O.prototype[a] = O.prototype[a + "Async"] = function() {
-    const b = this, c = [].slice.call(arguments);
-    var d = c[c.length - 1];
-    let e;
-    D(d) && (e = d, c.splice(c.length - 1, 1));
-    d = new Promise(function(f) {
-      setTimeout(function() {
-        b.resolver[++ta] = f;
-        b.worker.postMessage({task:a, id:ta, args:c});
-      });
-    });
-    return e ? (d.then(e), this) : d;
-  };
-}
-function ua(a, b, c) {
-  let d;
-  try {
-    d = b ? eval('new 
(require("worker_threads")["Worker"])("../dist/node/node.js")') : a ? new 
Worker(URL.createObjectURL(new Blob(["onmessage=" + sa.toString()], 
{type:"text/javascript"}))) : new Worker(x(c) ? c : "worker/worker.js", 
{type:"module"});
-  } catch (e) {
-  }
-  return d;
-}
-;function R(a) {
-  if (!(this instanceof R)) {
-    return new R(a);
-  }
-  var b = a.document || a.doc || a, c;
-  this.tree = [];
-  this.field = [];
-  this.marker = [];
-  this.register = w();
-  this.key = (c = b.key || b.id) && S(c, this.marker) || "id";
-  this.fastupdate = r(a.fastupdate, !0);
-  this.storetree = (c = b.store) && !0 !== c && [];
-  this.store = c && w();
-  this.tag = (c = b.tag) && S(c, this.marker);
-  this.tagindex = c && w();
-  this.cache = (c = a.cache) && new K(c);
-  a.cache = !1;
-  this.worker = a.worker;
-  this.async = !1;
-  c = w();
-  let d = b.index || b.field || b;
-  x(d) && (d = [d]);
-  for (let e = 0, f, g; e < d.length; e++) {
-    f = d[e], x(f) || (g = f, f = f.field), g = z(g) ? Object.assign({}, a, g) 
: a, this.worker && (c[f] = new O(g), c[f].worker || (this.worker = !1)), 
this.worker || (c[f] = new L(g, this.register)), this.tree[e] = S(f, 
this.marker), this.field[e] = f;
-  }
-  if (this.storetree) {
-    for (a = b.store, x(a) && (a = [a]), b = 0; b < a.length; b++) {
-      this.storetree[b] = S(a[b], this.marker);
-    }
-  }
-  this.index = c;
-}
-function S(a, b) {
-  const c = a.split(":");
-  let d = 0;
-  for (let e = 0; e < c.length; e++) {
-    a = c[e], 0 <= a.indexOf("[]") && (a = a.substring(0, a.length - 2)) && 
(b[d] = !0), a && (c[d++] = a);
-  }
-  d < c.length && (c.length = d);
-  return 1 < d ? c : c[0];
-}
-function T(a, b) {
-  if (x(b)) {
-    a = a[b];
-  } else {
-    for (let c = 0; a && c < b.length; c++) {
-      a = a[b[c]];
-    }
-  }
-  return a;
-}
-function U(a, b, c, d, e) {
-  a = a[e];
-  if (d === c.length - 1) {
-    b[e] = a;
-  } else {
-    if (a) {
-      if (a.constructor === Array) {
-        for (b = b[e] = Array(a.length), e = 0; e < a.length; e++) {
-          U(a, b, c, d, e);
-        }
-      } else {
-        b = b[e] || (b[e] = w()), e = c[++d], U(a, b, c, d, e);
-      }
-    }
-  }
-}
-function V(a, b, c, d, e, f, g, h) {
-  if (a = a[g]) {
-    if (d === b.length - 1) {
-      if (a.constructor === Array) {
-        if (c[d]) {
-          for (b = 0; b < a.length; b++) {
-            e.add(f, a[b], !0, !0);
-          }
-          return;
-        }
-        a = a.join(" ");
-      }
-      e.add(f, a, h, !0);
-    } else {
-      if (a.constructor === Array) {
-        for (g = 0; g < a.length; g++) {
-          V(a, b, c, d, e, f, g, h);
-        }
-      } else {
-        g = b[++d], V(a, b, c, d, e, f, g, h);
-      }
-    }
-  }
-}
-R.prototype.add = function(a, b, c) {
-  z(a) && (b = a, a = T(b, this.key));
-  if (b && (a || 0 === a)) {
-    if (!c && this.register[a]) {
-      return this.update(a, b);
-    }
-    for (let d = 0, e, f; d < this.field.length; d++) {
-      f = this.field[d], e = this.tree[d], x(e) && (e = [e]), V(b, e, 
this.marker, 0, this.index[f], a, e[0], c);
-    }
-    if (this.tag) {
-      let d = T(b, this.tag), e = w();
-      x(d) && (d = [d]);
-      for (let f = 0, g, h; f < d.length; f++) {
-        if (g = d[f], !e[g] && (e[g] = 1, h = this.tagindex[g] || 
(this.tagindex[g] = []), !c || -1 === h.indexOf(a))) {
-          if (h[h.length] = a, this.fastupdate) {
-            const k = this.register[a] || (this.register[a] = []);
-            k[k.length] = h;
-          }
-        }
-      }
-    }
-    if (this.store && (!c || !this.store[a])) {
-      let d;
-      if (this.storetree) {
-        d = w();
-        for (let e = 0, f; e < this.storetree.length; e++) {
-          f = this.storetree[e], x(f) ? d[f] = b[f] : U(b, d, f, 0, f[0]);
-        }
-      }
-      this.store[a] = d || b;
-    }
-  }
-  return this;
-};
-R.prototype.append = function(a, b) {
-  return this.add(a, b, !0);
-};
-R.prototype.update = function(a, b) {
-  return this.remove(a).add(a, b);
-};
-R.prototype.remove = function(a) {
-  z(a) && (a = T(a, this.key));
-  if (this.register[a]) {
-    for (var b = 0; b < this.field.length && 
(this.index[this.field[b]].remove(a, !this.worker), !this.fastupdate); b++) {
-    }
-    if (this.tag && !this.fastupdate) {
-      for (let c in this.tagindex) {
-        b = this.tagindex[c];
-        const d = b.indexOf(a);
-        -1 !== d && (1 < b.length ? b.splice(d, 1) : delete this.tagindex[c]);
-      }
-    }
-    this.store && delete this.store[a];
-    delete this.register[a];
-  }
-  return this;
-};
-R.prototype.search = function(a, b, c, d) {
-  c || (!b && z(a) ? (c = a, a = c.query) : z(b) && (c = b, b = 0));
-  let e = [], f = [], g, h, k, m, p, u, q = 0;
-  if (c) {
-    if (c.constructor === Array) {
-      k = c, c = null;
-    } else {
-      k = (g = c.pluck) || c.index || c.field;
-      m = c.tag;
-      h = this.store && c.enrich;
-      p = "and" === c.bool;
-      b = c.limit || 100;
-      u = c.offset || 0;
-      if (m && (x(m) && (m = [m]), !a)) {
-        for (let l = 0, t; l < m.length; l++) {
-          if (t = va.call(this, m[l], b, u, h)) {
-            e[e.length] = t, q++;
-          }
-        }
-        return q ? e : [];
-      }
-      x(k) && (k = [k]);
-    }
-  }
-  k || (k = this.field);
-  p = p && (1 < k.length || m && 1 < m.length);
-  const n = !d && (this.worker || this.async) && [];
-  for (let l = 0, t, y, C; l < k.length; l++) {
-    let B;
-    y = k[l];
-    x(y) || (B = y, y = y.field);
-    if (n) {
-      n[l] = this.index[y].searchAsync(a, b, B || c);
-    } else {
-      C = (t = d ? d[l] : this.index[y].search(a, b, B || c)) && t.length;
-      if (m && C) {
-        const A = [];
-        let H = 0;
-        p && (A[0] = [t]);
-        for (let W = 0, oa, P; W < m.length; W++) {
-          if (oa = m[W], C = (P = this.tagindex[oa]) && P.length) {
-            H++, A[A.length] = p ? [P] : P;
-          }
-        }
-        H && (t = p ? ka(A, b || 100, u || 0) : la(t, A), C = t.length);
-      }
-      if (C) {
-        f[q] = y, e[q++] = t;
-      } else {
-        if (p) {
-          return [];
-        }
-      }
-    }
-  }
-  if (n) {
-    const l = this;
-    return new Promise(function(t) {
-      Promise.all(n).then(function(y) {
-        t(l.search(a, b, c, y));
-      });
-    });
-  }
-  if (!q) {
-    return [];
-  }
-  if (g && (!h || !this.store)) {
-    return e[0];
-  }
-  for (let l = 0, t; l < f.length; l++) {
-    t = e[l];
-    t.length && h && (t = wa.call(this, t));
-    if (g) {
-      return t;
-    }
-    e[l] = {field:f[l], result:t};
-  }
-  return e;
-};
-function va(a, b, c, d) {
-  let e = this.tagindex[a], f = e && e.length - c;
-  if (f && 0 < f) {
-    if (f > b || c) {
-      e = e.slice(c, c + b);
-    }
-    d && (e = wa.call(this, e));
-    return {tag:a, result:e};
-  }
-}
-function wa(a) {
-  const b = Array(a.length);
-  for (let c = 0, d; c < a.length; c++) {
-    d = a[c], b[c] = {id:d, doc:this.store[d]};
-  }
-  return b;
-}
-R.prototype.contain = function(a) {
-  return !!this.register[a];
-};
-R.prototype.get = function(a) {
-  return this.store[a];
-};
-R.prototype.set = function(a, b) {
-  this.store[a] = b;
-  return this;
-};
-R.prototype.searchCache = ma;
-R.prototype.export = function(a, b, c, d, e) {
-  e || (e = 0);
-  d || (d = 0);
-  if (d < this.field.length) {
-    const f = this.field[d], g = this.index[f];
-    b = this;
-    setTimeout(function() {
-      g.export(a, b, e ? f.replace(":", "-") : "", d, e++) || (d++, e = 1, 
b.export(a, b, f, d, e));
-    });
-  } else {
-    let f;
-    switch(e) {
-      case 1:
-        c = "tag";
-        f = this.tagindex;
-        break;
-      case 2:
-        c = "store";
-        f = this.store;
-        break;
-      default:
-        return;
-    }
-    pa(a, this, c, d, e, f);
-  }
-};
-R.prototype.import = function(a, b) {
-  if (b) {
-    switch(x(b) && (b = JSON.parse(b)), a) {
-      case "tag":
-        this.tagindex = b;
-        break;
-      case "reg":
-        this.fastupdate = !1;
-        this.register = b;
-        for (let d = 0, e; d < this.field.length; d++) {
-          e = this.index[this.field[d]], e.register = b, e.fastupdate = !1;
-        }
-        break;
-      case "store":
-        this.store = b;
-        break;
-      default:
-        a = a.split(".");
-        const c = a[0];
-        a = a[1];
-        c && a && this.index[c].import(a, b);
-    }
-  }
-};
-ja(R.prototype);
-var ya = {encode:xa, rtl:!1, tokenize:""};
-const za = G("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"), Aa = 
G("[\u00e8\u00e9\u00ea\u00eb]"), Ba = G("[\u00ec\u00ed\u00ee\u00ef]"), Ca = 
G("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"), Da = 
G("[\u00f9\u00fa\u00fb\u00fc\u0171]"), Ea = G("[\u00fd\u0177\u00ff]"), Fa = 
G("\u00f1"), Ga = G("[\u00e7c]"), Ha = G("\u00df"), Ia = G(" & "), Ja = [za, 
"a", Aa, "e", Ba, "i", Ca, "o", Da, "u", Ea, "y", Fa, "n", Ga, "k", Ha, "s", 
Ia, " and "];
-function xa(a) {
-  var b = a = "" + a;
-  b.normalize && (b = b.normalize("NFD").replace(da, ""));
-  return ba.call(this, b.toLowerCase(), !a.normalize && Ja, ca, !1);
-}
-;var La = {encode:Ka, rtl:!1, tokenize:"strict"};
-const Ma = /[^a-z0-9]+/, Na = {b:"p", v:"f", w:"f", z:"s", x:"s", 
"\u00df":"s", d:"t", n:"m", c:"k", g:"k", j:"k", q:"k", i:"e", y:"e", u:"o"};
-function Ka(a) {
-  a = xa.call(this, a).join(" ");
-  const b = [];
-  if (a) {
-    const c = a.split(Ma), d = c.length;
-    for (let e = 0, f, g = 0; e < d; e++) {
-      if ((a = c[e]) && (!this.filter || !this.filter[a])) {
-        f = a[0];
-        let h = Na[f] || f, k = h;
-        for (let m = 1; m < a.length; m++) {
-          f = a[m];
-          const p = Na[f] || f;
-          p && p !== k && (h += p, k = p);
-        }
-        b[g++] = h;
-      }
-    }
-  }
-  return b;
-}
-;var Pa = {encode:Oa, rtl:!1, tokenize:""};
-const Qa = G("ae"), Ra = G("oe"), Sa = G("sh"), Ta = G("th"), Ua = G("ph"), Va 
= G("pf"), Wa = [Qa, "a", Ra, "o", Sa, "s", Ta, "t", Ua, "f", Va, "f", 
G("(?![aeo])h(?![aeo])"), "", G("(?!^[aeo])h(?!^[aeo])"), ""];
-function Oa(a, b) {
-  a && (a = Ka.call(this, a).join(" "), 2 < a.length && (a = E(a, Wa)), b || 
(1 < a.length && (a = F(a)), a && (a = a.split(" "))));
-  return a;
-}
-;var Ya = {encode:Xa, rtl:!1, tokenize:""};
-const Za = G("(?!\b)[aeo]");
-function Xa(a) {
-  a && (a = Oa.call(this, a, !0), 1 < a.length && (a = a.replace(Za, "")), 1 < 
a.length && (a = F(a)), a && (a = a.split(" ")));
-  return a;
-}
-;I["latin:default"] = ha;
-I["latin:simple"] = ya;
-I["latin:balance"] = La;
-I["latin:advanced"] = Pa;
-I["latin:extra"] = Ya;
-const X = self;
-let Y;
-const Z = {Index:L, Document:R, Worker:O, registerCharset:function(a, b) {
-  I[a] = b;
-}, registerLanguage:function(a, b) {
-  ia[a] = b;
-}};
-(Y = X.define) && Y.amd ? Y([], function() {
-  return Z;
-}) : X.exports ? X.exports = Z : X.FlexSearch = Z;
-}(this));
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index 22ced0e2e2..64c8caf604 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -175,7 +175,7 @@
         <script type="text/javascript" src="polyfills.js"></script>
         <script type="text/javascript" src="languages.js"></script>
         <script type="text/javascript" src="{$lang}/langnames.js"></script>
-        <script type="text/javascript" src="flexsearch.debug.js"></script>
+        <script type="text/javascript" 
src="flexsearch.compact.debug.js"></script>
         <script type="text/javascript" src="prism.js"></script>
         <script type="text/javascript" src="help2.js" defer=""></script>
         <xsl:if test="$online">

Reply via email to