varApplication=function(e){functiont(r){if(n[r])returnn[r].exports;varo=n[r]={exports:{},id:r,loaded:!1};returne[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}varn={};returnt.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){n(1),e.exports=n(2)},function(e,t){"use strict";!function(e){functiont(e){if("string"!=typeofe&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))thrownewTypeError("Invalid character in header field name");returne.toLowerCase()}functionn(e){return"string"!=typeofe&&(e=String(e)),e}functionr(e){vart={next:function(){vart=e.shift();return{done:void0===t,value:t}}};returnm.iterable&&(t[Symbol.iterator]=function(){returnt}),t}functiono(e){this.map={},einstanceofo?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}functioni(e){returne.bodyUsed?Promise.reject(newTypeError("Already read")):void(e.bodyUsed=!0)}functiona(e){returnnewPromise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}functions(e){vart=newFileReader;returnt.readAsArrayBuffer(e),a(t)}functionu(e){vart=newFileReader;returnt.readAsText(e),a(t)}functionl(){returnthis.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeofe)this._bodyText=e;elseif(m.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;elseif(m.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;elseif(m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();elseif(e){if(!m.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))thrownewError("unsupported BodyInit type")}elsethis._bodyText="";this.headers.get("content-type")||("string"==typeofe?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob?(this.blob=function(){vare=i(this);if(e)returne;if(this._bodyBlob)returnPromise.resolve(this._bodyBlob);if(this._bodyFormData)thrownewError("could not read FormData body as blob");returnPromise.resolve(newBlob([this._bodyText]))},this.arrayBuffer=function(){returnthis.blob().then(s)},this.text=function(){vare=i(this);if(e)returne;if(this._bodyBlob)returnu(this._bodyBlob);if(this._bodyFormData)thrownewError("could not read FormData body as text");returnPromise.resolve(this._bodyText)}):this.text=function(){vare=i(this);returne?e:Promise.resolve(this._bodyText)},m.formData&&(this.formData=function(){returnthis.text().then(d)}),this.json=function(){returnthis.text().then(JSON.parse)},this}functionc(e){vart=e.toUpperCase();returny.indexOf(t)>-1?t:e}functionf(e,t){t=t||{};varn=t.body;if(f.prototype.isPrototypeOf(e)){if(e.bodyUsed)thrownewTypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=newo(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}elsethis.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=newo(t.headers)),this.method=c(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)thrownewTypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}functiond(e){vart=newFormData;returne.trim().split("&").forEach(function(e){if(e){varn=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}functionh(e){vart=newo,n=(e.getAllResponseHeaders()||"").trim().split("\n");returnn.forEach(function(e){varn=e.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();t.append(r,o)}),t}functionp(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headersinstanceofo?t.headers:newo(t.headers),this.url=t.url||"",th
i.EventEmitter=function(){this.events={}},i.EventEmitter.prototype.addListener=function(){vare=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeoft)thrownewTypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},i.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){varn=this.events[e].indexOf(t);this.events[e].splice(n,1),this.events[e].length||deletethis.events[e]}},i.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){vart=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void0,t)})}},i.EventEmitter.prototype.hasHandler=function(e){returneinthis.events},/*!
i.Pipeline=function(){this._stack=[]},i.Pipeline.registeredFunctions={},i.Pipeline.registerFunction=function(e,t){tinthis.registeredFunctions&&i.utils.warn("Overwriting existing registered function: "+t),e.label=t,i.Pipeline.registeredFunctions[e.label]=e},i.Pipeline.warnIfFunctionNotRegistered=function(e){vart=e.label&&e.labelinthis.registeredFunctions;t||i.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},i.Pipeline.load=function(e){vart=newi.Pipeline;returne.forEach(function(e){varn=i.Pipeline.registeredFunctions[e];if(!n)thrownewError("Cannot load un-registered function: "+e);t.add(n)}),t},i.Pipeline.prototype.add=function(){vare=Array.prototype.slice.call(arguments);e.forEach(function(e){i.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},i.Pipeline.prototype.after=function(e,t){i.Pipeline.warnIfFunctionNotRegistered(t);varn=this._stack.indexOf(e);if(n==-1)thrownewError("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},i.Pipeline.prototype.before=function(e,t){i.Pipeline.warnIfFunctionNotRegistered(t);varn=this._stack.indexOf(e);if(n==-1)thrownewError("Cannot find existingFn");this._stack.splice(n,0,t)},i.Pipeline.prototype.remove=function(e){vart=this._stack.indexOf(e);t!=-1&&this._stack.splice(t,1)},i.Pipeline.prototype.run=function(e){for(vart=[],n=e.length,r=this._stack.length,o=0;o<n;o++){for(vari=e[o],a=0;a<r&&(i=this._stack[a](i,o,e),void0!==i&&""!==i);a++);void0!==i&&""!==i&&t.push(i)}returnt},i.Pipeline.prototype.reset=function(){this._stack=[]},i.Pipeline.prototype.toJSON=function(){returnthis._stack.map(function(e){returni.Pipeline.warnIfFunctionNotRegistered(e),e.label})},/*!
i.Index=function(){this._fields=[],this._ref="id",this.pipeline=newi.Pipeline,this.documentStore=newi.Store,this.tokenStore=newi.TokenStore,this.corpusTokens=newi.SortedSet,this.eventEmitter=newi.EventEmitter,this.tokenizerFn=i.tokenizer,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},i.Index.prototype.on=function(){vare=Array.prototype.slice.call(arguments);returnthis.eventEmitter.addListener.apply(this.eventEmitter,e)},i.Index.prototype.off=function(e,t){returnthis.eventEmitter.removeListener(e,t)},i.Index.load=function(e){e.version!==i.version&&i.utils.warn("version mismatch: current "+i.version+" importing "+e.version);vart=newthis;returnt._fields=e.fields,t._ref=e.ref,t.tokenizer=i.tokenizer.load(e.tokenizer),t.documentStore=i.Store.load(e.documentStore),t.tokenStore=i.TokenStore.load(e.tokenStore),t.corpusTokens=i.SortedSet.load(e.corpusTokens),t.pipeline=i.Pipeline.load(e.pipeline),t},i.Index.prototype.field=function(e,t){vart=t||{},n={name:e,boost:t.boost||1};returnthis._fields.push(n),this},i.Index.prototype.ref=function(e){returnthis._ref=e,this},i.Index.prototype.tokenizer=function(e){vart=e.label&&e.labelini.tokenizer.registeredFunctions;returnt||i.utils.warn("Function is not a registered tokenizer. This may cause problems when serialising the index"),this.tokenizerFn=e,this},i.Index.prototype.add=function(e,t){varn={},r=newi.SortedSet,o=e[this._ref],t=void0===t||t;this._fields.forEach(function(t){varo=this.pipeline.run(this.tokenizerFn(e[t.name]));n[t.name]=o;for(vari=0;i<o.length;i++){vara=o[i];r.add(a),this.corpusTokens.add(a)}},this),this.documentStore.set(o,r);for(vara=0;a<r.length;a++){for(vars=r.elements[a],u=0,l=0;l<this._fields.length;l++){varc=this._fields[l],f=n[c.name],d=f.length;if(d){for(varh=0,p=0;p<d;p++)f[p]===s&&h++;u+=h/d*c.boost}}this.tokenStore.add(s,{ref:o,tf:u})}t&&this.eventEmitter.emit("add",e,this)},i.Index.prototype.remove=function(e,t){varn=e[this._ref],t=void0===t||t;if(this.documentStore.has(n)){varr=this.documentStore.get(n);this.documentStore.remove(n),r.forEach(function(e){this.tokenStore.remove(e,n)},this),t&&this.eventEmitter.emit("remove",e,this)}},i.Index.prototype.update=function(e,t){vart=void0===t||t;this.remove(e,!1),this.add(e,!1),t&&this.eventEmitter.emit("update",e,this)},i.Index.prototype.idf=function(e){vart="@"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,t))returnthis._idfCache[t];varn=this.tokenStore.count(e),r=1;returnn>0&&(r=1+Math.log(this.documentStore.length/n)),this._idfCache[t]=r},i.Index.prototype.search=function(e){vart=this.pipeline.run(this.tokenizerFn(e)),n=newi.Vector,r=[],o=this._fields.reduce(function(e,t){returne+t.boost},0),a=t.some(function(e){returnthis.tokenStore.has(e)},this);if(!a)return[];t.forEach(function(e,t,a){vars=1/a.length*this._fields.length*o,u=this,l=this.tokenStore.expand(e).reduce(function(t,r){varo=u.corpusTokens.indexOf(r),a=u.idf(r),l=1,c=newi.SortedSet;if(r!==e){varf=Math.max(3,r.length-e.length);l=1/Math.log(f)}o>-1&&n.insert(o,s*a*l);for(vard=u.tokenStore.get(r),h=Object.keys(d),p=h.length,m=0;m<p;m++)c.add(d[h[m]].ref);returnt.union(c)},newi.SortedSet);r.push(l)},this);vars=r.reduce(function(e,t){returne.intersect(t)});returns.map(function(e){return{ref:e,score:n.similarity(this.documentVector(e))}},this).sort(function(e,t){returnt.score-e.score})},i.Index.prototype.documentVector=function(e){for(vart=this.documentStore.get(e),n=t.length,r=newi.Vector,o=0;o<n;o++){vara=t.elements[o],s=this.tokenStore.get(a)[e].tf,u=this.idf(a);r.insert(this.corpusTokens.indexOf(a),s*u)}returnr},i.Index.prototype.toJSON=function(){return{version:i.version,fields:this._fields,ref:this._ref,tokenizer:this.tokenizerFn.label,documentStore:this.documentStore.toJSON(),tokenStore:this.tokenStore.toJSON(),corpusTokens:this.corpusTokens.toJSON(),pipeline:this.pipeline.toJSON()}},i.Index.prototype.use=function(e){vart=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},/*!
i.TokenStore=function(){this.root={docs:{}},this.length=0},i.TokenStore.load=function(e){vart=newthis;returnt.root=e.root,t.length=e.length,t},i.TokenStore.prototype.add=function(e,t,n){varn=n||this.root,r=e.charAt(0),o=e.slice(1);returnrinn||(n[r]={docs:{}}),0===o.length?(n[r].docs[t.ref]=t,void(this.length+=1)):this.add(o,t,n[r])},i.TokenStore.prototype.has=function(e){if(!e)return!1;for(vart=this.root,n=0;n<e.length;n++){if(!t[e.charAt(n)])return!1;t=t[e.charAt(n)]}return!0},i.TokenStore.prototype.getNode=function(e){if(!e)return{};for(vart=this.root,n=0;n<e.length;n++){if(!t[e.charAt(n)])return{};t=t[e.charAt(n)]}returnt},i.TokenStore.prototype.get=function(e,t){returnthis.getNode(e,t).docs||{}},i.TokenStore.prototype.count=function(e,t){returnObject.keys(this.get(e,t)).length},i.TokenStore.prototype.remove=function(e,t){if(e){for(varn=this.root,r=0;r<e.length;r++){if(!(e.charAt(r)inn))return;n=n[e.charAt(r)]}deleten.docs[t]}},i.TokenStore.prototype.expand=function(e,t){varn=this.getNode(e),r=n.docs||{},t=t||[];returnObject.keys(r).length&&t.push(e),Object.keys(n).forEach(function(n){"docs"!==n&&t.concat(this.expand(e+n,t))},this),t},i.TokenStore.prototype.toJSON=function(){return{root:this.root,length:this.length}},function(i,a){r=a,o="function"==typeofr?r.call(t,n,t,e):r,!(void0!==o&&(e.exports=o))}(this,function(){returni})}()},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});varo=n(18),i=r(o),a=n(19),s=r(a);t["default"]={Container:i["default"],Position:s["default"]},e.exports=t["default"]},function(e,t){"use strict";functionn(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});varr=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){functione(t){n(this,e),this.el_="string"==typeoft?document.querySelector(t):t,this.parent_=this.el_.parentNode}returnr(e,[{key:"setup",value:function(){this.update()}},{key:"update",value:function(){vare=window.innerHeight-this.parent_.offsetTop,t=this.parent_.offsetHeight-this.el_.offsetHeight;this.el_.style.minHeight=e-t+"px"}},{key:"reset",value:function(){this.el_.style.minHeight=""}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t){"use strict";functionn(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});varr=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){functione(t){n(this,e),this.el_="string"==typeoft?document.querySelector(t):t,this.inner_=this.el_.parentNode,this.outer_=this.el_.parentNode.parentNode,this.offset_=this.outer_.offsetTop,this.height_=0}returnr(e,[{key:"setup",value:function(){this.update()}},{key:"update",value:function(){vare=window.pageYOffset,t=window.innerHeight;this.bounds_={top:this.inner_.offsetTop,bottom:this.inner_.offsetTop+this.inner_.offsetHeight};varn=this.bounds_.top-e,r=t-Math.max(0,e+t-this.bounds_.bottom)-Math.max(n,this.offset_);r!==this.height_&&(this.el_.style.height=(this.height_=r)+"px"),n<this.offset_?"lock"!==this.el_.dataset.mdState&&(this.el_.dataset.mdState="lock"):"lock"===this.el_.dataset.mdState&&deletethis.el_.dataset.mdState}},{key:"reset",value:function(){deletethis.el_.dataset.mdState,this.el_.style.height="",this.height_=0}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";functionr(e){returne&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});varo=n(21),i=r(o),a=n(25),s=r(a);t["default"]={Adapter:i["default"],Repository:s["default"]},e.exports=t["default"]},function(e,t,n){"uses