1import{Aa as je,Ja as ke,L as u,a as Qe,d as Y,ea as be,f as ce,k as ge,ma as we,na as ue,q as he,ta as fe,ua as xe,xa as ye,za as ve}from"/julia/build/_shared/chunk-OYMW4E3D.js";import"/julia/build/_shared/chunk-C4DFGG5C.js";import"/julia/build/_shared/chunk-J7TUH54J.js";import"/julia/build/_shared/chunk-FZ2S7OYD.js";import"/julia/build/_shared/chunk-JEM6JXYA.js";import"/julia/build/_shared/chunk-34XIY2DH.js";import"/julia/build/_shared/chunk-KQM5FBHR.js";import"/julia/build/_shared/chunk-OCWQY3HK.js";import"/julia/build/_shared/chunk-7HNKBP4B.js";import"/julia/build/_shared/chunk-CUKUDK3R.js";import{a as me}from"/julia/build/_shared/chunk-3EBOCCHJ.js";import"/julia/build/_shared/chunk-O4VQNZ62.js";import{r as A,s as T,t as N}from"/julia/build/_shared/chunk-4OEDG4JQ.js";import{a as pe}from"/julia/build/_shared/chunk-GUCIBHGO.js";import{f as se,l as le}from"/julia/build/_shared/chunk-AQ2CODAG.js";import{a as H,d as S}from"/julia/build/_shared/chunk-JJXTQVMA.js";import{f as x}from"/julia/build/_shared/chunk-OZE3FFNP.js";var ze="/julia/build/_assets/app-AIT5GAEP.css";var Te="/julia/build/_assets/thebe-core-VKVHG5VY.css";var xt=x(Qe());var tt="ENTRIES",Me="KEYS",Re="VALUES",y="",q=class{constructor(e,t){let r=e._tree,i=Array.from(r.keys());this.set=e,this._type=t,this._path=i.length>0?[{node:r,keys:i}]:[]}next(){let e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};let{node:e,keys:t}=P(this._path);if(P(t)===y)return{done:!1,value:this.result()};let r=e.get(P(t));return this._path.push({node:r,keys:Array.from(r.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;let e=P(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>P(e)).filter(e=>e!==y).join("")}value(){return P(this._path).node.get(y)}result(){switch(this._type){case Re:return this.value();case Me:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}},P=o=>o[o.length-1],rt=(o,e,t)=>{let r=new Map;if(e===void 0)return r;let i=e.length+1,a=i+t,n=new Uint8Array(a*i).fill(t+1);for(let d=0;d<i;++d)n[d]=d;for(let d=1;d<a;++d)n[d*i]=d;return Le(o,e,t,r,n,1,i,""),r},Le=(o,e,t,r,i,a,n,d)=>{let s=a*n;e:for(let l of o.keys())if(l===y){let p=i[s-1];p<=t&&r.set(d,[o.get(l),p])}else{let p=a;for(let g=0;g<l.length;++g,++p){let c=l[g],m=n*p,h=m-n,w=i[m],b=Math.max(0,p-t-1),j=Math.min(n-1,p+t);for(let k=b;k<j;++k){let $=c!==e[k],X=i[h+k]+ +$,W=i[h+k+1]+1,D=i[m+k]+1,V=i[m+k+1]=Math.min(X,W,D);V<w&&(w=V)}if(w>t)continue e}Le(o.get(l),e,t,r,i,p,n,d+l)}},B=class{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");let[t,r]=Z(this._tree,e.slice(this._prefix.length));if(t===void 0){let[i,a]=ae(r);for(let n of i.keys())if(n!==y&&n.startsWith(a)){let d=new Map;return d.set(n.slice(a.length),i.get(n)),new B(d,e)}}return new B(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,ot(this._tree,e)}entries(){return new q(this,tt)}forEach(e){for(let[t,r]of this)e(t,r,this)}fuzzyGet(e,t){return rt(this._tree,e,t)}get(e){let t=re(this._tree,e);return t!==void 0?t.get(y):void 0}has(e){let t=re(this._tree,e);return t!==void 0&&t.has(y)}keys(){return new q(this,Me)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,Q(this._tree,e).set(y,t),this}get size(){if(this._size)return this._size;this._size=0;let e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;let r=Q(this._tree,e);return r.set(y,t(r.get(y))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;let r=Q(this._tree,e),i=r.get(y);return i===void 0&&r.set(y,i=t()),i}values(){return new q(this,Re)}[Symbol.iterator](){return this.entries()}static from(e){let t=new B;for(let[r,i]of e)t.set(r,i);return t}static fromObject(e){return B.from(Object.entries(e))}},Z=(o,e,t=[])=>{if(e.length===0||o==null)return[o,t];for(let r of o.keys())if(r!==y&&e.startsWith(r))return t.push([o,r]),Z(o.get(r),e.slice(r.length),t);return t.push([o,e]),Z(void 0,"",t)},re=(o,e)=>{if(e.length===0||o==null)return o;for(let t of o.keys())if(t!==y&&e.startsWith(t))return re(o.get(t),e.slice(t.length))},Q=(o,e)=>{let t=e.length;e:for(let r=0;o&&r<t;){for(let a of o.keys())if(a!==y&&e[r]===a[0]){let n=Math.min(t-r,a.length),d=1;for(;d<n&&e[r+d]===a[d];)++d;let s=o.get(a);if(d===a.length)o=s;else{let l=new Map;l.set(a.slice(d),s),o.set(e.slice(r,r+d),l),o.delete(a),o=l}r+=d;continue e}let i=new Map;return o.set(e.slice(r),i),i}return o},ot=(o,e)=>{let[t,r]=Z(o,e);if(t!==void 0){if(t.delete(y),t.size===0)Se(r);else if(t.size===1){let[i,a]=t.entries().next().value;Ie(r,i,a)}}},Se=o=>{if(o.length===0)return;let[e,t]=ae(o);if(e.delete(t),e.size===0)Se(o.slice(0,-1));else if(e.size===1){let[r,i]=e.entries().next().value;r!==y&&Ie(o.slice(0,-1),r,i)}},Ie=(o,e,t)=>{if(o.length===0)return;let[r,i]=ae(o);r.set(i+e,t),r.delete(i)},ae=o=>o[o.length-1],ne="or",Ae="and",it="and_not",C=class{constructor(e){if(e?.fields==null)throw new Error('MiniSearch: option "fields" must be provided');let t=e.autoVacuum==null||e.autoVacuum===!0?te:e.autoVacuum;this._options={...ee,...e,autoVacuum:t,searchOptions:{..._e,...e.searchOptions||{}},autoSuggestOptions:{...lt,...e.autoSuggestOptions||{}}},this._index=new B,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=ie,this.addFields(this._options.fields)}add(e){let{extractField:t,stringifyField:r,tokenize:i,processTerm:a,fields:n,idField:d}=this._options,s=t(e,d);if(s==null)throw new Error(`MiniSearch: document does not have ID field "${d}"`);if(this._idToShortId.has(s))throw new Error(`MiniSearch: duplicate ID ${s}`);let l=this.addDocumentId(s);this.saveStoredFields(l,e);for(let p of n){let g=t(e,p);if(g==null)continue;let c=i(r(g,p),p),m=this._fieldIds[p],h=new Set(c).size;this.addFieldLength(l,m,this._documentCount-1,h);for(let w of c){let b=a(w,p);if(Array.isArray(b))for(let j of b)this.addTerm(m,l,j);else b&&this.addTerm(m,l,b)}}}addAll(e){for(let t of e)this.add(t)}addAllAsync(e,t={}){let{chunkSize:r=10}=t,i={chunk:[],promise:Promise.resolve()},{chunk:a,promise:n}=e.reduce(({chunk:d,promise:s},l,p)=>(d.push(l),(p+1)%r===0?{chunk:[],promise:s.then(()=>new Promise(g=>setTimeout(g,0))).then(()=>this.addAll(d))}:{chunk:d,promise:s}),i);return n.then(()=>
1this.addAll(a))}remove(e){let{tokenize:t,processTerm:r,extractField:i,stringifyField:a,fields:n,idField:d}=this._options,s=i(e,d);if(s==null)throw new Error(`MiniSearch: document does not have ID field "${d}"`);let l=this._idToShortId.get(s);if(l==null)throw new Error(`MiniSearch: cannot remove document with ID ${s}: it is not in the index`);for(let p of n){let g=i(e,p);if(g==null)continue;let c=t(a(g,p),p),m=this._fieldIds[p],h=new Set(c).size;this.removeFieldLength(l,m,this._documentCount,h);for(let w of c){let b=r(w,p);if(Array.isArray(b))for(let j of b)this.removeTerm(m,l,j);else b&&this.removeTerm(m,l,b)}}this._storedFields.delete(l),this._documentIds.delete(l),this._idToShortId.delete(s),this._fieldLength.delete(l),this._documentCount-=1}removeAll(e){if(e)for(let t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new B,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){let t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((r,i)=>{this.removeFieldLength(t,i,this._documentCount,r)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;let{minDirtFactor:e,minDirtCount:t,batchSize:r,batchWait:i}=this._options.autoVacuum;this.conditionalVacuum({batchSize:r,batchWait:i},{minDirtCount:t,minDirtFactor:e})}discardAll(e){let t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(let r of e)this.discard(r)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){let{idField:t,extractField:r}=this._options,i=r(e,t);this.discard(i),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{let r=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=ie,this.performVacuuming(e,r)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){let r=this._dirtCount;if(this.vacuumConditionsMet(t)){let i=e.batchSize||oe.batchSize,a=e.batchWait||oe.batchWait,n=1;for(let[d,s]of this._index){for(let[l,p]of s)for(let[g]of p)this._documentIds.has(g)||(p.size<=1?s.delete(l):p.delete(g));this._index.get(d).size===0&&this._index.delete(d),n%i===0&&await new Promise(l=>setTimeout(l,a)),n+=1}this._dirtCount-=r}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:r}=e;return t=t||te.minDirtCount,r=r||te.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=r}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){let t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){let{searchOptions:r}=this._options,i={...r,...t},a=this.executeQuery(e,t),n=[];for(let[d,{score:s,terms:l,match:p}]of a){let g=l.length||1,c={id:this._documentIds.get(d),score:s*g,terms:Object.keys(p),queryTerms:l,match:p};Object.assign(c,this._storedFields.get(d)),(i.filter==null||i.filter(c))&&n.push(c)}return e===C.wildcard&&i.boostDocument==null||n.sort(Ue),n}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};let r=new Map;for(let{score:a,terms:n}of this.search(e,t)){let d=n.join(" "),s=r.get(d);s!=null?(s.score+=a,s.count+=1):r.set(d,{score:a,terms:n,count:1})}let i=[];for(let[a,{score:n,terms:d,count:s}]of r)i.push({suggestion:a,terms:d,score:n/s});return i.sort(Ue),i}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(ee.hasOwnProperty(e))return K(ee,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){let{index:r,documentIds:i,fieldLength:a,storedFields:n,serializationVersion:d}=e,s=this.instantiateMiniSearch(e,t);s._documentIds=G(i),s._fieldLength=G(a),s._storedFields=G(n);for(let[l,p]of s._documentIds)s._idToShortId.set(p,l);for(let[l,p]of r){let g=new Map;for(let c of Object.keys(p)){let m=p[c];d===1&&(m=m.ds),g.set(parseInt(c,10),G(m))}s._index.set(l,g)}return s}static async loadJSAsync(e,t){let{index:r,documentIds:i,fieldLength:a,storedFields:n,serializationVersion:d}=e,s=this.instantiateMiniSearch(e,t);
1s._documentIds=await J(i),s._fieldLength=await J(a),s._storedFields=await J(n);for(let[p,g]of s._documentIds)s._idToShortId.set(g,p);let l=0;for(let[p,g]of r){let c=new Map;for(let m of Object.keys(g)){let h=g[m];d===1&&(h=h.ds),c.set(parseInt(m,10),await J(h))}++l%1e3===0&&await Ne(0),s._index.set(p,c)}return s}static instantiateMiniSearch(e,t){let{documentCount:r,nextId:i,fieldIds:a,averageFieldLength:n,dirtCount:d,serializationVersion:s}=e;if(s!==1&&s!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");let l=new C(t);return l._documentCount=r,l._nextId=i,l._idToShortId=new Map,l._fieldIds=a,l._avgFieldLength=n,l._dirtCount=d||0,l._index=new B,l}executeQuery(e,t={}){if(e===C.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){let c={...t,...e,queries:void 0},m=e.queries.map(h=>this.executeQuery(h,c));return this.combineResults(m,c.combineWith)}let{tokenize:r,processTerm:i,searchOptions:a}=this._options,n={tokenize:r,processTerm:i,...a,...t},{tokenize:d,processTerm:s}=n,g=d(e).flatMap(c=>s(c)).filter(c=>!!c).map(st(n)).map(c=>this.executeQuerySpec(c,n));return this.combineResults(g,n.combineWith)}executeQuerySpec(e,t){let r={...this._options.searchOptions,...t},i=(r.fields||this._options.fields).reduce((w,b)=>({...w,[b]:K(r.boost,b)||1}),{}),{boostDocument:a,weights:n,maxFuzzy:d,bm25:s}=r,{fuzzy:l,prefix:p}={..._e.weights,...n},g=this._index.get(e.term),c=this.termResults(e.term,e.term,1,e.termBoost,g,i,a,s),m,h;if(e.prefix&&(m=this._index.atPrefix(e.term)),e.fuzzy){let w=e.fuzzy===!0?.2:e.fuzzy,b=w<1?Math.min(d,Math.round(e.term.length*w)):w;b&&(h=this._index.fuzzyGet(e.term,b))}if(m)for(let[w,b]of m){let j=w.length-e.term.length;if(!j)continue;h?.delete(w);let k=p*w.length/(w.length+.3*j);this.termResults(e.term,w,k,e.termBoost,b,i,a,s,c)}if(h)for(let w of h.keys()){let[b,j]=h.get(w);if(!j)continue;let k=l*w.length/(w.length+j);this.termResults(e.term,w,k,e.termBoost,b,i,a,s,c)}return c}executeWildcardQuery(e){let t=new Map,r={...this._options.searchOptions,...e};for(let[i,a]of this._documentIds){let n=r.boostDocument?r.boostDocument(a,"",this._storedFields.get(i)):1;t.set(i,{score:n,terms:[],match:{}})}return t}combineResults(e,t=ne){if(e.length===0)return new Map;let r=t.toLowerCase(),i=at[r];if(!i)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(i)||new Map}toJSON(){let e=[];for(let[t,r]of this._index){let i={};for(let[a,n]of r)i[a]=Object.fromEntries(n);e.push([t,i])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,r,i,a,n,d,s,l=new Map){if(a==null)return l;for(let p of Object.keys(n)){let g=n[p],c=this._fieldIds[p],m=a.get(c);if(m==null)continue;let h=m.size,w=this._avgFieldLength[c];for(let b of m.keys()){if(!this._documentIds.has(b)){this.removeTerm(c,b,t),h-=1;continue}let j=d?d(this._documentIds.get(b),t,this._storedFields.get(b)):1;if(!j)continue;let k=m.get(b),$=this._fieldLength.get(b)[c],X=dt(k,h,this._documentCount,$,w,s),W=r*i*g*j*X,D=l.get(b);if(D){D.score+=W,pt(D.terms,e);let V=K(D.match,t);V?V.push(p):D.match[t]=[p]}else l.set(b,{score:W,terms:[e],match:{[t]:[p]}})}}return l}addTerm(e,t,r){let i=this._index.fetch(r,Be),a=i.get(e);if(a==null)a=new Map,a.set(t,1),i.set(e,a);else{let n=a.get(t);a.set(t,(n||0)+1)}}removeTerm(e,t,r){if(!this._index.has(r)){this.warnDocumentChanged(t,e,r);return}let i=this._index.fetch(r,Be),a=i.get(e);a==null||a.get(t)==null?this.warnDocumentChanged(t,e,r):a.get(t)<=1?a.size<=1?i.delete(e):a.delete(t):a.set(t,a.get(t)-1),this._index.get(r).size===0&&this._index.delete(r)}warnDocumentChanged(e,t,r){for(let i of Object.keys(this._fieldIds))if(this._fieldIds[i]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${r}" was not present in field "${i}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){let t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;t<e.length;t++)this._fieldIds[e[t]]=t}addFieldLength(e,t,r,i){let a=this._fieldLength.get(e);a==null&&this._fieldLength.set(e,a=[]),a[t]=i;let d=(this._avgFieldLength[t]||0)*r+i;this._avgFieldLength[t]=d/(r+1)}removeFieldLength(e,t,r,i){if(r===1){this._avgFieldLength[t]=0;return}let a=this._avgFieldLength[t]*r-i;this._avgFieldLength[t]=a/(r-1)}saveStoredFields(e,t){let{storeFields:r,extractField:i}=this._options;if(r==null||r.length===0)return;let a=this._storedFields.get(e);a==null&&this._storedFields.set(e,a={});for(let n of r){let d=i(t,n);d!==void 0&&(a[n]=d)}}};C.wildcard=Symbol("*");var K=(o,e)=>Object.prototype.hasOwnProperty.call(o,e)?o[e]:void 0,at={[ne]:(o,e)=>{for(let t of e.keys()){let r=o.get(t);if(r==null)o.set(t,e.get(t));else{let{score:i,terms:a,match:n}=e.get(t);r.score=r.score+i,r.match=Object.assign(r.match,n),Ce(r.terms,a)}}return o},[Ae]:(o,e)=>{let t=new Map;for(let r of e.keys()){let i=o.get(r);if(i==null)continue;let{score:a,terms:n,match:d}=e.get(r);Ce(i.terms,n),t.set(r,{score:i.score+a,terms:i.terms,match:Object.assign(i.match,d)})}return t},[it]:(o,e)=>{for(let t of e.keys())o.delete(t);return o}},nt={k:1.2,b:.7,d:.5},dt=(o,e,t,r,i,a)=>{let{k:n,b:d,d:s}=a;return Math.log(1+(t-e+.5)/(e+.5))*(s+o*(n+1)/(o+n*(1-d+d*r/i)))},st=o=>(e,t,r)=>{let i=typeof o.fuzzy=="function"?o.fuzzy(e,t,r):o.fuzzy||!1,a=typeof o.prefix=="function"?o.prefix(e,t,r):o.prefix===!0,n=typeof o.boostTerm=="function"?o.boostTerm(e,t,r):1;return{term:e,fuzzy:i,prefix:a,termBoost:n}},ee={idField:"id",extractField:(o,e)=>o[e],stringifyField:(o,e)=>o.toString(),tokenize:o=>o.split(ct),processTerm:o=>o.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(o,e)=>{typeof console?.[o]=="function"&&console[o](e)},autoVacuum:!0},_e={combineWith:ne,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:nt},lt={combineWith:Ae,prefix:(o,e,t)=>e===t.length-1},oe={batchSize:1e3,batchWait:10},ie={minDirtFactor:.1,minDirtCount:20},te={...oe,...ie},pt=(o,e)=>{o.includes(e)||o.push(e)},Ce=(o,e)=>{for(let t of e)o.includes(t)||o.push(t)},Ue=({score:o},{score:e})=>e-o,Be=()=>new Map,G=o=>{let e=new Map;for(let t of Object.keys(o))e.set(parseInt(t,10),o[t]);return e},J=async o=>{let e=new Map,t=0;for(let r of Object.keys(o))e.set(parseInt(r,10),o[r]),++t%1e3===0&&await Ne(0);return e},Ne=o=>new Promise(e=>setTimeout(e,o)),ct=/[\n\r\p{Z}\p{P}]+/u;function gt(o){return{...o,tokenize:C.getDefault("tokenize"),processTerm:C.getDefault("processTerm"),extractField:ue}}function mt(o){let[e,...t]=o.entries();if(e===void 0)return[];let r=e[1],i=new Map(Array.from(r.entries(),([n,d])=>{let{id:s,score:l,terms:p,queryTerms:g,match:c,...m}=d;return[n,{id:n,queries:[{term:g[0],matches:c}],...m}]}
1)),a=t.reduce((n,d)=>{let s=new Map;return d[1].forEach((p,g)=>{let c=n.get(g);if(c==null)return;let{queryTerms:m,match:h}=p;c.queries.push({term:m[0],matches:h}),s.set(g,c)}),s},i);return Array.from(a.values())}function Ee(o,e){let t=gt(e),r=new C(t);return r.addAll(o.map((i,a)=>({...i,id:a}))),async i=>{let a=t.tokenize(i).filter(n=>!!n);if(a.length){let n=new Map(a.map(d=>[d,new Map(r.search(d).map(s=>[s.id,s]))]));return mt(n)}else return}}var v=x(S(),1),Fe=x(H(),1);var ht={}.hasOwnProperty,M=function(o,e,t){let r=pe(t||e),i=e&&typeof e=="object"&&"cascade"in e?e.cascade:void 0,a=i??!0;return n(o);function n(d,s,l){let p=[];if(!r(d,s,l))return null;if(d.children){let m=-1;for(;++m<d.children.length;){let h=n(d.children[m],m,d);h&&p.push(h)}if(a&&d.children.length>0&&p.length===0)return null}let g={},c;for(c in d)ht.call(d,c)&&(g[c]=c==="children"?p:d[c]);return g}};var U=x(S(),1);var De=x(S(),1);var de=x(me(),1);function R({node:o,className:e,children:t}){let r=ce(),{key:i}=o,a=(0,de.default)(e,o.class),n=o.visibility==="hide"?"":`${r} subgrid-gap col-page [&>*]:col-page`;return(0,De.jsx)("div",{id:i,className:(0,de.default)("myst-landing-block relative group/block py-6",a,{[n]:!(a&&a.includes("col-")),hidden:o.visibility==="remove"}),children:t},`block-${i}`)}function E(o){let{node:e,blockName:t}=o;return(0,U.jsx)(R,Object.assign({},o,{children:(0,U.jsxs)("div",{className:"myst-landing-invalid relative",role:"alert",children:[(0,U.jsxs)("div",{className:"myst-landing-invalid-header px-4 py-2 font-bold text-white bg-red-500 rounded-t",children:["Invalid block ",(0,U.jsx)("span",{className:"font-mono",children:t})]}),(0,U.jsxs)("div",{className:"myst-landing-invalid-border border border-t-0 border-red-400 rounded-b ",children:[(0,U.jsx)("div",{className:"myst-landing-invalid-message px-4 py-3 text-red-700 bg-red-100",children:(0,U.jsxs)("p",{children:["This '",t,"' block does not conform to the expected AST structure."]})}),(0,U.jsx)("div",{className:"myst-landing-invalid-content px-4 py-3",children:(0,U.jsx)(u,{ast:e.children})})]})]})}))}var I=x(S(),1),He=x(H(),1);var Pe=x(me(),1);function F({node:o,className:e}){let{enumerator:t,depth:r,key:i,identifier:a,html_id:n}=o,d=n||a||i;return(0,He.createElement)(`h${r}`,{className:(0,Pe.default)("myst-landing-heading",o.class,e,"group"),id:d},(0,I.jsxs)(I.Fragment,{children:[t&&(0,I.jsx)("span",{className:"myst-landing-enumerator mr-3 select-none",children:t}),(0,I.jsx)("span",{className:"myst-landing-text heading-text",children:(0,I.jsx)(u,{ast:o.children})}),(0,I.jsx)(he,{className:"myst-landing-link font-normal",id:d,kind:"Section",hover:!0,hideInPopup:!0,noWidth:!0})]}))}function O(o,e){let t;for(t=0;t<o.children.length;t++){let r=o.children[t];if(r.type==="heading"&&(e===void 0||r.depth===e))break}return t===o.children.length?{head:void 0,body:{type:"block",children:o.children}}:{head:{type:"block",children:o.children.slice(0,t+1)},body:{type:"block",children:o.children.slice(t+1)}}}function bt(o){let{node:e}=o,{image:t,body:r,links:i,subtitle:a,heading:n}=(0,Fe.useMemo)(()=>{var d,s;let{head:l,body:p}=O(e),g=N("link,crossReference",p),c=T("paragraph",l),m=T("heading",l),h=T("image",p);return{body:(s=(d=M(p,b=>!A("link[class*=button], crossReference[class*=button], image",b)))===null||d===void 0?void 0:d.children)!==null&&s!==void 0?s:[],image:h,links:g,subtitle:c,heading:m}},[e]);return!t||!r?(0,v.jsx)(E,Object.assign({},o,{blockName:"split-image"})):(0,v.jsx)(R,Object.assign({},o,{children:(0,v.jsxs)("div",{className:"myst-landing-split-img relative rounded-md bg-stone-900 dark:bg-stone-800",children:[(0,v.jsx)("div",{className:"myst-landing-split-img-image lg:absolute lg:h-full lg:w-[calc(50%)] md:absolute md:h-full md:w-[calc(100%/3)] h-80 relative [&_img]:h-full [&_img]:w-full [&_img]:object-cover [&_img]:m-0 [&_picture]:m-0 [&_picture]:inline",children:(0,v.jsx)(u,{ast:t})}),(0,v.jsx)("div",{className:"myst-landing-split-img-content-wrapper relative py-24",children:(0,v.jsxs)("div",{className:"myst-landing-split-img-content lg:ml-auto lg:w-[calc(50%)] lg:p-8 lg:pl-24 md:ml-auto md:w-[calc(2*100%/3)] md:pl-16 md:p-8 px-6",children:[a&&(0,v.jsx)("p",{className:"myst-landing-split-img-subtitle my-0 font-semibold prose text-indigo-400 uppercase prose-invert",children:(0,v.jsx)(u,{ast:a.children})}),n&&(0,v.jsx)(F,{node:n,className:"myst-landing-split-img-heading mt-2 mb-0 text-5xl font-semibold tracking-tight text-white"}),(0,v.jsx)("div",{className:"myst-landing-split-img-body mt-6",children:(0,v.jsx)(u,{ast:r,className:"prose prose-invert"})}),i&&(0,v.jsx)("div",{className:"myst-landing-split-img-links flex flex-row flex-wrap items-center gap-4 mt-8",children:(0,v.jsx)(u,{ast:i,className:"prose prose-invert"})})]})})]})}))}var Oe={block:{"block[kind=split-image]":bt}};var z=x(S(),1),Ve=x(H(),1);function wt(o){let{node:e}=o,{body:t,links:r,subtitle:i,heading:a}=(0,Ve.useMemo)(()=>{var n,d;let{head:s,body:l}=O(e),p=N("link[class*=button], crossReference[class*=button]",l),g=T("paragraph",s),c=T("heading",s);return{body:(d=(n=M(l,h=>!A("link[class*=button], crossReference[class*=button]",h)))===null||n===void 0?void 0:n.children)!==null&&d!==void 0?d:[],links:p,subtitle:g,heading:c}},[e]);return t?(0,z.jsx)(R,Object.assign({},o,{children:(0,z.jsx)("div",{className:"myst-landing-centered relative text-center",children:(0,z.jsxs)("div",{className:"myst-landing-centered-inner py-20 sm:py-28",children:[i&&(0,z.jsx)("p",{className:"myst-landing-centered-subtitle my-0 font-semibold text-indigo-400 uppercase",children:(0,z.jsx)(u,{ast:i.children})}),a&&(0,z.jsx)(F,{node:a,className:"myst-landing-centered-heading mt-2 mb-0 text-5xl font-semibold tracking-tight"}),t&&(0,z.jsx)("div",{className:"myst-landing-centered-body mt-6",children:(0,z.jsx)(u,{ast:t})}),r&&(0,z.jsx)("div",{className:"myst-landing-centered-links flex flex-row flex-wrap items-center justify-center gap-4 mt-8",children:(0,z.jsx)(u,{ast:r})})]})})})):(0,z.jsx)(E,Object.assign({}
1,o,{blockName:"centered"}))}var qe={block:{"block[kind=centered]":wt}};var _=x(S(),1),We=x(H(),1);function ut(o){let{node:e}=o,{body:t,links:r,subtitle:i,heading:a}=(0,We.useMemo)(()=>{var n,d;let{head:s,body:l}=O(e),p=N("link[class*=button], crossReference[class*=button]",l),g=T("paragraph",s),c=T("heading",s);return{body:(d=(n=M(l,h=>!A("link[class*=button], crossReference[class*=button]",h)))===null||n===void 0?void 0:n.children)!==null&&d!==void 0?d:[],links:p,subtitle:g,heading:c}},[e]);return t?(0,_.jsx)(R,Object.assign({},o,{children:(0,_.jsxs)("div",{className:"myst-landing-justified grid-areas-just-narrow md:grid-areas-just-wide grid grid-cols-[auto_1fr_auto] justify-between gap-2 py-20 sm:py-28 lg:px-8",children:[i&&(0,_.jsx)("p",{className:"myst-landing-justified-subtitle grid-area-subtitle my-0 font-semibold text-indigo-400 uppercase",children:(0,_.jsx)(u,{ast:i.children})}),a&&(0,_.jsx)(F,{node:a,className:"myst-landing-justified-heading grid-area-title mt-2 mb-0 text-5xl font-semibold tracking-tight"}),t&&(0,_.jsx)("div",{className:"myst-landing-justified-body grid-area-body mt-6",children:(0,_.jsx)(u,{ast:t})}),r&&(0,_.jsx)("div",{className:"myst-landing-justified-links grid-area-links flex flex-row flex-wrap items-center gap-4",children:(0,_.jsx)(u,{ast:r})})]})})):(0,_.jsx)(E,Object.assign({},o,{blockName:"justified"}))}var Ye={block:{"block[kind=justified]":ut}};var L=x(S(),1),Ge=x(H(),1);function ft(o){let{node:e}=o,{grid:t,body:r,links:i}=(0,Ge.useMemo)(()=>{var a,n;let d=T("grid",e),s=M(e,g=>g.type!=="grid"),l=N("link[class*=button], crossReference[class*=button]",s);return{body:(n=(a=M(s,g=>!A("link[class*=button], crossReference[class*=button]",g)))===null||a===void 0?void 0:a.children)!==null&&n!==void 0?n:[],grid:d,links:l}},[e]);return t?(0,L.jsx)(R,Object.assign({},o,{children:(0,L.jsxs)("div",{className:"myst-landing-logo-cloud py-20 text-center sm:py-28",children:[(0,L.jsx)("div",{className:"myst-landing-logo-cloud-body font-semibold",children:(0,L.jsx)(u,{ast:r})}),t&&(0,L.jsx)(u,{ast:t}),i&&(0,L.jsx)("div",{className:"myst-landing-logo-cloud-links flex flex-row flex-wrap items-center justify-center gap-4 mt-8",children:(0,L.jsx)(u,{ast:i})})]})})):(0,L.jsx)(E,Object.assign({},o,{blockName:"logo-cloud"}))}var Je={block:{"block[kind=logo-cloud]":ft}};var Ze=Y([Oe,qe,Ye,Je]);var $e=x(H()),f=x(S()),yt=Y([fe,ke,Ze]),vt=({data:o})=>{var e,t,r,i;return ye({title:(e=o==null?void 0:o.config)==null?void 0:e.title,description:(t=o==null?void 0:o.config)==null?void 0:t.description,twitter:(i=(r=o==null?void 0:o.config)==null?void 0:r.options)==null?void 0:i.twitter})},jt=()=>[{rel:"stylesheet",href:ze},{rel:"stylesheet",href:Te},{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/[email protected]/css/mpl_widget.css"},{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"}];function kt(o){let e={fields:we,storeFields:["hierarchy","content","url","type","id","position"],idField:"id",searchOptions:{fuzzy:.2,prefix:!0}};return Ee(o.records,e)}function zt(){return(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)("dialog",{id:"myst-no-css",style:{position:"fixed",left:"0px",top:"0px",width:"100vw",height:"100vh",fontSize:"4rem",padding:"1rem",color:"black",background:"white"},suppressHydrationWarning:!0,children:[(0,f.jsx)("strong",{children:"Site not loading correctly?"}),(0,f.jsxs)("p",{children:["This may be due to an incorrect ",(0,f.jsx)("code",{children:"BASE_URL"})," configuration. See"," ",(0,f.jsx)("a",{href:"https://mystmd.org/guide/deployment#deploy-base-url",children:"the MyST Documentation"})," ","for reference."]}),(0,f.jsx)("script",{dangerouslySetInnerHTML:{__html:` 2 (() => { 3 // Test for has-styling variable set by the MyST stylesheet 4 const node = document.currentScript.parentNode; 5 const hasCSS = window.getComputedStyle(node).getPropertyValue("--has-styling"); 6 if (hasCSS === ""){ 7 node.showModal(); 8 } 9 10 })() 11`}})]})})}
11function Xe(){let{theme:o,config:e,CONTENT_CDN_PORT:t,MODE:r,BASE_URL:i}=le(),a=(0,$e.useCallback)(n=>kt(n),[]);return(0,f.jsx)(ge,{factory:a,children:(0,f.jsxs)(ve,{theme:o,config:e,scripts:r==="static"?void 0:(0,f.jsx)(be,{port:t}),staticBuild:r==="static",baseurl:i,renderers:yt,head:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("link",{rel:"icon",href:`${i||""}/favicon.ico`}),(0,f.jsx)("link",{rel:"stylesheet",href:`${i||""}/myst-theme.css`})]}),children:[(0,f.jsx)(xe,{targets:[{id:"skip-to-frontmatter",title:"Skip to article frontmatter"},{id:"skip-to-article",title:"Skip to article content"}]}),(0,f.jsx)(zt,{}),(0,f.jsx)(se,{})]})})}export{je as ErrorBoundary,Xe as default,jt as links,vt as meta};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.