site/quartz/.quartz-cache/transpiled-build.mjs
2024-10-16 12:36:51 +02:00

1732 lines
376 KiB
JavaScript

var __defProp=Object.defineProperty;var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});import sourceMapSupport from"source-map-support";import path12 from"path";import chalk from"chalk";import pretty from"pretty-time";var PerfTimer=class{static{__name(this,"PerfTimer")}evts;constructor(){this.evts={},this.addEvent("start")}addEvent(evtName){this.evts[evtName]=process.hrtime()}timeSince(evtName){return chalk.yellow(pretty(process.hrtime(this.evts[evtName??"start"])))}};import{rimraf}from"rimraf";import{isGitIgnored}from"globby";import chalk6 from"chalk";import esbuild from"esbuild";import remarkParse from"remark-parse";import remarkRehype from"remark-rehype";import{unified}from"unified";import{read}from"to-vfile";import{slug as slugAnchor}from"github-slugger";import rfdc from"rfdc";var clone=rfdc(),QUARTZ="quartz";function isRelativeURL(s){let validStart=/^\.{1,2}/.test(s),validEnding=!endsWith(s,"index");return validStart&&validEnding&&![".md",".html"].includes(_getFileExtension(s)??"")}__name(isRelativeURL,"isRelativeURL");function sluggify(s){return s.split("/").map(segment=>segment.replace(/\s/g,"-").replace(/&/g,"-and-").replace(/%/g,"-percent").replace(/\?/g,"").replace(/#/g,"")).join("/").replace(/\/$/,"")}__name(sluggify,"sluggify");function slugifyFilePath(fp,excludeExt){fp=stripSlashes(fp);let ext=_getFileExtension(fp),withoutFileExt=fp.replace(new RegExp(ext+"$"),"");(excludeExt||[".md",".html",void 0].includes(ext))&&(ext="");let slug=sluggify(withoutFileExt);return endsWith(slug,"_index")&&(slug=slug.replace(/_index$/,"index")),slug+ext}__name(slugifyFilePath,"slugifyFilePath");function simplifySlug(fp){let res=stripSlashes(trimSuffix(fp,"index"),!0);return res.length===0?"/":res}__name(simplifySlug,"simplifySlug");function transformInternalLink(link){let[fplike,anchor]=splitAnchor(decodeURI(link)),folderPath=isFolderPath(fplike),segments=fplike.split("/").filter(x=>x.length>0),prefix=segments.filter(isRelativeSegment).join("/"),fp=segments.filter(seg=>!isRelativeSegment(seg)&&seg!=="").join("/"),simpleSlug=simplifySlug(slugifyFilePath(fp)),joined=joinSegments(stripSlashes(prefix),stripSlashes(simpleSlug)),trail=folderPath?"/":"";return _addRelativeToStart(joined)+trail+anchor}__name(transformInternalLink,"transformInternalLink");var _rebaseHastElement=__name((el,attr,curBase,newBase)=>{if(el.properties?.[attr]){if(!isRelativeURL(String(el.properties[attr])))return;let rel=joinSegments(resolveRelative(curBase,newBase),"..",el.properties[attr]);el.properties[attr]=rel}},"_rebaseHastElement");function normalizeHastElement(rawEl,curBase,newBase){let el=clone(rawEl);return _rebaseHastElement(el,"src",curBase,newBase),_rebaseHastElement(el,"href",curBase,newBase),el.children&&(el.children=el.children.map(child=>normalizeHastElement(child,curBase,newBase))),el}__name(normalizeHastElement,"normalizeHastElement");function pathToRoot(slug){let rootPath=slug.split("/").filter(x=>x!=="").slice(0,-1).map(_=>"..").join("/");return rootPath.length===0&&(rootPath="."),rootPath}__name(pathToRoot,"pathToRoot");function resolveRelative(current,target){return joinSegments(pathToRoot(current),simplifySlug(target))}__name(resolveRelative,"resolveRelative");function splitAnchor(link){let[fp,anchor]=link.split("#",2);return fp.endsWith(".pdf")?[fp,anchor===void 0?"":`#${anchor}`]:(anchor=anchor===void 0?"":"#"+slugAnchor(anchor),[fp,anchor])}__name(splitAnchor,"splitAnchor");function slugTag(tag){return tag.split("/").map(tagSegment=>sluggify(tagSegment)).join("/")}__name(slugTag,"slugTag");function joinSegments(...args){return args.filter(segment=>segment!=="").join("/").replace(/\/\/+/g,"/")}__name(joinSegments,"joinSegments");function getAllSegmentPrefixes(tags){let segments=tags.split("/"),results=[];for(let i=0;i<segments.length;i++)results.push(segments.slice(0,i+1).join("/"));return results}__name(getAllSegmentPrefixes,"getAllSegmentPrefixes");function transformLink(src,target,opts){let targetSlug=transformInternalLink(target);if(opts.strategy==="relative")return targetSlug;{let folderTail=isFolderPath(targetSlug)?"/":"",canonicalSlug=stripSlashes(targetSlug.slice(1)),[targetCanonical,targetAnchor]=splitAnchor(canonicalSlug);if(opts.strategy==="shortest"){let matchingFileNames=opts.allSlugs.filter(slug=>{let fileName=slug.split("/").at(-1);return targetCanonical===fileName});if(matchingFileNames.length===1){let targetSlug2=matchingFileNames[0];return resolveRelative(src,targetSlug2)+targetAnchor}}return joinSegments(pathToRoot(src),canonicalSlug)+folderTail}}__name(transformLink,"transformLink");function isFolderPath(fplike){return fplike.endsWith("/")||endsWith(fplike,"index")||endsWith(fplike,"index.md")||endsWith(fplike,"index.html")}__name(isFolderPath,"isFolderPath");function endsWith(s,suffix){return s===suffix||s.endsWith("/"+suffix)}__name(endsWith,"endsWith");function trimSuffix(s,suffix){return endsWith(s,suffix)&&(s=s.slice(0,-suffix.length)),s}__name(trimSuffix,"trimSuffix");function _getFileExtension(s){return s.match(/\.[A-Za-z0-9]+$/)?.[0]}__name(_getFileExtension,"_getFileExtension");function isRelativeSegment(s){return/^\.{0,2}$/.test(s)}__name(isRelativeSegment,"isRelativeSegment");function stripSlashes(s,onlyStripPrefix){return s.startsWith("/")&&(s=s.substring(1)),!onlyStripPrefix&&s.endsWith("/")&&(s=s.slice(0,-1)),s}__name(stripSlashes,"stripSlashes");function _addRelativeToStart(s){return s===""&&(s="."),s.startsWith(".")||(s=joinSegments(".",s)),s}__name(_addRelativeToStart,"_addRelativeToStart");import path from"path";import workerpool,{Promise as WorkerPromise}from"workerpool";import{Spinner}from"cli-spinner";var QuartzLogger=class{static{__name(this,"QuartzLogger")}verbose;spinner;constructor(verbose){this.verbose=verbose}start(text){this.verbose?console.log(text):(this.spinner=new Spinner(`%s ${text}`),this.spinner.setSpinnerString(18),this.spinner.start())}end(text){this.verbose||this.spinner.stop(!0),text&&console.log(text)}};import chalk2 from"chalk";import process2 from"process";import{isMainThread}from"workerpool";var rootFile=/.*at file:/;function trace(msg,err){let stack=err.stack??"",lines=[];lines.push(""),lines.push(`
`+chalk2.bgRed.black.bold(" ERROR ")+`
`+chalk2.red(` ${msg}`)+(err.message.length>0?`: ${err.message}`:""));let reachedEndOfLegibleTrace=!1;for(let line of stack.split(`
`).slice(1)){if(reachedEndOfLegibleTrace)break;line.includes("node_modules")||(lines.push(` ${line}`),rootFile.test(line)&&(reachedEndOfLegibleTrace=!0))}let traceMsg=lines.join(`
`);if(isMainThread)console.error(traceMsg),process2.exit(1);else throw new Error(traceMsg)}__name(trace,"trace");function createProcessor(ctx){let transformers=ctx.cfg.plugins.transformers;return unified().use(remarkParse).use(transformers.filter(p=>p.markdownPlugins).flatMap(plugin=>plugin.markdownPlugins(ctx))).use(remarkRehype,{allowDangerousHtml:!0}).use(transformers.filter(p=>p.htmlPlugins).flatMap(plugin=>plugin.htmlPlugins(ctx)))}__name(createProcessor,"createProcessor");function*chunks(arr,n){for(let i=0;i<arr.length;i+=n)yield arr.slice(i,i+n)}__name(chunks,"chunks");async function transpileWorkerScript(){return esbuild.build({entryPoints:["./quartz/worker.ts"],outfile:path.join(QUARTZ,"./.quartz-cache/transpiled-worker.mjs"),bundle:!0,keepNames:!0,platform:"node",format:"esm",packages:"external",sourcemap:!0,sourcesContent:!1,plugins:[{name:"css-and-scripts-as-text",setup(build){build.onLoad({filter:/\.scss$/},_=>({contents:"",loader:"text"})),build.onLoad({filter:/\.inline\.(ts|js)$/},_=>({contents:"",loader:"text"}))}}]})}__name(transpileWorkerScript,"transpileWorkerScript");function createFileParser(ctx,fps){let{argv,cfg}=ctx;return async processor=>{let res=[];for(let fp of fps)try{let perf=new PerfTimer,file=await read(fp);file.value=file.value.toString().trim();for(let plugin of cfg.plugins.transformers.filter(p=>p.textTransform))file.value=plugin.textTransform(ctx,file.value.toString());file.data.filePath=file.path,file.data.relativePath=path.posix.relative(argv.directory,file.path),file.data.slug=slugifyFilePath(file.data.relativePath);let ast=processor.parse(file),newAst=await processor.run(ast,file);res.push([newAst,file]),argv.verbose&&console.log(`[process] ${fp} -> ${file.data.slug} (${perf.timeSince()})`)}catch(err){trace(`
Failed to process \`${fp}\``,err)}return res}}__name(createFileParser,"createFileParser");var clamp=__name((num,min,max)=>Math.min(Math.max(Math.round(num),min),max),"clamp");async function parseMarkdown(ctx,fps){let{argv}=ctx,perf=new PerfTimer,log=new QuartzLogger(argv.verbose),CHUNK_SIZE=128,concurrency=ctx.argv.concurrency??clamp(fps.length/CHUNK_SIZE,1,4),res=[];if(log.start(`Parsing input files using ${concurrency} threads`),concurrency===1)try{let processor=createProcessor(ctx);res=await createFileParser(ctx,fps)(processor)}catch(error){throw log.end(),error}else{await transpileWorkerScript();let pool=workerpool.pool("./quartz/bootstrap-worker.mjs",{minWorkers:"max",maxWorkers:concurrency,workerType:"thread"}),childPromises=[];for(let chunk of chunks(fps,CHUNK_SIZE))childPromises.push(pool.exec("parseFiles",[argv,chunk,ctx.allSlugs]));res=(await WorkerPromise.all(childPromises).catch(err=>{let errString=err.toString().slice(6);console.error(errString),process.exit(1)})).flat(),await pool.terminate()}return log.end(`Parsed ${res.length} Markdown files in ${perf.timeSince()}`),res}__name(parseMarkdown,"parseMarkdown");function filterContent(ctx,content){let{cfg,argv}=ctx,perf=new PerfTimer,initialLength=content.length;for(let plugin of cfg.plugins.filters){let updatedContent=content.filter(item=>plugin.shouldPublish(ctx,item));if(argv.verbose){let diff=content.filter(x=>!updatedContent.includes(x));for(let file of diff)console.log(`[filter:${plugin.name}] ${file[1].data.slug}`)}content=updatedContent}return console.log(`Filtered out ${initialLength-content.length} files in ${perf.timeSince()}`),content}__name(filterContent,"filterContent");import matter from"gray-matter";import remarkFrontmatter from"remark-frontmatter";import yaml from"js-yaml";import toml from"toml";var en_US_default={propertyDefaults:{title:"Untitled",description:"No description provided"},components:{callout:{note:"Note",abstract:"Abstract",info:"Info",todo:"Todo",tip:"Tip",success:"Success",question:"Question",warning:"Warning",failure:"Failure",danger:"Danger",bug:"Bug",example:"Example",quote:"Quote"},backlinks:{title:"Backlinks",noBacklinksFound:"No backlinks found"},themeToggle:{lightMode:"Light mode",darkMode:"Dark mode"},explorer:{title:"Explorer"},footer:{createdWith:"Created with"},graph:{title:"Graph View"},recentNotes:{title:"Recent Notes",seeRemainingMore:({remaining})=>`See ${remaining} more \u2192`},transcludes:{transcludeOf:({targetSlug})=>`Transclude of ${targetSlug}`,linkToOriginal:"Link to original"},search:{title:"Search",searchBarPlaceholder:"Search for something"},tableOfContents:{title:"Table of Contents"},contentMeta:{readingTime:({minutes})=>`${minutes} min read`}},pages:{rss:{recentNotes:"Recent notes",lastFewNotes:({count})=>`Last ${count} notes`},error:{title:"Not Found",notFound:"Either this page is private or doesn't exist."},folderContent:{folder:"Folder",itemsUnderFolder:({count})=>count===1?"1 item under this folder.":`${count} items under this folder.`},tagContent:{tag:"Tag",tagIndex:"Tag Index",itemsUnderTag:({count})=>count===1?"1 item with this tag.":`${count} items with this tag.`,showingFirst:({count})=>`Showing first ${count} tags.`,totalTags:({count})=>`Found ${count} total tags.`}}};var fr_FR_default={propertyDefaults:{title:"Sans titre",description:"Aucune description fournie"},components:{callout:{note:"Note",abstract:"R\xE9sum\xE9",info:"Info",todo:"\xC0 faire",tip:"Conseil",success:"Succ\xE8s",question:"Question",warning:"Avertissement",failure:"\xC9chec",danger:"Danger",bug:"Bogue",example:"Exemple",quote:"Citation"},backlinks:{title:"Liens retour",noBacklinksFound:"Aucun lien retour trouv\xE9"},themeToggle:{lightMode:"Mode clair",darkMode:"Mode sombre"},explorer:{title:"Explorateur"},footer:{createdWith:"Cr\xE9\xE9 avec"},graph:{title:"Vue Graphique"},recentNotes:{title:"Notes R\xE9centes",seeRemainingMore:({remaining})=>`Voir ${remaining} de plus \u2192`},transcludes:{transcludeOf:({targetSlug})=>`Transclusion de ${targetSlug}`,linkToOriginal:"Lien vers l'original"},search:{title:"Recherche",searchBarPlaceholder:"Rechercher quelque chose"},tableOfContents:{title:"Table des Mati\xE8res"},contentMeta:{readingTime:({minutes})=>`${minutes} min de lecture`}},pages:{rss:{recentNotes:"Notes r\xE9centes",lastFewNotes:({count})=>`Les derni\xE8res ${count} notes`},error:{title:"Introuvable",notFound:"Cette page est soit priv\xE9e, soit elle n'existe pas."},folderContent:{folder:"Dossier",itemsUnderFolder:({count})=>count===1?"1 \xE9l\xE9ment sous ce dossier.":`${count} \xE9l\xE9ments sous ce dossier.`},tagContent:{tag:"\xC9tiquette",tagIndex:"Index des \xE9tiquettes",itemsUnderTag:({count})=>count===1?"1 \xE9l\xE9ment avec cette \xE9tiquette.":`${count} \xE9l\xE9ments avec cette \xE9tiquette.`,showingFirst:({count})=>`Affichage des premi\xE8res ${count} \xE9tiquettes.`,totalTags:({count})=>`Trouv\xE9 ${count} \xE9tiquettes au total.`}}};var it_IT_default={propertyDefaults:{title:"Senza titolo",description:"Nessuna descrizione"},components:{callout:{note:"Nota",abstract:"Astratto",info:"Info",todo:"Da fare",tip:"Consiglio",success:"Completato",question:"Domanda",warning:"Attenzione",failure:"Errore",danger:"Pericolo",bug:"Bug",example:"Esempio",quote:"Citazione"},backlinks:{title:"Link entranti",noBacklinksFound:"Nessun link entrante"},themeToggle:{lightMode:"Tema chiaro",darkMode:"Tema scuro"},explorer:{title:"Esplora"},footer:{createdWith:"Creato con"},graph:{title:"Vista grafico"},recentNotes:{title:"Note recenti",seeRemainingMore:({remaining})=>`Vedi ${remaining} altro \u2192`},transcludes:{transcludeOf:({targetSlug})=>`Transclusione di ${targetSlug}`,linkToOriginal:"Link all'originale"},search:{title:"Cerca",searchBarPlaceholder:"Cerca qualcosa"},tableOfContents:{title:"Tabella dei contenuti"},contentMeta:{readingTime:({minutes})=>`${minutes} minuti`}},pages:{rss:{recentNotes:"Note recenti",lastFewNotes:({count})=>`Ultime ${count} note`},error:{title:"Non trovato",notFound:"Questa pagina \xE8 privata o non esiste."},folderContent:{folder:"Cartella",itemsUnderFolder:({count})=>count===1?"1 oggetto in questa cartella.":`${count} oggetti in questa cartella.`},tagContent:{tag:"Etichetta",tagIndex:"Indice etichette",itemsUnderTag:({count})=>count===1?"1 oggetto con questa etichetta.":`${count} oggetti con questa etichetta.`,showingFirst:({count})=>`Prime ${count} etichette.`,totalTags:({count})=>`Trovate ${count} etichette totali.`}}};var ja_JP_default={propertyDefaults:{title:"\u7121\u984C",description:"\u8AAC\u660E\u306A\u3057"},components:{callout:{note:"\u30CE\u30FC\u30C8",abstract:"\u6284\u9332",info:"\u60C5\u5831",todo:"\u3084\u308B\u3079\u304D\u3053\u3068",tip:"\u30D2\u30F3\u30C8",success:"\u6210\u529F",question:"\u8CEA\u554F",warning:"\u8B66\u544A",failure:"\u5931\u6557",danger:"\u5371\u967A",bug:"\u30D0\u30B0",example:"\u4F8B",quote:"\u5F15\u7528"},backlinks:{title:"\u30D0\u30C3\u30AF\u30EA\u30F3\u30AF",noBacklinksFound:"\u30D0\u30C3\u30AF\u30EA\u30F3\u30AF\u306F\u3042\u308A\u307E\u305B\u3093"},themeToggle:{lightMode:"\u30E9\u30A4\u30C8\u30E2\u30FC\u30C9",darkMode:"\u30C0\u30FC\u30AF\u30E2\u30FC\u30C9"},explorer:{title:"\u30A8\u30AF\u30B9\u30D7\u30ED\u30FC\u30E9\u30FC"},footer:{createdWith:"\u4F5C\u6210"},graph:{title:"\u30B0\u30E9\u30D5\u30D3\u30E5\u30FC"},recentNotes:{title:"\u6700\u8FD1\u306E\u8A18\u4E8B",seeRemainingMore:({remaining})=>`\u3055\u3089\u306B${remaining}\u4EF6 \u2192`},transcludes:{transcludeOf:({targetSlug})=>`${targetSlug}\u306E\u307E\u3068\u3081`,linkToOriginal:"\u5143\u8A18\u4E8B\u3078\u306E\u30EA\u30F3\u30AF"},search:{title:"\u691C\u7D22",searchBarPlaceholder:"\u691C\u7D22\u30EF\u30FC\u30C9\u3092\u5165\u529B"},tableOfContents:{title:"\u76EE\u6B21"},contentMeta:{readingTime:({minutes})=>`${minutes} min read`}},pages:{rss:{recentNotes:"\u6700\u8FD1\u306E\u8A18\u4E8B",lastFewNotes:({count})=>`\u6700\u65B0\u306E${count}\u4EF6`},error:{title:"Not Found",notFound:"\u30DA\u30FC\u30B8\u304C\u5B58\u5728\u3057\u306A\u3044\u304B\u3001\u975E\u516C\u958B\u8A2D\u5B9A\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002"},folderContent:{folder:"\u30D5\u30A9\u30EB\u30C0",itemsUnderFolder:({count})=>`${count}\u4EF6\u306E\u30DA\u30FC\u30B8`},tagContent:{tag:"\u30BF\u30B0",tagIndex:"\u30BF\u30B0\u4E00\u89A7",itemsUnderTag:({count})=>`${count}\u4EF6\u306E\u30DA\u30FC\u30B8`,showingFirst:({count})=>`\u306E\u3046\u3061\u6700\u521D\u306E${count}\u4EF6\u3092\u8868\u793A\u3057\u3066\u3044\u307E\u3059`,totalTags:({count})=>`\u5168${count}\u500B\u306E\u30BF\u30B0\u3092\u8868\u793A\u4E2D`}}};var de_DE_default={propertyDefaults:{title:"Unbenannt",description:"Keine Beschreibung angegeben"},components:{callout:{note:"Hinweis",abstract:"Zusammenfassung",info:"Info",todo:"Zu erledigen",tip:"Tipp",success:"Erfolg",question:"Frage",warning:"Warnung",failure:"Misserfolg",danger:"Gefahr",bug:"Fehler",example:"Beispiel",quote:"Zitat"},backlinks:{title:"Backlinks",noBacklinksFound:"Keine Backlinks gefunden"},themeToggle:{lightMode:"Light Mode",darkMode:"Dark Mode"},explorer:{title:"Explorer"},footer:{createdWith:"Erstellt mit"},graph:{title:"Graphansicht"},recentNotes:{title:"Zuletzt bearbeitete Seiten",seeRemainingMore:({remaining})=>`${remaining} weitere ansehen \u2192`},transcludes:{transcludeOf:({targetSlug})=>`Transklusion von ${targetSlug}`,linkToOriginal:"Link zum Original"},search:{title:"Suche",searchBarPlaceholder:"Suche nach etwas"},tableOfContents:{title:"Inhaltsverzeichnis"},contentMeta:{readingTime:({minutes})=>`${minutes} min read`}},pages:{rss:{recentNotes:"Zuletzt bearbeitete Seiten",lastFewNotes:({count})=>`Letzte ${count} Seiten`},error:{title:"Nicht gefunden",notFound:"Diese Seite ist entweder nicht \xF6ffentlich oder existiert nicht."},folderContent:{folder:"Ordner",itemsUnderFolder:({count})=>count===1?"1 Datei in diesem Ordner.":`${count} Dateien in diesem Ordner.`},tagContent:{tag:"Tag",tagIndex:"Tag-\xDCbersicht",itemsUnderTag:({count})=>count===1?"1 Datei mit diesem Tag.":`${count} Dateien mit diesem Tag.`,showingFirst:({count})=>`Die ersten ${count} Tags werden angezeigt.`,totalTags:({count})=>`${count} Tags insgesamt.`}}};var nl_NL_default={propertyDefaults:{title:"Naamloos",description:"Geen beschrijving gegeven."},components:{callout:{note:"Notitie",abstract:"Samenvatting",info:"Info",todo:"Te doen",tip:"Tip",success:"Succes",question:"Vraag",warning:"Waarschuwing",failure:"Mislukking",danger:"Gevaar",bug:"Bug",example:"Voorbeeld",quote:"Citaat"},backlinks:{title:"Backlinks",noBacklinksFound:"Geen backlinks gevonden"},themeToggle:{lightMode:"Lichte modus",darkMode:"Donkere modus"},explorer:{title:"Verkenner"},footer:{createdWith:"Gemaakt met"},graph:{title:"Grafiekweergave"},recentNotes:{title:"Recente notities",seeRemainingMore:({remaining})=>`Zie ${remaining} meer \u2192`},transcludes:{transcludeOf:({targetSlug})=>`Invoeging van ${targetSlug}`,linkToOriginal:"Link naar origineel"},search:{title:"Zoeken",searchBarPlaceholder:"Doorzoek de website"},tableOfContents:{title:"Inhoudsopgave"},contentMeta:{readingTime:({minutes})=>minutes===1?"1 minuut leestijd":`${minutes} minuten leestijd`}},pages:{rss:{recentNotes:"Recente notities",lastFewNotes:({count})=>`Laatste ${count} notities`},error:{title:"Niet gevonden",notFound:"Deze pagina is niet zichtbaar of bestaat niet."},folderContent:{folder:"Map",itemsUnderFolder:({count})=>count===1?"1 item in deze map.":`${count} items in deze map.`},tagContent:{tag:"Label",tagIndex:"Label-index",itemsUnderTag:({count})=>count===1?"1 item met dit label.":`${count} items met dit label.`,showingFirst:({count})=>count===1?"Eerste label tonen.":`Eerste ${count} labels tonen.`,totalTags:({count})=>`${count} labels gevonden.`}}};var ro_RO_default={propertyDefaults:{title:"F\u0103r\u0103 titlu",description:"Nici o descriere furnizat\u0103"},components:{callout:{note:"Not\u0103",abstract:"Rezumat",info:"Informa\u021Bie",todo:"De f\u0103cut",tip:"Sfat",success:"Succes",question:"\xCEntrebare",warning:"Avertisment",failure:"E\u0219ec",danger:"Pericol",bug:"Bug",example:"Exemplu",quote:"Citat"},backlinks:{title:"Leg\u0103turi \xEEnapoi",noBacklinksFound:"Nu s-au g\u0103sit leg\u0103turi \xEEnapoi"},themeToggle:{lightMode:"Modul luminos",darkMode:"Modul \xEEntunecat"},explorer:{title:"Explorator"},footer:{createdWith:"Creat cu"},graph:{title:"Graf"},recentNotes:{title:"Noti\u021Be recente",seeRemainingMore:({remaining})=>`Vezi \xEEnc\u0103 ${remaining} \u2192`},transcludes:{transcludeOf:({targetSlug})=>`Extras din ${targetSlug}`,linkToOriginal:"Leg\u0103tur\u0103 c\u0103tre original"},search:{title:"C\u0103utare",searchBarPlaceholder:"Introduce\u021Bi termenul de c\u0103utare..."},tableOfContents:{title:"Cuprins"},contentMeta:{readingTime:({minutes})=>minutes==1?"lectur\u0103 de 1 minut":`lectur\u0103 de ${minutes} minute`}},pages:{rss:{recentNotes:"Noti\u021Be recente",lastFewNotes:({count})=>`Ultimele ${count} noti\u021Be`},error:{title:"Pagina nu a fost g\u0103sit\u0103",notFound:"Fie aceast\u0103 pagin\u0103 este privat\u0103, fie nu exist\u0103."},folderContent:{folder:"Dosar",itemsUnderFolder:({count})=>count===1?"1 articol \xEEn acest dosar.":`${count} elemente \xEEn acest dosar.`},tagContent:{tag:"Etichet\u0103",tagIndex:"Indexul etichetelor",itemsUnderTag:({count})=>count===1?"1 articol cu aceast\u0103 etichet\u0103.":`${count} articole cu aceast\u0103 etichet\u0103.`,showingFirst:({count})=>`Se afi\u0219eaz\u0103 primele ${count} etichete.`,totalTags:({count})=>`Au fost g\u0103site ${count} etichete \xEEn total.`}}};var es_ES_default={propertyDefaults:{title:"Sin t\xEDtulo",description:"Sin descripci\xF3n"},components:{callout:{note:"Nota",abstract:"Resumen",info:"Informaci\xF3n",todo:"Por hacer",tip:"Consejo",success:"\xC9xito",question:"Pregunta",warning:"Advertencia",failure:"Fallo",danger:"Peligro",bug:"Error",example:"Ejemplo",quote:"Cita"},backlinks:{title:"Enlaces de Retroceso",noBacklinksFound:"No se han encontrado enlaces traseros"},themeToggle:{lightMode:"Modo claro",darkMode:"Modo oscuro"},explorer:{title:"Explorador"},footer:{createdWith:"Creado con"},graph:{title:"Vista Gr\xE1fica"},recentNotes:{title:"Notas Recientes",seeRemainingMore:({remaining})=>`Vea ${remaining} m\xE1s \u2192`},transcludes:{transcludeOf:({targetSlug})=>`Transcluido de ${targetSlug}`,linkToOriginal:"Enlace al original"},search:{title:"Buscar",searchBarPlaceholder:"Busca algo"},tableOfContents:{title:"Tabla de Contenidos"},contentMeta:{readingTime:({minutes})=>`${minutes} min read`}},pages:{rss:{recentNotes:"Notas recientes",lastFewNotes:({count})=>`\xDAltim\xE1s ${count} notas`},error:{title:"No se encontr\xF3.",notFound:"Esta p\xE1gina es privada o no existe."},folderContent:{folder:"Carpeta",itemsUnderFolder:({count})=>count===1?"1 art\xEDculo en esta carpeta.":`${count} art\xEDculos en esta carpeta.`},tagContent:{tag:"Etiqueta",tagIndex:"\xCDndice de Etiquetas",itemsUnderTag:({count})=>count===1?"1 art\xEDculo con esta etiqueta.":`${count} art\xEDculos con esta etiqueta.`,showingFirst:({count})=>`Mostrando las primeras ${count} etiquetas.`,totalTags:({count})=>`Se encontraron ${count} etiquetas en total.`}}};var ar_SA_default={propertyDefaults:{title:"\u063A\u064A\u0631 \u0645\u0639\u0646\u0648\u0646",description:"\u0644\u0645 \u064A\u062A\u0645 \u062A\u0642\u062F\u064A\u0645 \u0623\u064A \u0648\u0635\u0641"},components:{callout:{note:"\u0645\u0644\u0627\u062D\u0638\u0629",abstract:"\u0645\u0644\u062E\u0635",info:"\u0645\u0639\u0644\u0648\u0645\u0627\u062A",todo:"\u0644\u0644\u0642\u064A\u0627\u0645",tip:"\u0646\u0635\u064A\u062D\u0629",success:"\u0646\u062C\u0627\u062D",question:"\u0633\u0624\u0627\u0644",warning:"\u062A\u062D\u0630\u064A\u0631",failure:"\u0641\u0634\u0644",danger:"\u062E\u0637\u0631",bug:"\u062E\u0644\u0644",example:"\u0645\u062B\u0627\u0644",quote:"\u0627\u0642\u062A\u0628\u0627\u0633"},backlinks:{title:"\u0648\u0635\u0644\u0627\u062A \u0627\u0644\u0639\u0648\u062F\u0629",noBacklinksFound:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0648\u0635\u0644\u0627\u062A \u0639\u0648\u062F\u0629"},themeToggle:{lightMode:"\u0627\u0644\u0648\u0636\u0639 \u0627\u0644\u0646\u0647\u0627\u0631\u064A",darkMode:"\u0627\u0644\u0648\u0636\u0639 \u0627\u0644\u0644\u064A\u0644\u064A"},explorer:{title:"\u0627\u0644\u0645\u0633\u062A\u0639\u0631\u0636"},footer:{createdWith:"\u0623\u064F\u0646\u0634\u0626 \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645"},graph:{title:"\u0627\u0644\u062A\u0645\u062B\u064A\u0644 \u0627\u0644\u062A\u0641\u0627\u0639\u0644\u064A"},recentNotes:{title:"\u0622\u062E\u0631 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0627\u062A",seeRemainingMore:({remaining})=>`\u062A\u0635\u0641\u062D ${remaining} \u0623\u0643\u062B\u0631 \u2192`},transcludes:{transcludeOf:({targetSlug})=>`\u0645\u0642\u062A\u0628\u0633 \u0645\u0646 ${targetSlug}`,linkToOriginal:"\u0648\u0635\u0644\u0629 \u0644\u0644\u0645\u0644\u0627\u062D\u0638\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u0629"},search:{title:"\u0628\u062D\u062B",searchBarPlaceholder:"\u0627\u0628\u062D\u062B \u0639\u0646 \u0634\u064A\u0621 \u0645\u0627"},tableOfContents:{title:"\u0641\u0647\u0631\u0633 \u0627\u0644\u0645\u062D\u062A\u0648\u064A\u0627\u062A"},contentMeta:{readingTime:({minutes})=>minutes==1?"\u062F\u0642\u064A\u0642\u0629 \u0623\u0648 \u0623\u0642\u0644 \u0644\u0644\u0642\u0631\u0627\u0621\u0629":minutes==2?"\u062F\u0642\u064A\u0642\u062A\u0627\u0646 \u0644\u0644\u0642\u0631\u0627\u0621\u0629":`${minutes} \u062F\u0642\u0627\u0626\u0642 \u0644\u0644\u0642\u0631\u0627\u0621\u0629`}},pages:{rss:{recentNotes:"\u0622\u062E\u0631 \u0627\u0644\u0645\u0644\u0627\u062D\u0638\u0627\u062A",lastFewNotes:({count})=>`\u0622\u062E\u0631 ${count} \u0645\u0644\u0627\u062D\u0638\u0629`},error:{title:"\u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F",notFound:"\u0625\u0645\u0627 \u0623\u0646 \u0647\u0630\u0647 \u0627\u0644\u0635\u0641\u062D\u0629 \u062E\u0627\u0635\u0629 \u0623\u0648 \u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F\u0629."},folderContent:{folder:"\u0645\u062C\u0644\u062F",itemsUnderFolder:({count})=>count===1?"\u064A\u0648\u062C\u062F \u0639\u0646\u0635\u0631 \u0648\u0627\u062D\u062F \u0641\u0642\u0637 \u062A\u062D\u062A \u0647\u0630\u0627 \u0627\u0644\u0645\u062C\u0644\u062F":`\u064A\u0648\u062C\u062F ${count} \u0639\u0646\u0627\u0635\u0631 \u062A\u062D\u062A \u0647\u0630\u0627 \u0627\u0644\u0645\u062C\u0644\u062F.`},tagContent:{tag:"\u0627\u0644\u0648\u0633\u0645",tagIndex:"\u0645\u0624\u0634\u0631 \u0627\u0644\u0648\u0633\u0645",itemsUnderTag:({count})=>count===1?"\u064A\u0648\u062C\u062F \u0639\u0646\u0635\u0631 \u0648\u0627\u062D\u062F \u0641\u0642\u0637 \u062A\u062D\u062A \u0647\u0630\u0627 \u0627\u0644\u0648\u0633\u0645":`\u064A\u0648\u062C\u062F ${count} \u0639\u0646\u0627\u0635\u0631 \u062A\u062D\u062A \u0647\u0630\u0627 \u0627\u0644\u0648\u0633\u0645.`,showingFirst:({count})=>`\u0625\u0638\u0647\u0627\u0631 \u0623\u0648\u0644 ${count} \u0623\u0648\u0633\u0645\u0629.`,totalTags:({count})=>`\u064A\u0648\u062C\u062F ${count} \u0623\u0648\u0633\u0645\u0629.`}}};var uk_UA_default={propertyDefaults:{title:"\u0411\u0435\u0437 \u043D\u0430\u0437\u0432\u0438",description:"\u041E\u043F\u0438\u0441 \u043D\u0435 \u043D\u0430\u0434\u0430\u043D\u043E"},components:{callout:{note:"\u041F\u0440\u0438\u043C\u0456\u0442\u043A\u0430",abstract:"\u0410\u0431\u0441\u0442\u0440\u0430\u043A\u0442",info:"\u0406\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044F",todo:"\u0417\u0430\u0432\u0434\u0430\u043D\u043D\u044F",tip:"\u041F\u043E\u0440\u0430\u0434\u0430",success:"\u0423\u0441\u043F\u0456\u0445",question:"\u041F\u0438\u0442\u0430\u043D\u043D\u044F",warning:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u0436\u0435\u043D\u043D\u044F",failure:"\u041D\u0435\u0432\u0434\u0430\u0447\u0430",danger:"\u041D\u0435\u0431\u0435\u0437\u043F\u0435\u043A\u0430",bug:"\u0411\u0430\u0433",example:"\u041F\u0440\u0438\u043A\u043B\u0430\u0434",quote:"\u0426\u0438\u0442\u0430\u0442\u0430"},backlinks:{title:"\u0417\u0432\u043E\u0440\u043E\u0442\u043D\u0456 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",noBacklinksFound:"\u0417\u0432\u043E\u0440\u043E\u0442\u043D\u0438\u0445 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u044C \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E"},themeToggle:{lightMode:"\u0421\u0432\u0456\u0442\u043B\u0438\u0439 \u0440\u0435\u0436\u0438\u043C",darkMode:"\u0422\u0435\u043C\u043D\u0438\u0439 \u0440\u0435\u0436\u0438\u043C"},explorer:{title:"\u041F\u0440\u043E\u0432\u0456\u0434\u043D\u0438\u043A"},footer:{createdWith:"\u0421\u0442\u0432\u043E\u0440\u0435\u043D\u043E \u0437\u0430 \u0434\u043E\u043F\u043E\u043C\u043E\u0433\u043E\u044E"},graph:{title:"\u0412\u0438\u0433\u043B\u044F\u0434 \u0433\u0440\u0430\u0444\u0430"},recentNotes:{title:"\u041E\u0441\u0442\u0430\u043D\u043D\u0456 \u043D\u043E\u0442\u0430\u0442\u043A\u0438",seeRemainingMore:({remaining})=>`\u041F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u0443\u0442\u0438 \u0449\u0435 ${remaining} \u2192`},transcludes:{transcludeOf:({targetSlug})=>`\u0412\u0438\u0434\u043E\u0431\u0443\u0442\u043E \u0437 ${targetSlug}`,linkToOriginal:"\u041F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F \u043D\u0430 \u043E\u0440\u0438\u0433\u0456\u043D\u0430\u043B"},search:{title:"\u041F\u043E\u0448\u0443\u043A",searchBarPlaceholder:"\u0428\u0443\u043A\u0430\u0442\u0438 \u0449\u043E\u0441\u044C"},tableOfContents:{title:"\u0417\u043C\u0456\u0441\u0442"},contentMeta:{readingTime:({minutes})=>`${minutes} min read`}},pages:{rss:{recentNotes:"\u041E\u0441\u0442\u0430\u043D\u043D\u0456 \u043D\u043E\u0442\u0430\u0442\u043A\u0438",lastFewNotes:({count})=>`\u041E\u0441\u0442\u0430\u043D\u043D\u0456 \u043D\u043E\u0442\u0430\u0442\u043A\u0438: ${count}`},error:{title:"\u041D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E",notFound:"\u0426\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430 \u0430\u0431\u043E \u043F\u0440\u0438\u0432\u0430\u0442\u043D\u0430, \u0430\u0431\u043E \u043D\u0435 \u0456\u0441\u043D\u0443\u0454."},folderContent:{folder:"\u041F\u0430\u043F\u043A\u0430",itemsUnderFolder:({count})=>count===1?"\u0423 \u0446\u0456\u0439 \u043F\u0430\u043F\u0446\u0456 1 \u0435\u043B\u0435\u043C\u0435\u043D\u0442.":`\u0415\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432 \u0443 \u0446\u0456\u0439 \u043F\u0430\u043F\u0446\u0456: ${count}.`},tagContent:{tag:"\u0422\u0435\u0433",tagIndex:"\u0406\u043D\u0434\u0435\u043A\u0441 \u0442\u0435\u0433\u0443",itemsUnderTag:({count})=>count===1?"1 \u0435\u043B\u0435\u043C\u0435\u043D\u0442 \u0437 \u0446\u0438\u043C \u0442\u0435\u0433\u043E\u043C.":`\u0415\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432 \u0437 \u0446\u0438\u043C \u0442\u0435\u0433\u043E\u043C: ${count}.`,showingFirst:({count})=>`\u041F\u043E\u043A\u0430\u0437 \u043F\u0435\u0440\u0448\u0438\u0445 ${count} \u0442\u0435\u0433\u0456\u0432.`,totalTags:({count})=>`\u0412\u0441\u044C\u043E\u0433\u043E \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0442\u0435\u0433\u0456\u0432: ${count}.`}}};var ru_RU_default={propertyDefaults:{title:"\u0411\u0435\u0437 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F",description:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"},components:{callout:{note:"\u0417\u0430\u043C\u0435\u0442\u043A\u0430",abstract:"\u0420\u0435\u0437\u044E\u043C\u0435",info:"\u0418\u043D\u0444\u043E",todo:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C",tip:"\u041F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0430",success:"\u0423\u0441\u043F\u0435\u0445",question:"\u0412\u043E\u043F\u0440\u043E\u0441",warning:"\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435",failure:"\u041D\u0435\u0443\u0434\u0430\u0447\u0430",danger:"\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C",bug:"\u0411\u0430\u0433",example:"\u041F\u0440\u0438\u043C\u0435\u0440",quote:"\u0426\u0438\u0442\u0430\u0442\u0430"},backlinks:{title:"\u041E\u0431\u0440\u0430\u0442\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438",noBacklinksFound:"\u041E\u0431\u0440\u0430\u0442\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442"},themeToggle:{lightMode:"\u0421\u0432\u0435\u0442\u043B\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",darkMode:"\u0422\u0451\u043C\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C"},explorer:{title:"\u041F\u0440\u043E\u0432\u043E\u0434\u043D\u0438\u043A"},footer:{createdWith:"\u0421\u043E\u0437\u0434\u0430\u043D\u043E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E"},graph:{title:"\u0412\u0438\u0434 \u0433\u0440\u0430\u0444\u0430"},recentNotes:{title:"\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435 \u0437\u0430\u043C\u0435\u0442\u043A\u0438",seeRemainingMore:({remaining})=>`\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u043E\u0441\u0442\u0430\u0432\u0448${getForm(remaining,"\u0443\u044E\u0441\u044F","\u0438\u0435\u0441\u044F","\u0438\u0435\u0441\u044F")} ${remaining} \u2192`},transcludes:{transcludeOf:({targetSlug})=>`\u041F\u0435\u0440\u0435\u0445\u043E\u0434 \u0438\u0437 ${targetSlug}`,linkToOriginal:"\u0421\u0441\u044B\u043B\u043A\u0430 \u043D\u0430 \u043E\u0440\u0438\u0433\u0438\u043D\u0430\u043B"},search:{title:"\u041F\u043E\u0438\u0441\u043A",searchBarPlaceholder:"\u041D\u0430\u0439\u0442\u0438 \u0447\u0442\u043E-\u043D\u0438\u0431\u0443\u0434\u044C"},tableOfContents:{title:"\u041E\u0433\u043B\u0430\u0432\u043B\u0435\u043D\u0438\u0435"},contentMeta:{readingTime:({minutes})=>`\u0432\u0440\u0435\u043C\u044F \u0447\u0442\u0435\u043D\u0438\u044F ~${minutes} \u043C\u0438\u043D.`}},pages:{rss:{recentNotes:"\u041D\u0435\u0434\u0430\u0432\u043D\u0438\u0435 \u0437\u0430\u043C\u0435\u0442\u043A\u0438",lastFewNotes:({count})=>`\u041F\u043E\u0441\u043B\u0435\u0434\u043D${getForm(count,"\u044F\u044F","\u0438\u0435","\u0438\u0435")} ${count} \u0437\u0430\u043C\u0435\u0442${getForm(count,"\u043A\u0430","\u043A\u0438","\u043E\u043A")}`},error:{title:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430",notFound:"\u042D\u0442\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430 \u043F\u0440\u0438\u0432\u0430\u0442\u043D\u0430\u044F \u0438\u043B\u0438 \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442"},folderContent:{folder:"\u041F\u0430\u043F\u043A\u0430",itemsUnderFolder:({count})=>`\u0432 \u044D\u0442\u043E\u0439 \u043F\u0430\u043F\u043A\u0435 ${count} \u044D\u043B\u0435\u043C\u0435\u043D\u0442${getForm(count,"","\u0430","\u043E\u0432")}`},tagContent:{tag:"\u0422\u0435\u0433",tagIndex:"\u0418\u043D\u0434\u0435\u043A\u0441 \u0442\u0435\u0433\u043E\u0432",itemsUnderTag:({count})=>`\u0441 \u044D\u0442\u0438\u043C \u0442\u0435\u0433\u043E\u043C ${count} \u044D\u043B\u0435\u043C\u0435\u043D\u0442${getForm(count,"","\u0430","\u043E\u0432")}`,showingFirst:({count})=>`\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430${getForm(count,"\u0435\u0442\u0441\u044F","\u044E\u0442\u0441\u044F","\u044E\u0442\u0441\u044F")} ${count} \u0442\u0435\u0433${getForm(count,"","\u0430","\u043E\u0432")}`,totalTags:({count})=>`\u0412\u0441\u0435\u0433\u043E ${count} \u0442\u0435\u0433${getForm(count,"","\u0430","\u043E\u0432")}`}}};function getForm(number,form1,form2,form5){let remainder100=number%100,remainder10=remainder100%10;return remainder100>=10&&remainder100<=20?form5:remainder10>1&&remainder10<5?form2:remainder10==1?form1:form5}__name(getForm,"getForm");var ko_KR_default={propertyDefaults:{title:"\uC81C\uBAA9 \uC5C6\uC74C",description:"\uC124\uBA85 \uC5C6\uC74C"},components:{callout:{note:"\uB178\uD2B8",abstract:"\uAC1C\uC694",info:"\uC815\uBCF4",todo:"\uD560\uC77C",tip:"\uD301",success:"\uC131\uACF5",question:"\uC9C8\uBB38",warning:"\uC8FC\uC758",failure:"\uC2E4\uD328",danger:"\uC704\uD5D8",bug:"\uBC84\uADF8",example:"\uC608\uC2DC",quote:"\uC778\uC6A9"},backlinks:{title:"\uBC31\uB9C1\uD06C",noBacklinksFound:"\uBC31\uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},themeToggle:{lightMode:"\uB77C\uC774\uD2B8 \uBAA8\uB4DC",darkMode:"\uB2E4\uD06C \uBAA8\uB4DC"},explorer:{title:"\uD0D0\uC0C9\uAE30"},footer:{createdWith:"Created with"},graph:{title:"\uADF8\uB798\uD504 \uBDF0"},recentNotes:{title:"\uCD5C\uADFC \uAC8C\uC2DC\uAE00",seeRemainingMore:({remaining})=>`${remaining}\uAC74 \uB354\uBCF4\uAE30 \u2192`},transcludes:{transcludeOf:({targetSlug})=>`${targetSlug}\uC758 \uD3EC\uD568`,linkToOriginal:"\uC6D0\uBCF8 \uB9C1\uD06C"},search:{title:"\uAC80\uC0C9",searchBarPlaceholder:"\uAC80\uC0C9\uC5B4\uB97C \uC785\uB825\uD558\uC138\uC694"},tableOfContents:{title:"\uBAA9\uCC28"},contentMeta:{readingTime:({minutes})=>`${minutes} min read`}},pages:{rss:{recentNotes:"\uCD5C\uADFC \uAC8C\uC2DC\uAE00",lastFewNotes:({count})=>`\uCD5C\uADFC ${count} \uAC74`},error:{title:"Not Found",notFound:"\uD398\uC774\uC9C0\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uAC70\uB098 \uBE44\uACF5\uAC1C \uC124\uC815\uC774 \uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."},folderContent:{folder:"\uD3F4\uB354",itemsUnderFolder:({count})=>`${count}\uAC74\uC758 \uD56D\uBAA9`},tagContent:{tag:"\uD0DC\uADF8",tagIndex:"\uD0DC\uADF8 \uBAA9\uB85D",itemsUnderTag:({count})=>`${count}\uAC74\uC758 \uD56D\uBAA9`,showingFirst:({count})=>`\uCC98\uC74C ${count}\uAC1C\uC758 \uD0DC\uADF8`,totalTags:({count})=>`\uCD1D ${count}\uAC1C\uC758 \uD0DC\uADF8\uB97C \uCC3E\uC558\uC2B5\uB2C8\uB2E4.`}}};var zh_CN_default={propertyDefaults:{title:"\u65E0\u9898",description:"\u65E0\u63CF\u8FF0"},components:{callout:{note:"\u7B14\u8BB0",abstract:"\u6458\u8981",info:"\u63D0\u793A",todo:"\u5F85\u529E",tip:"\u63D0\u793A",success:"\u6210\u529F",question:"\u95EE\u9898",warning:"\u8B66\u544A",failure:"\u5931\u8D25",danger:"\u5371\u9669",bug:"\u9519\u8BEF",example:"\u793A\u4F8B",quote:"\u5F15\u7528"},backlinks:{title:"\u53CD\u5411\u94FE\u63A5",noBacklinksFound:"\u65E0\u6CD5\u627E\u5230\u53CD\u5411\u94FE\u63A5"},themeToggle:{lightMode:"\u4EAE\u8272\u6A21\u5F0F",darkMode:"\u6697\u8272\u6A21\u5F0F"},explorer:{title:"\u63A2\u7D22"},footer:{createdWith:"Created with"},graph:{title:"\u5173\u7CFB\u56FE\u8C31"},recentNotes:{title:"\u6700\u8FD1\u7684\u7B14\u8BB0",seeRemainingMore:({remaining})=>`\u67E5\u770B\u66F4\u591A${remaining}\u7BC7\u7B14\u8BB0 \u2192`},transcludes:{transcludeOf:({targetSlug})=>`\u5305\u542B${targetSlug}`,linkToOriginal:"\u6307\u5411\u539F\u59CB\u7B14\u8BB0\u7684\u94FE\u63A5"},search:{title:"\u641C\u7D22",searchBarPlaceholder:"\u641C\u7D22\u4E9B\u4EC0\u4E48"},tableOfContents:{title:"\u76EE\u5F55"},contentMeta:{readingTime:({minutes})=>`${minutes}\u5206\u949F\u9605\u8BFB`}},pages:{rss:{recentNotes:"\u6700\u8FD1\u7684\u7B14\u8BB0",lastFewNotes:({count})=>`\u6700\u8FD1\u7684${count}\u6761\u7B14\u8BB0`},error:{title:"\u65E0\u6CD5\u627E\u5230",notFound:"\u79C1\u6709\u7B14\u8BB0\u6216\u7B14\u8BB0\u4E0D\u5B58\u5728\u3002"},folderContent:{folder:"\u6587\u4EF6\u5939",itemsUnderFolder:({count})=>`\u6B64\u6587\u4EF6\u5939\u4E0B\u6709${count}\u6761\u7B14\u8BB0\u3002`},tagContent:{tag:"\u6807\u7B7E",tagIndex:"\u6807\u7B7E\u7D22\u5F15",itemsUnderTag:({count})=>`\u6B64\u6807\u7B7E\u4E0B\u6709${count}\u6761\u7B14\u8BB0\u3002`,showingFirst:({count})=>`\u663E\u793A\u524D${count}\u4E2A\u6807\u7B7E\u3002`,totalTags:({count})=>`\u603B\u5171\u6709${count}\u4E2A\u6807\u7B7E\u3002`}}};var vi_VN_default={propertyDefaults:{title:"Kh\xF4ng c\xF3 ti\xEAu \u0111\u1EC1",description:"Kh\xF4ng c\xF3 m\xF4 t\u1EA3 \u0111\u01B0\u1EE3c cung c\u1EA5p"},components:{callout:{note:"Ghi Ch\xFA",abstract:"T\xF3m T\u1EAFt",info:"Th\xF4ng tin",todo:"C\u1EA7n L\xE0m",tip:"G\u1EE3i \xDD",success:"Th\xE0nh C\xF4ng",question:"Nghi V\u1EA5n",warning:"C\u1EA3nh B\xE1o",failure:"Th\u1EA5t B\u1EA1i",danger:"Nguy Hi\u1EC3m",bug:"L\u1ED7i",example:"V\xED D\u1EE5",quote:"Tr\xEDch D\u1EABn"},backlinks:{title:"Li\xEAn K\u1EBFt Ng\u01B0\u1EE3c",noBacklinksFound:"Kh\xF4ng c\xF3 li\xEAn k\u1EBFt ng\u01B0\u1EE3c \u0111\u01B0\u1EE3c t\xECm th\u1EA5y"},themeToggle:{lightMode:"S\xE1ng",darkMode:"T\u1ED1i"},explorer:{title:"Trong b\xE0i n\xE0y"},footer:{createdWith:"\u0110\u01B0\u1EE3c t\u1EA1o b\u1EDFi"},graph:{title:"Bi\u1EC3u \u0110\u1ED3"},recentNotes:{title:"B\xE0i vi\u1EBFt g\u1EA7n \u0111\xE2y",seeRemainingMore:({remaining})=>`Xem ${remaining} th\xEAm \u2192`},transcludes:{transcludeOf:({targetSlug})=>`Bao g\u1ED3m ${targetSlug}`,linkToOriginal:"Li\xEAn K\u1EBFt G\u1ED1c"},search:{title:"T\xECm Ki\u1EBFm",searchBarPlaceholder:"T\xECm ki\u1EBFm th\xF4ng tin"},tableOfContents:{title:"B\u1EA3ng N\u1ED9i Dung"},contentMeta:{readingTime:({minutes})=>`\u0111\u1ECDc ${minutes} ph\xFAt`}},pages:{rss:{recentNotes:"Nh\u1EEFng b\xE0i g\u1EA7n \u0111\xE2y",lastFewNotes:({count})=>`${count} B\xE0i g\u1EA7n \u0111\xE2y`},error:{title:"Kh\xF4ng T\xECm Th\u1EA5y",notFound:"Trang n\xE0y \u0111\u01B0\u1EE3c b\u1EA3o m\u1EADt ho\u1EB7c kh\xF4ng t\u1ED3n t\u1EA1i."},folderContent:{folder:"Th\u01B0 M\u1EE5c",itemsUnderFolder:({count})=>count===1?"1 m\u1EE5c trong th\u01B0 m\u1EE5c n\xE0y.":`${count} m\u1EE5c trong th\u01B0 m\u1EE5c n\xE0y.`},tagContent:{tag:"Th\u1EBB",tagIndex:"Th\u1EBB M\u1EE5c L\u1EE5c",itemsUnderTag:({count})=>count===1?"1 m\u1EE5c g\u1EAFn th\u1EBB n\xE0y.":`${count} m\u1EE5c g\u1EAFn th\u1EBB n\xE0y.`,showingFirst:({count})=>`Hi\u1EC3n th\u1ECB tr\u01B0\u1EDBc ${count} th\u1EBB.`,totalTags:({count})=>`T\xECm th\u1EA5y ${count} th\u1EBB t\u1ED5ng c\u1ED9ng.`}}};var pt_BR_default={propertyDefaults:{title:"Sem t\xEDtulo",description:"Sem descri\xE7\xE3o"},components:{callout:{note:"Nota",abstract:"Abstrato",info:"Info",todo:"Pend\xEAncia",tip:"Dica",success:"Sucesso",question:"Pergunta",warning:"Aviso",failure:"Falha",danger:"Perigo",bug:"Bug",example:"Exemplo",quote:"Cita\xE7\xE3o"},backlinks:{title:"Backlinks",noBacklinksFound:"Sem backlinks encontrados"},themeToggle:{lightMode:"Tema claro",darkMode:"Tema escuro"},explorer:{title:"Explorador"},footer:{createdWith:"Criado com"},graph:{title:"Vis\xE3o de gr\xE1fico"},recentNotes:{title:"Notas recentes",seeRemainingMore:({remaining})=>`Veja mais ${remaining} \u2192`},transcludes:{transcludeOf:({targetSlug})=>`Transcrever de ${targetSlug}`,linkToOriginal:"Link ao original"},search:{title:"Pesquisar",searchBarPlaceholder:"Pesquisar por algo"},tableOfContents:{title:"Sum\xE1rio"},contentMeta:{readingTime:({minutes})=>`Leitura de ${minutes} min`}},pages:{rss:{recentNotes:"Notas recentes",lastFewNotes:({count})=>`\xDAltimas ${count} notas`},error:{title:"N\xE3o encontrado",notFound:"Esta p\xE1gina \xE9 privada ou n\xE3o existe."},folderContent:{folder:"Arquivo",itemsUnderFolder:({count})=>count===1?"1 item mneste arquivo.":`${count} items neste arquivo.`},tagContent:{tag:"Tag",tagIndex:"Sum\xE1rio de Tags",itemsUnderTag:({count})=>count===1?"1 item com esta tag.":`${count} items com esta tag.`,showingFirst:({count})=>`Mostrando as ${count} primeiras tags.`,totalTags:({count})=>`Encontradas ${count} tags.`}}};var hu_HU_default={propertyDefaults:{title:"N\xE9vtelen",description:"Nincs le\xEDr\xE1s"},components:{callout:{note:"Jegyzet",abstract:"Abstract",info:"Inform\xE1ci\xF3",todo:"Tennival\xF3",tip:"Tipp",success:"Siker",question:"K\xE9rd\xE9s",warning:"Figyelmeztet\xE9s",failure:"Hiba",danger:"Vesz\xE9ly",bug:"Bug",example:"P\xE9lda",quote:"Id\xE9zet"},backlinks:{title:"Visszautal\xE1sok",noBacklinksFound:"Nincs visszautal\xE1s"},themeToggle:{lightMode:"Vil\xE1gos m\xF3d",darkMode:"S\xF6t\xE9t m\xF3d"},explorer:{title:"F\xE1jlb\xF6ng\xE9sz\u0151"},footer:{createdWith:"K\xE9sz\xEDtve ezzel:"},graph:{title:"Grafikonn\xE9zet"},recentNotes:{title:"Legut\xF3bbi jegyzetek",seeRemainingMore:({remaining})=>`${remaining} tov\xE1bbi megtekint\xE9se \u2192`},transcludes:{transcludeOf:({targetSlug})=>`${targetSlug} \xE1thivatkoz\xE1sa`,linkToOriginal:"Hivatkoz\xE1s az eredetire"},search:{title:"Keres\xE9s",searchBarPlaceholder:"Keress valamire"},tableOfContents:{title:"Tartalomjegyz\xE9k"},contentMeta:{readingTime:({minutes})=>`${minutes} perces olvas\xE1s`}},pages:{rss:{recentNotes:"Legut\xF3bbi jegyzetek",lastFewNotes:({count})=>`Legut\xF3bbi ${count} jegyzet`},error:{title:"Nem tal\xE1lhat\xF3",notFound:"Ez a lap vagy priv\xE1t vagy nem l\xE9tezik."},folderContent:{folder:"Mappa",itemsUnderFolder:({count})=>`Ebben a mapp\xE1ban ${count} elem tal\xE1lhat\xF3.`},tagContent:{tag:"C\xEDmke",tagIndex:"C\xEDmke index",itemsUnderTag:({count})=>`${count} elem tal\xE1lhat\xF3 ezzel a c\xEDmk\xE9vel.`,showingFirst:({count})=>`Els\u0151 ${count} c\xEDmke megjelen\xEDtve.`,totalTags:({count})=>`\xD6sszesen ${count} c\xEDmke tal\xE1lhat\xF3.`}}};var TRANSLATIONS={"en-US":en_US_default,"fr-FR":fr_FR_default,"it-IT":it_IT_default,"ja-JP":ja_JP_default,"de-DE":de_DE_default,"nl-NL":nl_NL_default,"nl-BE":nl_NL_default,"ro-RO":ro_RO_default,"ro-MD":ro_RO_default,"es-ES":es_ES_default,"ar-SA":ar_SA_default,"ar-AE":ar_SA_default,"ar-QA":ar_SA_default,"ar-BH":ar_SA_default,"ar-KW":ar_SA_default,"ar-OM":ar_SA_default,"ar-YE":ar_SA_default,"ar-IR":ar_SA_default,"ar-SY":ar_SA_default,"ar-IQ":ar_SA_default,"ar-JO":ar_SA_default,"ar-PL":ar_SA_default,"ar-LB":ar_SA_default,"ar-EG":ar_SA_default,"ar-SD":ar_SA_default,"ar-LY":ar_SA_default,"ar-MA":ar_SA_default,"ar-TN":ar_SA_default,"ar-DZ":ar_SA_default,"ar-MR":ar_SA_default,"uk-UA":uk_UA_default,"ru-RU":ru_RU_default,"ko-KR":ko_KR_default,"zh-CN":zh_CN_default,"vi-VN":vi_VN_default,"pt-BR":pt_BR_default,"hu-HU":hu_HU_default},defaultTranslation="en-US",i18n=__name(locale=>TRANSLATIONS[locale??defaultTranslation],"i18n");var defaultOptions={delimiters:"---",language:"yaml"};function coalesceAliases(data,aliases){for(let alias of aliases)if(data[alias]!==void 0&&data[alias]!==null)return data[alias]}__name(coalesceAliases,"coalesceAliases");function coerceToArray(input){if(input!=null)return Array.isArray(input)||(input=input.toString().split(",").map(tag=>tag.trim())),input.filter(tag=>typeof tag=="string"||typeof tag=="number").map(tag=>tag.toString())}__name(coerceToArray,"coerceToArray");var FrontMatter=__name(userOpts=>{let opts={...defaultOptions,...userOpts};return{name:"FrontMatter",markdownPlugins({cfg}){return[[remarkFrontmatter,["yaml","toml"]],()=>(_,file)=>{let{data}=matter(Buffer.from(file.value),{...opts,engines:{yaml:s=>yaml.load(s,{schema:yaml.JSON_SCHEMA}),toml:s=>toml.parse(s)}});data.title!=null&&data.title.toString()!==""?data.title=data.title.toString():data.title=file.stem??i18n(cfg.configuration.locale).propertyDefaults.title;let tags=coerceToArray(coalesceAliases(data,["tags","tag"]));tags&&(data.tags=[...new Set(tags.map(tag=>slugTag(tag)))]);let aliases=coerceToArray(coalesceAliases(data,["aliases","alias"]));aliases&&(data.aliases=aliases);let cssclasses=coerceToArray(coalesceAliases(data,["cssclasses","cssclass"]));cssclasses&&(data.cssclasses=cssclasses),file.data.frontmatter=data}]}}},"FrontMatter");import remarkGfm from"remark-gfm";import smartypants from"remark-smartypants";import rehypeSlug from"rehype-slug";import rehypeAutolinkHeadings from"rehype-autolink-headings";var defaultOptions2={enableSmartyPants:!0,linkHeadings:!0},GitHubFlavoredMarkdown=__name(userOpts=>{let opts={...defaultOptions2,...userOpts};return{name:"GitHubFlavoredMarkdown",markdownPlugins(){return opts.enableSmartyPants?[remarkGfm,smartypants]:[remarkGfm]},htmlPlugins(){return opts.linkHeadings?[rehypeSlug,[rehypeAutolinkHeadings,{behavior:"append",properties:{role:"anchor",ariaHidden:!0,tabIndex:-1,"data-no-popover":!0},content:{type:"element",tagName:"svg",properties:{width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},children:[{type:"element",tagName:"path",properties:{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"},children:[]},{type:"element",tagName:"path",properties:{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"},children:[]}]}}]]:[]}}},"GitHubFlavoredMarkdown");import rehypeCitation from"rehype-citation";import{visit}from"unist-util-visit";import fs from"fs";import path2 from"path";import{Repository}from"@napi-rs/simple-git";import chalk3 from"chalk";var defaultOptions3={priority:["frontmatter","git","filesystem"]};function coerceDate(fp,d){let dt=new Date(d),invalidDate=isNaN(dt.getTime())||dt.getTime()===0;return invalidDate&&d!==void 0&&console.log(chalk3.yellow(`
Warning: found invalid date "${d}" in \`${fp}\`. Supported formats: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format`)),invalidDate?new Date:dt}__name(coerceDate,"coerceDate");var CreatedModifiedDate=__name(userOpts=>{let opts={...defaultOptions3,...userOpts};return{name:"CreatedModifiedDate",markdownPlugins(){return[()=>{let repo;return async(_tree,file)=>{let created,modified,published,fp=file.data.filePath,fullFp=path2.isAbsolute(fp)?fp:path2.posix.join(file.cwd,fp);for(let source of opts.priority)if(source==="filesystem"){let st=await fs.promises.stat(fullFp);created||=st.birthtimeMs,modified||=st.mtimeMs}else if(source==="frontmatter"&&file.data.frontmatter)created||=file.data.frontmatter.date,modified||=file.data.frontmatter.lastmod,modified||=file.data.frontmatter.updated,modified||=file.data.frontmatter["last-modified"],published||=file.data.frontmatter.publishDate;else if(source==="git"){repo||(repo=Repository.discover(file.cwd));try{modified||=await repo.getFileLatestModifiedDateAsync(file.data.filePath)}catch{console.log(chalk3.yellow(`
Warning: ${file.data.filePath} isn't yet tracked by git, last modification date is not available for this file`))}}file.data.dates={created:coerceDate(fp,created),modified:coerceDate(fp,modified),published:coerceDate(fp,published)}}}]}}},"CreatedModifiedDate");import remarkMath from"remark-math";import rehypeKatex from"rehype-katex";import rehypeMathjax from"rehype-mathjax/svg";var Latex=__name(opts=>{let engine=opts?.renderEngine??"katex";return{name:"Latex",markdownPlugins(){return[remarkMath]},htmlPlugins(){return engine==="katex"?[[rehypeKatex,{output:"html"}]]:[rehypeMathjax]},externalResources(){return engine==="katex"?{css:["https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css"],js:[{src:"https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/contrib/copy-tex.min.js",loadTime:"afterDOMReady",contentType:"external"}]}:{}}}},"Latex");import{toString}from"hast-util-to-string";var escapeHTML=__name(unsafe=>unsafe.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;"),"escapeHTML");var defaultOptions4={descriptionLength:150,replaceExternalLinks:!0},urlRegex=new RegExp(/(https?:\/\/)?(?<domain>([\da-z\.-]+)\.([a-z\.]{2,6})(:\d+)?)(?<path>[\/\w\.-]*)(\?[\/\w\.=&;-]*)?/,"g"),Description=__name(userOpts=>{let opts={...defaultOptions4,...userOpts};return{name:"Description",htmlPlugins(){return[()=>async(tree,file)=>{let frontMatterDescription=file.data.frontmatter?.description,text=escapeHTML(toString(tree));opts.replaceExternalLinks&&(frontMatterDescription=frontMatterDescription?.replace(urlRegex,"$<domain>$<path>"),text=text.replace(urlRegex,"$<domain>$<path>"));let sentences=(frontMatterDescription??text).replace(/\s+/g," ").split(/\.\s/),finalDesc=[],len=opts.descriptionLength,sentenceIdx=0,currentDescriptionLength=0;if(sentences[0]!==void 0&&sentences[0].length>=len){let firstSentence=sentences[0].split(" ");for(;currentDescriptionLength<len;){let sentence=firstSentence[sentenceIdx];if(!sentence)break;finalDesc.push(sentence),currentDescriptionLength+=sentence.length,sentenceIdx++}finalDesc.push("...")}else for(;currentDescriptionLength<len;){let sentence=sentences[sentenceIdx];if(!sentence)break;let currentSentence=sentence.endsWith(".")?sentence:sentence+".";finalDesc.push(currentSentence),currentDescriptionLength+=currentSentence.length,sentenceIdx++}file.data.description=finalDesc.join(" "),file.data.text=text}]}}},"Description");import path3 from"path";import{visit as visit2}from"unist-util-visit";import isAbsoluteUrl from"is-absolute-url";var defaultOptions5={markdownLinkResolution:"absolute",prettyLinks:!0,openLinksInNewTab:!1,lazyLoad:!1,externalLinkIcon:!0},CrawlLinks=__name(userOpts=>{let opts={...defaultOptions5,...userOpts};return{name:"LinkProcessing",htmlPlugins(ctx){return[()=>(tree,file)=>{let curSlug=simplifySlug(file.data.slug),outgoing=new Set,transformOptions={strategy:opts.markdownLinkResolution,allSlugs:ctx.allSlugs};visit2(tree,"element",(node,_index,_parent)=>{if(node.tagName==="a"&&node.properties&&typeof node.properties.href=="string"){let dest=node.properties.href,classes=node.properties.className??[],isExternal=isAbsoluteUrl(dest);classes.push(isExternal?"external":"internal"),isExternal&&opts.externalLinkIcon&&node.children.push({type:"element",tagName:"svg",properties:{class:"external-icon",viewBox:"0 0 512 512"},children:[{type:"element",tagName:"path",properties:{d:"M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"},children:[]}]}),node.children.length===1&&node.children[0].type==="text"&&node.children[0].value!==dest&&classes.push("alias"),node.properties.className=classes,opts.openLinksInNewTab&&(node.properties.target="_blank");let isInternal=!(isAbsoluteUrl(dest)||dest.startsWith("#"));if(isInternal){dest=node.properties.href=transformLink(file.data.slug,dest,transformOptions);let canonicalDest=new URL(dest,"https://base.com/"+stripSlashes(curSlug,!0)).pathname,[destCanonical,_destAnchor]=splitAnchor(canonicalDest);destCanonical.endsWith("/")&&(destCanonical+="index");let full=decodeURIComponent(stripSlashes(destCanonical,!0)),simple=simplifySlug(full);outgoing.add(simple),node.properties["data-slug"]=full}opts.prettyLinks&&isInternal&&node.children.length===1&&node.children[0].type==="text"&&!node.children[0].value.startsWith("#")&&(node.children[0].value=path3.basename(node.children[0].value))}if(["img","video","audio","iframe"].includes(node.tagName)&&node.properties&&typeof node.properties.src=="string"&&(opts.lazyLoad&&(node.properties.loading="lazy"),!isAbsoluteUrl(node.properties.src))){let dest=node.properties.src;dest=node.properties.src=transformLink(file.data.slug,dest,transformOptions),node.properties.src=dest}}),file.data.links=[...outgoing]}]}}},"CrawlLinks");import{findAndReplace as mdastFindReplace}from"mdast-util-find-and-replace";import{slug as slugAnchor2}from"github-slugger";import rehypeRaw from"rehype-raw";import{SKIP,visit as visit3}from"unist-util-visit";import path4 from"path";var callout_inline_default=`function c(){let t=this.parentElement;t.classList.toggle("is-collapsed");let l=t.classList.contains("is-collapsed")?this.scrollHeight:t.scrollHeight;t.style.maxHeight=l+"px";let o=t,e=t.parentElement;for(;e;){if(!e.classList.contains("callout"))return;let n=e.classList.contains("is-collapsed")?e.scrollHeight:e.scrollHeight+o.scrollHeight;e.style.maxHeight=n+"px",o=e,e=e.parentElement}}function i(){let t=document.getElementsByClassName("callout is-collapsible");for(let s of t){let l=s.firstElementChild;if(l){l.addEventListener("click",c),window.addCleanup(()=>l.removeEventListener("click",c));let e=s.classList.contains("is-collapsed")?l.scrollHeight:s.scrollHeight;s.style.maxHeight=e+"px"}}}document.addEventListener("nav",i);window.addEventListener("resize",i);
`;var checkbox_inline_default='var h=Object.create;var f=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var x=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var v=(n,t,E,A)=>{if(t&&typeof t=="object"||typeof t=="function")for(let F of m(t))!y.call(n,F)&&F!==E&&f(n,F,{get:()=>t[F],enumerable:!(A=d(t,F))||A.enumerable});return n};var w=(n,t,E)=>(E=n!=null?h(S(n)):{},v(t||!n||!n.__esModule?f(E,"default",{value:n,enumerable:!0}):E,n));var c=x((T,B)=>{"use strict";B.exports=b;function a(n){return n instanceof Buffer?Buffer.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}function b(n){if(n=n||{},n.circles)return R(n);return n.proto?A:E;function t(F,r){for(var u=Object.keys(F),D=new Array(u.length),i=0;i<u.length;i++){var e=u[i],l=F[e];typeof l!="object"||l===null?D[e]=l:l instanceof Date?D[e]=new Date(l):ArrayBuffer.isView(l)?D[e]=a(l):D[e]=r(l)}return D}function E(F){if(typeof F!="object"||F===null)return F;if(F instanceof Date)return new Date(F);if(Array.isArray(F))return t(F,E);if(F instanceof Map)return new Map(t(Array.from(F),E));if(F instanceof Set)return new Set(t(Array.from(F),E));var r={};for(var u in F)if(Object.hasOwnProperty.call(F,u)!==!1){var D=F[u];typeof D!="object"||D===null?r[u]=D:D instanceof Date?r[u]=new Date(D):D instanceof Map?r[u]=new Map(t(Array.from(D),E)):D instanceof Set?r[u]=new Set(t(Array.from(D),E)):ArrayBuffer.isView(D)?r[u]=a(D):r[u]=E(D)}return r}function A(F){if(typeof F!="object"||F===null)return F;if(F instanceof Date)return new Date(F);if(Array.isArray(F))return t(F,A);if(F instanceof Map)return new Map(t(Array.from(F),A));if(F instanceof Set)return new Set(t(Array.from(F),A));var r={};for(var u in F){var D=F[u];typeof D!="object"||D===null?r[u]=D:D instanceof Date?r[u]=new Date(D):D instanceof Map?r[u]=new Map(t(Array.from(D),A)):D instanceof Set?r[u]=new Set(t(Array.from(D),A)):ArrayBuffer.isView(D)?r[u]=a(D):r[u]=A(D)}return r}}function R(n){var t=[],E=[];return n.proto?r:F;function A(u,D){for(var i=Object.keys(u),e=new Array(i.length),l=0;l<i.length;l++){var s=i[l],C=u[s];if(typeof C!="object"||C===null)e[s]=C;else if(C instanceof Date)e[s]=new Date(C);else if(ArrayBuffer.isView(C))e[s]=a(C);else{var o=t.indexOf(C);o!==-1?e[s]=E[o]:e[s]=D(C)}}return e}function F(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return A(u,F);if(u instanceof Map)return new Map(A(Array.from(u),F));if(u instanceof Set)return new Set(A(Array.from(u),F));var D={};t.push(u),E.push(D);for(var i in u)if(Object.hasOwnProperty.call(u,i)!==!1){var e=u[i];if(typeof e!="object"||e===null)D[i]=e;else if(e instanceof Date)D[i]=new Date(e);else if(e instanceof Map)D[i]=new Map(A(Array.from(e),F));else if(e instanceof Set)D[i]=new Set(A(Array.from(e),F));else if(ArrayBuffer.isView(e))D[i]=a(e);else{var l=t.indexOf(e);l!==-1?D[i]=E[l]:D[i]=F(e)}}return t.pop(),E.pop(),D}function r(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return A(u,r);if(u instanceof Map)return new Map(A(Array.from(u),r));if(u instanceof Set)return new Set(A(Array.from(u),r));var D={};t.push(u),E.push(D);for(var i in u){var e=u[i];if(typeof e!="object"||e===null)D[i]=e;else if(e instanceof Date)D[i]=new Date(e);else if(e instanceof Map)D[i]=new Map(A(Array.from(e),r));else if(e instanceof Set)D[i]=new Set(A(Array.from(e),r));else if(ArrayBuffer.isView(e))D[i]=a(e);else{var l=t.indexOf(e);l!==-1?D[i]=E[l]:D[i]=r(e)}}return t.pop(),E.pop(),D}}});var P=Object.hasOwnProperty;var g=w(c(),1),I=(0,g.default)();function p(n){return n.document.body.dataset.slug}var L=n=>`${p(window)}-checkbox-${n}`;document.addEventListener("nav",()=>{document.querySelectorAll("input.checkbox-toggle").forEach((t,E)=>{let A=L(E),F=r=>{let u=r.target?.checked?"true":"false";localStorage.setItem(A,u)};t.addEventListener("change",F),window.addCleanup(()=>t.removeEventListener("change",F)),localStorage.getItem(A)==="true"&&(t.checked=!0)})});\n';import{toHast}from"mdast-util-to-hast";import{toHtml}from"hast-util-to-html";function capitalize(s){return s.substring(0,1).toUpperCase()+s.substring(1)}__name(capitalize,"capitalize");function classNames(displayClass,...classes){return displayClass&&classes.push(displayClass),classes.join(" ")}__name(classNames,"classNames");var defaultOptions6={comments:!0,highlight:!0,wikilinks:!0,callouts:!0,mermaid:!0,parseTags:!0,parseArrows:!0,parseBlockReferences:!0,enableInHtmlEmbed:!1,enableYouTubeEmbed:!0,enableVideoEmbed:!0,enableCheckbox:!1},calloutMapping={note:"note",abstract:"abstract",summary:"abstract",tldr:"abstract",info:"info",todo:"todo",tip:"tip",hint:"tip",important:"tip",success:"success",check:"success",done:"success",question:"question",help:"question",faq:"question",warning:"warning",attention:"warning",caution:"warning",failure:"failure",missing:"failure",fail:"failure",danger:"danger",error:"danger",bug:"bug",example:"example",quote:"quote",cite:"quote"},arrowMapping={"->":"&rarr;","-->":"&rArr;","=>":"&rArr;","==>":"&rArr;","<-":"&larr;","<--":"&lArr;","<=":"&lArr;","<==":"&lArr;"};function canonicalizeCallout(calloutName){let normalizedCallout=calloutName.toLowerCase();return calloutMapping[normalizedCallout]??calloutName}__name(canonicalizeCallout,"canonicalizeCallout");var externalLinkRegex=/^https?:\/\//i,arrowRegex=new RegExp(/(-{1,2}>|={1,2}>|<-{1,2}|<={1,2})/,"g"),wikilinkRegex=new RegExp(/!?\[\[([^\[\]\|\#\\]+)?(#+[^\[\]\|\#\\]+)?(\\?\|[^\[\]\#]+)?\]\]/,"g"),tableRegex=new RegExp(/^\|([^\n])+\|\n(\|)( ?:?-{3,}:? ?\|)+\n(\|([^\n])+\|\n?)+/,"gm"),tableWikilinkRegex=new RegExp(/(!?\[\[[^\]]*?\]\])/,"g"),highlightRegex=new RegExp(/==([^=]+)==/,"g"),commentRegex=new RegExp(/%%[\s\S]*?%%/,"g"),calloutRegex=new RegExp(/^\[\!(\w+)\]([+-]?)/),calloutLineRegex=new RegExp(/^> *\[\!\w+\][+-]?.*$/,"gm"),tagRegex=new RegExp(/(?:^| )#((?:[-_\p{L}\p{Emoji}\p{M}\d])+(?:\/[-_\p{L}\p{Emoji}\p{M}\d]+)*)/,"gu"),blockReferenceRegex=new RegExp(/\^([-_A-Za-z0-9]+)$/,"g"),ytLinkRegex=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,ytPlaylistLinkRegex=/[?&]list=([^#?&]*)/,videoExtensionRegex=new RegExp(/\.(mp4|webm|ogg|avi|mov|flv|wmv|mkv|mpg|mpeg|3gp|m4v)$/),wikilinkImageEmbedRegex=new RegExp(/^(?<alt>(?!^\d*x?\d*$).*?)?(\|?\s*?(?<width>\d+)(x(?<height>\d+))?)?$/),ObsidianFlavoredMarkdown=__name(userOpts=>{let opts={...defaultOptions6,...userOpts},mdastToHtml=__name(ast=>{let hast=toHast(ast,{allowDangerousHtml:!0});return toHtml(hast,{allowDangerousHtml:!0})},"mdastToHtml");return{name:"ObsidianFlavoredMarkdown",textTransform(_ctx,src){return opts.comments&&(src instanceof Buffer&&(src=src.toString()),src=src.replace(commentRegex,"")),opts.callouts&&(src instanceof Buffer&&(src=src.toString()),src=src.replace(calloutLineRegex,value=>value+`
> `)),opts.wikilinks&&(src instanceof Buffer&&(src=src.toString()),src=src.replace(tableRegex,value=>value.replace(tableWikilinkRegex,(value2,...capture)=>{let[raw]=capture,escaped=raw??"";return escaped=escaped.replace("#","\\#"),escaped=escaped.replace(/((^|[^\\])(\\\\)*)\|/g,"$1\\|"),escaped})),src=src.replace(wikilinkRegex,(value,...capture)=>{let[rawFp,rawHeader,rawAlias]=capture,fp=rawFp??"",anchor=rawHeader?.trim().replace(/^#+/,""),blockRef=anchor?.startsWith("^")?"^":"",displayAnchor=anchor?`#${blockRef}${slugAnchor2(anchor)}`:"",displayAlias=rawAlias??rawHeader?.replace("#","|")??"",embedDisplay=value.startsWith("!")?"!":"";return rawFp?.match(externalLinkRegex)?`${embedDisplay}[${displayAlias.replace(/^\|/,"")}](${rawFp})`:`${embedDisplay}[[${fp}${displayAnchor}${displayAlias}]]`})),src},markdownPlugins(_ctx){let plugins=[];return plugins.push(()=>(tree,file)=>{let replacements=[],base=pathToRoot(file.data.slug);opts.wikilinks&&replacements.push([wikilinkRegex,(value,...capture)=>{let[rawFp,rawHeader,rawAlias]=capture,fp=rawFp?.trim()??"",anchor=rawHeader?.trim()??"",alias=rawAlias?.slice(1).trim();if(value.startsWith("!")){let ext=path4.extname(fp).toLowerCase(),url2=slugifyFilePath(fp);if([".png",".jpg",".jpeg",".gif",".bmp",".svg",".webp"].includes(ext)){let match=wikilinkImageEmbedRegex.exec(alias??""),alt=match?.groups?.alt??"",width=match?.groups?.width??"auto",height=match?.groups?.height??"auto";return{type:"image",url:url2,data:{hProperties:{width,height,alt}}}}else{if([".mp4",".webm",".ogv",".mov",".mkv"].includes(ext))return{type:"html",value:`<video src="${url2}" controls></video>`};if([".mp3",".webm",".wav",".m4a",".ogg",".3gp",".flac"].includes(ext))return{type:"html",value:`<audio src="${url2}" controls></audio>`};if([".pdf"].includes(ext))return{type:"html",value:`<iframe src="${url2}"></iframe>`};{let block=anchor;return{type:"html",data:{hProperties:{transclude:!0}},value:`<blockquote class="transclude" data-url="${url2}" data-block="${block}"><a href="${url2+anchor}" class="transclude-inner">Transclude of ${url2}${block}</a></blockquote>`}}}}return{type:"link",url:fp+anchor,children:[{type:"text",value:alias??fp}]}}]),opts.highlight&&replacements.push([highlightRegex,(_value,...capture)=>{let[inner]=capture;return{type:"html",value:`<span class="text-highlight">${inner}</span>`}}]),opts.parseArrows&&replacements.push([arrowRegex,(value,..._capture)=>{let maybeArrow=arrowMapping[value];return maybeArrow===void 0?SKIP:{type:"html",value:`<span>${maybeArrow}</span>`}}]),opts.parseTags&&replacements.push([tagRegex,(_value,tag)=>{if(/^\d+$/.test(tag))return!1;if(tag=slugTag(tag),file.data.frontmatter){let noteTags=file.data.frontmatter.tags??[];file.data.frontmatter.tags=[...new Set([...noteTags,tag])]}return{type:"link",url:base+`/tags/${tag}`,data:{hProperties:{className:["tag-link"]}},children:[{type:"text",value:tag}]}}]),opts.enableInHtmlEmbed&&visit3(tree,"html",node=>{for(let[regex,replace]of replacements)typeof replace=="string"?node.value=node.value.replace(regex,replace):node.value=node.value.replace(regex,(substring,...args)=>{let replaceValue=replace(substring,...args);return typeof replaceValue=="string"?replaceValue:Array.isArray(replaceValue)?replaceValue.map(mdastToHtml).join(""):typeof replaceValue=="object"&&replaceValue!==null?mdastToHtml(replaceValue):substring})}),mdastFindReplace(tree,replacements)}),opts.enableVideoEmbed&&plugins.push(()=>(tree,_file)=>{visit3(tree,"image",(node,index,parent)=>{if(parent&&index!=null&&videoExtensionRegex.test(node.url)){let newNode={type:"html",value:`<video controls src="${node.url}"></video>`};return parent.children.splice(index,1,newNode),SKIP}})}),opts.callouts&&plugins.push(()=>(tree,_file)=>{visit3(tree,"blockquote",node=>{if(node.children.length===0)return;let firstChild=node.children[0];if(firstChild.type!=="paragraph"||firstChild.children[0]?.type!=="text")return;let text=firstChild.children[0].value,restOfTitle=firstChild.children.slice(1),[firstLine,...remainingLines]=text.split(`
`),remainingText=remainingLines.join(`
`),match=firstLine.match(calloutRegex);if(match&&match.input){let[calloutDirective,typeString,collapseChar]=match,calloutType=canonicalizeCallout(typeString.toLowerCase()),collapse=collapseChar==="+"||collapseChar==="-",defaultState=collapseChar==="-"?"collapsed":"expanded",titleContent=match.input.slice(calloutDirective.length).trim(),titleNode={type:"paragraph",children:[{type:"text",value:titleContent===""&&restOfTitle.length===0?capitalize(typeString):titleContent+" "},...restOfTitle]},blockquoteContent=[{type:"html",value:`<div
class="callout-title"
>
<div class="callout-icon"></div>
<div class="callout-title-inner">${mdastToHtml(titleNode)}</div>
${collapse?'<div class="fold-callout-icon"></div>':""}
</div>`}];remainingText.length>0&&blockquoteContent.push({type:"paragraph",children:[{type:"text",value:remainingText}]}),node.children.splice(0,1,...blockquoteContent);let classNames2=["callout",calloutType];collapse&&classNames2.push("is-collapsible"),defaultState==="collapsed"&&classNames2.push("is-collapsed"),node.data={hProperties:{...node.data?.hProperties??{},className:classNames2.join(" "),"data-callout":calloutType,"data-callout-fold":collapse}}}})}),opts.mermaid&&plugins.push(()=>(tree,_file)=>{visit3(tree,"code",node=>{node.lang==="mermaid"&&(node.data={hProperties:{className:["mermaid"]}})})}),plugins},htmlPlugins(){let plugins=[rehypeRaw];return opts.parseBlockReferences&&plugins.push(()=>{let inlineTagTypes=new Set(["p","li"]),blockTagTypes=new Set(["blockquote"]);return(tree,file)=>{file.data.blocks={},visit3(tree,"element",(node,index,parent)=>{if(blockTagTypes.has(node.tagName)){let nextChild=parent?.children.at(index+2);if(nextChild&&nextChild.tagName==="p"){let text=nextChild.children.at(0);if(text&&text.value&&text.type==="text"){let matches=text.value.match(blockReferenceRegex);if(matches&&matches.length>=1){parent.children.splice(index+2,1);let block=matches[0].slice(1);Object.keys(file.data.blocks).includes(block)||(node.properties={...node.properties,id:block},file.data.blocks[block]=node)}}}}else if(inlineTagTypes.has(node.tagName)){let last=node.children.at(-1);if(last&&last.value&&typeof last.value=="string"){let matches=last.value.match(blockReferenceRegex);if(matches&&matches.length>=1){last.value=last.value.slice(0,-matches[0].length);let block=matches[0].slice(1);if(last.value===""){let idx=(index??1)-1;for(;idx>=0;){let element=parent?.children.at(idx);if(!element)break;if(element.type!=="element")idx-=1;else{Object.keys(file.data.blocks).includes(block)||(element.properties={...element.properties,id:block},file.data.blocks[block]=element);return}}}else Object.keys(file.data.blocks).includes(block)||(node.properties={...node.properties,id:block},file.data.blocks[block]=node)}}}}),file.data.htmlAst=tree}}),opts.enableYouTubeEmbed&&plugins.push(()=>tree=>{visit3(tree,"element",node=>{if(node.tagName==="img"&&typeof node.properties.src=="string"){let match=node.properties.src.match(ytLinkRegex),videoId=match&&match[2].length==11?match[2]:null,playlistId=node.properties.src.match(ytPlaylistLinkRegex)?.[1];videoId?(node.tagName="iframe",node.properties={class:"external-embed",allow:"fullscreen",frameborder:0,width:"600px",height:"350px",src:playlistId?`https://www.youtube.com/embed/${videoId}?list=${playlistId}`:`https://www.youtube.com/embed/${videoId}`}):playlistId&&(node.tagName="iframe",node.properties={class:"external-embed",allow:"fullscreen",frameborder:0,width:"600px",height:"350px",src:`https://www.youtube.com/embed/videoseries?list=${playlistId}`})}})}),opts.enableCheckbox&&plugins.push(()=>(tree,_file)=>{visit3(tree,"element",node=>{if(node.tagName==="input"&&node.properties.type==="checkbox"){let isChecked=node.properties?.checked??!1;node.properties={type:"checkbox",disabled:!1,checked:isChecked,class:"checkbox-toggle"}}})}),plugins},externalResources(){let js=[];return opts.enableCheckbox&&js.push({script:checkbox_inline_default,loadTime:"afterDOMReady",contentType:"inline"}),opts.callouts&&js.push({script:callout_inline_default,loadTime:"afterDOMReady",contentType:"inline"}),opts.mermaid&&js.push({script:`
let mermaidImport = undefined
document.addEventListener('nav', async () => {
if (document.querySelector("code.mermaid")) {
mermaidImport ||= await import('https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.7.0/mermaid.esm.min.mjs')
const mermaid = mermaidImport.default
const darkMode = document.documentElement.getAttribute('saved-theme') === 'dark'
mermaid.initialize({
startOnLoad: false,
securityLevel: 'loose',
theme: darkMode ? 'dark' : 'default'
})
await mermaid.run({
querySelector: '.mermaid'
})
}
});
`,loadTime:"afterDOMReady",moduleType:"module",contentType:"inline"}),{js}}}},"ObsidianFlavoredMarkdown");var relrefRegex=new RegExp(/\[([^\]]+)\]\(\{\{< relref "([^"]+)" >\}\}\)/,"g"),predefinedHeadingIdRegex=new RegExp(/(.*) {#(?:.*)}/,"g"),hugoShortcodeRegex=new RegExp(/{{(.*)}}/,"g"),figureTagRegex=new RegExp(/< ?figure src="(.*)" ?>/,"g"),inlineLatexRegex=new RegExp(/\\\\\((.+?)\\\\\)/,"g"),blockLatexRegex=new RegExp(/(?:\\begin{equation}|\\\\\(|\\\\\[)([\s\S]*?)(?:\\\\\]|\\\\\)|\\end{equation})/,"g"),quartzLatexRegex=new RegExp(/\$\$[\s\S]*?\$\$|\$.*?\$/,"g");import rehypePrettyCode from"rehype-pretty-code";var defaultOptions7={theme:{light:"github-light",dark:"github-dark"},keepBackground:!1},SyntaxHighlighting=__name(userOpts=>{let opts={...defaultOptions7,...userOpts};return{name:"SyntaxHighlighting",htmlPlugins(){return[[rehypePrettyCode,opts]]}}},"SyntaxHighlighting");import{visit as visit4}from"unist-util-visit";import{toString as toString2}from"mdast-util-to-string";import Slugger from"github-slugger";var defaultOptions8={maxDepth:3,minEntries:1,showByDefault:!0,collapseByDefault:!1},slugAnchor3=new Slugger,TableOfContents=__name(userOpts=>{let opts={...defaultOptions8,...userOpts};return{name:"TableOfContents",markdownPlugins(){return[()=>async(tree,file)=>{if(file.data.frontmatter?.enableToc??opts.showByDefault){slugAnchor3.reset();let toc=[],highestDepth=opts.maxDepth;visit4(tree,"heading",node=>{if(node.depth<=opts.maxDepth){let text=toString2(node);highestDepth=Math.min(highestDepth,node.depth),toc.push({depth:node.depth,text,slug:slugAnchor3.slug(text)})}}),toc.length>0&&toc.length>opts.minEntries&&(file.data.toc=toc.map(entry=>({...entry,depth:entry.depth-highestDepth})),file.data.collapseToc=opts.collapseByDefault)}}]}}},"TableOfContents");import remarkBreaks from"remark-breaks";var RemoveDrafts=__name(()=>({name:"RemoveDrafts",shouldPublish(_ctx,[_tree,vfile]){return!(vfile.data?.frontmatter?.draft??!1)}}),"RemoveDrafts");import path7 from"path";import{visit as visit6}from"unist-util-visit";import{jsx}from"preact/jsx-runtime";var Header=__name(({children})=>children.length>0?jsx("header",{children}):null,"Header");Header.css=`
header {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
margin: 2rem 0;
gap: 1.5rem;
}
header h1 {
margin: 0;
flex: auto;
}
`;var Header_default=__name(()=>Header,"default");var clipboard_inline_default=`var r='<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true"><path fill-rule="evenodd" d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"></path><path fill-rule="evenodd" d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"></path></svg>',l='<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true"><path fill-rule="evenodd" fill="rgb(63, 185, 80)" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg>';document.addEventListener("nav",()=>{let n=document.getElementsByTagName("pre");for(let t=0;t<n.length;t++){let o=n[t].getElementsByTagName("code")[0];if(o){let a=function(){navigator.clipboard.writeText(i).then(()=>{e.blur(),e.innerHTML=l,setTimeout(()=>{e.innerHTML=r,e.style.borderColor=""},2e3)},d=>console.error(d))};var c=a;let i=o.innerText.replace(/\\n\\n/g,\`
\`),e=document.createElement("button");e.className="clipboard-button",e.type="button",e.innerHTML=r,e.ariaLabel="Copy source",e.addEventListener("click",a),window.addCleanup(()=>e.removeEventListener("click",a)),n[t].prepend(e)}}});
`;var clipboard_default=`.clipboard-button {
position: absolute;
display: flex;
float: right;
right: 0;
padding: 0.4rem;
margin: 0.3rem;
color: var(--gray);
border-color: var(--dark);
background-color: var(--light);
border: 1px solid;
border-radius: 5px;
opacity: 0;
transition: 0.2s;
}
.clipboard-button > svg {
fill: var(--light);
filter: contrast(0.3);
}
.clipboard-button:hover {
cursor: pointer;
border-color: var(--secondary);
}
.clipboard-button:focus {
outline: 0;
}
pre:hover > .clipboard-button {
opacity: 1;
transition: 0.2s;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJjbGlwYm9hcmQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUVBO0VBQ0U7RUFDQTs7QUFHRjtFQUNFO0VBQ0E7O0FBR0Y7RUFDRTs7O0FBS0Y7RUFDRTtFQUNBIiwic291cmNlc0NvbnRlbnQiOlsiLmNsaXBib2FyZC1idXR0b24ge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsb2F0OiByaWdodDtcbiAgcmlnaHQ6IDA7XG4gIHBhZGRpbmc6IDAuNHJlbTtcbiAgbWFyZ2luOiAwLjNyZW07XG4gIGNvbG9yOiB2YXIoLS1ncmF5KTtcbiAgYm9yZGVyLWNvbG9yOiB2YXIoLS1kYXJrKTtcbiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbGlnaHQpO1xuICBib3JkZXI6IDFweCBzb2xpZDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xuICBvcGFjaXR5OiAwO1xuICB0cmFuc2l0aW9uOiAwLjJzO1xuXG4gICYgPiBzdmcge1xuICAgIGZpbGw6IHZhcigtLWxpZ2h0KTtcbiAgICBmaWx0ZXI6IGNvbnRyYXN0KDAuMyk7XG4gIH1cblxuICAmOmhvdmVyIHtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgYm9yZGVyLWNvbG9yOiB2YXIoLS1zZWNvbmRhcnkpO1xuICB9XG5cbiAgJjpmb2N1cyB7XG4gICAgb3V0bGluZTogMDtcbiAgfVxufVxuXG5wcmUge1xuICAmOmhvdmVyID4gLmNsaXBib2FyZC1idXR0b24ge1xuICAgIG9wYWNpdHk6IDE7XG4gICAgdHJhbnNpdGlvbjogMC4ycztcbiAgfVxufVxuIl19 */`;import{jsx as jsx2}from"preact/jsx-runtime";var Body=__name(({children})=>jsx2("div",{id:"quartz-body",children}),"Body");Body.afterDOMLoaded=clipboard_inline_default;Body.css=clipboard_default;var Body_default=__name(()=>Body,"default");import{render}from"preact-render-to-string";import{randomUUID}from"crypto";import{jsx as jsx3}from"preact/jsx-runtime";function JSResourceToScriptElement(resource,preserve){let scriptType=resource.moduleType??"application/javascript",spaPreserve=preserve??resource.spaPreserve;if(resource.contentType==="external")return jsx3("script",{src:resource.src,type:scriptType,"spa-preserve":spaPreserve},resource.src);{let content=resource.script;return jsx3("script",{type:scriptType,"spa-preserve":spaPreserve,dangerouslySetInnerHTML:{__html:content}},randomUUID())}}__name(JSResourceToScriptElement,"JSResourceToScriptElement");import{visit as visit5}from"unist-util-visit";import{jsx as jsx4,jsxs}from"preact/jsx-runtime";var headerRegex=new RegExp(/h[1-6]/);function pageResources(baseDir,staticResources){let contentIndexScript=`const fetchData = fetch("${joinSegments(baseDir,"static/contentIndex.json")}").then(data => data.json())`;return{css:[joinSegments(baseDir,"index.css"),...staticResources.css],js:[{src:joinSegments(baseDir,"prescript.js"),loadTime:"beforeDOMReady",contentType:"external"},{loadTime:"beforeDOMReady",contentType:"inline",spaPreserve:!0,script:contentIndexScript},...staticResources.js,{src:joinSegments(baseDir,"postscript.js"),loadTime:"afterDOMReady",moduleType:"module",contentType:"external"}]}}__name(pageResources,"pageResources");function renderPage(cfg,slug,componentData,components,pageResources2){let root=clone(componentData.tree);visit5(root,"element",(node,_index,_parent)=>{if(node.tagName==="blockquote"&&(node.properties?.className??[]).includes("transclude")){let inner=node.children[0],transcludeTarget=inner.properties["data-slug"],page=componentData.allFiles.find(f=>f.slug===transcludeTarget);if(!page)return;let blockRef=node.properties.dataBlock;if(blockRef?.startsWith("#^")){blockRef=blockRef.slice(2);let blockNode=page.blocks?.[blockRef];blockNode&&(blockNode.tagName==="li"&&(blockNode={type:"element",tagName:"ul",properties:{},children:[blockNode]}),node.children=[normalizeHastElement(blockNode,slug,transcludeTarget),{type:"element",tagName:"a",properties:{href:inner.properties?.href,class:["internal","transclude-src"]},children:[{type:"text",value:i18n(cfg.locale).components.transcludes.linkToOriginal}]}])}else if(blockRef?.startsWith("#")&&page.htmlAst){blockRef=blockRef.slice(1);let startIdx,startDepth,endIdx;for(let[i,el]of page.htmlAst.children.entries()){if(!(el.type==="element"&&el.tagName.match(headerRegex)))continue;let depth=Number(el.tagName.substring(1));if(startIdx===void 0||startDepth===void 0)el.properties?.id===blockRef&&(startIdx=i,startDepth=depth);else if(depth<=startDepth){endIdx=i;break}}if(startIdx===void 0)return;node.children=[...page.htmlAst.children.slice(startIdx,endIdx).map(child=>normalizeHastElement(child,slug,transcludeTarget)),{type:"element",tagName:"a",properties:{href:inner.properties?.href,class:["internal","transclude-src"]},children:[{type:"text",value:i18n(cfg.locale).components.transcludes.linkToOriginal}]}]}else page.htmlAst&&(node.children=[{type:"element",tagName:"h1",properties:{},children:[{type:"text",value:page.frontmatter?.title??i18n(cfg.locale).components.transcludes.transcludeOf({targetSlug:page.slug})}]},...page.htmlAst.children.map(child=>normalizeHastElement(child,slug,transcludeTarget)),{type:"element",tagName:"a",properties:{href:inner.properties?.href,class:["internal","transclude-src"]},children:[{type:"text",value:i18n(cfg.locale).components.transcludes.linkToOriginal}]}])}}),componentData.tree=root;let{head:Head,header,beforeBody,pageBody:Content2,left,right,footer:Footer}=components,Header2=Header_default(),Body2=Body_default(),LeftComponent=jsx4("div",{class:"left sidebar",children:left.map(BodyComponent=>jsx4(BodyComponent,{...componentData}))}),RightComponent=jsx4("div",{class:"right sidebar",children:right.map(BodyComponent=>jsx4(BodyComponent,{...componentData}))}),lang=componentData.fileData.frontmatter?.lang??cfg.locale?.split("-")[0]??"en",doc=jsxs("html",{lang,children:[jsx4(Head,{...componentData}),jsx4("body",{"data-slug":slug,children:jsxs("div",{id:"quartz-root",class:"page",children:[jsxs(Body2,{...componentData,children:[LeftComponent,jsxs("div",{class:"center",children:[jsxs("div",{class:"page-header",children:[jsx4(Header2,{...componentData,children:header.map(HeaderComponent=>jsx4(HeaderComponent,{...componentData}))}),jsx4("div",{class:"popover-hint",children:beforeBody.map(BodyComponent=>jsx4(BodyComponent,{...componentData}))})]}),jsx4(Content2,{...componentData})]}),RightComponent]}),jsx4(Footer,{...componentData})]})}),pageResources2.js.filter(resource=>resource.loadTime==="afterDOMReady").map(res=>JSResourceToScriptElement(res))]});return`<!DOCTYPE html>
`+render(doc)}__name(renderPage,"renderPage");import{toJsxRuntime}from"hast-util-to-jsx-runtime";import{Fragment,jsx as jsx5,jsxs as jsxs2}from"preact/jsx-runtime";import{jsx as jsx6}from"preact/jsx-runtime";var customComponents={table:props=>jsx6("div",{class:"table-container",children:jsx6("table",{...props})})};function htmlToJsx(fp,tree){try{return toJsxRuntime(tree,{Fragment,jsx:jsx5,jsxs:jsxs2,elementAttributeNameCase:"html",components:customComponents})}catch(e){trace(`Failed to parse Markdown in \`${fp}\` into JSX`,e)}}__name(htmlToJsx,"htmlToJsx");import{jsx as jsx7}from"preact/jsx-runtime";var Content=__name(({fileData,tree})=>{let content=htmlToJsx(fileData.filePath,tree),classString=["popover-hint",...fileData.frontmatter?.cssclasses??[]].join(" ");return jsx7("article",{class:classString,children:content})},"Content"),Content_default=__name(()=>Content,"default");var listPage_default=`ul.section-ul {
list-style: none;
margin-top: 2em;
padding-left: 0;
}
li.section-li {
margin-bottom: 1em;
}
li.section-li > .section {
display: grid;
grid-template-columns: 6em 3fr 1fr;
}
@media all and (max-width: 600px) {
li.section-li > .section > .tags {
display: none;
}
}
li.section-li > .section > .desc > h3 > a {
background-color: transparent;
}
li.section-li > .section > .meta {
margin: 0;
flex-basis: 6em;
opacity: 0.6;
}
.popover .section {
grid-template-columns: 6em 1fr !important;
}
.popover .section > .tags {
display: none;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJsaXN0UGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBO0VBQ0U7RUFDQTtFQUNBOzs7QUFHRjtFQUNFOztBQUVBO0VBQ0U7RUFDQTs7QUFFQTtFQUNFO0lBQ0U7OztBQUlKO0VBQ0U7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7OztBQU1OO0VBQ0U7O0FBQ0E7RUFDRSIsInNvdXJjZXNDb250ZW50IjpbIkB1c2UgXCIuLi8uLi9zdHlsZXMvdmFyaWFibGVzLnNjc3NcIiBhcyAqO1xuXG51bC5zZWN0aW9uLXVsIHtcbiAgbGlzdC1zdHlsZTogbm9uZTtcbiAgbWFyZ2luLXRvcDogMmVtO1xuICBwYWRkaW5nLWxlZnQ6IDA7XG59XG5cbmxpLnNlY3Rpb24tbGkge1xuICBtYXJnaW4tYm90dG9tOiAxZW07XG5cbiAgJiA+IC5zZWN0aW9uIHtcbiAgICBkaXNwbGF5OiBncmlkO1xuICAgIGdyaWQtdGVtcGxhdGUtY29sdW1uczogNmVtIDNmciAxZnI7XG5cbiAgICBAbWVkaWEgYWxsIGFuZCAobWF4LXdpZHRoOiAkbW9iaWxlQnJlYWtwb2ludCkge1xuICAgICAgJiA+IC50YWdzIHtcbiAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICAmID4gLmRlc2MgPiBoMyA+IGEge1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgfVxuXG4gICAgJiA+IC5tZXRhIHtcbiAgICAgIG1hcmdpbjogMDtcbiAgICAgIGZsZXgtYmFzaXM6IDZlbTtcbiAgICAgIG9wYWNpdHk6IDAuNjtcbiAgICB9XG4gIH1cbn1cblxuLy8gbW9kaWZpY2F0aW9ucyBpbiBwb3BvdmVyIGNvbnRleHRcbi5wb3BvdmVyIC5zZWN0aW9uIHtcbiAgZ3JpZC10ZW1wbGF0ZS1jb2x1bW5zOiA2ZW0gMWZyICFpbXBvcnRhbnQ7XG4gICYgPiAudGFncyB7XG4gICAgZGlzcGxheTogbm9uZTtcbiAgfVxufVxuIl19 */`;import{Fragment as Fragment2,jsx as jsx8}from"preact/jsx-runtime";function getDate(cfg,data){if(!cfg.defaultDateType)throw new Error("Field 'defaultDateType' was not set in the configuration object of quartz.config.ts. See https://quartz.jzhao.xyz/configuration#general-configuration for more details.");return data.dates?.[cfg.defaultDateType]}__name(getDate,"getDate");function formatDate(d,locale="en-US"){return d.toLocaleDateString(locale,{year:"numeric",month:"short",day:"2-digit"})}__name(formatDate,"formatDate");function Date2({date,locale}){return jsx8(Fragment2,{children:formatDate(date,locale)})}__name(Date2,"Date");import{jsx as jsx9,jsxs as jsxs3}from"preact/jsx-runtime";function byDateAndAlphabetical(cfg){return(f1,f2)=>{if(f1.dates&&f2.dates)return getDate(cfg,f2).getTime()-getDate(cfg,f1).getTime();if(f1.dates&&!f2.dates)return-1;if(!f1.dates&&f2.dates)return 1;let f1Title=f1.frontmatter?.title.toLowerCase()??"",f2Title=f2.frontmatter?.title.toLowerCase()??"";return f1Title.localeCompare(f2Title)}}__name(byDateAndAlphabetical,"byDateAndAlphabetical");var PageList=__name(({cfg,fileData,allFiles,limit})=>{let list=allFiles.sort(byDateAndAlphabetical(cfg));return limit&&(list=list.slice(0,limit)),jsx9("ul",{class:"section-ul",children:list.map(page=>{let title=page.frontmatter?.title,tags=page.frontmatter?.tags??[];return jsx9("li",{class:"section-li",children:jsxs3("div",{class:"section",children:[page.dates&&jsx9("p",{class:"meta",children:jsx9(Date2,{date:getDate(cfg,page),locale:cfg.locale})}),jsx9("div",{class:"desc",children:jsx9("h3",{children:jsx9("a",{href:resolveRelative(fileData.slug,page.slug),class:"internal",children:title})})}),jsx9("ul",{class:"tags",children:tags.map(tag=>jsx9("li",{children:jsx9("a",{class:"internal tag-link",href:resolveRelative(fileData.slug,`tags/${tag}`),children:tag})}))})]})})})})},"PageList");PageList.css=`
.section h3 {
margin: 0;
}
.section > .tags {
margin: 0;
}
`;import{Fragment as Fragment3,jsx as jsx10,jsxs as jsxs4}from"preact/jsx-runtime";var numPages=10,TagContent=__name(props=>{let{tree,fileData,allFiles,cfg}=props,slug=fileData.slug;if(!(slug?.startsWith("tags/")||slug==="tags"))throw new Error(`Component "TagContent" tried to render a non-tag page: ${slug}`);let tag=simplifySlug(slug.slice(5)),allPagesWithTag=__name(tag2=>allFiles.filter(file=>(file.frontmatter?.tags??[]).flatMap(getAllSegmentPrefixes).includes(tag2)),"allPagesWithTag"),content=tree.children.length===0?fileData.description:htmlToJsx(fileData.filePath,tree),classes=["popover-hint",...fileData.frontmatter?.cssclasses??[]].join(" ");if(tag==="/"){let tags=[...new Set(allFiles.flatMap(data=>data.frontmatter?.tags??[]).flatMap(getAllSegmentPrefixes))].sort((a,b)=>a.localeCompare(b)),tagItemMap=new Map;for(let tag2 of tags)tagItemMap.set(tag2,allPagesWithTag(tag2));return jsxs4("div",{class:classes,children:[jsx10("article",{children:jsx10("p",{children:content})}),jsx10("p",{children:i18n(cfg.locale).pages.tagContent.totalTags({count:tags.length})}),jsx10("div",{children:tags.map(tag2=>{let pages=tagItemMap.get(tag2),listProps={...props,allFiles:pages},contentPage=allFiles.filter(file=>file.slug===`tags/${tag2}`).at(0),root=contentPage?.htmlAst,content2=!root||root?.children.length===0?contentPage?.description:htmlToJsx(contentPage.filePath,root);return jsxs4("div",{children:[jsx10("h2",{children:jsx10("a",{class:"internal tag-link",href:`../tags/${tag2}`,children:tag2})}),content2&&jsx10("p",{children:content2}),jsxs4("div",{class:"page-listing",children:[jsxs4("p",{children:[i18n(cfg.locale).pages.tagContent.itemsUnderTag({count:pages.length}),pages.length>numPages&&jsxs4(Fragment3,{children:[" ",jsx10("span",{children:i18n(cfg.locale).pages.tagContent.showingFirst({count:numPages})})]})]}),jsx10(PageList,{limit:numPages,...listProps})]})]})})})]})}else{let pages=allPagesWithTag(tag),listProps={...props,allFiles:pages};return jsxs4("div",{class:classes,children:[jsx10("article",{children:content}),jsxs4("div",{class:"page-listing",children:[jsx10("p",{children:i18n(cfg.locale).pages.tagContent.itemsUnderTag({count:pages.length})}),jsx10("div",{children:jsx10(PageList,{...listProps})})]})]})}},"TagContent");TagContent.css=listPage_default+PageList.css;var TagContent_default=__name(()=>TagContent,"default");import path5 from"path";import{jsx as jsx11,jsxs as jsxs5}from"preact/jsx-runtime";var defaultOptions9={showFolderCount:!0},FolderContent_default=__name(opts=>{let options2={...defaultOptions9,...opts},FolderContent=__name(props=>{let{tree,fileData,allFiles,cfg}=props,folderSlug=stripSlashes(simplifySlug(fileData.slug)),allPagesInFolder=allFiles.filter(file=>{let fileSlug=stripSlashes(simplifySlug(file.slug)),prefixed=fileSlug.startsWith(folderSlug)&&fileSlug!==folderSlug,folderParts=folderSlug.split(path5.posix.sep),isDirectChild=fileSlug.split(path5.posix.sep).length===folderParts.length+1;return prefixed&&isDirectChild}),classes=["popover-hint",...fileData.frontmatter?.cssclasses??[]].join(" "),listProps={...props,allFiles:allPagesInFolder},content=tree.children.length===0?fileData.description:htmlToJsx(fileData.filePath,tree);return jsxs5("div",{class:classes,children:[jsx11("article",{children:content}),jsxs5("div",{class:"page-listing",children:[options2.showFolderCount&&jsx11("p",{children:i18n(cfg.locale).pages.folderContent.itemsUnderFolder({count:allPagesInFolder.length})}),jsx11("div",{children:jsx11(PageList,{...listProps})})]})]})},"FolderContent");return FolderContent.css=listPage_default+PageList.css,FolderContent},"default");import{jsx as jsx12,jsxs as jsxs6}from"preact/jsx-runtime";var NotFound=__name(({cfg})=>jsxs6("article",{class:"popover-hint",children:[jsx12("h1",{children:"404"}),jsx12("p",{children:i18n(cfg.locale).pages.error.notFound})]}),"NotFound"),__default=__name(()=>NotFound,"default");import{jsx as jsx13}from"preact/jsx-runtime";var ArticleTitle=__name(({fileData,displayClass})=>{let title=fileData.frontmatter?.title;return title?jsx13("h1",{class:classNames(displayClass,"article-title"),children:title}):null},"ArticleTitle");ArticleTitle.css=`
.article-title {
margin: 2rem 0 0 0;
}
`;var ArticleTitle_default=__name(()=>ArticleTitle,"default");var darkmode_inline_default=`var h=window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark",o=localStorage.getItem("theme")??h;document.documentElement.setAttribute("saved-theme",o);var d=t=>{let n=new CustomEvent("themechange",{detail:{theme:t}});document.dispatchEvent(n)};document.addEventListener("nav",()=>{let t=a=>{let e=a.target?.checked?"dark":"light";document.documentElement.setAttribute("saved-theme",e),localStorage.setItem("theme",e),d(e)},n=a=>{let e=a.matches?"dark":"light";document.documentElement.setAttribute("saved-theme",e),localStorage.setItem("theme",e),c.checked=a.matches,d(e)},c=document.querySelector("#darkmode-toggle");c.addEventListener("change",t),window.addCleanup(()=>c.removeEventListener("change",t)),o==="dark"&&(c.checked=!0);let m=window.matchMedia("(prefers-color-scheme: dark)");m.addEventListener("change",n),window.addCleanup(()=>m.removeEventListener("change",n))});
`;var darkmode_default=`.darkmode {
position: relative;
width: 20px;
height: 20px;
margin: 0 10px;
}
.darkmode > .toggle {
display: none;
box-sizing: border-box;
}
.darkmode svg {
cursor: pointer;
opacity: 0;
position: absolute;
width: 20px;
height: 20px;
top: calc(50% - 10px);
fill: var(--darkgray);
transition: opacity 0.1s ease;
}
:root[saved-theme=dark] {
color-scheme: dark;
}
:root[saved-theme=light] {
color-scheme: light;
}
:root[saved-theme=dark] .toggle ~ label > #dayIcon {
opacity: 0;
}
:root[saved-theme=dark] .toggle ~ label > #nightIcon {
opacity: 1;
}
:root .toggle ~ label > #dayIcon {
opacity: 1;
}
:root .toggle ~ label > #nightIcon {
opacity: 0;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJkYXJrbW9kZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7O0FBRUE7RUFDRTtFQUNBOztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7O0FBSUo7RUFDRTs7O0FBR0Y7RUFDRTs7O0FBSUE7RUFDRTs7QUFFRjtFQUNFOzs7QUFLRjtFQUNFOztBQUVGO0VBQ0UiLCJzb3VyY2VzQ29udGVudCI6WyIuZGFya21vZGUge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHdpZHRoOiAyMHB4O1xuICBoZWlnaHQ6IDIwcHg7XG4gIG1hcmdpbjogMCAxMHB4O1xuXG4gICYgPiAudG9nZ2xlIHtcbiAgICBkaXNwbGF5OiBub25lO1xuICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gIH1cblxuICAmIHN2ZyB7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIG9wYWNpdHk6IDA7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHdpZHRoOiAyMHB4O1xuICAgIGhlaWdodDogMjBweDtcbiAgICB0b3A6IGNhbGMoNTAlIC0gMTBweCk7XG4gICAgZmlsbDogdmFyKC0tZGFya2dyYXkpO1xuICAgIHRyYW5zaXRpb246IG9wYWNpdHkgMC4xcyBlYXNlO1xuICB9XG59XG5cbjpyb290W3NhdmVkLXRoZW1lPVwiZGFya1wiXSB7XG4gIGNvbG9yLXNjaGVtZTogZGFyaztcbn1cblxuOnJvb3Rbc2F2ZWQtdGhlbWU9XCJsaWdodFwiXSB7XG4gIGNvbG9yLXNjaGVtZTogbGlnaHQ7XG59XG5cbjpyb290W3NhdmVkLXRoZW1lPVwiZGFya1wiXSAudG9nZ2xlIH4gbGFiZWwge1xuICAmID4gI2RheUljb24ge1xuICAgIG9wYWNpdHk6IDA7XG4gIH1cbiAgJiA+ICNuaWdodEljb24ge1xuICAgIG9wYWNpdHk6IDE7XG4gIH1cbn1cblxuOnJvb3QgLnRvZ2dsZSB+IGxhYmVsIHtcbiAgJiA+ICNkYXlJY29uIHtcbiAgICBvcGFjaXR5OiAxO1xuICB9XG4gICYgPiAjbmlnaHRJY29uIHtcbiAgICBvcGFjaXR5OiAwO1xuICB9XG59XG4iXX0= */`;import{jsx as jsx14,jsxs as jsxs7}from"preact/jsx-runtime";var Darkmode=__name(({displayClass,cfg})=>jsxs7("div",{class:classNames(displayClass,"darkmode"),children:[jsx14("input",{class:"toggle",id:"darkmode-toggle",type:"checkbox",tabIndex:-1}),jsx14("label",{id:"toggle-label-light",for:"darkmode-toggle",tabIndex:-1,children:jsxs7("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",id:"dayIcon",x:"0px",y:"0px",viewBox:"0 0 35 35",style:"enable-background:new 0 0 35 35",xmlSpace:"preserve",children:[jsx14("title",{children:i18n(cfg.locale).components.themeToggle.darkMode}),jsx14("path",{d:"M6,17.5C6,16.672,5.328,16,4.5,16h-3C0.672,16,0,16.672,0,17.5 S0.672,19,1.5,19h3C5.328,19,6,18.328,6,17.5z M7.5,26c-0.414,0-0.789,0.168-1.061,0.439l-2,2C4.168,28.711,4,29.086,4,29.5 C4,30.328,4.671,31,5.5,31c0.414,0,0.789-0.168,1.06-0.44l2-2C8.832,28.289,9,27.914,9,27.5C9,26.672,8.329,26,7.5,26z M17.5,6 C18.329,6,19,5.328,19,4.5v-3C19,0.672,18.329,0,17.5,0S16,0.672,16,1.5v3C16,5.328,16.671,6,17.5,6z M27.5,9 c0.414,0,0.789-0.168,1.06-0.439l2-2C30.832,6.289,31,5.914,31,5.5C31,4.672,30.329,4,29.5,4c-0.414,0-0.789,0.168-1.061,0.44 l-2,2C26.168,6.711,26,7.086,26,7.5C26,8.328,26.671,9,27.5,9z M6.439,8.561C6.711,8.832,7.086,9,7.5,9C8.328,9,9,8.328,9,7.5 c0-0.414-0.168-0.789-0.439-1.061l-2-2C6.289,4.168,5.914,4,5.5,4C4.672,4,4,4.672,4,5.5c0,0.414,0.168,0.789,0.439,1.06 L6.439,8.561z M33.5,16h-3c-0.828,0-1.5,0.672-1.5,1.5s0.672,1.5,1.5,1.5h3c0.828,0,1.5-0.672,1.5-1.5S34.328,16,33.5,16z M28.561,26.439C28.289,26.168,27.914,26,27.5,26c-0.828,0-1.5,0.672-1.5,1.5c0,0.414,0.168,0.789,0.439,1.06l2,2 C28.711,30.832,29.086,31,29.5,31c0.828,0,1.5-0.672,1.5-1.5c0-0.414-0.168-0.789-0.439-1.061L28.561,26.439z M17.5,29 c-0.829,0-1.5,0.672-1.5,1.5v3c0,0.828,0.671,1.5,1.5,1.5s1.5-0.672,1.5-1.5v-3C19,29.672,18.329,29,17.5,29z M17.5,7 C11.71,7,7,11.71,7,17.5S11.71,28,17.5,28S28,23.29,28,17.5S23.29,7,17.5,7z M17.5,25c-4.136,0-7.5-3.364-7.5-7.5 c0-4.136,3.364-7.5,7.5-7.5c4.136,0,7.5,3.364,7.5,7.5C25,21.636,21.636,25,17.5,25z"})]})}),jsx14("label",{id:"toggle-label-dark",for:"darkmode-toggle",tabIndex:-1,children:jsxs7("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",id:"nightIcon",x:"0px",y:"0px",viewBox:"0 0 100 100",style:"enable-background:new 0 0 100 100",xmlSpace:"preserve",children:[jsx14("title",{children:i18n(cfg.locale).components.themeToggle.lightMode}),jsx14("path",{d:"M96.76,66.458c-0.853-0.852-2.15-1.064-3.23-0.534c-6.063,2.991-12.858,4.571-19.655,4.571 C62.022,70.495,50.88,65.88,42.5,57.5C29.043,44.043,25.658,23.536,34.076,6.47c0.532-1.08,0.318-2.379-0.534-3.23 c-0.851-0.852-2.15-1.064-3.23-0.534c-4.918,2.427-9.375,5.619-13.246,9.491c-9.447,9.447-14.65,22.008-14.65,35.369 c0,13.36,5.203,25.921,14.65,35.368s22.008,14.65,35.368,14.65c13.361,0,25.921-5.203,35.369-14.65 c3.872-3.871,7.064-8.328,9.491-13.246C97.826,68.608,97.611,67.309,96.76,66.458z"})]})})]}),"Darkmode");Darkmode.beforeDOMLoaded=darkmode_inline_default;Darkmode.css=darkmode_default;var Darkmode_default=__name(()=>Darkmode,"default");var DEFAULT_SANS_SERIF='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif',DEFAULT_MONO="ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace";function googleFontHref(theme){let{code,header,body}=theme.typography;return`https://fonts.googleapis.com/css2?family=${code}&family=${header}:wght@400;700&family=${body}:ital,wght@0,400;0,600;1,400;1,600&display=swap`}__name(googleFontHref,"googleFontHref");function joinStyles(theme,...stylesheet){return`
${stylesheet.join(`
`)}
:root {
--light: ${theme.colors.lightMode.light};
--lightgray: ${theme.colors.lightMode.lightgray};
--gray: ${theme.colors.lightMode.gray};
--darkgray: ${theme.colors.lightMode.darkgray};
--dark: ${theme.colors.lightMode.dark};
--secondary: ${theme.colors.lightMode.secondary};
--tertiary: ${theme.colors.lightMode.tertiary};
--highlight: ${theme.colors.lightMode.highlight};
--headerFont: "${theme.typography.header}", ${DEFAULT_SANS_SERIF};
--bodyFont: "${theme.typography.body}", ${DEFAULT_SANS_SERIF};
--codeFont: "${theme.typography.code}", ${DEFAULT_MONO};
}
:root[saved-theme="dark"] {
--light: ${theme.colors.darkMode.light};
--lightgray: ${theme.colors.darkMode.lightgray};
--gray: ${theme.colors.darkMode.gray};
--darkgray: ${theme.colors.darkMode.darkgray};
--dark: ${theme.colors.darkMode.dark};
--secondary: ${theme.colors.darkMode.secondary};
--tertiary: ${theme.colors.darkMode.tertiary};
--highlight: ${theme.colors.darkMode.highlight};
}
`}__name(joinStyles,"joinStyles");import{Fragment as Fragment4,jsx as jsx15,jsxs as jsxs8}from"preact/jsx-runtime";var Head_default=__name(()=>__name(({cfg,fileData,externalResources})=>{let title=fileData.frontmatter?.title??i18n(cfg.locale).propertyDefaults.title,description=fileData.description?.trim()??i18n(cfg.locale).propertyDefaults.description,{css,js}=externalResources,path13=new URL(`https://${cfg.baseUrl??"example.com"}`).pathname,baseDir=fileData.slug==="404"?path13:pathToRoot(fileData.slug);return jsxs8("head",{children:[jsx15("title",{children:title}),jsx15("meta",{charSet:"utf-8"}),cfg.theme.cdnCaching&&cfg.theme.fontOrigin==="googleFonts"&&jsxs8(Fragment4,{children:[jsx15("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),jsx15("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),jsx15("link",{rel:"stylesheet",href:googleFontHref(cfg.theme)})]}),jsx15("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),jsx15("meta",{property:"og:title",content:title}),jsx15("meta",{property:"og:description",content:description}),cfg.baseUrl&&jsx15("meta",{property:"og:image",content:"https://assets.nexie.net/favicon.webp"}),jsx15("meta",{property:"og:width",content:"1200"}),jsx15("meta",{property:"og:height",content:"675"}),jsx15("link",{rel:"icon",href:"https://assets.nexie.net/favicon.webp"}),jsx15("meta",{name:"description",content:description}),jsx15("meta",{name:"generator",content:"Quartz"}),jsx15("script",{src:"https://kit.fontawesome.com/ccf5d53d30.js",crossorigin:"anonymous"}),css.map(href=>jsx15("link",{href,rel:"stylesheet",type:"text/css","spa-preserve":!0},href)),js.filter(resource=>resource.loadTime==="beforeDOMReady").map(res=>JSResourceToScriptElement(res,!0))]})},"Head"),"default");import{jsx as jsx16}from"preact/jsx-runtime";var PageTitle=__name(({fileData,cfg,displayClass})=>{let title=cfg?.pageTitle??i18n(cfg.locale).propertyDefaults.title,baseDir=pathToRoot(fileData.slug);return jsx16("h1",{class:classNames(displayClass,"page-title"),children:jsx16("a",{href:baseDir,children:title})})},"PageTitle");PageTitle.css=`
.page-title {
margin: 0;
}
`;var PageTitle_default=__name(()=>PageTitle,"default");import readingTime from"reading-time";var contentMeta_default=`.content-meta {
margin-top: 0;
color: var(--gray);
}
.content-meta[show-comma=true] > span:not(:last-child) {
margin-right: 8px;
}
.content-meta[show-comma=true] > span:not(:last-child)::after {
content: ",";
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJjb250ZW50TWV0YS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0U7RUFDQTs7QUFHRTtFQUNFOztBQUVBO0VBQ0UiLCJzb3VyY2VzQ29udGVudCI6WyIuY29udGVudC1tZXRhIHtcbiAgbWFyZ2luLXRvcDogMDtcbiAgY29sb3I6IHZhcigtLWdyYXkpO1xuXG4gICZbc2hvdy1jb21tYT1cInRydWVcIl0ge1xuICAgID4gc3Bhbjpub3QoOmxhc3QtY2hpbGQpIHtcbiAgICAgIG1hcmdpbi1yaWdodDogOHB4O1xuXG4gICAgICAmOjphZnRlciB7XG4gICAgICAgIGNvbnRlbnQ6IFwiLFwiO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19 */`;import{jsx as jsx17}from"preact/jsx-runtime";var defaultOptions10={showReadingTime:!0,showComma:!0},ContentMeta_default=__name(opts=>{let options2={...defaultOptions10,...opts};function ContentMetadata({cfg,fileData,displayClass}){let text=fileData.text;if(text){let segments=[];if(fileData.dates&&segments.push(formatDate(getDate(cfg,fileData),cfg.locale)),options2.showReadingTime){let{minutes,words:_words}=readingTime(text),displayedTime=i18n(cfg.locale).components.contentMeta.readingTime({minutes:Math.ceil(minutes)});segments.push(displayedTime)}let segmentsElements=segments.map(segment=>jsx17("span",{children:segment}));return jsx17("p",{"show-comma":options2.showComma,class:classNames(displayClass,"content-meta"),children:segmentsElements})}else return null}return __name(ContentMetadata,"ContentMetadata"),ContentMetadata.css=contentMeta_default,ContentMetadata},"default");import{jsx as jsx18}from"preact/jsx-runtime";function Spacer({displayClass}){return jsx18("div",{class:classNames(displayClass,"spacer")})}__name(Spacer,"Spacer");var Spacer_default=__name(()=>Spacer,"default");var legacyToc_default=`details#toc summary {
cursor: pointer;
}
details#toc summary::marker {
color: var(--dark);
}
details#toc summary > * {
padding-left: 0.25rem;
display: inline-block;
margin: 0;
}
details#toc ul {
list-style: none;
margin: 0.5rem 1.25rem;
padding: 0;
}
details#toc .depth-1 {
padding-left: calc(1rem * 1);
}
details#toc .depth-2 {
padding-left: calc(1rem * 2);
}
details#toc .depth-3 {
padding-left: calc(1rem * 3);
}
details#toc .depth-4 {
padding-left: calc(1rem * 4);
}
details#toc .depth-5 {
padding-left: calc(1rem * 5);
}
details#toc .depth-6 {
padding-left: calc(1rem * 6);
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJsZWdhY3lUb2Muc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDRTtFQUNFOztBQUVBO0VBQ0U7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7O0FBSUo7RUFDRTtFQUNBO0VBQ0E7O0FBSUE7RUFDRTs7QUFERjtFQUNFOztBQURGO0VBQ0U7O0FBREY7RUFDRTs7QUFERjtFQUNFOztBQURGO0VBQ0UiLCJzb3VyY2VzQ29udGVudCI6WyJkZXRhaWxzI3RvYyB7XG4gICYgc3VtbWFyeSB7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuXG4gICAgJjo6bWFya2VyIHtcbiAgICAgIGNvbG9yOiB2YXIoLS1kYXJrKTtcbiAgICB9XG5cbiAgICAmID4gKiB7XG4gICAgICBwYWRkaW5nLWxlZnQ6IDAuMjVyZW07XG4gICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgICBtYXJnaW46IDA7XG4gICAgfVxuICB9XG5cbiAgJiB1bCB7XG4gICAgbGlzdC1zdHlsZTogbm9uZTtcbiAgICBtYXJnaW46IDAuNXJlbSAxLjI1cmVtO1xuICAgIHBhZGRpbmc6IDA7XG4gIH1cblxuICBAZm9yICRpIGZyb20gMSB0aHJvdWdoIDYge1xuICAgICYgLmRlcHRoLSN7JGl9IHtcbiAgICAgIHBhZGRpbmctbGVmdDogY2FsYygxcmVtICogI3skaX0pO1xuICAgIH1cbiAgfVxufVxuIl19 */`;var toc_default=`button#toc {
background-color: transparent;
border: none;
text-align: left;
cursor: pointer;
padding: 0;
color: var(--dark);
display: flex;
align-items: center;
}
button#toc h3 {
font-size: 1rem;
display: inline-block;
margin: 0;
}
button#toc .fold {
margin-left: 0.5rem;
transition: transform 0.3s ease;
opacity: 0.8;
}
button#toc.collapsed .fold {
transform: rotateZ(-90deg);
}
#toc-content {
list-style: none;
overflow: hidden;
max-height: none;
transition: max-height 0.5s ease;
position: relative;
}
#toc-content.collapsed > .overflow::after {
opacity: 0;
}
#toc-content ul {
list-style: none;
margin: 0.5rem 0;
padding: 0;
}
#toc-content ul > li > a {
color: var(--dark);
opacity: 0.35;
transition: 0.5s ease opacity, 0.3s ease color;
}
#toc-content ul > li > a.in-view {
opacity: 0.75;
}
#toc-content .depth-0 {
padding-left: calc(1rem * 0);
}
#toc-content .depth-1 {
padding-left: calc(1rem * 1);
}
#toc-content .depth-2 {
padding-left: calc(1rem * 2);
}
#toc-content .depth-3 {
padding-left: calc(1rem * 3);
}
#toc-content .depth-4 {
padding-left: calc(1rem * 4);
}
#toc-content .depth-5 {
padding-left: calc(1rem * 5);
}
#toc-content .depth-6 {
padding-left: calc(1rem * 6);
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJ0b2Muc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBRUE7RUFDRTtFQUNBO0VBQ0E7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7O0FBR0Y7RUFDRTs7O0FBSUo7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUVBO0VBQ0U7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7O0FBQ0E7RUFDRTtFQUNBO0VBQ0EsWUFDRTs7QUFFRjtFQUNFOztBQU1KO0VBQ0U7O0FBREY7RUFDRTs7QUFERjtFQUNFOztBQURGO0VBQ0U7O0FBREY7RUFDRTs7QUFERjtFQUNFOztBQ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bnNpdGlvbjpcbiAgICAgICAgMC41cyBlYXNlIG9wYWNpdHksXG4gICAgICAgIDAuM3MgZWFzZSBjb2xvcjtcbiAgICAgICYuaW4tdmlldyB7XG4gICAgICAgIG9wYWNpdHk6IDAuNzU7XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgQGZvciAkaSBmcm9tIDAgdGhyb3VnaCA2IHtcbiAgICAmIC5kZXB0aC0jeyRpfSB7XG4gICAgICBwYWRkaW5nLWxlZnQ6IGNhbGMoMXJlbSAqICN7JGl9KTtcbiAgICB9XG4gIH1cbn1cbiJdfQ== */`;var toc_inline_default='var o=new IntersectionObserver(e=>{for(let t of e){let n=t.target.id,s=document.querySelector(`a[data-for="${n}"]`),i=t.rootBounds?.height;i&&s&&(t.boundingClientRect.y<i?s.classList.add("in-view"):s.classList.remove("in-view"))}});function c(){this.classList.toggle("collapsed");let e=this.nextElementSibling;e&&(e.classList.toggle("collapsed"),e.style.maxHeight=e.style.maxHeight==="0px"?e.scrollHeight+"px":"0px")}function l(){let e=document.getElementById("toc");if(e){let t=e.classList.contains("collapsed"),n=e.nextElementSibling;if(!n)return;n.style.maxHeight=t?"0px":n.scrollHeight+"px",e.addEventListener("click",c),window.addCleanup(()=>e.removeEventListener("click",c))}}window.addEventListener("resize",l);document.addEventListener("nav",()=>{l(),o.disconnect(),document.querySelectorAll("h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]").forEach(t=>o.observe(t))});\n';import{jsx as jsx19,jsxs as jsxs9}from"preact/jsx-runtime";var defaultOptions11={layout:"modern"},TableOfContents2=__name(({fileData,displayClass,cfg})=>fileData.toc?jsxs9("div",{class:classNames(displayClass,"toc"),children:[jsxs9("button",{type:"button",id:"toc",class:fileData.collapseToc?"collapsed":"",children:[jsx19("h3",{children:i18n(cfg.locale).components.tableOfContents.title}),jsx19("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"fold",children:jsx19("polyline",{points:"6 9 12 15 18 9"})})]}),jsx19("div",{id:"toc-content",children:jsx19("ul",{class:"overflow",children:fileData.toc.map(tocEntry=>jsx19("li",{class:`depth-${tocEntry.depth}`,children:jsx19("a",{href:`#${tocEntry.slug}`,"data-for":tocEntry.slug,children:tocEntry.text})},tocEntry.slug))})})]}):null,"TableOfContents");TableOfContents2.css=toc_default;TableOfContents2.afterDOMLoaded=toc_inline_default;var LegacyTableOfContents=__name(({fileData,cfg})=>fileData.toc?jsxs9("details",{id:"toc",open:!fileData.collapseToc,children:[jsx19("summary",{children:jsx19("h3",{children:i18n(cfg.locale).components.tableOfContents.title})}),jsx19("ul",{children:fileData.toc.map(tocEntry=>jsx19("li",{class:`depth-${tocEntry.depth}`,children:jsx19("a",{href:`#${tocEntry.slug}`,"data-for":tocEntry.slug,children:tocEntry.text})},tocEntry.slug))})]}):null,"LegacyTableOfContents");LegacyTableOfContents.css=legacyToc_default;var TableOfContents_default=__name(opts=>(opts?.layout??defaultOptions11.layout)==="modern"?TableOfContents2:LegacyTableOfContents,"default");var explorer_default=`button#explorer {
all: unset;
background-color: transparent;
border: none;
text-align: left;
cursor: pointer;
padding: 0;
color: var(--dark);
display: flex;
align-items: center;
}
button#explorer h1 {
font-size: 1rem;
display: inline-block;
margin: 0;
}
button#explorer .fold {
margin-left: 0.5rem;
transition: transform 0.3s ease;
opacity: 0.8;
}
button#explorer.collapsed .fold {
transform: rotateZ(-90deg);
}
.folder-outer {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.3s ease-in-out;
}
.folder-outer.open {
grid-template-rows: 1fr;
}
.folder-outer > ul {
overflow: hidden;
}
#explorer-content {
list-style: none;
overflow: hidden;
max-height: none;
transition: max-height 0.35s ease;
margin-top: 0.5rem;
}
#explorer-content.collapsed > .overflow::after {
opacity: 0;
}
#explorer-content ul {
list-style: none;
margin: 0.08rem 0;
padding: 0;
transition: max-height 0.35s ease, transform 0.35s ease, opacity 0.2s ease;
}
#explorer-content ul li > a {
color: var(--dark);
opacity: 0.75;
pointer-events: all;
}
svg {
pointer-events: all;
}
svg > polyline {
pointer-events: none;
}
.folder-container {
flex-direction: row;
display: flex;
align-items: center;
user-select: none;
}
.folder-container div > a {
color: var(--secondary);
font-family: var(--headerFont);
font-size: 0.95rem;
font-weight: 600;
line-height: 1.5rem;
display: inline-block;
}
.folder-container div > a:hover {
color: var(--tertiary);
}
.folder-container div > button {
color: var(--dark);
background-color: transparent;
border: none;
text-align: left;
cursor: pointer;
padding-left: 0;
padding-right: 0;
display: flex;
align-items: center;
font-family: var(--headerFont);
}
.folder-container div > button span {
font-size: 0.95rem;
display: inline-block;
color: var(--secondary);
font-weight: 600;
margin: 0;
line-height: 1.5rem;
pointer-events: none;
}
.folder-icon {
margin-right: 5px;
color: var(--secondary);
cursor: pointer;
transition: transform 0.3s ease;
backface-visibility: visible;
}
li:has(> .folder-outer:not(.open)) > .folder-container > svg {
transform: rotate(-90deg);
}
.folder-icon:hover {
color: var(--tertiary);
}
.no-background::after {
background: none !important;
}
#explorer-end {
height: 4px;
margin: 0;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJleHBsb3Jlci5zY3NzIiwiLi5cXC4uXFxzdHlsZXNcXHZhcmlhYmxlcy5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUVBO0VBQ0U7RUFDQTtFQUNBOztBQUdGO0VBQ0U7RUFDQTtFQUNBOztBQUdGO0VBQ0U7OztBQUlKO0VBQ0U7RUFDQTtFQUNBOzs7QUFHRjtFQUNFOzs7QUFHRjt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W07XG4kZnVsbFBhZ2VXaWR0aDogJHBhZ2VXaWR0aCArIDIgKiAkc2lkZVBhbmVsV2lkdGg7XG4kYm9sZFdlaWdodDogNzAwO1xuJHNlbWlCb2xkV2VpZ2h0OiA2MDA7XG4kbm9ybWFsV2VpZ2h0OiA0MDA7XG4iXX0= */`;var explorer_inline_default='var s,p=new IntersectionObserver(e=>{let t=document.getElementById("explorer-ul");if(t)for(let o of e)o.isIntersecting?t.classList.add("no-background"):t.classList.remove("no-background")});function m(){this.classList.toggle("collapsed");let e=this.nextElementSibling;e&&(e.classList.toggle("collapsed"),e.style.maxHeight=e.style.maxHeight==="0px"?e.scrollHeight+"px":"0px")}function i(e){e.stopPropagation();let t=e.target;if(!t)return;let o=t.nodeName==="svg",l=o?t.parentElement?.nextSibling:t.parentElement?.parentElement?.nextElementSibling,a=o?t.nextElementSibling:t.parentElement;if(!(l&&a))return;l.classList.toggle("open");let c=l.classList.contains("open");E(l,!c);let n=a.dataset.folderpath;f(s,n);let r=JSON.stringify(s);localStorage.setItem("fileTree",r)}function g(){let e=document.getElementById("explorer");if(!e)return;if(e.dataset.behavior==="collapse")for(let n of document.getElementsByClassName("folder-button"))n.addEventListener("click",i),window.addCleanup(()=>n.removeEventListener("click",i));e.addEventListener("click",m),window.addCleanup(()=>e.removeEventListener("click",m));for(let n of document.getElementsByClassName("folder-icon"))n.addEventListener("click",i),window.addCleanup(()=>n.removeEventListener("click",i));let t=localStorage.getItem("fileTree"),o=e?.dataset.savestate==="true",l=t&&o?JSON.parse(t):[],a=new Map(l.map(n=>[n.path,n.collapsed])),c=e.dataset.tree?JSON.parse(e.dataset.tree):[];s=[];for(let{path:n,collapsed:r}of c)s.push({path:n,collapsed:a.get(n)??r});s.map(n=>{let d=document.querySelector(`[data-folderpath=\'${n.path}\']`)?.parentElement?.nextElementSibling;d&&E(d,n.collapsed)})}window.addEventListener("resize",g);document.addEventListener("nav",()=>{g(),p.disconnect();let e=document.getElementById("explorer-end");e&&p.observe(e)});function E(e,t){return t?e.classList.remove("open"):e.classList.add("open")}function f(e,t){let o=e.find(l=>l.path===t);o&&(o.collapsed=!o.collapsed)}\n';import{Fragment as Fragment5,jsx as jsx20,jsxs as jsxs10}from"preact/jsx-runtime";function getPathSegment(fp,idx){if(fp)return fp.split("/").at(idx)}__name(getPathSegment,"getPathSegment");var FileNode=class _FileNode{static{__name(this,"FileNode")}children;name;displayName;file;depth;constructor(slugSegment,displayName,file,depth){this.children=[],this.name=slugSegment,this.displayName=displayName??file?.frontmatter?.title??slugSegment,this.file=file?clone(file):null,this.depth=depth??0}insert(fileData){if(fileData.path.length===0)return;let nextSegment=fileData.path[0];if(fileData.path.length===1){if(nextSegment===""){let title=fileData.file.frontmatter?.title;title&&title!=="index"&&(this.displayName=title)}else this.children.push(new _FileNode(nextSegment,void 0,fileData.file,this.depth+1));return}fileData.path=fileData.path.splice(1);let child=this.children.find(c=>c.name===nextSegment);if(child){child.insert(fileData);return}let newChild=new _FileNode(nextSegment,getPathSegment(fileData.file.relativePath,this.depth),void 0,this.depth+1);newChild.insert(fileData),this.children.push(newChild)}add(file){this.insert({file,path:simplifySlug(file.slug).split("/")})}filter(filterFn){this.children=this.children.filter(filterFn),this.children.forEach(child=>child.filter(filterFn))}map(mapFn){mapFn(this),this.children.forEach(child=>child.map(mapFn))}getFolderPaths(collapsed){let folderPaths=[],traverse=__name((node,currentPath)=>{if(!node.file){let folderPath=joinSegments(currentPath,node.name);folderPath!==""&&folderPaths.push({path:folderPath,collapsed}),node.children.forEach(child=>traverse(child,folderPath))}},"traverse");return traverse(this,""),folderPaths}sort(sortFn){this.children=this.children.sort(sortFn),this.children.forEach(e=>e.sort(sortFn))}};function ExplorerNode({node,opts,fullPath,fileData}){let folderBehavior=opts.folderClickBehavior,isDefaultOpen=opts.folderDefaultState==="open",folderPath="";return node.name!==""&&(folderPath=joinSegments(fullPath??"",node.name)),jsx20(Fragment5,{children:node.file?jsx20("li",{children:jsx20("a",{href:resolveRelative(fileData.slug,node.file.slug),"data-for":node.file.slug,children:node.displayName})},node.file.slug):jsxs10("li",{children:[node.name!==""&&jsxs10("div",{class:"folder-container",children:[jsx20("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"5 8 14 8",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"folder-icon",children:jsx20("polyline",{points:"6 9 12 15 18 9"})}),jsx20("div",{"data-folderpath":folderPath,children:folderBehavior==="link"?jsx20("a",{href:resolveRelative(fileData.slug,folderPath),"data-for":node.name,class:"folder-title",children:node.displayName}):jsx20("button",{class:"folder-button",children:jsx20("span",{class:"folder-title",children:node.displayName})})},node.name)]}),jsx20("div",{class:`folder-outer ${node.depth===0||isDefaultOpen?"open":""}`,children:jsx20("ul",{style:{paddingLeft:node.name!==""?"1.4rem":"0"},class:"content","data-folderul":folderPath,children:node.children.map((childNode,i)=>jsx20(ExplorerNode,{node:childNode,opts,fullPath:folderPath,fileData},i))})})]})})}__name(ExplorerNode,"ExplorerNode");import{jsx as jsx21,jsxs as jsxs11}from"preact/jsx-runtime";var defaultOptions12={folderClickBehavior:"collapse",folderDefaultState:"collapsed",useSavedState:!0,mapFn:node=>node,sortFn:(a,b)=>!a.file&&!b.file||a.file&&b.file?a.displayName.localeCompare(b.displayName,void 0,{numeric:!0,sensitivity:"base"}):a.file&&!b.file?1:-1,filterFn:node=>node.name!=="tags",order:["filter","map","sort"]},Explorer_default=__name(userOpts=>{let opts={...defaultOptions12,...userOpts},fileTree,jsonTree;function constructFileTree(allFiles){if(fileTree)return;if(fileTree=new FileNode(""),allFiles.forEach(file=>fileTree.add(file)),opts.order)for(let i=0;i<opts.order.length;i++){let functionName=opts.order[i];functionName==="map"?fileTree.map(opts.mapFn):functionName==="sort"?fileTree.sort(opts.sortFn):functionName==="filter"&&fileTree.filter(opts.filterFn)}let folders=fileTree.getFolderPaths(opts.folderDefaultState==="collapsed");jsonTree=JSON.stringify(folders)}__name(constructFileTree,"constructFileTree");let Explorer=__name(({cfg,allFiles,displayClass,fileData})=>(constructFileTree(allFiles),jsxs11("div",{class:classNames(displayClass,"explorer"),children:[jsxs11("button",{type:"button",id:"explorer","data-behavior":opts.folderClickBehavior,"data-collapsed":opts.folderDefaultState,"data-savestate":opts.useSavedState,"data-tree":jsonTree,children:[jsx21("h1",{children:opts.title??i18n(cfg.locale).components.explorer.title}),jsx21("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"5 8 14 8",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"fold",children:jsx21("polyline",{points:"6 9 12 15 18 9"})})]}),jsx21("div",{id:"explorer-content",children:jsxs11("ul",{class:"overflow",id:"explorer-ul",children:[jsx21(ExplorerNode,{node:fileTree,opts,fileData}),jsx21("li",{id:"explorer-end"})]})})]})),"Explorer");return Explorer.css=explorer_default,Explorer.afterDOMLoaded=explorer_inline_default,Explorer},"default");import{jsx as jsx22}from"preact/jsx-runtime";var TagList=__name(({fileData,displayClass})=>{let tags=fileData.frontmatter?.tags,baseDir=pathToRoot(fileData.slug);return tags&&tags.length>0?jsx22("ul",{class:classNames(displayClass,"tags"),children:tags.map(tag=>{let linkDest=baseDir+`/tags/${slugTag(tag)}`;return jsx22("li",{children:jsx22("a",{href:linkDest,class:"internal tag-link",children:tag})})})}):null},"TagList");TagList.css=`
.tags {
list-style: none;
display: flex;
padding-left: 0;
gap: 0.4rem;
margin: 1rem 0;
flex-wrap: wrap;
justify-self: end;
}
.section-li > .section > .tags {
justify-content: flex-end;
}
.tags > li {
display: inline-block;
white-space: nowrap;
margin: 0;
overflow-wrap: normal;
}
a.internal.tag-link {
border-radius: 8px;
background-color: var(--highlight);
padding: 0.2rem 0.4rem;
margin: 0 0.1rem;
}
`;var TagList_default=__name(()=>TagList,"default");var graph_inline_default='var yu=Object.create;var Ze=Object.defineProperty;var vu=Object.getOwnPropertyDescriptor;var wu=Object.getOwnPropertyNames;var _u=Object.getPrototypeOf,Eu=Object.prototype.hasOwnProperty;var Au=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Cu=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of wu(e))!Eu.call(t,u)&&u!==n&&Ze(t,u,{get:()=>e[u],enumerable:!(r=vu(e,u))||r.enumerable});return t};var bu=(t,e,n)=>(n=t!=null?yu(_u(t)):{},Cu(e||!t||!t.__esModule?Ze(n,"default",{value:t,enumerable:!0}):n,t));var hu=Au((zp,cu)=>{"use strict";cu.exports=Ko;function bt(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function Ko(t){if(t=t||{},t.circles)return Qo(t);return t.proto?r:n;function e(u,o){for(var i=Object.keys(u),a=new Array(i.length),l=0;l<i.length;l++){var s=i[l],f=u[s];typeof f!="object"||f===null?a[s]=f:f instanceof Date?a[s]=new Date(f):ArrayBuffer.isView(f)?a[s]=bt(f):a[s]=o(f)}return a}function n(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return e(u,n);if(u instanceof Map)return new Map(e(Array.from(u),n));if(u instanceof Set)return new Set(e(Array.from(u),n));var o={};for(var i in u)if(Object.hasOwnProperty.call(u,i)!==!1){var a=u[i];typeof a!="object"||a===null?o[i]=a:a instanceof Date?o[i]=new Date(a):a instanceof Map?o[i]=new Map(e(Array.from(a),n)):a instanceof Set?o[i]=new Set(e(Array.from(a),n)):ArrayBuffer.isView(a)?o[i]=bt(a):o[i]=n(a)}return o}function r(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return e(u,r);if(u instanceof Map)return new Map(e(Array.from(u),r));if(u instanceof Set)return new Set(e(Array.from(u),r));var o={};for(var i in u){var a=u[i];typeof a!="object"||a===null?o[i]=a:a instanceof Date?o[i]=new Date(a):a instanceof Map?o[i]=new Map(e(Array.from(a),r)):a instanceof Set?o[i]=new Set(e(Array.from(a),r)):ArrayBuffer.isView(a)?o[i]=bt(a):o[i]=r(a)}return o}}function Qo(t){var e=[],n=[];return t.proto?o:u;function r(i,a){for(var l=Object.keys(i),s=new Array(l.length),f=0;f<l.length;f++){var D=l[f],c=i[D];if(typeof c!="object"||c===null)s[D]=c;else if(c instanceof Date)s[D]=new Date(c);else if(ArrayBuffer.isView(c))s[D]=bt(c);else{var p=e.indexOf(c);p!==-1?s[D]=n[p]:s[D]=a(c)}}return s}function u(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return r(i,u);if(i instanceof Map)return new Map(r(Array.from(i),u));if(i instanceof Set)return new Set(r(Array.from(i),u));var a={};e.push(i),n.push(a);for(var l in i)if(Object.hasOwnProperty.call(i,l)!==!1){var s=i[l];if(typeof s!="object"||s===null)a[l]=s;else if(s instanceof Date)a[l]=new Date(s);else if(s instanceof Map)a[l]=new Map(r(Array.from(s),u));else if(s instanceof Set)a[l]=new Set(r(Array.from(s),u));else if(ArrayBuffer.isView(s))a[l]=bt(s);else{var f=e.indexOf(s);f!==-1?a[l]=n[f]:a[l]=u(s)}}return e.pop(),n.pop(),a}function o(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return r(i,o);if(i instanceof Map)return new Map(r(Array.from(i),o));if(i instanceof Set)return new Set(r(Array.from(i),o));var a={};e.push(i),n.push(a);for(var l in i){var s=i[l];if(typeof s!="object"||s===null)a[l]=s;else if(s instanceof Date)a[l]=new Date(s);else if(s instanceof Map)a[l]=new Map(r(Array.from(s),o));else if(s instanceof Set)a[l]=new Set(r(Array.from(s),o));else if(ArrayBuffer.isView(s))a[l]=bt(s);else{var f=e.indexOf(s);f!==-1?a[l]=n[f]:a[l]=o(s)}}return e.pop(),n.pop(),a}}});var Bu={value:()=>{}};function je(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Jt(n)}function Jt(t){this._=t}function Su(t,e){return t.trim().split(/^|\\s+/).map(function(n){var r="",u=n.indexOf(".");if(u>=0&&(r=n.slice(u+1),n=n.slice(0,u)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Jt.prototype=je.prototype={constructor:Jt,on:function(t,e){var n=this._,r=Su(t+"",n),u,o=-1,i=r.length;if(arguments.length<2){for(;++o<i;)if((u=(t=r[o]).type)&&(u=Nu(n[u],t.name)))return u;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<i;)if(u=(t=r[o]).type)n[u]=Je(n[u],t.name,e);else if(e==null)for(u in n)n[u]=Je(n[u],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Jt(t)},call:function(t,e){if((u=arguments.length-2)>0)for(var n=new Array(u),r=0,u,o;r<u;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,u=o.length;r<u;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],u=0,o=r.length;u<o;++u)r[u].value.apply(e,n)}};function Nu(t,e){for(var n=0,r=t.length,u;n<r;++n)if((u=t[n]).name===e)return u.value}function Je(t,e,n){for(var r=0,u=t.length;r<u;++r)if(t[r].name===e){t[r]=Bu,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var nt=je;var jt="http://www.w3.org/1999/xhtml",Ce={svg:"http://www.w3.org/2000/svg",xhtml:jt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function rt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Ce.hasOwnProperty(e)?{space:Ce[e],local:t}:t}function Mu(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===jt&&e.documentElement.namespaceURI===jt?e.createElement(t):e.createElementNS(n,t)}}function Tu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function te(t){var e=rt(t);return(e.local?Tu:Mu)(e)}function ku(){}function dt(t){return t==null?ku:function(){return this.querySelector(t)}}function tn(t){typeof t!="function"&&(t=dt(t));for(var e=this._groups,n=e.length,r=new Array(n),u=0;u<n;++u)for(var o=e[u],i=o.length,a=r[u]=new Array(i),l,s,f=0;f<i;++f)(l=o[f])&&(s=t.call(l,l.__data__,f,o))&&("__data__"in l&&(s.__data__=l.__data__),a[f]=s);return new L(r,this._parents)}function Bt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Iu(){return[]}function St(t){return t==null?Iu:function(){return this.querySelectorAll(t)}}function zu(t){return function(){return Bt(t.apply(this,arguments))}}function en(t){typeof t=="function"?t=zu(t):t=St(t);for(var e=this._groups,n=e.length,r=[],u=[],o=0;o<n;++o)for(var i=e[o],a=i.length,l,s=0;s<a;++s)(l=i[s])&&(r.push(t.call(l,l.__data__,s,i)),u.push(l));return new L(r,u)}function Nt(t){return function(){return this.matches(t)}}function ee(t){return function(e){return e.matches(t)}}var Ou=Array.prototype.find;function Ru(t){return function(){return Ou.call(this.children,t)}}function Lu(){return this.firstElementChild}function nn(t){return this.select(t==null?Lu:Ru(typeof t=="function"?t:ee(t)))}var Hu=Array.prototype.filter;function Pu(){return Array.from(this.children)}function $u(t){return function(){return Hu.call(this.children,t)}}function rn(t){return this.selectAll(t==null?Pu:$u(typeof t=="function"?t:ee(t)))}function un(t){typeof t!="function"&&(t=Nt(t));for(var e=this._groups,n=e.length,r=new Array(n),u=0;u<n;++u)for(var o=e[u],i=o.length,a=r[u]=[],l,s=0;s<i;++s)(l=o[s])&&t.call(l,l.__data__,s,o)&&a.push(l);return new L(r,this._parents)}function ne(t){return new Array(t.length)}function on(){return new L(this._enter||this._groups.map(ne),this._parents)}function Mt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Mt.prototype={constructor:Mt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function an(t){return function(){return t}}function Xu(t,e,n,r,u,o){for(var i=0,a,l=e.length,s=o.length;i<s;++i)(a=e[i])?(a.__data__=o[i],r[i]=a):n[i]=new Mt(t,o[i]);for(;i<l;++i)(a=e[i])&&(u[i]=a)}function qu(t,e,n,r,u,o,i){var a,l,s=new Map,f=e.length,D=o.length,c=new Array(f),p;for(a=0;a<f;++a)(l=e[a])&&(c[a]=p=i.call(l,l.__data__,a,e)+"",s.has(p)?u[a]=l:s.set(p,l));for(a=0;a<D;++a)p=i.call(t,o[a],a,o)+"",(l=s.get(p))?(r[a]=l,l.__data__=o[a],s.delete(p)):n[a]=new Mt(t,o[a]);for(a=0;a<f;++a)(l=e[a])&&s.get(c[a])===l&&(u[a]=l)}function Vu(t){return t.__data__}function sn(t,e){if(!arguments.length)return Array.from(this,Vu);var n=e?qu:Xu,r=this._parents,u=this._groups;typeof t!="function"&&(t=an(t));for(var o=u.length,i=new Array(o),a=new Array(o),l=new Array(o),s=0;s<o;++s){var f=r[s],D=u[s],c=D.length,p=Yu(t.call(f,f&&f.__data__,s,r)),w=p.length,F=a[s]=new Array(w),g=i[s]=new Array(w),d=l[s]=new Array(c);n(f,D,F,g,d,p,e);for(var v=0,C=0,m,E;v<w;++v)if(m=F[v]){for(v>=C&&(C=v+1);!(E=g[C])&&++C<w;);m._next=E||null}}return i=new L(i,r),i._enter=a,i._exit=l,i}function Yu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ln(){return new L(this._exit||this._groups.map(ne),this._parents)}function fn(t,e,n){var r=this.enter(),u=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(u=e(u),u&&(u=u.selection())),n==null?o.remove():n(o),r&&u?r.merge(u).order():u}function cn(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,u=n.length,o=r.length,i=Math.min(u,o),a=new Array(u),l=0;l<i;++l)for(var s=n[l],f=r[l],D=s.length,c=a[l]=new Array(D),p,w=0;w<D;++w)(p=s[w]||f[w])&&(c[w]=p);for(;l<u;++l)a[l]=n[l];return new L(a,this._parents)}function hn(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],u=r.length-1,o=r[u],i;--u>=0;)(i=r[u])&&(o&&i.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(i,o),o=i);return this}function pn(t){t||(t=Uu);function e(D,c){return D&&c?t(D.__data__,c.__data__):!D-!c}for(var n=this._groups,r=n.length,u=new Array(r),o=0;o<r;++o){for(var i=n[o],a=i.length,l=u[o]=new Array(a),s,f=0;f<a;++f)(s=i[f])&&(l[f]=s);l.sort(e)}return new L(u,this._parents).order()}function Uu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function mn(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function dn(){return Array.from(this)}function Dn(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],u=0,o=r.length;u<o;++u){var i=r[u];if(i)return i}return null}function gn(){let t=0;for(let e of this)++t;return t}function xn(){return!this.node()}function Fn(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var u=e[n],o=0,i=u.length,a;o<i;++o)(a=u[o])&&t.call(a,a.__data__,o,u);return this}function Wu(t){return function(){this.removeAttribute(t)}}function Gu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ku(t,e){return function(){this.setAttribute(t,e)}}function Qu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Zu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Ju(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function yn(t,e){var n=rt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Gu:Wu:typeof e=="function"?n.local?Ju:Zu:n.local?Qu:Ku)(n,e))}function re(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ju(t){return function(){this.style.removeProperty(t)}}function ti(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ei(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function vn(t,e,n){return arguments.length>1?this.each((e==null?ju:typeof e=="function"?ei:ti)(t,e,n??"")):ot(this.node(),t)}function ot(t,e){return t.style.getPropertyValue(e)||re(t).getComputedStyle(t,null).getPropertyValue(e)}function ni(t){return function(){delete this[t]}}function ri(t,e){return function(){this[t]=e}}function ui(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function wn(t,e){return arguments.length>1?this.each((e==null?ni:typeof e=="function"?ui:ri)(t,e)):this.node()[t]}function _n(t){return t.trim().split(/^|\\s+/)}function be(t){return t.classList||new En(t)}function En(t){this._node=t,this._names=_n(t.getAttribute("class")||"")}En.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function An(t,e){for(var n=be(t),r=-1,u=e.length;++r<u;)n.add(e[r])}function Cn(t,e){for(var n=be(t),r=-1,u=e.length;++r<u;)n.remove(e[r])}function ii(t){return function(){An(this,t)}}function oi(t){return function(){Cn(this,t)}}function ai(t,e){return function(){(e.apply(this,arguments)?An:Cn)(this,t)}}function bn(t,e){var n=_n(t+"");if(arguments.length<2){for(var r=be(this.node()),u=-1,o=n.length;++u<o;)if(!r.contains(n[u]))return!1;return!0}return this.each((typeof e=="function"?ai:e?ii:oi)(n,e))}function si(){this.textContent=""}function li(t){return function(){this.textContent=t}}function fi(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Bn(t){return arguments.length?this.each(t==null?si:(typeof t=="function"?fi:li)(t)):this.node().textContent}function ci(){this.innerHTML=""}function hi(t){return function(){this.innerHTML=t}}function pi(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Sn(t){return arguments.length?this.each(t==null?ci:(typeof t=="function"?pi:hi)(t)):this.node().innerHTML}function mi(){this.nextSibling&&this.parentNode.appendChild(this)}function Nn(){return this.each(mi)}function di(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Mn(){return this.each(di)}function Tn(t){var e=typeof t=="function"?t:te(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Di(){return null}function kn(t,e){var n=typeof t=="function"?t:te(t),r=e==null?Di:typeof e=="function"?e:dt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function gi(){var t=this.parentNode;t&&t.removeChild(this)}function In(){return this.each(gi)}function xi(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Fi(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function zn(t){return this.select(t?Fi:xi)}function On(t){return arguments.length?this.property("__data__",t):this.node().__data__}function yi(t){return function(e){t.call(this,e,this.__data__)}}function vi(t){return t.trim().split(/^|\\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function wi(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,u=e.length,o;n<u;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function _i(t,e,n){return function(){var r=this.__on,u,o=yi(e);if(r){for(var i=0,a=r.length;i<a;++i)if((u=r[i]).type===t.type&&u.name===t.name){this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=o,u.options=n),u.value=e;return}}this.addEventListener(t.type,o,n),u={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(u):this.__on=[u]}}function Rn(t,e,n){var r=vi(t+""),u,o=r.length,i;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,s=a.length,f;l<s;++l)for(u=0,f=a[l];u<o;++u)if((i=r[u]).type===f.type&&i.name===f.name)return f.value}return}for(a=e?_i:wi,u=0;u<o;++u)this.each(a(r[u],e,n));return this}function Ln(t,e,n){var r=re(t),u=r.CustomEvent;typeof u=="function"?u=new u(e,n):(u=r.document.createEvent("Event"),n?(u.initEvent(e,n.bubbles,n.cancelable),u.detail=n.detail):u.initEvent(e,!1,!1)),t.dispatchEvent(u)}function Ei(t,e){return function(){return Ln(this,t,e)}}function Ai(t,e){return function(){return Ln(this,t,e.apply(this,arguments))}}function Hn(t,e){return this.each((typeof e=="function"?Ai:Ei)(t,e))}function*Pn(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],u=0,o=r.length,i;u<o;++u)(i=r[u])&&(yield i)}var Tt=[null];function L(t,e){this._groups=t,this._parents=e}function $n(){return new L([[document.documentElement]],Tt)}function Ci(){return this}L.prototype=$n.prototype={constructor:L,select:tn,selectAll:en,selectChild:nn,selectChildren:rn,filter:un,data:sn,enter:on,exit:ln,join:fn,merge:cn,selection:Ci,order:hn,sort:pn,call:mn,nodes:dn,node:Dn,size:gn,empty:xn,each:Fn,attr:yn,style:vn,property:wn,classed:bn,text:Bn,html:Sn,raise:Nn,lower:Mn,append:Tn,insert:kn,remove:In,clone:zn,datum:On,on:Rn,dispatch:Hn,[Symbol.iterator]:Pn};var ut=$n;function $(t){return typeof t=="string"?new L([[document.querySelector(t)]],[document.documentElement]):new L([[t]],Tt)}function Xn(t){let e;for(;e=t.sourceEvent;)t=e;return t}function K(t,e){if(t=Xn(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var u=e.getBoundingClientRect();return[t.clientX-u.left-e.clientLeft,t.clientY-u.top-e.clientTop]}}return[t.pageX,t.pageY]}function at(t){return typeof t=="string"?new L([document.querySelectorAll(t)],[document.documentElement]):new L([Bt(t)],Tt)}var qn={passive:!1},Dt={capture:!0,passive:!1};function ue(t){t.stopImmediatePropagation()}function st(t){t.preventDefault(),t.stopImmediatePropagation()}function kt(t){var e=t.document.documentElement,n=$(t).on("dragstart.drag",st,Dt);"onselectstart"in e?n.on("selectstart.drag",st,Dt):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function It(t,e){var n=t.document.documentElement,r=$(t).on("dragstart.drag",null);e&&(r.on("click.drag",st,Dt),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var zt=t=>()=>t;function Ot(t,{sourceEvent:e,subject:n,target:r,identifier:u,active:o,x:i,y:a,dx:l,dy:s,dispatch:f}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:u,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:f}})}Ot.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function bi(t){return!t.ctrlKey&&!t.button}function Bi(){return this.parentNode}function Si(t,e){return e??{x:t.x,y:t.y}}function Ni(){return navigator.maxTouchPoints||"ontouchstart"in this}function Be(){var t=bi,e=Bi,n=Si,r=Ni,u={},o=nt("start","drag","end"),i=0,a,l,s,f,D=0;function c(m){m.on("mousedown.drag",p).filter(r).on("touchstart.drag",g).on("touchmove.drag",d,qn).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(m,E){if(!(f||!t.call(this,m,E))){var b=C(this,e.call(this,m,E),m,E,"mouse");b&&($(m.view).on("mousemove.drag",w,Dt).on("mouseup.drag",F,Dt),kt(m.view),ue(m),s=!1,a=m.clientX,l=m.clientY,b("start",m))}}function w(m){if(st(m),!s){var E=m.clientX-a,b=m.clientY-l;s=E*E+b*b>D}u.mouse("drag",m)}function F(m){$(m.view).on("mousemove.drag mouseup.drag",null),It(m.view,s),st(m),u.mouse("end",m)}function g(m,E){if(t.call(this,m,E)){var b=m.changedTouches,N=e.call(this,m,E),I=b.length,R,P;for(R=0;R<I;++R)(P=C(this,N,m,E,b[R].identifier,b[R]))&&(ue(m),P("start",m,b[R]))}}function d(m){var E=m.changedTouches,b=E.length,N,I;for(N=0;N<b;++N)(I=u[E[N].identifier])&&(st(m),I("drag",m,E[N]))}function v(m){var E=m.changedTouches,b=E.length,N,I;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),N=0;N<b;++N)(I=u[E[N].identifier])&&(ue(m),I("end",m,E[N]))}function C(m,E,b,N,I,R){var P=o.copy(),Y=K(R||b,E),pt,mt,h;if((h=n.call(m,new Ot("beforestart",{sourceEvent:b,target:c,identifier:I,active:i,x:Y[0],y:Y[1],dx:0,dy:0,dispatch:P}),N))!=null)return pt=h.x-Y[0]||0,mt=h.y-Y[1]||0,function _(y,A,S){var M=Y,x;switch(y){case"start":u[I]=_,x=i++;break;case"end":delete u[I],--i;case"drag":Y=K(S||A,E),x=i;break}P.call(y,m,new Ot(y,{sourceEvent:A,subject:h,target:c,identifier:I,active:x,x:Y[0]+pt,y:Y[1]+mt,dx:Y[0]-M[0],dy:Y[1]-M[1],dispatch:P}),N)}}return c.filter=function(m){return arguments.length?(t=typeof m=="function"?m:zt(!!m),c):t},c.container=function(m){return arguments.length?(e=typeof m=="function"?m:zt(m),c):e},c.subject=function(m){return arguments.length?(n=typeof m=="function"?m:zt(m),c):n},c.touchable=function(m){return arguments.length?(r=typeof m=="function"?m:zt(!!m),c):r},c.on=function(){var m=o.on.apply(o,arguments);return m===o?c:m},c.clickDistance=function(m){return arguments.length?(D=(m=+m)*m,c):Math.sqrt(D)},c}function ie(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Se(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ht(){}var Rt=.7,se=1/Rt,vt="\\\\s*([+-]?\\\\d+)\\\\s*",Lt="\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*",tt="\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*",Mi=/^#([0-9a-f]{3,8})$/,Ti=new RegExp(`^rgb\\\\(${vt},${vt},${vt}\\\\)$`),ki=new RegExp(`^rgb\\\\(${tt},${tt},${tt}\\\\)$`),Ii=new RegExp(`^rgba\\\\(${vt},${vt},${vt},${Lt}\\\\)$`),zi=new RegExp(`^rgba\\\\(${tt},${tt},${tt},${Lt}\\\\)$`),Oi=new RegExp(`^hsl\\\\(${Lt},${tt},${tt}\\\\)$`),Ri=new RegExp(`^hsla\\\\(${Lt},${tt},${tt},${Lt}\\\\)$`),Vn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ie(Ht,lt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Yn,formatHex:Yn,formatHex8:Li,formatHsl:Hi,formatRgb:Un,toString:Un});function Yn(){return this.rgb().formatHex()}function Li(){return this.rgb().formatHex8()}function Hi(){return Jn(this).formatHsl()}function Un(){return this.rgb().formatRgb()}function lt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Mi.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Wn(e):n===3?new G(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?oe(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?oe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ti.exec(t))?new G(e[1],e[2],e[3],1):(e=ki.exec(t))?new G(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Ii.exec(t))?oe(e[1],e[2],e[3],e[4]):(e=zi.exec(t))?oe(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Oi.exec(t))?Qn(e[1],e[2]/100,e[3]/100,1):(e=Ri.exec(t))?Qn(e[1],e[2]/100,e[3]/100,e[4]):Vn.hasOwnProperty(t)?Wn(Vn[t]):t==="transparent"?new G(NaN,NaN,NaN,0):null}function Wn(t){return new G(t>>16&255,t>>8&255,t&255,1)}function oe(t,e,n,r){return r<=0&&(t=e=n=NaN),new G(t,e,n,r)}function Pi(t){return t instanceof Ht||(t=lt(t)),t?(t=t.rgb(),new G(t.r,t.g,t.b,t.opacity)):new G}function wt(t,e,n,r){return arguments.length===1?Pi(t):new G(t,e,n,r??1)}function G(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}ie(G,wt,Se(Ht,{brighter(t){return t=t==null?se:Math.pow(se,t),new G(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Rt:Math.pow(Rt,t),new G(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new G(xt(this.r),xt(this.g),xt(this.b),le(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gn,formatHex:Gn,formatHex8:$i,formatRgb:Kn,toString:Kn}));function Gn(){return`#${gt(this.r)}${gt(this.g)}${gt(this.b)}`}function $i(){return`#${gt(this.r)}${gt(this.g)}${gt(this.b)}${gt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Kn(){let t=le(this.opacity);return`${t===1?"rgb(":"rgba("}${xt(this.r)}, ${xt(this.g)}, ${xt(this.b)}${t===1?")":`, ${t})`}`}function le(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function xt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function gt(t){return t=xt(t),(t<16?"0":"")+t.toString(16)}function Qn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new J(t,e,n,r)}function Jn(t){if(t instanceof J)return new J(t.h,t.s,t.l,t.opacity);if(t instanceof Ht||(t=lt(t)),!t)return new J;if(t instanceof J)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,u=Math.min(e,n,r),o=Math.max(e,n,r),i=NaN,a=o-u,l=(o+u)/2;return a?(e===o?i=(n-r)/a+(n<r)*6:n===o?i=(r-e)/a+2:i=(e-n)/a+4,a/=l<.5?o+u:2-o-u,i*=60):a=l>0&&l<1?0:i,new J(i,a,l,t.opacity)}function jn(t,e,n,r){return arguments.length===1?Jn(t):new J(t,e,n,r??1)}function J(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}ie(J,jn,Se(Ht,{brighter(t){return t=t==null?se:Math.pow(se,t),new J(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Rt:Math.pow(Rt,t),new J(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,u=2*n-r;return new G(Ne(t>=240?t-240:t+120,u,r),Ne(t,u,r),Ne(t<120?t+240:t-120,u,r),this.opacity)},clamp(){return new J(Zn(this.h),ae(this.s),ae(this.l),le(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=le(this.opacity);return`${t===1?"hsl(":"hsla("}${Zn(this.h)}, ${ae(this.s)*100}%, ${ae(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Zn(t){return t=(t||0)%360,t<0?t+360:t}function ae(t){return Math.max(0,Math.min(1,t||0))}function Ne(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function Me(t,e,n,r,u){var o=t*t,i=o*t;return((1-3*t+3*o-i)*e+(4-6*o+3*i)*n+(1+3*t+3*o-3*i)*r+i*u)/6}function tr(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),u=t[r],o=t[r+1],i=r>0?t[r-1]:2*u-o,a=r<e-1?t[r+2]:2*o-u;return Me((n-r/e)*e,i,u,o,a)}}function er(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),u=t[(r+e-1)%e],o=t[r%e],i=t[(r+1)%e],a=t[(r+2)%e];return Me((n-r/e)*e,u,o,i,a)}}var Te=t=>()=>t;function Xi(t,e){return function(n){return t+n*e}}function qi(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function nr(t){return(t=+t)==1?fe:function(e,n){return n-e?qi(e,n,t):Te(isNaN(e)?n:e)}}function fe(t,e){var n=e-t;return n?Xi(t,n):Te(isNaN(t)?e:t)}var ce=function t(e){var n=nr(e);function r(u,o){var i=n((u=wt(u)).r,(o=wt(o)).r),a=n(u.g,o.g),l=n(u.b,o.b),s=fe(u.opacity,o.opacity);return function(f){return u.r=i(f),u.g=a(f),u.b=l(f),u.opacity=s(f),u+""}}return r.gamma=t,r}(1);function rr(t){return function(e){var n=e.length,r=new Array(n),u=new Array(n),o=new Array(n),i,a;for(i=0;i<n;++i)a=wt(e[i]),r[i]=a.r||0,u[i]=a.g||0,o[i]=a.b||0;return r=t(r),u=t(u),o=t(o),a.opacity=1,function(l){return a.r=r(l),a.g=u(l),a.b=o(l),a+""}}}var Vi=rr(tr),Yi=rr(er);function Q(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Ie=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,ke=new RegExp(Ie.source,"g");function Ui(t){return function(){return t}}function Wi(t){return function(e){return t(e)+""}}function ze(t,e){var n=Ie.lastIndex=ke.lastIndex=0,r,u,o,i=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Ie.exec(t))&&(u=ke.exec(e));)(o=u.index)>n&&(o=e.slice(n,o),a[i]?a[i]+=o:a[++i]=o),(r=r[0])===(u=u[0])?a[i]?a[i]+=u:a[++i]=u:(a[++i]=null,l.push({i,x:Q(r,u)})),n=ke.lastIndex;return n<e.length&&(o=e.slice(n),a[i]?a[i]+=o:a[++i]=o),a.length<2?l[0]?Wi(l[0].x):Ui(e):(e=l.length,function(s){for(var f=0,D;f<e;++f)a[(D=l[f]).i]=D.x(s);return a.join("")})}var ur=180/Math.PI,he={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Oe(t,e,n,r,u,o){var i,a,l;return(i=Math.sqrt(t*t+e*e))&&(t/=i,e/=i),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,i=-i),{translateX:u,translateY:o,rotate:Math.atan2(e,t)*ur,skewX:Math.atan(l)*ur,scaleX:i,scaleY:a}}var pe;function ir(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?he:Oe(e.a,e.b,e.c,e.d,e.e,e.f)}function or(t){return t==null?he:(pe||(pe=document.createElementNS("http://www.w3.org/2000/svg","g")),pe.setAttribute("transform",t),(t=pe.transform.baseVal.consolidate())?(t=t.matrix,Oe(t.a,t.b,t.c,t.d,t.e,t.f)):he)}function ar(t,e,n,r){function u(s){return s.length?s.pop()+" ":""}function o(s,f,D,c,p,w){if(s!==D||f!==c){var F=p.push("translate(",null,e,null,n);w.push({i:F-4,x:Q(s,D)},{i:F-2,x:Q(f,c)})}else(D||c)&&p.push("translate("+D+e+c+n)}function i(s,f,D,c){s!==f?(s-f>180?f+=360:f-s>180&&(s+=360),c.push({i:D.push(u(D)+"rotate(",null,r)-2,x:Q(s,f)})):f&&D.push(u(D)+"rotate("+f+r)}function a(s,f,D,c){s!==f?c.push({i:D.push(u(D)+"skewX(",null,r)-2,x:Q(s,f)}):f&&D.push(u(D)+"skewX("+f+r)}function l(s,f,D,c,p,w){if(s!==D||f!==c){var F=p.push(u(p)+"scale(",null,",",null,")");w.push({i:F-4,x:Q(s,D)},{i:F-2,x:Q(f,c)})}else(D!==1||c!==1)&&p.push(u(p)+"scale("+D+","+c+")")}return function(s,f){var D=[],c=[];return s=t(s),f=t(f),o(s.translateX,s.translateY,f.translateX,f.translateY,D,c),i(s.rotate,f.rotate,D,c),a(s.skewX,f.skewX,D,c),l(s.scaleX,s.scaleY,f.scaleX,f.scaleY,D,c),s=f=null,function(p){for(var w=-1,F=c.length,g;++w<F;)D[(g=c[w]).i]=g.x(p);return D.join("")}}}var Re=ar(ir,"px, ","px)","deg)"),Le=ar(or,", ",")",")");var Gi=1e-12;function sr(t){return((t=Math.exp(t))+1/t)/2}function Ki(t){return((t=Math.exp(t))-1/t)/2}function Qi(t){return((t=Math.exp(2*t))-1)/(t+1)}var He=function t(e,n,r){function u(o,i){var a=o[0],l=o[1],s=o[2],f=i[0],D=i[1],c=i[2],p=f-a,w=D-l,F=p*p+w*w,g,d;if(F<Gi)d=Math.log(c/s)/e,g=function(N){return[a+N*p,l+N*w,s*Math.exp(e*N*d)]};else{var v=Math.sqrt(F),C=(c*c-s*s+r*F)/(2*s*n*v),m=(c*c-s*s-r*F)/(2*c*n*v),E=Math.log(Math.sqrt(C*C+1)-C),b=Math.log(Math.sqrt(m*m+1)-m);d=(b-E)/e,g=function(N){var I=N*d,R=sr(E),P=s/(n*v)*(R*Qi(e*I+E)-Ki(E));return[a+P*p,l+P*w,s*R/sr(e*I+E)]}}return g.duration=d*1e3*e/Math.SQRT2,g}return u.rho=function(o){var i=Math.max(.001,+o),a=i*i,l=a*a;return t(i,a,l)},u}(Math.SQRT2,2,4);var _t=0,$t=0,Pt=0,fr=1e3,me,Xt,de=0,Ft=0,De=0,qt=typeof performance=="object"&&performance.now?performance:Date,cr=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Yt(){return Ft||(cr(Zi),Ft=qt.now()+De)}function Zi(){Ft=0}function Vt(){this._call=this._time=this._next=null}Vt.prototype=Et.prototype={constructor:Vt,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Yt():+n)+(e==null?0:+e),!this._next&&Xt!==this&&(Xt?Xt._next=this:me=this,Xt=this),this._call=t,this._time=n,Pe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pe())}};function Et(t,e,n){var r=new Vt;return r.restart(t,e,n),r}function hr(){Yt(),++_t;for(var t=me,e;t;)(e=Ft-t._time)>=0&&t._call.call(void 0,e),t=t._next;--_t}function lr(){Ft=(de=qt.now())+De,_t=$t=0;try{hr()}finally{_t=0,ji(),Ft=0}}function Ji(){var t=qt.now(),e=t-de;e>fr&&(De-=e,de=t)}function ji(){for(var t,e=me,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:me=n);Xt=t,Pe(r)}function Pe(t){if(!_t){$t&&($t=clearTimeout($t));var e=t-Ft;e>24?(t<1/0&&($t=setTimeout(lr,t-qt.now()-De)),Pt&&(Pt=clearInterval(Pt))):(Pt||(de=qt.now(),Pt=setInterval(Ji,fr)),_t=1,cr(lr))}}function ge(t,e,n){var r=new Vt;return e=e==null?0:+e,r.restart(u=>{r.stop(),t(u+e)},e,n),r}var to=nt("start","end","cancel","interrupt"),eo=[],dr=0,pr=1,Fe=2,xe=3,mr=4,ye=5,Ut=6;function ft(t,e,n,r,u,o){var i=t.__transition;if(!i)t.__transition={};else if(n in i)return;no(t,n,{name:e,index:r,group:u,on:to,tween:eo,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:dr})}function Wt(t,e){var n=X(t,e);if(n.state>dr)throw new Error("too late; already scheduled");return n}function V(t,e){var n=X(t,e);if(n.state>xe)throw new Error("too late; already running");return n}function X(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function no(t,e,n){var r=t.__transition,u;r[e]=n,n.timer=Et(o,0,n.time);function o(s){n.state=pr,n.timer.restart(i,n.delay,n.time),n.delay<=s&&i(s-n.delay)}function i(s){var f,D,c,p;if(n.state!==pr)return l();for(f in r)if(p=r[f],p.name===n.name){if(p.state===xe)return ge(i);p.state===mr?(p.state=Ut,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[f]):+f<e&&(p.state=Ut,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[f])}if(ge(function(){n.state===xe&&(n.state=mr,n.timer.restart(a,n.delay,n.time),a(s))}),n.state=Fe,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Fe){for(n.state=xe,u=new Array(c=n.tween.length),f=0,D=-1;f<c;++f)(p=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(u[++D]=p);u.length=D+1}}function a(s){for(var f=s<n.duration?n.ease.call(null,s/n.duration):(n.timer.restart(l),n.state=ye,1),D=-1,c=u.length;++D<c;)u[D].call(t,f);n.state===ye&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=Ut,n.timer.stop(),delete r[e];for(var s in r)return;delete t.__transition}}function ct(t,e){var n=t.__transition,r,u,o=!0,i;if(n){e=e==null?null:e+"";for(i in n){if((r=n[i]).name!==e){o=!1;continue}u=r.state>Fe&&r.state<ye,r.state=Ut,r.timer.stop(),r.on.call(u?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[i]}o&&delete t.__transition}}function Dr(t){return this.each(function(){ct(this,t)})}function ro(t,e){var n,r;return function(){var u=V(this,t),o=u.tween;if(o!==n){r=n=o;for(var i=0,a=r.length;i<a;++i)if(r[i].name===e){r=r.slice(),r.splice(i,1);break}}u.tween=r}}function uo(t,e,n){var r,u;if(typeof n!="function")throw new Error;return function(){var o=V(this,t),i=o.tween;if(i!==r){u=(r=i).slice();for(var a={name:e,value:n},l=0,s=u.length;l<s;++l)if(u[l].name===e){u[l]=a;break}l===s&&u.push(a)}o.tween=u}}function gr(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=X(this.node(),n).tween,u=0,o=r.length,i;u<o;++u)if((i=r[u]).name===t)return i.value;return null}return this.each((e==null?ro:uo)(n,t,e))}function At(t,e,n){var r=t._id;return t.each(function(){var u=V(this,r);(u.value||(u.value={}))[e]=n.apply(this,arguments)}),function(u){return X(u,r).value[e]}}function ve(t,e){var n;return(typeof e=="number"?Q:e instanceof lt?ce:(n=lt(e))?(e=n,ce):ze)(t,e)}function io(t){return function(){this.removeAttribute(t)}}function oo(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ao(t,e,n){var r,u=n+"",o;return function(){var i=this.getAttribute(t);return i===u?null:i===r?o:o=e(r=i,n)}}function so(t,e,n){var r,u=n+"",o;return function(){var i=this.getAttributeNS(t.space,t.local);return i===u?null:i===r?o:o=e(r=i,n)}}function lo(t,e,n){var r,u,o;return function(){var i,a=n(this),l;return a==null?void this.removeAttribute(t):(i=this.getAttribute(t),l=a+"",i===l?null:i===r&&l===u?o:(u=l,o=e(r=i,a)))}}function fo(t,e,n){var r,u,o;return function(){var i,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(i=this.getAttributeNS(t.space,t.local),l=a+"",i===l?null:i===r&&l===u?o:(u=l,o=e(r=i,a)))}}function xr(t,e){var n=rt(t),r=n==="transform"?Le:ve;return this.attrTween(t,typeof e=="function"?(n.local?fo:lo)(n,r,At(this,"attr."+t,e)):e==null?(n.local?oo:io)(n):(n.local?so:ao)(n,r,e))}function co(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function ho(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function po(t,e){var n,r;function u(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&ho(t,o)),n}return u._value=e,u}function mo(t,e){var n,r;function u(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&co(t,o)),n}return u._value=e,u}function Fr(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=rt(t);return this.tween(n,(r.local?po:mo)(r,e))}function Do(t,e){return function(){Wt(this,t).delay=+e.apply(this,arguments)}}function go(t,e){return e=+e,function(){Wt(this,t).delay=e}}function yr(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Do:go)(e,t)):X(this.node(),e).delay}function xo(t,e){return function(){V(this,t).duration=+e.apply(this,arguments)}}function Fo(t,e){return e=+e,function(){V(this,t).duration=e}}function vr(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?xo:Fo)(e,t)):X(this.node(),e).duration}function yo(t,e){if(typeof e!="function")throw new Error;return function(){V(this,t).ease=e}}function wr(t){var e=this._id;return arguments.length?this.each(yo(e,t)):X(this.node(),e).ease}function vo(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;V(this,t).ease=n}}function _r(t){if(typeof t!="function")throw new Error;return this.each(vo(this._id,t))}function Er(t){typeof t!="function"&&(t=Nt(t));for(var e=this._groups,n=e.length,r=new Array(n),u=0;u<n;++u)for(var o=e[u],i=o.length,a=r[u]=[],l,s=0;s<i;++s)(l=o[s])&&t.call(l,l.__data__,s,o)&&a.push(l);return new U(r,this._parents,this._name,this._id)}function Ar(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,u=n.length,o=Math.min(r,u),i=new Array(r),a=0;a<o;++a)for(var l=e[a],s=n[a],f=l.length,D=i[a]=new Array(f),c,p=0;p<f;++p)(c=l[p]||s[p])&&(D[p]=c);for(;a<r;++a)i[a]=e[a];return new U(i,this._parents,this._name,this._id)}function wo(t){return(t+"").trim().split(/^|\\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function _o(t,e,n){var r,u,o=wo(e)?Wt:V;return function(){var i=o(this,t),a=i.on;a!==r&&(u=(r=a).copy()).on(e,n),i.on=u}}function Cr(t,e){var n=this._id;return arguments.length<2?X(this.node(),n).on.on(t):this.each(_o(n,t,e))}function Eo(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function br(){return this.on("end.remove",Eo(this._id))}function Br(t){var e=this._name,n=this._id;typeof t!="function"&&(t=dt(t));for(var r=this._groups,u=r.length,o=new Array(u),i=0;i<u;++i)for(var a=r[i],l=a.length,s=o[i]=new Array(l),f,D,c=0;c<l;++c)(f=a[c])&&(D=t.call(f,f.__data__,c,a))&&("__data__"in f&&(D.__data__=f.__data__),s[c]=D,ft(s[c],e,n,c,s,X(f,n)));return new U(o,this._parents,e,n)}function Sr(t){var e=this._name,n=this._id;typeof t!="function"&&(t=St(t));for(var r=this._groups,u=r.length,o=[],i=[],a=0;a<u;++a)for(var l=r[a],s=l.length,f,D=0;D<s;++D)if(f=l[D]){for(var c=t.call(f,f.__data__,D,l),p,w=X(f,n),F=0,g=c.length;F<g;++F)(p=c[F])&&ft(p,e,n,F,c,w);o.push(c),i.push(f)}return new U(o,i,e,n)}var Ao=ut.prototype.constructor;function Nr(){return new Ao(this._groups,this._parents)}function Co(t,e){var n,r,u;return function(){var o=ot(this,t),i=(this.style.removeProperty(t),ot(this,t));return o===i?null:o===n&&i===r?u:u=e(n=o,r=i)}}function Mr(t){return function(){this.style.removeProperty(t)}}function bo(t,e,n){var r,u=n+"",o;return function(){var i=ot(this,t);return i===u?null:i===r?o:o=e(r=i,n)}}function Bo(t,e,n){var r,u,o;return function(){var i=ot(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),ot(this,t))),i===l?null:i===r&&l===u?o:(u=l,o=e(r=i,a))}}function So(t,e){var n,r,u,o="style."+e,i="end."+o,a;return function(){var l=V(this,t),s=l.on,f=l.value[o]==null?a||(a=Mr(e)):void 0;(s!==n||u!==f)&&(r=(n=s).copy()).on(i,u=f),l.on=r}}function Tr(t,e,n){var r=(t+="")=="transform"?Re:ve;return e==null?this.styleTween(t,Co(t,r)).on("end.style."+t,Mr(t)):typeof e=="function"?this.styleTween(t,Bo(t,r,At(this,"style."+t,e))).each(So(this._id,t)):this.styleTween(t,bo(t,r,e),n).on("end.style."+t,null)}function No(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Mo(t,e,n){var r,u;function o(){var i=e.apply(this,arguments);return i!==u&&(r=(u=i)&&No(t,i,n)),r}return o._value=e,o}function kr(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Mo(t,e,n??""))}function To(t){return function(){this.textContent=t}}function ko(t){return function(){var e=t(this);this.textContent=e??""}}function Ir(t){return this.tween("text",typeof t=="function"?ko(At(this,"text",t)):To(t==null?"":t+""))}function Io(t){return function(e){this.textContent=t.call(this,e)}}function zo(t){var e,n;function r(){var u=t.apply(this,arguments);return u!==n&&(e=(n=u)&&Io(u)),e}return r._value=t,r}function zr(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,zo(t))}function Or(){for(var t=this._name,e=this._id,n=we(),r=this._groups,u=r.length,o=0;o<u;++o)for(var i=r[o],a=i.length,l,s=0;s<a;++s)if(l=i[s]){var f=X(l,e);ft(l,t,n,s,i,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new U(r,this._parents,t,n)}function Rr(){var t,e,n=this,r=n._id,u=n.size();return new Promise(function(o,i){var a={value:i},l={value:function(){--u===0&&o()}};n.each(function(){var s=V(this,r),f=s.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),s.on=e}),u===0&&o()})}var Oo=0;function U(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Lr(t){return ut().transition(t)}function we(){return++Oo}var it=ut.prototype;U.prototype=Lr.prototype={constructor:U,select:Br,selectAll:Sr,selectChild:it.selectChild,selectChildren:it.selectChildren,filter:Er,merge:Ar,selection:Nr,transition:Or,call:it.call,nodes:it.nodes,node:it.node,size:it.size,empty:it.empty,each:it.each,on:Cr,attr:xr,attrTween:Fr,style:Tr,styleTween:kr,text:Ir,textTween:zr,remove:br,tween:gr,delay:yr,duration:vr,ease:wr,easeVarying:_r,end:Rr,[Symbol.iterator]:it[Symbol.iterator]};function _e(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Ro={time:null,delay:0,duration:250,ease:_e};function Lo(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Hr(t){var e,n;t instanceof U?(e=t._id,t=t._name):(e=we(),(n=Ro).time=Yt(),t=t==null?null:t+"");for(var r=this._groups,u=r.length,o=0;o<u;++o)for(var i=r[o],a=i.length,l,s=0;s<a;++s)(l=i[s])&&ft(l,t,e,s,i,n||Lo(l,e));return new U(r,this._parents,t,e)}ut.prototype.interrupt=Dr;ut.prototype.transition=Hr;var{abs:Ah,max:Ch,min:bh}=Math;function Pr(t){return[+t[0],+t[1]]}function Ho(t){return[Pr(t[0]),Pr(t[1])]}var Bh={name:"x",handles:["w","e"].map($e),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Sh={name:"y",handles:["n","s"].map($e),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Nh={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map($e),input:function(t){return t==null?null:Ho(t)},output:function(t){return t}};function $e(t){return{type:t}}function Xe(t,e){var n,r=1;t==null&&(t=0),e==null&&(e=0);function u(){var o,i=n.length,a,l=0,s=0;for(o=0;o<i;++o)a=n[o],l+=a.x,s+=a.y;for(l=(l/i-t)*r,s=(s/i-e)*r,o=0;o<i;++o)a=n[o],a.x-=l,a.y-=s}return u.initialize=function(o){n=o},u.x=function(o){return arguments.length?(t=+o,u):t},u.y=function(o){return arguments.length?(e=+o,u):e},u.strength=function(o){return arguments.length?(r=+o,u):r},u}function $r(t){let e=+this._x.call(null,t),n=+this._y.call(null,t);return Xr(this.cover(e,n),e,n,t)}function Xr(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var u,o=t._root,i={data:r},a=t._x0,l=t._y0,s=t._x1,f=t._y1,D,c,p,w,F,g,d,v;if(!o)return t._root=i,t;for(;o.length;)if((F=e>=(D=(a+s)/2))?a=D:s=D,(g=n>=(c=(l+f)/2))?l=c:f=c,u=o,!(o=o[d=g<<1|F]))return u[d]=i,t;if(p=+t._x.call(null,o.data),w=+t._y.call(null,o.data),e===p&&n===w)return i.next=o,u?u[d]=i:t._root=i,t;do u=u?u[d]=new Array(4):t._root=new Array(4),(F=e>=(D=(a+s)/2))?a=D:s=D,(g=n>=(c=(l+f)/2))?l=c:f=c;while((d=g<<1|F)===(v=(w>=c)<<1|p>=D));return u[v]=o,u[d]=i,t}function qr(t){var e,n,r=t.length,u,o,i=new Array(r),a=new Array(r),l=1/0,s=1/0,f=-1/0,D=-1/0;for(n=0;n<r;++n)isNaN(u=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(i[n]=u,a[n]=o,u<l&&(l=u),u>f&&(f=u),o<s&&(s=o),o>D&&(D=o));if(l>f||s>D)return this;for(this.cover(l,s).cover(f,D),n=0;n<r;++n)Xr(this,i[n],a[n],t[n]);return this}function Vr(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,u=this._x1,o=this._y1;if(isNaN(n))u=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var i=u-n||1,a=this._root,l,s;n>t||t>=u||r>e||e>=o;)switch(s=(e<r)<<1|t<n,l=new Array(4),l[s]=a,a=l,i*=2,s){case 0:u=n+i,o=r+i;break;case 1:n=u-i,o=r+i;break;case 2:u=n+i,r=o-i;break;case 3:n=u-i,r=o-i;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=u,this._y1=o,this}function Yr(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t}function Ur(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function q(t,e,n,r,u){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=u}function Wr(t,e,n){var r,u=this._x0,o=this._y0,i,a,l,s,f=this._x1,D=this._y1,c=[],p=this._root,w,F;for(p&&c.push(new q(p,u,o,f,D)),n==null?n=1/0:(u=t-n,o=e-n,f=t+n,D=e+n,n*=n);w=c.pop();)if(!(!(p=w.node)||(i=w.x0)>f||(a=w.y0)>D||(l=w.x1)<u||(s=w.y1)<o))if(p.length){var g=(i+l)/2,d=(a+s)/2;c.push(new q(p[3],g,d,l,s),new q(p[2],i,d,g,s),new q(p[1],g,a,l,d),new q(p[0],i,a,g,d)),(F=(e>=d)<<1|t>=g)&&(w=c[c.length-1],c[c.length-1]=c[c.length-1-F],c[c.length-1-F]=w)}else{var v=t-+this._x.call(null,p.data),C=e-+this._y.call(null,p.data),m=v*v+C*C;if(m<n){var E=Math.sqrt(n=m);u=t-E,o=e-E,f=t+E,D=e+E,r=p.data}}return r}function Gr(t){if(isNaN(f=+this._x.call(null,t))||isNaN(D=+this._y.call(null,t)))return this;var e,n=this._root,r,u,o,i=this._x0,a=this._y0,l=this._x1,s=this._y1,f,D,c,p,w,F,g,d;if(!n)return this;if(n.length)for(;;){if((w=f>=(c=(i+l)/2))?i=c:l=c,(F=D>=(p=(a+s)/2))?a=p:s=p,e=n,!(n=n[g=F<<1|w]))return this;if(!n.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(r=e,d=g)}for(;n.data!==t;)if(u=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,u?(o?u.next=o:delete u.next,this):e?(o?e[g]=o:delete e[g],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[d]=n:this._root=n),this):(this._root=o,this)}function Kr(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}function Qr(){return this._root}function Zr(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t}function Jr(t){var e=[],n,r=this._root,u,o,i,a,l;for(r&&e.push(new q(r,this._x0,this._y0,this._x1,this._y1));n=e.pop();)if(!t(r=n.node,o=n.x0,i=n.y0,a=n.x1,l=n.y1)&&r.length){var s=(o+a)/2,f=(i+l)/2;(u=r[3])&&e.push(new q(u,s,f,a,l)),(u=r[2])&&e.push(new q(u,o,f,s,l)),(u=r[1])&&e.push(new q(u,s,i,a,f)),(u=r[0])&&e.push(new q(u,o,i,s,f))}return this}function jr(t){var e=[],n=[],r;for(this._root&&e.push(new q(this._root,this._x0,this._y0,this._x1,this._y1));r=e.pop();){var u=r.node;if(u.length){var o,i=r.x0,a=r.y0,l=r.x1,s=r.y1,f=(i+l)/2,D=(a+s)/2;(o=u[0])&&e.push(new q(o,i,a,f,D)),(o=u[1])&&e.push(new q(o,f,a,l,D)),(o=u[2])&&e.push(new q(o,i,D,f,s)),(o=u[3])&&e.push(new q(o,f,D,l,s))}n.push(r)}for(;r=n.pop();)t(r.node,r.x0,r.y0,r.x1,r.y1);return this}function tu(t){return t[0]}function eu(t){return arguments.length?(this._x=t,this):this._x}function nu(t){return t[1]}function ru(t){return arguments.length?(this._y=t,this):this._y}function Gt(t,e,n){var r=new qe(e??tu,n??nu,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function qe(t,e,n,r,u,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=u,this._y1=o,this._root=void 0}function uu(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var W=Gt.prototype=qe.prototype;W.copy=function(){var t=new qe(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,n,r;if(!e)return t;if(!e.length)return t._root=uu(e),t;for(n=[{source:e,target:t._root=new Array(4)}];e=n.pop();)for(var u=0;u<4;++u)(r=e.source[u])&&(r.length?n.push({source:r,target:e.target[u]=new Array(4)}):e.target[u]=uu(r));return t};W.add=$r;W.addAll=qr;W.cover=Vr;W.data=Yr;W.extent=Ur;W.find=Wr;W.remove=Gr;W.removeAll=Kr;W.root=Qr;W.size=Zr;W.visit=Jr;W.visitAfter=jr;W.x=eu;W.y=ru;function yt(t){return function(){return t}}function ht(t){return(t()-.5)*1e-6}function Po(t){return t.index}function iu(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function Ve(t){var e=Po,n=D,r,u=yt(30),o,i,a,l,s,f=1;t==null&&(t=[]);function D(g){return 1/Math.min(a[g.source.index],a[g.target.index])}function c(g){for(var d=0,v=t.length;d<f;++d)for(var C=0,m,E,b,N,I,R,P;C<v;++C)m=t[C],E=m.source,b=m.target,N=b.x+b.vx-E.x-E.vx||ht(s),I=b.y+b.vy-E.y-E.vy||ht(s),R=Math.sqrt(N*N+I*I),R=(R-o[C])/R*g*r[C],N*=R,I*=R,b.vx-=N*(P=l[C]),b.vy-=I*P,E.vx+=N*(P=1-P),E.vy+=I*P}function p(){if(i){var g,d=i.length,v=t.length,C=new Map(i.map((E,b)=>[e(E,b,i),E])),m;for(g=0,a=new Array(d);g<v;++g)m=t[g],m.index=g,typeof m.source!="object"&&(m.source=iu(C,m.source)),typeof m.target!="object"&&(m.target=iu(C,m.target)),a[m.source.index]=(a[m.source.index]||0)+1,a[m.target.index]=(a[m.target.index]||0)+1;for(g=0,l=new Array(v);g<v;++g)m=t[g],l[g]=a[m.source.index]/(a[m.source.index]+a[m.target.index]);r=new Array(v),w(),o=new Array(v),F()}}function w(){if(i)for(var g=0,d=t.length;g<d;++g)r[g]=+n(t[g],g,t)}function F(){if(i)for(var g=0,d=t.length;g<d;++g)o[g]=+u(t[g],g,t)}return c.initialize=function(g,d){i=g,s=d,p()},c.links=function(g){return arguments.length?(t=g,p(),c):t},c.id=function(g){return arguments.length?(e=g,c):e},c.iterations=function(g){return arguments.length?(f=+g,c):f},c.strength=function(g){return arguments.length?(n=typeof g=="function"?g:yt(+g),w(),c):n},c.distance=function(g){return arguments.length?(u=typeof g=="function"?g:yt(+g),F(),c):u},c}function ou(){let t=1;return()=>(t=(1664525*t+1013904223)%4294967296)/4294967296}function au(t){return t.x}function su(t){return t.y}var $o=10,Xo=Math.PI*(3-Math.sqrt(5));function Ye(t){var e,n=1,r=.001,u=1-Math.pow(r,1/300),o=0,i=.6,a=new Map,l=Et(D),s=nt("tick","end"),f=ou();t==null&&(t=[]);function D(){c(),s.call("tick",e),n<r&&(l.stop(),s.call("end",e))}function c(F){var g,d=t.length,v;F===void 0&&(F=1);for(var C=0;C<F;++C)for(n+=(o-n)*u,a.forEach(function(m){m(n)}),g=0;g<d;++g)v=t[g],v.fx==null?v.x+=v.vx*=i:(v.x=v.fx,v.vx=0),v.fy==null?v.y+=v.vy*=i:(v.y=v.fy,v.vy=0);return e}function p(){for(var F=0,g=t.length,d;F<g;++F){if(d=t[F],d.index=F,d.fx!=null&&(d.x=d.fx),d.fy!=null&&(d.y=d.fy),isNaN(d.x)||isNaN(d.y)){var v=$o*Math.sqrt(.5+F),C=F*Xo;d.x=v*Math.cos(C),d.y=v*Math.sin(C)}(isNaN(d.vx)||isNaN(d.vy))&&(d.vx=d.vy=0)}}function w(F){return F.initialize&&F.initialize(t,f),F}return p(),e={tick:c,restart:function(){return l.restart(D),e},stop:function(){return l.stop(),e},nodes:function(F){return arguments.length?(t=F,p(),a.forEach(w),e):t},alpha:function(F){return arguments.length?(n=+F,e):n},alphaMin:function(F){return arguments.length?(r=+F,e):r},alphaDecay:function(F){return arguments.length?(u=+F,e):+u},alphaTarget:function(F){return arguments.length?(o=+F,e):o},velocityDecay:function(F){return arguments.length?(i=1-F,e):1-i},randomSource:function(F){return arguments.length?(f=F,a.forEach(w),e):f},force:function(F,g){return arguments.length>1?(g==null?a.delete(F):a.set(F,w(g)),e):a.get(F)},find:function(F,g,d){var v=0,C=t.length,m,E,b,N,I;for(d==null?d=1/0:d*=d,v=0;v<C;++v)N=t[v],m=F-N.x,E=g-N.y,b=m*m+E*E,b<d&&(I=N,d=b);return I},on:function(F,g){return arguments.length>1?(s.on(F,g),e):s.on(F)}}}function Ue(){var t,e,n,r,u=yt(-30),o,i=1,a=1/0,l=.81;function s(p){var w,F=t.length,g=Gt(t,au,su).visitAfter(D);for(r=p,w=0;w<F;++w)e=t[w],g.visit(c)}function f(){if(t){var p,w=t.length,F;for(o=new Array(w),p=0;p<w;++p)F=t[p],o[F.index]=+u(F,p,t)}}function D(p){var w=0,F,g,d=0,v,C,m;if(p.length){for(v=C=m=0;m<4;++m)(F=p[m])&&(g=Math.abs(F.value))&&(w+=F.value,d+=g,v+=g*F.x,C+=g*F.y);p.x=v/d,p.y=C/d}else{F=p,F.x=F.data.x,F.y=F.data.y;do w+=o[F.data.index];while(F=F.next)}p.value=w}function c(p,w,F,g){if(!p.value)return!0;var d=p.x-e.x,v=p.y-e.y,C=g-w,m=d*d+v*v;if(C*C/l<m)return m<a&&(d===0&&(d=ht(n),m+=d*d),v===0&&(v=ht(n),m+=v*v),m<i&&(m=Math.sqrt(i*m)),e.vx+=d*p.value*r/m,e.vy+=v*p.value*r/m),!0;if(p.length||m>=a)return;(p.data!==e||p.next)&&(d===0&&(d=ht(n),m+=d*d),v===0&&(v=ht(n),m+=v*v),m<i&&(m=Math.sqrt(i*m)));do p.data!==e&&(C=o[p.data.index]*r/m,e.vx+=d*C,e.vy+=v*C);while(p=p.next)}return s.initialize=function(p,w){t=p,n=w,f()},s.strength=function(p){return arguments.length?(u=typeof p=="function"?p:yt(+p),f(),s):u},s.distanceMin=function(p){return arguments.length?(i=p*p,s):Math.sqrt(i)},s.distanceMax=function(p){return arguments.length?(a=p*p,s):Math.sqrt(a)},s.theta=function(p){return arguments.length?(l=p*p,s):Math.sqrt(l)},s}var Kt=t=>()=>t;function We(t,{sourceEvent:e,target:n,transform:r,dispatch:u}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:u}})}function j(t,e,n){this.k=t,this.x=e,this.y=n}j.prototype={constructor:j,scale:function(t){return t===1?this:new j(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new j(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Qt=new j(1,0,0);Ge.prototype=j.prototype;function Ge(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Qt;return t.__zoom}function Ee(t){t.stopImmediatePropagation()}function Ct(t){t.preventDefault(),t.stopImmediatePropagation()}function qo(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Vo(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function lu(){return this.__zoom||Qt}function Yo(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Uo(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wo(t,e,n){var r=t.invertX(e[0][0])-n[0][0],u=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],i=t.invertY(e[1][1])-n[1][1];return t.translate(u>r?(r+u)/2:Math.min(0,r)||Math.max(0,u),i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i))}function Ke(){var t=qo,e=Vo,n=Wo,r=Yo,u=Uo,o=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],a=250,l=He,s=nt("start","zoom","end"),f,D,c,p=500,w=150,F=0,g=10;function d(h){h.property("__zoom",lu).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",P).filter(u).on("touchstart.zoom",Y).on("touchmove.zoom",pt).on("touchend.zoom touchcancel.zoom",mt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}d.transform=function(h,_,y,A){var S=h.selection?h.selection():h;S.property("__zoom",lu),h!==S?E(h,_,y,A):S.interrupt().each(function(){b(this,arguments).event(A).start().zoom(null,typeof _=="function"?_.apply(this,arguments):_).end()})},d.scaleBy=function(h,_,y,A){d.scaleTo(h,function(){var S=this.__zoom.k,M=typeof _=="function"?_.apply(this,arguments):_;return S*M},y,A)},d.scaleTo=function(h,_,y,A){d.transform(h,function(){var S=e.apply(this,arguments),M=this.__zoom,x=y==null?m(S):typeof y=="function"?y.apply(this,arguments):y,B=M.invert(x),T=typeof _=="function"?_.apply(this,arguments):_;return n(C(v(M,T),x,B),S,i)},y,A)},d.translateBy=function(h,_,y,A){d.transform(h,function(){return n(this.__zoom.translate(typeof _=="function"?_.apply(this,arguments):_,typeof y=="function"?y.apply(this,arguments):y),e.apply(this,arguments),i)},null,A)},d.translateTo=function(h,_,y,A,S){d.transform(h,function(){var M=e.apply(this,arguments),x=this.__zoom,B=A==null?m(M):typeof A=="function"?A.apply(this,arguments):A;return n(Qt.translate(B[0],B[1]).scale(x.k).translate(typeof _=="function"?-_.apply(this,arguments):-_,typeof y=="function"?-y.apply(this,arguments):-y),M,i)},A,S)};function v(h,_){return _=Math.max(o[0],Math.min(o[1],_)),_===h.k?h:new j(_,h.x,h.y)}function C(h,_,y){var A=_[0]-y[0]*h.k,S=_[1]-y[1]*h.k;return A===h.x&&S===h.y?h:new j(h.k,A,S)}function m(h){return[(+h[0][0]+ +h[1][0])/2,(+h[0][1]+ +h[1][1])/2]}function E(h,_,y,A){h.on("start.zoom",function(){b(this,arguments).event(A).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).event(A).end()}).tween("zoom",function(){var S=this,M=arguments,x=b(S,M).event(A),B=e.apply(S,M),T=y==null?m(B):typeof y=="function"?y.apply(S,M):y,z=Math.max(B[1][0]-B[0][0],B[1][1]-B[0][1]),k=S.__zoom,H=typeof _=="function"?_.apply(S,M):_,O=l(k.invert(T).concat(z/k.k),H.invert(T).concat(z/H.k));return function(Z){if(Z===1)Z=H;else{var et=O(Z),Ae=z/et[2];Z=new j(Ae,T[0]-et[0]*Ae,T[1]-et[1]*Ae)}x.zoom(null,Z)}})}function b(h,_,y){return!y&&h.__zooming||new N(h,_)}function N(h,_){this.that=h,this.args=_,this.active=0,this.sourceEvent=null,this.extent=e.apply(h,_),this.taps=0}N.prototype={event:function(h){return h&&(this.sourceEvent=h),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(h,_){return this.mouse&&h!=="mouse"&&(this.mouse[1]=_.invert(this.mouse[0])),this.touch0&&h!=="touch"&&(this.touch0[1]=_.invert(this.touch0[0])),this.touch1&&h!=="touch"&&(this.touch1[1]=_.invert(this.touch1[0])),this.that.__zoom=_,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(h){var _=$(this.that).datum();s.call(h,this.that,new We(h,{sourceEvent:this.sourceEvent,target:d,type:h,transform:this.that.__zoom,dispatch:s}),_)}};function I(h,..._){if(!t.apply(this,arguments))return;var y=b(this,_).event(h),A=this.__zoom,S=Math.max(o[0],Math.min(o[1],A.k*Math.pow(2,r.apply(this,arguments)))),M=K(h);if(y.wheel)(y.mouse[0][0]!==M[0]||y.mouse[0][1]!==M[1])&&(y.mouse[1]=A.invert(y.mouse[0]=M)),clearTimeout(y.wheel);else{if(A.k===S)return;y.mouse=[M,A.invert(M)],ct(this),y.start()}Ct(h),y.wheel=setTimeout(x,w),y.zoom("mouse",n(C(v(A,S),y.mouse[0],y.mouse[1]),y.extent,i));function x(){y.wheel=null,y.end()}}function R(h,..._){if(c||!t.apply(this,arguments))return;var y=h.currentTarget,A=b(this,_,!0).event(h),S=$(h.view).on("mousemove.zoom",T,!0).on("mouseup.zoom",z,!0),M=K(h,y),x=h.clientX,B=h.clientY;kt(h.view),Ee(h),A.mouse=[M,this.__zoom.invert(M)],ct(this),A.start();function T(k){if(Ct(k),!A.moved){var H=k.clientX-x,O=k.clientY-B;A.moved=H*H+O*O>F}A.event(k).zoom("mouse",n(C(A.that.__zoom,A.mouse[0]=K(k,y),A.mouse[1]),A.extent,i))}function z(k){S.on("mousemove.zoom mouseup.zoom",null),It(k.view,A.moved),Ct(k),A.event(k).end()}}function P(h,..._){if(t.apply(this,arguments)){var y=this.__zoom,A=K(h.changedTouches?h.changedTouches[0]:h,this),S=y.invert(A),M=y.k*(h.shiftKey?.5:2),x=n(C(v(y,M),A,S),e.apply(this,_),i);Ct(h),a>0?$(this).transition().duration(a).call(E,x,A,h):$(this).call(d.transform,x,A,h)}}function Y(h,..._){if(t.apply(this,arguments)){var y=h.touches,A=y.length,S=b(this,_,h.changedTouches.length===A).event(h),M,x,B,T;for(Ee(h),x=0;x<A;++x)B=y[x],T=K(B,this),T=[T,this.__zoom.invert(T),B.identifier],S.touch0?!S.touch1&&S.touch0[2]!==T[2]&&(S.touch1=T,S.taps=0):(S.touch0=T,M=!0,S.taps=1+!!f);f&&(f=clearTimeout(f)),M&&(S.taps<2&&(D=T[0],f=setTimeout(function(){f=null},p)),ct(this),S.start())}}function pt(h,..._){if(this.__zooming){var y=b(this,_).event(h),A=h.changedTouches,S=A.length,M,x,B,T;for(Ct(h),M=0;M<S;++M)x=A[M],B=K(x,this),y.touch0&&y.touch0[2]===x.identifier?y.touch0[0]=B:y.touch1&&y.touch1[2]===x.identifier&&(y.touch1[0]=B);if(x=y.that.__zoom,y.touch1){var z=y.touch0[0],k=y.touch0[1],H=y.touch1[0],O=y.touch1[1],Z=(Z=H[0]-z[0])*Z+(Z=H[1]-z[1])*Z,et=(et=O[0]-k[0])*et+(et=O[1]-k[1])*et;x=v(x,Math.sqrt(Z/et)),B=[(z[0]+H[0])/2,(z[1]+H[1])/2],T=[(k[0]+O[0])/2,(k[1]+O[1])/2]}else if(y.touch0)B=y.touch0[0],T=y.touch0[1];else return;y.zoom("touch",n(C(x,B,T),y.extent,i))}}function mt(h,..._){if(this.__zooming){var y=b(this,_).event(h),A=h.changedTouches,S=A.length,M,x;for(Ee(h),c&&clearTimeout(c),c=setTimeout(function(){c=null},p),M=0;M<S;++M)x=A[M],y.touch0&&y.touch0[2]===x.identifier?delete y.touch0:y.touch1&&y.touch1[2]===x.identifier&&delete y.touch1;if(y.touch1&&!y.touch0&&(y.touch0=y.touch1,delete y.touch1),y.touch0)y.touch0[1]=this.__zoom.invert(y.touch0[0]);else if(y.end(),y.taps===2&&(x=K(x,this),Math.hypot(D[0]-x[0],D[1]-x[1])<g)){var B=$(this).on("dblclick.zoom");B&&B.apply(this,arguments)}}}return d.wheelDelta=function(h){return arguments.length?(r=typeof h=="function"?h:Kt(+h),d):r},d.filter=function(h){return arguments.length?(t=typeof h=="function"?h:Kt(!!h),d):t},d.touchable=function(h){return arguments.length?(u=typeof h=="function"?h:Kt(!!h),d):u},d.extent=function(h){return arguments.length?(e=typeof h=="function"?h:Kt([[+h[0][0],+h[0][1]],[+h[1][0],+h[1][1]]]),d):e},d.scaleExtent=function(h){return arguments.length?(o[0]=+h[0],o[1]=+h[1],d):[o[0],o[1]]},d.translateExtent=function(h){return arguments.length?(i[0][0]=+h[0][0],i[1][0]=+h[1][0],i[0][1]=+h[0][1],i[1][1]=+h[1][1],d):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},d.constrain=function(h){return arguments.length?(n=h,d):n},d.duration=function(h){return arguments.length?(a=+h,d):a},d.interpolate=function(h){return arguments.length?(l=h,d):l},d.on=function(){var h=s.on.apply(s,arguments);return h===s?d:h},d.clickDistance=function(h){return arguments.length?(F=(h=+h)*h,d):Math.sqrt(F)},d.tapDistance=function(h){return arguments.length?(g=+h,d):g},d}function fu(t,e){if(!t)return;function n(u){u.target===this&&(u.preventDefault(),e())}function r(u){u.key.startsWith("Esc")&&(u.preventDefault(),e())}t?.addEventListener("click",n),window.addCleanup(()=>t?.removeEventListener("click",n)),document.addEventListener("keydown",r),window.addCleanup(()=>document.removeEventListener("keydown",r))}function Qe(t){for(;t.firstChild;)t.removeChild(t.firstChild)}var kp=Object.hasOwnProperty;var pu=bu(hu(),1),Lp=(0,pu.default)();function mu(t){return t.document.body.dataset.slug}function Zt(t){let e=ea(ta(t,"index"),!0);return e.length===0?"/":e}function Zo(t){let e=t.split("/").filter(n=>n!=="").slice(0,-1).map(n=>"..").join("/");return e.length===0&&(e="."),e}function du(t,e){return Jo(Zo(t),Zt(e))}function Jo(...t){return t.filter(e=>e!=="").join("/").replace(/\\/\\/+/g,"/")}function jo(t,e){return t===e||t.endsWith("/"+e)}function ta(t,e){return jo(t,e)&&(t=t.slice(0,-e.length)),t}function ea(t,e){return t.startsWith("/")&&(t=t.substring(1)),!e&&t.endsWith("/")&&(t=t.slice(0,-1)),t}var gu="graph-visited";function xu(){return new Set(JSON.parse(localStorage.getItem(gu)??"[]"))}function na(t){let e=xu();e.add(t),localStorage.setItem(gu,JSON.stringify([...e]))}async function Fu(t,e){let n=Zt(e),r=xu(),u=document.getElementById(t);if(!u)return;Qe(u);let{drag:o,zoom:i,depth:a,scale:l,repelForce:s,centerForce:f,linkDistance:D,fontSize:c,opacityScale:p,removeTags:w,showTags:F,focusOnHover:g}=JSON.parse(u.dataset.cfg),d=new Map(Object.entries(await fetchData).map(([x,B])=>[Zt(x),B])),v=[],C=[],m=new Set(d.keys());for(let[x,B]of d.entries()){let T=B.links??[];for(let z of T)m.has(z)&&v.push({source:x,target:z});if(F){let z=B.tags.filter(k=>!w.includes(k)).map(k=>Zt("tags/"+k));C.push(...z.filter(k=>!C.includes(k)));for(let k of z)v.push({source:x,target:k})}}let E=new Set,b=[n,"__SENTINEL"];if(a>=0)for(;a>=0&&b.length>0;){let x=b.shift();if(x==="__SENTINEL")a--,b.push("__SENTINEL");else{E.add(x);let B=v.filter(z=>z.source===x),T=v.filter(z=>z.target===x);b.push(...B.map(z=>z.target),...T.map(z=>z.source))}}else m.forEach(x=>E.add(x)),F&&C.forEach(x=>E.add(x));let N={nodes:[...E].map(x=>{let B=x.startsWith("tags/")?"#"+x.substring(5):d.get(x)?.title??x;return{id:x,text:B,tags:d.get(x)?.tags??[]}}),links:v.filter(x=>E.has(x.source)&&E.has(x.target))},I=Ye(N.nodes).force("charge",Ue().strength(-100*s)).force("link",Ve(N.links).id(x=>x.id).distance(D)).force("center",Xe().strength(f)),R=Math.max(u.offsetHeight,250),P=u.offsetWidth,Y=$("#"+t).append("svg").attr("width",P).attr("height",R).attr("viewBox",[-P/2/l,-R/2/l,P/l,R/l]),pt=Y.append("g").selectAll("line").data(N.links).join("line").attr("class","link").attr("stroke","var(--lightgray)").attr("stroke-width",1),mt=Y.append("g").selectAll("g").data(N.nodes).enter().append("g"),h=x=>x.id===n?"var(--secondary)":r.has(x.id)||x.id.startsWith("tags/")?"var(--tertiary)":"var(--gray)",_=x=>{function B(H,O){H.active||x.alphaTarget(1).restart(),O.fx=O.x,O.fy=O.y}function T(H,O){O.fx=H.x,O.fy=H.y}function z(H,O){H.active||x.alphaTarget(0),O.fx=null,O.fy=null}let k=()=>{};return Be().on("start",o?B:k).on("drag",o?T:k).on("end",o?z:k)};function y(x){let B=v.filter(T=>T.source.id===x.id||T.target.id===x.id).length;return 2+Math.sqrt(B)}let A=[],S=mt.append("circle").attr("class","node").attr("id",x=>x.id).attr("r",y).attr("fill",h).style("cursor","pointer").on("click",(x,B)=>{let T=du(e,B.id);window.spaNavigate(new URL(T,window.location.toString()))}).on("mouseover",function(x,B){let T=B.id,z=at(".link").filter(O=>O.source.id===T||O.target.id===T);g&&(A=z.data().flatMap(O=>[O.source.id,O.target.id]),at(".link").transition().duration(200).style("opacity",.2),at(".node").filter(O=>!A.includes(O.id)).transition().duration(200).style("opacity",.2)),z.transition().duration(200).attr("stroke","var(--gray)").attr("stroke-width",1);let k=c*1.5,H=this.parentNode;$(H).raise().select("text").transition().duration(200).attr("opacityOld",$(H).select("text").style("opacity")).style("opacity",1).style("font-size",k+"em")}).on("mouseleave",function(x,B){g&&(at(".link").transition().duration(200).style("opacity",1),at(".node").transition().duration(200).style("opacity",1));let T=B.id;at(".link").filter(H=>H.source.id===T||H.target.id===T).transition().duration(200).attr("stroke","var(--lightgray)");let k=this.parentNode;$(k).select("text").transition().duration(200).style("opacity",$(k).select("text").attr("opacityOld")).style("font-size",c+"em")}).call(_(I)),M=mt.append("text").attr("dx",0).attr("dy",x=>-y(x)+"px").attr("text-anchor","middle").text(x=>x.text).style("opacity",(p-1)/3.75).style("pointer-events","none").style("font-size",c+"em").raise().call(_(I));i&&Y.call(Ke().extent([[0,0],[P,R]]).scaleExtent([.25,4]).on("zoom",({transform:x})=>{pt.attr("transform",x),S.attr("transform",x);let B=x.k*p,T=Math.max((B-1)/3.75,0);M.attr("transform",x).style("opacity",T)})),I.on("tick",()=>{pt.attr("x1",x=>x.source.x).attr("y1",x=>x.source.y).attr("x2",x=>x.target.x).attr("y2",x=>x.target.y),S.attr("cx",x=>x.x).attr("cy",x=>x.y),M.attr("x",x=>x.x).attr("y",x=>x.y)})}function Du(){let t=mu(window),e=document.getElementById("global-graph-outer"),n=e?.closest(".sidebar");e?.classList.add("active"),n&&(n.style.zIndex="1"),Fu("global-graph-container",t);function r(){e?.classList.remove("active");let u=document.getElementById("global-graph-container");n&&(n.style.zIndex="unset"),u&&Qe(u)}fu(e,r)}document.addEventListener("nav",async t=>{let e=t.detail.url;na(e),await Fu("graph-container",e);let n=document.getElementById("global-graph-icon");n?.addEventListener("click",Du),window.addCleanup(()=>n?.removeEventListener("click",Du))});\n';var graph_default=`.graph > h3 {
font-size: 1rem;
margin: 0;
}
.graph > .graph-outer {
border-radius: 5px;
border: 1px solid var(--lightgray);
box-sizing: border-box;
height: 250px;
margin: 0.5em 0;
position: relative;
overflow: hidden;
}
.graph > .graph-outer > #global-graph-icon {
color: var(--dark);
opacity: 0.5;
width: 18px;
height: 18px;
position: absolute;
padding: 0.2rem;
margin: 0.3rem;
top: 0;
right: 0;
border-radius: 4px;
background-color: transparent;
transition: background-color 0.5s ease;
cursor: pointer;
}
.graph > .graph-outer > #global-graph-icon:hover {
background-color: var(--lightgray);
}
.graph > #global-graph-outer {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100vw;
height: 100%;
backdrop-filter: blur(4px);
display: none;
overflow: hidden;
}
.graph > #global-graph-outer.active {
display: inline-block;
}
.graph > #global-graph-outer > #global-graph-container {
border: 1px solid var(--lightgray);
background-color: var(--light);
border-radius: 5px;
box-sizing: border-box;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 60vh;
width: 50vw;
}
@media all and (max-width: 1510px) {
.graph > #global-graph-outer > #global-graph-container {
width: 90%;
}
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJncmFwaC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdFO0VBQ0U7RUFDQTs7QUFHRjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUVBO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBQ0E7RUFDRTs7QUFLTjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7QUFFQTtFQUNFOztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBRUE7RUFaRjtJQWFJIiwic291cmNlc0NvbnRlbnQiOlsiQHVzZSBcIi4uLy4uL3N0eWxlcy92YXJpYWJsZXMuc2Nzc1wiIGFzICo7XG5cbi5ncmFwaCB7XG4gICYgPiBoMyB7XG4gICAgZm9udC1zaXplOiAxcmVtO1xuICAgIG1hcmdpbjogMDtcbiAgfVxuXG4gICYgPiAuZ3JhcGgtb3V0ZXIge1xuICAgIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgICBib3JkZXI6IDFweCBzb2xpZCB2YXIoLS1saW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7XG4gICAgfVxuXG4gICAgJiA+ICNnbG9iYWwtZ3JhcGgtY29udGFpbmVyIHtcbiAgICAgIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLWxpZ2h0Z3JheSk7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1saWdodCk7XG4gICAgICBib3JkZXItcmFkaXVzOiA1cHg7XG4gICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgICAgcG9zaXRpb246IGZpeGVkO1xuICAgICAgdG9wOiA1MCU7XG4gICAgICBsZWZ0OiA1MCU7XG4gICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTtcbiAgICAgIGhlaWdodDogNjB2aDtcbiAgICAgIHdpZHRoOiA1MHZ3O1xuXG4gICAgICBAbWVkaWEgYWxsIGFuZCAobWF4LXdpZHRoOiAkZnVsbFBhZ2VXaWR0aCkge1xuICAgICAgICB3aWR0aDogOTAlO1xuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIl19 */`;import{jsx as jsx23,jsxs as jsxs12}from"preact/jsx-runtime";var defaultOptions13={localGraph:{drag:!0,zoom:!0,depth:1,scale:1.1,repelForce:.5,centerForce:.3,linkDistance:30,fontSize:.6,opacityScale:1,showTags:!0,removeTags:[],focusOnHover:!1},globalGraph:{drag:!0,zoom:!0,depth:-1,scale:.9,repelForce:.5,centerForce:.3,linkDistance:30,fontSize:.6,opacityScale:1,showTags:!0,removeTags:[],focusOnHover:!0}},Graph_default=__name(opts=>{let Graph=__name(({displayClass,cfg})=>{let localGraph={...defaultOptions13.localGraph,...opts?.localGraph},globalGraph={...defaultOptions13.globalGraph,...opts?.globalGraph};return jsxs12("div",{class:classNames(displayClass,"graph"),children:[jsx23("h3",{children:i18n(cfg.locale).components.graph.title}),jsxs12("div",{class:"graph-outer",children:[jsx23("div",{id:"graph-container","data-cfg":JSON.stringify(localGraph)}),jsx23("svg",{version:"1.1",id:"global-graph-icon",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 55 55",fill:"currentColor",xmlSpace:"preserve",children:jsx23("path",{d:`M49,0c-3.309,0-6,2.691-6,6c0,1.035,0.263,2.009,0.726,2.86l-9.829,9.829C32.542,17.634,30.846,17,29,17
s-3.542,0.634-4.898,1.688l-7.669-7.669C16.785,10.424,17,9.74,17,9c0-2.206-1.794-4-4-4S9,6.794,9,9s1.794,4,4,4
c0.74,0,1.424-0.215,2.019-0.567l7.669,7.669C21.634,21.458,21,23.154,21,25s0.634,3.542,1.688,4.897L10.024,42.562
C8.958,41.595,7.549,41,6,41c-3.309,0-6,2.691-6,6s2.691,6,6,6s6-2.691,6-6c0-1.035-0.263-2.009-0.726-2.86l12.829-12.829
c1.106,0.86,2.44,1.436,3.898,1.619v10.16c-2.833,0.478-5,2.942-5,5.91c0,3.309,2.691,6,6,6s6-2.691,6-6c0-2.967-2.167-5.431-5-5.91
v-10.16c1.458-0.183,2.792-0.759,3.898-1.619l7.669,7.669C41.215,39.576,41,40.26,41,41c0,2.206,1.794,4,4,4s4-1.794,4-4
s-1.794-4-4-4c-0.74,0-1.424,0.215-2.019,0.567l-7.669-7.669C36.366,28.542,37,26.846,37,25s-0.634-3.542-1.688-4.897l9.665-9.665
C46.042,11.405,47.451,12,49,12c3.309,0,6-2.691,6-6S52.309,0,49,0z M11,9c0-1.103,0.897-2,2-2s2,0.897,2,2s-0.897,2-2,2
S11,10.103,11,9z M6,51c-2.206,0-4-1.794-4-4s1.794-4,4-4s4,1.794,4,4S8.206,51,6,51z M33,49c0,2.206-1.794,4-4,4s-4-1.794-4-4
s1.794-4,4-4S33,46.794,33,49z M29,31c-3.309,0-6-2.691-6-6s2.691-6,6-6s6,2.691,6,6S32.309,31,29,31z M47,41c0,1.103-0.897,2-2,2
s-2-0.897-2-2s0.897-2,2-2S47,39.897,47,41z M49,10c-2.206,0-4-1.794-4-4s1.794-4,4-4s4,1.794,4,4S51.206,10,49,10z`})})]}),jsx23("div",{id:"global-graph-outer",children:jsx23("div",{id:"global-graph-container","data-cfg":JSON.stringify(globalGraph)})})]})},"Graph");return Graph.css=graph_default,Graph.afterDOMLoaded=graph_inline_default,Graph},"default");var backlinks_default=`.backlinks {
position: relative;
}
.backlinks > h3 {
font-size: 1rem;
margin: 0;
}
.backlinks > ul {
list-style: none;
padding: 0;
margin: 0.5rem 0;
}
.backlinks > ul > li > a {
background-color: transparent;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJiYWNrbGlua3Muc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFOztBQUVBO0VBQ0U7RUFDQTs7QUFHRjtFQUNFO0VBQ0E7RUFDQTs7QUFHRTtFQUNFIiwic291cmNlc0NvbnRlbnQiOlsiLmJhY2tsaW5rcyB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICAmID4gaDMge1xuICAgIGZvbnQtc2l6ZTogMXJlbTtcbiAgICBtYXJnaW46IDA7XG4gIH1cblxuICAmID4gdWwge1xuICAgIGxpc3Qtc3R5bGU6IG5vbmU7XG4gICAgcGFkZGluZzogMDtcbiAgICBtYXJnaW46IDAuNXJlbSAwO1xuXG4gICAgJiA+IGxpIHtcbiAgICAgICYgPiBhIHtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0= */`;import{jsx as jsx24,jsxs as jsxs13}from"preact/jsx-runtime";var Backlinks=__name(({fileData,allFiles,displayClass,cfg})=>{let slug=simplifySlug(fileData.slug),backlinkFiles=allFiles.filter(file=>file.links?.includes(slug));return jsxs13("div",{class:classNames(displayClass,"backlinks"),children:[jsx24("h3",{children:i18n(cfg.locale).components.backlinks.title}),jsx24("ul",{class:"overflow",children:backlinkFiles.length>0?backlinkFiles.map(f=>jsx24("li",{children:jsx24("a",{href:resolveRelative(fileData.slug,f.slug),class:"internal",children:f.frontmatter?.title})})):jsx24("li",{children:i18n(cfg.locale).components.backlinks.noBacklinksFound})})]})},"Backlinks");Backlinks.css=backlinks_default;var Backlinks_default=__name(()=>Backlinks,"default");var search_default=`.search {
min-width: fit-content;
max-width: 14rem;
flex-grow: 0.3;
}
.search > #search-icon {
background-color: var(--lightgray);
border-radius: 4px;
height: 2rem;
display: flex;
align-items: center;
cursor: pointer;
white-space: nowrap;
}
.search > #search-icon > div {
flex-grow: 1;
}
.search > #search-icon > p {
display: inline;
padding: 0 1rem;
}
.search > #search-icon svg {
cursor: pointer;
width: 18px;
min-width: 18px;
margin: 0 0.5rem;
}
.search > #search-icon svg .search-path {
stroke: var(--darkgray);
stroke-width: 2px;
transition: stroke 0.5s ease;
}
.search > #search-container {
position: fixed;
contain: layout;
z-index: 999;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
overflow-y: auto;
display: none;
backdrop-filter: blur(4px);
}
.search > #search-container.active {
display: inline-block;
}
.search > #search-container > #search-space {
width: 65%;
margin-top: 12vh;
margin-left: auto;
margin-right: auto;
}
@media all and (max-width: 1510px) {
.search > #search-container > #search-space {
width: 90%;
}
}
.search > #search-container > #search-space > * {
width: 100%;
border-radius: 7px;
background: var(--light);
box-shadow: 0 14px 50px rgba(27, 33, 48, 0.12), 0 10px 30px rgba(27, 33, 48, 0.16);
margin-bottom: 2em;
}
.search > #search-container > #search-space > input {
box-sizing: border-box;
padding: 0.5em 1em;
font-family: var(--bodyFont);
color: var(--dark);
font-size: 1.1em;
border: 1px solid var(--lightgray);
}
.search > #search-container > #search-space > input:focus {
outline: none;
}
.search > #search-container > #search-space > #search-layout {
display: none;
flex-direction: row;
border: 1px solid var(--lightgray);
flex: 0 0 100%;
box-sizing: border-box;
}
.search > #search-container > #search-space > #search-layout.display-results {
display: flex;
}
.search > #search-container > #search-space > #search-layout[data-preview] > #results-container {
flex: 0 0 min(30%, 450px);
}
@media all and (min-width: 1000px) {
.search > #search-container > #search-space > #search-layout[data-preview] .result-card > p.preview {
display: none;
}
.search > #search-container > #search-space > #search-layout[data-preview] > div:first-child {
border-right: 1px solid var(--lightgray);
border-top-right-radius: unset;
border-bottom-right-radius: unset;
}
.search > #search-container > #search-space > #search-layout[data-preview] > div:last-child {
border-top-left-radius: unset;
border-bottom-left-radius: unset;
}
}
.search > #search-container > #search-space > #search-layout > div {
height: 63vh;
border-radius: 5px;
}
@media all and (max-width: 1000px) {
.search > #search-container > #search-space > #search-layout > #preview-container {
display: none !important;
}
.search > #search-container > #search-space > #search-layout[data-preview] > #results-container {
width: 100%;
height: auto;
flex: 0 0 100%;
}
}
.search > #search-container > #search-space > #search-layout .highlight {
background: color-mix(in srgb, var(--tertiary) 60%, rgba(255, 255, 255, 0));
border-radius: 5px;
scroll-margin-top: 2rem;
}
.search > #search-container > #search-space > #search-layout > #preview-container {
display: block;
overflow: hidden;
font-family: inherit;
color: var(--dark);
line-height: 1.5em;
font-weight: 400;
overflow-y: auto;
padding: 0 2rem;
}
.search > #search-container > #search-space > #search-layout > #preview-container .preview-inner {
margin: 0 auto;
width: min(750px, 100%);
}
.search > #search-container > #search-space > #search-layout > #preview-container a[role=anchor] {
background-color: transparent;
}
.search > #search-container > #search-space > #search-layout > #results-container {
overflow-y: auto;
}
.search > #search-container > #search-space > #search-layout > #results-container .result-card {
overflow: hidden;
padding: 1em;
cursor: pointer;
transition: background 0.2s ease;
border-bottom: 1px solid var(--lightgray);
width: 100%;
display: block;
box-sizing: border-box;
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
text-transform: none;
text-align: left;
outline: none;
font-weight: inherit;
}
.search > #search-container > #search-space > #search-layout > #results-container .result-card:hover, .search > #search-container > #search-space > #search-layout > #results-container .result-card:focus, .search > #search-container > #search-space > #search-layout > #results-container .result-card.focus {
background: var(--lightgray);
}
.search > #search-container > #search-space > #search-layout > #results-container .result-card > h3 {
margin: 0;
}
.search > #search-container > #search-space > #search-layout > #results-container .result-card > ul.tags {
margin-top: 0.45rem;
margin-bottom: 0;
}
.search > #search-container > #search-space > #search-layout > #results-container .result-card > ul > li > p {
border-radius: 8px;
background-color: var(--highlight);
padding: 0.2rem 0.4rem;
margin: 0 0.1rem;
line-height: 1.4rem;
font-weight: 700;
color: var(--secondary);
}
.search > #search-container > #search-space > #search-layout > #results-container .result-card > ul > li > p.match-tag {
color: var(--tertiary);
}
.search > #search-container > #search-space > #search-layout > #results-container .result-card > p {
margin-bottom: 0;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJzZWFyY2guc2NzcyIsIi4uXFwuLlxcc3R5bGVzXFx2YXJpYWJsZXMuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQTtFQUNFO0VBQ0E7RUFDQTs7QUFFQTtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUVBO0VBQ0U7O0FBR0Y7RUFDRTtFQUNBOztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7O0FBRUE7RUFDRTtFQUNBO0VBQ0E7O0FBS047RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7QUFFQTtFQUNFOztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7O0FBRUE7RUFORjtJQU9JOzs7QUFHRjtFQUNFO0VBQ0E7RUFDQTtFQUNBLFlBQ0U7RUFFRjs7QUFHRjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7R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V0bztcblxuICAgICAgQG1lZGlhIGFsbCBhbmQgKG1heC13aWR0aDogJGZ1bGxQYWdlV2lkdGgpIHtcbiAgICAgICAgd2lkdGg6IDkwJTtcbiAgICAgIH1cblxuICAgICAgJiA+ICoge1xuICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogN3B4O1xuICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoLS1saWdodCk7XG4gICAgICAgIGJveC1zaGFkb3c6XG4gICAgICAgICAgMCAxNHB4IDUwcHggcmdiYSgyNywgMzMsIDQ4LCAwLjEyKSxcbiAgICAgICAgICAwIDEwcHggMzBweCByZ2JhKDI3LCAzMywgNDgsIDAuMTYpO1xuICAgICAgICBtYXJnaW4tYm90dG9tOiAyZW07XG4gICAgICB9XG5cbiAgICAgICYgPiBpbnB1dCB7XG4gICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgICAgIHBhZGRpbmc6IDAuNWVtIDFlbTtcbiAgICAgICAgZm9udC1mYW1pbHk6IHZhcigtLWJvZHlGb250KTtcbiAgICAgICAgY29sb3I6IHZhcigtLWRhcmspO1xuICAgICAgICBmb250LXNpemU6IDEuMWVtO1xuICAgICAgICBib3JkZXI6IDFweCBzb2xpZCB2YXIoLS1saWdodGdyYXkpO1xuXG4gICAgICAgICY6Zm9jdXMge1xuICAgICAgICAgIG91dGxpbmU6IG5vbmU7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgJiA+ICNzZWFyY2gtbGF5b3V0IHtcbiAgICAgICAgZGlzcGxheTogbm9uZTtcbiAgICAgICAgZmxleC1kaXJlY3Rpb246IHJvdztcbiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgdmFyKC0tbGlnaHRncmF5KTtcbiAgICAgICAgZmxleDogMCAwIDEwMCU7XG4gICAgICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG5cbiAgICAgICAgJi5kaXNwbGF5LXJlc3VsdHMge1xuICAgICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIH1cblxuICAgICAgICAmW2RhdGEtcHJldmlld10gPiAjcmVzdWx0cy1jb250YWluZXIge1xuICAgICAgICAgIGZsZXg6IDAgMCBtaW4oMzAlLCA0NTBweCk7XG4gICAgICAgIH1cblxuICAgICAgICBAbWVkaWEgYWxsIGFuZCAobWluLXdpZHRoOiAkdGFibGV0QnJlYWtwb2ludCkge1xuICAgICAgICAgICZbZGF0YS1wcmV2aWV3XSB7XG4gICAgICAgICAgICAmIC5yZXN1bHQtY2FyZCA+IHAucHJldmlldyB7XG4gICAgICAgICAgICAgIGRpc3BsYXk6IG5vbmU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYgPiBkaXYge1xuICAgICAgICAgICAgICAmOmZpcnN0LWNoaWxkIHtcbiAgICAgICAgICAgICAgICBib3JkZXItcmlnaHQ6IDFweCBzb2xpZCB2YXIoLS1saWdodGdyYXkpO1xuICAgICAgICAgICAgICAgIGJvcmRlci10b3AtcmlnaHQtcmFkaXVzOiB1bnNldDtcbiAgICAgICAgICAgICAgICBib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czogdW5zZXQ7XG4gICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAmOmxhc3QtY2hpbGQge1xuICAgICAgICAgICAgICAgIGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IHVuc2V0O1xuICAgICAgICAgICAgICAgIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IHVuc2V0O1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgJiA+IGRpdiB7XG4gICAgICAgICAgaGVpZ2h0OiBjYWxjKDc1dmggLSAxMnZoKTtcbiAgICAgICAgICBib3JkZXItcmFkaXVzOiA1cHg7XG4gICAgICAgIH1cblxuICAgICAgICBAbWVkaWEgYWxsIGFuZCAobWF4LXdpZHRoOiAkdGFibGV0QnJlYWtwb2ludCkge1xuICAgICAgICAgICYgPiAjcHJldmlldy1jb250YWluZXIge1xuICAgICAgICAgICAgZGlzcGxheTogbm9uZSAhaW1wb3J0YW50O1xuICAgICAgICAgIH1cblxuICAgICAgICAgICZbZGF0YS1wcmV2aWV3XSA+ICNyZXN1bHRzLWNvbnRhaW5lciB7XG4gICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICAgIGhlaWdodDogYXV0bztcbiAgICAgICAgICAgIGZsZXg6IDAgMCAxMDAlO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYgLmhpZ2hsaWdodCB7XG4gICAgICAgICAgYmFja2dyb3VuZDogY29sb3ItbWl4KGluIHNyZ2IsIHZhcigtLXRlcnRpYXJ5KSA2MCUsIHJnYmEoMjU1LCAyNTUsIDI1NSwgMCkpO1xuICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgICAgICAgICBzY3JvbGwtbWFyZ2luLXRvcDogMnJlbTtcbiAgICAgICAgfVxuXG4gICAgICAgICYgPiAjcHJldmlldy1jb250YWluZXIge1xuICAgICAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgICAgICAgIG92ZXJmbG93OiBoaWRkZW47XG4gICAgICAgICAgZm9udC1mYW1pbHk6IGluaGVyaXQ7XG4gICAgICAgICAgY29sb3I6IHZhcigtLWRhcmspO1xuICAgICAgICAgIGxpbmUtaGVpZ2h0OiAxLjVlbTtcbiAgICAgICAgICBmb250LXdlaWdodDogJG5vcm1hbFdlaWdodDtcbiAgICAgICAgICBvdmVyZmxvdy15OiBhdXRvO1xuICAgICAgICAgIHBhZGRpbmc6IDAgMnJlbTtcblxuICAgICAgICAgICYgLnByZXZpZXctaW5uZXIge1xuICAgICAgICAgICAgbWFyZ2luOiAwIGF1dG87XG4gICAgICAgICAgICB3aWR0aDogbWluKCRwYWdlV2lkdGgsIDEwMCUpO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGFbcm9sZT1cImFuY2hvclwiXSB7XG4gICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAmID4gI3Jlc3VsdHMtY29udGFpbmVyIHtcbiAgICAgICAgICBvdmVyZmxvdy15OiBhdXRvO1xuXG4gICAgICAgICAgJiAucmVzdWx0LWNhcmQge1xuICAgICAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICAgICAgICAgIHBhZGRpbmc6IDFlbTtcbiAgICAgICAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICAgICAgICAgIHRyYW5zaXRpb246IGJhY2tncm91bmQgMC4ycyBlYXNlO1xuICAgICAgICAgICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHZhcigtLWxpZ2h0Z3JheSk7XG4gICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgICAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcblxuICAgICAgICAgICAgLy8gbm9ybWFsaXplIGNhcmQgcHJvcHNcbiAgICAgICAgICAgIGZvbnQtZmFtaWx5OiBpbmhlcml0O1xuICAgICAgICAgICAgZm9udC1zaXplOiAxMDAlO1xuICAgICAgICAgICAgbGluZS1oZWlnaHQ6IDEuMTU7XG4gICAgICAgICAgICBtYXJnaW46IDA7XG4gICAgICAgICAgICB0ZXh0LXRyYW5zZm9ybTogbm9uZTtcbiAgICAgICAgICAgIHRleHQtYWxpZ246IGxlZnQ7XG4gICAgICAgICAgICBvdXRsaW5lOiBub25lO1xuICAgICAgICAgICAgZm9udC13ZWlnaHQ6IGluaGVyaXQ7XG5cbiAgICAgICAgICAgICY6aG92ZXIsXG4gICAgICAgICAgICAmOmZvY3VzLFxuICAgICAgICAgICAgJi5mb2N1cyB7XG4gICAgICAgICAgICAgIGJhY2tncm91bmQ6IHZhcigtLWxpZ2h0Z3JheSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICYgPiBoMyB7XG4gICAgICAgICAgICAgIG1hcmdpbjogMDtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJiA+IHVsLnRhZ3Mge1xuICAgICAgICAgICAgICBtYXJnaW4tdG9wOiAwLjQ1cmVtO1xuICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmID4gdWwgPiBsaSA+IHAge1xuICAgICAgICAgICAgICBib3JkZXItcmFkaXVzOiA4cHg7XG4gICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWhpZ2hsaWdodCk7XG4gICAgICAgICAgICAgIHBhZGRpbmc6IDAuMnJlbSAwLjRyZW07XG4gICAgICAgICAgICAgIG1hcmdpbjogMCAwLjFyZW07XG4gICAgICAgICAgICAgIGxpbmUtaGVpZ2h0OiAxLjRyZW07XG4gICAgICAgICAgICAgIGZvbnQtd2VpZ2h0OiAkYm9sZFdlaWdodDtcbiAgICAgICAgICAgICAgY29sb3I6IHZhcigtLXNlY29uZGFyeSk7XG5cbiAgICAgICAgICAgICAgJi5tYXRjaC10YWcge1xuICAgICAgICAgICAgICAgIGNvbG9yOiB2YXIoLS10ZXJ0aWFyeSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJiA+IHAge1xuICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfVxufVxuIiwiJHBhZ2VXaWR0aDogNzUwcHg7XG4kbW9iaWxlQnJlYWtwb2ludDogNjAwcHg7XG4kdGFibGV0QnJlYWtwb2ludDogMTAwMHB4O1xuJHNpZGVQYW5lbFdpZHRoOiAzODBweDtcbiR0b3BTcGFjaW5nOiA2cmVtO1xuJGZ1bGxQYWdlV2lkdGg6ICRwYWdlV2lkdGggKyAyICogJHNpZGVQYW5lbFdpZHRoO1xuJGJvbGRXZWlnaHQ6IDcwMDtcbiRzZW1pQm9sZFdlaWdodDogNjAwO1xuJG5vcm1hbFdlaWdodDogNDAwO1xuIl19 */`;var search_inline_default='var Ke=Object.create;var ce=Object.defineProperty;var $e=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Je=Object.getPrototypeOf,Ve=Object.prototype.hasOwnProperty;var fe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ze=(e,t,u,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ge(t))!Ve.call(e,n)&&n!==u&&ce(e,n,{get:()=>t[n],enumerable:!(i=$e(t,n))||i.enumerable});return e};var Qe=(e,t,u)=>(u=e!=null?Ke(Je(e)):{},Ze(t||!e||!e.__esModule?ce(u,"default",{value:e,enumerable:!0}):u,e));var ae=fe(()=>{});var Oe=fe((Ut,Ie)=>{"use strict";Ie.exports=Et;function q(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function Et(e){if(e=e||{},e.circles)return gt(e);return e.proto?i:u;function t(n,s){for(var l=Object.keys(n),r=new Array(l.length),D=0;D<l.length;D++){var o=l[D],F=n[o];typeof F!="object"||F===null?r[o]=F:F instanceof Date?r[o]=new Date(F):ArrayBuffer.isView(F)?r[o]=q(F):r[o]=s(F)}return r}function u(n){if(typeof n!="object"||n===null)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return t(n,u);if(n instanceof Map)return new Map(t(Array.from(n),u));if(n instanceof Set)return new Set(t(Array.from(n),u));var s={};for(var l in n)if(Object.hasOwnProperty.call(n,l)!==!1){var r=n[l];typeof r!="object"||r===null?s[l]=r:r instanceof Date?s[l]=new Date(r):r instanceof Map?s[l]=new Map(t(Array.from(r),u)):r instanceof Set?s[l]=new Set(t(Array.from(r),u)):ArrayBuffer.isView(r)?s[l]=q(r):s[l]=u(r)}return s}function i(n){if(typeof n!="object"||n===null)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return t(n,i);if(n instanceof Map)return new Map(t(Array.from(n),i));if(n instanceof Set)return new Set(t(Array.from(n),i));var s={};for(var l in n){var r=n[l];typeof r!="object"||r===null?s[l]=r:r instanceof Date?s[l]=new Date(r):r instanceof Map?s[l]=new Map(t(Array.from(r),i)):r instanceof Set?s[l]=new Set(t(Array.from(r),i)):ArrayBuffer.isView(r)?s[l]=q(r):s[l]=i(r)}return s}}function gt(e){var t=[],u=[];return e.proto?s:n;function i(l,r){for(var D=Object.keys(l),o=new Array(D.length),F=0;F<D.length;F++){var E=D[F],f=l[E];if(typeof f!="object"||f===null)o[E]=f;else if(f instanceof Date)o[E]=new Date(f);else if(ArrayBuffer.isView(f))o[E]=q(f);else{var a=t.indexOf(f);a!==-1?o[E]=u[a]:o[E]=r(f)}}return o}function n(l){if(typeof l!="object"||l===null)return l;if(l instanceof Date)return new Date(l);if(Array.isArray(l))return i(l,n);if(l instanceof Map)return new Map(i(Array.from(l),n));if(l instanceof Set)return new Set(i(Array.from(l),n));var r={};t.push(l),u.push(r);for(var D in l)if(Object.hasOwnProperty.call(l,D)!==!1){var o=l[D];if(typeof o!="object"||o===null)r[D]=o;else if(o instanceof Date)r[D]=new Date(o);else if(o instanceof Map)r[D]=new Map(i(Array.from(o),n));else if(o instanceof Set)r[D]=new Set(i(Array.from(o),n));else if(ArrayBuffer.isView(o))r[D]=q(o);else{var F=t.indexOf(o);F!==-1?r[D]=u[F]:r[D]=n(o)}}return t.pop(),u.pop(),r}function s(l){if(typeof l!="object"||l===null)return l;if(l instanceof Date)return new Date(l);if(Array.isArray(l))return i(l,s);if(l instanceof Map)return new Map(i(Array.from(l),s));if(l instanceof Set)return new Set(i(Array.from(l),s));var r={};t.push(l),u.push(r);for(var D in l){var o=l[D];if(typeof o!="object"||o===null)r[D]=o;else if(o instanceof Date)r[D]=new Date(o);else if(o instanceof Map)r[D]=new Map(i(Array.from(o),s));else if(o instanceof Set)r[D]=new Set(i(Array.from(o),s));else if(ArrayBuffer.isView(o))r[D]=q(o);else{var F=t.indexOf(o);F!==-1?r[D]=u[F]:r[D]=s(o)}}return t.pop(),u.pop(),r}}});var B;function b(e){return typeof e<"u"?e:!0}function he(e){let t=Array(e);for(let u=0;u<e;u++)t[u]=p();return t}function p(){return Object.create(null)}function Xe(e,t){return t.length-e.length}function v(e){return typeof e=="string"}function H(e){return typeof e=="object"}function De(e){return typeof e=="function"}function pe(e,t){var u=Ye;if(e&&(t&&(e=ee(e,t)),this.H&&(e=ee(e,this.H)),this.J&&1<e.length&&(e=ee(e,this.J)),u||u==="")){if(t=e.split(u),this.filter){e=this.filter,u=t.length;let i=[];for(let n=0,s=0;n<u;n++){let l=t[n];l&&!e[l]&&(i[s++]=l)}e=i}else e=t;return e}return e}var Ye=/[\\p{Z}\\p{S}\\p{P}\\p{C}]+/u,be=/[\\u0300-\\u036f]/g;function Ee(e,t){let u=Object.keys(e),i=u.length,n=[],s="",l=0;for(let r=0,D,o;r<i;r++)D=u[r],(o=e[D])?(n[l++]=y(t?"(?!\\\\b)"+D+"(\\\\b|_)":D),n[l++]=o):s+=(s?"|":"")+D;return s&&(n[l++]=y(t?"(?!\\\\b)("+s+")(\\\\b|_)":"("+s+")"),n[l]=""),n}function ee(e,t){for(let u=0,i=t.length;u<i&&(e=e.replace(t[u],t[u+1]),e);u+=2);return e}function y(e){return new RegExp(e,"g")}function me(e){let t="",u="";for(let i=0,n=e.length,s;i<n;i++)(s=e[i])!==u&&(t+=u=s);return t}var et={encode:Be,F:!1,G:""};function Be(e){return pe.call(this,(""+e).toLowerCase(),!1)}var ye={},U={};function we(e){K(e,"add"),K(e,"append"),K(e,"search"),K(e,"update"),K(e,"remove")}function K(e,t){e[t+"Async"]=function(){let u=this,i=arguments;var n=i[i.length-1];let s;return De(n)&&(s=n,delete i[i.length-1]),n=new Promise(function(l){setTimeout(function(){u.async=!0;let r=u[t].apply(u,i);u.async=!1,l(r)})}),s?(n.then(s),this):n}}function ve(e,t,u,i){let n=e.length,s=[],l,r,D=0;i&&(i=[]);for(let o=n-1;0<=o;o--){let F=e[o],E=F.length,f=p(),a=!l;for(let c=0;c<E;c++){let g=F[c],d=g.length;if(d)for(let M=0,x,w;M<d;M++)if(w=g[M],l){if(l[w]){if(!o){if(u)u--;else if(s[D++]=w,D===t)return s}(o||i)&&(f[w]=1),a=!0}if(i&&(x=(r[w]||0)+1,r[w]=x,x<n)){let k=i[x-2]||(i[x-2]=[]);k[k.length]=w}}else f[w]=1}if(i)l||(r=f);else if(!a)return[];l=f}if(i)for(let o=i.length-1,F,E;0<=o;o--){F=i[o],E=F.length;for(let f=0,a;f<E;f++)if(a=F[f],!l[a]){if(u)u--;else if(s[D++]=a,D===t)return s;l[a]=1}}return s}function tt(e,t){let u=p(),i=p(),n=[];for(let s=0;s<e.length;s++)u[e[s]]=1;for(let s=0,l;s<t.length;s++){l=t[s];for(let r=0,D;r<l.length;r++)D=l[r],u[D]&&!i[D]&&(i[D]=1,n[n.length]=D)}return n}function ue(e){this.l=e!==!0&&e,this.cache=p(),this.h=[]}function xe(e,t,u){H(e)&&(e=e.query);let i=this.cache.get(e);return i||(i=this.search(e,t,u),this.cache.set(e,i)),i}ue.prototype.set=function(e,t){if(!this.cache[e]){var u=this.h.length;for(u===this.l?delete this.cache[this.h[u-1]]:u++,--u;0<u;u--)this.h[u]=this.h[u-1];this.h[0]=e}this.cache[e]=t};ue.prototype.get=function(e){let t=this.cache[e];if(this.l&&t&&(e=this.h.indexOf(e))){let u=this.h[e-1];this.h[e-1]=this.h[e],this.h[e]=u}return t};var ut={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function Se(e,t,u,i,n,s,l,r){setTimeout(function(){let D=e(u?u+"."+i:i,JSON.stringify(l));D&&D.then?D.then(function(){t.export(e,t,u,n,s+1,r)}):t.export(e,t,u,n,s+1,r)})}function P(e,t){if(!(this instanceof P))return new P(e);var u;if(e){v(e)?e=ut[e]:(u=e.preset)&&(e=Object.assign({},u[u],e)),u=e.charset;var i=e.lang;v(u)&&(u.indexOf(":")===-1&&(u+=":default"),u=U[u]),v(i)&&(i=ye[i])}else e={};let n,s,l=e.context||{};if(this.encode=e.encode||u&&u.encode||Be,this.register=t||p(),this.D=n=e.resolution||9,this.G=t=u&&u.G||e.tokenize||"strict",this.depth=t==="strict"&&l.depth,this.l=b(l.bidirectional),this.s=s=b(e.optimize),this.m=b(e.fastupdate),this.B=e.minlength||1,this.C=e.boost,this.map=s?he(n):p(),this.A=n=l.resolution||1,this.h=s?he(n):p(),this.F=u&&u.F||e.rtl,this.H=(t=e.matcher||i&&i.H)&&Ee(t,!1),this.J=(t=e.stemmer||i&&i.J)&&Ee(t,!0),u=t=e.filter||i&&i.filter){u=t,i=p();for(let r=0,D=u.length;r<D;r++)i[u[r]]=1;u=i}this.filter=u,this.cache=(t=e.cache)&&new ue(t)}B=P.prototype;B.append=function(e,t){return this.add(e,t,!0)};B.add=function(e,t,u,i){if(t&&(e||e===0)){if(!i&&!u&&this.register[e])return this.update(e,t);if(t=this.encode(t),i=t.length){let o=p(),F=p(),E=this.depth,f=this.D;for(let a=0;a<i;a++){let c=t[this.F?i-1-a:a];var n=c.length;if(c&&n>=this.B&&(E||!F[c])){var s=X(f,i,a),l="";switch(this.G){case"full":if(2<n){for(s=0;s<n;s++)for(var r=n;r>s;r--)if(r-s>=this.B){var D=X(f,i,a,n,s);l=c.substring(s,r),$(this,F,l,D,e,u)}break}case"reverse":if(1<n){for(r=n-1;0<r;r--)l=c[r]+l,l.length>=this.B&&$(this,F,l,X(f,i,a,n,r),e,u);l=""}case"forward":if(1<n){for(r=0;r<n;r++)l+=c[r],l.length>=this.B&&$(this,F,l,s,e,u);break}default:if(this.C&&(s=Math.min(s/this.C(t,c,a)|0,f-1)),$(this,F,c,s,e,u),E&&1<i&&a<i-1){for(n=p(),l=this.A,s=c,r=Math.min(E+1,i-a),n[s]=1,D=1;D<r;D++)if((c=t[this.F?i-1-a-D:a+D])&&c.length>=this.B&&!n[c]){n[c]=1;let g=this.l&&c>s;$(this,o,g?s:c,X(l+(i/2>l?0:1),i,a,r-1,D-1),e,u,g?c:s)}}}}}this.m||(this.register[e]=1)}}return this};function X(e,t,u,i,n){return u&&1<e?t+(i||0)<=e?u+(n||0):(e-1)/(t+(i||0))*(u+(n||0))+1|0:0}function $(e,t,u,i,n,s,l){let r=l?e.h:e.map;(!t[u]||l&&!t[u][l])&&(e.s&&(r=r[i]),l?(t=t[u]||(t[u]=p()),t[l]=1,r=r[l]||(r[l]=p())):t[u]=1,r=r[u]||(r[u]=[]),e.s||(r=r[i]||(r[i]=[])),s&&r.includes(n)||(r[r.length]=n,e.m&&(e=e.register[n]||(e.register[n]=[]),e[e.length]=r)))}B.search=function(e,t,u){u||(!t&&H(e)?(u=e,e=u.query):H(t)&&(u=t));let i=[],n,s,l=0;if(u){e=u.query||e,t=u.limit,l=u.offset||0;var r=u.context;s=u.suggest}if(e&&(e=this.encode(""+e),n=e.length,1<n)){u=p();var D=[];for(let F=0,E=0,f;F<n;F++)if((f=e[F])&&f.length>=this.B&&!u[f])if(this.s||s||this.map[f])D[E++]=f,u[f]=1;else return i;e=D,n=e.length}if(!n)return i;t||(t=100),r=this.depth&&1<n&&r!==!1,u=0;let o;r?(o=e[0],u=1):1<n&&e.sort(Xe);for(let F,E;u<n;u++){if(E=e[u],r?(F=ge(this,i,s,t,l,n===2,E,o),s&&F===!1&&i.length||(o=E)):F=ge(this,i,s,t,l,n===1,E),F)return F;if(s&&u===n-1){if(D=i.length,!D){if(r){r=0,u=-1;continue}return i}if(D===1)return Le(i[0],t,l)}}return ve(i,t,l,s)};function ge(e,t,u,i,n,s,l,r){let D=[],o=r?e.h:e.map;if(e.s||(o=Ae(o,l,r,e.l)),o){let F=0,E=Math.min(o.length,r?e.A:e.D);for(let f=0,a=0,c,g;f<E&&!((c=o[f])&&(e.s&&(c=Ae(c,l,r,e.l)),n&&c&&s&&(g=c.length,g<=n?(n-=g,c=null):(c=c.slice(n),n=0)),c&&(D[F++]=c,s&&(a+=c.length,a>=i))));f++);if(F){if(s)return Le(D,i,0);t[t.length]=D;return}}return!u&&D}function Le(e,t,u){return e=e.length===1?e[0]:[].concat.apply([],e),u||e.length>t?e.slice(u,u+t):e}function Ae(e,t,u,i){return u?(i=i&&t>u,e=(e=e[i?t:u])&&e[i?u:t]):e=e[t],e}B.contain=function(e){return!!this.register[e]};B.update=function(e,t){return this.remove(e).add(e,t)};B.remove=function(e,t){let u=this.register[e];if(u){if(this.m)for(let i=0,n;i<u.length;i++)n=u[i],n.splice(n.indexOf(e),1);else te(this.map,e,this.D,this.s),this.depth&&te(this.h,e,this.A,this.s);if(t||delete this.register[e],this.cache){t=this.cache;for(let i=0,n,s;i<t.h.length;i++)s=t.h[i],n=t.cache[s],n.includes(e)&&(t.h.splice(i--,1),delete t.cache[s])}}return this};function te(e,t,u,i,n){let s=0;if(e.constructor===Array)if(n)t=e.indexOf(t),t!==-1?1<e.length&&(e.splice(t,1),s++):s++;else{n=Math.min(e.length,u);for(let l=0,r;l<n;l++)(r=e[l])&&(s=te(r,t,u,i,n),i||s||delete e[l])}else for(let l in e)(s=te(e[l],t,u,i,n))||delete e[l];return s}B.searchCache=xe;B.export=function(e,t,u,i,n,s){let l=!0;typeof s>"u"&&(l=new Promise(o=>{s=o}));let r,D;switch(n||(n=0)){case 0:if(r="reg",this.m){D=p();for(let o in this.register)D[o]=1}else D=this.register;break;case 1:r="cfg",D={doc:0,opt:this.s?1:0};break;case 2:r="map",D=this.map;break;case 3:r="ctx",D=this.h;break;default:typeof u>"u"&&s&&s();return}return Se(e,t||this,u,r,i,n,D,s),l};B.import=function(e,t){if(t)switch(v(t)&&(t=JSON.parse(t)),e){case"cfg":this.s=!!t.opt;break;case"reg":this.m=!1,this.register=t;break;case"map":this.map=t;break;case"ctx":this.h=t}};we(P.prototype);function nt(e){e=e.data;var t=self._index;let u=e.args;var i=e.task;switch(i){case"init":i=e.options||{},e=e.factory,t=i.encode,i.cache=!1,t&&t.indexOf("function")===0&&(i.encode=Function("return "+t)()),e?(Function("return "+e)()(self),self._index=new self.FlexSearch.Index(i),delete self.FlexSearch):self._index=new P(i);break;default:e=e.id,t=t[i].apply(t,u),postMessage(i==="search"?{id:e,msg:t}:{id:e})}}var Ce=0;function N(e){if(!(this instanceof N))return new N(e);var t;e?De(t=e.encode)&&(e.encode=t.toString()):e={},(t=(self||window)._factory)&&(t=t.toString());let u=typeof window>"u"&&self.exports,i=this;this.o=it(t,u,e.worker),this.h=p(),this.o&&(u?this.o.on("message",function(n){i.h[n.id](n.msg),delete i.h[n.id]}):this.o.onmessage=function(n){n=n.data,i.h[n.id](n.msg),delete i.h[n.id]},this.o.postMessage({task:"init",factory:t,options:e}))}J("add");J("append");J("search");J("update");J("remove");function J(e){N.prototype[e]=N.prototype[e+"Async"]=function(){let t=this,u=[].slice.call(arguments);var i=u[u.length-1];let n;return De(i)&&(n=i,u.splice(u.length-1,1)),i=new Promise(function(s){setTimeout(function(){t.h[++Ce]=s,t.o.postMessage({task:e,id:Ce,args:u})})}),n?(i.then(n),this):i}}function it(e,t,u){let i;try{i=t?new(ae()).Worker(__dirname+"/node/node.js"):e?new Worker(URL.createObjectURL(new Blob(["onmessage="+nt.toString()],{type:"text/javascript"}))):new Worker(v(u)?u:"worker/worker.js",{type:"module"})}catch{}return i}function G(e){if(!(this instanceof G))return new G(e);var t=e.document||e.doc||e,u;this.K=[],this.h=[],this.A=[],this.register=p(),this.key=(u=t.key||t.id)&&Y(u,this.A)||"id",this.m=b(e.fastupdate),this.C=(u=t.store)&&u!==!0&&[],this.store=u&&p(),this.I=(u=t.tag)&&Y(u,this.A),this.l=u&&p(),this.cache=(u=e.cache)&&new ue(u),e.cache=!1,this.o=e.worker,this.async=!1,u=p();let i=t.index||t.field||t;v(i)&&(i=[i]);for(let n=0,s,l;n<i.length;n++)s=i[n],v(s)||(l=s,s=s.field),l=H(l)?Object.assign({},e,l):e,this.o&&(u[s]=new N(l),u[s].o||(this.o=!1)),this.o||(u[s]=new P(l,this.register)),this.K[n]=Y(s,this.A),this.h[n]=s;if(this.C)for(e=t.store,v(e)&&(e=[e]),t=0;t<e.length;t++)this.C[t]=Y(e[t],this.A);this.index=u}function Y(e,t){let u=e.split(":"),i=0;for(let n=0;n<u.length;n++)e=u[n],0<=e.indexOf("[]")&&(e=e.substring(0,e.length-2))&&(t[i]=!0),e&&(u[i++]=e);return i<u.length&&(u.length=i),1<i?u:u[0]}function re(e,t){if(v(t))e=e[t];else for(let u=0;e&&u<t.length;u++)e=e[t[u]];return e}function se(e,t,u,i,n){if(e=e[n],i===u.length-1)t[n]=e;else if(e)if(e.constructor===Array)for(t=t[n]=Array(e.length),n=0;n<e.length;n++)se(e,t,u,i,n);else t=t[n]||(t[n]=p()),n=u[++i],se(e,t,u,i,n)}function le(e,t,u,i,n,s,l,r){if(e=e[l])if(i===t.length-1){if(e.constructor===Array){if(u[i]){for(t=0;t<e.length;t++)n.add(s,e[t],!0,!0);return}e=e.join(" ")}n.add(s,e,r,!0)}else if(e.constructor===Array)for(l=0;l<e.length;l++)le(e,t,u,i,n,s,l,r);else l=t[++i],le(e,t,u,i,n,s,l,r)}B=G.prototype;B.add=function(e,t,u){if(H(e)&&(t=e,e=re(t,this.key)),t&&(e||e===0)){if(!u&&this.register[e])return this.update(e,t);for(let i=0,n,s;i<this.h.length;i++)s=this.h[i],n=this.K[i],v(n)&&(n=[n]),le(t,n,this.A,0,this.index[s],e,n[0],u);if(this.I){let i=re(t,this.I),n=p();v(i)&&(i=[i]);for(let s=0,l,r;s<i.length;s++)if(l=i[s],!n[l]&&(n[l]=1,r=this.l[l]||(this.l[l]=[]),!u||!r.includes(e))&&(r[r.length]=e,this.m)){let D=this.register[e]||(this.register[e]=[]);D[D.length]=r}}if(this.store&&(!u||!this.store[e])){let i;if(this.C){i=p();for(let n=0,s;n<this.C.length;n++)s=this.C[n],v(s)?i[s]=t[s]:se(t,i,s,0,s[0])}this.store[e]=i||t}}return this};B.append=function(e,t){return this.add(e,t,!0)};B.update=function(e,t){return this.remove(e).add(e,t)};B.remove=function(e){if(H(e)&&(e=re(e,this.key)),this.register[e]){for(var t=0;t<this.h.length&&(this.index[this.h[t]].remove(e,!this.o),!this.m);t++);if(this.I&&!this.m)for(let u in this.l){t=this.l[u];let i=t.indexOf(e);i!==-1&&(1<t.length?t.splice(i,1):delete this.l[u])}this.store&&delete this.store[e],delete this.register[e]}return this};B.search=function(e,t,u,i){u||(!t&&H(e)?(u=e,e=""):H(t)&&(u=t,t=0));let n=[],s=[],l,r,D,o,F,E,f=0;if(u)if(u.constructor===Array)D=u,u=null;else{if(e=u.query||e,D=(l=u.pluck)||u.index||u.field,o=u.tag,r=this.store&&u.enrich,F=u.bool==="and",t=u.limit||t||100,E=u.offset||0,o&&(v(o)&&(o=[o]),!e)){for(let c=0,g;c<o.length;c++)(g=rt.call(this,o[c],t,E,r))&&(n[n.length]=g,f++);return f?n:[]}v(D)&&(D=[D])}D||(D=this.h),F=F&&(1<D.length||o&&1<o.length);let a=!i&&(this.o||this.async)&&[];for(let c=0,g,d,M;c<D.length;c++){let x;if(d=D[c],v(d)||(x=d,d=x.field,e=x.query||e,t=x.limit||t,r=x.enrich||r),a)a[c]=this.index[d].searchAsync(e,t,x||u);else{if(i?g=i[c]:g=this.index[d].search(e,t,x||u),M=g&&g.length,o&&M){let w=[],k=0;F&&(w[0]=[g]);for(let _=0,Q,z;_<o.length;_++)Q=o[_],(M=(z=this.l[Q])&&z.length)&&(k++,w[w.length]=F?[z]:z);k&&(g=F?ve(w,t||100,E||0):tt(g,w),M=g.length)}if(M)s[f]=d,n[f++]=g;else if(F)return[]}}if(a){let c=this;return new Promise(function(g){Promise.all(a).then(function(d){g(c.search(e,t,u,d))})})}if(!f)return[];if(l&&(!r||!this.store))return n[0];for(let c=0,g;c<s.length;c++){if(g=n[c],g.length&&r&&(g=Me.call(this,g)),l)return g;n[c]={field:s[c],result:g}}return n};function rt(e,t,u,i){let n=this.l[e],s=n&&n.length-u;if(s&&0<s)return(s>t||u)&&(n=n.slice(u,u+t)),i&&(n=Me.call(this,n)),{tag:e,result:n}}function Me(e){let t=Array(e.length);for(let u=0,i;u<e.length;u++)i=e[u],t[u]={id:i,doc:this.store[i]};return t}B.contain=function(e){return!!this.register[e]};B.get=function(e){return this.store[e]};B.set=function(e,t){return this.store[e]=t,this};B.searchCache=xe;B.export=function(e,t,u,i,n,s){let l;if(typeof s>"u"&&(l=new Promise(r=>{s=r})),n||(n=0),i||(i=0),i<this.h.length){let r=this.h[i],D=this.index[r];t=this,setTimeout(function(){D.export(e,t,n?r:"",i,n++,s)||(i++,n=1,t.export(e,t,r,i,n,s))})}else{let r,D;switch(n){case 1:r="tag",D=this.l,u=null;break;case 2:r="store",D=this.store,u=null;break;default:s();return}Se(e,this,u,r,i,n,D,s)}return l};B.import=function(e,t){if(t)switch(v(t)&&(t=JSON.parse(t)),e){case"tag":this.l=t;break;case"reg":this.m=!1,this.register=t;for(let i=0,n;i<this.h.length;i++)n=this.index[this.h[i]],n.register=t,n.m=!1;break;case"store":this.store=t;break;default:e=e.split(".");let u=e[0];e=e[1],u&&e&&this.index[u].import(e,t)}};we(G.prototype);var st={encode:Te,F:!1,G:""},lt=[y("[\\xE0\\xE1\\xE2\\xE3\\xE4\\xE5]"),"a",y("[\\xE8\\xE9\\xEA\\xEB]"),"e",y("[\\xEC\\xED\\xEE\\xEF]"),"i",y("[\\xF2\\xF3\\xF4\\xF5\\xF6\\u0151]"),"o",y("[\\xF9\\xFA\\xFB\\xFC\\u0171]"),"u",y("[\\xFD\\u0177\\xFF]"),"y",y("\\xF1"),"n",y("[\\xE7c]"),"k",y("\\xDF"),"s",y(" & ")," and "];function Te(e){var t=e=""+e;return t.normalize&&(t=t.normalize("NFD").replace(be,"")),pe.call(this,t.toLowerCase(),!e.normalize&&lt)}var Dt={encode:Re,F:!1,G:"strict"},ot=/[^a-z0-9]+/,de={b:"p",v:"f",w:"f",z:"s",x:"s",\\u00DF:"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function Re(e){e=Te.call(this,e).join(" ");let t=[];if(e){let u=e.split(ot),i=u.length;for(let n=0,s,l=0;n<i;n++)if((e=u[n])&&(!this.filter||!this.filter[e])){s=e[0];let r=de[s]||s,D=r;for(let o=1;o<e.length;o++){s=e[o];let F=de[s]||s;F&&F!==D&&(r+=F,D=F)}t[l++]=r}}return t}var Ft={encode:ke,F:!1,G:""},ct=[y("ae"),"a",y("oe"),"o",y("sh"),"s",y("th"),"t",y("ph"),"f",y("pf"),"f",y("(?![aeo])h(?![aeo])"),"",y("(?!^[aeo])h(?!^[aeo])"),""];function ke(e,t){return e&&(e=Re.call(this,e).join(" "),2<e.length&&(e=ee(e,ct)),t||(1<e.length&&(e=me(e)),e&&(e=e.split(" ")))),e||[]}var ft={encode:ht,F:!1,G:""},at=y("(?!\\\\b)[aeo]");function ht(e){return e&&(e=ke.call(this,e,!0),1<e.length&&(e=e.replace(at,"")),1<e.length&&(e=me(e)),e&&(e=e.split(" "))),e||[]}U["latin:default"]=et;U["latin:simple"]=st;U["latin:balance"]=Dt;U["latin:advanced"]=Ft;U["latin:extra"]=ft;var He={Index:P,Document:G,Worker:N,registerCharset:function(e,t){U[e]=t},registerLanguage:function(e,t){ye[e]=t}};function je(e,t){if(!e)return;function u(n){n.target===this&&(n.preventDefault(),t())}function i(n){n.key.startsWith("Esc")&&(n.preventDefault(),t())}e?.addEventListener("click",u),window.addCleanup(()=>e?.removeEventListener("click",u)),document.addEventListener("keydown",i),window.addCleanup(()=>document.removeEventListener("keydown",i))}function V(e){for(;e.firstChild;)e.removeChild(e.firstChild)}var Ot=Object.hasOwnProperty;var Ue=Qe(Oe(),1),Nt=(0,Ue.default)();function At(e){let t=Bt(mt(e,"index"),!0);return t.length===0?"/":t}var Pe=(e,t,u)=>{let i=new URL(e.getAttribute(t),u);e.setAttribute(t,i.pathname+i.hash)};function ze(e,t){e.querySelectorAll(\'[href^="./"], [href^="../"]\').forEach(u=>Pe(u,"href",t)),e.querySelectorAll(\'[src^="./"], [src^="../"]\').forEach(u=>Pe(u,"src",t))}function Ct(e){let t=e.split("/").filter(u=>u!=="").slice(0,-1).map(u=>"..").join("/");return t.length===0&&(t="."),t}function We(e,t){return dt(Ct(e),At(t))}function dt(...e){return e.filter(t=>t!=="").join("/").replace(/\\/\\/+/g,"/")}function pt(e,t){return e===t||e.endsWith("/"+t)}function mt(e,t){return pt(e,t)&&(e=e.slice(0,-t.length)),e}function Bt(e,t){return e.startsWith("/")&&(e=e.substring(1)),!t&&e.endsWith("/")&&(e=e.slice(0,-1)),e}var j="basic",L="",yt=e=>e.toLowerCase().split(/([^a-z]|[^\\x00-\\x7F])/),Z=new He.Document({charset:"latin:extra",encode:yt,document:{id:"id",tag:"tags",index:[{field:"title",tokenize:"forward"},{field:"content",tokenize:"forward"},{field:"tags",tokenize:"forward"}]}}),wt=new DOMParser,oe=new Map,ne=30,ie=8,vt=5,qe=e=>{let t=e.split(/\\s+/).filter(i=>i.trim()!==""),u=t.length;if(u>1)for(let i=1;i<u;i++)t.push(t.slice(0,i+1).join(" "));return t.sort((i,n)=>n.length-i.length)};function Ne(e,t,u){let i=qe(e),n=t.split(/\\s+/).filter(D=>D!==""),s=0,l=n.length-1;if(u){let D=f=>i.some(a=>f.toLowerCase().startsWith(a.toLowerCase())),o=n.map(D),F=0,E=0;for(let f=0;f<Math.max(n.length-ne,0);f++){let c=o.slice(f,f+ne).reduce((g,d)=>g+(d?1:0),0);c>=F&&(F=c,E=f)}s=Math.max(E-ne,0),l=Math.min(s+2*ne,n.length-1),n=n.slice(s,l)}let r=n.map(D=>{for(let o of i)if(D.toLowerCase().includes(o.toLowerCase())){let F=new RegExp(o.toLowerCase(),"gi");return D.replace(F,\'<span class="highlight">$&</span>\')}return D}).join(" ");return`${s===0?"":"..."}${r}${l===n.length-1?"":"..."}`}function xt(e,t){let u=new DOMParser,i=qe(e),n=u.parseFromString(t.innerHTML,"text/html"),s=r=>{let D=document.createElement("span");return D.className="highlight",D.textContent=r,D},l=(r,D)=>{if(r.nodeType===Node.TEXT_NODE){let o=r.nodeValue??"",F=new RegExp(D.toLowerCase(),"gi"),E=o.match(F);if(!E||E.length===0)return;let f=document.createElement("span"),a=0;for(let c of E){let g=o.indexOf(c,a);f.appendChild(document.createTextNode(o.slice(a,g))),f.appendChild(s(c)),a=g+c.length}f.appendChild(document.createTextNode(o.slice(a))),r.parentNode?.replaceChild(f,r)}else if(r.nodeType===Node.ELEMENT_NODE){if(r.classList.contains("highlight"))return;Array.from(r.childNodes).forEach(o=>l(o,D))}};for(let r of i)l(n.body,r);return n.body}document.addEventListener("nav",async e=>{let t=e.detail.url,u=await fetchData,i=document.getElementById("search-container"),n=i?.closest(".sidebar"),s=document.getElementById("search-icon"),l=document.getElementById("search-bar"),r=document.getElementById("search-layout"),D=Object.keys(u),o=h=>{r?.querySelector(`#${h.id}`)===null&&r?.appendChild(h)},F=r?.dataset?.preview==="true",E,f,a=document.createElement("div");a.id="results-container",o(a),F&&(E=document.createElement("div"),E.id="preview-container",o(E));function c(){i?.classList.remove("active"),l&&(l.value=""),n&&(n.style.zIndex="unset"),a&&V(a),E&&V(E),r&&r.classList.remove("display-results"),j="basic"}function g(h){j=h,n&&(n.style.zIndex="1"),i?.classList.add("active"),l?.focus()}let d=null;async function M(h){if(h.key==="k"&&(h.ctrlKey||h.metaKey)&&!h.shiftKey){h.preventDefault(),i?.classList.contains("active")?c():g("basic");return}else if(h.shiftKey&&(h.ctrlKey||h.metaKey)&&h.key.toLowerCase()==="k"){h.preventDefault(),i?.classList.contains("active")?c():g("tags"),l&&(l.value="#");return}if(d&&d.classList.remove("focus"),!!i?.classList.contains("active")){if(h.key==="Enter")if(a?.contains(document.activeElement)){let A=document.activeElement;if(A.classList.contains("no-match"))return;await W(A),A.click()}else{let A=document.getElementsByClassName("result-card")[0];if(!A||A?.classList.contains("no-match"))return;await W(A),A.click()}else if(h.key==="ArrowUp"||h.shiftKey&&h.key==="Tab"){if(h.preventDefault(),a?.contains(document.activeElement)){let A=d||document.activeElement,C=A?.previousElementSibling;A?.classList.remove("focus"),C?.focus(),C&&(d=C),await W(C)}}else if((h.key==="ArrowDown"||h.key==="Tab")&&(h.preventDefault(),document.activeElement===l||d!==null)){let A=d||document.getElementsByClassName("result-card")[0],C=A?.nextElementSibling;A?.classList.remove("focus"),C?.focus(),C&&(d=C),await W(C)}}}let x=(h,A)=>{let C=D[A];return{id:A,slug:C,title:j==="tags"?u[C].title:Ne(h,u[C].title??""),content:Ne(h,u[C].content??"",!0),tags:w(h.substring(1),u[C].tags)}};function w(h,A){return!A||j!=="tags"?[]:A.map(C=>C.toLowerCase().includes(h.toLowerCase())?`<li><p class="match-tag">#${C}</p></li>`:`<li><p>#${C}</p></li>`).slice(0,vt)}function k(h){return new URL(We(t,h),location.toString())}let _=({slug:h,title:A,content:C,tags:R})=>{let T=R.length>0?`<ul class="tags">${R.join("")}</ul>`:"",m=document.createElement("a");m.classList.add("result-card"),m.id=h,m.href=k(h).toString(),m.innerHTML=`<h3>${A}</h3>${T}${F&&window.innerWidth>600?"":`<p>${C}</p>`}`,m.addEventListener("click",S=>{S.altKey||S.ctrlKey||S.metaKey||S.shiftKey||c()});let I=S=>{S.altKey||S.ctrlKey||S.metaKey||S.shiftKey||c()};async function O(S){if(!S.target)return;let _e=S.target;await W(_e)}return m.addEventListener("mouseenter",O),window.addCleanup(()=>m.removeEventListener("mouseenter",O)),m.addEventListener("click",I),window.addCleanup(()=>m.removeEventListener("click",I)),m};async function Q(h){if(a)if(V(a),h.length===0?a.innerHTML=`<a class="result-card no-match">\n <h3>No results.</h3>\n <p>Try another search term?</p>\n </a>`:a.append(...h.map(_)),h.length===0&&E)V(E);else{let A=a.firstElementChild;A.classList.add("focus"),d=A,await W(A)}}async function z(h){if(oe.has(h))return oe.get(h);let A=k(h).toString(),C=await fetch(A).then(R=>R.text()).then(R=>{if(R===void 0)throw new Error(`Could not fetch ${A}`);let T=wt.parseFromString(R??"","text/html");return ze(T,A),[...T.getElementsByClassName("popover-hint")]});return oe.set(h,C),C}async function W(h){if(!r||!F||!h||!E)return;let A=h.id,C=await z(A).then(T=>T.flatMap(m=>[...xt(L,m).children]));f=document.createElement("div"),f.classList.add("preview-inner"),f.append(...C),E.replaceChildren(f),[...E.querySelectorAll(".highlight")].sort((T,m)=>m.innerHTML.length-T.innerHTML.length)[0]?.scrollIntoView({block:"start"})}async function Fe(h){if(!r||!Z)return;L=h.target.value,r.classList.toggle("display-results",L!==""),j=L.startsWith("#")?"tags":"basic";let A;if(j==="tags"){L=L.substring(1).trim();let m=L.indexOf(" ");if(m!=-1){let I=L.substring(0,m),O=L.substring(m+1).trim();A=await Z.searchAsync({query:O,limit:Math.max(ie,1e4),index:["title","content"],tag:I});for(let S of A)S.result=S.result.slice(0,ie);j="basic",L=O}else A=await Z.searchAsync({query:L,limit:ie,index:["tags"]})}else j==="basic"&&(A=await Z.searchAsync({query:L,limit:ie,index:["title","content"]}));let C=m=>{let I=A.filter(O=>O.field===m);return I.length===0?[]:[...I[0].result]},T=[...new Set([...C("title"),...C("content"),...C("tags")])].map(m=>x(L,m));await Q(T)}document.addEventListener("keydown",M),window.addCleanup(()=>document.removeEventListener("keydown",M)),s?.addEventListener("click",()=>g("basic")),window.addCleanup(()=>s?.removeEventListener("click",()=>g("basic"))),l?.addEventListener("input",Fe),window.addCleanup(()=>l?.removeEventListener("input",Fe)),je(i,c),await St(u)});async function St(e){let t=0,u=[];for(let[i,n]of Object.entries(e))u.push(Z.addAsync(t++,{id:t,slug:i,title:n.title,content:n.content,tags:n.tags}));return await Promise.all(u)}\n';import{jsx as jsx25,jsxs as jsxs14}from"preact/jsx-runtime";var defaultOptions14={enablePreview:!0},Search_default=__name(userOpts=>{let Search=__name(({displayClass,cfg})=>{let opts={...defaultOptions14,...userOpts},searchPlaceholder=i18n(cfg.locale).components.search.searchBarPlaceholder;return jsxs14("div",{class:classNames(displayClass,"search"),children:[jsxs14("div",{id:"search-icon",children:[jsx25("p",{children:i18n(cfg.locale).components.search.title}),jsx25("div",{}),jsxs14("svg",{tabIndex:0,"aria-labelledby":"title desc",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.9 19.7",children:[jsx25("title",{id:"title",children:"Search"}),jsx25("desc",{id:"desc",children:"Search"}),jsxs14("g",{class:"search-path",fill:"none",children:[jsx25("path",{"stroke-linecap":"square",d:"M18.5 18.3l-5.4-5.4"}),jsx25("circle",{cx:"8",cy:"8",r:"7"})]})]})]}),jsx25("div",{id:"search-container",children:jsxs14("div",{id:"search-space",children:[jsx25("input",{autocomplete:"off",id:"search-bar",name:"search",type:"text","aria-label":searchPlaceholder,placeholder:searchPlaceholder}),jsx25("div",{id:"search-layout","data-preview":opts.enablePreview})]})})]})},"Search");return Search.afterDOMLoaded=search_inline_default,Search.css=search_default,Search},"default");var footer_default=`footer {
text-align: left;
margin-bottom: 4rem;
opacity: 0.7;
}
footer ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: row;
gap: 1rem;
margin-top: -1rem;
}
.rings {
display: flex;
flex-direction: column;
}
.ring {
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
}
.ringbtn {
font-size: 0.9rem !important;
border-radius: 16px !important;
border: none !important;
background-color: rgba(100, 100, 100, 0.3) !important;
padding: 0.4rem 0.8rem !important;
margin: 0.2rem 0.4rem !important;
text-decoration: none !important;
width: fit-content !important;
height: fit-content !important;
cursor: pointer !important;
}
.ringbtn:hover {
background-color: rgba(100, 100, 100, 0.5) !important;
}
.ring svg {
display: none !important;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YX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91bmQtY29sb3I6IHJnYmEoMTAwLDEwMCwxMDAsIDAuMykgIWltcG9ydGFudDtcbiAgcGFkZGluZzogMC40cmVtIDAuOHJlbSAhaW1wb3J0YW50O1xuICBtYXJnaW46IDAuMnJlbSAwLjRyZW0gIWltcG9ydGFudDtcbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lICFpbXBvcnRhbnQ7XG4gIHdpZHRoOiBmaXQtY29udGVudCAhaW1wb3J0YW50O1xuICBoZWlnaHQ6IGZpdC1jb250ZW50ICFpbXBvcnRhbnQ7XG4gIGN1cnNvcjpwb2ludGVyICFpbXBvcnRhbnQ7XG59XG5cbi5yaW5nYnRuOmhvdmVye1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDEwMCwxMDAsMTAwLCAwLjUpICFpbXBvcnRhbnQ7XG59XG5cbi5yaW5nIHN2ZyB7XG4gIGRpc3BsYXk6bm9uZSAhaW1wb3J0YW50O1xufSJdfQ== */`;import{jsx as jsx26,jsxs as jsxs15}from"preact/jsx-runtime";import{Fragment as Fragment6,jsx as jsx27}from"preact/jsx-runtime";var DesktopOnly_default=__name(component=>{if(component){let Component=component,DesktopOnly=__name(props=>jsx27(Component,{displayClass:"desktop-only",...props}),"DesktopOnly");return DesktopOnly.displayName=component.displayName,DesktopOnly.afterDOMLoaded=component?.afterDOMLoaded,DesktopOnly.beforeDOMLoaded=component?.beforeDOMLoaded,DesktopOnly.css=component?.css,DesktopOnly}else return()=>jsx27(Fragment6,{})},"default");import{Fragment as Fragment7,jsx as jsx28}from"preact/jsx-runtime";var MobileOnly_default=__name(component=>{if(component){let Component=component,MobileOnly=__name(props=>jsx28(Component,{displayClass:"mobile-only",...props}),"MobileOnly");return MobileOnly.displayName=component.displayName,MobileOnly.afterDOMLoaded=component?.afterDOMLoaded,MobileOnly.beforeDOMLoaded=component?.beforeDOMLoaded,MobileOnly.css=component?.css,MobileOnly}else return()=>jsx28(Fragment7,{})},"default");import{jsx as jsx29,jsxs as jsxs16}from"preact/jsx-runtime";var breadcrumbs_default=`.breadcrumb-container {
margin: 0;
margin-top: 0.75rem;
padding: 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.5rem;
}
.breadcrumb-element {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.breadcrumb-element p {
margin: 0;
margin-left: 0.5rem;
padding: 0;
line-height: normal;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJicmVhZGNydW1icy5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7OztBQUdGO0VBT0U7RUFDQTtFQUNBO0VBQ0E7O0FBVEE7RUFDRTtFQUNBO0VBQ0E7RUFDQSIsInNvdXJjZXNDb250ZW50IjpbIi5icmVhZGNydW1iLWNvbnRhaW5lciB7XG4gIG1hcmdpbjogMDtcbiAgbWFyZ2luLXRvcDogMC43NXJlbTtcbiAgcGFkZGluZzogMDtcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IHJvdztcbiAgZmxleC13cmFwOiB3cmFwO1xuICBnYXA6IDAuNXJlbTtcbn1cblxuLmJyZWFkY3J1bWItZWxlbWVudCB7XG4gIHAge1xuICAgIG1hcmdpbjogMDtcbiAgICBtYXJnaW4tbGVmdDogMC41cmVtO1xuICAgIHBhZGRpbmc6IDA7XG4gICAgbGluZS1oZWlnaHQ6IG5vcm1hbDtcbiAgfVxuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogcm93O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbn1cbiJdfQ== */`;import{Fragment as Fragment8,jsx as jsx30,jsxs as jsxs17}from"preact/jsx-runtime";var defaultOptions15={spacerSymbol:"\u276F",rootName:"Home",resolveFrontmatterTitle:!0,hideOnRoot:!0,showCurrentPage:!0};function formatCrumb(displayName,baseSlug,currentSlug){return{displayName:displayName.replaceAll("-"," "),path:resolveRelative(baseSlug,currentSlug)}}__name(formatCrumb,"formatCrumb");var Breadcrumbs_default=__name(opts=>{let options2={...defaultOptions15,...opts},folderIndex,Breadcrumbs=__name(({fileData,allFiles,displayClass})=>{if(options2.hideOnRoot&&fileData.slug==="index")return jsx30(Fragment8,{});let crumbs=[formatCrumb(options2.rootName,fileData.slug,"/")];if(!folderIndex&&options2.resolveFrontmatterTitle){folderIndex=new Map;for(let file of allFiles){let folderParts=file.slug?.split("/");folderParts?.at(-1)==="index"&&folderIndex.set(folderParts.slice(0,-1).join("/"),file)}}let slugParts=fileData.slug?.split("/");if(slugParts){let isTagPath=slugParts[0]==="tags",currentPath="";for(let i=0;i<slugParts.length-1;i++){let curPathSegment=slugParts[i],currentFile=folderIndex?.get(slugParts.slice(0,i+1).join("/"));if(currentFile){let title=currentFile.frontmatter.title;title!=="index"&&(curPathSegment=title)}currentPath=joinSegments(currentPath,slugParts[i]);let includeTrailingSlash=!isTagPath||i<1,crumb=formatCrumb(curPathSegment,fileData.slug,currentPath+(includeTrailingSlash?"/":""));crumbs.push(crumb)}options2.showCurrentPage&&slugParts.at(-1)!=="index"&&crumbs.push({displayName:fileData.frontmatter.title,path:""})}return jsx30("nav",{class:classNames(displayClass,"breadcrumb-container"),"aria-label":"breadcrumbs",children:crumbs.map((crumb,index)=>jsxs17("div",{class:"breadcrumb-element",children:[jsx30("a",{href:crumb.path,children:crumb.displayName}),index!==crumbs.length-1&&jsx30("p",{children:` ${options2.spacerSymbol} `})]}))})},"Breadcrumbs");return Breadcrumbs.css=breadcrumbs_default,Breadcrumbs},"default");import{jsx as jsx31}from"preact/jsx-runtime";var PageImage=__name(({fileData,cfg,displayClass})=>{let title=cfg?.pageTitle??i18n(cfg.locale).propertyDefaults.title,baseDir=pathToRoot(fileData.slug);return jsx31("a",{href:baseDir,children:jsx31("img",{width:"100px",height:"100px",src:"https://assets.nexie.net/profileimage.webp",style:"width:100px; height:100px"})})},"PageImage");PageImage.css=`
.page-title {
margin: 0;
}
`;var PageImage_default=__name(()=>PageImage,"default");import{jsx as jsx32,jsxs as jsxs18}from"preact/jsx-runtime";var Homebar=__name(({fileData,cfg,displayClass})=>{let title=cfg?.pageTitle??i18n(cfg.locale).propertyDefaults.title,baseDir=pathToRoot(fileData.slug);return jsxs18("div",{class:"homebar",children:[jsx32("a",{class:"hb-button",href:"/",children:"Home"}),jsx32("a",{class:"hb-button",href:"/Characters",children:"Characters"}),jsx32("a",{class:"hb-button",href:"/Links",children:"Where you can find me"}),jsx32("a",{class:"hb-button",href:"/Projects",children:"Projects"}),jsx32("a",{class:"hb-button",href:"/Articles",children:"Articles"})]})},"Homebar");Homebar.css=`
.homebar {
margin: 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.hb-button {
font-size: 0.9rem;
border-radius: 16px;
border:none;
background-color: rgba(100,100,100, 0.3);
padding: 0.4rem 0.8rem;
margin: 0.2rem 0.4rem;
text-decoration: none;
width: fit-content;
height: fit-content;
cursor:pointer;
}
.hb-button:hover {
background-color: rgba(100,100,100, 0.5);
}
`;var Homebar_default=__name(()=>Homebar,"default");import{jsx as jsx33,jsxs as jsxs19}from"preact/jsx-runtime";var Footer_links_default=__name(opts=>{let FooterLinks=__name(({displayClass,cfg})=>{let year=new Date().getFullYear(),links=opts?.links??[],rings=opts?.rings??[];return jsxs19("div",{children:[jsx33("hr",{}),jsx33("ul",{children:Object.entries(links).map(([text,link])=>jsx33("li",{children:jsx33("a",{href:link,children:text})}))}),jsx33("div",{class:"rings",children:Object.entries(rings).map(([text,link])=>jsxs19("div",{class:"ring",children:[jsx33("a",{class:"ringbtn",href:link+"previous?host=derg.cz",children:"\u25C4"}),jsx33("a",{class:"ringbtn",href:link,children:text}),jsx33("a",{class:"ringbtn",href:link+"random",children:"Random"}),jsx33("a",{class:"ringbtn",href:link+"next?host=derg.cz",children:"\u25BA"})]}))})]})},"FooterLinks");return FooterLinks.css=footer_default,FooterLinks},"default");var customfooter_default=`footer {
text-align: left;
margin-bottom: 4rem;
}
footer > * {
opacity: 0.7;
}
footer ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: row;
gap: 1rem;
margin-top: -1rem;
}
.rings {
display: flex;
flex-direction: column;
}
.ring {
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
}
.ringbtn {
font-size: 0.9rem !important;
border-radius: 16px !important;
border: none !important;
background-color: rgba(100, 100, 100, 0.3) !important;
padding: 0.4rem 0.8rem !important;
margin: 0.2rem 0.4rem !important;
text-decoration: none !important;
width: fit-content !important;
height: fit-content !important;
cursor: pointer !important;
}
.ringbtn:hover {
background-color: rgba(100, 100, 100, 0.5) !important;
}
.ring svg {
display: none !important;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJjdXN0b21mb290ZXIuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0VBQ0E7O0FBRUE7RUFDRTs7QUFHRjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOzs7QUFJSjtFQUNFO0VBQ0E7OztBQUVGO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7OztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7OztBQUdGO0VBQ0U7OztBQUdGO0VBQ0UiLCJzb3VyY2VzQ29udGVudCI6WyJmb290ZXIge1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gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMTAwLDEwMCwxMDAsIDAuNSkgIWltcG9ydGFudDtcbn1cblxuLnJpbmcgc3ZnIHtcbiAgZGlzcGxheTpub25lICFpbXBvcnRhbnQ7XG59Il19 */`;var buttons8831_default=`.btn8831-container {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
max-width: 60%;
margin: 0 auto;
margin-top: 10px;
opacity: 1;
}
.button-item {
margin: 5px;
opacity: 1;
display: flex;
}
.button-group a, .button-group iframe {
width: 88px;
height: 31px;
}
.button-group img {
width: 88px;
height: 31px;
opacity: 1;
margin: 0;
}
.button-group {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-bottom: 10px; /* Space between groups */
}
.btn8831-container hr {
width: 100%;
border: 0;
border-top: 1px solid #ccc;
margin: 10px 0;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJidXR0b25zODgzMS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7O0FBRUY7RUFDRTtFQUNBO0VBQ0E7OztBQUVGO0VBQ0U7RUFDQTs7O0FBRUY7RUFDRTtFQUNBO0VBQ0E7RUFDQTs7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7RUFDQTs7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7RUFDQSIsInNvdXJjZXNDb250ZW50IjpbIi5idG44ODMxLWNvbnRhaW5lciB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gIGZsZXgtd3JhcDogd3JhcDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIG1heC13aWR0aDogNjAlO1xuICBtYXJnaW46IDAgYXV0bztcbiAgbWFyZ2luLXRvcDogMTBweDtcbiAgb3BhY2l0eTogMS4wO1xufVxuLmJ1dHRvbi1pdGVtIHtcbiAgbWFyZ2luOiA1cHg7XG4gIG9wYWNpdHk6IDE7XG4gIGRpc3BsYXk6IGZsZXg7XG59XG4uYnV0dG9uLWdyb3VwIGEsIC5idXR0b24tZ3JvdXAgaWZyYW1lIHtcbiAgd2lkdGg6IDg4cHg7XG4gIGhlaWdodDogMzFweDtcbn1cbi5idXR0b24tZ3JvdXAgaW1nIHtcbiAgd2lkdGg6IDg4cHg7XG4gIGhlaWdodDogMzFweDtcbiAgb3BhY2l0eTogMTtcbiAgbWFyZ2luOiAwO1xufVxuXG4uYnV0dG9uLWdyb3VwIHtcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC13cmFwOiB3cmFwO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDsgLyogU3BhY2UgYmV0d2VlbiBncm91cHMgKi9cbn1cblxuLmJ0bjg4MzEtY29udGFpbmVyIGhyIHtcbiAgd2lkdGg6IDEwMCU7XG4gIGJvcmRlcjogMDtcbiAgYm9yZGVyLXRvcDogMXB4IHNvbGlkICNjY2M7XG4gIG1hcmdpbjogMTBweCAwO1xufVxuIl19 */`;var buttons_default=[{image:"https://assets.derg.cz/buttons/theysosmall_by_liah.png",url:"https://smolderg.xyz",alt:'"They so small!" in large letters accompanied by an arrow pointing at a tiny dragon in the corner of the image, surrounded by the smaller bits of text "Wow!" "Look!" and "Pet them!"',title:'"They so small!" in large letters accompanied by an arrow pointing at a tiny dragon in the corner of the image, surrounded by the smaller bits of text "Wow!" "Look!" and "Pet them!"',type:"friend",contentType:"image"},{url:"//incr.easrng.net/badge?key=dergcz",alt:"Increment Badge",title:"Increment Badge",type:"misc",contentType:"iframe",iframeAttributes:{style:"background: url(//incr.easrng.net/bg.gif)",width:"88",height:"31",frameborder:"0"}},{image:"https://assets.derg.cz/buttons/sirlan.png",url:"https://dragon-vi.be",alt:"Button with the text Sirlan which points to dragon-vi.be",title:"Sirlan, the adorable eastern derg",type:"friend",contentType:"image"},{image:"https://assets.derg.cz/buttons/say-no-to-web3.gif",url:"https://assets.derg.cz/buttons/say-no-to-web3.gif",alt:"Say no to web3! Keep the web free!",title:"Say no to web3! Keep the web free!",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/queerpride.gif",url:"https://assets.derg.cz/buttons/queerpride.gif",alt:"Queer pride!",title:"Queer pride!",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/dragons-now.jpg",url:"https://assets.derg.cz/buttons/dragons-now.jpg",alt:'Button witht the text "dragons now!" and a picture of a flying dragon',title:"DRAGONS NOW!",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/paws.gif",url:"https://assets.derg.cz/buttons/paws.gif",alt:"",title:"",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/new-tab.gif",url:"https://assets.derg.cz/buttons/new-tab.gif",alt:"Don't let this img be lonely",title:"Don't let this img be lonely",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/newlambda.gif",url:"https://assets.derg.cz/buttons/newlambda.gif",alt:"HL:New Lambda research facility",title:"HL:New Lambda research facility",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/phonechump.gif",url:"https://assets.derg.cz/buttons/phonechump.gif",alt:"Don't be a phone chump! Get a computer!",title:"Don't be a phone chump! Get a computer!",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/narrow-head.gif",url:"https://assets.derg.cz/buttons/narrow-head.gif",alt:"Coming soon.",title:"C\u0334\u0357\u033Co\u0336\u0312\u0328m\u0337\u0352\u0353i\u0334\u0304\u0332n\u0337\u0310\u0323g\u0336\u035B\u0339 \u0336\u0357\u0323s\u0338\u0360\u033Bo\u0337\u0304\u0320o\u0335\u0350\u031Dn\u0334\u031A\u0321.\u0337\u0306\u033C",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/screw.gif",url:"http://localhost/",alt:"Screw y'all, I'm going back to my local network",title:"Screw y'all, I'm going back to my local network",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/transnow2.gif",url:"https://assets.derg.cz/buttons/transnow2.gif",alt:"TRANS RIGHTS NOW!",title:"TRANS RIGHTS NOW!",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/linkex.gif",url:"https://assets.derg.cz/buttons/linkex.gif",alt:"Link Exchange, run by people!",title:"Link Exchange, run by people!",type:"misc",contentType:"image"},{image:"https://assets.derg.cz/buttons/button-piracy.gif",url:"https://assets.derg.cz/buttons/button-piracy.gif",alt:"Piracy Now!",title:"Piracy Now!",type:"misc",contentType:"image"}];import DOMPurify from"dompurify";import{jsx as jsx34,jsxs as jsxs20}from"preact/jsx-runtime";var Btn8831_default=__name(()=>{let Btn8831=__name(props=>{let{displayClass}=props,groupedButtons=groupButtonsByType(buttons_default),typeOrder=["friend","standard","misc"];return jsx34("div",{class:`btn8831-container ${displayClass??""}`,children:typeOrder.map((type,index)=>{let buttons=groupedButtons[type];return buttons&&buttons.length>0?jsxs20("div",{children:[jsx34("div",{class:"button-group",children:buttons.map((button,idx)=>jsx34("div",{class:"button-item",children:renderButtonContent(button)},idx))}),index<typeOrder.length-1&&jsx34("hr",{})]},type):null})})},"Btn8831");return Btn8831.css=buttons8831_default,Btn8831},"default");function groupButtonsByType(buttons){let groups={misc:[],friend:[],standard:[]};return buttons.forEach(button=>{let type=button.type?.toLowerCase()||"standard";type==="fren"&&(type="friend"),groups[type]||(type="standard"),groups[type].push(button)}),groups}__name(groupButtonsByType,"groupButtonsByType");function renderButtonContent(button){let contentType=button.contentType?.toLowerCase()||"image",content=null;if(contentType!=="image"){if(contentType!=="iframe"){if(contentType==="text"){let borderColors=button.border||["#000","#000"],textContent=button.text||"",textColor=button.textColor||"#000",sanitizedTextContent=DOMPurify.sanitize(textContent),divStyle={width:"88px",height:"31px",boxSizing:"border-box",borderStyle:"solid",borderWidth:"2px",borderTopColor:borderColors[0],borderRightColor:borderColors[0],borderBottomColor:borderColors[1],borderLeftColor:borderColors[1],display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",overflow:"hidden",color:textColor},textElement=jsx34("div",{style:divStyle,dangerouslySetInnerHTML:{__html:sanitizedTextContent}});button.url?content=jsx34("a",{href:button.url,children:textElement}):content=textElement}else if(contentType!=="custom")return null}}return content}__name(renderButtonContent,"renderButtonContent");import{jsx as jsx35,jsxs as jsxs21}from"preact/jsx-runtime";var CustomFooter_default=__name(opts=>{let FooterLinks=Footer_links_default(opts),Btn8831=Btn8831_default(),CustomFooter=__name(props=>jsxs21("footer",{class:`${props.displayClass??""}`,children:[jsx35(FooterLinks,{...props}),jsx35(Btn8831,{...props})]}),"CustomFooter");return CustomFooter.css=customfooter_default+buttons8831_default,CustomFooter},"default");var sharedPageComponents={head:Head_default(),header:[DesktopOnly_default(PageImage_default()),Homebar_default()],footer:CustomFooter_default({links:{"Main social profile":"https://derg.social/@ulysia"},rings:{Fediring:"https://fediring.net/"}})},defaultContentPageLayout={beforeBody:[MobileOnly_default(Explorer_default()),Breadcrumbs_default(),ArticleTitle_default(),ContentMeta_default(),TagList_default()],left:[PageTitle_default(),MobileOnly_default(Spacer_default()),Search_default(),Darkmode_default(),DesktopOnly_default(Explorer_default())],right:[Graph_default(),DesktopOnly_default(TableOfContents_default()),Backlinks_default()]},defaultListPageLayout={beforeBody:[MobileOnly_default(Explorer_default()),Breadcrumbs_default(),ArticleTitle_default(),ContentMeta_default()],left:[PageTitle_default(),MobileOnly_default(Spacer_default()),Search_default(),Darkmode_default(),DesktopOnly_default(Explorer_default())],right:[Graph_default({localGraph:{depth:-1},globalGraph:{depth:-1}}),DesktopOnly_default(TableOfContents_default()),Backlinks_default()]};import chalk4 from"chalk";import path6 from"path";import fs2 from"fs";var write=__name(async({ctx,slug,ext,content})=>{let pathToPage=joinSegments(ctx.argv.output,slug+ext),dir=path6.dirname(pathToPage);return await fs2.promises.mkdir(dir,{recursive:!0}),await fs2.promises.writeFile(pathToPage,content),pathToPage},"write");var DepGraph=class{static{__name(this,"DepGraph")}_graph=new Map;constructor(){this._graph=new Map}export(){return{nodes:this.nodes,edges:this.edges}}toString(){return JSON.stringify(this.export(),null,2)}get nodes(){return Array.from(this._graph.keys())}get edges(){let edges=[];return this.forEachEdge(edge=>edges.push(edge)),edges}hasNode(node){return this._graph.has(node)}addNode(node){this._graph.has(node)||this._graph.set(node,{incoming:new Set,outgoing:new Set})}removeNode(node){if(this._graph.has(node)){for(let target of this._graph.get(node).outgoing)this.removeEdge(node,target);for(let source of this._graph.get(node).incoming)this.removeEdge(source,node);this._graph.delete(node)}}forEachNode(callback){for(let node of this._graph.keys())callback(node)}hasEdge(from,to){return!!this._graph.get(from)?.outgoing.has(to)}addEdge(from,to){this.addNode(from),this.addNode(to),this._graph.get(from).outgoing.add(to),this._graph.get(to).incoming.add(from)}removeEdge(from,to){this._graph.has(from)&&this._graph.has(to)&&(this._graph.get(from).outgoing.delete(to),this._graph.get(to).incoming.delete(from))}outDegree(node){return this.hasNode(node)?this._graph.get(node).outgoing.size:-1}inDegree(node){return this.hasNode(node)?this._graph.get(node).incoming.size:-1}forEachOutNeighbor(node,callback){this._graph.get(node)?.outgoing.forEach(callback)}forEachInNeighbor(node,callback){this._graph.get(node)?.incoming.forEach(callback)}forEachEdge(callback){for(let[source,{outgoing}]of this._graph.entries())for(let target of outgoing)callback([source,target])}mergeGraph(other){other.forEachEdge(([source,target])=>{this.addNode(source),this.addNode(target),this.addEdge(source,target)})}updateIncomingEdgesForNode(other,node){this.addNode(node),other.forEachInNeighbor(node,neighbor=>{this.addEdge(neighbor,node)}),this.forEachEdge(([source,target])=>{target===node&&!other.hasEdge(source,target)&&this.removeEdge(source,target)})}removeOrphanNodes(){let orphanNodes=new Set;return this.forEachNode(node=>{this.inDegree(node)===0&&this.outDegree(node)===0&&orphanNodes.add(node)}),orphanNodes.forEach(node=>{this.removeNode(node)}),orphanNodes}getLeafNodes(node){let stack=[node],visited=new Set,leafNodes=new Set;for(;stack.length>0;){let node2=stack.pop();visited.has(node2)||(visited.add(node2),this.outDegree(node2)===0&&leafNodes.add(node2),this.forEachOutNeighbor(node2,neighbor=>{visited.has(neighbor)||stack.push(neighbor)}))}return leafNodes}getLeafNodeAncestors(node){let leafNodes=this.getLeafNodes(node),visited=new Set,upstreamNodes=new Set;return leafNodes.forEach(leafNode=>{let stack=[leafNode];for(;stack.length>0;){let node2=stack.pop();visited.has(node2)||(visited.add(node2),this.outDegree(node2)!==0&&upstreamNodes.add(node2),this.forEachInNeighbor(node2,parentNode=>{visited.has(parentNode)||stack.push(parentNode)}))}}),upstreamNodes}};var parseDependencies=__name((argv,hast,file)=>{let dependencies=[];return visit6(hast,"element",elem=>{let ref=null;if(["script","img","audio","video","source","iframe"].includes(elem.tagName)&&elem?.properties?.src?ref=elem.properties.src.toString():["a","link"].includes(elem.tagName)&&elem?.properties?.href&&(ref=elem.properties.href.toString()),ref===null||!isRelativeURL(ref))return;let fp=path7.join(file.data.filePath,path7.relative(argv.directory,ref)).replace(/\\/g,"/");fp.split("/").pop()?.includes(".")||(fp+=".md"),dependencies.push(fp)}),dependencies},"parseDependencies"),ContentPage=__name(userOpts=>{let opts={...sharedPageComponents,...defaultContentPageLayout,pageBody:Content_default(),...userOpts},{head:Head,header,beforeBody,pageBody,left,right,footer:Footer}=opts,Header2=Header_default(),Body2=Body_default();return{name:"ContentPage",getQuartzComponents(){return[Head,Header2,Body2,...header,...beforeBody,pageBody,...left,...right,Footer]},async getDependencyGraph(ctx,content,_resources){let graph=new DepGraph;for(let[tree,file]of content){let sourcePath=file.data.filePath,slug=file.data.slug;graph.addEdge(sourcePath,joinSegments(ctx.argv.output,slug+".html")),parseDependencies(ctx.argv,tree,file).forEach(dep=>{graph.addEdge(dep,sourcePath)})}return graph},async emit(ctx,content,resources){let cfg=ctx.cfg.configuration,fps=[],allFiles=content.map(c=>c[1].data),containsIndex=!1;for(let[tree,file]of content){let slug=file.data.slug;slug==="index"&&(containsIndex=!0);let externalResources=pageResources(pathToRoot(slug),resources),componentData={ctx,fileData:file.data,externalResources,cfg,children:[],tree,allFiles},content2=renderPage(cfg,slug,componentData,opts,externalResources),fp=await write({ctx,content:content2,slug,ext:".html"});fps.push(fp)}return!containsIndex&&!ctx.argv.fastRebuild&&console.log(chalk4.yellow(`
Warning: you seem to be missing an \`index.md\` home page file at the root of your \`${ctx.argv.directory}\` folder. This may cause errors when deploying.`)),fps}}},"ContentPage");import{VFile}from"vfile";function defaultProcessedContent(vfileData){let root={type:"root",children:[]},vfile=new VFile("");return vfile.data=vfileData,[root,vfile]}__name(defaultProcessedContent,"defaultProcessedContent");var TagPage=__name(userOpts=>{let opts={...sharedPageComponents,...defaultListPageLayout,pageBody:TagContent_default(),...userOpts},{head:Head,header,beforeBody,pageBody,left,right,footer:Footer}=opts,Header2=Header_default(),Body2=Body_default();return{name:"TagPage",getQuartzComponents(){return[Head,Header2,Body2,...header,...beforeBody,pageBody,...left,...right,Footer]},async getDependencyGraph(ctx,content,_resources){let graph=new DepGraph;for(let[_tree,file]of content){let sourcePath=file.data.filePath,tags=(file.data.frontmatter?.tags??[]).flatMap(getAllSegmentPrefixes);tags.length>0&&tags.push("index");for(let tag of tags)graph.addEdge(sourcePath,joinSegments(ctx.argv.output,"tags",tag+".html"))}return graph},async emit(ctx,content,resources){let fps=[],allFiles=content.map(c=>c[1].data),cfg=ctx.cfg.configuration,tags=new Set(allFiles.flatMap(data=>data.frontmatter?.tags??[]).flatMap(getAllSegmentPrefixes));tags.add("index");let tagDescriptions=Object.fromEntries([...tags].map(tag=>{let title=tag==="index"?i18n(cfg.locale).pages.tagContent.tagIndex:`${i18n(cfg.locale).pages.tagContent.tag}: ${tag}`;return[tag,defaultProcessedContent({slug:joinSegments("tags",tag),frontmatter:{title,tags:[]}})]}));for(let[tree,file]of content){let slug=file.data.slug;if(slug.startsWith("tags/")){let tag=slug.slice(5);tags.has(tag)&&(tagDescriptions[tag]=[tree,file])}}for(let tag of tags){let slug=joinSegments("tags",tag),externalResources=pageResources(pathToRoot(slug),resources),[tree,file]=tagDescriptions[tag],componentData={ctx,fileData:file.data,externalResources,cfg,children:[],tree,allFiles},content2=renderPage(cfg,slug,componentData,opts,externalResources),fp=await write({ctx,content:content2,slug:file.data.slug,ext:".html"});fps.push(fp)}return fps}}},"TagPage");import path8 from"path";var FolderPage=__name(userOpts=>{let opts={...sharedPageComponents,...defaultListPageLayout,pageBody:FolderContent_default(),...userOpts},{head:Head,header,beforeBody,pageBody,left,right,footer:Footer}=opts,Header2=Header_default(),Body2=Body_default();return{name:"FolderPage",getQuartzComponents(){return[Head,Header2,Body2,...header,...beforeBody,pageBody,...left,...right,Footer]},async getDependencyGraph(_ctx,content,_resources){let graph=new DepGraph;return content.map(([_tree,vfile])=>{let slug=vfile.data.slug,folderName=path8.dirname(slug??"");slug&&folderName!=="."&&folderName!=="tags"&&graph.addEdge(vfile.data.filePath,joinSegments(folderName,"index.html"))}),graph},async emit(ctx,content,resources){let fps=[],allFiles=content.map(c=>c[1].data),cfg=ctx.cfg.configuration,folders=new Set(allFiles.flatMap(data=>{let slug=data.slug,folderName=path8.dirname(slug??"");return slug&&folderName!=="."&&folderName!=="tags"?[folderName]:[]})),folderDescriptions=Object.fromEntries([...folders].map(folder=>[folder,defaultProcessedContent({slug:joinSegments(folder,"index"),frontmatter:{title:`${i18n(cfg.locale).pages.folderContent.folder}: ${folder}`,tags:[]}})]));for(let[tree,file]of content){let slug=stripSlashes(simplifySlug(file.data.slug));folders.has(slug)&&(folderDescriptions[slug]=[tree,file])}for(let folder of folders){let slug=joinSegments(folder,"index"),externalResources=pageResources(pathToRoot(slug),resources),[tree,file]=folderDescriptions[folder],componentData={ctx,fileData:file.data,externalResources,cfg,children:[],tree,allFiles},content2=renderPage(cfg,slug,componentData,opts,externalResources),fp=await write({ctx,content:content2,slug,ext:".html"});fps.push(fp)}return fps}}},"FolderPage");import{toHtml as toHtml2}from"hast-util-to-html";var defaultOptions16={enableSiteMap:!0,enableRSS:!0,rssLimit:10,rssFullHtml:!1,includeEmptyFiles:!0};function generateSiteMap(cfg,idx){let base=cfg.baseUrl??"",createURLEntry=__name((slug,content)=>`<url>
<loc>https://${joinSegments(base,encodeURI(slug))}</loc>
${content.date&&`<lastmod>${content.date.toISOString()}</lastmod>`}
</url>`,"createURLEntry");return`<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">${Array.from(idx).map(([slug,content])=>createURLEntry(simplifySlug(slug),content)).join("")}</urlset>`}__name(generateSiteMap,"generateSiteMap");function generateRSSFeed(cfg,idx,limit){let base=cfg.baseUrl??"",createURLEntry=__name((slug,content)=>`<item>
<title>${escapeHTML(content.title)}</title>
<link>https://${joinSegments(base,encodeURI(slug))}</link>
<guid>https://${joinSegments(base,encodeURI(slug))}</guid>
<description>${content.richContent??content.description}</description>
<pubDate>${content.date?.toUTCString()}</pubDate>
</item>`,"createURLEntry"),items=Array.from(idx).sort(([_,f1],[__,f2])=>f1.date&&f2.date?f2.date.getTime()-f1.date.getTime():f1.date&&!f2.date?-1:!f1.date&&f2.date?1:f1.title.localeCompare(f2.title)).map(([slug,content])=>createURLEntry(simplifySlug(slug),content)).slice(0,limit??idx.size).join("");return`<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>${escapeHTML(cfg.pageTitle)}</title>
<link>https://${base}</link>
<description>${limit?i18n(cfg.locale).pages.rss.lastFewNotes({count:limit}):i18n(cfg.locale).pages.rss.recentNotes} on ${escapeHTML(cfg.pageTitle)}</description>
<generator>Quartz -- quartz.jzhao.xyz</generator>
${items}
</channel>
</rss>`}__name(generateRSSFeed,"generateRSSFeed");var ContentIndex=__name(opts=>(opts={...defaultOptions16,...opts},{name:"ContentIndex",async getDependencyGraph(ctx,content,_resources){let graph=new DepGraph;for(let[_tree,file]of content){let sourcePath=file.data.filePath;graph.addEdge(sourcePath,joinSegments(ctx.argv.output,"static/contentIndex.json")),opts?.enableSiteMap&&graph.addEdge(sourcePath,joinSegments(ctx.argv.output,"sitemap.xml")),opts?.enableRSS&&graph.addEdge(sourcePath,joinSegments(ctx.argv.output,"index.xml"))}return graph},async emit(ctx,content,_resources){let cfg=ctx.cfg.configuration,emitted=[],linkIndex=new Map;for(let[tree,file]of content){let slug=file.data.slug,date=getDate(ctx.cfg.configuration,file.data)??new Date;(opts?.includeEmptyFiles||file.data.text&&file.data.text!=="")&&linkIndex.set(slug,{title:file.data.frontmatter?.title,links:file.data.links??[],tags:file.data.frontmatter?.tags??[],content:file.data.text??"",richContent:opts?.rssFullHtml?escapeHTML(toHtml2(tree,{allowDangerousHtml:!0})):void 0,date,description:file.data.description??""})}opts?.enableSiteMap&&emitted.push(await write({ctx,content:generateSiteMap(cfg,linkIndex),slug:"sitemap",ext:".xml"})),opts?.enableRSS&&emitted.push(await write({ctx,content:generateRSSFeed(cfg,linkIndex,opts.rssLimit),slug:"index",ext:".xml"}));let fp=joinSegments("static","contentIndex"),simplifiedIndex=Object.fromEntries(Array.from(linkIndex).map(([slug,content2])=>(delete content2.description,delete content2.date,[slug,content2])));return emitted.push(await write({ctx,content:JSON.stringify(simplifiedIndex),slug:fp,ext:".json"})),emitted},getQuartzComponents:()=>[]}),"ContentIndex");import path9 from"path";var AliasRedirects=__name(()=>({name:"AliasRedirects",getQuartzComponents(){return[]},async getDependencyGraph(ctx,content,_resources){let graph=new DepGraph,{argv}=ctx;for(let[_tree,file]of content){let dir=path9.posix.relative(argv.directory,path9.dirname(file.data.filePath)),slugs=(file.data.frontmatter?.aliases??[]).map(alias=>path9.posix.join(dir,alias)),permalink=file.data.frontmatter?.permalink;typeof permalink=="string"&&slugs.push(permalink);for(let slug of slugs)slug.endsWith("/")&&(slug=joinSegments(slug,"index")),graph.addEdge(file.data.filePath,joinSegments(argv.output,slug+".html"))}return graph},async emit(ctx,content,_resources){let{argv}=ctx,fps=[];for(let[_tree,file]of content){let ogSlug=simplifySlug(file.data.slug),dir=path9.posix.relative(argv.directory,path9.dirname(file.data.filePath)),slugs=(file.data.frontmatter?.aliases??[]).map(alias=>path9.posix.join(dir,alias)),permalink=file.data.frontmatter?.permalink;typeof permalink=="string"&&slugs.push(permalink);for(let slug of slugs){slug.endsWith("/")&&(slug=joinSegments(slug,"index"));let redirUrl=resolveRelative(slug,file.data.slug),fp=await write({ctx,content:`
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>${ogSlug}</title>
<link rel="canonical" href="${redirUrl}">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=${redirUrl}">
</head>
</html>
`,slug,ext:".html"});fps.push(fp)}}return fps}}),"AliasRedirects");import path11 from"path";import fs3 from"fs";import path10 from"path";import{globby}from"globby";function toPosixPath(fp){return fp.split(path10.sep).join("/")}__name(toPosixPath,"toPosixPath");async function glob(pattern,cwd,ignorePatterns){return(await globby(pattern,{cwd,ignore:ignorePatterns,gitignore:!0})).map(toPosixPath)}__name(glob,"glob");var filesToCopy=__name(async(argv,cfg)=>await glob("**",argv.directory,["**/*.md",...cfg.configuration.ignorePatterns]),"filesToCopy"),Assets=__name(()=>({name:"Assets",getQuartzComponents(){return[]},async getDependencyGraph(ctx,_content,_resources){let{argv,cfg}=ctx,graph=new DepGraph,fps=await filesToCopy(argv,cfg);for(let fp of fps){let ext=path11.extname(fp),src=joinSegments(argv.directory,fp),name=slugifyFilePath(fp,!0)+ext,dest=joinSegments(argv.output,name);graph.addEdge(src,dest)}return graph},async emit({argv,cfg},_content,_resources){let assetsPath=argv.output,fps=await filesToCopy(argv,cfg),res=[];for(let fp of fps){let ext=path11.extname(fp),src=joinSegments(argv.directory,fp),name=slugifyFilePath(fp,!0)+ext,dest=joinSegments(assetsPath,name),dir=path11.dirname(dest);await fs3.promises.mkdir(dir,{recursive:!0}),await fs3.promises.copyFile(src,dest),res.push(dest)}return res}}),"Assets");import fs4 from"fs";var Static=__name(()=>({name:"Static",getQuartzComponents(){return[]},async getDependencyGraph({argv,cfg},_content,_resources){let graph=new DepGraph,staticPath=joinSegments(QUARTZ,"static"),fps=await glob("**",staticPath,cfg.configuration.ignorePatterns);for(let fp of fps)graph.addEdge(joinSegments("static",fp),joinSegments(argv.output,"static",fp));return graph},async emit({argv,cfg},_content,_resources){let staticPath=joinSegments(QUARTZ,"static"),fps=await glob("**",staticPath,cfg.configuration.ignorePatterns);return await fs4.promises.cp(staticPath,joinSegments(argv.output,"static"),{recursive:!0,dereference:!0}),fps.map(fp=>joinSegments(argv.output,"static",fp))}}),"Static");var spa_inline_default='var O=Object.create;var b=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var _=(u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports);var H=(u,e,D,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let F of W(e))!V.call(u,F)&&F!==D&&b(u,F,{get:()=>e[F],enumerable:!(r=$(e,F))||r.enumerable});return u};var q=(u,e,D)=>(D=u!=null?O(I(u)):{},H(e||!u||!u.__esModule?b(D,"default",{value:u,enumerable:!0}):D,u));var T=_((Eu,L)=>{"use strict";L.exports=J;function f(u){return u instanceof Buffer?Buffer.from(u):new u.constructor(u.buffer.slice(),u.byteOffset,u.length)}function J(u){if(u=u||{},u.circles)return X(u);return u.proto?r:D;function e(F,i){for(var t=Object.keys(F),n=new Array(t.length),a=0;a<t.length;a++){var l=t[a],o=F[l];typeof o!="object"||o===null?n[l]=o:o instanceof Date?n[l]=new Date(o):ArrayBuffer.isView(o)?n[l]=f(o):n[l]=i(o)}return n}function D(F){if(typeof F!="object"||F===null)return F;if(F instanceof Date)return new Date(F);if(Array.isArray(F))return e(F,D);if(F instanceof Map)return new Map(e(Array.from(F),D));if(F instanceof Set)return new Set(e(Array.from(F),D));var i={};for(var t in F)if(Object.hasOwnProperty.call(F,t)!==!1){var n=F[t];typeof n!="object"||n===null?i[t]=n:n instanceof Date?i[t]=new Date(n):n instanceof Map?i[t]=new Map(e(Array.from(n),D)):n instanceof Set?i[t]=new Set(e(Array.from(n),D)):ArrayBuffer.isView(n)?i[t]=f(n):i[t]=D(n)}return i}function r(F){if(typeof F!="object"||F===null)return F;if(F instanceof Date)return new Date(F);if(Array.isArray(F))return e(F,r);if(F instanceof Map)return new Map(e(Array.from(F),r));if(F instanceof Set)return new Set(e(Array.from(F),r));var i={};for(var t in F){var n=F[t];typeof n!="object"||n===null?i[t]=n:n instanceof Date?i[t]=new Date(n):n instanceof Map?i[t]=new Map(e(Array.from(n),r)):n instanceof Set?i[t]=new Set(e(Array.from(n),r)):ArrayBuffer.isView(n)?i[t]=f(n):i[t]=r(n)}return i}}function X(u){var e=[],D=[];return u.proto?i:F;function r(t,n){for(var a=Object.keys(t),l=new Array(a.length),o=0;o<a.length;o++){var A=a[o],s=t[A];if(typeof s!="object"||s===null)l[A]=s;else if(s instanceof Date)l[A]=new Date(s);else if(ArrayBuffer.isView(s))l[A]=f(s);else{var S=e.indexOf(s);S!==-1?l[A]=D[S]:l[A]=n(s)}}return l}function F(t){if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return r(t,F);if(t instanceof Map)return new Map(r(Array.from(t),F));if(t instanceof Set)return new Set(r(Array.from(t),F));var n={};e.push(t),D.push(n);for(var a in t)if(Object.hasOwnProperty.call(t,a)!==!1){var l=t[a];if(typeof l!="object"||l===null)n[a]=l;else if(l instanceof Date)n[a]=new Date(l);else if(l instanceof Map)n[a]=new Map(r(Array.from(l),F));else if(l instanceof Set)n[a]=new Set(r(Array.from(l),F));else if(ArrayBuffer.isView(l))n[a]=f(l);else{var o=e.indexOf(l);o!==-1?n[a]=D[o]:n[a]=F(l)}}return e.pop(),D.pop(),n}function i(t){if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return r(t,i);if(t instanceof Map)return new Map(r(Array.from(t),i));if(t instanceof Set)return new Set(r(Array.from(t),i));var n={};e.push(t),D.push(n);for(var a in t){var l=t[a];if(typeof l!="object"||l===null)n[a]=l;else if(l instanceof Date)n[a]=new Date(l);else if(l instanceof Map)n[a]=new Map(r(Array.from(l),i));else if(l instanceof Set)n[a]=new Set(r(Array.from(l),i));else if(ArrayBuffer.isView(l))n[a]=f(l);else{var o=e.indexOf(l);o!==-1?n[a]=D[o]:n[a]=i(l)}}return e.pop(),D.pop(),n}}});var g=u=>(e,D)=>e[`node${u}`]===D[`node${u}`],z=g("Name"),K=g("Type"),Z=g("Value");function x(u,e){if(u.attributes.length===0&&e.attributes.length===0)return[];let D=[],r=new Map,F=new Map;for(let i of u.attributes)r.set(i.name,i.value);for(let i of e.attributes){let t=r.get(i.name);i.value===t?r.delete(i.name):(typeof t<"u"&&r.delete(i.name),F.set(i.name,i.value))}for(let i of r.keys())D.push({type:5,name:i});for(let[i,t]of F.entries())D.push({type:4,name:i,value:t});return D}function d(u,e=!0){let D=`${u.localName}`;for(let{name:r,value:F}of u.attributes)e&&r.startsWith("data-")||(D+=`[${r}=${F}]`);return D+=u.innerHTML,D}function p(u){switch(u.tagName){case"BASE":case"TITLE":return u.localName;case"META":{if(u.hasAttribute("name"))return`meta[name="${u.getAttribute("name")}"]`;if(u.hasAttribute("property"))return`meta[name="${u.getAttribute("property")}"]`;break}case"LINK":{if(u.hasAttribute("rel")&&u.hasAttribute("href"))return`link[rel="${u.getAttribute("rel")}"][href="${u.getAttribute("href")}"]`;if(u.hasAttribute("href"))return`link[href="${u.getAttribute("href")}"]`;break}}return d(u)}function Q(u){let[e,D=""]=u.split("?");return`${e}?t=${Date.now()}&${D.replace(/t=\\d+/g,"")}`}function E(u){if(u.nodeType===1&&u.hasAttribute("data-persist"))return u;if(u.nodeType===1&&u.localName==="script"){let e=document.createElement("script");for(let{name:D,value:r}of u.attributes)D==="src"&&(r=Q(r)),e.setAttribute(D,r);return e.innerHTML=u.innerHTML,e}return u.cloneNode(!0)}function Y(u,e){if(u.children.length===0&&e.children.length===0)return[];let D=[],r=new Map,F=new Map,i=new Map;for(let t of u.children)r.set(p(t),t);for(let t of e.children){let n=p(t),a=r.get(n);a?d(t,!1)!==d(a,!1)&&F.set(n,E(t)):i.set(n,E(t)),r.delete(n)}for(let t of u.childNodes){if(t.nodeType===1){let n=p(t);if(r.has(n)){D.push({type:1});continue}else if(F.has(n)){let a=F.get(n);D.push({type:3,attributes:x(t,a),children:R(t,a)});continue}}D.push(void 0)}for(let t of i.values())D.push({type:0,node:E(t)});return D}function R(u,e){let D=[],r=Math.max(u.childNodes.length,e.childNodes.length);for(let F=0;F<r;F++){let i=u.childNodes.item(F),t=e.childNodes.item(F);D[F]=c(i,t)}return D}function c(u,e){if(!u)return{type:0,node:E(e)};if(!e)return{type:1};if(K(u,e)){if(u.nodeType===3){let D=u.nodeValue,r=e.nodeValue;if(D.trim().length===0&&r.trim().length===0)return}if(u.nodeType===1){if(z(u,e)){let D=u.tagName==="HEAD"?Y:R;return{type:3,attributes:x(u,e),children:D(u,e)}}return{type:2,node:E(e)}}else return u.nodeType===9?c(u.documentElement,e.documentElement):Z(u,e)?void 0:{type:2,value:e.nodeValue}}return{type:2,node:E(e)}}function G(u,e){if(e.length!==0)for(let{type:D,name:r,value:F}of e)D===5?u.removeAttribute(r):D===4&&u.setAttribute(r,F)}async function h(u,e,D){if(!e)return;let r;switch(u.nodeType===9?(u=u.documentElement,r=u):D?r=D:r=u,e.type){case 0:{let{node:F}=e;u.appendChild(F);return}case 1:{if(!r)return;u.removeChild(r);return}case 2:{if(!r)return;let{node:F,value:i}=e;if(typeof i=="string"){r.nodeValue=i;return}r.replaceWith(F);return}case 3:{if(!r)return;let{attributes:F,children:i}=e;G(r,F);let t=Array.from(r.childNodes);await Promise.all(i.map((n,a)=>h(r,n,t[a])));return}}}function m(u,e){let D=c(u,e);return h(u,D)}var su=Object.hasOwnProperty;var U=q(T(),1),cu=(0,U.default)();function y(u){return u.document.body.dataset.slug}var M=(u,e,D)=>{let r=new URL(u.getAttribute(e),D);u.setAttribute(e,r.pathname+r.hash)};function j(u,e){u.querySelectorAll(\'[href^="./"], [href^="../"]\').forEach(D=>M(D,"href",e)),u.querySelectorAll(\'[src^="./"], [src^="../"]\').forEach(D=>M(D,"src",e))}var k=1,C=document.createElement("route-announcer"),uu=u=>u?.nodeType===k,eu=u=>{try{let e=new URL(u);if(window.location.origin===e.origin)return!0}catch{}return!1},tu=u=>{let e=u.origin===window.location.origin,D=u.pathname===window.location.pathname;return e&&D},N=({target:u})=>{if(!uu(u)||u.attributes.getNamedItem("target")?.value==="_blank")return;let e=u.closest("a");if(!e||"routerIgnore"in e.dataset)return;let{href:D}=e;if(eu(D))return{url:new URL(D),scroll:"routerNoscroll"in e.dataset?!1:void 0}};function P(u){let e=new CustomEvent("nav",{detail:{url:u}});document.dispatchEvent(e)}var v=new Set;window.addCleanup=u=>v.add(u);var w;async function B(u,e=!1){w=w||new DOMParser;let D=await fetch(`${u}`).then(n=>{if(n.headers.get("content-type")?.startsWith("text/html"))return n.text();window.location.assign(u)}).catch(()=>{window.location.assign(u)});if(!D)return;v.forEach(n=>n()),v.clear();let r=w.parseFromString(D,"text/html");j(r,u);let F=r.querySelector("title")?.textContent;if(F)document.title=F;else{let n=document.querySelector("h1");F=n?.innerText??n?.textContent??u.pathname}C.textContent!==F&&(C.textContent=F),C.dataset.persist="",r.body.appendChild(C),m(document.body,r.body),e||(u.hash?document.getElementById(decodeURIComponent(u.hash.substring(1)))?.scrollIntoView():window.scrollTo({top:0})),document.head.querySelectorAll(":not([spa-preserve])").forEach(n=>n.remove()),r.head.querySelectorAll(":not([spa-preserve])").forEach(n=>document.head.appendChild(n)),e||history.pushState({},"",u),P(y(window)),delete C.dataset.persist}window.spaNavigate=B;function Du(){return typeof window<"u"&&(window.addEventListener("click",async u=>{let{url:e}=N(u)??{};if(!(!e||u.ctrlKey||u.metaKey)){if(u.preventDefault(),tu(e)&&e.hash){document.getElementById(decodeURIComponent(e.hash.substring(1)))?.scrollIntoView(),history.pushState({},"",e);return}try{B(e,!1)}catch{window.location.assign(e)}}}),window.addEventListener("popstate",u=>{let{url:e}=N(u)??{};if(!(window.location.hash&&window.location.pathname===e?.pathname))try{B(new URL(window.location.toString()),!0)}catch{window.location.reload()}})),new class{go(e){let D=new URL(e,window.location.toString());return B(D,!1)}back(){return window.history.back()}forward(){return window.history.forward()}}}Du();P(y(window));if(!customElements.get("route-announcer")){let u={"aria-live":"assertive","aria-atomic":"true",style:"position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"};customElements.define("route-announcer",class extends HTMLElement{constructor(){super()}connectedCallback(){for(let[D,r]of Object.entries(u))this.setAttribute(D,r)}})}\n';var popover_inline_default='var Kt=Object.create;var gt=Object.defineProperty;var Zt=Object.getOwnPropertyDescriptor;var Qt=Object.getOwnPropertyNames;var Gt=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty;var te=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ee=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of Qt(e))!Jt.call(t,u)&&u!==i&&gt(t,u,{get:()=>e[u],enumerable:!(n=Zt(e,u))||n.enumerable});return t};var ne=(t,e,i)=>(i=t!=null?Kt(Gt(t)):{},ee(e||!t||!t.__esModule?gt(i,"default",{value:t,enumerable:!0}):i,t));var It=te((Ze,zt)=>{"use strict";zt.exports=xe;function q(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function xe(t){if(t=t||{},t.circles)return we(t);return t.proto?n:i;function e(u,r){for(var o=Object.keys(u),s=new Array(o.length),c=0;c<o.length;c++){var l=o[c],D=u[l];typeof D!="object"||D===null?s[l]=D:D instanceof Date?s[l]=new Date(D):ArrayBuffer.isView(D)?s[l]=q(D):s[l]=r(D)}return s}function i(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return e(u,i);if(u instanceof Map)return new Map(e(Array.from(u),i));if(u instanceof Set)return new Set(e(Array.from(u),i));var r={};for(var o in u)if(Object.hasOwnProperty.call(u,o)!==!1){var s=u[o];typeof s!="object"||s===null?r[o]=s:s instanceof Date?r[o]=new Date(s):s instanceof Map?r[o]=new Map(e(Array.from(s),i)):s instanceof Set?r[o]=new Set(e(Array.from(s),i)):ArrayBuffer.isView(s)?r[o]=q(s):r[o]=i(s)}return r}function n(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return e(u,n);if(u instanceof Map)return new Map(e(Array.from(u),n));if(u instanceof Set)return new Set(e(Array.from(u),n));var r={};for(var o in u){var s=u[o];typeof s!="object"||s===null?r[o]=s:s instanceof Date?r[o]=new Date(s):s instanceof Map?r[o]=new Map(e(Array.from(s),n)):s instanceof Set?r[o]=new Set(e(Array.from(s),n)):ArrayBuffer.isView(s)?r[o]=q(s):r[o]=n(s)}return r}}function we(t){var e=[],i=[];return t.proto?r:u;function n(o,s){for(var c=Object.keys(o),l=new Array(c.length),D=0;D<c.length;D++){var a=c[D],F=o[a];if(typeof F!="object"||F===null)l[a]=F;else if(F instanceof Date)l[a]=new Date(F);else if(ArrayBuffer.isView(F))l[a]=q(F);else{var f=e.indexOf(F);f!==-1?l[a]=i[f]:l[a]=s(F)}}return l}function u(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,u);if(o instanceof Map)return new Map(n(Array.from(o),u));if(o instanceof Set)return new Set(n(Array.from(o),u));var s={};e.push(o),i.push(s);for(var c in o)if(Object.hasOwnProperty.call(o,c)!==!1){var l=o[c];if(typeof l!="object"||l===null)s[c]=l;else if(l instanceof Date)s[c]=new Date(l);else if(l instanceof Map)s[c]=new Map(n(Array.from(l),u));else if(l instanceof Set)s[c]=new Set(n(Array.from(l),u));else if(ArrayBuffer.isView(l))s[c]=q(l);else{var D=e.indexOf(l);D!==-1?s[c]=i[D]:s[c]=u(l)}}return e.pop(),i.pop(),s}function r(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return n(o,r);if(o instanceof Map)return new Map(n(Array.from(o),r));if(o instanceof Set)return new Set(n(Array.from(o),r));var s={};e.push(o),i.push(s);for(var c in o){var l=o[c];if(typeof l!="object"||l===null)s[c]=l;else if(l instanceof Date)s[c]=new Date(l);else if(l instanceof Map)s[c]=new Map(n(Array.from(l),r));else if(l instanceof Set)s[c]=new Set(n(Array.from(l),r));else if(ArrayBuffer.isView(l))s[c]=q(l);else{var D=e.indexOf(l);D!==-1?s[c]=i[D]:s[c]=r(l)}}return e.pop(),i.pop(),s}}});var j=Math.min,y=Math.max,Z=Math.round;var L=t=>({x:t,y:t}),ue={left:"right",right:"left",bottom:"top",top:"bottom"},ie={start:"end",end:"start"};function lt(t,e,i){return y(t,j(e,i))}function Q(t,e){return typeof t=="function"?t(e):t}function P(t){return t.split("-")[0]}function ut(t){return t.split("-")[1]}function ct(t){return t==="x"?"y":"x"}function Dt(t){return t==="y"?"height":"width"}function G(t){return["top","bottom"].includes(P(t))?"y":"x"}function at(t){return ct(G(t))}function At(t,e,i){i===void 0&&(i=!1);let n=ut(t),u=at(t),r=Dt(u),o=u==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(o=K(o)),[o,K(o)]}function pt(t){let e=K(t);return[nt(t),e,nt(e)]}function nt(t){return t.replace(/start|end/g,e=>ie[e])}function oe(t,e,i){let n=["left","right"],u=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return i?e?u:n:e?n:u;case"left":case"right":return e?r:o;default:return[]}}function Et(t,e,i,n){let u=ut(t),r=oe(P(t),i==="start",n);return u&&(r=r.map(o=>o+"-"+u),e&&(r=r.concat(r.map(nt)))),r}function K(t){return t.replace(/left|right|bottom|top/g,e=>ue[e])}function re(t){return{top:0,right:0,bottom:0,left:0,...t}}function ft(t){return typeof t!="number"?re(t):{top:t,right:t,bottom:t,left:t}}function T(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ct(t,e,i){let{reference:n,floating:u}=t,r=G(e),o=at(e),s=Dt(o),c=P(e),l=r==="y",D=n.x+n.width/2-u.width/2,a=n.y+n.height/2-u.height/2,F=n[s]/2-u[s]/2,f;switch(c){case"top":f={x:D,y:n.y-u.height};break;case"bottom":f={x:D,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:a};break;case"left":f={x:n.x-u.width,y:a};break;default:f={x:n.x,y:n.y}}switch(ut(e)){case"start":f[o]-=F*(i&&l?-1:1);break;case"end":f[o]+=F*(i&&l?-1:1);break}return f}var ht=async(t,e,i)=>{let{placement:n="bottom",strategy:u="absolute",middleware:r=[],platform:o}=i,s=r.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e)),l=await o.getElementRects({reference:t,floating:e,strategy:u}),{x:D,y:a}=Ct(l,n,c),F=n,f={},d=0;for(let g=0;g<s.length;g++){let{name:m,fn:p}=s[g],{x:A,y:E,data:h,reset:C}=await p({x:D,y:a,initialPlacement:n,placement:F,strategy:u,middlewareData:f,rects:l,platform:o,elements:{reference:t,floating:e}});D=A??D,a=E??a,f={...f,[m]:{...f[m],...h}},C&&d<=50&&(d++,typeof C=="object"&&(C.placement&&(F=C.placement),C.rects&&(l=C.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:u}):C.rects),{x:D,y:a}=Ct(l,F,c)),g=-1)}return{x:D,y:a,placement:F,strategy:u,middlewareData:f}};async function Ft(t,e){var i;e===void 0&&(e={});let{x:n,y:u,platform:r,rects:o,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:D="viewport",elementContext:a="floating",altBoundary:F=!1,padding:f=0}=Q(e,t),d=ft(f),m=s[F?a==="floating"?"reference":"floating":a],p=T(await r.getClippingRect({element:(i=await(r.isElement==null?void 0:r.isElement(m)))==null||i?m:m.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:l,rootBoundary:D,strategy:c})),A=a==="floating"?{...o.floating,x:n,y:u}:o.reference,E=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),h=await(r.isElement==null?void 0:r.isElement(E))?await(r.getScale==null?void 0:r.getScale(E))||{x:1,y:1}:{x:1,y:1},C=T(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:A,offsetParent:E,strategy:c}):A);return{top:(p.top-C.top+d.top)/h.y,bottom:(C.bottom-p.bottom+d.bottom)/h.y,left:(p.left-C.left+d.left)/h.x,right:(C.right-p.right+d.right)/h.x}}var Bt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var i,n;let{placement:u,middlewareData:r,rects:o,initialPlacement:s,platform:c,elements:l}=e,{mainAxis:D=!0,crossAxis:a=!0,fallbackPlacements:F,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0,...m}=Q(t,e);if((i=r.arrow)!=null&&i.alignmentOffset)return{};let p=P(u),A=P(s)===s,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),h=F||(A||!g?[K(s)]:pt(s));!F&&d!=="none"&&h.push(...Et(s,g,d,E));let C=[s,...h],N=await Ft(e,m),$=[],U=((n=r.flip)==null?void 0:n.overflows)||[];if(D&&$.push(N[p]),a){let S=At(u,o,E);$.push(N[S[0]],N[S[1]])}if(U=[...U,{placement:u,overflows:$}],!$.every(S=>S<=0)){var et,x;let S=(((et=r.flip)==null?void 0:et.index)||0)+1,k=C[S];if(k)return{data:{index:S,overflows:U},reset:{placement:k}};let H=(x=U.filter(R=>R.overflows[0]<=0).sort((R,O)=>R.overflows[1]-O.overflows[1])[0])==null?void 0:x.placement;if(!H)switch(f){case"bestFit":{var I;let R=(I=U.map(O=>[O.placement,O.overflows.filter(V=>V>0).reduce((V,st)=>V+st,0)]).sort((O,V)=>O[1]-V[1])[0])==null?void 0:I[0];R&&(H=R);break}case"initialPlacement":H=s;break}if(u!==H)return{reset:{placement:H}}}return{}}}};function xt(t){let e=j(...t.map(r=>r.left)),i=j(...t.map(r=>r.top)),n=y(...t.map(r=>r.right)),u=y(...t.map(r=>r.bottom));return{x:e,y:i,width:n-e,height:u-i}}function se(t){let e=t.slice().sort((u,r)=>u.y-r.y),i=[],n=null;for(let u=0;u<e.length;u++){let r=e[u];!n||r.y-n.y>n.height/2?i.push([r]):i[i.length-1].push(r),n=r}return i.map(u=>T(xt(u)))}var wt=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){let{placement:i,elements:n,rects:u,platform:r,strategy:o}=e,{padding:s=2,x:c,y:l}=Q(t,e),D=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(n.reference))||[]),a=se(D),F=T(xt(D)),f=ft(s);function d(){if(a.length===2&&a[0].left>a[1].right&&c!=null&&l!=null)return a.find(m=>c>m.left-f.left&&c<m.right+f.right&&l>m.top-f.top&&l<m.bottom+f.bottom)||F;if(a.length>=2){if(G(i)==="y"){let x=a[0],I=a[a.length-1],S=P(i)==="top",k=x.top,H=I.bottom,R=S?x.left:I.left,O=S?x.right:I.right,V=O-R,st=H-k;return{top:k,bottom:H,left:R,right:O,width:V,height:st,x:R,y:k}}let m=P(i)==="left",p=y(...a.map(x=>x.right)),A=j(...a.map(x=>x.left)),E=a.filter(x=>m?x.left===A:x.right===p),h=E[0].top,C=E[E.length-1].bottom,N=A,$=p,U=$-N,et=C-h;return{top:h,bottom:C,left:N,right:$,width:U,height:et,x:N,y:h}}return F}let g=await r.getElementRects({reference:{getBoundingClientRect:d},floating:n.floating,strategy:o});return u.reference.x!==g.reference.x||u.reference.y!==g.reference.y||u.reference.width!==g.reference.width||u.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};var yt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:n,placement:u}=e,{mainAxis:r=!0,crossAxis:o=!1,limiter:s={fn:m=>{let{x:p,y:A}=m;return{x:p,y:A}}},...c}=Q(t,e),l={x:i,y:n},D=await Ft(e,c),a=G(P(u)),F=ct(a),f=l[F],d=l[a];if(r){let m=F==="y"?"top":"left",p=F==="y"?"bottom":"right",A=f+D[m],E=f-D[p];f=lt(A,f,E)}if(o){let m=a==="y"?"top":"left",p=a==="y"?"bottom":"right",A=d+D[m],E=d-D[p];d=lt(A,d,E)}let g=s.fn({...e,[F]:f,[a]:d});return{...g,data:{x:g.x-i,y:g.y-n}}}}};function _(t){return bt(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function W(t){var e;return(e=(bt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function bt(t){return t instanceof Node||t instanceof B(t).Node}function v(t){return t instanceof Element||t instanceof B(t).Element}function b(t){return t instanceof HTMLElement||t instanceof B(t).HTMLElement}function vt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof B(t).ShadowRoot}function Y(t){let{overflow:e,overflowX:i,overflowY:n,display:u}=w(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+i)&&!["inline","contents"].includes(u)}function St(t){return["table","td","th"].includes(_(t))}function ot(t){let e=rt(),i=w(t);return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(i.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(i.contain||"").includes(n))}function Rt(t){let e=M(t);for(;b(e)&&!z(e);){if(ot(e))return e;e=M(e)}return null}function rt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function z(t){return["html","body","#document"].includes(_(t))}function w(t){return B(t).getComputedStyle(t)}function J(t){return v(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function M(t){if(_(t)==="html")return t;let e=t.assignedSlot||t.parentNode||vt(t)&&t.host||W(t);return vt(e)?e.host:e}function Ot(t){let e=M(t);return z(e)?t.ownerDocument?t.ownerDocument.body:t.body:b(e)&&Y(e)?e:Ot(e)}function it(t,e,i){var n;e===void 0&&(e=[]),i===void 0&&(i=!0);let u=Ot(t),r=u===((n=t.ownerDocument)==null?void 0:n.body),o=B(u);return r?e.concat(o,o.visualViewport||[],Y(u)?u:[],o.frameElement&&i?it(o.frameElement):[]):e.concat(u,it(u,[],i))}function Tt(t){let e=w(t),i=parseFloat(e.width)||0,n=parseFloat(e.height)||0,u=b(t),r=u?t.offsetWidth:i,o=u?t.offsetHeight:n,s=Z(i)!==r||Z(n)!==o;return s&&(i=r,n=o),{width:i,height:n,$:s}}function Mt(t){return v(t)?t:t.contextElement}function X(t){let e=Mt(t);if(!b(e))return L(1);let i=e.getBoundingClientRect(),{width:n,height:u,$:r}=Tt(e),o=(r?Z(i.width):i.width)/n,s=(r?Z(i.height):i.height)/u;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var le=L(0);function Wt(t){let e=B(t);return!rt()||!e.visualViewport?le:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ce(t,e,i){return e===void 0&&(e=!1),!i||e&&i!==B(t)?!1:e}function tt(t,e,i,n){e===void 0&&(e=!1),i===void 0&&(i=!1);let u=t.getBoundingClientRect(),r=Mt(t),o=L(1);e&&(n?v(n)&&(o=X(n)):o=X(t));let s=ce(r,i,n)?Wt(r):L(0),c=(u.left+s.x)/o.x,l=(u.top+s.y)/o.y,D=u.width/o.x,a=u.height/o.y;if(r){let F=B(r),f=n&&v(n)?B(n):n,d=F,g=d.frameElement;for(;g&&n&&f!==d;){let m=X(g),p=g.getBoundingClientRect(),A=w(g),E=p.left+(g.clientLeft+parseFloat(A.paddingLeft))*m.x,h=p.top+(g.clientTop+parseFloat(A.paddingTop))*m.y;c*=m.x,l*=m.y,D*=m.x,a*=m.y,c+=E,l+=h,d=B(g),g=d.frameElement}}return T({width:D,height:a,x:c,y:l})}var De=[":popover-open",":modal"];function mt(t){return De.some(e=>{try{return t.matches(e)}catch{return!1}})}function ae(t){let{elements:e,rect:i,offsetParent:n,strategy:u}=t,r=u==="fixed",o=W(n),s=e?mt(e.floating):!1;if(n===o||s&&r)return i;let c={scrollLeft:0,scrollTop:0},l=L(1),D=L(0),a=b(n);if((a||!a&&!r)&&((_(n)!=="body"||Y(o))&&(c=J(n)),b(n))){let F=tt(n);l=X(n),D.x=F.x+n.clientLeft,D.y=F.y+n.clientTop}return{width:i.width*l.x,height:i.height*l.y,x:i.x*l.x-c.scrollLeft*l.x+D.x,y:i.y*l.y-c.scrollTop*l.y+D.y}}function fe(t){return Array.from(t.getClientRects())}function Ht(t){return tt(W(t)).left+J(t).scrollLeft}function Fe(t){let e=W(t),i=J(t),n=t.ownerDocument.body,u=y(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=y(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),o=-i.scrollLeft+Ht(t),s=-i.scrollTop;return w(n).direction==="rtl"&&(o+=y(e.clientWidth,n.clientWidth)-u),{width:u,height:r,x:o,y:s}}function de(t,e){let i=B(t),n=W(t),u=i.visualViewport,r=n.clientWidth,o=n.clientHeight,s=0,c=0;if(u){r=u.width,o=u.height;let l=rt();(!l||l&&e==="fixed")&&(s=u.offsetLeft,c=u.offsetTop)}return{width:r,height:o,x:s,y:c}}function me(t,e){let i=tt(t,!0,e==="fixed"),n=i.top+t.clientTop,u=i.left+t.clientLeft,r=b(t)?X(t):L(1),o=t.clientWidth*r.x,s=t.clientHeight*r.y,c=u*r.x,l=n*r.y;return{width:o,height:s,x:c,y:l}}function Lt(t,e,i){let n;if(e==="viewport")n=de(t,i);else if(e==="document")n=Fe(W(t));else if(v(e))n=me(e,i);else{let u=Wt(t);n={...e,x:e.x-u.x,y:e.y-u.y}}return T(n)}function jt(t,e){let i=M(t);return i===e||!v(i)||z(i)?!1:w(i).position==="fixed"||jt(i,e)}function ge(t,e){let i=e.get(t);if(i)return i;let n=it(t,[],!1).filter(s=>v(s)&&_(s)!=="body"),u=null,r=w(t).position==="fixed",o=r?M(t):t;for(;v(o)&&!z(o);){let s=w(o),c=ot(o);!c&&s.position==="fixed"&&(u=null),(r?!c&&!u:!c&&s.position==="static"&&!!u&&["absolute","fixed"].includes(u.position)||Y(o)&&!c&&jt(t,o))?n=n.filter(D=>D!==o):u=s,o=M(o)}return e.set(t,n),n}function Ae(t){let{element:e,boundary:i,rootBoundary:n,strategy:u}=t,o=[...i==="clippingAncestors"?mt(e)?[]:ge(e,this._c):[].concat(i),n],s=o[0],c=o.reduce((l,D)=>{let a=Lt(e,D,u);return l.top=y(a.top,l.top),l.right=j(a.right,l.right),l.bottom=j(a.bottom,l.bottom),l.left=y(a.left,l.left),l},Lt(e,s,u));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function pe(t){let{width:e,height:i}=Tt(t);return{width:e,height:i}}function Ee(t,e,i){let n=b(e),u=W(e),r=i==="fixed",o=tt(t,!0,r,e),s={scrollLeft:0,scrollTop:0},c=L(0);if(n||!n&&!r)if((_(e)!=="body"||Y(u))&&(s=J(e)),n){let a=tt(e,!0,r,e);c.x=a.x+e.clientLeft,c.y=a.y+e.clientTop}else u&&(c.x=Ht(u));let l=o.left+s.scrollLeft-c.x,D=o.top+s.scrollTop-c.y;return{x:l,y:D,width:o.width,height:o.height}}function dt(t){return w(t).position==="static"}function Pt(t,e){return!b(t)||w(t).position==="fixed"?null:e?e(t):t.offsetParent}function Nt(t,e){let i=B(t);if(mt(t))return i;if(!b(t)){let u=M(t);for(;u&&!z(u);){if(v(u)&&!dt(u))return u;u=M(u)}return i}let n=Pt(t,e);for(;n&&St(n)&&dt(n);)n=Pt(n,e);return n&&z(n)&&dt(n)&&!ot(n)?i:n||Rt(t)||i}var Ce=async function(t){let e=this.getOffsetParent||Nt,i=this.getDimensions,n=await i(t.floating);return{reference:Ee(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function he(t){return w(t).direction==="rtl"}var Be={convertOffsetParentRelativeRectToViewportRelativeRect:ae,getDocumentElement:W,getClippingRect:Ae,getOffsetParent:Nt,getElementRects:Ce,getClientRects:fe,getDimensions:pe,getScale:X,isElement:v,isRTL:he};var $t=yt,Ut=Bt;var Vt=wt;var _t=(t,e,i)=>{let n=new Map,u={platform:Be,...i},r={...u.platform,_c:n};return ht(t,e,{...u,platform:r})};var qe=Object.hasOwnProperty;var Yt=ne(It(),1),Je=(0,Yt.default)();var kt=(t,e,i)=>{let n=new URL(t.getAttribute(e),i);t.setAttribute(e,n.pathname+n.hash)};function Xt(t,e){t.querySelectorAll(\'[href^="./"], [href^="../"]\').forEach(i=>kt(i,"href",e)),t.querySelectorAll(\'[src^="./"], [src^="../"]\').forEach(i=>kt(i,"src",e))}var ye=new DOMParser;async function qt({clientX:t,clientY:e}){let i=this;if(i.dataset.noPopover==="true")return;async function n(d){let{x:g,y:m}=await _t(i,d,{middleware:[Vt({x:t,y:e}),$t(),Ut()]});Object.assign(d.style,{left:`${g}px`,top:`${m}px`})}let u=()=>[...i.children].some(d=>d.classList.contains("popover"));if(u())return n(i.lastChild);let r=new URL(document.location.href);r.hash="",r.search="";let o=new URL(i.href),s=o.hash;o.hash="",o.search="";let c=await fetch(`${o}`).catch(d=>{console.error(d)});if(u()||!c)return;let[l]=c.headers.get("Content-Type").split(";"),[D,a]=l.split("/"),F=document.createElement("div");F.classList.add("popover");let f=document.createElement("div");switch(f.classList.add("popover-inner"),F.appendChild(f),f.dataset.contentType=l??void 0,D){case"image":let d=document.createElement("img");d.src=o.toString(),d.alt=o.pathname,f.appendChild(d);break;case"application":switch(a){case"pdf":let A=document.createElement("iframe");A.src=o.toString(),f.appendChild(A);break;default:break}break;default:let g=await c.text(),m=ye.parseFromString(g,"text/html");Xt(m,o);let p=[...m.getElementsByClassName("popover-hint")];if(p.length===0)return;p.forEach(A=>f.appendChild(A))}if(n(F),i.appendChild(F),s!==""){let d=f.querySelector(s);d&&f.scroll({top:d.offsetTop-12,behavior:"instant"})}}document.addEventListener("nav",()=>{let t=[...document.getElementsByClassName("internal")];for(let e of t)e.addEventListener("mouseenter",qt),window.addCleanup(()=>e.removeEventListener("mouseenter",qt))});\n';var custom_default=`code[data-theme*=" "] {
color: var(--shiki-light);
background-color: var(--shiki-light-bg);
}
code[data-theme*=" "] span {
color: var(--shiki-light);
}
[saved-theme=dark] code[data-theme*=" "] {
color: var(--shiki-dark);
background-color: var(--shiki-dark-bg);
}
[saved-theme=dark] code[data-theme*=" "] span {
color: var(--shiki-dark);
}
.callout {
border: 1px solid var(--border);
background-color: var(--bg);
border-radius: 5px;
padding: 0 1rem;
overflow-y: hidden;
transition: max-height 0.3s ease;
box-sizing: border-box;
--callout-icon-note: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="2" x2="22" y2="6"></line><path d="M7.5 20.5 19 9l-4-4L3.5 16.5 2 22z"></path></svg>');
--callout-icon-abstract: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><path d="M12 11h4"></path><path d="M12 16h4"></path><path d="M8 11h.01"></path><path d="M8 16h.01"></path></svg>');
--callout-icon-info: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>');
--callout-icon-todo: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"></path><path d="m9 12 2 2 4-4"></path></svg>');
--callout-icon-tip: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"></path></svg> ');
--callout-icon-success: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg> ');
--callout-icon-question: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg> ');
--callout-icon-warning: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>');
--callout-icon-failure: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg> ');
--callout-icon-danger: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg> ');
--callout-icon-bug: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="14" x="8" y="6" rx="4"></rect><path d="m19 7-3 2"></path><path d="m5 7 3 2"></path><path d="m19 19-3-2"></path><path d="m5 19 3-2"></path><path d="M20 13h-4"></path><path d="M4 13h4"></path><path d="m10 4 1 2"></path><path d="m14 4-1 2"></path></svg>');
--callout-icon-example: url('data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg> ');
--callout-icon-quote: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z"></path><path d="M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z"></path></svg>');
--callout-icon-fold: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpolyline points="6 9 12 15 18 9"%3E%3C/polyline%3E%3C/svg%3E');
}
.callout > *:nth-child(2) {
margin-top: 0;
}
.callout[data-callout] {
--color: #448aff;
--border: #448aff44;
--bg: #448aff10;
--callout-icon: var(--callout-icon-note);
}
.callout[data-callout=abstract] {
--color: #00b0ff;
--border: #00b0ff44;
--bg: #00b0ff10;
--callout-icon: var(--callout-icon-abstract);
}
.callout[data-callout=info], .callout[data-callout=todo] {
--color: #00b8d4;
--border: #00b8d444;
--bg: #00b8d410;
--callout-icon: var(--callout-icon-info);
}
.callout[data-callout=todo] {
--callout-icon: var(--callout-icon-todo);
}
.callout[data-callout=tip] {
--color: #00bfa5;
--border: #00bfa544;
--bg: #00bfa510;
--callout-icon: var(--callout-icon-tip);
}
.callout[data-callout=success] {
--color: #09ad7a;
--border: #09ad7144;
--bg: #09ad7110;
--callout-icon: var(--callout-icon-success);
}
.callout[data-callout=question] {
--color: #dba642;
--border: #dba64244;
--bg: #dba64210;
--callout-icon: var(--callout-icon-question);
}
.callout[data-callout=warning] {
--color: #db8942;
--border: #db894244;
--bg: #db894210;
--callout-icon: var(--callout-icon-warning);
}
.callout[data-callout=failure], .callout[data-callout=danger], .callout[data-callout=bug] {
--color: #db4242;
--border: #db424244;
--bg: #db424210;
--callout-icon: var(--callout-icon-failure);
}
.callout[data-callout=bug] {
--callout-icon: var(--callout-icon-bug);
}
.callout[data-callout=danger] {
--callout-icon: var(--callout-icon-danger);
}
.callout[data-callout=example] {
--color: #7a43b5;
--border: #7a43b544;
--bg: #7a43b510;
--callout-icon: var(--callout-icon-example);
}
.callout[data-callout=quote] {
--color: var(--secondary);
--border: var(--lightgray);
--callout-icon: var(--callout-icon-quote);
}
.callout.is-collapsed > .callout-title > .fold-callout-icon {
transform: rotateZ(-90deg);
}
.callout-title {
display: flex;
align-items: flex-start;
gap: 5px;
padding: 1rem 0;
color: var(--color);
--icon-size: 18px;
}
.callout-title .fold-callout-icon {
transition: transform 0.15s ease;
opacity: 0.8;
cursor: pointer;
--callout-icon: var(--callout-icon-fold);
}
.callout-title > .callout-title-inner > p {
color: var(--color);
margin: 0;
}
.callout-title .callout-icon, .callout-title .fold-callout-icon {
width: var(--icon-size);
height: var(--icon-size);
flex: 0 0 var(--icon-size);
background-size: var(--icon-size) var(--icon-size);
background-position: center;
background-color: var(--color);
mask-image: var(--callout-icon);
mask-size: var(--icon-size) var(--icon-size);
mask-position: center;
mask-repeat: no-repeat;
padding: 0.2rem 0;
}
.callout-title .callout-title-inner {
font-weight: 600;
}
html {
scroll-behavior: smooth;
text-size-adjust: none;
overflow-x: hidden;
width: 100vw;
}
body,
section {
margin: 0;
max-width: 100%;
box-sizing: border-box;
background-color: var(--light);
font-family: var(--bodyFont);
color: var(--darkgray);
}
.text-highlight {
background-color: rgba(255, 242, 54, 0.5333333333);
padding: 0 0.1rem;
border-radius: 5px;
}
::selection {
background: color-mix(in srgb, var(--tertiary) 60%, rgba(255, 255, 255, 0));
color: var(--darkgray);
}
p,
ul,
text,
a,
tr,
td,
li,
ol,
ul,
.katex,
.math {
color: var(--darkgray);
fill: var(--darkgray);
overflow-wrap: anywhere;
hyphens: auto;
}
.math.math-display {
text-align: center;
}
strong {
font-weight: 600;
}
a {
font-weight: 600;
text-decoration: none;
transition: color 0.2s ease;
color: var(--secondary);
}
a:hover {
color: var(--tertiary) !important;
}
a.internal {
text-decoration: none;
background-color: var(--highlight);
padding: 0 0.1rem;
border-radius: 5px;
line-height: 1.4rem;
}
a.internal:has(> img) {
background-color: none;
border-radius: 0;
padding: 0;
}
a.internal.tag-link::before {
content: "#";
}
a.external .external-icon {
height: 1ex;
margin: 0 0.15em;
}
a.external .external-icon > path {
fill: var(--dark);
}
.desktop-only {
display: initial;
}
@media all and (max-width: 1510px) {
.desktop-only {
display: none;
}
}
.mobile-only {
display: none;
}
@media all and (max-width: 1510px) {
.mobile-only {
display: initial;
}
}
@media all and (max-width: 1510px) {
.page {
margin: 0 auto;
padding: 0 1rem;
max-width: 750px;
}
}
.page article > h1 {
font-size: 2rem;
}
.page article li:has(> input[type=checkbox]) {
list-style-type: none;
padding-left: 0;
}
.page article li:has(> input[type=checkbox]:checked) {
text-decoration: line-through;
text-decoration-color: var(--gray);
color: var(--gray);
}
.page article li > * {
margin-top: 0;
margin-bottom: 0;
}
.page article p > strong {
color: var(--dark);
}
.page > #quartz-body {
width: 100%;
display: flex;
}
@media all and (max-width: 1510px) {
.page > #quartz-body {
flex-direction: column;
}
}
.page > #quartz-body .sidebar {
flex: 1;
display: flex;
flex-direction: column;
gap: 2rem;
top: 0;
width: 380px;
margin-top: 6rem;
box-sizing: border-box;
padding: 0 4rem;
position: fixed;
}
@media all and (max-width: 1510px) {
.page > #quartz-body .sidebar {
position: initial;
flex-direction: row;
padding: 0;
width: initial;
margin-top: 2rem;
}
}
.page > #quartz-body .sidebar.left {
left: calc((100vw - 750px) / 2 - 380px);
}
@media all and (max-width: 1510px) {
.page > #quartz-body .sidebar.left {
gap: 0;
align-items: center;
}
}
.page > #quartz-body .sidebar.right {
right: calc((100vw - 750px) / 2 - 380px);
flex-wrap: wrap;
}
@media all and (max-width: 1510px) {
.page > #quartz-body .sidebar.right > * {
flex: 1;
min-width: 140px;
}
}
.page .page-header {
width: 750px;
margin: 6rem auto 0 auto;
}
@media all and (max-width: 1510px) {
.page .page-header {
width: initial;
margin-top: 2rem;
}
}
.page .center, .page footer {
margin-left: auto;
margin-right: auto;
width: 750px;
}
@media all and (max-width: 1510px) {
.page .center, .page footer {
width: initial;
margin-left: 0;
margin-right: 0;
}
}
.footnotes {
margin-top: 2rem;
border-top: 1px solid var(--lightgray);
}
input[type=checkbox] {
transform: translateY(2px);
color: var(--secondary);
border: 1px solid var(--lightgray);
border-radius: 3px;
background-color: var(--light);
position: relative;
margin-inline-end: 0.2rem;
margin-inline-start: -1.4rem;
appearance: none;
width: 16px;
height: 16px;
}
input[type=checkbox]:checked {
border-color: var(--secondary);
background-color: var(--secondary);
}
input[type=checkbox]:checked::after {
content: "";
position: absolute;
left: 4px;
top: 1px;
width: 4px;
height: 8px;
display: block;
border: solid var(--light);
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
blockquote {
margin: 1rem 0;
border-left: 3px solid var(--secondary);
padding-left: 1rem;
transition: border-color 0.2s ease;
}
h1,
h2,
h3,
h4,
h5,
h6,
thead {
font-family: var(--headerFont);
color: var(--dark);
font-weight: revert;
margin-bottom: 0;
}
article > h1 > a[role=anchor],
article > h2 > a[role=anchor],
article > h3 > a[role=anchor],
article > h4 > a[role=anchor],
article > h5 > a[role=anchor],
article > h6 > a[role=anchor],
article > thead > a[role=anchor] {
color: var(--dark);
background-color: transparent;
}
h1[id] > a[href^="#"],
h2[id] > a[href^="#"],
h3[id] > a[href^="#"],
h4[id] > a[href^="#"],
h5[id] > a[href^="#"],
h6[id] > a[href^="#"] {
margin: 0 0.5rem;
opacity: 0;
transition: opacity 0.2s ease;
transform: translateY(-0.1rem);
font-family: var(--codeFont);
user-select: none;
}
h1[id]:hover > a,
h2[id]:hover > a,
h3[id]:hover > a,
h4[id]:hover > a,
h5[id]:hover > a,
h6[id]:hover > a {
opacity: 1;
}
h1 {
font-size: 1.75rem;
margin-top: 2.25rem;
margin-bottom: 1rem;
}
h2 {
font-size: 1.4rem;
margin-top: 1.9rem;
margin-bottom: 1rem;
}
h3 {
font-size: 1.12rem;
margin-top: 1.62rem;
margin-bottom: 1rem;
}
h4,
h5,
h6 {
font-size: 1rem;
margin-top: 1.5rem;
margin-bottom: 1rem;
}
figure[data-rehype-pretty-code-figure] {
margin: 0;
position: relative;
line-height: 1.6rem;
position: relative;
}
figure[data-rehype-pretty-code-figure] > [data-rehype-pretty-code-title] {
font-family: var(--codeFont);
font-size: 0.9rem;
padding: 0.1rem 0.5rem;
border: 1px solid var(--lightgray);
width: max-content;
border-radius: 5px;
margin-bottom: -0.5rem;
color: var(--darkgray);
}
figure[data-rehype-pretty-code-figure] > pre {
padding: 0;
}
pre {
font-family: var(--codeFont);
padding: 0 0.5rem;
border-radius: 5px;
overflow-x: auto;
border: 1px solid var(--lightgray);
position: relative;
}
pre:has(> code.mermaid) {
border: none;
}
pre > code {
background: none;
padding: 0;
font-size: 0.85rem;
counter-reset: line;
counter-increment: line 0;
display: grid;
padding: 0.5rem 0;
overflow-x: scroll;
}
pre > code [data-highlighted-chars] {
background-color: var(--highlight);
border-radius: 5px;
}
pre > code > [data-line] {
padding: 0 0.25rem;
box-sizing: border-box;
border-left: 3px solid transparent;
}
pre > code > [data-line][data-highlighted-line] {
background-color: var(--highlight);
border-left: 3px solid var(--secondary);
}
pre > code > [data-line]::before {
content: counter(line);
counter-increment: line;
width: 1rem;
margin-right: 1rem;
display: inline-block;
text-align: right;
color: rgba(115, 138, 148, 0.6);
}
pre > code[data-line-numbers-max-digits="2"] > [data-line]::before {
width: 2rem;
}
pre > code[data-line-numbers-max-digits="3"] > [data-line]::before {
width: 3rem;
}
code {
font-size: 0.9em;
color: var(--dark);
font-family: var(--codeFont);
border-radius: 5px;
padding: 0.1rem 0.2rem;
background: var(--lightgray);
}
tbody,
li,
p {
line-height: 1.6rem;
}
.table-container {
overflow-x: auto;
}
.table-container > table {
margin: 1rem;
padding: 1.5rem;
border-collapse: collapse;
}
.table-container > table th,
.table-container > table td {
min-width: 75px;
}
.table-container > table > * {
line-height: 2rem;
}
th {
text-align: left;
padding: 0.4rem 0.7rem;
border-bottom: 2px solid var(--gray);
}
td {
padding: 0.2rem 0.7rem;
}
tr {
border-bottom: 1px solid var(--lightgray);
}
tr:last-child {
border-bottom: none;
}
img {
max-width: 100%;
border-radius: 5px;
margin: 1rem 0;
}
p > img + em {
display: block;
transform: translateY(-1rem);
}
hr {
width: 100%;
margin: 2rem auto;
height: 1px;
border: none;
background-color: var(--lightgray);
}
audio,
video {
width: 100%;
border-radius: 5px;
}
.spacer {
flex: 1 1 auto;
}
ul.overflow,
ol.overflow {
max-height: 400;
overflow-y: auto;
content: "";
clear: both;
}
ul.overflow > li:last-of-type,
ol.overflow > li:last-of-type {
margin-bottom: 30px;
}
ul.overflow:after,
ol.overflow:after {
pointer-events: none;
content: "";
width: 100%;
height: 50px;
position: absolute;
left: 0;
bottom: 0;
opacity: 1;
transition: opacity 0.3s ease;
background: linear-gradient(transparent 0px, var(--light));
}
.transclude ul {
padding-left: 1rem;
}
.katex-display {
overflow-x: auto;
overflow-y: hidden;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcc3R5bGVzIiwic291cmNlcyI6WyJzeW50YXguc2NzcyIsImNhbGxvdXRzLnNjc3MiLCJ2YXJpYWJsZXMuc2NzcyIsImJhc2Uuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0VBQ0E7OztBQUdGO0VBQ0U7OztBQUdGO0VBQ0U7RUFDQTs7O0FBR0Y7RUFDRTs7O0FDWkY7RUFDRTtFQUN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C1kaXNwbGF5IHtcbiAgb3ZlcmZsb3cteDogYXV0bztcbiAgb3ZlcmZsb3cteTogaGlkZGVuO1xufVxuIl19 */`;var popover_default=`@keyframes dropin {
0% {
opacity: 0;
visibility: hidden;
}
1% {
opacity: 0;
}
100% {
opacity: 1;
visibility: visible;
}
}
.popover {
z-index: 999;
position: absolute;
overflow: visible;
padding: 1rem;
visibility: hidden;
opacity: 0;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popover > .popover-inner {
position: relative;
width: 30rem;
max-height: 20rem;
padding: 0 1rem 1rem 1rem;
font-weight: initial;
font-style: initial;
line-height: normal;
font-size: initial;
font-family: var(--bodyFont);
border: 1px solid var(--lightgray);
background-color: var(--light);
border-radius: 5px;
box-shadow: 6px 6px 36px 0 rgba(0, 0, 0, 0.25);
overflow: auto;
white-space: normal;
}
.popover > .popover-inner[data-content-type][data-content-type*=pdf], .popover > .popover-inner[data-content-type][data-content-type*=image] {
padding: 0;
max-height: 100%;
}
.popover > .popover-inner[data-content-type][data-content-type*=image] img {
margin: 0;
border-radius: 0;
display: block;
}
.popover > .popover-inner[data-content-type][data-content-type*=pdf] iframe {
width: 100%;
}
.popover h1 {
font-size: 1.5rem;
}
@media all and (max-width: 600px) {
.popover {
display: none !important;
}
}
a:hover .popover,
.popover:hover {
animation: dropin 0.3s ease;
animation-fill-mode: forwards;
animation-delay: 0.2s;
}
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxtYXJlcyB2YWNsYXZcXHNpdGVcXHF1YXJ0elxcY29tcG9uZW50c1xcc3R5bGVzIiwic291cmNlcyI6WyJwb3BvdmVyLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7RUFDRTtJQUNFO0lBQ0E7O0VBRUY7SUFDRTs7RUFFRjtJQUNFO0lBQ0E7OztBQUlKO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUE4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ltcG9ydGFudDtcbiAgfVxufVxuXG5hOmhvdmVyIC5wb3BvdmVyLFxuLnBvcG92ZXI6aG92ZXIge1xuICBhbmltYXRpb246IGRyb3BpbiAwLjNzIGVhc2U7XG4gIGFuaW1hdGlvbi1maWxsLW1vZGU6IGZvcndhcmRzO1xuICBhbmltYXRpb24tZGVsYXk6IDAuMnM7XG59XG4iXX0= */`;import{Features,transform}from"lightningcss";import{transform as transpile}from"esbuild";function getComponentResources(ctx){let allComponents=new Set;for(let emitter of ctx.cfg.plugins.emitters){let components=emitter.getQuartzComponents(ctx);for(let component of components)allComponents.add(component)}let componentResources={css:new Set,beforeDOMLoaded:new Set,afterDOMLoaded:new Set};for(let component of allComponents){let{css,beforeDOMLoaded,afterDOMLoaded}=component;css&&componentResources.css.add(css),beforeDOMLoaded&&componentResources.beforeDOMLoaded.add(beforeDOMLoaded),afterDOMLoaded&&componentResources.afterDOMLoaded.add(afterDOMLoaded)}return{css:[...componentResources.css],beforeDOMLoaded:[...componentResources.beforeDOMLoaded],afterDOMLoaded:[...componentResources.afterDOMLoaded]}}__name(getComponentResources,"getComponentResources");async function joinScripts(scripts){let script=scripts.map(script2=>`(function () {${script2}})();`).join(`
`);return(await transpile(script,{minify:!0})).code}__name(joinScripts,"joinScripts");function addGlobalPageResources(ctx,componentResources){let cfg=ctx.cfg.configuration;if(cfg.enablePopovers&&(componentResources.afterDOMLoaded.push(popover_inline_default),componentResources.css.push(popover_default)),cfg.analytics?.provider==="google"){let tagId=cfg.analytics.tagId;componentResources.afterDOMLoaded.push(`
const gtagScript = document.createElement("script")
gtagScript.src = "https://www.googletagmanager.com/gtag/js?id=${tagId}"
gtagScript.async = true
document.head.appendChild(gtagScript)
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag("js", new Date());
gtag("config", "${tagId}", { send_page_view: false });
document.addEventListener("nav", () => {
gtag("event", "page_view", {
page_title: document.title,
page_location: location.href,
});
});`)}else if(cfg.analytics?.provider==="plausible"){let plausibleHost=cfg.analytics.host??"https://plausible.io";componentResources.afterDOMLoaded.push(`
const plausibleScript = document.createElement("script")
plausibleScript.src = "${plausibleHost}/js/script.manual.js"
plausibleScript.setAttribute("data-domain", location.hostname)
plausibleScript.defer = true
document.head.appendChild(plausibleScript)
window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }
document.addEventListener("nav", () => {
plausible("pageview")
})
`)}else cfg.analytics?.provider==="umami"?componentResources.afterDOMLoaded.push(`
const umamiScript = document.createElement("script")
umamiScript.src = "${cfg.analytics.host??"https://analytics.umami.is"}/script.js"
umamiScript.setAttribute("data-website-id", "${cfg.analytics.websiteId}")
umamiScript.async = true
document.head.appendChild(umamiScript)
`):cfg.analytics?.provider==="goatcounter"&&componentResources.afterDOMLoaded.push(`
const goatcounterScript = document.createElement("script")
goatcounterScript.src = "${cfg.analytics.scriptSrc??"https://gc.zgo.at/count.js"}"
goatcounterScript.async = true
goatcounterScript.setAttribute("data-goatcounter",
"https://${cfg.analytics.websiteId}.${cfg.analytics.host??"goatcounter.com"}/count")
document.head.appendChild(goatcounterScript)
`);cfg.enableSPA?componentResources.afterDOMLoaded.push(spa_inline_default):componentResources.afterDOMLoaded.push(`
window.spaNavigate = (url, _) => window.location.assign(url)
window.addCleanup = () => {}
const event = new CustomEvent("nav", { detail: { url: document.body.dataset.slug } })
document.dispatchEvent(event)
`)}__name(addGlobalPageResources,"addGlobalPageResources");var ComponentResources=__name(()=>({name:"ComponentResources",getQuartzComponents(){return[]},async getDependencyGraph(_ctx,_content,_resources){return new DepGraph},async emit(ctx,_content,_resources){let promises=[],cfg=ctx.cfg.configuration,componentResources=getComponentResources(ctx),googleFontsStyleSheet="";if(cfg.theme.fontOrigin!=="local"){if(cfg.theme.fontOrigin==="googleFonts"&&!cfg.theme.cdnCaching){let match,fontSourceRegex=/url\((https:\/\/fonts.gstatic.com\/s\/[^)]+\.(woff2|ttf))\)/g;for(googleFontsStyleSheet=await(await fetch(googleFontHref(ctx.cfg.configuration.theme))).text();(match=fontSourceRegex.exec(googleFontsStyleSheet))!==null;){let url=match[1],[filename,ext]=url.split("/").pop().split(".");googleFontsStyleSheet=googleFontsStyleSheet.replace(url,`https://${cfg.baseUrl}/static/fonts/${filename}.ttf`),promises.push(fetch(url).then(res=>{if(!res.ok)throw new Error("Failed to fetch font");return res.arrayBuffer()}).then(buf=>write({ctx,slug:joinSegments("static","fonts",filename),ext:`.${ext}`,content:Buffer.from(buf)})))}}}addGlobalPageResources(ctx,componentResources);let stylesheet=joinStyles(ctx.cfg.configuration.theme,googleFontsStyleSheet,...componentResources.css,custom_default),[prescript,postscript]=await Promise.all([joinScripts(componentResources.beforeDOMLoaded),joinScripts(componentResources.afterDOMLoaded)]);return promises.push(write({ctx,slug:"index",ext:".css",content:transform({filename:"index.css",code:Buffer.from(stylesheet),minify:!0,targets:{safari:984576,ios_saf:984576,edge:7536640,firefox:6684672,chrome:7143424},include:Features.MediaQueries}).code.toString()}),write({ctx,slug:"prescript",ext:".js",content:prescript}),write({ctx,slug:"postscript",ext:".js",content:postscript})),await Promise.all(promises)}}),"ComponentResources");var NotFoundPage=__name(()=>{let opts={...sharedPageComponents,pageBody:__default(),beforeBody:[],left:[],right:[]},{head:Head,pageBody,footer:Footer}=opts,Body2=Body_default();return{name:"404Page",getQuartzComponents(){return[Head,Body2,pageBody,Footer]},async getDependencyGraph(_ctx,_content,_resources){return new DepGraph},async emit(ctx,_content,resources){let cfg=ctx.cfg.configuration,slug="404",path13=new URL(`https://${cfg.baseUrl??"example.com"}`).pathname,externalResources=pageResources(path13,resources),notFound=i18n(cfg.locale).pages.error.title,[tree,vfile]=defaultProcessedContent({slug,text:notFound,description:notFound,frontmatter:{title:notFound,tags:[]}}),componentData={ctx,fileData:vfile.data,externalResources,cfg,children:[],tree,allFiles:[]};return[await write({ctx,content:renderPage(cfg,slug,componentData,opts,externalResources),slug,ext:".html"})]}}},"NotFoundPage");import chalk5 from"chalk";function getStaticResourcesFromPlugins(ctx){let staticResources={css:[],js:[]};for(let transformer of ctx.cfg.plugins.transformers){let res=transformer.externalResources?transformer.externalResources(ctx):{};res?.js&&staticResources.js.push(...res.js),res?.css&&staticResources.css.push(...res.css)}if(ctx.argv.serve){let wsUrl=ctx.argv.remoteDevHost?`wss://${ctx.argv.remoteDevHost}:${ctx.argv.wsPort}`:`ws://localhost:${ctx.argv.wsPort}`;staticResources.js.push({loadTime:"afterDOMReady",contentType:"inline",script:`
const socket = new WebSocket('${wsUrl}')
// reload(true) ensures resources like images and scripts are fetched again in firefox
socket.addEventListener('message', () => document.location.reload(true))
`})}return staticResources}__name(getStaticResourcesFromPlugins,"getStaticResourcesFromPlugins");async function emitContent(ctx,content){let{argv,cfg}=ctx,perf=new PerfTimer,log=new QuartzLogger(ctx.argv.verbose);log.start("Emitting output files");let emittedFiles=0,staticResources=getStaticResourcesFromPlugins(ctx);for(let emitter of cfg.plugins.emitters)try{let emitted=await emitter.emit(ctx,content,staticResources);if(emittedFiles+=emitted.length,ctx.argv.verbose)for(let file of emitted)console.log(`[emit:${emitter.name}] ${file}`)}catch(err){trace(`Failed to emit from plugin \`${emitter.name}\``,err)}log.end(`Emitted ${emittedFiles} files to \`${argv.output}\` in ${perf.timeSince()}`)}__name(emitContent,"emitContent");var config={configuration:{pageTitle:"\u{1F303} Ulysia",enableSPA:!0,enablePopovers:!0,analytics:{provider:"plausible",host:"plausible.nexae.net"},locale:"en-US",baseUrl:"derg.cz",ignorePatterns:["private","templates",".obsidian"],defaultDateType:"created",theme:{fontOrigin:"googleFonts",cdnCaching:!0,typography:{header:"Schibsted Grotesk",body:"Source Sans Pro",code:"IBM Plex Mono"},colors:{lightMode:{light:"#faf8f8",lightgray:"#e5e5e5",gray:"#b8b8b8",darkgray:"#4e4e4e",dark:"#2b2b2b",secondary:"#064673",tertiary:"#e83a7d",highlight:"rgba(143, 159, 169, 0.15)"},darkMode:{light:"#161618",lightgray:"#393639",gray:"#646464",darkgray:"#d4d4d4",dark:"#ebebec",secondary:"#439fde",tertiary:"#e83a7d",highlight:"rgba(143, 159, 169, 0.15)"}}}},plugins:{transformers:[FrontMatter(),CreatedModifiedDate({priority:["frontmatter","filesystem"]}),Latex({renderEngine:"katex"}),SyntaxHighlighting({theme:{light:"github-light",dark:"github-dark"},keepBackground:!1}),ObsidianFlavoredMarkdown({enableInHtmlEmbed:!1}),GitHubFlavoredMarkdown(),TableOfContents(),CrawlLinks({markdownLinkResolution:"shortest"}),Description()],filters:[RemoveDrafts()],emitters:[AliasRedirects(),ComponentResources(),ContentPage(),FolderPage(),TagPage(),ContentIndex({enableSiteMap:!0,enableRSS:!0}),Assets(),Static(),NotFoundPage()]}},quartz_config_default=config;import chokidar from"chokidar";import fs5 from"fs";import{fileURLToPath}from"url";var options={retrieveSourceMap(source){if(source.includes(".quartz-cache")){let realSource=fileURLToPath(source.split("?",2)[0]+".map");return{map:fs5.readFileSync(realSource,"utf8")}}else return null}};sourceMapSupport.install(options);async function buildQuartz(argv,mut,clientRefresh){let ctx={argv,cfg:quartz_config_default,allSlugs:[]},perf=new PerfTimer,output=argv.output,pluginCount=Object.values(quartz_config_default.plugins).flat().length,pluginNames=__name(key=>quartz_config_default.plugins[key].map(plugin=>plugin.name),"pluginNames");argv.verbose&&(console.log(`Loaded ${pluginCount} plugins`),console.log(` Transformers: ${pluginNames("transformers").join(", ")}`),console.log(` Filters: ${pluginNames("filters").join(", ")}`),console.log(` Emitters: ${pluginNames("emitters").join(", ")}`));let release=await mut.acquire();perf.addEvent("clean"),await rimraf(path12.join(output,"*"),{glob:!0}),console.log(`Cleaned output directory \`${output}\` in ${perf.timeSince("clean")}`),perf.addEvent("glob");let allFiles=await glob("**/*.*",argv.directory,quartz_config_default.configuration.ignorePatterns),fps=allFiles.filter(fp=>fp.endsWith(".md")).sort();console.log(`Found ${fps.length} input files from \`${argv.directory}\` in ${perf.timeSince("glob")}`);let filePaths=fps.map(fp=>joinSegments(argv.directory,fp));ctx.allSlugs=allFiles.map(fp=>slugifyFilePath(fp));let parsedFiles=await parseMarkdown(ctx,filePaths),filteredContent=filterContent(ctx,parsedFiles),dependencies={};if(argv.fastRebuild){let staticResources=getStaticResourcesFromPlugins(ctx);for(let emitter of quartz_config_default.plugins.emitters)dependencies[emitter.name]=await emitter.getDependencyGraph?.(ctx,filteredContent,staticResources)??null}if(await emitContent(ctx,filteredContent),console.log(chalk6.green(`Done processing ${fps.length} files in ${perf.timeSince()}`)),release(),argv.serve)return startServing(ctx,mut,parsedFiles,clientRefresh,dependencies)}__name(buildQuartz,"buildQuartz");async function startServing(ctx,mut,initialContent,clientRefresh,dependencies){let{argv}=ctx,contentMap=new Map;for(let content of initialContent){let[_tree,vfile]=content;contentMap.set(vfile.data.filePath,content)}let buildData={ctx,mut,dependencies,contentMap,ignored:await isGitIgnored(),initialSlugs:ctx.allSlugs,toRebuild:new Set,toRemove:new Set,trackedAssets:new Set,lastBuildMs:0},watcher=chokidar.watch(".",{persistent:!0,cwd:argv.directory,ignoreInitial:!0}),buildFromEntry=argv.fastRebuild?partialRebuildFromEntrypoint:rebuildFromEntrypoint;return watcher.on("add",fp=>buildFromEntry(fp,"add",clientRefresh,buildData)).on("change",fp=>buildFromEntry(fp,"change",clientRefresh,buildData)).on("unlink",fp=>buildFromEntry(fp,"delete",clientRefresh,buildData)),async()=>{await watcher.close()}}__name(startServing,"startServing");async function partialRebuildFromEntrypoint(filepath,action,clientRefresh,buildData){let{ctx,ignored,dependencies,contentMap,mut,toRemove}=buildData,{argv,cfg}=ctx;if(ignored(filepath))return;let buildStart=new Date().getTime();buildData.lastBuildMs=buildStart;let release=await mut.acquire();if(buildData.lastBuildMs>buildStart){release();return}let perf=new PerfTimer;console.log(chalk6.yellow("Detected change, rebuilding..."));let fp=joinSegments(argv.directory,toPosixPath(filepath)),staticResources=getStaticResourcesFromPlugins(ctx),processedFiles=[];switch(action){case"add":processedFiles=await parseMarkdown(ctx,[fp]),processedFiles.forEach(([tree,vfile])=>contentMap.set(vfile.data.filePath,[tree,vfile]));for(let emitter of cfg.plugins.emitters){let emitterGraph=await emitter.getDependencyGraph?.(ctx,processedFiles,staticResources)??null;if(emitterGraph){let existingGraph=dependencies[emitter.name];existingGraph!==null?existingGraph.mergeGraph(emitterGraph):dependencies[emitter.name]=emitterGraph}}break;case"change":if(processedFiles=await parseMarkdown(ctx,[fp]),processedFiles.forEach(([tree,vfile])=>contentMap.set(vfile.data.filePath,[tree,vfile])),path12.extname(fp)===".md")for(let emitter of cfg.plugins.emitters){let emitterGraph=await emitter.getDependencyGraph?.(ctx,processedFiles,staticResources)??null;emitterGraph?.hasNode(fp)&&dependencies[emitter.name]?.updateIncomingEdgesForNode(emitterGraph,fp)}break;case"delete":toRemove.add(fp);break}argv.verbose&&console.log(`Updated dependency graphs in ${perf.timeSince()}`),perf.addEvent("rebuild");let emittedFiles=0;for(let emitter of cfg.plugins.emitters){let depGraph=dependencies[emitter.name];if(depGraph===null){argv.verbose&&console.log(`Emitter ${emitter.name} doesn't define a dependency graph. Calling it with all files...`);let files=[...contentMap.values()].filter(([_node,vfile])=>!toRemove.has(vfile.data.filePath)),emittedFps=await emitter.emit(ctx,files,staticResources);if(ctx.argv.verbose)for(let file of emittedFps)console.log(`[emit:${emitter.name}] ${file}`);emittedFiles+=emittedFps.length;continue}if(depGraph.hasNode(fp)){let upstreamContent=[...depGraph.getLeafNodeAncestors(fp)].filter(file=>contentMap.has(file)).filter(file=>!toRemove.has(file)).map(file=>contentMap.get(file)),emittedFps=await emitter.emit(ctx,upstreamContent,staticResources);if(ctx.argv.verbose)for(let file of emittedFps)console.log(`[emit:${emitter.name}] ${file}`);emittedFiles+=emittedFps.length}}console.log(`Emitted ${emittedFiles} files to \`${argv.output}\` in ${perf.timeSince("rebuild")}`);let destinationsToDelete=new Set;for(let file of toRemove)contentMap.delete(file),Object.values(dependencies).forEach(depGraph=>{depGraph?.removeNode(file),depGraph?.removeOrphanNodes()?.forEach(node=>{node.startsWith(argv.output)&&destinationsToDelete.add(node)})});await rimraf([...destinationsToDelete]),console.log(chalk6.green(`Done rebuilding in ${perf.timeSince()}`)),toRemove.clear(),release(),clientRefresh()}__name(partialRebuildFromEntrypoint,"partialRebuildFromEntrypoint");async function rebuildFromEntrypoint(fp,action,clientRefresh,buildData){let{ctx,ignored,mut,initialSlugs,contentMap,toRebuild,toRemove,trackedAssets}=buildData,{argv}=ctx;if(ignored(fp))return;fp=toPosixPath(fp);let filePath=joinSegments(argv.directory,fp);if(path12.extname(fp)!==".md"){action==="add"||action==="change"?trackedAssets.add(filePath):action==="delete"&&trackedAssets.delete(filePath),clientRefresh();return}action==="add"||action==="change"?toRebuild.add(filePath):action==="delete"&&toRemove.add(filePath);let buildStart=new Date().getTime();buildData.lastBuildMs=buildStart;let release=await mut.acquire();if(buildData.lastBuildMs>buildStart){release();return}let perf=new PerfTimer;console.log(chalk6.yellow("Detected change, rebuilding..."));try{let filesToRebuild=[...toRebuild].filter(fp2=>!toRemove.has(fp2)),trackedSlugs=[...new Set([...contentMap.keys(),...toRebuild,...trackedAssets])].filter(fp2=>!toRemove.has(fp2)).map(fp2=>slugifyFilePath(path12.posix.relative(argv.directory,fp2)));ctx.allSlugs=[...new Set([...initialSlugs,...trackedSlugs])];let parsedContent=await parseMarkdown(ctx,filesToRebuild);for(let content of parsedContent){let[_tree,vfile]=content;contentMap.set(vfile.data.filePath,content)}for(let fp2 of toRemove)contentMap.delete(fp2);let parsedFiles=[...contentMap.values()],filteredContent=filterContent(ctx,parsedFiles);await rimraf(path12.join(argv.output,".*"),{glob:!0}),await emitContent(ctx,filteredContent),console.log(chalk6.green(`Done rebuilding in ${perf.timeSince()}`))}catch(err){console.log(chalk6.yellow("Rebuild failed. Waiting on a change to fix the error...")),argv.verbose&&console.log(chalk6.red(err))}release(),clientRefresh(),toRebuild.clear(),toRemove.clear()}__name(rebuildFromEntrypoint,"rebuildFromEntrypoint");var build_default=__name(async(argv,mut,clientRefresh)=>{try{return await buildQuartz(argv,mut,clientRefresh)}catch(err){trace(`
Exiting Quartz due to a fatal error`,err)}},"default");export{build_default as default};
//# sourceMappingURL=transpiled-build.mjs.map