From 48e57e4dafb213394b4362cdd85f5e70b833e0c9 Mon Sep 17 00:00:00 2001 From: sofiabordagorry Date: Mon, 12 Oct 2026 20:09:00 -0300 Subject: [PATCH] feat: mark retired versions in the version dropdown --- assets/js/handlebars/templates/versions-dropdown.handlebars | 2 +- formatters/html/dist/{html-6JAKO2AV.js => html-MR34O4MU.js} | 6 +++--- lib/ex_doc.ex | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) rename formatters/html/dist/{html-6JAKO2AV.js => html-MR34O4MU.js} (99%) diff --git a/assets/js/handlebars/templates/versions-dropdown.handlebars b/assets/js/handlebars/templates/versions-dropdown.handlebars index ed083c0c0..a783046b0 100644 --- a/assets/js/handlebars/templates/versions-dropdown.handlebars +++ b/assets/js/handlebars/templates/versions-dropdown.handlebars @@ -5,7 +5,7 @@ diff --git a/formatters/html/dist/html-6JAKO2AV.js b/formatters/html/dist/html-MR34O4MU.js similarity index 99% rename from formatters/html/dist/html-6JAKO2AV.js rename to formatters/html/dist/html-MR34O4MU.js index 09d60e1dc..fea50d3ca 100644 --- a/formatters/html/dist/html-6JAKO2AV.js +++ b/formatters/html/dist/html-MR34O4MU.js @@ -4,9 +4,9 @@ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-contr `),d=0,h=c.length;d{"use strict";ut.__esModule=!0;ut.default=function(e){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}};ai.exports=ut.default});var fi=_((ct,hi)=>{"use strict";ct.__esModule=!0;function un(e){return e&&e.__esModule?e:{default:e}}function cn(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var Pa=sn(),ui=cn(Pa),Oa=Zr(),Aa=un(Oa),Ia=J(),Ca=un(Ia),Ra=q(),ln=cn(Ra),Ma=oi(),ci=cn(Ma),Ha=li(),Na=un(Ha);function di(){var e=new ui.HandlebarsEnvironment;return ln.extend(e,ui),e.SafeString=Aa.default,e.Exception=Ca.default,e.Utils=ln,e.escapeExpression=ln.escapeExpression,e.VM=ci,e.template=function(t){return ci.template(t,e)},e}var ke=di();ke.create=di;Na.default(ke);ke.default=ke;ct.default=ke;hi.exports=ct.default});var oe=_((Rc,pi)=>{pi.exports=fi().default});var Ui=_((Vi,$i)=>{(function(){var e=function(t){var n=new e.Builder;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),n.searchPipeline.add(e.stemmer),t.call(n,n),n.build()};e.version="2.3.9";e.utils={},e.utils.warn=(function(t){return function(n){t.console&&console.warn&&console.warn(n)}})(this),e.utils.asString=function(t){return t==null?"":t.toString()},e.utils.clone=function(t){if(t==null)return t;for(var n=Object.create(null),r=Object.keys(t),i=0;i0){var c=e.utils.clone(n)||{};c.position=[a,u],c.index=s.length,s.push(new e.Token(r.slice(a,o),c))}a=o+1}}return s},e.tokenizer.separator=/[\s\-]+/;e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions=Object.create(null),e.Pipeline.registerFunction=function(t,n){n in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+n),t.label=n,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){var n=t.label&&t.label in this.registeredFunctions;n||e.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. `,t)},e.Pipeline.load=function(t){var n=new e.Pipeline;return t.forEach(function(r){var i=e.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},e.Pipeline.prototype.add=function(){var t=Array.prototype.slice.call(arguments);t.forEach(function(n){e.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},e.Pipeline.prototype.after=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},e.Pipeline.prototype.before=function(t,n){e.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(t);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},e.Pipeline.prototype.remove=function(t){var n=this._stack.indexOf(t);n!=-1&&this._stack.splice(n,1)},e.Pipeline.prototype.run=function(t){for(var n=this._stack.length,r=0;r1&&(ot&&(r=s),o!=t);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==t||o>t)return s*2;if(ol?c+=2:a==l&&(n+=r[u+1]*i[c+1],u+=2,c+=2);return n},e.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},e.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new e.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new e.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new e.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var c=s.str.charAt(0),d=s.str.charAt(1),h;d in s.node.edges?h=s.node.edges[d]:(h=new e.TokenSet,s.node.edges[d]=h),s.str.length==1&&(h.final=!0),i.push({node:h,editsRemaining:s.editsRemaining-1,str:c+s.str.slice(2)})}}}return r},e.TokenSet.fromString=function(t){for(var n=new e.TokenSet,r=n,i=0,s=t.length;i=t;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};e.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline},e.Index.prototype.search=function(t){return this.query(function(n){var r=new e.QueryParser(t,n);r.parse()})},e.Index.prototype.query=function(t){for(var n=new e.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=t},e.Builder.prototype.k1=function(t){this._k1=t},e.Builder.prototype.add=function(t,n){var r=t[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return e.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},e.QueryLexer.prototype.width=function(){return this.pos-this.start},e.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},e.QueryLexer.prototype.backup=function(){this.pos-=1},e.QueryLexer.prototype.acceptDigitRun=function(){var t,n;do t=this.next(),n=t.charCodeAt(0);while(n>47&&n<58);t!=e.QueryLexer.EOS&&this.backup()},e.QueryLexer.prototype.more=function(){return this.pos1&&(t.backup(),t.emit(e.QueryLexer.TERM)),t.ignore(),t.more())return e.QueryLexer.lexText},e.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(e.QueryLexer.EDIT_DISTANCE),e.QueryLexer.lexText},e.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(e.QueryLexer.BOOST),e.QueryLexer.lexText},e.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(e.QueryLexer.TERM)},e.QueryLexer.termSeparator=e.tokenizer.separator,e.QueryLexer.lexText=function(t){for(;;){var n=t.next();if(n==e.QueryLexer.EOS)return e.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){t.escapeCharacter();continue}if(n==":")return e.QueryLexer.lexField;if(n=="~")return t.backup(),t.width()>0&&t.emit(e.QueryLexer.TERM),e.QueryLexer.lexEditDistance;if(n=="^")return t.backup(),t.width()>0&&t.emit(e.QueryLexer.TERM),e.QueryLexer.lexBoost;if(n=="+"&&t.width()===1||n=="-"&&t.width()===1)return t.emit(e.QueryLexer.PRESENCE),e.QueryLexer.lexText;if(n.match(e.QueryLexer.termSeparator))return e.QueryLexer.lexTerm}},e.QueryParser=function(t,n){this.lexer=new e.QueryLexer(t),this.query=n,this.currentClause={},this.lexemeIdx=0},e.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=e.QueryParser.parseClause;t;)t=t(this);return this.query},e.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},e.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},e.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},e.QueryParser.parseClause=function(t){var n=t.peekLexeme();if(n!=null)switch(n.type){case e.QueryLexer.PRESENCE:return e.QueryParser.parsePresence;case e.QueryLexer.FIELD:return e.QueryParser.parseField;case e.QueryLexer.TERM:return e.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new e.QueryParseError(r,n.start,n.end)}},e.QueryParser.parsePresence=function(t){var n=t.consumeLexeme();if(n!=null){switch(n.str){case"-":t.currentClause.presence=e.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=e.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new e.QueryParseError(r,n.start,n.end)}var i=t.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new e.QueryParseError(r,n.start,n.end)}switch(i.type){case e.QueryLexer.FIELD:return e.QueryParser.parseField;case e.QueryLexer.TERM:return e.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new e.QueryParseError(r,i.start,i.end)}}},e.QueryParser.parseField=function(t){var n=t.consumeLexeme();if(n!=null){if(t.query.allFields.indexOf(n.str)==-1){var r=t.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new e.QueryParseError(i,n.start,n.end)}t.currentClause.fields=[n.str];var s=t.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new e.QueryParseError(i,n.start,n.end)}if(s.type===e.QueryLexer.TERM)return e.QueryParser.parseTerm;var i="expecting term, found '"+s.type+"'";throw new e.QueryParseError(i,s.start,s.end)}},e.QueryParser.parseTerm=function(t){var n=t.consumeLexeme();if(n!=null){t.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(t.currentClause.usePipeline=!1);var r=t.peekLexeme();if(r==null){t.nextClause();return}switch(r.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new e.QueryParseError(i,r.start,r.end)}}},e.QueryParser.parseEditDistance=function(t){var n=t.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new e.QueryParseError(i,n.start,n.end)}t.currentClause.editDistance=r;var s=t.peekLexeme();if(s==null){t.nextClause();return}switch(s.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new e.QueryParseError(i,s.start,s.end)}}},e.QueryParser.parseBoost=function(t){var n=t.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new e.QueryParseError(i,n.start,n.end)}t.currentClause.boost=r;var s=t.peekLexeme();if(s==null){t.nextClause();return}switch(s.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new e.QueryParseError(i,s.start,s.end)}}},(function(t,n){typeof define=="function"&&define.amd?define(n):typeof Vi=="object"?$i.exports=n():t.lunr=n()})(this,function(){return e})})()});var re={plain:"plain",function:"function",module:"module"},Cs=[{href:"typespecs.html#basic-types",hint:{kind:re.plain,description:"Basic type"}},{href:"typespecs.html#literals",hint:{kind:re.plain,description:"Literal"}},{href:"typespecs.html#built-in-types",hint:{kind:re.plain,description:"Built-in type"}}],He={cancelHintFetching:null};function Wn(e){if(Gn(e))return!0;let t=/#.*\//;return e.includes("#")&&!t.test(e)?!1:e.includes(".html")}function zn(e){let t=Gn(e);return t?Promise.resolve(t):Rs(e)}function Gn(e){let t=Cs.find(n=>e.includes(n.href));return t?t.hint:null}function Rs(e){let t=e.replace(".html",".html?hint=true");return new Promise((n,r)=>{let i=document.createElement("iframe");i.setAttribute("src",t),i.style.display="none";function s(a){let{href:l,hint:u}=a.data;t===l&&(o(),n(u))}He.cancelHintFetching=()=>{o(),r(new Error("cancelled"))};function o(){i.remove(),window.removeEventListener("message",s),He.cancelHintFetching=null}window.addEventListener("message",s),document.body.appendChild(i)})}function Kn(){He.cancelHintFetching&&He.cancelHintFetching()}function Yn(e){let n=e.querySelector("h1").textContent,r=e.querySelector(".docstring > p"),i=r?r.innerHTML:"";return{kind:re.function,title:n.trim(),description:i.trim()}}function Jn(e){let n=e.querySelector("h1 > span").textContent,r=e.querySelector("#moduledoc p"),i=r?r.innerHTML:"";return{kind:re.module,title:n.trim(),description:i.trim()}}var f=document.querySelector.bind(document),A=document.querySelectorAll.bind(document);function Xn(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function de(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function De(){return document.getElementById("main").dataset.type}var Ne=["H1","H2","H3","H4","H5","H6"];function Zn(e=!1){let t=window.location.hash.replace(/^#/,"");if(!t)return e?document.getElementById("top-content"):null;let n=document.getElementById(t);if(!n)return null;if(n.matches(".detail"))return n;if(Ne.includes(n.tagName))return Pt(n);let r=Ms(n);return r||document.getElementById("top-content")}function Ms(e){let t=e.previousElementSibling;for(;t;){if(Ne.includes(t.tagName))return Pt(t);t=t.previousElementSibling}let n=e.parentNode;for(;n;){for(t=n.previousElementSibling;t;){if(Ne.includes(t.tagName))return Pt(t);t=t.previousElementSibling}n=n.parentNode}return null}function Pt(e){let t=document.createElement("div"),n=[e],r=e;for(;(r=r.nextSibling)&&!(Ne.includes(r.tagName)&&r.tagName<=e.tagName);)n.push(r);return t.append(...n),t}function er(e){return new URLSearchParams(window.location.search).get(e)}function Ot(e){return fetch(e).then(t=>t.ok).catch(()=>!1)}function he(e){return!e||e.trim()===""}function tr(e,t){let n;return function(...i){clearTimeout(n),n=setTimeout(()=>{n=null,e(...i)},t)}}function Be(){return document.head.querySelector("meta[name=project][content]").content}function Qe(){return document.documentElement.classList.contains("apple-os")}function E(e,t,n){let r=document.createElement(e);for(let i in t)t[i]!=null&&r.setAttribute(i,t[i]);return n&&r.replaceChildren(...n),r}var Hs=new URLSearchParams(window.location.search),Ns=window.self!==window.parent,At=Ns&&Hs.has("hint"),C=At;function qe(){return window.sidebarNodes||{}}function nr(){return window.versionNodes||[]}if(At&&C){let e=Zn(),t=e?Yn(e):["modules","tasks"].includes(De())?Jn(f(".content-inner")):null;if(t){let n={hint:{...t,version:Be()},href:window.location.href};window.parent.postMessage(n,"*")}f(".content-inner")?.replaceChildren()}var It="ex_doc:settings",rr="dark",Ct="system",Rt="dark",Mt="light";var Ds={tooltips:!0,theme:null,livebookUrl:null},Ht=class{constructor(){this._subscribers=[],this._settings=Ds,this._loadSettings()}get(){return this._settings}update(t){let n=this._settings;this._settings={...this._settings,...t},this._subscribers.forEach(r=>r(this._settings,n)),this._storeSettings()}getAndSubscribe(t){this._subscribers.push(t),t(this._settings)}_loadSettings(){try{let t=localStorage.getItem(It);if(t){let n=JSON.parse(t);this._settings={...this._settings,...n}}this._loadSettingsLegacy()}catch(t){console.error(`Failed to load settings: ${t}`)}}_storeSettings(){try{this._storeSettingsLegacy(),localStorage.setItem(It,JSON.stringify(this._settings))}catch(t){console.error(`Failed to persist settings: ${t}`)}}_loadSettingsLegacy(){localStorage.getItem("tooltipsDisabled")!==null&&(this._settings={...this._settings,tooltips:!1}),localStorage.getItem("night-mode")==="true"&&(this._settings={...this._settings,nightMode:!0}),this._settings.nightMode===!0&&(this._settings={...this._settings,theme:"dark"})}_storeSettingsLegacy(){this._settings.tooltips?localStorage.removeItem("tooltipsDisabled"):localStorage.setItem("tooltipsDisabled","true"),this._settings.nightMode!==null?localStorage.setItem("night-mode",this._settings.nightMode===!0?"true":"false"):localStorage.removeItem("night-mode"),this._settings.theme!==null?(localStorage.setItem("night-mode",this._settings.theme==="dark"?"true":"false"),this._settings.nightMode=this._settings.theme==="dark"):(delete this._settings.nightMode,localStorage.removeItem("night-mode"))}},R=new Ht;var ir=!1,Fe=null,Y=null;function Ve(e){ir||(ir=!0,Y=document.getElementById("toast"),Y?.addEventListener("click",()=>{clearTimeout(Fe),Y.classList.remove("show")})),Y&&(clearTimeout(Fe),Y.innerText=e,Y.classList.add("show"),Fe=setTimeout(()=>{Y.classList.remove("show"),Fe=setTimeout(function(){Y.innerText=""},1e3)},5e3))}var Nt=[Ct,Rt,Mt],sr=window.matchMedia("(prefers-color-scheme: dark)");R.getAndSubscribe(or);sr.addEventListener("change",or);function or(){let e=lr(),t=e===Rt||e!==Mt&&sr.matches;document.body.classList.toggle(rr,t)}function ar(){let e=Nt[Nt.indexOf(lr())+1]||Nt[0];R.update({theme:e}),Ve(`Set theme to "${e}"`)}function lr(){return new URLSearchParams(window.location.search).get("theme")||R.get().theme||Ct}var Er=K(fr());var Bt="sidebar_state",Qt="closed",pr="open",mr="sidebar_width";var Ue="sidebar-open",je="sidebar-transition";var gr=!1;function vr(){if(gr)return;gr=!0;let e=document.getElementById("sidebar-list-nav");if(!e)return;let t=De(),n={extras:e.dataset.extras,modules:"Modules",tasks:'Mix Tasks'};Object.entries(n).forEach(([r,i])=>{let s=qe()[r];if(!s?.length)return;let o=`${r}-list-tab-button`,a=`${r}-tab-panel`,l=r===t,u=E("button",{id:o,role:"tab",tabindex:l?0:-1,"aria-selected":l||void 0,"aria-controls":a});u.innerHTML=i,u.addEventListener("keydown",ro),u.addEventListener("click",io),e.appendChild(E("li",{},[u]));let c=E("ul",{class:"full-list"});c.addEventListener("click",so);let d=E("div",{id:a,class:"sidebar-tabpanel",role:"tabpanel","aria-labelledby":o,hidden:l?void 0:""},[c]);document.getElementById("sidebar").appendChild(d);let h="",p,g;c.replaceChildren(...s.flatMap(m=>{let v=[],w=Array.isArray(m.headers),x=w?void 0:"no",P=m?.url||`${m.id}.html`;return m.group!==h&&(v.push(E("li",{class:"group",translate:x},[m.group])),h=m.group,p=void 0),m.nested_context&&m.nested_context!==p?(p=m.nested_context,g!==p&&v.push(E("li",{class:"nesting-context",translate:"no","aria-hidden":!0},[p]))):g=m.title,v.push(E("li",{},[E("a",{href:P,translate:x,...m.url?{rel:"nofollow"}:{}},[m.nested_title||m.title,m.url?E("i",{class:"external-link ri-external-link-line"}):null].filter(Boolean)),...Ft(`node-${m.id}-headers`,w?to(m):no(m))])),v}))}),qt(),requestAnimationFrame(yr),window.addEventListener("hashchange",qt),window.addEventListener("exdoc:loaded",qt)}function Ft(e,t){return t.length?[E("button",{"aria-label":"expand","aria-expanded":!1,"aria-controls":e}),E("ul",{id:e},t)]:[]}function to(e){return e.headers.map(({id:t,anchor:n})=>E("li",{},[E("a",{href:`${e.id}.html#${n}`},[t])]))}function no(e){let t=[];return e.sections?.length&&t.push(E("li",{},[E("a",{href:`${e.id}.html#content`},["Sections"]),...Ft(`${e.id}-sections-list`,e.sections.map(({id:n,anchor:r})=>E("li",{},[E("a",{href:`${e.id}.html#${r}`},[n])])))])),e.nodeGroups&&(t.push(E("li",{},[E("a",{href:`${e.id}.html#summary`},["Summary"])])),t.push(...e.nodeGroups.map(({key:n,name:r,nodes:i})=>E("li",{},[E("a",{href:`${e.id}.html#${n}`},[r]),...Ft(`node-${e.id}-group-${n}-list`,i.map(({anchor:s,title:o,id:a})=>E("li",{},[E("a",{href:`${e.id}.html#${s}`,title:o,translate:"no"},[a])])))])))),t}function Vt(e){let t=document.getElementById("sidebar-list-nav").querySelector("[aria-selected]");t!==e&&(t&&(t.removeAttribute("aria-selected"),t.setAttribute("tabindex","-1"),document.getElementById(t.getAttribute("aria-controls")).setAttribute("hidden","hidden")),e.setAttribute("aria-selected","true"),e.setAttribute("tabindex","0"),document.getElementById(e.getAttribute("aria-controls")).removeAttribute("hidden"))}function yr(){f("#sidebar [role=tabpanel]:not([hidden]) a[aria-selected]")?.scrollIntoView()}function qt(){let e=document.getElementById("sidebar"),{pathname:t,hash:n}=window.location,r=t.split("/").pop().replace(/\.html$/,"")+".html",i=e.querySelector(`li a[href="${r+n}"]`)||e.querySelector(`li a[href="${r}"]`);if(!i)return;e.querySelectorAll(".full-list a[aria-selected]").forEach(o=>{o.removeAttribute("aria-selected")}),e.querySelectorAll(".full-list button[aria-expanded=true]").forEach(o=>{o.setAttribute("aria-expanded",!1)});let s=i.parentElement;for(;s;){if(s.tagName==="LI"){let o=s.firstChild;o.setAttribute("aria-selected",o.getAttribute("href")===r?"page":"true");let a=o.nextSibling;a?.tagName==="BUTTON"&&a.setAttribute("aria-expanded",!0)}else if(s.role==="tabpanel"){s.hasAttribute("hidden")&&Vt(document.getElementById(s.getAttribute("aria-labelledby")));break}s=s.parentElement}}function ro(e){if(!["ArrowRight","ArrowLeft"].includes(e.key))return;let t=Array.from(A('#sidebar-list-nav [role="tab"]')),r=t.indexOf(e.currentTarget)+(e.key==="ArrowRight"?1:-1),i=t.at(r%t.length);Vt(i),i.focus()}function io(e){Vt(e.currentTarget),yr()}function so(e){let t=e.target;t.tagName==="BUTTON"&&t.setAttribute("aria-expanded",t.getAttribute("aria-expanded")==="false")}var ao=300,xr=".sidebar-toggle",$t=window.matchMedia(`screen and (max-width: ${768}px)`);if(!C){window.addEventListener("exdoc:loaded",wr);let e=document.getElementById("sidebar"),t=f(xr);t.addEventListener("click",We),document.body.addEventListener("click",i=>{$t.matches&&Ut()&&!e.contains(i.target)&&!t.contains(i.target)&&We()});let n=window.innerWidth;window.addEventListener("resize",(0,Er.default)(()=>{n!==window.innerWidth&&(n=window.innerWidth,wr())},100));let r=new ResizeObserver(([i])=>{if(!i)return;let s=i.contentRect.width;sessionStorage.setItem(mr,s),document.body.style.setProperty("--sidebarWidth",`${s}px`)});e.addEventListener("mousedown",()=>r.observe(e)),e.addEventListener("mouseup",()=>r.unobserve(e)),window.addEventListener("hashchange",lo)}function wr(){let t=sessionStorage.getItem(Bt)!==Qt&&!$t.matches;kr(t)}function We(){let e=!Ut();return sessionStorage.setItem(Bt,e?pr:Qt),jt(e)}function Ut(){return document.body.classList.contains(Ue)}function Sr(){return document.body.classList.contains(Ue)&&!document.body.classList.contains(je)}function kr(e){e&&vr(),document.body.classList.toggle(Ue,e),f(xr).setAttribute("aria-expanded",e?"true":"false")}var br;function jt(e){return new Promise(t=>{document.body.classList.add(je),document.body.scrollTop,kr(e),clearTimeout(br),br=setTimeout(()=>{document.body.classList.remove(je),t()},ao)})}function _r(){return jt(!0)}function lo(){$t.matches&&Ut()&&jt(!1)}var mi=K(oe());var dn=K(oe());dn.registerHelper("isArray",function(e,t){return Array.isArray(e)?t.fn(this):t.inverse(this)});dn.registerHelper("isNonEmptyArray",function(e,t){return Array.isArray(e)&&e.length>0?t.fn(this):t.inverse(this)});var gi=mi.template({0:function(e,t,n,r,i){var s,o,a=t??(e.nullContext||{}),l=e.hooks.helperMissing,u="function",c=e.escapeExpression,d=e.lookupProperty||function(h,p){if(Object.prototype.hasOwnProperty.call(h,p))return h[p]};return' -`},1:function(e,t,n,r,i){return" selected disabled"},2:function(e,t,n,r,i){var s,o=e.lookupProperty||function(a,l){if(Object.prototype.hasOwnProperty.call(a,l))return a[l]};return`