Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flexsearch

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flexsearch - npm Package Compare versions

Comparing version 0.5.31 to 0.6.0

4

CHANGELOG.md
# Changelog
#### v0.6.0
- Pagination
#### v0.5.3

@@ -4,0 +8,0 @@

47

dist/flexsearch.compact.js
/*
FlexSearch v0.5.31
FlexSearch v0.6.0
Copyright 2019 Nextapps GmbH

@@ -8,23 +8,24 @@ Author: Thomas Wilkerling

*/
'use strict';(function(k,B,C){let A;(A=C.define)&&A.amd?A([],function(){return B}):(A=C.modules)?A[k.toLowerCase()]=B:"object"===typeof exports?module.exports=B:C[k]=B})("FlexSearch",function(){function k(b,a){const c=a?a.id:b&&b.id;this.id=c||0===c?c:W++;this.init(b,a);A(this,"index",function(){return this.a?this.a.index[this.a.keys[0]].f:this.f});A(this,"length",function(){return Object.keys(this.index).length})}function B(b,a){const c=b.length,d=H(a),e=[];for(let l=0,g=0;l<c;l++){const c=b[l];
if(d&&a(c)||!d&&!a[c])e[g++]=c}return e}function C(b,a,c,d,e,l,g,h){b=c=P(c,l?0:e,g,!1,a,h);a=this.g;c=b.length;g=Array(c);for(h=0;h<c;h++)g[h]=a[b[h]];c=g;l&&(c=this.where(l,null,e,c));d&&(H(d)||(x=d.split(":"),1<x.length?d=X:(x=x[0],d=Y)),c.sort(d));return c}function A(b,a,c){Object.defineProperty(b,a,{get:c})}function f(b){return new RegExp(b,"g")}function D(b,a){for(let c=0;c<a.length;c+=2)b=b.replace(a[c],a[c+1]);return b}function K(b,a,c,d,e,l,g,h){if(a[c])return a[c];e=e?(h-(g||h/1.5))*l+(g||
h/1.5)*e:l;a[c]=e;e>=g&&(b=b[h-(e+.5>>0)],b=b[c]||(b[c]=[]),b[b.length]=d);return e}function L(b,a){if(b){const c=Object.keys(b);for(let d=0,e=c.length;d<e;d++){const e=c[d],g=b[e];if(g)for(let c=0,d=g.length;c<d;c++)if(g[c]===a){1===d?delete b[e]:g.splice(c,1);break}else E(g[c])&&L(g[c],a)}}}function M(b){let a="",c="";var d="";for(let e=0;e<b.length;e++){const l=b[e];if(l!==c)if(e&&"h"===l){if(d="a"===d||"e"===d||"i"===d||"o"===d||"u"===d||"y"===d,("a"===c||"e"===c||"i"===c||"o"===c||"u"===c||"y"===
c)&&d||" "===c)a+=l}else a+=l;d=e===b.length-1?"":b[e+1];c=l}return a}function Z(b,a){b=b.length-a.length;return 0>b?1:b?-1:0}function Y(b,a){b=b[x];a=a[x];return b<a?-1:b>a?1:0}function X(b,a){const c=x.length;for(let d=0;d<c;d++)b=b[x[d]],a=a[x[d]];return b<a?-1:b>a?1:0}function P(b,a,c,d,e,l){c=[];const g=b.length;if(1<g){const m=v();let t,n,p=-1;var h;let y,u,k=!0,w,F=0,r,N;if(l){for(t=v();++p<g;)if("not"===e[p])for(n=b[p],y=n.length,h=0;h<y;)t["@"+n[h++]]=1;else N=p+1;if(!N)return c;p=-1}else r=
G(e)&&e;for(;++p<g;){const aa=p===(N||g)-1;let Q,v;if(!r||!p)if((h=r||e&&e[p])&&"and"!==h)if("or"===h)v=!0;else continue;else Q=!0;n=b[p];y=n.length;if(!y){if(Q&&!d)return n;continue}if(k)if(w){var f=w.length;for(h=0;h<f;)m["@"+w[h++]]=1;w=null;k=!1}else{w=n;continue}let x=!1;h=0;for(f=[];h<y;){u=n[h++];var q="@"+u;const b=m[q];if(b&&(!l||!t[q]))if(v||b===p){if(aa){if(c[F++]=u,a&&F===a)return c}else m[q]=p+1;x=!0}else d&&(q=f[b]||(f[b]=[]),q[q.length]=u)}if(!x&&!d)break}if(w)if(l)for(b=w.length,h=
0;h<b;)e=w[h++],t["@"+e]||(c[F++]=e);else c=w;if(d&&(F=c.length,(p=f.length)&&(!a||F<a)))for(;p--;)if(u=f[p])for(h=0,y=u.length;h<y;h++)if(c[F++]=u[h],a&&F===a)return c}else!g||e&&"not"===e[0]||(c=b[0],a&&c.length>a&&(c=c.slice(0,a)));return c}function G(b){return"string"===typeof b}function z(b){return b.constructor===Array}function H(b){return"function"===typeof b}function E(b){return"object"===typeof b}function I(b){return"undefined"===typeof b}function R(b){const a=Array(b);for(let c=0;c<b;c++)a[c]=
v();return a}function v(){return Object.create(null)}const r={encode:"icase",c:"forward",v:!1,cache:!1,async:!1,w:!1,m:!1,a:!1,s:!1,b:9,threshold:0,depth:0},S={memory:{encode:"extra",c:"strict",threshold:0,b:1},speed:{encode:"icase",c:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",c:"full",threshold:1,b:3},score:{encode:"extra",c:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",c:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",c:"strict",threshold:8,b:9,depth:1}},O=[];let W=
0;const T=/\W+/,U={},V={};k.create=function(b){return new k(b)};k.registerMatcher=function(b){for(const a in b)b.hasOwnProperty(a)&&O.push(f(a),b[a]);return this};k.registerEncoder=function(b,a){J[b]=a.bind(J);return this};k.registerLanguage=function(b,a){U[b]=a.filter;V[b]=a.stemmer;return this};k.encode=function(b,a){return J[b](a)};k.prototype.init=function(b,a){this.o=[];if(a){var c=a.preset;b=a}else b||(b=r),c=b.preset;a={};G(b)?(a=S[b],b={}):c&&(a=S[c]);this.c=b.tokenize||a.c||this.c||r.c;this.m=
b.rtl||this.m||r.m;this.async="undefined"===typeof Promise||I(c=b.async)?this.async||r.async:c;this.threshold=I(c=b.threshold)?a.threshold||this.threshold||r.threshold:c;this.b=I(c=b.resolution)?c=a.b||this.b||r.b:c;c<=this.threshold&&(this.b=this.threshold+1);this.depth=I(c=b.depth)?a.depth||this.depth||r.depth:c;this.s=I(c=b.paging)?this.s||r.s:c;this.i=(c=I(c=b.encode)?a.encode||r.encode:c)&&J[c]&&J[c].bind(J)||(H(c)?c:this.i||!1);(c=b.matcher)&&this.addMatcher(c);if(c=b.filter){G(c)&&(c=U[c]);
if(z(c)){a=this.i;var d=v();for(var e=0;e<c.length;e++){var l=a?a(c[e]):c[e];d[l]=1}c=d}this.filter=c}if(c=b.stemmer){var g;a=G(c)?V[c]:c;d=this.i;e=[];for(g in a)a.hasOwnProperty(g)&&(l=d?d(g):g,e.push(f(l+"($|\\W)"),d?d(a[g]):a[g]));this.stemmer=g=e}this.a=d=(c=b.doc)?c:this.a||r.a;this.l=R(this.b-(this.threshold||0));this.h=v();this.f=v();if(d&&(this.g=v(),b.doc=null,g=d.index={},c=d.keys=[],a=d.field,z(d.id)||(d.id=d.id.split(":")),a)){let h;z(a)||(E(a)?(h=a,d.field=a=Object.keys(a)):d.field=
a=[a]);for(d=0;d<a.length;d++)e=a[d],z(e)||(h&&(b=h[e]),c[d]=e,a[d]=e.split(":")),g[e]=new k(b),g[e].g=this.g}return this};k.prototype.encode=function(b){b&&O.length&&(b=D(b,O));b&&this.o.length&&(b=D(b,this.o));b&&this.i&&(b=this.i(b));b&&this.stemmer&&(b=D(b,this.stemmer));return b};k.prototype.addMatcher=function(b){const a=this.o;for(const c in b)b.hasOwnProperty(c)&&a.push(f(c),b[c]);return this};k.prototype.add=function(b,a,c,d,e){if(this.a&&E(b))return this.j("add",b,a);if(a&&G(a)&&(b||0===
b)){var f="@"+b;if(this.f[f]&&!d)return this.update(b,a);if(!e){if(this.async&&"function"!==typeof importScripts){let e=this;f=new Promise(function(c){setTimeout(function(){e.add(b,a,null,d,!0);e=null;c()})});if(c)f.then(c);else return f;return this}if(c)return this.add(b,a,null,d,!0),c(),this}a=this.encode(a);if(!a.length)return this;c=this.c;e=H(c)?c(a):a.split(T);this.filter&&(e=B(e,this.filter));const l=v();l._ctx=v();const n=e.length,p=this.threshold,y=this.depth,u=this.b,k=this.l,w=this.m;for(let a=
0;a<n;a++){var g=e[a];if(g){var h=g.length,t=(w?a+1:n-a)/n,q="";switch(c){case "reverse":case "both":for(var m=h;--m;)q=g[m]+q,K(k,l,q,b,w?1:(h-m)/h,t,p,u-1);q="";case "forward":for(m=0;m<h;m++)q+=g[m],K(k,l,q,b,w?(m+1)/h:1,t,p,u-1);break;case "full":for(m=0;m<h;m++){const a=(w?m+1:h-m)/h;for(let c=h;c>m;c--)q=g.substring(m,c),K(k,l,q,b,a,t,p,u-1)}break;default:if(h=K(k,l,g,b,1,t,p,u-1),y&&1<n&&h>=p)for(h=l._ctx[g]||(l._ctx[g]=v()),g=this.h[g]||(this.h[g]=R(u-(p||0))),t=a-y,q=a+y+1,0>t&&(t=0),q>n&&
(q=n);t<q;t++)t!==a&&K(g,h,e[t],b,0,u-(t<a?a-t:t-a),p,u-1)}}}this.f[f]=1}return this};k.prototype.j=function(b,a,c){if(z(a))for(let d=0,e=a.length;d<e;d++){if(d===e-1)return this.j(b,a[d],c);this.j(b,a[d])}else{const l=this.a.index,q=this.a.keys;var d=this.a.tag,e=this.a.id;let m;let k;for(var f=0;f<e.length;f++)m=(m||a)[e[f]];if(d){for(e=0;e<d.length;e++){var g=d[e];var h=g.split(":");for(f=0;f<h.length;f++)k=(k||a)[h[f]];k="@"+k}h=this.u[g];h=h[k]||(h[k]=[])}if("remove"===b){delete this.g[m];for(let a=
0,b=q.length;a<b;a++){if(a===b-1)return l[q[a]].remove(m,c);l[q[a]].remove(m)}}e=this.a.field;h&&(h[h.length]=a);for(let h=0,f=e.length;h<f;h++){d=e[h];let k;for(g=0;g<d.length;g++)k=(k||a)[d[g]];this.g[m]=a;d=l[q[h]];g="add"===b?d.add:d.update;if(h===f-1)return g.call(d,m,k,c);g.call(d,m,k)}}};k.prototype.update=function(b,a,c){if(this.a&&E(b))return this.j("update",b,a);this.f["@"+b]&&G(a)&&(this.remove(b),this.add(b,a,c,!0));return this};k.prototype.remove=function(b,a,c){if(this.a&&E(b))return this.j("remove",
b,a);var d="@"+b;if(this.f[d]){if(!c){if(this.async&&"function"!==typeof importScripts){let c=this;d=new Promise(function(a){setTimeout(function(){c.remove(b,null,!0);c=null;a()})});if(a)d.then(a);else return d;return this}if(a)return this.remove(b,null,!0),a(),this}for(a=0;a<this.b-(this.threshold||0);a++)L(this.l[a],b);this.depth&&L(this.h,b);delete this.f[d]}return this};let x;k.prototype.search=function(b,a,c,d){if(E(a)){if(z(a))for(var e=0;e<a.length;e++)a[e].query=b;else a.query=b;b=a;a=0}let f=
[],g=b;let h;if(E(b)&&!z(b)){(c=b.callback||a)&&(g.callback=null);h=b.sort;a=b.limit;var k=b.threshold;b=b.query}if(this.a){k=this.a.index;var q=g.bool||"or",m=g.field;let l=q;let p;if(m)z(m)||(m=[m]);else if(z(g)){var r=g;m=[];l=[];for(var n=0;n<g.length;n++)d=g[n],e=d.bool||q,m[n]=d.field,l[n]=e,"not"===e&&(p=!0)}else m=this.a.keys;q=m.length;for(n=0;n<q;n++)r&&(g=r[n]),f[n]=k[m[n]].search(g);if(c)return c(C.call(this,b,l,f,h,a,!1,void 0,p));if(this.async){const c=this;return new Promise(function(d){Promise.all(f).then(function(e){d(C.call(c,
b,l,e,h,a,!1,void 0,p))})})}return C.call(this,b,l,f,h,a,!1,void 0,p)}k||(k=this.threshold||0);H(a)?(c=a,a=1E3):a||0===a||(a=1E3);if(!d){if(this.async&&"function"!==typeof importScripts){let b=this;k=new Promise(function(c){setTimeout(function(){c(b.search(g,a,null,!0));b=null})});if(c)k.then(c);else return k;return this}if(c)return c(this.search(g,a,null,!0)),this}if(!b||!G(b))return f;g=b;g=this.encode(g);if(!g.length)return f;c=this.c;c=H(c)?c(g):g.split(T);this.filter&&(c=B(c,this.filter));r=
c.length;d=!0;e=[];const p=v();1<r&&(this.depth?(m=!0,n=c[0],p[n]=1):c.sort(Z));if(!m||(q=this.h)[n]){const a=this.b;for(let b=m?1:0;b<r;b++){const f=c[b];if(f){if(!p[f]){const b=[];let c=!1,g=0;if(n=m?q[n]:this.l){let d;for(let e=0;e<a-k;e++)if(d=n[e][f])b[g++]=d,c=!0}if(c)e[e.length]=1<g?b.concat.apply([],b):b[0];else{d=!1;break}p[f]=1}n=f}}}else d=!1;this.a||d&&(f=P(e,a,void 0,!1));return f};k.prototype.clear=function(){return this.destroy().init()};k.prototype.destroy=function(){this.l=this.h=
this.f=null;if(this.a){const b=this.a.keys;for(let a=0;a<b.length;a++)this.a.index[b[a]].destroy();this.a=this.g=null}return this};const J={icase:function(b){return b.toLowerCase()},simple:function(){const b=[f("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"),"a",f("[\u00e8\u00e9\u00ea\u00eb]"),"e",f("[\u00ec\u00ed\u00ee\u00ef]"),"i",f("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"),"o",f("[\u00f9\u00fa\u00fb\u00fc\u0171]"),"u",f("[\u00fd\u0177\u00ff]"),"y",f("\u00f1"),"n",f("\u00e7"),"c",f("\u00df"),"s",f(" & "),
" and ",f("[-/]")," ",f("[^a-z0-9 ]"),"",f("\\s+")," "];return function(a){a=D(a.toLowerCase(),b);return" "===a?"":a}}(),advanced:function(){const b=[f("ae"),"a",f("ai"),"ei",f("ay"),"ei",f("ey"),"ei",f("oe"),"o",f("ue"),"u",f("ie"),"i",f("sz"),"s",f("zs"),"s",f("sh"),"s",f("ck"),"k",f("cc"),"k",f("dt"),"t",f("ph"),"f",f("pf"),"f",f("ou"),"o",f("uo"),"u"];return function(a,c){if(!a)return a;a=this.simple(a);2<a.length&&(a=D(a,b));c||1<a.length&&(a=M(a));return a}}(),extra:function(){const b=[f("p"),
"b",f("z"),"s",f("[cgq]"),"k",f("n"),"m",f("d"),"t",f("[vw]"),"f",f("[aeiouy]"),""];return function(a){if(!a)return a;a=this.advanced(a,!0);if(1<a.length){a=a.split(" ");for(let c=0;c<a.length;c++){const d=a[c];1<d.length&&(a[c]=d[0]+D(d.substring(1),b))}a=a.join(" ");a=M(a)}return a}}(),balance:function(){const b=[f("[-/]")," ",f("[^a-z0-9 ]"),"",f("\\s+")," "];return function(a){return M(D(a.toLowerCase(),b))}}()};return k}(!1),this);
'use strict';(function(l,F,G){let A;(A=G.define)&&A.amd?A([],function(){return F}):(A=G.modules)?A[l.toLowerCase()]=F:"object"===typeof exports?module.exports=F:G[l]=F})("FlexSearch",function(){function l(b,a){const c=a?a.id:b&&b.id;this.id=c||0===c?c:Z++;this.init(b,a);A(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].f):Object.keys(this.f)});A(this,"length",function(){return this.index.length})}function F(b,a){const c=b.length,d=H(a),e=[];for(let h=0,g=0;h<c;h++){const c=
b[h];if(d&&a(c)||!d&&!a[c])e[g++]=c}return e}function G(b,a,c,d,e,h,g,m,n,f){c=R(c,g?0:e,m,!1,a,n,f);let k;m&&(m=c.page,k=c.next,c=c.result);if(g)b=this.where(g,null,e,c);else{b=c;a=this.g;c=b.length;e=Array(c);for(h=0;h<c;h++)e[h]=a[b[h]];b=e}c=b;d&&(H(d)||(u=d.split(":"),1<u.length?d=aa:(u=u[0],d=ba)),c.sort(d));return c=I(m,k,c)}function A(b,a,c){Object.defineProperty(b,a,{get:c})}function f(b){return new RegExp(b,"g")}function J(b,a){for(let c=0;c<a.length;c+=2)b=b.replace(a[c],a[c+1]);return b}
function M(b,a,c,d,e,h,g,m){if(a[c])return a[c];e=e?(m-(g||m/1.5))*h+(g||m/1.5)*e:h;a[c]=e;e>=g&&(b=b[m-(e+.5>>0)],b=b[c]||(b[c]=[]),b[b.length]=d);return e}function O(b,a){if(b){const c=Object.keys(b);for(let d=0,e=c.length;d<e;d++){const e=c[d],g=b[e];if(g)for(let c=0,d=g.length;c<d;c++)if(g[c]===a){1===d?delete b[e]:g.splice(c,1);break}else K(g[c])&&O(g[c],a)}}}function P(b){let a="",c="";var d="";for(let e=0;e<b.length;e++){const h=b[e];if(h!==c)if(e&&"h"===h){if(d="a"===d||"e"===d||"i"===d||
"o"===d||"u"===d||"y"===d,("a"===c||"e"===c||"i"===c||"o"===c||"u"===c||"y"===c)&&d||" "===c)a+=h}else a+=h;d=e===b.length-1?"":b[e+1];c=h}return a}function ca(b,a){b=b.length-a.length;return 0>b?1:b?-1:0}function ba(b,a){b=b[u];a=a[u];return b<a?-1:b>a?1:0}function aa(b,a){const c=u.length;for(let d=0;d<c;d++)b=b[u[d]],a=a[u[d]];return b<a?-1:b>a?1:0}function I(b,a,c){return b?{page:b,next:a?""+a:null,result:c}:c}function R(b,a,c,d,e,h,g){let m;h=[];let n;const f=b.length;!0===c?(c="0",n=""):n=c&&
c.split(":");if(1<f){const v=x();let q=[],l,y,t=-1;var k;let B;let T=!0,D,C=0,u,z,p;n&&(2===n.length?(p=n,n=!1):n=parseInt(n[0],10));if(g){for(l=x();++t<f;)if("not"===e[t])for(y=b[t],B=y.length,k=0;k<B;)l["@"+y[k++]]=1;else z=t+1;if(!z)return I(c,m,h);t=-1}else u=E(e)&&e;for(;++t<f;){const da=t===(z||f)-1;let p,x;if(!u||!t)if((k=u||e&&e[t])&&"and"!==k)if("or"===k)x=!0;else continue;else p=!0;y=b[t];B=y.length;if(!B){if(p&&!d)return I(c,m,y);continue}if(T)if(D){var w=D.length;for(k=0;k<w;)v["@"+D[k++]]=
1;D=null;T=!1}else{D=y;continue}let S=!1;for(k=0;k<B;){w=y[k++];var r="@"+w;const b=x?t:v[r];if(b&&(!g||!l[r]))if(b===t){if(da){if(!n||--n<C)if(h[C++]=w,a&&C===a)return I(c,C,h)}else v[r]=t+1;S=!0}else d&&(r=q[b]||(q[b]=[]),r[r.length]=w)}if(p&&!S&&!d)break}if(D)if(b=D.length,g)for(k=n?parseInt(n,10):0;k<b;){if(e=D[k++],!l["@"+e]&&(!n||--n<C)&&(h[C++]=e,a&&C===a))return I(c,k,h)}else h=D;if(d)for(C=h.length,p?(t=parseInt(p[0],10)+1,k=parseInt(p[1],10)):(t=q.length,k=0);t--;)if(w=q[t])for(B=w.length;k<
B;k++)if(d=w[k],!g||!l["@"+d])if(h[C++]=d,a&&C===a)return I(c,t+":"+k,h)}else f&&(e&&"not"===e[0]||(h=b[0]));a&&(g=c?parseInt(c,10):0,m=g+a,m<h.length?h=h.slice(g,m):g&&(h=h.slice(g)));return I(c,m,h)}function E(b){return"string"===typeof b}function z(b){return b.constructor===Array}function H(b){return"function"===typeof b}function K(b){return"object"===typeof b}function N(b){return"undefined"===typeof b}function U(b){const a=Array(b);for(let c=0;c<b;c++)a[c]=x();return a}function x(){return Object.create(null)}
const p={encode:"icase",c:"forward",cache:!1,async:!1,u:!1,m:!1,a:!1,b:9,threshold:0,depth:0},V={memory:{encode:"extra",c:"strict",threshold:0,b:1},speed:{encode:"icase",c:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",c:"full",threshold:1,b:3},score:{encode:"extra",c:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",c:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",c:"strict",threshold:8,b:9,depth:1}},Q=[];let Z=0;const W=/\W+/,X={},Y={};l.create=function(b){return new l(b)};
l.registerMatcher=function(b){for(const a in b)b.hasOwnProperty(a)&&Q.push(f(a),b[a]);return this};l.registerEncoder=function(b,a){L[b]=a.bind(L);return this};l.registerLanguage=function(b,a){X[b]=a.filter;Y[b]=a.stemmer;return this};l.encode=function(b,a){return L[b](a)};l.prototype.init=function(b,a){this.o=[];if(a){var c=a.preset;b=a}else b||(b=p),c=b.preset;a={};E(b)?(a=V[b],b={}):c&&(a=V[c]);this.c=b.tokenize||a.c||this.c||p.c;this.m=b.rtl||this.m||p.m;this.async="undefined"===typeof Promise||
N(c=b.async)?this.async||p.async:c;this.threshold=N(c=b.threshold)?a.threshold||this.threshold||p.threshold:c;this.b=N(c=b.resolution)?c=a.b||this.b||p.b:c;c<=this.threshold&&(this.b=this.threshold+1);this.depth="strict"!==this.c||N(c=b.depth)?a.depth||this.depth||p.depth:c;this.i=(c=N(c=b.encode)?a.encode||p.encode:c)&&L[c]&&L[c].bind(L)||(H(c)?c:this.i||!1);(c=b.matcher)&&this.addMatcher(c);if(c=b.filter){E(c)&&(c=X[c]);if(z(c)){a=this.i;var d=x();for(var e=0;e<c.length;e++){var h=a?a(c[e]):c[e];
d[h]=1}c=d}this.filter=c}if(c=b.stemmer){var g;a=E(c)?Y[c]:c;d=this.i;e=[];for(g in a)a.hasOwnProperty(g)&&(h=d?d(g):g,e.push(f(h+"($|\\W)"),d?d(a[g]):a[g]));this.stemmer=g=e}this.a=d=(c=b.doc)?c:this.a||p.a;this.l=U(this.b-(this.threshold||0));this.h=x();this.f=x();if(d&&(this.g=x(),b.doc=null,g=d.index={},c=d.keys=[],a=d.field,z(d.id)||(d.id=d.id.split(":")),a)){let h;z(a)||(K(a)?(h=a,d.field=a=Object.keys(a)):d.field=a=[a]);for(d=0;d<a.length;d++)e=a[d],z(e)||(h&&(b=h[e]),c[d]=e,a[d]=e.split(":")),
g[e]=new l(b),g[e].g=this.g}return this};l.prototype.encode=function(b){b&&Q.length&&(b=J(b,Q));b&&this.o.length&&(b=J(b,this.o));b&&this.i&&(b=this.i(b));b&&this.stemmer&&(b=J(b,this.stemmer));return b};l.prototype.addMatcher=function(b){const a=this.o;for(const c in b)b.hasOwnProperty(c)&&a.push(f(c),b[c]);return this};l.prototype.add=function(b,a,c,d,e){if(this.a&&K(b))return this.j("add",b,a);if(a&&E(a)&&(b||0===b)){var h="@"+b;if(this.f[h]&&!d)return this.update(b,a);if(!e){if(this.async&&"function"!==
typeof importScripts){let e=this;h=new Promise(function(c){setTimeout(function(){e.add(b,a,null,d,!0);e=null;c()})});if(c)h.then(c);else return h;return this}if(c)return this.add(b,a,null,d,!0),c(),this}a=this.encode(a);if(!a.length)return this;c=this.c;e=H(c)?c(a):a.split(W);this.filter&&(e=F(e,this.filter));const m=x();m._ctx=x();const r=e.length,l=this.threshold,q=this.depth,p=this.b,y=this.l,t=this.m;for(let a=0;a<r;a++){var g=e[a];if(g){var f=g.length,n=(t?a+1:r-a)/r,v="";switch(c){case "reverse":case "both":for(var k=
f;--k;)v=g[k]+v,M(y,m,v,b,t?1:(f-k)/f,n,l,p-1);v="";case "forward":for(k=0;k<f;k++)v+=g[k],M(y,m,v,b,t?(k+1)/f:1,n,l,p-1);break;case "full":for(k=0;k<f;k++){const a=(t?k+1:f-k)/f;for(let c=f;c>k;c--)v=g.substring(k,c),M(y,m,v,b,a,n,l,p-1)}break;default:if(f=M(y,m,g,b,1,n,l,p-1),q&&1<r&&f>=l)for(f=m._ctx[g]||(m._ctx[g]=x()),g=this.h[g]||(this.h[g]=U(p-(l||0))),n=a-q,v=a+q+1,0>n&&(n=0),v>r&&(v=r);n<v;n++)n!==a&&M(g,f,e[n],b,0,p-(n<a?a-n:n-a),l,p-1)}}}this.f[h]=1}return this};l.prototype.j=function(b,
a,c){if(z(a))for(let d=0,e=a.length;d<e;d++){if(d===e-1)return this.j(b,a[d],c);this.j(b,a[d])}else{const n=this.a.index,l=this.a.keys;var d=this.a.tag,e=this.a.id;let k;let m;for(var h=0;h<e.length;h++)k=(k||a)[e[h]];if(d){for(e=0;e<d.length;e++){var g=d[e];var f=g.split(":");for(h=0;h<f.length;h++)m=(m||a)[f[h]];m="@"+m}f=this.s[g];f=f[m]||(f[m]=[])}if("remove"===b){delete this.g[k];for(let a=0,b=l.length;a<b;a++){if(a===b-1)return n[l[a]].remove(k,c);n[l[a]].remove(k)}}e=this.a.field;f&&(f[f.length]=
a);for(let f=0,h=e.length;f<h;f++){d=e[f];let m;for(g=0;g<d.length;g++)m=(m||a)[d[g]];this.g[k]=a;d=n[l[f]];g="add"===b?d.add:d.update;if(f===h-1)return g.call(d,k,m,c);g.call(d,k,m)}}};l.prototype.update=function(b,a,c){if(this.a&&K(b))return this.j("update",b,a);this.f["@"+b]&&E(a)&&(this.remove(b),this.add(b,a,c,!0));return this};l.prototype.remove=function(b,a,c){if(this.a&&K(b))return this.j("remove",b,a);var d="@"+b;if(this.f[d]){if(!c){if(this.async&&"function"!==typeof importScripts){let c=
this;d=new Promise(function(a){setTimeout(function(){c.remove(b,null,!0);c=null;a()})});if(a)d.then(a);else return d;return this}if(a)return this.remove(b,null,!0),a(),this}for(a=0;a<this.b-(this.threshold||0);a++)O(this.l[a],b);this.depth&&O(this.h,b);delete this.f[d]}return this};let u;l.prototype.search=function(b,a,c,d){if(K(a)){if(z(a))for(var e=0;e<a.length;e++)a[e].query=b;else a.query=b;b=a;a=0}let f=[],g=b;let m,l,p;if(K(b)&&!z(b)){(c=b.callback||H(a)&&a)&&(g.callback=null);l=b.sort;m=b.page;
a=b.limit;var k=b.threshold;p=!1;b=b.query}if(this.a){k=this.a.index;var w=g.bool||"or",r=g.field;let h=w;let n,B;if(r)z(r)||(r=[r]);else if(z(g)){var u=g;r=[];h=[];for(var q=0;q<g.length;q++)d=g[q],e=d.bool||w,r[q]=d.field,h[q]=e,"not"===e?n=!0:"and"===e&&(B=!0)}else r=this.a.keys;w=r.length;for(q=0;q<w;q++)u&&(g=u[q]),E(g)||(g.page=null,g.limit=0),f[q]=k[r[q]].search(g,0);if(c)return c(G.call(this,b,h,f,l,a,p,!1,m,B,n));if(this.async){const c=this;return new Promise(function(d){Promise.all(f).then(function(e){d(G.call(c,
b,h,e,l,a,p,!1,m,B,n))})})}return G.call(this,b,h,f,l,a,p,!1,m,B,n)}k||(k=this.threshold||0);H(a)?(c=a,a=1E3):a||0===a||(a=1E3);if(!d){if(this.async&&"function"!==typeof importScripts){let b=this;k=new Promise(function(c){setTimeout(function(){c(b.search(g,a,null,!0));b=null})});if(c)k.then(c);else return k;return this}if(c)return c(this.search(g,a,null,!0)),this}if(!b||!E(b))return f;g=b;g=this.encode(g);if(!g.length)return f;c=this.c;c=H(c)?c(g):g.split(W);this.filter&&(c=F(c,this.filter));u=c.length;
d=!0;e=[];const A=x();1<u&&(this.depth?(r=!0,q=c[0],A[q]=1):c.sort(ca));if(!r||(w=this.h)[q]){const a=this.b;for(let b=r?1:0;b<u;b++){const f=c[b];if(f){if(!A[f]){const b=[];let c=!1,g=0;if(q=r?w[q]:this.l){let d;for(let e=0;e<a-k;e++)if(d=q[e][f])b[g++]=d,c=!0}if(c)e[e.length]=1<g?b.concat.apply([],b):b[0];else{d=!1;break}A[f]=1}q=f}}}else d=!1;d&&(f=R(e,a,m,!1));return f};l.prototype.clear=function(){return this.destroy().init()};l.prototype.destroy=function(){this.l=this.h=this.f=null;if(this.a){const b=
this.a.keys;for(let a=0;a<b.length;a++)this.a.index[b[a]].destroy();this.a=this.g=null}return this};const L={icase:function(b){return b.toLowerCase()},simple:function(){const b=[f("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"),"a",f("[\u00e8\u00e9\u00ea\u00eb]"),"e",f("[\u00ec\u00ed\u00ee\u00ef]"),"i",f("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"),"o",f("[\u00f9\u00fa\u00fb\u00fc\u0171]"),"u",f("[\u00fd\u0177\u00ff]"),"y",f("\u00f1"),"n",f("\u00e7"),"c",f("\u00df"),"s",f(" & ")," and ",f("[-/]")," ",f("[^a-z0-9 ]"),
"",f("\\s+")," "];return function(a){a=J(a.toLowerCase(),b);return" "===a?"":a}}(),advanced:function(){const b=[f("ae"),"a",f("ai"),"ei",f("ay"),"ei",f("ey"),"ei",f("oe"),"o",f("ue"),"u",f("ie"),"i",f("sz"),"s",f("zs"),"s",f("sh"),"s",f("ck"),"k",f("cc"),"k",f("dt"),"t",f("ph"),"f",f("pf"),"f",f("ou"),"o",f("uo"),"u"];return function(a,c){if(!a)return a;a=this.simple(a);2<a.length&&(a=J(a,b));c||1<a.length&&(a=P(a));return a}}(),extra:function(){const b=[f("p"),"b",f("z"),"s",f("[cgq]"),"k",f("n"),
"m",f("d"),"t",f("[vw]"),"f",f("[aeiouy]"),""];return function(a){if(!a)return a;a=this.advanced(a,!0);if(1<a.length){a=a.split(" ");for(let c=0;c<a.length;c++){const d=a[c];1<d.length&&(a[c]=d[0]+J(d.substring(1),b))}a=a.join(" ");a=P(a)}return a}}(),balance:function(){const b=[f("[-/]")," ",f("[^a-z0-9 ]"),"",f("\\s+")," "];return function(a){return P(J(a.toLowerCase(),b))}}()};return l}(!1),this);
/*
FlexSearch v0.5.31
FlexSearch v0.6.0
Copyright 2019 Nextapps GmbH

@@ -8,40 +8,43 @@ Author: Thomas Wilkerling

*/
'use strict';function S(h){var m=0;return function(){return m<h.length?{done:!1,value:h[m++]}:{done:!0}}}function T(h){var m="undefined"!=typeof Symbol&&Symbol.iterator&&h[Symbol.iterator];return m?m.call(h):{next:S(h)}}var Z="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(h,m,f){h!=Array.prototype&&h!=Object.prototype&&(h[m]=f.value)};
function ba(h,m){if(m){var f=Z;h=h.split(".");for(var l=0;l<h.length-1;l++){var q=h[l];q in f||(f[q]={});f=f[q]}h=h[h.length-1];l=f[h];m=m(l);m!=l&&null!=m&&aa(f,h,{configurable:!0,writable:!0,value:m})}}
ba("Promise",function(h){function m(d){this.g=0;this.o=void 0;this.b=[];var e=this.j();try{d(e.resolve,e.reject)}catch(t){e.reject(t)}}function f(){this.b=null}function l(d){return d instanceof m?d:new m(function(e){e(d)})}if(h)return h;f.prototype.g=function(d){if(null==this.b){this.b=[];var e=this;this.j(function(){e.o()})}this.b.push(d)};var q=Z.setTimeout;f.prototype.j=function(d){q(d,0)};f.prototype.o=function(){for(;this.b&&this.b.length;){var d=this.b;this.b=[];for(var e=0;e<d.length;++e){var f=
d[e];d[e]=null;try{f()}catch(F){this.l(F)}}}this.b=null};f.prototype.l=function(d){this.j(function(){throw d;})};m.prototype.j=function(){function d(d){return function(m){f||(f=!0,d.call(e,m))}}var e=this,f=!1;return{resolve:d(this.N),reject:d(this.l)}};m.prototype.N=function(d){if(d===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(d instanceof m)this.O(d);else{a:switch(typeof d){case "object":var e=null!=d;break a;case "function":e=!0;break a;default:e=!1}e?this.M(d):this.w(d)}};
m.prototype.M=function(d){var e=void 0;try{e=d.then}catch(t){this.l(t);return}"function"==typeof e?this.P(e,d):this.w(d)};m.prototype.l=function(d){this.B(2,d)};m.prototype.w=function(d){this.B(1,d)};m.prototype.B=function(d,e){if(0!=this.g)throw Error("Cannot settle("+d+", "+e+"): Promise already settled in state"+this.g);this.g=d;this.o=e;this.J()};m.prototype.J=function(){if(null!=this.b){for(var d=0;d<this.b.length;++d)K.g(this.b[d]);this.b=null}};var K=new f;m.prototype.O=function(d){var e=this.j();
d.G(e.resolve,e.reject)};m.prototype.P=function(d,e){var f=this.j();try{d.call(e,f.resolve,f.reject)}catch(F){f.reject(F)}};m.prototype.then=function(d,e){function f(e,d){return"function"==typeof e?function(d){try{h(e(d))}catch(Q){l(Q)}}:d}var h,l,q=new m(function(e,d){h=e;l=d});this.G(f(d,h),f(e,l));return q};m.prototype.catch=function(d){return this.then(void 0,d)};m.prototype.G=function(d,e){function f(){switch(m.g){case 1:d(m.o);break;case 2:e(m.o);break;default:throw Error("Unexpected state: "+
m.g);}}var m=this;null==this.b?K.g(f):this.b.push(f)};m.resolve=l;m.reject=function(d){return new m(function(e,f){f(d)})};m.race=function(d){return new m(function(e,f){for(var m=T(d),h=m.next();!h.done;h=m.next())l(h.value).G(e,f)})};m.all=function(d){var e=T(d),f=e.next();return f.done?l([]):new m(function(d,m){function h(e){return function(f){q[e]=f;t--;0==t&&d(q)}}var q=[],t=0;do q.push(void 0),t++,l(f.value).G(h(q.length-1),m),f=e.next();while(!f.done)})};return m});
(function(h,m,f){var l;(l=f.define)&&l.amd?l([],function(){return m}):(l=f.modules)?l[h.toLowerCase()]=m:"object"===typeof exports?module.exports=m:f[h]=m})("FlexSearch",function fa(h){function f(a,b){var c=b?b.id:a&&a.id;this.id=c||0===c?c:ha++;this.init(a,b);d(this,"index",function(){return this.a?this.a.index[this.a.keys[0]].f:this.f});d(this,"length",function(){return Object.keys(this.index).length})}function l(a,b,c,g){this.F!==this.i&&(this.A=this.A.concat(c),this.F++,g&&this.A.length>=g&&(this.F=
this.i),this.F===this.i&&(this.cache&&this.v.set(b,this.A),this.I&&this.I(this.A)));return this}function q(a,b){for(var c=a.length,g=N(b),k=[],G=0,e=0;G<c;G++){var f=a[G];if(g&&b(f)||!g&&!b[f])k[e++]=f}return k}function K(a,b,c,g,k,G,e,f){b=c=Q(c,G?0:k,e,this.D,b,f);c=this.m;e=b.length;f=Array(e);for(var d=0;d<e;d++)f[d]=c[b[d]];c=f;G&&(c=this.where(G,null,k,c));g&&(N(g)||(H=g.split(":"),1<H.length?g=ea:(H=H[0],g=da)),c.sort(g));this.cache&&this.v.set(a,c);return c}function d(a,b,c){Object.defineProperty(a,
b,{get:c})}function e(a){return new RegExp(a,"g")}function t(a,b){for(var c=0;c<b.length;c+=2)a=a.replace(b[c],b[c+1]);return a}function F(a,b,c,g,k,G,e,f){if(b[c])return b[c];k=k?(f-(e||f/1.5))*G+(e||f/1.5)*k:G;b[c]=k;k>=e&&(a=a[f-(k+.5>>0)],a=a[c]||(a[c]=[]),a[a.length]=g);return k}function P(a,b){if(a)for(var c=Object.keys(a),g=0,k=c.length;g<k;g++){var e=c[g],f=a[e];if(f)for(var d=0,x=f.length;d<x;d++)if(f[d]===b){1===x?delete a[e]:f.splice(d,1);break}else L(f[d])&&P(f[d],b)}}function M(a){for(var b=
"",c="",g="",k=0;k<a.length;k++){var e=a[k];if(e!==c)if(k&&"h"===e){if(g="a"===g||"e"===g||"i"===g||"o"===g||"u"===g||"y"===g,("a"===c||"e"===c||"i"===c||"o"===c||"u"===c||"y"===c)&&g||" "===c)b+=e}else b+=e;g=k===a.length-1?"":a[k+1];c=e}return b}function ca(a,b){a=a.length-b.length;return 0>a?1:a?-1:0}function da(a,b){a=a[H];b=b[H];return a<b?-1:a>b?1:0}function ea(a,b){for(var c=H.length,g=0;g<c;g++)a=a[H[g]],b=b[H[g]];return a<b?-1:a>b?1:0}function Q(a,b,c,g,k,e){c=[];var f=a.length;if(1<f){var d=
C(),G,h=-1,p,n=!0,l=0;if(e){for(G=C();++h<f;)if("not"===k[h]){var D=a[h];var w=D.length;for(p=0;p<w;)G["@"+D[p++]]=1}else var r=h+1;if(!r)return c;h=-1}else var z=I(k)&&k;for(;++h<f;){var A=h===(r||f)-1,B=p=void 0;if(!z||!h)if((D=z||k&&k[h])&&"and"!==D)if("or"===D)B=!0;else continue;else p=!0;D=a[h];if(w=D.length){if(n)if(q){var v=q.length;for(p=0;p<v;)d["@"+q[p++]]=1;var q=null;n=!1}else{q=D;continue}var t=!1;p=0;for(v=[];p<w;){var u=D[p++];var y="@"+u,E=d[y];if(E&&(!e||!G[y]))if(B||E===h){if(A){if(c[l++]=
u,b&&l===b)return c}else d[y]=h+1;t=!0}else g&&(y=v[E]||(v[E]=[]),y[y.length]=u)}if(!t&&!g)break}else if(p&&!g)return D}if(q)if(e)for(a=q.length,p=0;p<a;)k=q[p++],G["@"+k]||(c[l++]=k);else c=q;if(g&&(l=c.length,(h=v.length)&&(!b||l<b)))for(;h--;)if(u=v[h])for(p=0,w=u.length;p<w;p++)if(c[l++]=u[p],b&&l===b)return c}else!f||k&&"not"===k[0]||(c=a[0],b&&c.length>b&&(c=c.slice(0,b)));return c}function I(a){return"string"===typeof a}function E(a){return a.constructor===Array}function N(a){return"function"===
typeof a}function L(a){return"object"===typeof a}function y(a){return"undefined"===typeof a}function U(a){for(var b=Array(a),c=0;c<a;c++)b[c]=C();return b}function C(){return Object.create(null)}function ia(){var a,b;self.onmessage=function(c){if(c=c.data)if(c.search){var g=b.search(c.content,c.threshold?{limit:c.limit,threshold:c.threshold,where:c.where}:c.limit);self.postMessage({id:a,content:c.content,limit:c.limit,result:g})}else c.add?b.add(c.id,c.content):c.update?b.update(c.id,c.content):c.remove?
b.remove(c.id):c.clear?b.clear():c.info?(c=b.info(),c.worker=a,console.log(c)):c.register&&(a=c.id,c.options.cache=!1,c.options.async=!1,c.options.worker=!1,b=(new Function(c.register.substring(c.register.indexOf("{")+1,c.register.lastIndexOf("}"))))(),b=new b(c.options))}}function ja(a,b,c,g){a=h("flexsearch","id"+a,ia,function(a){(a=a.data)&&a.result&&g(a.id,a.content,a.result,a.limit,a.where,a.cursor,a.suggest)},b);var k=fa.toString();c.id=b;a.postMessage({register:k,options:c,id:b});return a}
var u={encode:"icase",h:"forward",D:!1,cache:!1,async:!1,i:!1,H:!1,a:!1,L:!1,c:9,threshold:0,depth:0},V={memory:{encode:"extra",h:"strict",threshold:0,c:1},speed:{encode:"icase",h:"strict",threshold:1,c:3,depth:2},match:{encode:"extra",h:"full",threshold:1,c:3},score:{encode:"extra",h:"strict",threshold:1,c:9,depth:4},balance:{encode:"balance",h:"strict",threshold:0,c:3,depth:3},fast:{encode:"icase",h:"strict",threshold:8,c:9,depth:1}},O=[],ha=0,W=/\W+/,X={},Y={};f.create=function(a){return new f(a)};
f.registerMatcher=function(a){for(var b in a)a.hasOwnProperty(b)&&O.push(e(b),a[b]);return this};f.registerEncoder=function(a,b){J[a]=b.bind(J);return this};f.registerLanguage=function(a,b){X[a]=b.filter;Y[a]=b.stemmer;return this};f.encode=function(a,b){return J[a](b)};f.prototype.init=function(a,b){this.g=[];if(b){var c=b.preset;a=b}else a||(a=u),c=a.preset;b={};I(a)?((b=V[a])||console.warn("Preset not found: "+a),a={}):c&&((b=V[c])||console.warn("Preset not found: "+c));if(c=a.worker)if("undefined"===
typeof Worker)a.worker=!1,this.b=null;else{var g=parseInt(c,10)||4;this.w=-1;this.F=0;this.A=[];this.I=null;this.b=Array(g);for(var k=0;k<g;k++)this.b[k]=ja(this.id,k,a,l.bind(this))}this.h=a.tokenize||b.h||this.h||u.h;this.H=a.rtl||this.H||u.H;this.async="undefined"===typeof Promise||y(c=a.async)?this.async||u.async:c;this.i=y(c=a.worker)?this.i||u.i:c;this.threshold=y(c=a.threshold)?b.threshold||this.threshold||u.threshold:c;this.c=y(c=a.resolution)?c=b.c||this.c||u.c:c;c<=this.threshold&&(this.c=
this.threshold+1);this.depth=y(c=a.depth)?b.depth||this.depth||u.depth:c;this.L=y(c=a.paging)?this.L||u.L:c;this.D=y(c=a.suggest)?this.D||u.D:c;this.j=(c=y(c=a.encode)?b.encode||u.encode:c)&&J[c]&&J[c].bind(J)||(N(c)?c:this.j||!1);(c=a.matcher)&&this.addMatcher(c);if(c=a.filter){I(c)&&(c=X[c]);if(E(c)){b=this.j;g=C();for(k=0;k<c.length;k++){var d=b?b(c[k]):c[k];g[d]=1}c=g}this.filter=c}if(c=a.stemmer){b=I(c)?Y[c]:c;g=this.j;k=[];for(var h in b)b.hasOwnProperty(h)&&(d=g?g(h):h,k.push(e(d+"($|\\W)"),
g?g(b[h]):b[h]));this.stemmer=k}this.a=k=(c=a.doc)?c:this.a||u.a;this.u=U(this.c-(this.threshold||0));this.s=C();this.f=C();if(k){this.m=C();a.doc=null;h=k.index={};b=k.keys=[];g=k.field;d=k.tag;E(k.id)||(k.id=k.id.split(":"));if(d){this.B=C();var R=C();if(g)if(I(g))R[g]=a;else if(E(g))for(var x=0;x<g.length;x++)R[g[x]]=a;else L(g)&&(R=g);E(d)||(k.tag=d=[d]);for(g=0;g<d.length;g++)this.B[d[g]]=C();this.J=d;g=R}if(g){if(!E(g))if(L(g)){var q=g;k.field=g=Object.keys(g)}else k.field=g=[g];for(k=0;k<g.length;k++)d=
g[k],E(d)||(q&&(a=q[d]),b[k]=d,g[k]=d.split(":")),h[d]=new f(a),h[d].m=this.m}}this.o=!0;this.v=(this.cache=c=y(c=a.cache)?this.cache||u.cache:c)?new ka(c):!1;return this};f.prototype.encode=function(a){a&&O.length&&(a=t(a,O));a&&this.g.length&&(a=t(a,this.g));a&&this.j&&(a=this.j(a));a&&this.stemmer&&(a=t(a,this.stemmer));return a};f.prototype.addMatcher=function(a){var b=this.g,c;for(c in a)a.hasOwnProperty(c)&&b.push(e(c),a[c]);return this};f.prototype.add=function(a,b,c,g,k){if(this.a&&L(a))return this.l("add",
a,b);if(b&&I(b)&&(a||0===a)){var e="@"+a;if(this.f[e]&&!g)return this.update(a,b);if(this.i)return++this.w>=this.b.length&&(this.w=0),this.b[this.w].postMessage({add:!0,id:a,content:b}),this.f[e]=""+this.w,c&&c(),this;if(!k){if(this.async&&"function"!==typeof importScripts){var d=this;e=new Promise(function(c){setTimeout(function(){d.add(a,b,null,g,!0);d=null;c()})});if(c)e.then(c);else return e;return this}if(c)return this.add(a,b,null,g,!0),c(),this}b=this.encode(b);if(!b.length)return this;c=this.h;
k=N(c)?c(b):b.split(W);this.filter&&(k=q(k,this.filter));var f=C();f._ctx=C();for(var h=k.length,l=this.threshold,p=this.depth,n=this.c,u=this.u,D=this.H,w=0;w<h;w++){var r=k[w];if(r){var z=r.length,A=(D?w+1:h-w)/h,B="";switch(c){case "reverse":case "both":for(var v=z;--v;)B=r[v]+B,F(u,f,B,a,D?1:(z-v)/z,A,l,n-1);B="";case "forward":for(v=0;v<z;v++)B+=r[v],F(u,f,B,a,D?(v+1)/z:1,A,l,n-1);break;case "full":for(v=0;v<z;v++)for(var y=(D?v+1:z-v)/z,t=z;t>v;t--)B=r.substring(v,t),F(u,f,B,a,y,A,l,n-1);break;
default:if(z=F(u,f,r,a,1,A,l,n-1),p&&1<h&&z>=l)for(z=f._ctx[r]||(f._ctx[r]=C()),r=this.s[r]||(this.s[r]=U(n-(l||0))),A=w-p,B=w+p+1,0>A&&(A=0),B>h&&(B=h);A<B;A++)A!==w&&F(r,z,k[A],a,0,n-(A<w?w-A:A-w),l,n-1)}}}this.f[e]=1;this.o=!1}return this};f.prototype.l=function(a,b,c){if(E(b))for(var g=0,e=b.length;g<e;g++){if(g===e-1)return this.l(a,b[g],c);this.l(a,b[g])}else{g=this.a.index;e=this.a.keys;for(var d=this.a.tag,f=this.a.id,h,x,l,p,n=0;n<f.length;n++)h=(h||b)[f[n]];if(d){for(f=0;f<d.length;f++){l=
d[f];x=l.split(":");for(n=0;n<x.length;n++)p=(p||b)[x[n]];p="@"+p}x=this.B[l];x=x[p]||(x[p]=[])}if("remove"===a)for(delete this.m[h],f=0,d=e.length;f<d;f++){if(f===d-1)return g[e[f]].remove(h,c);g[e[f]].remove(h)}f=this.a.field;x&&(x[x.length]=b);d=0;for(l=f.length;d<l;d++){x=f[d];p=void 0;for(n=0;n<x.length;n++)p=(p||b)[x[n]];this.m[h]=b;x=g[e[d]];n="add"===a?x.add:x.update;if(d===l-1)return n.call(x,h,p,c);n.call(x,h,p)}}};f.prototype.update=function(a,b,c){if(this.a&&L(a))return this.l("update",
a,b);this.f["@"+a]&&I(b)&&(this.remove(a),this.add(a,b,c,!0));return this};f.prototype.remove=function(a,b,c){if(this.a&&L(a))return this.l("remove",a,b);var g="@"+a;if(this.f[g]){if(this.i)return this.b[this.f[g]].postMessage({remove:!0,id:a}),delete this.f[g],b&&b(),this;if(!c){if(this.async&&"function"!==typeof importScripts){var e=this;g=new Promise(function(b){setTimeout(function(){e.remove(a,null,!0);e=null;b()})});if(b)g.then(b);else return g;return this}if(b)return this.remove(a,null,!0),
b(),this}for(b=0;b<this.c-(this.threshold||0);b++)P(this.u[b],a);this.depth&&P(this.s,a);delete this.f[g];this.o=!1}return this};var H;f.prototype.search=function(a,b,c,g){if(L(b)){if(E(b))for(var e=0;e<b.length;e++)b[e].query=a;else b.query=a;a=b;b=0}var f=[],d=a;if(L(a)&&!E(a)){(c=a.callback||b)&&(d.callback=null);var h=a.sort;b=a.limit;var l=a.threshold;a=a.query}if(this.a){l=this.a.index;var u=d.where,p=d.bool||"or",n=d.field,t=p,D;if(n)E(n)||(n=[n]);else if(E(d)){var w=d;n=[];t=[];for(var r=
0;r<d.length;r++)g=d[r],e=g.bool||p,n[r]=g.field,t[r]=e,"not"===e&&(D=!0)}else n=this.a.keys;p=n.length;for(r=0;r<p;r++)w&&(d=w[r]),f[r]=l[n[r]].search(d);if(c)return c(K.call(this,a,t,f,h,b,u,void 0,D));if(this.async){var z=this;return new Promise(function(c){Promise.all(f).then(function(g){c(K.call(z,a,t,g,h,b,u,void 0,D))})})}return K.call(this,a,t,f,h,b,u,void 0,D)}l||(l=this.threshold||0);N(b)?(c=b,b=1E3):b||0===b||(b=1E3);if(this.i)for(this.I=c,this.F=0,this.A=[],n=0;n<this.i;n++)this.b[n].postMessage({search:!0,
limit:b,cursor:void 0,threshold:l,content:a});else{if(!g){if(this.async&&"function"!==typeof importScripts){var A=this;l=new Promise(function(a){setTimeout(function(){a(A.search(d,b,null,!0));A=null})});if(c)l.then(c);else return l;return this}if(c)return c(this.search(d,b,null,!0)),this}if(!a||!I(a))return f;d=a;if(this.cache)if(this.o){if(c=this.v.get(a))return c}else this.v.clear(),this.o=!0;d=this.encode(d);if(!d.length)return f;c=this.h;c=N(c)?c(d):d.split(W);this.filter&&(c=q(c,this.filter));
w=c.length;g=!0;e=[];var B=C();1<w&&(this.depth?(n=!0,r=c[0],B[r]=1):c.sort(ca));if(!n||(p=this.s)[r])for(var v=this.c,y=n?1:0;y<w;y++){var F=c[y];if(F){if(!B[F]){var H=[],J=!1,O=0;if(r=n?p[r]:this.u)for(var P=void 0,M=0;M<v-l;M++)if(P=r[M][F])H[O++]=P,J=!0;if(J)e[e.length]=1<O?H.concat.apply([],H):H[0];else if(!this.D){g=!1;break}B[F]=1}r=F}}else g=!1;this.a||(g&&(f=Q(e,b,void 0,this.D)),this.cache&&this.v.set(a,f));return f}};f.prototype.find=function(a,b){return this.where(a,b,1)[0]||null};f.prototype.where=
function(a,b,c,g){var d=g||this.m,e=[],f=0;if("number"===typeof a)return[d[a]];if(I(a)){if(y(b))return[d[a]];if("id"===a)return[d[b]];var h=[a];var l=1;var q=[a.split(":")];var p=!0}else{if(N(a)){b=g||Object.keys(d);c=b.length;for(h=0;h<c;h++)l=g?g[h]:d[b[h]],a(l)&&(e[f++]=l);return e}c||(c=b);h=Object.keys(a);l=h.length;p=!1;if(1===l&&"id"===h[0])return[d[a.id]];if((q=this.J)&&!g)for(var n=0;n<q.length;n++){var u=q[n],t=a[u];if(!y(t)){g=this.B[u]["@"+t];if(0===--l)return g;h.splice(h.indexOf(u),
1);delete a[u];break}}q=Array(l);for(n=0;n<l;n++)q[n]=h[n].split(":")}n=g||Object.keys(d);u=n.length;for(t=0;t<u;t++){for(var w=g?g[t]:d[n[t]],r=!0,z=0;z<l;z++){p||(b=a[h[z]]);var A=q[z],B=A.length,v=w;if(1<B)for(var C=0;C<B;C++)v=v[A[C]];else v=v[A[0]];if(v!==b){r=!1;break}}if(r&&(e[f++]=w,c&&f===c))break}return e};f.prototype.info=function(){if(this.i)for(var a=0;a<this.i;a++)this.b[a].postMessage({info:!0,id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&this.cache.C?this.cache.C.length:
!1,matcher:O.length+(this.g?this.g.length:0),worker:this.i,threshold:this.threshold,depth:this.depth,resolution:this.c,contextual:this.depth&&"strict"===this.h}};f.prototype.clear=function(){return this.destroy().init()};f.prototype.destroy=function(){this.cache&&(this.v.clear(),this.v=null);this.u=this.s=this.f=null;if(this.a){for(var a=this.a.keys,b=0;b<a.length;b++)this.a.index[a[b]].destroy();this.a=this.m=null}return this};f.prototype.export=function(){if(this.a){for(var a=this.a.keys,b=Array(a.length+
1),c=0;c<a.length;c++){var d=this.a.index[a[c]];b[c]=[d.u,d.s,d.f]}b[c]=this.m;return JSON.stringify(b)}return JSON.stringify([this.u,this.s,this.f])};f.prototype.import=function(a){a=JSON.parse(a);if(this.a){for(var b=this.a.keys,c=b.length,d=0;d<c;d++){var e=this.a.index[b[d]];e.u=a[d][0];e.s=a[d][1];e.f=a[d][2];e.m=a[c]}this.m=a[c]}else this.u=a[0],this.s=a[1],this.f=a[2]};var J={icase:function(a){return a.toLowerCase()},simple:function(){var a=[e("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"),"a",
e("[\u00e8\u00e9\u00ea\u00eb]"),"e",e("[\u00ec\u00ed\u00ee\u00ef]"),"i",e("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"),"o",e("[\u00f9\u00fa\u00fb\u00fc\u0171]"),"u",e("[\u00fd\u0177\u00ff]"),"y",e("\u00f1"),"n",e("\u00e7"),"c",e("\u00df"),"s",e(" & ")," and ",e("[-/]")," ",e("[^a-z0-9 ]"),"",e("\\s+")," "];return function(b){b=t(b.toLowerCase(),a);return" "===b?"":b}}(),advanced:function(){var a=[e("ae"),"a",e("ai"),"ei",e("ay"),"ei",e("ey"),"ei",e("oe"),"o",e("ue"),"u",e("ie"),"i",e("sz"),"s",e("zs"),
"s",e("sh"),"s",e("ck"),"k",e("cc"),"k",e("dt"),"t",e("ph"),"f",e("pf"),"f",e("ou"),"o",e("uo"),"u"];return function(b,c){if(!b)return b;b=this.simple(b);2<b.length&&(b=t(b,a));c||1<b.length&&(b=M(b));return b}}(),extra:function(){var a=[e("p"),"b",e("z"),"s",e("[cgq]"),"k",e("n"),"m",e("d"),"t",e("[vw]"),"f",e("[aeiouy]"),""];return function(b){if(!b)return b;b=this.advanced(b,!0);if(1<b.length){b=b.split(" ");for(var c=0;c<b.length;c++){var d=b[c];1<d.length&&(b[c]=d[0]+t(d.substring(1),a))}b=b.join(" ");
b=M(b)}return b}}(),balance:function(){var a=[e("[-/]")," ",e("[^a-z0-9 ]"),"",e("\\s+")," "];return function(b){return M(t(b.toLowerCase(),a))}}()},ka=function(){function a(a){this.clear();this.K=!0!==a&&a}a.prototype.clear=function(){this.cache=C();this.count=C();this.index=C();this.C=[]};a.prototype.set=function(a,c){if(this.K&&y(this.cache[a])){var b=this.C.length;if(b===this.K){b--;var d=this.C[b];delete this.cache[d];delete this.count[d];delete this.index[d]}this.index[a]=b;this.C[b]=a;this.count[a]=
-1;this.cache[a]=c;this.get(a)}else this.cache[a]=c};a.prototype.get=function(a){var c=this.cache[a];if(this.K&&c){var b=++this.count[a],d=this.index,e=d[a];if(0<e){for(var f=this.C,h=e;this.count[f[--e]]<=b&&-1!==e;);e++;if(e!==h){for(b=h;b>e;b--)h=f[b-1],f[b]=h,d[h]=b;f[e]=a;d[a]=e}}}return c};return a}();return f}(function(){var h={},m="undefined"!==typeof Blob&&"undefined"!==typeof URL&&URL.createObjectURL;return function(f,l,q,K,d){q=m?URL.createObjectURL(new Blob(["("+q.toString()+")()"],{type:"text/javascript"})):
f+".es5.js";f+="-"+l;h[f]||(h[f]=[]);h[f][d]=new Worker(q);h[f][d].onmessage=K;console.log("Register Worker: "+f+"@"+d);return h[f][d]}}()),this);
'use strict';function P(d){var m=0;return function(){return m<d.length?{done:!1,value:d[m++]}:{done:!0}}}var W="function"==typeof Object.defineProperties?Object.defineProperty:function(d,m,f){d!=Array.prototype&&d!=Object.prototype&&(d[m]=f.value)},Y="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function aa(){aa=function(){};Y.Symbol||(Y.Symbol=ba)}var ba=function(){var d=0;return function(m){return"jscomp_symbol_"+(m||"")+d++}}();
function Z(){aa();var d=Y.Symbol.iterator;d||(d=Y.Symbol.iterator=Y.Symbol("iterator"));"function"!=typeof Array.prototype[d]&&W(Array.prototype,d,{configurable:!0,writable:!0,value:function(){return ca(P(this))}});Z=function(){}}function ca(d){Z();d={next:d};d[Y.Symbol.iterator]=function(){return this};return d}
function ka(d,m){Z();d instanceof String&&(d+="");var f=0,l={next:function(){if(f<d.length){var p=f++;return{value:m(p,d[p]),done:!1}}l.next=function(){return{done:!0,value:void 0}};return l.next()}};l[Symbol.iterator]=function(){return l};return l}function la(d,m){if(m){var f=Y;d=d.split(".");for(var l=0;l<d.length-1;l++){var p=d[l];p in f||(f[p]={});f=f[p]}d=d[d.length-1];l=f[d];m=m(l);m!=l&&null!=m&&W(f,d,{configurable:!0,writable:!0,value:m})}}
la("Array.prototype.keys",function(d){return d?d:function(){return ka(this,function(d){return d})}});function ma(d){var m="undefined"!=typeof Symbol&&Symbol.iterator&&d[Symbol.iterator];return m?m.call(d):{next:P(d)}}
la("Promise",function(d){function m(h){this.g=0;this.o=void 0;this.b=[];var e=this.j();try{h(e.resolve,e.reject)}catch(x){e.reject(x)}}function f(){this.b=null}function l(h){return h instanceof m?h:new m(function(e){e(h)})}if(d)return d;f.prototype.g=function(h){if(null==this.b){this.b=[];var e=this;this.j(function(){e.o()})}this.b.push(h)};var p=Y.setTimeout;f.prototype.j=function(h){p(h,0)};f.prototype.o=function(){for(;this.b&&this.b.length;){var h=this.b;this.b=[];for(var e=0;e<h.length;++e){var d=
h[e];h[e]=null;try{d()}catch(D){this.l(D)}}}this.b=null};f.prototype.l=function(h){this.j(function(){throw h;})};m.prototype.j=function(){function h(h){return function(f){d||(d=!0,h.call(e,f))}}var e=this,d=!1;return{resolve:h(this.L),reject:h(this.l)}};m.prototype.L=function(h){if(h===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof m)this.M(h);else{a:switch(typeof h){case "object":var e=null!=h;break a;case "function":e=!0;break a;default:e=!1}e?this.K(h):this.w(h)}};
m.prototype.K=function(h){var e=void 0;try{e=h.then}catch(x){this.l(x);return}"function"==typeof e?this.N(e,h):this.w(h)};m.prototype.l=function(h){this.B(2,h)};m.prototype.w=function(h){this.B(1,h)};m.prototype.B=function(h,e){if(0!=this.g)throw Error("Cannot settle("+h+", "+e+"): Promise already settled in state"+this.g);this.g=h;this.o=e;this.I()};m.prototype.I=function(){if(null!=this.b){for(var h=0;h<this.b.length;++h)Q.g(this.b[h]);this.b=null}};var Q=new f;m.prototype.M=function(h){var e=this.j();
h.F(e.resolve,e.reject)};m.prototype.N=function(h,e){var d=this.j();try{h.call(e,d.resolve,d.reject)}catch(D){d.reject(D)}};m.prototype.then=function(h,e){function d(e,d){return"function"==typeof e?function(d){try{f(e(d))}catch(M){l(M)}}:d}var f,l,p=new m(function(e,d){f=e;l=d});this.F(d(h,f),d(e,l));return p};m.prototype.catch=function(d){return this.then(void 0,d)};m.prototype.F=function(d,e){function h(){switch(f.g){case 1:d(f.o);break;case 2:e(f.o);break;default:throw Error("Unexpected state: "+
f.g);}}var f=this;null==this.b?Q.g(h):this.b.push(h)};m.resolve=l;m.reject=function(d){return new m(function(e,f){f(d)})};m.race=function(d){return new m(function(e,f){for(var h=ma(d),m=h.next();!m.done;m=h.next())l(m.value).F(e,f)})};m.all=function(d){var e=ma(d),f=e.next();return f.done?l([]):new m(function(d,h){function m(e){return function(f){p[e]=f;x--;0==x&&d(p)}}var p=[],x=0;do p.push(void 0),x++,l(f.value).F(m(p.length-1),h),f=e.next();while(!f.done)})};return m});
(function(d,m,f){var l;(l=f.define)&&l.amd?l([],function(){return m}):(l=f.modules)?l[d.toLowerCase()]=m:"object"===typeof exports?module.exports=m:f[d]=m})("FlexSearch",function qa(d){function f(a,b){var c=b?b.id:a&&a.id;this.id=c||0===c?c:ra++;this.init(a,b);h(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].f):Object.keys(this.f)});h(this,"length",function(){return this.index.length})}function l(a,b,c,g){this.D!==this.i&&(this.A=this.A.concat(c),this.D++,g&&this.A.length>=
g&&(this.D=this.i),this.D===this.i&&(this.cache&&this.v.set(b,this.A),this.H&&this.H(this.A)));return this}function p(a,b){for(var c=a.length,g=R(b),k=[],u=0,e=0;u<c;u++){var d=a[u];if(g&&b(d)||!g&&!b[d])k[e++]=d}return k}function Q(a,b,c,g,k,u,e,d,f,h){c=da(c,e?0:k,d,u,b,f,h);if(d){d=c.page;var U=c.next;c=c.result}if(e)b=this.where(e,null,k,c);else{b=c;c=this.m;k=b.length;u=Array(k);for(e=0;e<k;e++)u[e]=c[b[e]];b=u}c=b;g&&(R(g)||(F=g.split(":"),1<F.length?g=pa:(F=F[0],g=oa)),c.sort(g));c=M(d,U,c);
this.cache&&this.v.set(a,c);return c}function h(a,b,c){Object.defineProperty(a,b,{get:c})}function e(a){return new RegExp(a,"g")}function x(a,b){for(var c=0;c<b.length;c+=2)a=a.replace(b[c],b[c+1]);return a}function D(a,b,c,g,k,u,e,d){if(b[c])return b[c];k=k?(d-(e||d/1.5))*u+(e||d/1.5)*k:u;b[c]=k;k>=e&&(a=a[d-(k+.5>>0)],a=a[c]||(a[c]=[]),a[a.length]=g);return k}function S(a,b){if(a)for(var c=Object.keys(a),g=0,k=c.length;g<k;g++){var u=c[g],e=a[u];if(e)for(var d=0,f=e.length;d<f;d++)if(e[d]===b){1===
f?delete a[u]:e.splice(d,1);break}else J(e[d])&&S(e[d],b)}}function X(a){for(var b="",c="",g="",k=0;k<a.length;k++){var u=a[k];if(u!==c)if(k&&"h"===u){if(g="a"===g||"e"===g||"i"===g||"o"===g||"u"===g||"y"===g,("a"===c||"e"===c||"i"===c||"o"===c||"u"===c||"y"===c)&&g||" "===c)b+=u}else b+=u;g=k===a.length-1?"":a[k+1];c=u}return b}function na(a,b){a=a.length-b.length;return 0>a?1:a?-1:0}function oa(a,b){a=a[F];b=b[F];return a<b?-1:a>b?1:0}function pa(a,b){for(var c=F.length,g=0;g<c;g++)a=a[F[g]],b=
b[F[g]];return a<b?-1:a>b?1:0}function M(a,b,c){return a?{page:a,next:b?""+b:null,result:c}:c}function da(a,b,c,g,k,u,e){u=[];var d=a.length;if(!0===c){c="0";var f=""}else f=c&&c.split(":");if(1<d){var h=G(),U=[],q,t=-1,n,l=!0,v=0;if(f)if(2===f.length){var y=f;f=!1}else f=parseInt(f[0],10);if(e){for(q=G();++t<d;)if("not"===k[t]){var w=a[t];var r=w.length;for(n=0;n<r;)q["@"+w[n++]]=1}else var z=t+1;if(!z)return M(c,J,u);t=-1}else var p=N(k)&&k;for(;++t<d;){var x=t===(z||d)-1,E=void 0,I=void 0;if(!p||
!t)if((n=p||k&&k[t])&&"and"!==n)if("or"===n)I=!0;else continue;else E=!0;w=a[t];if(r=w.length){if(l)if(L){var K=L.length;for(n=0;n<K;)h["@"+L[n++]]=1;var L=null;l=!1}else{L=w;continue}var H=!1;for(n=0;n<r;){K=w[n++];var D="@"+K,F=I?t:h[D];if(F&&(!e||!q[D]))if(F===t){if(x){if(!f||--f<v)if(u[v++]=K,b&&v===b)return M(c,v,u)}else h[D]=t+1;H=!0}else g&&(D=U[F]||(U[F]=[]),D[D.length]=K)}if(E&&!H&&!g)break}else if(E&&!g)return M(c,J,w)}if(L)if(a=L.length,e)for(n=f?parseInt(f,10):0;n<a;){if(k=L[n++],!q["@"+
k]&&(!f||--f<v)&&(u[v++]=k,b&&v===b))return M(c,n,u)}else u=L;if(g)for(v=u.length,y?(t=parseInt(y[0],10)+1,n=parseInt(y[1],10)):(t=U.length,n=0);t--;)if(K=U[t])for(r=K.length;n<r;n++)if(g=K[n],!e||!q["@"+g])if(u[v++]=g,b&&v===b)return M(c,t+":"+n,u)}else d&&(k&&"not"===k[0]||(u=a[0]));if(b){e=c?parseInt(c,10):0;var J=e+b;J<u.length?u=u.slice(e,J):e&&(u=u.slice(e))}return M(c,J,u)}function N(a){return"string"===typeof a}function E(a){return a.constructor===Array}function R(a){return"function"===typeof a}
function J(a){return"object"===typeof a}function H(a){return"undefined"===typeof a}function ea(a){for(var b=Array(a),c=0;c<a;c++)b[c]=G();return b}function G(){return Object.create(null)}function sa(){var a,b;self.onmessage=function(c){if(c=c.data)if(c.search){var g=b.search(c.content,c.threshold?{limit:c.limit,threshold:c.threshold,where:c.where}:c.limit);self.postMessage({id:a,content:c.content,limit:c.limit,result:g})}else c.add?b.add(c.id,c.content):c.update?b.update(c.id,c.content):c.remove?
b.remove(c.id):c.clear?b.clear():c.info?(c=b.info(),c.worker=a,console.log(c)):c.register&&(a=c.id,c.options.cache=!1,c.options.async=!1,c.options.worker=!1,b=(new Function(c.register.substring(c.register.indexOf("{")+1,c.register.lastIndexOf("}"))))(),b=new b(c.options))}}function ta(a,b,c,g){a=d("flexsearch","id"+a,sa,function(a){(a=a.data)&&a.result&&g(a.id,a.content,a.result,a.limit,a.where,a.cursor,a.suggest)},b);var k=qa.toString();c.id=b;a.postMessage({register:k,options:c,id:b});return a}
var I={encode:"icase",h:"forward",cache:!1,async:!1,i:!1,G:!1,a:!1,c:9,threshold:0,depth:0},fa={memory:{encode:"extra",h:"strict",threshold:0,c:1},speed:{encode:"icase",h:"strict",threshold:1,c:3,depth:2},match:{encode:"extra",h:"full",threshold:1,c:3},score:{encode:"extra",h:"strict",threshold:1,c:9,depth:4},balance:{encode:"balance",h:"strict",threshold:0,c:3,depth:3},fast:{encode:"icase",h:"strict",threshold:8,c:9,depth:1}},T=[],ra=0,ha=/\W+/,ia={},ja={};f.create=function(a){return new f(a)};f.registerMatcher=
function(a){for(var b in a)a.hasOwnProperty(b)&&T.push(e(b),a[b]);return this};f.registerEncoder=function(a,b){O[a]=b.bind(O);return this};f.registerLanguage=function(a,b){ia[a]=b.filter;ja[a]=b.stemmer;return this};f.encode=function(a,b){return O[a](b)};f.prototype.init=function(a,b){this.g=[];if(b){var c=b.preset;a=b}else a||(a=I),c=a.preset;b={};N(a)?((b=fa[a])||console.warn("Preset not found: "+a),a={}):c&&((b=fa[c])||console.warn("Preset not found: "+c));if(c=a.worker)if("undefined"===typeof Worker)a.worker=
!1,this.b=null;else{var g=parseInt(c,10)||4;this.w=-1;this.D=0;this.A=[];this.H=null;this.b=Array(g);for(var k=0;k<g;k++)this.b[k]=ta(this.id,k,a,l.bind(this))}this.h=a.tokenize||b.h||this.h||I.h;this.G=a.rtl||this.G||I.G;this.async="undefined"===typeof Promise||H(c=a.async)?this.async||I.async:c;this.i=H(c=a.worker)?this.i||I.i:c;this.threshold=H(c=a.threshold)?b.threshold||this.threshold||I.threshold:c;this.c=H(c=a.resolution)?c=b.c||this.c||I.c:c;c<=this.threshold&&(this.c=this.threshold+1);this.depth=
"strict"!==this.h||H(c=a.depth)?b.depth||this.depth||I.depth:c;this.j=(c=H(c=a.encode)?b.encode||I.encode:c)&&O[c]&&O[c].bind(O)||(R(c)?c:this.j||!1);(c=a.matcher)&&this.addMatcher(c);if(c=a.filter){N(c)&&(c=ia[c]);if(E(c)){b=this.j;g=G();for(k=0;k<c.length;k++){var d=b?b(c[k]):c[k];g[d]=1}c=g}this.filter=c}if(c=a.stemmer){b=N(c)?ja[c]:c;g=this.j;k=[];for(var h in b)b.hasOwnProperty(h)&&(d=g?g(h):h,k.push(e(d+"($|\\W)"),g?g(b[h]):b[h]));this.stemmer=k}this.a=k=(c=a.doc)?c:this.a||I.a;this.u=ea(this.c-
(this.threshold||0));this.s=G();this.f=G();if(k){this.m=G();a.doc=null;h=k.index={};b=k.keys=[];g=k.field;d=k.tag;E(k.id)||(k.id=k.id.split(":"));if(d){this.B=G();var V=G();if(g)if(N(g))V[g]=a;else if(E(g))for(var A=0;A<g.length;A++)V[g[A]]=a;else J(g)&&(V=g);E(d)||(k.tag=d=[d]);for(g=0;g<d.length;g++)this.B[d[g]]=G();this.I=d;g=V}if(g){if(!E(g))if(J(g)){var B=g;k.field=g=Object.keys(g)}else k.field=g=[g];for(k=0;k<g.length;k++)d=g[k],E(d)||(B&&(a=B[d]),b[k]=d,g[k]=d.split(":")),h[d]=new f(a),h[d].m=
this.m}}this.o=!0;this.v=(this.cache=c=H(c=a.cache)?this.cache||I.cache:c)?new ua(c):!1;return this};f.prototype.encode=function(a){a&&T.length&&(a=x(a,T));a&&this.g.length&&(a=x(a,this.g));a&&this.j&&(a=this.j(a));a&&this.stemmer&&(a=x(a,this.stemmer));return a};f.prototype.addMatcher=function(a){var b=this.g,c;for(c in a)a.hasOwnProperty(c)&&b.push(e(c),a[c]);return this};f.prototype.add=function(a,b,c,g,d){if(this.a&&J(a))return this.l("add",a,b);if(b&&N(b)&&(a||0===a)){var e="@"+a;if(this.f[e]&&
!g)return this.update(a,b);if(this.i)return++this.w>=this.b.length&&(this.w=0),this.b[this.w].postMessage({add:!0,id:a,content:b}),this.f[e]=""+this.w,c&&c(),this;if(!d){if(this.async&&"function"!==typeof importScripts){var k=this;e=new Promise(function(c){setTimeout(function(){k.add(a,b,null,g,!0);k=null;c()})});if(c)e.then(c);else return e;return this}if(c)return this.add(a,b,null,g,!0),c(),this}b=this.encode(b);if(!b.length)return this;c=this.h;d=R(c)?c(b):b.split(ha);this.filter&&(d=p(d,this.filter));
var f=G();f._ctx=G();for(var h=d.length,B=this.threshold,l=this.depth,q=this.c,t=this.u,n=this.G,C=0;C<h;C++){var v=d[C];if(v){var y=v.length,w=(n?C+1:h-C)/h,r="";switch(c){case "reverse":case "both":for(var z=y;--z;)r=v[z]+r,D(t,f,r,a,n?1:(y-z)/y,w,B,q-1);r="";case "forward":for(z=0;z<y;z++)r+=v[z],D(t,f,r,a,n?(z+1)/y:1,w,B,q-1);break;case "full":for(z=0;z<y;z++)for(var x=(n?z+1:y-z)/y,E=y;E>z;E--)r=v.substring(z,E),D(t,f,r,a,x,w,B,q-1);break;default:if(y=D(t,f,v,a,1,w,B,q-1),l&&1<h&&y>=B)for(y=
f._ctx[v]||(f._ctx[v]=G()),v=this.s[v]||(this.s[v]=ea(q-(B||0))),w=C-l,r=C+l+1,0>w&&(w=0),r>h&&(r=h);w<r;w++)w!==C&&D(v,y,d[w],a,0,q-(w<C?C-w:w-C),B,q-1)}}}this.f[e]=1;this.o=!1}return this};f.prototype.l=function(a,b,c){if(E(b))for(var g=0,d=b.length;g<d;g++){if(g===d-1)return this.l(a,b[g],c);this.l(a,b[g])}else{g=this.a.index;d=this.a.keys;for(var e=this.a.tag,f=this.a.id,h,A,l,p,q=0;q<f.length;q++)h=(h||b)[f[q]];if(e){for(f=0;f<e.length;f++){l=e[f];A=l.split(":");for(q=0;q<A.length;q++)p=(p||
b)[A[q]];p="@"+p}A=this.B[l];A=A[p]||(A[p]=[])}if("remove"===a)for(delete this.m[h],f=0,e=d.length;f<e;f++){if(f===e-1)return g[d[f]].remove(h,c);g[d[f]].remove(h)}f=this.a.field;A&&(A[A.length]=b);e=0;for(l=f.length;e<l;e++){A=f[e];p=void 0;for(q=0;q<A.length;q++)p=(p||b)[A[q]];this.m[h]=b;A=g[d[e]];q="add"===a?A.add:A.update;if(e===l-1)return q.call(A,h,p,c);q.call(A,h,p)}}};f.prototype.update=function(a,b,c){if(this.a&&J(a))return this.l("update",a,b);this.f["@"+a]&&N(b)&&(this.remove(a),this.add(a,
b,c,!0));return this};f.prototype.remove=function(a,b,c){if(this.a&&J(a))return this.l("remove",a,b);var g="@"+a;if(this.f[g]){if(this.i)return this.b[this.f[g]].postMessage({remove:!0,id:a}),delete this.f[g],b&&b(),this;if(!c){if(this.async&&"function"!==typeof importScripts){var d=this;g=new Promise(function(b){setTimeout(function(){d.remove(a,null,!0);d=null;b()})});if(b)g.then(b);else return g;return this}if(b)return this.remove(a,null,!0),b(),this}for(b=0;b<this.c-(this.threshold||0);b++)S(this.u[b],
a);this.depth&&S(this.s,a);delete this.f[g];this.o=!1}return this};var F;f.prototype.search=function(a,b,c,d){if(J(b)){if(E(b))for(var e=0;e<b.length;e++)b[e].query=a;else b.query=a;a=b;b=0}var g=[],f=a;if(J(a)&&!E(a)){(c=a.callback||R(b)&&b)&&(f.callback=null);var h=a.sort;var l=a.page;b=a.limit;var B=a.threshold;var x=a.suggest;a=a.query}if(this.a){B=this.a.index;var q=f.where,t=f.bool||"or",n=f.field,C=t,v,y;if(n)E(n)||(n=[n]);else if(E(f)){var w=f;n=[];C=[];for(var r=0;r<f.length;r++)d=f[r],e=
d.bool||t,n[r]=d.field,C[r]=e,"not"===e?v=!0:"and"===e&&(y=!0)}else n=this.a.keys;t=n.length;for(r=0;r<t;r++)w&&(f=w[r]),N(f)||(f.page=null,f.limit=0),g[r]=B[n[r]].search(f,0);if(c)return c(Q.call(this,a,C,g,h,b,x,q,l,y,v));if(this.async){var z=this;return new Promise(function(c){Promise.all(g).then(function(d){c(Q.call(z,a,C,d,h,b,x,q,l,y,v))})})}return Q.call(this,a,C,g,h,b,x,q,l,y,v)}B||(B=this.threshold||0);R(b)?(c=b,b=1E3):b||0===b||(b=1E3);if(this.i)for(this.H=c,this.D=0,this.A=[],n=0;n<this.i;n++)this.b[n].postMessage({search:!0,
limit:b,cursor:l,threshold:B,content:a});else{if(!d){if(this.async&&"function"!==typeof importScripts){var D=this;B=new Promise(function(a){setTimeout(function(){a(D.search(f,b,null,!0));D=null})});if(c)B.then(c);else return B;return this}if(c)return c(this.search(f,b,null,!0)),this}if(!a||!N(a))return g;f=a;if(this.cache)if(this.o){if(c=this.v.get(a))return c}else this.v.clear(),this.o=!0;f=this.encode(f);if(!f.length)return g;c=this.h;c=R(c)?c(f):f.split(ha);this.filter&&(c=p(c,this.filter));w=
c.length;d=!0;e=[];var F=G();1<w&&(this.depth?(n=!0,r=c[0],F[r]=1):c.sort(na));if(!n||(t=this.s)[r])for(var I=this.c,H=n?1:0;H<w;H++){var K=c[H];if(K){if(!F[K]){var L=[],M=!1,O=0;if(r=n?t[r]:this.u)for(var T=void 0,S=0;S<I-B;S++)if(T=r[S][K])L[O++]=T,M=!0;if(M)e[e.length]=1<O?L.concat.apply([],L):L[0];else if(!x){d=!1;break}F[K]=1}r=K}}else d=!1;d&&(g=da(e,b,l,x));this.cache&&this.v.set(a,g);return g}};f.prototype.find=function(a,b){return this.where(a,b,1)[0]||null};f.prototype.where=function(a,
b,c,d){var e=this.m,g=[],f=0,h;if(J(a)){c||(c=b);var l=Object.keys(a);var p=l.length;var x=!1;if(1===p&&"id"===l[0])return[e[a.id]];if((h=this.I)&&!d)for(var q=0;q<h.length;q++){var t=h[q],n=a[t];if(!H(n)){d=this.B[t]["@"+n];if(0===--p)return d;l.splice(l.indexOf(t),1);delete a[t];break}}h=Array(p);for(q=0;q<p;q++)h[q]=l[q].split(":")}else{if(R(a)){b=d||Object.keys(e);c=b.length;for(l=0;l<c;l++)p=e[b[l]],a(p)&&(g[f++]=p);return g}if(H(b))return[e[a]];if("id"===a)return[e[b]];l=[a];p=1;h=[a.split(":")];
x=!0}d=d||Object.keys(e);q=d.length;for(t=0;t<q;t++){n=e[d[t]];for(var C=!0,v=0;v<p;v++){x||(b=a[l[v]]);var y=h[v],w=y.length,r=n;if(1<w)for(var z=0;z<w;z++)r=r[y[z]];else r=r[y[0]];if(r!==b){C=!1;break}}if(C&&(g[f++]=n,c&&f===c))break}return g};f.prototype.info=function(){if(this.i)for(var a=0;a<this.i;a++)this.b[a].postMessage({info:!0,id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&this.cache.C?this.cache.C.length:!1,matcher:T.length+(this.g?this.g.length:0),worker:this.i,
threshold:this.threshold,depth:this.depth,resolution:this.c,contextual:this.depth&&"strict"===this.h}};f.prototype.clear=function(){return this.destroy().init()};f.prototype.destroy=function(){this.cache&&(this.v.clear(),this.v=null);this.u=this.s=this.f=null;if(this.a){for(var a=this.a.keys,b=0;b<a.length;b++)this.a.index[a[b]].destroy();this.a=this.m=null}return this};f.prototype.export=function(){if(this.a){for(var a=this.a.keys,b=Array(a.length+1),c=0;c<a.length;c++){var d=this.a.index[a[c]];
b[c]=[d.u,d.s,Object.keys(d.f)]}b[c]=this.m;return JSON.stringify(b)}return JSON.stringify([this.u,this.s,Object.keys(this.f)])};f.prototype.import=function(a){a=JSON.parse(a);var b=G();if(this.a){for(var c=this.a.keys,d=c.length,e=a[0][2],f=0;f<e.length;f++)b[e[f]]=1;for(e=0;e<d;e++)f=this.a.index[c[e]],f.u=a[e][0],f.s=a[e][1],f.f=b,f.m=a[d];this.m=a[d]}else{c=a[2];for(d=0;d<c.length;d++)b[c[d]]=1;this.u=a[0];this.s=a[1];this.f=b}};var O={icase:function(a){return a.toLowerCase()},simple:function(){var a=
[e("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"),"a",e("[\u00e8\u00e9\u00ea\u00eb]"),"e",e("[\u00ec\u00ed\u00ee\u00ef]"),"i",e("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"),"o",e("[\u00f9\u00fa\u00fb\u00fc\u0171]"),"u",e("[\u00fd\u0177\u00ff]"),"y",e("\u00f1"),"n",e("\u00e7"),"c",e("\u00df"),"s",e(" & ")," and ",e("[-/]")," ",e("[^a-z0-9 ]"),"",e("\\s+")," "];return function(b){b=x(b.toLowerCase(),a);return" "===b?"":b}}(),advanced:function(){var a=[e("ae"),"a",e("ai"),"ei",e("ay"),"ei",e("ey"),"ei",e("oe"),
"o",e("ue"),"u",e("ie"),"i",e("sz"),"s",e("zs"),"s",e("sh"),"s",e("ck"),"k",e("cc"),"k",e("dt"),"t",e("ph"),"f",e("pf"),"f",e("ou"),"o",e("uo"),"u"];return function(b,c){if(!b)return b;b=this.simple(b);2<b.length&&(b=x(b,a));c||1<b.length&&(b=X(b));return b}}(),extra:function(){var a=[e("p"),"b",e("z"),"s",e("[cgq]"),"k",e("n"),"m",e("d"),"t",e("[vw]"),"f",e("[aeiouy]"),""];return function(b){if(!b)return b;b=this.advanced(b,!0);if(1<b.length){b=b.split(" ");for(var c=0;c<b.length;c++){var d=b[c];
1<d.length&&(b[c]=d[0]+x(d.substring(1),a))}b=b.join(" ");b=X(b)}return b}}(),balance:function(){var a=[e("[-/]")," ",e("[^a-z0-9 ]"),"",e("\\s+")," "];return function(b){return X(x(b.toLowerCase(),a))}}()},ua=function(){function a(a){this.clear();this.J=!0!==a&&a}a.prototype.clear=function(){this.cache=G();this.count=G();this.index=G();this.C=[]};a.prototype.set=function(a,c){if(this.J&&H(this.cache[a])){var b=this.C.length;if(b===this.J){b--;var d=this.C[b];delete this.cache[d];delete this.count[d];
delete this.index[d]}this.index[a]=b;this.C[b]=a;this.count[a]=-1;this.cache[a]=c;this.get(a)}else this.cache[a]=c};a.prototype.get=function(a){var b=this.cache[a];if(this.J&&b){var d=++this.count[a],e=this.index,f=e[a];if(0<f){for(var h=this.C,l=f;this.count[h[--f]]<=d&&-1!==f;);f++;if(f!==l){for(d=l;d>f;d--)l=h[d-1],h[d]=l,e[l]=d;h[f]=a;e[a]=f}}}return b};return a}();return f}(function(){var d={},m="undefined"!==typeof Blob&&"undefined"!==typeof URL&&URL.createObjectURL;return function(f,l,p,Q,
h){p=m?URL.createObjectURL(new Blob(["("+p.toString()+")()"],{type:"text/javascript"})):f+".es5.js";f+="-"+l;d[f]||(d[f]=[]);d[f][h]=new Worker(p);d[f][h].onmessage=Q;console.log("Register Worker: "+f+"@"+h);return d[f][h]}}()),this);
/*
FlexSearch v0.5.31
FlexSearch v0.6.0
Copyright 2019 Nextapps GmbH

@@ -8,12 +8,13 @@ Author: Thomas Wilkerling

*/
'use strict';(function(d,w,x){let m;(m=x.define)&&m.amd?m([],function(){return w}):(m=x.modules)?m[d.toLowerCase()]=w:"object"===typeof exports?module.exports=w:x[d]=w})("FlexSearch",function(){function d(a,c){const b=c?c.id:a&&a.id;this.id=b||0===b?b:J++;this.init(a,c);x(this,"index",function(){return this.b});x(this,"length",function(){return Object.keys(this.index).length})}function w(a,c){const b=a.length,f=z(c),e=[];for(let k=0,g=0;k<b;k++){const b=a[k];if(f&&c(b)||!f&&!c[b])e[g++]=b}return e}
function x(a,c,b){Object.defineProperty(a,c,{get:b})}function m(a,c){for(let b=0;b<c.length;b+=2)a=a.replace(c[b],c[b+1]);return a}function A(a,c,b,f,e,k,g,l){if(c[b])return c[b];e=e?(l-(g||l/1.5))*k+(g||l/1.5)*e:k;c[b]=e;e>=g&&(a=a[l-(e+.5>>0)],a=a[b]||(a[b]=[]),a[a.length]=f);return e}function D(a,c){if(a){const b=Object.keys(a);for(let f=0,e=b.length;f<e;f++){const e=b[f],g=a[e];if(g)for(let b=0,f=g.length;b<f;b++)if(g[b]===c){1===f?delete a[e]:g.splice(b,1);break}else"object"===typeof g[b]&&D(g[b],
c)}}}function K(a,c){a=a.length-c.length;return 0>a?1:a?-1:0}function B(a){return"string"===typeof a}function z(a){return"function"===typeof a}function C(a){return"undefined"===typeof a}function F(a){const c=Array(a);for(let b=0;b<a;b++)c[b]=v();return c}function v(){return Object.create(null)}const r={encode:"icase",c:"forward",o:!1,cache:!1,async:!1,s:!1,i:!1,m:!1,l:!1,a:9,threshold:0,depth:0},E=[];let J=0;const G=/\W+/,H={},I={};d.create=function(a){return new d(a)};d.registerMatcher=function(a){for(const c in a)a.hasOwnProperty(c)&&
E.push(new RegExp(c,"g"),a[c]);return this};d.registerEncoder=function(a,c){y[a]=c.bind(y);return this};d.registerLanguage=function(a,c){H[a]=c.filter;I[a]=c.stemmer;return this};d.encode=function(a,c){return y[a](c)};d.prototype.init=function(a,c){this.j=[];if(c){var b=c.preset;a=c}else a||(a=r),b=a.preset;c={};this.c=a.tokenize||c.c||this.c||r.c;this.i=a.rtl||this.i||r.i;this.threshold=C(b=a.threshold)?c.threshold||this.threshold||r.threshold:b;this.a=C(b=a.resolution)?b=c.a||this.a||r.a:b;b<=this.threshold&&
(this.a=this.threshold+1);this.depth=C(b=a.depth)?c.depth||this.depth||r.depth:b;this.l=C(b=a.paging)?this.l||r.l:b;this.g=(b=C(b=a.encode)?c.encode||r.encode:b)&&y[b]&&y[b].bind(y)||(z(b)?b:this.g||!1);(b=a.matcher)&&this.addMatcher(b);if(b=a.filter){B(b)&&(b=H[b]);if(b.constructor===Array){c=this.g;var f=v();for(let a=0;a<b.length;a++){const e=c?c(b[a]):b[a];f[e]=1}b=f}this.filter=b}if(b=a.stemmer){var e;a=B(b)?I[b]:b;b=this.g;c=[];for(e in a)a.hasOwnProperty(e)&&(f=b?b(e):e,c.push(new RegExp(f+
"($|\\W)","g"),b?b(a[e]):a[e]));this.stemmer=e=c}this.h=F(this.a-(this.threshold||0));this.f=v();this.b=v();return this};d.prototype.encode=function(a){a&&E.length&&(a=m(a,E));a&&this.j.length&&(a=m(a,this.j));a&&this.g&&(a=this.g(a));a&&this.stemmer&&(a=m(a,this.stemmer));return a};d.prototype.addMatcher=function(a){const c=this.j;for(const b in a)a.hasOwnProperty(b)&&c.push(new RegExp(b,"g"),a[b]);return this};d.prototype.add=function(a,c,b,f,e){if(c&&B(c)&&(a||0===a)){const d="@"+a;if(this.b[d]&&
!f)return this.update(a,c);if(!e&&b)return this.add(a,c,null,f,!0),b(),this;c=this.encode(c);if(!c.length)return this;b=this.c;c=z(b)?b(c):c.split(G);this.filter&&(c=w(c,this.filter));f=v();f._ctx=v();e=c.length;const q=this.threshold,u=this.depth,p=this.a,t=this.h,m=this.i;for(let d=0;d<e;d++){var k=c[d];if(k){var g=k.length,l=(m?d+1:e-d)/e,n="";switch(b){case "reverse":case "both":for(var h=g;--h;)n=k[h]+n,A(t,f,n,a,m?1:(g-h)/g,l,q,p-1);n="";case "forward":for(h=0;h<g;h++)n+=k[h],A(t,f,n,a,m?(h+
1)/g:1,l,q,p-1);break;case "full":for(h=0;h<g;h++){const b=(m?h+1:g-h)/g;for(let c=g;c>h;c--)n=k.substring(h,c),A(t,f,n,a,b,l,q,p-1)}break;default:if(g=A(t,f,k,a,1,l,q,p-1),u&&1<e&&g>=q)for(g=f._ctx[k]||(f._ctx[k]=v()),k=this.f[k]||(this.f[k]=F(p-(q||0))),l=d-u,n=d+u+1,0>l&&(l=0),n>e&&(n=e);l<n;l++)l!==d&&A(k,g,c[l],a,0,p-(l<d?d-l:l-d),q,p-1)}}}this.b[d]=1}return this};d.prototype.update=function(a,c,b){this.b["@"+a]&&B(c)&&(this.remove(a),this.add(a,c,b,!0));return this};d.prototype.remove=function(a,
c,b){const f="@"+a;if(this.b[f]){if(!b&&c)return this.remove(a,null,!0),c(),this;for(c=0;c<this.a-(this.threshold||0);c++)D(this.h[c],a);this.depth&&D(this.f,a);delete this.b[f]}return this};d.prototype.search=function(a,c,b,f){var e=[],d=a;if("object"===typeof a){c=a.limit;var g=a.threshold;a=a.query}g||(g=this.threshold||0);z(c)?(b=c,c=1E3):c||0===c||(c=1E3);if(!f&&b)return b(this.search(d,c,null,!0)),this;if(!a||!B(a))return e;d=this.encode(a);if(!d.length)return e;a=this.c;a=z(a)?a(d):d.split(G);
this.filter&&(a=w(a,this.filter));b=a.length;f=!0;d=[];var l=v();if(1<b)if(this.depth){var n=!0;var h=a[0];l[h]=1}else a.sort(K);var m;if(!n||(m=this.f)[h]){var q=this.a;for(var u=n?1:0;u<b;u++){var p=a[u];if(p){if(!l[p]){var t=[],r=!1;let a=0;if(h=n?m[h]:this.h){let b;for(let c=0;c<q-g;c++)if(b=h[c][p])t[a++]=b,r=!0}if(r)d[d.length]=1<a?t.concat.apply([],t):t[0];else{f=!1;break}l[p]=1}h=p}}}else f=!1;if(f)a:if(e=[],g=d.length,1<g){n=v();h=-1;u=!0;let k;for(f=0;++h<g;){l=h===g-1;m=d[h];b=m.length;
if(!b){e=m;break a}if(u)if(k){q=k.length;for(a=0;a<q;)n["@"+k[a++]]=1;k=null;u=!1}else{k=m;continue}p=!1;for(a=0;a<b;)if(q=m[a++],t="@"+q,(r=n[t])&&r===h){if(l){if(e[f++]=q,c&&f===c)break a}else n[t]=h+1;p=!0}if(!p)break}k&&(e=k)}else g&&(e=d[0],c&&e.length>c&&(e=e.slice(0,c)));return e};d.prototype.clear=function(){return this.destroy().init()};d.prototype.destroy=function(){this.h=this.f=this.b=null;return this};const y={icase:function(a){return a.toLowerCase()}};return d}(!1),this);
'use strict';(function(e,z,t){let k;(k=t.define)&&k.amd?k([],function(){return z}):(k=t.modules)?k[e.toLowerCase()]=z:"object"===typeof exports?module.exports=z:t[e]=z})("FlexSearch",function(){function e(a,c){const b=c?c.id:a&&a.id;this.id=b||0===b?b:L++;this.init(a,c);t(this,"index",function(){return Object.keys(this.b)});t(this,"length",function(){return this.index.length})}function z(a,c){const b=a.length,f=A(c),d=[];for(let l=0,g=0;l<b;l++){const b=a[l];if(f&&c(b)||!f&&!c[b])d[g++]=b}return d}
function t(a,c,b){Object.defineProperty(a,c,{get:b})}function k(a,c){for(let b=0;b<c.length;b+=2)a=a.replace(c[b],c[b+1]);return a}function B(a,c,b,f,d,l,g,h){if(c[b])return c[b];d=d?(h-(g||h/1.5))*l+(g||h/1.5)*d:l;c[b]=d;d>=g&&(a=a[h-(d+.5>>0)],a=a[b]||(a[b]=[]),a[a.length]=f);return d}function E(a,c){if(a){const b=Object.keys(a);for(let f=0,d=b.length;f<d;f++){const d=b[f],g=a[d];if(g)for(let b=0,f=g.length;b<f;b++)if(g[b]===c){1===f?delete a[d]:g.splice(b,1);break}else"object"===typeof g[b]&&E(g[b],
c)}}}function M(a,c){a=a.length-c.length;return 0>a?1:a?-1:0}function F(a,c,b){return a?{page:a,next:c?""+c:null,result:b}:b}function C(a){return"string"===typeof a}function A(a){return"function"===typeof a}function D(a){return"undefined"===typeof a}function H(a){const c=Array(a);for(let b=0;b<a;b++)c[b]=y();return c}function y(){return Object.create(null)}const v={encode:"icase",c:"forward",cache:!1,async:!1,m:!1,i:!1,l:!1,a:9,threshold:0,depth:0},G=[];let L=0;const I=/\W+/,J={},K={};e.create=function(a){return new e(a)};
e.registerMatcher=function(a){for(const c in a)a.hasOwnProperty(c)&&G.push(new RegExp(c,"g"),a[c]);return this};e.registerEncoder=function(a,c){w[a]=c.bind(w);return this};e.registerLanguage=function(a,c){J[a]=c.filter;K[a]=c.stemmer;return this};e.encode=function(a,c){return w[a](c)};e.prototype.init=function(a,c){this.j=[];if(c){var b=c.preset;a=c}else a||(a=v),b=a.preset;c={};this.c=a.tokenize||c.c||this.c||v.c;this.i=a.rtl||this.i||v.i;this.threshold=D(b=a.threshold)?c.threshold||this.threshold||
v.threshold:b;this.a=D(b=a.resolution)?b=c.a||this.a||v.a:b;b<=this.threshold&&(this.a=this.threshold+1);this.depth="strict"!==this.c||D(b=a.depth)?c.depth||this.depth||v.depth:b;this.g=(b=D(b=a.encode)?c.encode||v.encode:b)&&w[b]&&w[b].bind(w)||(A(b)?b:this.g||!1);(b=a.matcher)&&this.addMatcher(b);if(b=a.filter){C(b)&&(b=J[b]);if(b.constructor===Array){c=this.g;var f=y();for(let a=0;a<b.length;a++){const d=c?c(b[a]):b[a];f[d]=1}b=f}this.filter=b}if(b=a.stemmer){var d;a=C(b)?K[b]:b;b=this.g;c=[];
for(d in a)a.hasOwnProperty(d)&&(f=b?b(d):d,c.push(new RegExp(f+"($|\\W)","g"),b?b(a[d]):a[d]));this.stemmer=d=c}this.h=H(this.a-(this.threshold||0));this.f=y();this.b=y();return this};e.prototype.encode=function(a){a&&G.length&&(a=k(a,G));a&&this.j.length&&(a=k(a,this.j));a&&this.g&&(a=this.g(a));a&&this.stemmer&&(a=k(a,this.stemmer));return a};e.prototype.addMatcher=function(a){const c=this.j;for(const b in a)a.hasOwnProperty(b)&&c.push(new RegExp(b,"g"),a[b]);return this};e.prototype.add=function(a,
c,b,f,d){if(c&&C(c)&&(a||0===a)){const e="@"+a;if(this.b[e]&&!f)return this.update(a,c);if(!d&&b)return this.add(a,c,null,f,!0),b(),this;c=this.encode(c);if(!c.length)return this;b=this.c;c=A(b)?b(c):c.split(I);this.filter&&(c=z(c,this.filter));f=y();f._ctx=y();d=c.length;const q=this.threshold,k=this.depth,p=this.a,r=this.h,u=this.i;for(let e=0;e<d;e++){var l=c[e];if(l){var g=l.length,h=(u?e+1:d-e)/d,n="";switch(b){case "reverse":case "both":for(var m=g;--m;)n=l[m]+n,B(r,f,n,a,u?1:(g-m)/g,h,q,p-
1);n="";case "forward":for(m=0;m<g;m++)n+=l[m],B(r,f,n,a,u?(m+1)/g:1,h,q,p-1);break;case "full":for(m=0;m<g;m++){const b=(u?m+1:g-m)/g;for(let c=g;c>m;c--)n=l.substring(m,c),B(r,f,n,a,b,h,q,p-1)}break;default:if(g=B(r,f,l,a,1,h,q,p-1),k&&1<d&&g>=q)for(g=f._ctx[l]||(f._ctx[l]=y()),l=this.f[l]||(this.f[l]=H(p-(q||0))),h=e-k,n=e+k+1,0>h&&(h=0),n>d&&(n=d);h<n;h++)h!==e&&B(l,g,c[h],a,0,p-(h<e?e-h:h-e),q,p-1)}}}this.b[e]=1}return this};e.prototype.update=function(a,c,b){this.b["@"+a]&&C(c)&&(this.remove(a),
this.add(a,c,b,!0));return this};e.prototype.remove=function(a,c,b){const f="@"+a;if(this.b[f]){if(!b&&c)return this.remove(a,null,!0),c(),this;for(c=0;c<this.a-(this.threshold||0);c++)E(this.h[c],a);this.depth&&E(this.f,a);delete this.b[f]}return this};e.prototype.search=function(a,c,b,f){var d=[],e=a;if("object"===typeof a){var g=a.page;c=a.limit;var h=a.threshold;a=a.query}h||(h=this.threshold||0);A(c)?(b=c,c=1E3):c||0===c||(c=1E3);if(!f&&b)return b(this.search(e,c,null,!0)),this;if(!a||!C(a))return d;
e=this.encode(a);if(!e.length)return d;a=this.c;a=A(a)?a(e):e.split(I);this.filter&&(a=z(a,this.filter));b=a.length;f=!0;e=[];var n=y();if(1<b)if(this.depth){var m=!0;var k=a[0];n[k]=1}else a.sort(M);var q;if(!m||(q=this.f)[k]){var v=this.a;for(var p=m?1:0;p<b;p++){var r=a[p];if(r){if(!n[r]){var u=[],t=!1,w=0;if(k=m?q[k]:this.h){let a;for(let b=0;b<v-h;b++)if(a=k[b][r])u[w++]=a,t=!0}if(t)e[e.length]=1<w?u.concat.apply([],u):u[0];else{f=!1;break}n[r]=1}k=r}}}else f=!1;if(f)a:{let l;d=[];m=e.length;
!0===g?(g="0",h=""):h=g&&g.split(":");if(1<m){q=y();a=-1;r=!0;n=0;for(h&&(2===h.length?h=!1:h=parseInt(h[0],10));++a<m;){v=a===m-1;k=e[a];f=k.length;if(!f){d=F(g,l,k);break a}if(r)if(x){p=x.length;for(b=0;b<p;)q["@"+x[b++]]=1;var x=null;r=!1}else{x=k;continue}u=!1;for(b=0;b<f;)if(p=k[b++],t="@"+p,(w=q[t])&&w===a){if(v){if(!h||--h<n)if(d[n++]=p,c&&n===c){d=F(g,n,d);break a}}else q[t]=a+1;u=!0}if(!u)break}x&&(d=x)}else m&&(d=e[0]);c&&(x=g?parseInt(g,10):0,l=x+c,l<d.length?d=d.slice(x,l):x&&(d=d.slice(x)));
d=F(g,l,d)}return d};e.prototype.clear=function(){return this.destroy().init()};e.prototype.destroy=function(){this.h=this.f=this.b=null;return this};const w={icase:function(a){return a.toLowerCase()}};return e}(!1),this);
/*
FlexSearch v0.5.31
FlexSearch v0.6.0
Copyright 2019 Nextapps GmbH

@@ -8,33 +8,34 @@ Author: Thomas Wilkerling

*/
'use strict';(function(A,J,k){let C;(C=k.define)&&C.amd?C([],function(){return J}):(C=k.modules)?C[A.toLowerCase()]=J:"object"===typeof exports?module.exports=J:k[A]=J})("FlexSearch",function ba(A){function k(a,c){const b=c?c.id:a&&a.id;this.id=b||0===b?b:ca++;this.init(a,c);K(this,"index",function(){return this.a?this.a.index[this.a.keys[0]].c:this.c});K(this,"length",function(){return Object.keys(this.index).length})}function C(a,c,b,d){this.v!==this.g&&(this.o=this.o.concat(b),this.v++,d&&this.o.length>=
d&&(this.v=this.g),this.v===this.g&&(this.cache&&this.l.set(c,this.o),this.G&&this.G(this.o)));return this}function L(a,c){const b=a.length,d=G(c),e=[];for(let h=0,f=0;h<b;h++){const b=a[h];if(d&&c(b)||!d&&!c[b])e[f++]=b}return e}function N(a,c,b,d,e,h,f,l){c=b=U(b,h?0:e,f,this.u,c,l);b=this.h;f=c.length;l=Array(f);for(let a=0;a<f;a++)l[a]=b[c[a]];b=l;h&&(b=this.where(h,null,e,b));d&&(G(d)||(D=d.split(":"),1<D.length?d=da:(D=D[0],d=ea)),b.sort(d));this.cache&&this.l.set(a,b);return b}function K(a,
c,b){Object.defineProperty(a,c,{get:b})}function g(a){return new RegExp(a,"g")}function H(a,c){for(let b=0;b<c.length;b+=2)a=a.replace(c[b],c[b+1]);return a}function O(a,c,b,d,e,h,f,l){if(c[b])return c[b];e=e?(l-(f||l/1.5))*h+(f||l/1.5)*e:h;c[b]=e;e>=f&&(a=a[l-(e+.5>>0)],a=a[b]||(a[b]=[]),a[a.length]=d);return e}function Q(a,c){if(a){const b=Object.keys(a);for(let d=0,e=b.length;d<e;d++){const e=b[d],f=a[e];if(f)for(let b=0,d=f.length;b<d;b++)if(f[b]===c){1===d?delete a[e]:f.splice(b,1);break}else F(f[b])&&
Q(f[b],c)}}}function R(a){let c="",b="";var d="";for(let e=0;e<a.length;e++){const h=a[e];if(h!==b)if(e&&"h"===h){if(d="a"===d||"e"===d||"i"===d||"o"===d||"u"===d||"y"===d,("a"===b||"e"===b||"i"===b||"o"===b||"u"===b||"y"===b)&&d||" "===b)c+=h}else c+=h;d=e===a.length-1?"":a[e+1];b=h}return c}function fa(a,c){a=a.length-c.length;return 0>a?1:a?-1:0}function ea(a,c){a=a[D];c=c[D];return a<c?-1:a>c?1:0}function da(a,c){const b=D.length;for(let d=0;d<b;d++)a=a[D[d]],c=c[D[d]];return a<c?-1:a>c?1:0}function U(a,
c,b,d,e,h){b=[];const f=a.length;if(1<f){const m=r();let g,n,p=-1;var l;let k,v,x=!0,w,I=0,S,T;if(h){for(g=r();++p<f;)if("not"===e[p])for(n=a[p],k=n.length,l=0;l<k;)g["@"+n[l++]]=1;else T=p+1;if(!T)return b;p=-1}else S=E(e)&&e;for(;++p<f;){const t=p===(T||f)-1;let V,r;if(!S||!p)if((l=S||e&&e[p])&&"and"!==l)if("or"===l)r=!0;else continue;else V=!0;n=a[p];k=n.length;if(!k){if(V&&!d)return n;continue}if(x)if(w){var q=w.length;for(l=0;l<q;)m["@"+w[l++]]=1;w=null;x=!1}else{w=n;continue}let u=!1;l=0;for(q=
[];l<k;){v=n[l++];var B="@"+v;const a=m[B];if(a&&(!h||!g[B]))if(r||a===p){if(t){if(b[I++]=v,c&&I===c)return b}else m[B]=p+1;u=!0}else d&&(B=q[a]||(q[a]=[]),B[B.length]=v)}if(!u&&!d)break}if(w)if(h)for(a=w.length,l=0;l<a;)e=w[l++],g["@"+e]||(b[I++]=e);else b=w;if(d&&(I=b.length,(p=q.length)&&(!c||I<c)))for(;p--;)if(v=q[p])for(l=0,k=v.length;l<k;l++)if(b[I++]=v[l],c&&I===c)return b}else!f||e&&"not"===e[0]||(b=a[0],c&&b.length>c&&(b=b.slice(0,c)));return b}function E(a){return"string"===typeof a}function z(a){return a.constructor===
Array}function G(a){return"function"===typeof a}function F(a){return"object"===typeof a}function y(a){return"undefined"===typeof a}function W(a){const c=Array(a);for(let b=0;b<a;b++)c[b]=r();return c}function r(){return Object.create(null)}function ha(){let a,c;self.onmessage=function(b){if(b=b.data)if(b.search){const d=c.search(b.content,b.threshold?{limit:b.limit,threshold:b.threshold,where:b.where}:b.limit);self.postMessage({id:a,content:b.content,limit:b.limit,result:d})}else b.add?c.add(b.id,
b.content):b.update?c.update(b.id,b.content):b.remove?c.remove(b.id):b.clear?c.clear():b.info?(b=c.info(),b.worker=a,console.log(b)):b.register&&(a=b.id,b.options.cache=!1,b.options.async=!1,b.options.worker=!1,c=(new Function(b.register.substring(b.register.indexOf("{")+1,b.register.lastIndexOf("}"))))(),c=new c(b.options))}}function ia(a,c,b,d){a=A("flexsearch","id"+a,ha,function(a){(a=a.data)&&a.result&&d(a.id,a.content,a.result,a.limit,a.where,a.cursor,a.suggest)},c);const e=ba.toString();b.id=
c;a.postMessage({register:e,options:b,id:c});return a}const u={encode:"icase",f:"forward",u:!1,cache:!1,async:!1,g:!1,F:!1,a:!1,J:!1,b:9,threshold:0,depth:0},X={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},P=[];
let ca=0;const Y=/\W+/,Z={},aa={};k.create=function(a){return new k(a)};k.registerMatcher=function(a){for(const c in a)a.hasOwnProperty(c)&&P.push(g(c),a[c]);return this};k.registerEncoder=function(a,c){M[a]=c.bind(M);return this};k.registerLanguage=function(a,c){Z[a]=c.filter;aa[a]=c.stemmer;return this};k.encode=function(a,c){return M[a](c)};k.prototype.init=function(a,c){this.w=[];if(c){var b=c.preset;a=c}else a||(a=u),b=a.preset;c={};E(a)?(c=X[a],a={}):b&&(c=X[b]);if(b=a.worker)if("undefined"===
typeof Worker)a.worker=!1,this.m=null;else{var d=parseInt(b,10)||4;this.D=-1;this.v=0;this.o=[];this.G=null;this.m=Array(d);for(var e=0;e<d;e++)this.m[e]=ia(this.id,e,a,C.bind(this))}this.f=a.tokenize||c.f||this.f||u.f;this.F=a.rtl||this.F||u.F;this.async="undefined"===typeof Promise||y(b=a.async)?this.async||u.async:b;this.g=y(b=a.worker)?this.g||u.g:b;this.threshold=y(b=a.threshold)?c.threshold||this.threshold||u.threshold:b;this.b=y(b=a.resolution)?b=c.b||this.b||u.b:b;b<=this.threshold&&(this.b=
this.threshold+1);this.depth=y(b=a.depth)?c.depth||this.depth||u.depth:b;this.J=y(b=a.paging)?this.J||u.J:b;this.u=y(b=a.suggest)?this.u||u.u:b;this.A=(b=y(b=a.encode)?c.encode||u.encode:b)&&M[b]&&M[b].bind(M)||(G(b)?b:this.A||!1);(b=a.matcher)&&this.addMatcher(b);if(b=a.filter){E(b)&&(b=Z[b]);if(z(b)){c=this.A;d=r();for(e=0;e<b.length;e++){var h=c?c(b[e]):b[e];d[h]=1}b=d}this.filter=b}if(b=a.stemmer){var f;c=E(b)?aa[b]:b;d=this.A;e=[];for(f in c)c.hasOwnProperty(f)&&(h=d?d(f):f,e.push(g(h+"($|\\W)"),
d?d(c[f]):c[f]));this.stemmer=f=e}this.a=e=(b=a.doc)?b:this.a||u.a;this.j=W(this.b-(this.threshold||0));this.i=r();this.c=r();if(e){this.h=r();a.doc=null;f=e.index={};c=e.keys=[];d=e.field;h=e.tag;z(e.id)||(e.id=e.id.split(":"));if(h){this.H=r();let c=r();if(d)if(E(d))c[d]=a;else if(z(d))for(let b=0;b<d.length;b++)c[d[b]]=a;else F(d)&&(c=d);z(h)||(e.tag=h=[h]);for(d=0;d<h.length;d++)this.H[h[d]]=r();this.K=h;d=c}if(d){let b;z(d)||(F(d)?(b=d,e.field=d=Object.keys(d)):e.field=d=[d]);for(e=0;e<d.length;e++)h=
d[e],z(h)||(b&&(a=b[h]),c[e]=h,d[e]=h.split(":")),f[h]=new k(a),f[h].h=this.h}}this.C=!0;this.l=(this.cache=b=y(b=a.cache)?this.cache||u.cache:b)?new ja(b):!1;return this};k.prototype.encode=function(a){a&&P.length&&(a=H(a,P));a&&this.w.length&&(a=H(a,this.w));a&&this.A&&(a=this.A(a));a&&this.stemmer&&(a=H(a,this.stemmer));return a};k.prototype.addMatcher=function(a){const c=this.w;for(const b in a)a.hasOwnProperty(b)&&c.push(g(b),a[b]);return this};k.prototype.add=function(a,c,b,d,e){if(this.a&&
F(a))return this.B("add",a,c);if(c&&E(c)&&(a||0===a)){var h="@"+a;if(this.c[h]&&!d)return this.update(a,c);if(this.g)return++this.D>=this.m.length&&(this.D=0),this.m[this.D].postMessage({add:!0,id:a,content:c}),this.c[h]=""+this.D,b&&b(),this;if(!e){if(this.async&&"function"!==typeof importScripts){let e=this;h=new Promise(function(b){setTimeout(function(){e.add(a,c,null,d,!0);e=null;b()})});if(b)h.then(b);else return h;return this}if(b)return this.add(a,c,null,d,!0),b(),this}c=this.encode(c);if(!c.length)return this;
b=this.f;e=G(b)?b(c):c.split(Y);this.filter&&(e=L(e,this.filter));const k=r();k._ctx=r();const n=e.length,p=this.threshold,B=this.depth,v=this.b,x=this.j,w=this.F;for(let c=0;c<n;c++){var f=e[c];if(f){var l=f.length,q=(w?c+1:n-c)/n,g="";switch(b){case "reverse":case "both":for(var m=l;--m;)g=f[m]+g,O(x,k,g,a,w?1:(l-m)/l,q,p,v-1);g="";case "forward":for(m=0;m<l;m++)g+=f[m],O(x,k,g,a,w?(m+1)/l:1,q,p,v-1);break;case "full":for(m=0;m<l;m++){const c=(w?m+1:l-m)/l;for(let b=l;b>m;b--)g=f.substring(m,b),
O(x,k,g,a,c,q,p,v-1)}break;default:if(l=O(x,k,f,a,1,q,p,v-1),B&&1<n&&l>=p)for(l=k._ctx[f]||(k._ctx[f]=r()),f=this.i[f]||(this.i[f]=W(v-(p||0))),q=c-B,g=c+B+1,0>q&&(q=0),g>n&&(g=n);q<g;q++)q!==c&&O(f,l,e[q],a,0,v-(q<c?c-q:q-c),p,v-1)}}}this.c[h]=1;this.C=!1}return this};k.prototype.B=function(a,c,b){if(z(c))for(let d=0,e=c.length;d<e;d++){if(d===e-1)return this.B(a,c[d],b);this.B(a,c[d])}else{const g=this.a.index,k=this.a.keys;var d=this.a.tag,e=this.a.id;let m;let t;for(var h=0;h<e.length;h++)m=(m||
c)[e[h]];if(d){for(e=0;e<d.length;e++){var f=d[e];var l=f.split(":");for(h=0;h<l.length;h++)t=(t||c)[l[h]];t="@"+t}l=this.H[f];l=l[t]||(l[t]=[])}if("remove"===a){delete this.h[m];for(let a=0,c=k.length;a<c;a++){if(a===c-1)return g[k[a]].remove(m,b);g[k[a]].remove(m)}}e=this.a.field;l&&(l[l.length]=c);for(let h=0,l=e.length;h<l;h++){d=e[h];let q;for(f=0;f<d.length;f++)q=(q||c)[d[f]];this.h[m]=c;d=g[k[h]];f="add"===a?d.add:d.update;if(h===l-1)return f.call(d,m,q,b);f.call(d,m,q)}}};k.prototype.update=
function(a,c,b){if(this.a&&F(a))return this.B("update",a,c);this.c["@"+a]&&E(c)&&(this.remove(a),this.add(a,c,b,!0));return this};k.prototype.remove=function(a,c,b){if(this.a&&F(a))return this.B("remove",a,c);var d="@"+a;if(this.c[d]){if(this.g)return this.m[this.c[d]].postMessage({remove:!0,id:a}),delete this.c[d],c&&c(),this;if(!b){if(this.async&&"function"!==typeof importScripts){let b=this;d=new Promise(function(c){setTimeout(function(){b.remove(a,null,!0);b=null;c()})});if(c)d.then(c);else return d;
return this}if(c)return this.remove(a,null,!0),c(),this}for(c=0;c<this.b-(this.threshold||0);c++)Q(this.j[c],a);this.depth&&Q(this.i,a);delete this.c[d];this.C=!1}return this};let D;k.prototype.search=function(a,c,b,d){if(F(c)){if(z(c))for(var e=0;e<c.length;e++)c[e].query=a;else c.query=a;a=c;c=0}let h=[],f=a;let l;if(F(a)&&!z(a)){(b=a.callback||c)&&(f.callback=null);l=a.sort;c=a.limit;var g=a.threshold;a=a.query}if(this.a){g=this.a.index;const q=f.where;var k=f.bool||"or",m=f.field;let p=k;let x;
if(m)z(m)||(m=[m]);else if(z(f)){var t=f;m=[];p=[];for(var n=0;n<f.length;n++)d=f[n],e=d.bool||k,m[n]=d.field,p[n]=e,"not"===e&&(x=!0)}else m=this.a.keys;k=m.length;for(n=0;n<k;n++)t&&(f=t[n]),h[n]=g[m[n]].search(f);if(b)return b(N.call(this,a,p,h,l,c,q,void 0,x));if(this.async){const b=this;return new Promise(function(d){Promise.all(h).then(function(e){d(N.call(b,a,p,e,l,c,q,void 0,x))})})}return N.call(this,a,p,h,l,c,q,void 0,x)}g||(g=this.threshold||0);G(c)?(b=c,c=1E3):c||0===c||(c=1E3);if(this.g)for(this.G=
b,this.v=0,this.o=[],m=0;m<this.g;m++)this.m[m].postMessage({search:!0,limit:c,cursor:void 0,threshold:g,content:a});else{if(!d){if(this.async&&"function"!==typeof importScripts){let a=this;g=new Promise(function(b){setTimeout(function(){b(a.search(f,c,null,!0));a=null})});if(b)g.then(b);else return g;return this}if(b)return b(this.search(f,c,null,!0)),this}if(!a||!E(a))return h;f=a;if(this.cache)if(this.C){if(b=this.l.get(a))return b}else this.l.clear(),this.C=!0;f=this.encode(f);if(!f.length)return h;
b=this.f;b=G(b)?b(f):f.split(Y);this.filter&&(b=L(b,this.filter));t=b.length;d=!0;e=[];var p=r();1<t&&(this.depth?(m=!0,n=b[0],p[n]=1):b.sort(fa));if(!m||(k=this.i)[n]){const a=this.b;for(let c=m?1:0;c<t;c++){const f=b[c];if(f){if(!p[f]){const c=[];let b=!1,h=0;if(n=m?k[n]:this.j){let d;for(let e=0;e<a-g;e++)if(d=n[e][f])c[h++]=d,b=!0}if(b)e[e.length]=1<h?c.concat.apply([],c):c[0];else if(!this.u){d=!1;break}p[f]=1}n=f}}}else d=!1;this.a||(d&&(h=U(e,c,void 0,this.u)),this.cache&&this.l.set(a,h));
return h}};k.prototype.find=function(a,c){return this.where(a,c,1)[0]||null};k.prototype.where=function(a,c,b,d){const e=d||this.h,h=[];let f=0;let g;if("number"===typeof a)return[e[a]];if(E(a)){if(y(c))return[e[a]];if("id"===a)return[e[c]];var k=[a];var r=1;var m=[a.split(":")];g=!0}else{if(G(a)){c=d||Object.keys(e);b=c.length;for(k=0;k<b;k++)r=d?d[k]:e[c[k]],a(r)&&(h[f++]=r);return h}b||(b=c);k=Object.keys(a);r=k.length;g=!1;if(1===r&&"id"===k[0])return[e[a.id]];if((m=this.K)&&!d)for(var t=0;t<
m.length;t++){var n=m[t],p=a[n];if(!y(p)){d=this.H[n]["@"+p];if(0===--r)return d;k.splice(k.indexOf(n),1);delete a[n];break}}m=Array(r);for(t=0;t<r;t++)m[t]=k[t].split(":")}t=d||Object.keys(e);n=t.length;for(p=0;p<n;p++){const l=d?d[p]:e[t[p]];let n=!0;for(let b=0;b<r;b++){g||(c=a[k[b]]);const d=m[b],e=d.length;let f=l;if(1<e)for(let a=0;a<e;a++)f=f[d[a]];else f=f[d[0]];if(f!==c){n=!1;break}}if(n&&(h[f++]=l,b&&f===b))break}return h};k.prototype.info=function(){if(this.g)for(let a=0;a<this.g;a++)this.m[a].postMessage({info:!0,
id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&this.cache.s?this.cache.s.length:!1,matcher:P.length+(this.w?this.w.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&"strict"===this.f}};k.prototype.clear=function(){return this.destroy().init()};k.prototype.destroy=function(){this.cache&&(this.l.clear(),this.l=null);this.j=this.i=this.c=null;if(this.a){const a=this.a.keys;for(let c=0;c<a.length;c++)this.a.index[a[c]].destroy();
this.a=this.h=null}return this};k.prototype.export=function(){if(this.a){const a=this.a.keys,c=Array(a.length+1);let b=0;for(;b<a.length;b++){const d=this.a.index[a[b]];c[b]=[d.j,d.i,d.c]}c[b]=this.h;return JSON.stringify(c)}return JSON.stringify([this.j,this.i,this.c])};k.prototype.import=function(a){a=JSON.parse(a);if(this.a){const c=this.a.keys,b=c.length;for(let d=0;d<b;d++){const e=this.a.index[c[d]];e.j=a[d][0];e.i=a[d][1];e.c=a[d][2];e.h=a[b]}this.h=a[b]}else this.j=a[0],this.i=a[1],this.c=
a[2]};const M={icase:function(a){return a.toLowerCase()},simple:function(){const a=[g("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"),"a",g("[\u00e8\u00e9\u00ea\u00eb]"),"e",g("[\u00ec\u00ed\u00ee\u00ef]"),"i",g("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"),"o",g("[\u00f9\u00fa\u00fb\u00fc\u0171]"),"u",g("[\u00fd\u0177\u00ff]"),"y",g("\u00f1"),"n",g("\u00e7"),"c",g("\u00df"),"s",g(" & ")," and ",g("[-/]")," ",g("[^a-z0-9 ]"),"",g("\\s+")," "];return function(c){c=H(c.toLowerCase(),a);return" "===c?"":c}}(),
advanced:function(){const a=[g("ae"),"a",g("ai"),"ei",g("ay"),"ei",g("ey"),"ei",g("oe"),"o",g("ue"),"u",g("ie"),"i",g("sz"),"s",g("zs"),"s",g("sh"),"s",g("ck"),"k",g("cc"),"k",g("dt"),"t",g("ph"),"f",g("pf"),"f",g("ou"),"o",g("uo"),"u"];return function(c,b){if(!c)return c;c=this.simple(c);2<c.length&&(c=H(c,a));b||1<c.length&&(c=R(c));return c}}(),extra:function(){const a=[g("p"),"b",g("z"),"s",g("[cgq]"),"k",g("n"),"m",g("d"),"t",g("[vw]"),"f",g("[aeiouy]"),""];return function(c){if(!c)return c;
c=this.advanced(c,!0);if(1<c.length){c=c.split(" ");for(let b=0;b<c.length;b++){const d=c[b];1<d.length&&(c[b]=d[0]+H(d.substring(1),a))}c=c.join(" ");c=R(c)}return c}}(),balance:function(){const a=[g("[-/]")," ",g("[^a-z0-9 ]"),"",g("\\s+")," "];return function(c){return R(H(c.toLowerCase(),a))}}()},ja=function(){function a(a){this.clear();this.I=!0!==a&&a}a.prototype.clear=function(){this.cache=r();this.count=r();this.index=r();this.s=[]};a.prototype.set=function(a,b){if(this.I&&y(this.cache[a])){let c=
this.s.length;if(c===this.I){c--;const a=this.s[c];delete this.cache[a];delete this.count[a];delete this.index[a]}this.index[a]=c;this.s[c]=a;this.count[a]=-1;this.cache[a]=b;this.get(a)}else this.cache[a]=b};a.prototype.get=function(a){const b=this.cache[a];if(this.I&&b){var c=++this.count[a];const b=this.index;let d=b[a];if(0<d){const f=this.s;for(var e=d;this.count[f[--d]]<=c&&-1!==d;);d++;if(d!==e){for(c=e;c>d;c--)e=f[c-1],f[c]=e,b[e]=c;f[d]=a;b[a]=d}}}return b};return a}();return k}(function(){const A=
{},J="undefined"!==typeof Blob&&"undefined"!==typeof URL&&URL.createObjectURL;return function(k,C,L,N,K){L=J?URL.createObjectURL(new Blob(["("+L.toString()+")()"],{type:"text/javascript"})):k+".min.js";k+="-"+C;A[k]||(A[k]=[]);A[k][K]=new Worker(L);A[k][K].onmessage=N;return A[k][K]}}()),this);
'use strict';(function(t,M,l){let E;(E=l.define)&&E.amd?E([],function(){return M}):(E=l.modules)?E[t.toLowerCase()]=M:"object"===typeof exports?module.exports=M:l[t]=M})("FlexSearch",function ca(t){function l(a,b){const c=b?b.id:a&&a.id;this.id=c||0===c?c:da++;this.init(a,b);N(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)});N(this,"length",function(){return this.index.length})}function E(a,b,c,d){this.u!==this.g&&(this.o=this.o.concat(c),this.u++,
d&&this.o.length>=d&&(this.u=this.g),this.u===this.g&&(this.cache&&this.l.set(b,this.o),this.F&&this.F(this.o)));return this}function O(a,b){const c=a.length,d=J(b),e=[];for(let f=0,g=0;f<c;f++){const c=a[f];if(d&&b(c)||!d&&!b[c])e[g++]=c}return e}function Q(a,b,c,d,e,f,g,m,n,r){c=V(c,g?0:e,m,f,b,n,r);let k;m&&(m=c.page,k=c.next,c=c.result);if(g)b=this.where(g,null,e,c);else{b=c;c=this.h;e=b.length;f=Array(e);for(g=0;g<e;g++)f[g]=c[b[g]];b=f}c=b;d&&(J(d)||(F=d.split(":"),1<F.length?d=ea:(F=F[0],d=
fa)),c.sort(d));c=K(m,k,c);this.cache&&this.l.set(a,c);return c}function N(a,b,c){Object.defineProperty(a,b,{get:c})}function h(a){return new RegExp(a,"g")}function L(a,b){for(let c=0;c<b.length;c+=2)a=a.replace(b[c],b[c+1]);return a}function R(a,b,c,d,e,f,g,m){if(b[c])return b[c];e=e?(m-(g||m/1.5))*f+(g||m/1.5)*e:f;b[c]=e;e>=g&&(a=a[m-(e+.5>>0)],a=a[c]||(a[c]=[]),a[a.length]=d);return e}function T(a,b){if(a){const c=Object.keys(a);for(let d=0,e=c.length;d<e;d++){const e=c[d],g=a[e];if(g)for(let c=
0,d=g.length;c<d;c++)if(g[c]===b){1===d?delete a[e]:g.splice(c,1);break}else G(g[c])&&T(g[c],b)}}}function U(a){let b="",c="";var d="";for(let e=0;e<a.length;e++){const f=a[e];if(f!==c)if(e&&"h"===f){if(d="a"===d||"e"===d||"i"===d||"o"===d||"u"===d||"y"===d,("a"===c||"e"===c||"i"===c||"o"===c||"u"===c||"y"===c)&&d||" "===c)b+=f}else b+=f;d=e===a.length-1?"":a[e+1];c=f}return b}function ha(a,b){a=a.length-b.length;return 0>a?1:a?-1:0}function fa(a,b){a=a[F];b=b[F];return a<b?-1:a>b?1:0}function ea(a,
b){const c=F.length;for(let d=0;d<c;d++)a=a[F[d]],b=b[F[d]];return a<b?-1:a>b?1:0}function K(a,b,c){return a?{page:a,next:b?""+b:null,result:c}:c}function V(a,b,c,d,e,f,g){let m;f=[];let n;const r=a.length;!0===c?(c="0",n=""):n=c&&c.split(":");if(1<r){const l=q();let u=[],B,z,v=-1;var k;let A;let W=!0,H,C=0,w,x,t;n&&(2===n.length?(t=n,n=!1):n=parseInt(n[0],10));if(g){for(B=q();++v<r;)if("not"===e[v])for(z=a[v],A=z.length,k=0;k<A;)B["@"+z[k++]]=1;else x=v+1;if(!x)return K(c,m,f);v=-1}else w=I(e)&&
e;for(;++v<r;){const ia=v===(x||r)-1;let q,y;if(!w||!v)if((k=w||e&&e[v])&&"and"!==k)if("or"===k)y=!0;else continue;else q=!0;z=a[v];A=z.length;if(!A){if(q&&!d)return K(c,m,z);continue}if(W)if(H){var h=H.length;for(k=0;k<h;)l["@"+H[k++]]=1;H=null;W=!1}else{H=z;continue}let t=!1;for(k=0;k<A;){h=z[k++];var p="@"+h;const a=y?v:l[p];if(a&&(!g||!B[p]))if(a===v){if(ia){if(!n||--n<C)if(f[C++]=h,b&&C===b)return K(c,C,f)}else l[p]=v+1;t=!0}else d&&(p=u[a]||(u[a]=[]),p[p.length]=h)}if(q&&!t&&!d)break}if(H)if(a=
H.length,g)for(k=n?parseInt(n,10):0;k<a;){if(e=H[k++],!B["@"+e]&&(!n||--n<C)&&(f[C++]=e,b&&C===b))return K(c,k,f)}else f=H;if(d)for(C=f.length,t?(v=parseInt(t[0],10)+1,k=parseInt(t[1],10)):(v=u.length,k=0);v--;)if(h=u[v])for(A=h.length;k<A;k++)if(d=h[k],!g||!B["@"+d])if(f[C++]=d,b&&C===b)return K(c,v+":"+k,f)}else r&&(e&&"not"===e[0]||(f=a[0]));b&&(g=c?parseInt(c,10):0,m=g+b,m<f.length?f=f.slice(g,m):g&&(f=f.slice(g)));return K(c,m,f)}function I(a){return"string"===typeof a}function w(a){return a.constructor===
Array}function J(a){return"function"===typeof a}function G(a){return"object"===typeof a}function D(a){return"undefined"===typeof a}function X(a){const b=Array(a);for(let c=0;c<a;c++)b[c]=q();return b}function q(){return Object.create(null)}function ja(){let a,b;self.onmessage=function(c){if(c=c.data)if(c.search){const d=b.search(c.content,c.threshold?{limit:c.limit,threshold:c.threshold,where:c.where}:c.limit);self.postMessage({id:a,content:c.content,limit:c.limit,result:d})}else c.add?b.add(c.id,
c.content):c.update?b.update(c.id,c.content):c.remove?b.remove(c.id):c.clear?b.clear():c.info?(c=b.info(),c.worker=a,console.log(c)):c.register&&(a=c.id,c.options.cache=!1,c.options.async=!1,c.options.worker=!1,b=(new Function(c.register.substring(c.register.indexOf("{")+1,c.register.lastIndexOf("}"))))(),b=new b(c.options))}}function ka(a,b,c,d){a=t("flexsearch","id"+a,ja,function(a){(a=a.data)&&a.result&&d(a.id,a.content,a.result,a.limit,a.where,a.cursor,a.suggest)},b);const e=ca.toString();c.id=
b;a.postMessage({register:e,options:c,id:b});return a}const x={encode:"icase",f:"forward",cache:!1,async:!1,g:!1,D:!1,a:!1,b:9,threshold:0,depth:0},Y={memory:{encode:"extra",f:"strict",threshold:0,b:1},speed:{encode:"icase",f:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",f:"full",threshold:1,b:3},score:{encode:"extra",f:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",f:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",f:"strict",threshold:8,b:9,depth:1}},S=[];let da=0;const Z=
/\W+/,aa={},ba={};l.create=function(a){return new l(a)};l.registerMatcher=function(a){for(const b in a)a.hasOwnProperty(b)&&S.push(h(b),a[b]);return this};l.registerEncoder=function(a,b){P[a]=b.bind(P);return this};l.registerLanguage=function(a,b){aa[a]=b.filter;ba[a]=b.stemmer;return this};l.encode=function(a,b){return P[a](b)};l.prototype.init=function(a,b){this.v=[];if(b){var c=b.preset;a=b}else a||(a=x),c=a.preset;b={};I(a)?(b=Y[a],a={}):c&&(b=Y[c]);if(c=a.worker)if("undefined"===typeof Worker)a.worker=
!1,this.m=null;else{var d=parseInt(c,10)||4;this.C=-1;this.u=0;this.o=[];this.F=null;this.m=Array(d);for(var e=0;e<d;e++)this.m[e]=ka(this.id,e,a,E.bind(this))}this.f=a.tokenize||b.f||this.f||x.f;this.D=a.rtl||this.D||x.D;this.async="undefined"===typeof Promise||D(c=a.async)?this.async||x.async:c;this.g=D(c=a.worker)?this.g||x.g:c;this.threshold=D(c=a.threshold)?b.threshold||this.threshold||x.threshold:c;this.b=D(c=a.resolution)?c=b.b||this.b||x.b:c;c<=this.threshold&&(this.b=this.threshold+1);this.depth=
"strict"!==this.f||D(c=a.depth)?b.depth||this.depth||x.depth:c;this.w=(c=D(c=a.encode)?b.encode||x.encode:c)&&P[c]&&P[c].bind(P)||(J(c)?c:this.w||!1);(c=a.matcher)&&this.addMatcher(c);if(c=a.filter){I(c)&&(c=aa[c]);if(w(c)){b=this.w;d=q();for(e=0;e<c.length;e++){var f=b?b(c[e]):c[e];d[f]=1}c=d}this.filter=c}if(c=a.stemmer){var g;b=I(c)?ba[c]:c;d=this.w;e=[];for(g in b)b.hasOwnProperty(g)&&(f=d?d(g):g,e.push(h(f+"($|\\W)"),d?d(b[g]):b[g]));this.stemmer=g=e}this.a=e=(c=a.doc)?c:this.a||x.a;this.j=X(this.b-
(this.threshold||0));this.i=q();this.c=q();if(e){this.h=q();a.doc=null;g=e.index={};b=e.keys=[];d=e.field;f=e.tag;w(e.id)||(e.id=e.id.split(":"));if(f){this.G=q();let b=q();if(d)if(I(d))b[d]=a;else if(w(d))for(let c=0;c<d.length;c++)b[d[c]]=a;else G(d)&&(b=d);w(f)||(e.tag=f=[f]);for(d=0;d<f.length;d++)this.G[f[d]]=q();this.I=f;d=b}if(d){let c;w(d)||(G(d)?(c=d,e.field=d=Object.keys(d)):e.field=d=[d]);for(e=0;e<d.length;e++)f=d[e],w(f)||(c&&(a=c[f]),b[e]=f,d[e]=f.split(":")),g[f]=new l(a),g[f].h=this.h}}this.B=
!0;this.l=(this.cache=c=D(c=a.cache)?this.cache||x.cache:c)?new la(c):!1;return this};l.prototype.encode=function(a){a&&S.length&&(a=L(a,S));a&&this.v.length&&(a=L(a,this.v));a&&this.w&&(a=this.w(a));a&&this.stemmer&&(a=L(a,this.stemmer));return a};l.prototype.addMatcher=function(a){const b=this.v;for(const c in a)a.hasOwnProperty(c)&&b.push(h(c),a[c]);return this};l.prototype.add=function(a,b,c,d,e){if(this.a&&G(a))return this.A("add",a,b);if(b&&I(b)&&(a||0===a)){var f="@"+a;if(this.c[f]&&!d)return this.update(a,
b);if(this.g)return++this.C>=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:a,content:b}),this.c[f]=""+this.C,c&&c(),this;if(!e){if(this.async&&"function"!==typeof importScripts){let e=this;f=new Promise(function(c){setTimeout(function(){e.add(a,b,null,d,!0);e=null;c()})});if(c)f.then(c);else return f;return this}if(c)return this.add(a,b,null,d,!0),c(),this}b=this.encode(b);if(!b.length)return this;c=this.f;e=J(c)?c(b):b.split(Z);this.filter&&(e=O(e,this.filter));const l=q();l._ctx=
q();const p=e.length,r=this.threshold,u=this.depth,y=this.b,z=this.j,v=this.D;for(let b=0;b<p;b++){var g=e[b];if(g){var m=g.length,n=(v?b+1:p-b)/p,h="";switch(c){case "reverse":case "both":for(var k=m;--k;)h=g[k]+h,R(z,l,h,a,v?1:(m-k)/m,n,r,y-1);h="";case "forward":for(k=0;k<m;k++)h+=g[k],R(z,l,h,a,v?(k+1)/m:1,n,r,y-1);break;case "full":for(k=0;k<m;k++){const b=(v?k+1:m-k)/m;for(let c=m;c>k;c--)h=g.substring(k,c),R(z,l,h,a,b,n,r,y-1)}break;default:if(m=R(z,l,g,a,1,n,r,y-1),u&&1<p&&m>=r)for(m=l._ctx[g]||
(l._ctx[g]=q()),g=this.i[g]||(this.i[g]=X(y-(r||0))),n=b-u,h=b+u+1,0>n&&(n=0),h>p&&(h=p);n<h;n++)n!==b&&R(g,m,e[n],a,0,y-(n<b?b-n:n-b),r,y-1)}}}this.c[f]=1;this.B=!1}return this};l.prototype.A=function(a,b,c){if(w(b))for(let d=0,e=b.length;d<e;d++){if(d===e-1)return this.A(a,b[d],c);this.A(a,b[d])}else{const n=this.a.index,l=this.a.keys;var d=this.a.tag,e=this.a.id;let k;let m;for(var f=0;f<e.length;f++)k=(k||b)[e[f]];if(d){for(e=0;e<d.length;e++){var g=d[e];var h=g.split(":");for(f=0;f<h.length;f++)m=
(m||b)[h[f]];m="@"+m}h=this.G[g];h=h[m]||(h[m]=[])}if("remove"===a){delete this.h[k];for(let a=0,b=l.length;a<b;a++){if(a===b-1)return n[l[a]].remove(k,c);n[l[a]].remove(k)}}e=this.a.field;h&&(h[h.length]=b);for(let f=0,h=e.length;f<h;f++){d=e[f];let m;for(g=0;g<d.length;g++)m=(m||b)[d[g]];this.h[k]=b;d=n[l[f]];g="add"===a?d.add:d.update;if(f===h-1)return g.call(d,k,m,c);g.call(d,k,m)}}};l.prototype.update=function(a,b,c){if(this.a&&G(a))return this.A("update",a,b);this.c["@"+a]&&I(b)&&(this.remove(a),
this.add(a,b,c,!0));return this};l.prototype.remove=function(a,b,c){if(this.a&&G(a))return this.A("remove",a,b);var d="@"+a;if(this.c[d]){if(this.g)return this.m[this.c[d]].postMessage({remove:!0,id:a}),delete this.c[d],b&&b(),this;if(!c){if(this.async&&"function"!==typeof importScripts){let c=this;d=new Promise(function(b){setTimeout(function(){c.remove(a,null,!0);c=null;b()})});if(b)d.then(b);else return d;return this}if(b)return this.remove(a,null,!0),b(),this}for(b=0;b<this.b-(this.threshold||
0);b++)T(this.j[b],a);this.depth&&T(this.i,a);delete this.c[d];this.B=!1}return this};let F;l.prototype.search=function(a,b,c,d){if(G(b)){if(w(b))for(var e=0;e<b.length;e++)b[e].query=a;else b.query=a;a=b;b=0}let f=[],g=a;let h,l,r;if(G(a)&&!w(a)){(c=a.callback||J(b)&&b)&&(g.callback=null);l=a.sort;h=a.page;b=a.limit;var k=a.threshold;r=a.suggest;a=a.query}if(this.a){k=this.a.index;const m=g.where;var B=g.bool||"or",p=g.field;let n=B;let A,q;if(p)w(p)||(p=[p]);else if(w(g)){var t=g;p=[];n=[];for(var u=
0;u<g.length;u++)d=g[u],e=d.bool||B,p[u]=d.field,n[u]=e,"not"===e?A=!0:"and"===e&&(q=!0)}else p=this.a.keys;B=p.length;for(u=0;u<B;u++)t&&(g=t[u]),I(g)||(g.page=null,g.limit=0),f[u]=k[p[u]].search(g,0);if(c)return c(Q.call(this,a,n,f,l,b,r,m,h,q,A));if(this.async){const c=this;return new Promise(function(d){Promise.all(f).then(function(e){d(Q.call(c,a,n,e,l,b,r,m,h,q,A))})})}return Q.call(this,a,n,f,l,b,r,m,h,q,A)}k||(k=this.threshold||0);J(b)?(c=b,b=1E3):b||0===b||(b=1E3);if(this.g)for(this.F=c,
this.u=0,this.o=[],p=0;p<this.g;p++)this.m[p].postMessage({search:!0,limit:b,cursor:h,threshold:k,content:a});else{if(!d){if(this.async&&"function"!==typeof importScripts){let a=this;k=new Promise(function(c){setTimeout(function(){c(a.search(g,b,null,!0));a=null})});if(c)k.then(c);else return k;return this}if(c)return c(this.search(g,b,null,!0)),this}if(!a||!I(a))return f;g=a;if(this.cache)if(this.B){if(c=this.l.get(a))return c}else this.l.clear(),this.B=!0;g=this.encode(g);if(!g.length)return f;
c=this.f;c=J(c)?c(g):g.split(Z);this.filter&&(c=O(c,this.filter));t=c.length;d=!0;e=[];var y=q();1<t&&(this.depth?(p=!0,u=c[0],y[u]=1):c.sort(ha));if(!p||(B=this.i)[u]){const a=this.b;for(let b=p?1:0;b<t;b++){const f=c[b];if(f){if(!y[f]){const b=[];let c=!1,g=0;if(u=p?B[u]:this.j){let d;for(let e=0;e<a-k;e++)if(d=u[e][f])b[g++]=d,c=!0}if(c)e[e.length]=1<g?b.concat.apply([],b):b[0];else if(!r){d=!1;break}y[f]=1}u=f}}}else d=!1;d&&(f=V(e,b,h,r));this.cache&&this.l.set(a,f);return f}};l.prototype.find=
function(a,b){return this.where(a,b,1)[0]||null};l.prototype.where=function(a,b,c,d){const e=this.h,f=[];let g=0;let h;var l;if(G(a)){c||(c=b);var r=Object.keys(a);var k=r.length;h=!1;if(1===k&&"id"===r[0])return[e[a.id]];if((l=this.I)&&!d)for(var q=0;q<l.length;q++){var p=l[q],t=a[p];if(!D(t)){d=this.G[p]["@"+t];if(0===--k)return d;r.splice(r.indexOf(p),1);delete a[p];break}}l=Array(k);for(q=0;q<k;q++)l[q]=r[q].split(":")}else{if(J(a)){b=d||Object.keys(e);c=b.length;for(r=0;r<c;r++)k=e[b[r]],a(k)&&
(f[g++]=k);return f}if(D(b))return[e[a]];if("id"===a)return[e[b]];r=[a];k=1;l=[a.split(":")];h=!0}d=d||Object.keys(e);q=d.length;for(p=0;p<q;p++){t=e[d[p]];let m=!0;for(let c=0;c<k;c++){h||(b=a[r[c]]);const d=l[c],e=d.length;let f=t;if(1<e)for(let b=0;b<e;b++)f=f[d[b]];else f=f[d[0]];if(f!==b){m=!1;break}}if(m&&(f[g++]=t,c&&g===c))break}return f};l.prototype.info=function(){if(this.g)for(let a=0;a<this.g;a++)this.m[a].postMessage({info:!0,id:this.id});else return{id:this.id,items:this.length,cache:this.cache&&
this.cache.s?this.cache.s.length:!1,matcher:S.length+(this.v?this.v.length:0),worker:this.g,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&"strict"===this.f}};l.prototype.clear=function(){return this.destroy().init()};l.prototype.destroy=function(){this.cache&&(this.l.clear(),this.l=null);this.j=this.i=this.c=null;if(this.a){const a=this.a.keys;for(let b=0;b<a.length;b++)this.a.index[a[b]].destroy();this.a=this.h=null}return this};l.prototype.export=function(){if(this.a){const a=
this.a.keys,b=Array(a.length+1);let c=0;for(;c<a.length;c++){const d=this.a.index[a[c]];b[c]=[d.j,d.i,Object.keys(d.c)]}b[c]=this.h;return JSON.stringify(b)}return JSON.stringify([this.j,this.i,Object.keys(this.c)])};l.prototype.import=function(a){a=JSON.parse(a);const b=q();if(this.a){var c=this.a.keys,d=c.length,e=a[0][2];for(var f=0;f<e.length;f++)b[e[f]]=1;for(e=0;e<d;e++)f=this.a.index[c[e]],f.j=a[e][0],f.i=a[e][1],f.c=b,f.h=a[d];this.h=a[d]}else{c=a[2];for(d=0;d<c.length;d++)b[c[d]]=1;this.j=
a[0];this.i=a[1];this.c=b}};const P={icase:function(a){return a.toLowerCase()},simple:function(){const a=[h("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"),"a",h("[\u00e8\u00e9\u00ea\u00eb]"),"e",h("[\u00ec\u00ed\u00ee\u00ef]"),"i",h("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"),"o",h("[\u00f9\u00fa\u00fb\u00fc\u0171]"),"u",h("[\u00fd\u0177\u00ff]"),"y",h("\u00f1"),"n",h("\u00e7"),"c",h("\u00df"),"s",h(" & ")," and ",h("[-/]")," ",h("[^a-z0-9 ]"),"",h("\\s+")," "];return function(b){b=L(b.toLowerCase(),a);
return" "===b?"":b}}(),advanced:function(){const a=[h("ae"),"a",h("ai"),"ei",h("ay"),"ei",h("ey"),"ei",h("oe"),"o",h("ue"),"u",h("ie"),"i",h("sz"),"s",h("zs"),"s",h("sh"),"s",h("ck"),"k",h("cc"),"k",h("dt"),"t",h("ph"),"f",h("pf"),"f",h("ou"),"o",h("uo"),"u"];return function(b,c){if(!b)return b;b=this.simple(b);2<b.length&&(b=L(b,a));c||1<b.length&&(b=U(b));return b}}(),extra:function(){const a=[h("p"),"b",h("z"),"s",h("[cgq]"),"k",h("n"),"m",h("d"),"t",h("[vw]"),"f",h("[aeiouy]"),""];return function(b){if(!b)return b;
b=this.advanced(b,!0);if(1<b.length){b=b.split(" ");for(let c=0;c<b.length;c++){const d=b[c];1<d.length&&(b[c]=d[0]+L(d.substring(1),a))}b=b.join(" ");b=U(b)}return b}}(),balance:function(){const a=[h("[-/]")," ",h("[^a-z0-9 ]"),"",h("\\s+")," "];return function(b){return U(L(b.toLowerCase(),a))}}()},la=function(){function a(b){this.clear();this.H=!0!==b&&b}a.prototype.clear=function(){this.cache=q();this.count=q();this.index=q();this.s=[]};a.prototype.set=function(b,a){if(this.H&&D(this.cache[b])){let c=
this.s.length;if(c===this.H){c--;const b=this.s[c];delete this.cache[b];delete this.count[b];delete this.index[b]}this.index[b]=c;this.s[c]=b;this.count[b]=-1;this.cache[b]=a;this.get(b)}else this.cache[b]=a};a.prototype.get=function(b){const a=this.cache[b];if(this.H&&a){var d=++this.count[b];const a=this.index;let c=a[b];if(0<c){const f=this.s;for(var e=c;this.count[f[--c]]<=d&&-1!==c;);c++;if(c!==e){for(d=e;d>c;d--)e=f[d-1],f[d]=e,a[e]=d;f[c]=b;a[b]=c}}}return a};return a}();return l}(function(){const t=
{},M="undefined"!==typeof Blob&&"undefined"!==typeof URL&&URL.createObjectURL;return function(l,E,O,Q,N){O=M?URL.createObjectURL(new Blob(["("+O.toString()+")()"],{type:"text/javascript"})):l+".min.js";l+="-"+E;t[l]||(t[l]=[]);t[l][N]=new Worker(O);t[l][N].onmessage=Q;return t[l][N]}}()),this);
/*
FlexSearch v0.5.31
FlexSearch v0.6.0
Copyright 2019 Nextapps GmbH

@@ -8,29 +8,30 @@ Author: Thomas Wilkerling

*/
'use strict';(function(l,E,F){let C;(C=F.define)&&C.amd?C([],function(){return E}):(C=F.modules)?C[l.toLowerCase()]=E:"object"===typeof exports?module.exports=E:F[l]=E})("FlexSearch",function(){function l(a,b){const c=b?b.id:a&&a.id;this.id=c||0===c?c:Y++;this.init(a,b);C(this,"index",function(){return this.a?this.a.index[this.a.keys[0]].f:this.f});C(this,"length",function(){return Object.keys(this.index).length})}function E(a,b){const c=a.length,d=G(b),e=[];for(let h=0,f=0;h<c;h++){const c=a[h];
if(d&&b(c)||!d&&!b[c])e[f++]=c}return e}function F(a,b,c,d,e,h,f,k){b=c=R(c,h?0:e,f,this.m,b,k);c=this.g;f=b.length;k=Array(f);for(let a=0;a<f;a++)k[a]=c[b[a]];c=k;h&&(c=this.where(h,null,e,c));d&&(G(d)||(A=d.split(":"),1<A.length?d=Z:(A=A[0],d=aa)),c.sort(d));this.cache&&this.j.set(a,c);return c}function C(a,b,c){Object.defineProperty(a,b,{get:c})}function g(a){return new RegExp(a,"g")}function H(a,b){for(let c=0;c<b.length;c+=2)a=a.replace(b[c],b[c+1]);return a}function L(a,b,c,d,e,h,f,k){if(b[c])return b[c];
e=e?(k-(f||k/1.5))*h+(f||k/1.5)*e:h;b[c]=e;e>=f&&(a=a[k-(e+.5>>0)],a=a[c]||(a[c]=[]),a[a.length]=d);return e}function N(a,b){if(a){const c=Object.keys(a);for(let d=0,e=c.length;d<e;d++){const e=c[d],f=a[e];if(f)for(let c=0,d=f.length;c<d;c++)if(f[c]===b){1===d?delete a[e]:f.splice(c,1);break}else D(f[c])&&N(f[c],b)}}}function O(a){let b="",c="";var d="";for(let e=0;e<a.length;e++){const h=a[e];if(h!==c)if(e&&"h"===h){if(d="a"===d||"e"===d||"i"===d||"o"===d||"u"===d||"y"===d,("a"===c||"e"===c||"i"===
c||"o"===c||"u"===c||"y"===c)&&d||" "===c)b+=h}else b+=h;d=e===a.length-1?"":a[e+1];c=h}return b}function ba(a,b){a=a.length-b.length;return 0>a?1:a?-1:0}function aa(a,b){a=a[A];b=b[A];return a<b?-1:a>b?1:0}function Z(a,b){const c=A.length;for(let d=0;d<c;d++)a=a[A[d]],b=b[A[d]];return a<b?-1:a>b?1:0}function R(a,b,c,d,e,h){c=[];const f=a.length;if(1<f){const m=q();let g,n,p=-1;var k;let I,u,l=!0,w,J=0,P,Q;if(h){for(g=q();++p<f;)if("not"===e[p])for(n=a[p],I=n.length,k=0;k<I;)g["@"+n[k++]]=1;else Q=
p+1;if(!Q)return c;p=-1}else P=B(e)&&e;for(;++p<f;){const r=p===(Q||f)-1;let S,q;if(!P||!p)if((k=P||e&&e[p])&&"and"!==k)if("or"===k)q=!0;else continue;else S=!0;n=a[p];I=n.length;if(!I){if(S&&!d)return n;continue}if(l)if(w){var t=w.length;for(k=0;k<t;)m["@"+w[k++]]=1;w=null;l=!1}else{w=n;continue}let v=!1;k=0;for(t=[];k<I;){u=n[k++];var z="@"+u;const a=m[z];if(a&&(!h||!g[z]))if(q||a===p){if(r){if(c[J++]=u,b&&J===b)return c}else m[z]=p+1;v=!0}else d&&(z=t[a]||(t[a]=[]),z[z.length]=u)}if(!v&&!d)break}if(w)if(h)for(a=
w.length,k=0;k<a;)e=w[k++],g["@"+e]||(c[J++]=e);else c=w;if(d&&(J=c.length,(p=t.length)&&(!b||J<b)))for(;p--;)if(u=t[p])for(k=0,I=u.length;k<I;k++)if(c[J++]=u[k],b&&J===b)return c}else!f||e&&"not"===e[0]||(c=a[0],b&&c.length>b&&(c=c.slice(0,b)));return c}function B(a){return"string"===typeof a}function x(a){return a.constructor===Array}function G(a){return"function"===typeof a}function D(a){return"object"===typeof a}function y(a){return"undefined"===typeof a}function T(a){const b=Array(a);for(let c=
0;c<a;c++)b[c]=q();return b}function q(){return Object.create(null)}const v={encode:"icase",c:"forward",m:!1,cache:!1,async:!1,F:!1,w:!1,a:!1,C:!1,b:9,threshold:0,depth:0},U={memory:{encode:"extra",c:"strict",threshold:0,b:1},speed:{encode:"icase",c:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",c:"full",threshold:1,b:3},score:{encode:"extra",c:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",c:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",c:"strict",threshold:8,b:9,depth:1}},
M=[];let Y=0;const V=/\W+/,W={},X={};l.create=function(a){return new l(a)};l.registerMatcher=function(a){for(const b in a)a.hasOwnProperty(b)&&M.push(g(b),a[b]);return this};l.registerEncoder=function(a,b){K[a]=b.bind(K);return this};l.registerLanguage=function(a,b){W[a]=b.filter;X[a]=b.stemmer;return this};l.encode=function(a,b){return K[a](b)};l.prototype.init=function(a,b){this.o=[];if(b){var c=b.preset;a=b}else a||(a=v),c=a.preset;b={};B(a)?(b=U[a],a={}):c&&(b=U[c]);this.c=a.tokenize||b.c||this.c||
v.c;this.w=a.rtl||this.w||v.w;this.async="undefined"===typeof Promise||y(c=a.async)?this.async||v.async:c;this.threshold=y(c=a.threshold)?b.threshold||this.threshold||v.threshold:c;this.b=y(c=a.resolution)?c=b.b||this.b||v.b:c;c<=this.threshold&&(this.b=this.threshold+1);this.depth=y(c=a.depth)?b.depth||this.depth||v.depth:c;this.C=y(c=a.paging)?this.C||v.C:c;this.m=y(c=a.suggest)?this.m||v.m:c;this.s=(c=y(c=a.encode)?b.encode||v.encode:c)&&K[c]&&K[c].bind(K)||(G(c)?c:this.s||!1);(c=a.matcher)&&this.addMatcher(c);
if(c=a.filter){B(c)&&(c=W[c]);if(x(c)){b=this.s;var d=q();for(var e=0;e<c.length;e++){var h=b?b(c[e]):c[e];d[h]=1}c=d}this.filter=c}if(c=a.stemmer){var f;b=B(c)?X[c]:c;d=this.s;e=[];for(f in b)b.hasOwnProperty(f)&&(h=d?d(f):f,e.push(g(h+"($|\\W)"),d?d(b[f]):b[f]));this.stemmer=f=e}this.a=e=(c=a.doc)?c:this.a||v.a;this.i=T(this.b-(this.threshold||0));this.h=q();this.f=q();if(e){this.g=q();a.doc=null;f=e.index={};b=e.keys=[];d=e.field;h=e.tag;x(e.id)||(e.id=e.id.split(":"));if(h){this.A=q();let b=q();
if(d)if(B(d))b[d]=a;else if(x(d))for(let c=0;c<d.length;c++)b[d[c]]=a;else D(d)&&(b=d);x(h)||(e.tag=h=[h]);for(d=0;d<h.length;d++)this.A[h[d]]=q();this.D=h;d=b}if(d){let c;x(d)||(D(d)?(c=d,e.field=d=Object.keys(d)):e.field=d=[d]);for(e=0;e<d.length;e++)h=d[e],x(h)||(c&&(a=c[h]),b[e]=h,d[e]=h.split(":")),f[h]=new l(a),f[h].g=this.g}}this.v=!0;this.j=(this.cache=c=y(c=a.cache)?this.cache||v.cache:c)?new ca(c):!1;return this};l.prototype.encode=function(a){a&&M.length&&(a=H(a,M));a&&this.o.length&&(a=
H(a,this.o));a&&this.s&&(a=this.s(a));a&&this.stemmer&&(a=H(a,this.stemmer));return a};l.prototype.addMatcher=function(a){const b=this.o;for(const c in a)a.hasOwnProperty(c)&&b.push(g(c),a[c]);return this};l.prototype.add=function(a,b,c,d,e){if(this.a&&D(a))return this.u("add",a,b);if(b&&B(b)&&(a||0===a)){var h="@"+a;if(this.f[h]&&!d)return this.update(a,b);if(!e){if(this.async&&"function"!==typeof importScripts){let e=this;h=new Promise(function(c){setTimeout(function(){e.add(a,b,null,d,!0);e=null;
c()})});if(c)h.then(c);else return h;return this}if(c)return this.add(a,b,null,d,!0),c(),this}b=this.encode(b);if(!b.length)return this;c=this.c;e=G(c)?c(b):b.split(V);this.filter&&(e=E(e,this.filter));const r=q();r._ctx=q();const n=e.length,p=this.threshold,z=this.depth,u=this.b,l=this.i,w=this.w;for(let b=0;b<n;b++){var f=e[b];if(f){var k=f.length,t=(w?b+1:n-b)/n,g="";switch(c){case "reverse":case "both":for(var m=k;--m;)g=f[m]+g,L(l,r,g,a,w?1:(k-m)/k,t,p,u-1);g="";case "forward":for(m=0;m<k;m++)g+=
f[m],L(l,r,g,a,w?(m+1)/k:1,t,p,u-1);break;case "full":for(m=0;m<k;m++){const b=(w?m+1:k-m)/k;for(let c=k;c>m;c--)g=f.substring(m,c),L(l,r,g,a,b,t,p,u-1)}break;default:if(k=L(l,r,f,a,1,t,p,u-1),z&&1<n&&k>=p)for(k=r._ctx[f]||(r._ctx[f]=q()),f=this.h[f]||(this.h[f]=T(u-(p||0))),t=b-z,g=b+z+1,0>t&&(t=0),g>n&&(g=n);t<g;t++)t!==b&&L(f,k,e[t],a,0,u-(t<b?b-t:t-b),p,u-1)}}}this.f[h]=1;this.v=!1}return this};l.prototype.u=function(a,b,c){if(x(b))for(let d=0,e=b.length;d<e;d++){if(d===e-1)return this.u(a,b[d],
c);this.u(a,b[d])}else{const g=this.a.index,l=this.a.keys;var d=this.a.tag,e=this.a.id;let m;let r;for(var h=0;h<e.length;h++)m=(m||b)[e[h]];if(d){for(e=0;e<d.length;e++){var f=d[e];var k=f.split(":");for(h=0;h<k.length;h++)r=(r||b)[k[h]];r="@"+r}k=this.A[f];k=k[r]||(k[r]=[])}if("remove"===a){delete this.g[m];for(let a=0,b=l.length;a<b;a++){if(a===b-1)return g[l[a]].remove(m,c);g[l[a]].remove(m)}}e=this.a.field;k&&(k[k.length]=b);for(let h=0,k=e.length;h<k;h++){d=e[h];let t;for(f=0;f<d.length;f++)t=
(t||b)[d[f]];this.g[m]=b;d=g[l[h]];f="add"===a?d.add:d.update;if(h===k-1)return f.call(d,m,t,c);f.call(d,m,t)}}};l.prototype.update=function(a,b,c){if(this.a&&D(a))return this.u("update",a,b);this.f["@"+a]&&B(b)&&(this.remove(a),this.add(a,b,c,!0));return this};l.prototype.remove=function(a,b,c){if(this.a&&D(a))return this.u("remove",a,b);var d="@"+a;if(this.f[d]){if(!c){if(this.async&&"function"!==typeof importScripts){let c=this;d=new Promise(function(b){setTimeout(function(){c.remove(a,null,!0);
c=null;b()})});if(b)d.then(b);else return d;return this}if(b)return this.remove(a,null,!0),b(),this}for(b=0;b<this.b-(this.threshold||0);b++)N(this.i[b],a);this.depth&&N(this.h,a);delete this.f[d];this.v=!1}return this};let A;l.prototype.search=function(a,b,c,d){if(D(b)){if(x(b))for(var e=0;e<b.length;e++)b[e].query=a;else b.query=a;a=b;b=0}let h=[],f=a;let k;if(D(a)&&!x(a)){(c=a.callback||b)&&(f.callback=null);k=a.sort;b=a.limit;var g=a.threshold;a=a.query}if(this.a){g=this.a.index;const t=f.where;
var l=f.bool||"or",m=f.field;let p=l;let q;if(m)x(m)||(m=[m]);else if(x(f)){var r=f;m=[];p=[];for(var n=0;n<f.length;n++)d=f[n],e=d.bool||l,m[n]=d.field,p[n]=e,"not"===e&&(q=!0)}else m=this.a.keys;l=m.length;for(n=0;n<l;n++)r&&(f=r[n]),h[n]=g[m[n]].search(f);if(c)return c(F.call(this,a,p,h,k,b,t,void 0,q));if(this.async){const c=this;return new Promise(function(d){Promise.all(h).then(function(e){d(F.call(c,a,p,e,k,b,t,void 0,q))})})}return F.call(this,a,p,h,k,b,t,void 0,q)}g||(g=this.threshold||0);
G(b)?(c=b,b=1E3):b||0===b||(b=1E3);if(!d){if(this.async&&"function"!==typeof importScripts){let a=this;g=new Promise(function(c){setTimeout(function(){c(a.search(f,b,null,!0));a=null})});if(c)g.then(c);else return g;return this}if(c)return c(this.search(f,b,null,!0)),this}if(!a||!B(a))return h;f=a;if(this.cache)if(this.v){if(c=this.j.get(a))return c}else this.j.clear(),this.v=!0;f=this.encode(f);if(!f.length)return h;c=this.c;c=G(c)?c(f):f.split(V);this.filter&&(c=E(c,this.filter));r=c.length;d=!0;
e=[];const p=q();1<r&&(this.depth?(m=!0,n=c[0],p[n]=1):c.sort(ba));if(!m||(l=this.h)[n]){const a=this.b;for(let b=m?1:0;b<r;b++){const f=c[b];if(f){if(!p[f]){const b=[];let c=!1,h=0;if(n=m?l[n]:this.i){let d;for(let e=0;e<a-g;e++)if(d=n[e][f])b[h++]=d,c=!0}if(c)e[e.length]=1<h?b.concat.apply([],b):b[0];else if(!this.m){d=!1;break}p[f]=1}n=f}}}else d=!1;this.a||(d&&(h=R(e,b,void 0,this.m)),this.cache&&this.j.set(a,h));return h};l.prototype.find=function(a,b){return this.where(a,b,1)[0]||null};l.prototype.where=
function(a,b,c,d){const e=d||this.g,h=[];let f=0;let g;if("number"===typeof a)return[e[a]];if(B(a)){if(y(b))return[e[a]];if("id"===a)return[e[b]];var l=[a];var q=1;var m=[a.split(":")];g=!0}else{if(G(a)){b=d||Object.keys(e);c=b.length;for(l=0;l<c;l++)q=d?d[l]:e[b[l]],a(q)&&(h[f++]=q);return h}c||(c=b);l=Object.keys(a);q=l.length;g=!1;if(1===q&&"id"===l[0])return[e[a.id]];if((m=this.D)&&!d)for(var r=0;r<m.length;r++){var n=m[r],p=a[n];if(!y(p)){d=this.A[n]["@"+p];if(0===--q)return d;l.splice(l.indexOf(n),
1);delete a[n];break}}m=Array(q);for(r=0;r<q;r++)m[r]=l[r].split(":")}r=d||Object.keys(e);n=r.length;for(p=0;p<n;p++){const k=d?d[p]:e[r[p]];let n=!0;for(let c=0;c<q;c++){g||(b=a[l[c]]);const d=m[c],e=d.length;let f=k;if(1<e)for(let b=0;b<e;b++)f=f[d[b]];else f=f[d[0]];if(f!==b){n=!1;break}}if(n&&(h[f++]=k,c&&f===c))break}return h};l.prototype.info=function(){return{id:this.id,items:this.length,cache:this.cache&&this.cache.l?this.cache.l.length:!1,matcher:M.length+(this.o?this.o.length:0),worker:this.F,
threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&"strict"===this.c}};l.prototype.clear=function(){return this.destroy().init()};l.prototype.destroy=function(){this.cache&&(this.j.clear(),this.j=null);this.i=this.h=this.f=null;if(this.a){const a=this.a.keys;for(let b=0;b<a.length;b++)this.a.index[a[b]].destroy();this.a=this.g=null}return this};l.prototype.export=function(){if(this.a){const a=this.a.keys,b=Array(a.length+1);let c=0;for(;c<a.length;c++){const d=this.a.index[a[c]];
b[c]=[d.i,d.h,d.f]}b[c]=this.g;return JSON.stringify(b)}return JSON.stringify([this.i,this.h,this.f])};l.prototype.import=function(a){a=JSON.parse(a);if(this.a){const b=this.a.keys,c=b.length;for(let d=0;d<c;d++){const e=this.a.index[b[d]];e.i=a[d][0];e.h=a[d][1];e.f=a[d][2];e.g=a[c]}this.g=a[c]}else this.i=a[0],this.h=a[1],this.f=a[2]};const K={icase:function(a){return a.toLowerCase()},simple:function(){const a=[g("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"),"a",g("[\u00e8\u00e9\u00ea\u00eb]"),"e",
g("[\u00ec\u00ed\u00ee\u00ef]"),"i",g("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"),"o",g("[\u00f9\u00fa\u00fb\u00fc\u0171]"),"u",g("[\u00fd\u0177\u00ff]"),"y",g("\u00f1"),"n",g("\u00e7"),"c",g("\u00df"),"s",g(" & ")," and ",g("[-/]")," ",g("[^a-z0-9 ]"),"",g("\\s+")," "];return function(b){b=H(b.toLowerCase(),a);return" "===b?"":b}}(),advanced:function(){const a=[g("ae"),"a",g("ai"),"ei",g("ay"),"ei",g("ey"),"ei",g("oe"),"o",g("ue"),"u",g("ie"),"i",g("sz"),"s",g("zs"),"s",g("sh"),"s",g("ck"),"k",g("cc"),
"k",g("dt"),"t",g("ph"),"f",g("pf"),"f",g("ou"),"o",g("uo"),"u"];return function(b,c){if(!b)return b;b=this.simple(b);2<b.length&&(b=H(b,a));c||1<b.length&&(b=O(b));return b}}(),extra:function(){const a=[g("p"),"b",g("z"),"s",g("[cgq]"),"k",g("n"),"m",g("d"),"t",g("[vw]"),"f",g("[aeiouy]"),""];return function(b){if(!b)return b;b=this.advanced(b,!0);if(1<b.length){b=b.split(" ");for(let c=0;c<b.length;c++){const d=b[c];1<d.length&&(b[c]=d[0]+H(d.substring(1),a))}b=b.join(" ");b=O(b)}return b}}(),balance:function(){const a=
[g("[-/]")," ",g("[^a-z0-9 ]"),"",g("\\s+")," "];return function(b){return O(H(b.toLowerCase(),a))}}()},ca=function(){function a(b){this.clear();this.B=!0!==b&&b}a.prototype.clear=function(){this.cache=q();this.count=q();this.index=q();this.l=[]};a.prototype.set=function(b,a){if(this.B&&y(this.cache[b])){let c=this.l.length;if(c===this.B){c--;const b=this.l[c];delete this.cache[b];delete this.count[b];delete this.index[b]}this.index[b]=c;this.l[c]=b;this.count[b]=-1;this.cache[b]=a;this.get(b)}else this.cache[b]=
a};a.prototype.get=function(b){const a=this.cache[b];if(this.B&&a){var d=++this.count[b];const a=this.index;let c=a[b];if(0<c){const f=this.l;for(var e=c;this.count[f[--c]]<=d&&-1!==c;);c++;if(c!==e){for(d=e;d>c;d--)e=f[d-1],f[d]=e,a[e]=d;f[c]=b;a[b]=c}}}return a};return a}();return l}(!1),this);
'use strict';(function(l,I,J){let G;(G=J.define)&&G.amd?G([],function(){return I}):(G=J.modules)?G[l.toLowerCase()]=I:"object"===typeof exports?module.exports=I:J[l]=I})("FlexSearch",function(){function l(b,a){const c=a?a.id:b&&b.id;this.id=c||0===c?c:Z++;this.init(b,a);G(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].f):Object.keys(this.f)});G(this,"length",function(){return this.index.length})}function I(b,a){const c=b.length,d=H(a),e=[];for(let f=0,g=0;f<c;f++){const c=
b[f];if(d&&a(c)||!d&&!a[c])e[g++]=c}return e}function J(b,a,c,d,e,f,g,m,n,q){c=R(c,g?0:e,m,f,a,n,q);let k;m&&(m=c.page,k=c.next,c=c.result);if(g)a=this.where(g,null,e,c);else{a=c;c=this.g;e=a.length;f=Array(e);for(g=0;g<e;g++)f[g]=c[a[g]];a=f}c=a;d&&(H(d)||(v=d.split(":"),1<v.length?d=aa:(v=v[0],d=ba)),c.sort(d));c=K(m,k,c);this.cache&&this.j.set(b,c);return c}function G(b,a,c){Object.defineProperty(b,a,{get:c})}function h(b){return new RegExp(b,"g")}function L(b,a){for(let c=0;c<a.length;c+=2)b=
b.replace(a[c],a[c+1]);return b}function N(b,a,c,d,e,f,g,m){if(a[c])return a[c];e=e?(m-(g||m/1.5))*f+(g||m/1.5)*e:f;a[c]=e;e>=g&&(b=b[m-(e+.5>>0)],b=b[c]||(b[c]=[]),b[b.length]=d);return e}function P(b,a){if(b){const c=Object.keys(b);for(let d=0,e=c.length;d<e;d++){const e=c[d],g=b[e];if(g)for(let c=0,d=g.length;c<d;c++)if(g[c]===a){1===d?delete b[e]:g.splice(c,1);break}else C(g[c])&&P(g[c],a)}}}function Q(b){let a="",c="";var d="";for(let e=0;e<b.length;e++){const f=b[e];if(f!==c)if(e&&"h"===f){if(d=
"a"===d||"e"===d||"i"===d||"o"===d||"u"===d||"y"===d,("a"===c||"e"===c||"i"===c||"o"===c||"u"===c||"y"===c)&&d||" "===c)a+=f}else a+=f;d=e===b.length-1?"":b[e+1];c=f}return a}function ca(b,a){b=b.length-a.length;return 0>b?1:b?-1:0}function ba(b,a){b=b[v];a=a[v];return b<a?-1:b>a?1:0}function aa(b,a){const c=v.length;for(let d=0;d<c;d++)b=b[v[d]],a=a[v[d]];return b<a?-1:b>a?1:0}function K(b,a,c){return b?{page:b,next:a?""+a:null,result:c}:c}function R(b,a,c,d,e,f,g){let m;f=[];let n;const q=b.length;
!0===c?(c="0",n=""):n=c&&c.split(":");if(1<q){const t=r();let u=[],l,z,w=-1;var k;let A;let T=!0,D,B=0,y,x,v;n&&(2===n.length?(v=n,n=!1):n=parseInt(n[0],10));if(g){for(l=r();++w<q;)if("not"===e[w])for(z=b[w],A=z.length,k=0;k<A;)l["@"+z[k++]]=1;else x=w+1;if(!x)return K(c,m,f);w=-1}else y=E(e)&&e;for(;++w<q;){const da=w===(x||q)-1;let r,S;if(!y||!w)if((k=y||e&&e[w])&&"and"!==k)if("or"===k)S=!0;else continue;else r=!0;z=b[w];A=z.length;if(!A){if(r&&!d)return K(c,m,z);continue}if(T)if(D){var h=D.length;
for(k=0;k<h;)t["@"+D[k++]]=1;D=null;T=!1}else{D=z;continue}let v=!1;for(k=0;k<A;){h=z[k++];var p="@"+h;const b=S?w:t[p];if(b&&(!g||!l[p]))if(b===w){if(da){if(!n||--n<B)if(f[B++]=h,a&&B===a)return K(c,B,f)}else t[p]=w+1;v=!0}else d&&(p=u[b]||(u[b]=[]),p[p.length]=h)}if(r&&!v&&!d)break}if(D)if(b=D.length,g)for(k=n?parseInt(n,10):0;k<b;){if(e=D[k++],!l["@"+e]&&(!n||--n<B)&&(f[B++]=e,a&&B===a))return K(c,k,f)}else f=D;if(d)for(B=f.length,v?(w=parseInt(v[0],10)+1,k=parseInt(v[1],10)):(w=u.length,k=0);w--;)if(h=
u[w])for(A=h.length;k<A;k++)if(d=h[k],!g||!l["@"+d])if(f[B++]=d,a&&B===a)return K(c,w+":"+k,f)}else q&&(e&&"not"===e[0]||(f=b[0]));a&&(g=c?parseInt(c,10):0,m=g+a,m<f.length?f=f.slice(g,m):g&&(f=f.slice(g)));return K(c,m,f)}function E(b){return"string"===typeof b}function y(b){return b.constructor===Array}function H(b){return"function"===typeof b}function C(b){return"object"===typeof b}function F(b){return"undefined"===typeof b}function U(b){const a=Array(b);for(let c=0;c<b;c++)a[c]=r();return a}function r(){return Object.create(null)}
const x={encode:"icase",c:"forward",cache:!1,async:!1,C:!1,v:!1,a:!1,b:9,threshold:0,depth:0},V={memory:{encode:"extra",c:"strict",threshold:0,b:1},speed:{encode:"icase",c:"strict",threshold:1,b:3,depth:2},match:{encode:"extra",c:"full",threshold:1,b:3},score:{encode:"extra",c:"strict",threshold:1,b:9,depth:4},balance:{encode:"balance",c:"strict",threshold:0,b:3,depth:3},fast:{encode:"icase",c:"strict",threshold:8,b:9,depth:1}},O=[];let Z=0;const W=/\W+/,X={},Y={};l.create=function(b){return new l(b)};
l.registerMatcher=function(b){for(const a in b)b.hasOwnProperty(a)&&O.push(h(a),b[a]);return this};l.registerEncoder=function(b,a){M[b]=a.bind(M);return this};l.registerLanguage=function(b,a){X[b]=a.filter;Y[b]=a.stemmer;return this};l.encode=function(b,a){return M[b](a)};l.prototype.init=function(b,a){this.m=[];if(a){var c=a.preset;b=a}else b||(b=x),c=b.preset;a={};E(b)?(a=V[b],b={}):c&&(a=V[c]);this.c=b.tokenize||a.c||this.c||x.c;this.v=b.rtl||this.v||x.v;this.async="undefined"===typeof Promise||
F(c=b.async)?this.async||x.async:c;this.threshold=F(c=b.threshold)?a.threshold||this.threshold||x.threshold:c;this.b=F(c=b.resolution)?c=a.b||this.b||x.b:c;c<=this.threshold&&(this.b=this.threshold+1);this.depth="strict"!==this.c||F(c=b.depth)?a.depth||this.depth||x.depth:c;this.o=(c=F(c=b.encode)?a.encode||x.encode:c)&&M[c]&&M[c].bind(M)||(H(c)?c:this.o||!1);(c=b.matcher)&&this.addMatcher(c);if(c=b.filter){E(c)&&(c=X[c]);if(y(c)){a=this.o;var d=r();for(var e=0;e<c.length;e++){var f=a?a(c[e]):c[e];
d[f]=1}c=d}this.filter=c}if(c=b.stemmer){var g;a=E(c)?Y[c]:c;d=this.o;e=[];for(g in a)a.hasOwnProperty(g)&&(f=d?d(g):g,e.push(h(f+"($|\\W)"),d?d(a[g]):a[g]));this.stemmer=g=e}this.a=e=(c=b.doc)?c:this.a||x.a;this.i=U(this.b-(this.threshold||0));this.h=r();this.f=r();if(e){this.g=r();b.doc=null;g=e.index={};a=e.keys=[];d=e.field;f=e.tag;y(e.id)||(e.id=e.id.split(":"));if(f){this.w=r();let a=r();if(d)if(E(d))a[d]=b;else if(y(d))for(let c=0;c<d.length;c++)a[d[c]]=b;else C(d)&&(a=d);y(f)||(e.tag=f=[f]);
for(d=0;d<f.length;d++)this.w[f[d]]=r();this.B=f;d=a}if(d){let c;y(d)||(C(d)?(c=d,e.field=d=Object.keys(d)):e.field=d=[d]);for(e=0;e<d.length;e++)f=d[e],y(f)||(c&&(b=c[f]),a[e]=f,d[e]=f.split(":")),g[f]=new l(b),g[f].g=this.g}}this.u=!0;this.j=(this.cache=c=F(c=b.cache)?this.cache||x.cache:c)?new ea(c):!1;return this};l.prototype.encode=function(b){b&&O.length&&(b=L(b,O));b&&this.m.length&&(b=L(b,this.m));b&&this.o&&(b=this.o(b));b&&this.stemmer&&(b=L(b,this.stemmer));return b};l.prototype.addMatcher=
function(b){const a=this.m;for(const c in b)b.hasOwnProperty(c)&&a.push(h(c),b[c]);return this};l.prototype.add=function(b,a,c,d,e){if(this.a&&C(b))return this.s("add",b,a);if(a&&E(a)&&(b||0===b)){var f="@"+b;if(this.f[f]&&!d)return this.update(b,a);if(!e){if(this.async&&"function"!==typeof importScripts){let e=this;f=new Promise(function(c){setTimeout(function(){e.add(b,a,null,d,!0);e=null;c()})});if(c)f.then(c);else return f;return this}if(c)return this.add(b,a,null,d,!0),c(),this}a=this.encode(a);
if(!a.length)return this;c=this.c;e=H(c)?c(a):a.split(W);this.filter&&(e=I(e,this.filter));const t=r();t._ctx=r();const p=e.length,q=this.threshold,u=this.depth,l=this.b,z=this.i,w=this.v;for(let a=0;a<p;a++){var g=e[a];if(g){var m=g.length,n=(w?a+1:p-a)/p,h="";switch(c){case "reverse":case "both":for(var k=m;--k;)h=g[k]+h,N(z,t,h,b,w?1:(m-k)/m,n,q,l-1);h="";case "forward":for(k=0;k<m;k++)h+=g[k],N(z,t,h,b,w?(k+1)/m:1,n,q,l-1);break;case "full":for(k=0;k<m;k++){const a=(w?k+1:m-k)/m;for(let c=m;c>
k;c--)h=g.substring(k,c),N(z,t,h,b,a,n,q,l-1)}break;default:if(m=N(z,t,g,b,1,n,q,l-1),u&&1<p&&m>=q)for(m=t._ctx[g]||(t._ctx[g]=r()),g=this.h[g]||(this.h[g]=U(l-(q||0))),n=a-u,h=a+u+1,0>n&&(n=0),h>p&&(h=p);n<h;n++)n!==a&&N(g,m,e[n],b,0,l-(n<a?a-n:n-a),q,l-1)}}}this.f[f]=1;this.u=!1}return this};l.prototype.s=function(b,a,c){if(y(a))for(let d=0,e=a.length;d<e;d++){if(d===e-1)return this.s(b,a[d],c);this.s(b,a[d])}else{const n=this.a.index,m=this.a.keys;var d=this.a.tag,e=this.a.id;let k;let l;for(var f=
0;f<e.length;f++)k=(k||a)[e[f]];if(d){for(e=0;e<d.length;e++){var g=d[e];var h=g.split(":");for(f=0;f<h.length;f++)l=(l||a)[h[f]];l="@"+l}h=this.w[g];h=h[l]||(h[l]=[])}if("remove"===b){delete this.g[k];for(let a=0,b=m.length;a<b;a++){if(a===b-1)return n[m[a]].remove(k,c);n[m[a]].remove(k)}}e=this.a.field;h&&(h[h.length]=a);for(let f=0,h=e.length;f<h;f++){d=e[f];let l;for(g=0;g<d.length;g++)l=(l||a)[d[g]];this.g[k]=a;d=n[m[f]];g="add"===b?d.add:d.update;if(f===h-1)return g.call(d,k,l,c);g.call(d,k,
l)}}};l.prototype.update=function(b,a,c){if(this.a&&C(b))return this.s("update",b,a);this.f["@"+b]&&E(a)&&(this.remove(b),this.add(b,a,c,!0));return this};l.prototype.remove=function(b,a,c){if(this.a&&C(b))return this.s("remove",b,a);var d="@"+b;if(this.f[d]){if(!c){if(this.async&&"function"!==typeof importScripts){let c=this;d=new Promise(function(a){setTimeout(function(){c.remove(b,null,!0);c=null;a()})});if(a)d.then(a);else return d;return this}if(a)return this.remove(b,null,!0),a(),this}for(a=
0;a<this.b-(this.threshold||0);a++)P(this.i[a],b);this.depth&&P(this.h,b);delete this.f[d];this.u=!1}return this};let v;l.prototype.search=function(b,a,c,d){if(C(a)){if(y(a))for(var e=0;e<a.length;e++)a[e].query=b;else a.query=b;b=a;a=0}let f=[],g=b;let h,l,q;if(C(b)&&!y(b)){(c=b.callback||H(a)&&a)&&(g.callback=null);l=b.sort;h=b.page;a=b.limit;var k=b.threshold;q=b.suggest;b=b.query}if(this.a){k=this.a.index;const m=g.where;var t=g.bool||"or",p=g.field;let n=t;let A,r;if(p)y(p)||(p=[p]);else if(y(g)){var v=
g;p=[];n=[];for(var u=0;u<g.length;u++)d=g[u],e=d.bool||t,p[u]=d.field,n[u]=e,"not"===e?A=!0:"and"===e&&(r=!0)}else p=this.a.keys;t=p.length;for(u=0;u<t;u++)v&&(g=v[u]),E(g)||(g.page=null,g.limit=0),f[u]=k[p[u]].search(g,0);if(c)return c(J.call(this,b,n,f,l,a,q,m,h,r,A));if(this.async){const c=this;return new Promise(function(d){Promise.all(f).then(function(e){d(J.call(c,b,n,e,l,a,q,m,h,r,A))})})}return J.call(this,b,n,f,l,a,q,m,h,r,A)}k||(k=this.threshold||0);H(a)?(c=a,a=1E3):a||0===a||(a=1E3);if(!d){if(this.async&&
"function"!==typeof importScripts){let b=this;k=new Promise(function(c){setTimeout(function(){c(b.search(g,a,null,!0));b=null})});if(c)k.then(c);else return k;return this}if(c)return c(this.search(g,a,null,!0)),this}if(!b||!E(b))return f;g=b;if(this.cache)if(this.u){if(c=this.j.get(b))return c}else this.j.clear(),this.u=!0;g=this.encode(g);if(!g.length)return f;c=this.c;c=H(c)?c(g):g.split(W);this.filter&&(c=I(c,this.filter));v=c.length;d=!0;e=[];const x=r();1<v&&(this.depth?(p=!0,u=c[0],x[u]=1):
c.sort(ca));if(!p||(t=this.h)[u]){const a=this.b;for(let b=p?1:0;b<v;b++){const f=c[b];if(f){if(!x[f]){const b=[];let c=!1,g=0;if(u=p?t[u]:this.i){let d;for(let e=0;e<a-k;e++)if(d=u[e][f])b[g++]=d,c=!0}if(c)e[e.length]=1<g?b.concat.apply([],b):b[0];else if(!q){d=!1;break}x[f]=1}u=f}}}else d=!1;d&&(f=R(e,a,h,q));this.cache&&this.j.set(b,f);return f};l.prototype.find=function(b,a){return this.where(b,a,1)[0]||null};l.prototype.where=function(b,a,c,d){const e=this.g,f=[];let g=0;let h;var l;if(C(b)){c||
(c=a);var q=Object.keys(b);var k=q.length;h=!1;if(1===k&&"id"===q[0])return[e[b.id]];if((l=this.B)&&!d)for(var t=0;t<l.length;t++){var p=l[t],r=b[p];if(!F(r)){d=this.w[p]["@"+r];if(0===--k)return d;q.splice(q.indexOf(p),1);delete b[p];break}}l=Array(k);for(t=0;t<k;t++)l[t]=q[t].split(":")}else{if(H(b)){a=d||Object.keys(e);c=a.length;for(q=0;q<c;q++)k=e[a[q]],b(k)&&(f[g++]=k);return f}if(F(a))return[e[b]];if("id"===b)return[e[a]];q=[b];k=1;l=[b.split(":")];h=!0}d=d||Object.keys(e);t=d.length;for(p=
0;p<t;p++){r=e[d[p]];let m=!0;for(let c=0;c<k;c++){h||(a=b[q[c]]);const d=l[c],e=d.length;let f=r;if(1<e)for(let a=0;a<e;a++)f=f[d[a]];else f=f[d[0]];if(f!==a){m=!1;break}}if(m&&(f[g++]=r,c&&g===c))break}return f};l.prototype.info=function(){return{id:this.id,items:this.length,cache:this.cache&&this.cache.l?this.cache.l.length:!1,matcher:O.length+(this.m?this.m.length:0),worker:this.C,threshold:this.threshold,depth:this.depth,resolution:this.b,contextual:this.depth&&"strict"===this.c}};l.prototype.clear=
function(){return this.destroy().init()};l.prototype.destroy=function(){this.cache&&(this.j.clear(),this.j=null);this.i=this.h=this.f=null;if(this.a){const b=this.a.keys;for(let a=0;a<b.length;a++)this.a.index[b[a]].destroy();this.a=this.g=null}return this};l.prototype.export=function(){if(this.a){const b=this.a.keys,a=Array(b.length+1);let c=0;for(;c<b.length;c++){const d=this.a.index[b[c]];a[c]=[d.i,d.h,Object.keys(d.f)]}a[c]=this.g;return JSON.stringify(a)}return JSON.stringify([this.i,this.h,
Object.keys(this.f)])};l.prototype.import=function(b){b=JSON.parse(b);const a=r();if(this.a){var c=this.a.keys,d=c.length,e=b[0][2];for(var f=0;f<e.length;f++)a[e[f]]=1;for(e=0;e<d;e++)f=this.a.index[c[e]],f.i=b[e][0],f.h=b[e][1],f.f=a,f.g=b[d];this.g=b[d]}else{c=b[2];for(d=0;d<c.length;d++)a[c[d]]=1;this.i=b[0];this.h=b[1];this.f=a}};const M={icase:function(b){return b.toLowerCase()},simple:function(){const b=[h("[\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5]"),"a",h("[\u00e8\u00e9\u00ea\u00eb]"),"e",h("[\u00ec\u00ed\u00ee\u00ef]"),
"i",h("[\u00f2\u00f3\u00f4\u00f5\u00f6\u0151]"),"o",h("[\u00f9\u00fa\u00fb\u00fc\u0171]"),"u",h("[\u00fd\u0177\u00ff]"),"y",h("\u00f1"),"n",h("\u00e7"),"c",h("\u00df"),"s",h(" & ")," and ",h("[-/]")," ",h("[^a-z0-9 ]"),"",h("\\s+")," "];return function(a){a=L(a.toLowerCase(),b);return" "===a?"":a}}(),advanced:function(){const b=[h("ae"),"a",h("ai"),"ei",h("ay"),"ei",h("ey"),"ei",h("oe"),"o",h("ue"),"u",h("ie"),"i",h("sz"),"s",h("zs"),"s",h("sh"),"s",h("ck"),"k",h("cc"),"k",h("dt"),"t",h("ph"),"f",
h("pf"),"f",h("ou"),"o",h("uo"),"u"];return function(a,c){if(!a)return a;a=this.simple(a);2<a.length&&(a=L(a,b));c||1<a.length&&(a=Q(a));return a}}(),extra:function(){const b=[h("p"),"b",h("z"),"s",h("[cgq]"),"k",h("n"),"m",h("d"),"t",h("[vw]"),"f",h("[aeiouy]"),""];return function(a){if(!a)return a;a=this.advanced(a,!0);if(1<a.length){a=a.split(" ");for(let c=0;c<a.length;c++){const d=a[c];1<d.length&&(a[c]=d[0]+L(d.substring(1),b))}a=a.join(" ");a=Q(a)}return a}}(),balance:function(){const b=[h("[-/]"),
" ",h("[^a-z0-9 ]"),"",h("\\s+")," "];return function(a){return Q(L(a.toLowerCase(),b))}}()},ea=function(){function b(a){this.clear();this.A=!0!==a&&a}b.prototype.clear=function(){this.cache=r();this.count=r();this.index=r();this.l=[]};b.prototype.set=function(a,b){if(this.A&&F(this.cache[a])){let c=this.l.length;if(c===this.A){c--;const a=this.l[c];delete this.cache[a];delete this.count[a];delete this.index[a]}this.index[a]=c;this.l[c]=a;this.count[a]=-1;this.cache[a]=b;this.get(a)}else this.cache[a]=
b};b.prototype.get=function(a){const b=this.cache[a];if(this.A&&b){var d=++this.count[a];const b=this.index;let c=b[a];if(0<c){const f=this.l;for(var e=c;this.count[f[--c]]<=d&&-1!==c;);c++;if(c!==e){for(d=e;d>c;d--)e=f[d-1],f[d]=e,b[e]=d;f[c]=a;b[a]=c}}}return b};return b}();return l}(!1),this);
{
"name": "flexsearch",
"version": "0.5.31",
"version": "0.6.0",
"description": "Next-Generation full text search library with zero dependencies.",

@@ -29,8 +29,8 @@ "homepage": "https://github.com/nextapps-de/flexsearch/",

"scripts": {
"build": "node compile RELEASE=min DEBUG=false PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_PRESETS=true SUPPORT_SUGGESTIONS=true SUPPORT_SERIALIZE=true SUPPORT_INFO=true SUPPORT_DOCUMENTS=true SUPPORT_WHERE=true SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false",
"build-light": "node compile RELEASE=light DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_PRESETS=false SUPPORT_SUGGESTIONS=false SUPPORT_SERIALIZE=false SUPPORT_INFO=false SUPPORT_DOCUMENTS=false SUPPORT_WHERE=false SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false",
"build-compact": "node compile RELEASE=compact DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CACHE=false SUPPORT_ASYNC=true SUPPORT_PRESETS=true SUPPORT_SUGGESTIONS=false SUPPORT_SERIALIZE=false SUPPORT_INFO=false SUPPORT_DOCUMENTS=true SUPPORT_WHERE=false SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false",
"build-custom": "node compile RELEASE=custom DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_PRESETS=false SUPPORT_SUGGESTIONS=false SUPPORT_SERIALIZE=false SUPPORT_INFO=false SUPPORT_DOCUMENTS=false SUPPORT_WHERE=false SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false",
"build-es5": "node compile RELEASE=es5 DEBUG=true PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_PRESETS=true SUPPORT_SUGGESTIONS=true SUPPORT_SERIALIZE=true SUPPORT_INFO=true SUPPORT_DOCUMENTS=true SUPPORT_WHERE=true SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false LANGUAGE_OUT=ECMASCRIPT5_STRICT",
"build-node": "node compile RELEASE=node DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_PRESETS=true SUPPORT_SUGGESTIONS=true SUPPORT_SERIALIZE=true SUPPORT_INFO=true SUPPORT_DOCUMENTS=true SUPPORT_WHERE=true SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false",
"build": "node compile RELEASE=min DEBUG=false PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_PRESET=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_INFO=true SUPPORT_DOCUMENT=true SUPPORT_WHERE=true SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false",
"build-light": "node compile RELEASE=light DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_PRESET=false SUPPORT_SUGGESTION=false SUPPORT_SERIALIZE=false SUPPORT_INFO=false SUPPORT_DOCUMENT=false SUPPORT_WHERE=false SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false",
"build-compact": "node compile RELEASE=compact DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CACHE=false SUPPORT_ASYNC=true SUPPORT_PRESET=true SUPPORT_SUGGESTION=false SUPPORT_SERIALIZE=false SUPPORT_INFO=false SUPPORT_DOCUMENT=true SUPPORT_WHERE=false SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false",
"build-custom": "node compile RELEASE=custom DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=false SUPPORT_CACHE=false SUPPORT_ASYNC=false SUPPORT_PRESET=false SUPPORT_SUGGESTION=false SUPPORT_SERIALIZE=false SUPPORT_INFO=false SUPPORT_DOCUMENT=false SUPPORT_WHERE=false SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false",
"build-es5": "node compile RELEASE=es5 DEBUG=true PROFILER=false SUPPORT_WORKER=true SUPPORT_ENCODER=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_PRESET=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_INFO=true SUPPORT_DOCUMENT=true SUPPORT_WHERE=true SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false LANGUAGE_OUT=ECMASCRIPT5_STRICT",
"build-node": "node compile RELEASE=node DEBUG=false PROFILER=false SUPPORT_WORKER=false SUPPORT_ENCODER=true SUPPORT_CACHE=true SUPPORT_ASYNC=true SUPPORT_PRESET=true SUPPORT_SUGGESTION=true SUPPORT_SERIALIZE=true SUPPORT_INFO=true SUPPORT_DOCUMENT=true SUPPORT_WHERE=true SUPPORT_LANG_DE=false SUPPORT_LANG_EN=false",
"build-lang": "node compile RELEASE=lang",

@@ -37,0 +37,0 @@ "build-all": "npm run build && npm run build-light && npm run build-compact && npm run build-es5 && npm run build-node",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc