diff --git a/docs/_astro/hoisted.Dcs0tAB0.js b/docs/_astro/hoisted.jZutXUoP.js similarity index 87% rename from docs/_astro/hoisted.Dcs0tAB0.js rename to docs/_astro/hoisted.jZutXUoP.js index bbd08d1a32..c15adf4143 100644 --- a/docs/_astro/hoisted.Dcs0tAB0.js +++ b/docs/_astro/hoisted.jZutXUoP.js @@ -1,2 +1,2 @@ const __vite__fileDeps=["_astro/ui-core.By5lRjrX.js","_astro/preload-helper.ygWHROA3.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{_ as re}from"./preload-helper.ygWHROA3.js";import{i as se}from"./index.BXBeSuXa.js";class ae extends HTMLElement{constructor(){super();const e=this.querySelector("select");e&&e.addEventListener("change",n=>{n.currentTarget instanceof HTMLSelectElement&&(window.location.pathname=n.currentTarget.value)})}}customElements.define("starlight-lang-select",ae);class ie extends HTMLElement{constructor(){super();const e=this.querySelector("button[data-open-modal]"),n=this.querySelector("button[data-close-modal]"),o=this.querySelector("dialog"),r=this.querySelector(".dialog-frame"),i=a=>{("href"in(a.target||{})||document.body.contains(a.target)&&!r.contains(a.target))&&l()},c=a=>{o.showModal(),document.body.toggleAttribute("data-search-modal-open",!0),this.querySelector("input")?.focus(),a?.stopPropagation(),window.addEventListener("click",i)},l=()=>o.close();e.addEventListener("click",c),e.disabled=!1,n.addEventListener("click",l),o.addEventListener("close",()=>{document.body.toggleAttribute("data-search-modal-open",!1),window.removeEventListener("click",i)}),window.addEventListener("keydown",a=>{const d=document.activeElement instanceof HTMLElement&&(["input","select","textarea"].includes(document.activeElement.tagName.toLowerCase())||document.activeElement.isContentEditable);(a.metaKey===!0||a.ctrlKey===!0)&&a.key==="k"?(o.open?l():c(),a.preventDefault()):a.key==="/"&&!o.open&&!d&&(c(),a.preventDefault())});let s={};try{s=JSON.parse(this.dataset.translations||"{}")}catch{}const h=this.dataset.stripTrailingSlash!==void 0?a=>a.replace(/(.)\/(#.*)?$/,"$1$2"):a=>a;window.addEventListener("DOMContentLoaded",()=>{(window.requestIdleCallback||(d=>setTimeout(d,1)))(async()=>{const{PagefindUI:d}=await re(()=>import("./ui-core.By5lRjrX.js"),__vite__mapDeps([0,1]));new d({element:"#starlight__search",baseUrl:"/",bundlePath:"/".replace(/\/$/,"")+"/pagefind/",showImages:!1,translations:s,showSubResults:!0,processResult:p=>{p.url=h(p.url),p.sub_results=p.sub_results.map(E=>(E.url=h(E.url),E))}})})})}}customElements.define("site-search",ie);class ce extends HTMLElement{#e="starlight-theme";constructor(){super(),this.#n(this.#s());const e=this.querySelector("select");e&&e.addEventListener("change",n=>{n.currentTarget instanceof HTMLSelectElement&&this.#n(this.#t(n.currentTarget.value))})}#t(e){return e==="auto"||e==="dark"||e==="light"?e:"auto"}#o(){return matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}#n(e){StarlightThemeProvider.updatePickers(e),document.documentElement.dataset.theme=e==="auto"?this.#o():e,this.#r(e)}#r(e){typeof localStorage<"u"&&(e==="light"||e==="dark"?localStorage.setItem(this.#e,e):localStorage.removeItem(this.#e))}#s(){const e=typeof localStorage<"u"&&localStorage.getItem(this.#e);return this.#t(e)}}customElements.define("starlight-theme-select",ce);const le="_top";class X extends HTMLElement{constructor(){super(),this._current=this.querySelector('a[aria-current="true"]'),this.minH=parseInt(this.dataset.minH||"2",10),this.maxH=parseInt(this.dataset.maxH||"3",10);const e=[...this.querySelectorAll("a")],n=u=>{if(u instanceof HTMLHeadingElement){if(u.id===le)return!0;const h=u.tagName[1];if(h){const a=parseInt(h,10);if(a>=this.minH&&a<=this.maxH)return!0}}return!1},o=u=>{if(!u)return null;const h=u;for(;u;){if(n(u))return u;for(u=u.previousElementSibling;u?.lastElementChild;)u=u.lastElementChild;const a=o(u);if(a)return a}return o(h.parentElement)},r=u=>{for(const{isIntersecting:h,target:a}of u){if(!h)continue;const d=o(a);if(!d)continue;const p=e.find(E=>E.hash==="#"+encodeURIComponent(d.id));if(p){this.current=p;break}}},i=document.querySelectorAll("main [id], main [id] ~ *, main .content > *");let c;const l=()=>{c&&c.disconnect(),c=new IntersectionObserver(r,{rootMargin:this.getRootMargin()}),i.forEach(u=>c.observe(u))};l();const s=window.requestIdleCallback||(u=>setTimeout(u,1));let m;window.addEventListener("resize",()=>{c&&c.disconnect(),clearTimeout(m),m=setTimeout(()=>s(l),200)})}set current(e){e!==this._current&&(this._current&&this._current.removeAttribute("aria-current"),e.setAttribute("aria-current","true"),this._current=e)}getRootMargin(){const e=document.querySelector("header")?.getBoundingClientRect().height||0,n=this.querySelector("summary")?.getBoundingClientRect().height||0,o=e+n+32,r=o+53,i=document.documentElement.clientHeight;return`-${o}px 0% ${r-i}px`}}customElements.define("starlight-toc",X);class ue extends X{set current(e){super.current=e;const n=this.querySelector(".display-current");n&&(n.textContent=e.textContent)}constructor(){super();const e=this.querySelector("details");if(!e)return;const n=()=>{e.open=!1};e.querySelectorAll("a").forEach(o=>{o.addEventListener("click",n)}),window.addEventListener("click",o=>{e.contains(o.target)||n()}),window.addEventListener("keydown",o=>{if(o.key==="Escape"&&e.open){const r=e.contains(document.activeElement);if(n(),r){const i=e.querySelector("summary");i&&i.focus()}}})}}customElements.define("mobile-starlight-toc",ue);class de extends HTMLElement{constructor(){super(),this.btn=this.querySelector("button"),this.btn.addEventListener("click",()=>this.toggleExpanded());const e=this.closest("nav");e&&e.addEventListener("keyup",n=>this.closeOnEscape(n))}setExpanded(e){this.setAttribute("aria-expanded",String(e)),document.body.toggleAttribute("data-mobile-menu-expanded",e)}toggleExpanded(){this.setExpanded(this.getAttribute("aria-expanded")!=="true")}closeOnEscape(e){e.code==="Escape"&&(this.setExpanded(!1),this.btn.focus())}}customElements.define("starlight-menu-button",de);const R="astro:before-preparation",me="astro:after-preparation",x="astro:before-swap",fe="astro:after-swap",he=t=>document.dispatchEvent(new Event(t));class Y extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;constructor(e,n,o,r,i,c,l,s,m){super(e,n),this.from=o,this.to=r,this.direction=i,this.navigationType=c,this.sourceElement=l,this.info=s,this.newDocument=m,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0}})}}const pe=t=>t.type===R;class ge extends Y{formData;loader;constructor(e,n,o,r,i,c,l,s,m){super(R,{cancelable:!0},e,n,o,r,i,c,l),this.formData=s,this.loader=m.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}const K=t=>t.type===x;class Ee extends Y{direction;viewTransition;swap;constructor(e,n,o){super(x,void 0,e.from,e.to,e.direction,e.navigationType,e.sourceElement,e.info,e.newDocument),this.direction=e.direction,this.viewTransition=n,this.swap=o.bind(this,this),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function ye(t,e,n,o,r,i,c,l){const s=new ge(t,e,n,o,r,i,window.document,c,l);return document.dispatchEvent(s)&&(await s.loader(),s.defaultPrevented||(he(me),s.navigationType!=="traverse"&&P({scrollX,scrollY}))),s}async function be(t,e,n){const o=new Ee(t,e,n);return document.dispatchEvent(o),o.swap(),o}const we=history.pushState.bind(history),I=history.replaceState.bind(history),P=t=>{history.state&&(history.scrollRestoration="manual",I({...history.state,...t},""))},q=!!document.startViewTransition,D=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),W=(t,e)=>t.pathname===e.pathname&&t.search===e.search;let k,b,M=!1,V;const j=t=>document.dispatchEvent(new Event(t)),z=()=>j("astro:page-load"),Te=()=>{let t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.className="astro-route-announcer",document.body.append(t),setTimeout(()=>{let e=document.title||document.querySelector("h1")?.textContent||location.pathname;t.textContent=e},60)},y="data-astro-transition-persist",G="data-astro-transition",J="data-astro-transition-fallback";let N,S=0;history.state?(S=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):D()&&(I({index:S,scrollX,scrollY},""),history.scrollRestoration="manual");async function Se(t,e){try{const n=await fetch(t,e),r=(n.headers.get("content-type")??"").split(";",1)[0].trim();return r!=="text/html"&&r!=="application/xhtml+xml"?null:{html:await n.text(),redirected:n.redirected?n.url:void 0,mediaType:r}}catch{return null}}function Q(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function Ae(){let t=Promise.resolve();for(const e of Array.from(document.scripts)){if(e.dataset.astroExec==="")continue;const n=e.getAttribute("type");if(n&&n!=="module"&&n!=="text/javascript")continue;const o=document.createElement("script");o.innerHTML=e.innerHTML;for(const r of e.attributes){if(r.name==="src"){const i=new Promise(c=>{o.onload=o.onerror=c});t=t.then(()=>i)}o.setAttribute(r.name,r.value)}o.dataset.astroExec="",e.replaceWith(o)}return t}const Z=(t,e,n,o,r)=>{const i=W(e,t),c=document.title;document.title=o;let l=!1;if(t.href!==location.href&&!r)if(n.history==="replace"){const s=history.state;I({...n.state,index:s.index,scrollX:s.scrollX,scrollY:s.scrollY},"",t.href)}else we({...n.state,index:++S,scrollX:0,scrollY:0},"",t.href);if(document.title=c,k=t,i||(scrollTo({left:0,top:0,behavior:"instant"}),l=!0),r)scrollTo(r.scrollX,r.scrollY);else{if(t.hash){history.scrollRestoration="auto";const s=history.state;location.href=t.href,history.state||(I(s,""),i&&window.dispatchEvent(new PopStateEvent("popstate")))}else l||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};function ve(t){const e=[];for(const n of t.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${y}="${n.getAttribute(y)}"], link[rel=stylesheet][href="${n.getAttribute("href")}"]`)){const o=document.createElement("link");o.setAttribute("rel","preload"),o.setAttribute("as","style"),o.setAttribute("href",n.getAttribute("href")),e.push(new Promise(r=>{["load","error"].forEach(i=>o.addEventListener(i,r)),document.head.append(o)}))}return e}async function O(t,e,n,o){const r=(a,d)=>{const p=a.getAttribute(y),E=p&&d.head.querySelector(`[${y}="${p}"]`);if(E)return E;if(a.matches("link[rel=stylesheet]")){const w=a.getAttribute("href");return d.head.querySelector(`link[rel=stylesheet][href="${w}"]`)}return null},i=()=>{const a=document.activeElement;if(a?.closest(`[${y}]`)){if(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement){const d=a.selectionStart,p=a.selectionEnd;return{activeElement:a,start:d,end:p}}return{activeElement:a}}else return{activeElement:null}},c=({activeElement:a,start:d,end:p})=>{a&&(a.focus(),(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement)&&(typeof d=="number"&&(a.selectionStart=d),typeof p=="number"&&(a.selectionEnd=p)))},l=a=>{const d=a.dataset.astroTransitionPersistProps;return d==null||d==="false"},s=a=>{const d=document.documentElement,p=[...d.attributes].filter(({name:f})=>(d.removeAttribute(f),f.startsWith("data-astro-")));[...a.newDocument.documentElement.attributes,...p].forEach(({name:f,value:g})=>d.setAttribute(f,g));for(const f of document.scripts)for(const g of a.newDocument.scripts)if(!g.hasAttribute("data-astro-rerun")&&(!f.src&&f.textContent===g.textContent||f.src&&f.type===g.type&&f.src===g.src)){g.dataset.astroExec="";break}for(const f of Array.from(document.head.children)){const g=r(f,a.newDocument);g?g.remove():f.remove()}document.head.append(...a.newDocument.head.children);const E=document.body,w=i();document.body.replaceWith(a.newDocument.body);for(const f of E.querySelectorAll(`[${y}]`)){const g=f.getAttribute(y),T=document.querySelector(`[${y}="${g}"]`);T&&(T.replaceWith(f),T.localName==="astro-island"&&l(f)&&(f.setAttribute("ssr",""),f.setAttribute("props",T.getAttribute("props"))))}c(w)};async function m(a){function d(f){const g=f.effect;return!g||!(g instanceof KeyframeEffect)||!g.target?!1:window.getComputedStyle(g.target,g.pseudoElement).animationIterationCount==="infinite"}const p=document.getAnimations();await new Promise(f=>setTimeout(f)),document.documentElement.setAttribute(J,a);const w=document.getAnimations().filter(f=>!p.includes(f)&&!d(f));return Promise.all(w.map(f=>f.finished))}if(!M)document.documentElement.setAttribute(G,t.direction),o==="animate"&&await m("old");else throw new DOMException("Transition was skipped");const u=document.title,h=await be(t,b,s);Z(h.to,h.from,e,u,n),j(fe),o==="animate"&&!M&&m("new").then(()=>V())}async function ee(t,e,n,o,r){if(!D()||location.origin!==n.origin){location.href=n.href;return}const i=r?"traverse":o.history==="replace"?"replace":"push";if(i!=="traverse"&&P({scrollX,scrollY}),W(e,n)&&(t!=="back"&&n.hash||t==="back"&&e.hash)){Z(n,e,o,document.title,r);return}const c=await ye(e,n,t,i,o.sourceElement,o.info,o.formData,l);if(c.defaultPrevented){location.href=n.href;return}async function l(s){const m=s.to.href,u={};if(s.formData){u.method="POST";const d=s.sourceElement instanceof HTMLFormElement?s.sourceElement:s.sourceElement instanceof HTMLElement&&"form"in s.sourceElement?s.sourceElement.form:s.sourceElement?.closest("form");u.body=d?.attributes.getNamedItem("enctype")?.value==="application/x-www-form-urlencoded"?new URLSearchParams(s.formData):s.formData}const h=await Se(m,u);if(h===null){s.preventDefault();return}if(h.redirected&&(s.to=new URL(h.redirected)),N??=new DOMParser,s.newDocument=N.parseFromString(h.html,h.mediaType),s.newDocument.querySelectorAll("noscript").forEach(d=>d.remove()),!s.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!s.formData){s.preventDefault();return}const a=ve(s.newDocument);a.length&&await Promise.all(a)}if(M=!1,q)b=document.startViewTransition(async()=>await O(c,o,r));else{const s=(async()=>{await new Promise(m=>setTimeout(m)),await O(c,o,r,Q())})();b={updateCallbackDone:s,ready:s,finished:new Promise(m=>V=m),skipTransition:()=>{M=!0}}}b.ready.then(async()=>{await Ae(),z(),Te()}),b.finished.then(()=>{document.documentElement.removeAttribute(G),document.documentElement.removeAttribute(J)}),await b.ready}async function $(t,e){await ee("forward",k,new URL(t,location.href),e??{})}function Le(t){if(!D()&&t.state){location.reload();return}if(t.state===null)return;const e=history.state,n=e.index,o=n>S?"forward":"back";S=n,ee(o,k,new URL(location.href),{},e)}const F=()=>{history.state&&(scrollX!==history.state.scrollX||scrollY!==history.state.scrollY)&&P({scrollX,scrollY})};{if(q||Q()!=="none")if(k=new URL(location.href),addEventListener("popstate",Le),addEventListener("load",z),"onscrollend"in window)addEventListener("scrollend",F);else{let t,e,n,o;const r=()=>{if(o!==history.state?.index){clearInterval(t),t=void 0;return}if(e===scrollY&&n===scrollX){clearInterval(t),t=void 0,F();return}else e=scrollY,n=scrollX};addEventListener("scroll",()=>{t===void 0&&(o=history.state.index,e=scrollY,n=scrollX,t=window.setInterval(r,50))},{passive:!0})}for(const t of document.scripts)t.dataset.astroExec=""}const Ie=t=>{[...t.scripts].forEach(e=>{e.dataset.astroExec="",!e.hasAttribute("data-astro-rerun")&&[...document.scripts].find(o=>o.isEqualNode(e))||delete e.dataset.astroExec})},Me=(t,e)=>{const n=r=>r.startsWith("data-astro-")||e.includes(r),o=document.documentElement;[...o.attributes].forEach(({name:r})=>n(r)||o.removeAttribute(r)),[...t.documentElement.attributes].forEach(({name:r,value:i})=>n(r)||o.setAttribute(r,i))},xe=t=>{[...document.head.children].forEach(e=>{e instanceof HTMLElement&&([...t.head.children].find(o=>o.isEqualNode(e))??e).remove()}),document.head.append(...t.head.children)},ke=()=>{const t=document.activeElement;if((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&t.ownerDocument.location.origin===document.location.origin){const e=t.selectionStart,n=t.selectionEnd;return{activeElement:t,start:e,end:n}}return{activeElement:t}},Re=({activeElement:t,start:e,end:n})=>{t&&(t.focus(),(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.selectionStart=e,t.selectionEnd=n))},Pe=(t,e=[],n)=>{Ie(t),Me(t,e),xe(t);const o=ke();n(t),Re(o)},qe="vtbot-replace-swap",De=()=>(document.querySelector(`meta[name="${qe}"]`)?.getAttribute("content")??"").split(",").map(t=>t.trim());document.addEventListener(x,t=>{if(K(t)){const e=t.swap;t.swap=()=>{const n=s=>{const m=s.body.querySelectorAll("[data-vtbot-replace]"),u=[...m].map(h=>h instanceof HTMLElement&&h.dataset.vtbotReplace);return{elements:[...m],names:new Set(u)}},{elements:o,names:r}=n(document),{elements:i,names:c}=n(t.newDocument),l=[...r].filter(s=>c.has(s));if(l.length===0){e();return}Pe(t.newDocument,De(),()=>{l.forEach(s=>{const m=o.find(h=>h.dataset.vtbotReplace===s),u=i.find(h=>h.dataset.vtbotReplace===s);m&&u&&He(m,u)}),[...document.querySelectorAll("[class*='astro-route-announcer']")].forEach(s=>s.remove())})}}});function He(t,e){const n="data-astro-transition-persist",o=r=>{const i=r.dataset.astroTransitionPersistProps;return i==null||i==="false"};t.replaceWith(e);for(const r of t.querySelectorAll(`[${n}]`)){const i=r.getAttribute(n),c=document.querySelector(`[${n}="${i}"]`);c&&(c.replaceWith(r),r.localName==="astro-island"&&o(r)&&(r.setAttribute("ssr",""),r.setAttribute("props",c.getAttribute("props"))))}}const H="div.main-frame",Ce=`${H} main`,_e="data-mobile-menu-expanded",Ne="starlight-menu-button",v="nav.sidebar",A=`${v} .sidebar-content`;function te(t){const e=c(t.href),n=e.split(""),o=document.querySelectorAll(`${A} a`);if(o.length===0)return null;const r=[...o],i=r.map(l=>c(new URL(l.href,location.href).href));return r[i.map(l=>l.split("").findIndex((s,m)=>s!==n[m])).map((l,s)=>l!==-1?l:Math.min(e.length,i[s].length)+(e.length===i[s].length?1:0)).reduce((l,s,m,u)=>s>u[l]?m:l,0)];function c(l){return l.replace(/\/#/,"#").replace(/\/$/,"")}}function Oe(){document.querySelectorAll(`${A} [aria-current="page"]`)?.forEach(t=>t.removeAttribute("aria-current"))}function $e(t){Oe(),te(t)?.setAttribute("aria-current","page")}function ne(t){const e=t?te(t):document.querySelector(`${A} [aria-current="page"]`);let n=e?.closest("details");for(;n;)n.open=!0,n=n.parentElement?.closest("details");e?.scrollIntoView({block:"center",behavior:"instant"})}const Fe="vtbot-starlight-replace-sidebar-content",Be="vtbot-starlight-retain-current-page-marker",oe=()=>({replaceSidebarContent:document.querySelector(`head meta[name="${Fe}"]`),retainCurrentPageMarker:document.querySelector(`head meta[name="${Be}"]`),mainTransitionScope:document.querySelector('head meta[name="vtbot-main-transition-scope"]')?.content});let{replaceSidebarContent:C,retainCurrentPageMarker:_,mainTransitionScope:L}=oe();ne();function Ue(t){B(document),B(t.newDocument),Ye(),Ke(t),!C&&!_&&$e(t.to)}function Xe(t){We(t),!_&&ne()}function Ye(){document.body.hasAttribute(_e)&&document.body.querySelector(Ne)?.closest("nav")?.dispatchEvent(new KeyboardEvent("keyup",{key:"Escape",code:"Escape",charCode:27,keyCode:27,shiftKey:!1,ctrlKey:!1,altKey:!1,metaKey:!1}))}function B(t){t.body.querySelector(H)?.setAttribute("data-vtbot-replace","main")}function Ke(t){if(!L)return;e(document,L),e(t.newDocument,L);function e(n,o){const r=n.querySelector(Ce);r&&(r.dataset.astroTransitionScope=o)}}function We(t){const e=t.newDocument.querySelector(v);if(!e)document.querySelector(v)?.remove();else{const n=document.querySelector(v);if(!n)document.querySelector(H)?.insertAdjacentElement("beforebegin",e);else if(C){const o=n.querySelector(A),r=e.querySelector(A);o&&r?o.replaceWith(r):n.replaceWith(e)}}}document.addEventListener(R,t=>{if({replaceSidebarContent:C,retainCurrentPageMarker:_,mainTransitionScope:L}=oe(),pe(t)){const e=t.loader;t.loader=async()=>{await e(),Ue(t)}}});document.addEventListener(x,t=>{if(K(t)){const e=t.swap;t.swap=()=>{e(),Xe(t)}}});function Ve(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function U(t){return t.dataset.astroReload!==void 0}(q||Ve()!=="none")&&(document.addEventListener("click",t=>{let e=t.target;if(t.composed&&(e=t.composedPath()[0]),e instanceof Element&&(e=e.closest("a, area")),!(e instanceof HTMLAnchorElement)&&!(e instanceof SVGAElement)&&!(e instanceof HTMLAreaElement))return;const n=e instanceof HTMLElement?e.target:e.target.baseVal,o=e instanceof HTMLElement?e.href:e.href.baseVal,r=new URL(o,location.href).origin;U(e)||e.hasAttribute("download")||!e.href||n&&n!=="_self"||r!==location.origin||t.button!==0||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||(t.preventDefault(),$(o,{history:e.dataset.astroHistory==="replace"?"replace":"auto",sourceElement:e}))}),document.addEventListener("submit",t=>{let e=t.target;if(e.tagName!=="FORM"||t.defaultPrevented||U(e))return;const n=e,o=t.submitter,r=new FormData(n,o);let i=o?.getAttribute("formaction")??n.action??location.pathname;const c=o?.getAttribute("formmethod")??n.method;if(c==="dialog"||location.origin!==new URL(i,location.href).origin)return;const l={sourceElement:o??n};if(c==="get"){const s=new URLSearchParams(r),m=new URL(i);m.search=s.toString(),i=m.toString()}else l.formData=r;t.preventDefault(),$(i,l)}),se({prefetchAll:!0})); +import{_ as re}from"./preload-helper.ygWHROA3.js";import{i as se}from"./index.BXBeSuXa.js";class ae extends HTMLElement{constructor(){super();const e=this.querySelector("select");e&&e.addEventListener("change",n=>{n.currentTarget instanceof HTMLSelectElement&&(window.location.pathname=n.currentTarget.value)})}}customElements.define("starlight-lang-select",ae);class ie extends HTMLElement{constructor(){super();const e=this.querySelector("button[data-open-modal]"),n=this.querySelector("button[data-close-modal]"),o=this.querySelector("dialog"),r=this.querySelector(".dialog-frame"),i=a=>{("href"in(a.target||{})||document.body.contains(a.target)&&!r.contains(a.target))&&l()},c=a=>{o.showModal(),document.body.toggleAttribute("data-search-modal-open",!0),this.querySelector("input")?.focus(),a?.stopPropagation(),window.addEventListener("click",i)},l=()=>o.close();e.addEventListener("click",c),e.disabled=!1,n.addEventListener("click",l),o.addEventListener("close",()=>{document.body.toggleAttribute("data-search-modal-open",!1),window.removeEventListener("click",i)}),window.addEventListener("keydown",a=>{const d=document.activeElement instanceof HTMLElement&&(["input","select","textarea"].includes(document.activeElement.tagName.toLowerCase())||document.activeElement.isContentEditable);(a.metaKey===!0||a.ctrlKey===!0)&&a.key==="k"?(o.open?l():c(),a.preventDefault()):a.key==="/"&&!o.open&&!d&&(c(),a.preventDefault())});let s={};try{s=JSON.parse(this.dataset.translations||"{}")}catch{}const h=this.dataset.stripTrailingSlash!==void 0?a=>a.replace(/(.)\/(#.*)?$/,"$1$2"):a=>a;window.addEventListener("DOMContentLoaded",()=>{(window.requestIdleCallback||(d=>setTimeout(d,1)))(async()=>{const{PagefindUI:d}=await re(()=>import("./ui-core.By5lRjrX.js"),__vite__mapDeps([0,1]));new d({element:"#starlight__search",baseUrl:"/",bundlePath:"/".replace(/\/$/,"")+"/pagefind/",showImages:!1,translations:s,showSubResults:!0,processResult:p=>{p.url=h(p.url),p.sub_results=p.sub_results.map(E=>(E.url=h(E.url),E))}})})})}}customElements.define("site-search",ie);class ce extends HTMLElement{#e="starlight-theme";constructor(){super(),this.#n(this.#s());const e=this.querySelector("select");e&&e.addEventListener("change",n=>{n.currentTarget instanceof HTMLSelectElement&&this.#n(this.#t(n.currentTarget.value))})}#t(e){return e==="auto"||e==="dark"||e==="light"?e:"auto"}#o(){return matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}#n(e){StarlightThemeProvider.updatePickers(e),document.documentElement.dataset.theme=e==="auto"?this.#o():e,this.#r(e)}#r(e){typeof localStorage<"u"&&(e==="light"||e==="dark"?localStorage.setItem(this.#e,e):localStorage.removeItem(this.#e))}#s(){const e=typeof localStorage<"u"&&localStorage.getItem(this.#e);return this.#t(e)}}customElements.define("starlight-theme-select",ce);class le extends HTMLElement{constructor(){super(),this.btn=this.querySelector("button"),this.btn.addEventListener("click",()=>this.toggleExpanded());const e=this.closest("nav");e&&e.addEventListener("keyup",n=>this.closeOnEscape(n))}setExpanded(e){this.setAttribute("aria-expanded",String(e)),document.body.toggleAttribute("data-mobile-menu-expanded",e)}toggleExpanded(){this.setExpanded(this.getAttribute("aria-expanded")!=="true")}closeOnEscape(e){e.code==="Escape"&&(this.setExpanded(!1),this.btn.focus())}}customElements.define("starlight-menu-button",le);const ue="_top";class X extends HTMLElement{constructor(){super(),this._current=this.querySelector('a[aria-current="true"]'),this.minH=parseInt(this.dataset.minH||"2",10),this.maxH=parseInt(this.dataset.maxH||"3",10);const e=[...this.querySelectorAll("a")],n=u=>{if(u instanceof HTMLHeadingElement){if(u.id===ue)return!0;const h=u.tagName[1];if(h){const a=parseInt(h,10);if(a>=this.minH&&a<=this.maxH)return!0}}return!1},o=u=>{if(!u)return null;const h=u;for(;u;){if(n(u))return u;for(u=u.previousElementSibling;u?.lastElementChild;)u=u.lastElementChild;const a=o(u);if(a)return a}return o(h.parentElement)},r=u=>{for(const{isIntersecting:h,target:a}of u){if(!h)continue;const d=o(a);if(!d)continue;const p=e.find(E=>E.hash==="#"+encodeURIComponent(d.id));if(p){this.current=p;break}}},i=document.querySelectorAll("main [id], main [id] ~ *, main .content > *");let c;const l=()=>{c&&c.disconnect(),c=new IntersectionObserver(r,{rootMargin:this.getRootMargin()}),i.forEach(u=>c.observe(u))};l();const s=window.requestIdleCallback||(u=>setTimeout(u,1));let m;window.addEventListener("resize",()=>{c&&c.disconnect(),clearTimeout(m),m=setTimeout(()=>s(l),200)})}set current(e){e!==this._current&&(this._current&&this._current.removeAttribute("aria-current"),e.setAttribute("aria-current","true"),this._current=e)}getRootMargin(){const e=document.querySelector("header")?.getBoundingClientRect().height||0,n=this.querySelector("summary")?.getBoundingClientRect().height||0,o=e+n+32,r=o+53,i=document.documentElement.clientHeight;return`-${o}px 0% ${r-i}px`}}customElements.define("starlight-toc",X);class de extends X{set current(e){super.current=e;const n=this.querySelector(".display-current");n&&(n.textContent=e.textContent)}constructor(){super();const e=this.querySelector("details");if(!e)return;const n=()=>{e.open=!1};e.querySelectorAll("a").forEach(o=>{o.addEventListener("click",n)}),window.addEventListener("click",o=>{e.contains(o.target)||n()}),window.addEventListener("keydown",o=>{if(o.key==="Escape"&&e.open){const r=e.contains(document.activeElement);if(n(),r){const i=e.querySelector("summary");i&&i.focus()}}})}}customElements.define("mobile-starlight-toc",de);const R="astro:before-preparation",me="astro:after-preparation",x="astro:before-swap",fe="astro:after-swap",he=t=>document.dispatchEvent(new Event(t));class Y extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;constructor(e,n,o,r,i,c,l,s,m){super(e,n),this.from=o,this.to=r,this.direction=i,this.navigationType=c,this.sourceElement=l,this.info=s,this.newDocument=m,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0}})}}const pe=t=>t.type===R;class ge extends Y{formData;loader;constructor(e,n,o,r,i,c,l,s,m){super(R,{cancelable:!0},e,n,o,r,i,c,l),this.formData=s,this.loader=m.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}const K=t=>t.type===x;class Ee extends Y{direction;viewTransition;swap;constructor(e,n,o){super(x,void 0,e.from,e.to,e.direction,e.navigationType,e.sourceElement,e.info,e.newDocument),this.direction=e.direction,this.viewTransition=n,this.swap=o.bind(this,this),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function ye(t,e,n,o,r,i,c,l){const s=new ge(t,e,n,o,r,i,window.document,c,l);return document.dispatchEvent(s)&&(await s.loader(),s.defaultPrevented||(he(me),s.navigationType!=="traverse"&&P({scrollX,scrollY}))),s}async function be(t,e,n){const o=new Ee(t,e,n);return document.dispatchEvent(o),o.swap(),o}const we=history.pushState.bind(history),I=history.replaceState.bind(history),P=t=>{history.state&&(history.scrollRestoration="manual",I({...history.state,...t},""))},q=!!document.startViewTransition,D=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),W=(t,e)=>t.pathname===e.pathname&&t.search===e.search;let k,b,M=!1,V;const j=t=>document.dispatchEvent(new Event(t)),z=()=>j("astro:page-load"),Te=()=>{let t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.className="astro-route-announcer",document.body.append(t),setTimeout(()=>{let e=document.title||document.querySelector("h1")?.textContent||location.pathname;t.textContent=e},60)},y="data-astro-transition-persist",G="data-astro-transition",J="data-astro-transition-fallback";let N,S=0;history.state?(S=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):D()&&(I({index:S,scrollX,scrollY},""),history.scrollRestoration="manual");async function Se(t,e){try{const n=await fetch(t,e),r=(n.headers.get("content-type")??"").split(";",1)[0].trim();return r!=="text/html"&&r!=="application/xhtml+xml"?null:{html:await n.text(),redirected:n.redirected?n.url:void 0,mediaType:r}}catch{return null}}function Q(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function Ae(){let t=Promise.resolve();for(const e of Array.from(document.scripts)){if(e.dataset.astroExec==="")continue;const n=e.getAttribute("type");if(n&&n!=="module"&&n!=="text/javascript")continue;const o=document.createElement("script");o.innerHTML=e.innerHTML;for(const r of e.attributes){if(r.name==="src"){const i=new Promise(c=>{o.onload=o.onerror=c});t=t.then(()=>i)}o.setAttribute(r.name,r.value)}o.dataset.astroExec="",e.replaceWith(o)}return t}const Z=(t,e,n,o,r)=>{const i=W(e,t),c=document.title;document.title=o;let l=!1;if(t.href!==location.href&&!r)if(n.history==="replace"){const s=history.state;I({...n.state,index:s.index,scrollX:s.scrollX,scrollY:s.scrollY},"",t.href)}else we({...n.state,index:++S,scrollX:0,scrollY:0},"",t.href);if(document.title=c,k=t,i||(scrollTo({left:0,top:0,behavior:"instant"}),l=!0),r)scrollTo(r.scrollX,r.scrollY);else{if(t.hash){history.scrollRestoration="auto";const s=history.state;location.href=t.href,history.state||(I(s,""),i&&window.dispatchEvent(new PopStateEvent("popstate")))}else l||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};function ve(t){const e=[];for(const n of t.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${y}="${n.getAttribute(y)}"], link[rel=stylesheet][href="${n.getAttribute("href")}"]`)){const o=document.createElement("link");o.setAttribute("rel","preload"),o.setAttribute("as","style"),o.setAttribute("href",n.getAttribute("href")),e.push(new Promise(r=>{["load","error"].forEach(i=>o.addEventListener(i,r)),document.head.append(o)}))}return e}async function O(t,e,n,o){const r=(a,d)=>{const p=a.getAttribute(y),E=p&&d.head.querySelector(`[${y}="${p}"]`);if(E)return E;if(a.matches("link[rel=stylesheet]")){const w=a.getAttribute("href");return d.head.querySelector(`link[rel=stylesheet][href="${w}"]`)}return null},i=()=>{const a=document.activeElement;if(a?.closest(`[${y}]`)){if(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement){const d=a.selectionStart,p=a.selectionEnd;return{activeElement:a,start:d,end:p}}return{activeElement:a}}else return{activeElement:null}},c=({activeElement:a,start:d,end:p})=>{a&&(a.focus(),(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement)&&(typeof d=="number"&&(a.selectionStart=d),typeof p=="number"&&(a.selectionEnd=p)))},l=a=>{const d=a.dataset.astroTransitionPersistProps;return d==null||d==="false"},s=a=>{const d=document.documentElement,p=[...d.attributes].filter(({name:f})=>(d.removeAttribute(f),f.startsWith("data-astro-")));[...a.newDocument.documentElement.attributes,...p].forEach(({name:f,value:g})=>d.setAttribute(f,g));for(const f of document.scripts)for(const g of a.newDocument.scripts)if(!g.hasAttribute("data-astro-rerun")&&(!f.src&&f.textContent===g.textContent||f.src&&f.type===g.type&&f.src===g.src)){g.dataset.astroExec="";break}for(const f of Array.from(document.head.children)){const g=r(f,a.newDocument);g?g.remove():f.remove()}document.head.append(...a.newDocument.head.children);const E=document.body,w=i();document.body.replaceWith(a.newDocument.body);for(const f of E.querySelectorAll(`[${y}]`)){const g=f.getAttribute(y),T=document.querySelector(`[${y}="${g}"]`);T&&(T.replaceWith(f),T.localName==="astro-island"&&l(f)&&(f.setAttribute("ssr",""),f.setAttribute("props",T.getAttribute("props"))))}c(w)};async function m(a){function d(f){const g=f.effect;return!g||!(g instanceof KeyframeEffect)||!g.target?!1:window.getComputedStyle(g.target,g.pseudoElement).animationIterationCount==="infinite"}const p=document.getAnimations();await new Promise(f=>setTimeout(f)),document.documentElement.setAttribute(J,a);const w=document.getAnimations().filter(f=>!p.includes(f)&&!d(f));return Promise.all(w.map(f=>f.finished))}if(!M)document.documentElement.setAttribute(G,t.direction),o==="animate"&&await m("old");else throw new DOMException("Transition was skipped");const u=document.title,h=await be(t,b,s);Z(h.to,h.from,e,u,n),j(fe),o==="animate"&&!M&&m("new").then(()=>V())}async function ee(t,e,n,o,r){if(!D()||location.origin!==n.origin){location.href=n.href;return}const i=r?"traverse":o.history==="replace"?"replace":"push";if(i!=="traverse"&&P({scrollX,scrollY}),W(e,n)&&(t!=="back"&&n.hash||t==="back"&&e.hash)){Z(n,e,o,document.title,r);return}const c=await ye(e,n,t,i,o.sourceElement,o.info,o.formData,l);if(c.defaultPrevented){location.href=n.href;return}async function l(s){const m=s.to.href,u={};if(s.formData){u.method="POST";const d=s.sourceElement instanceof HTMLFormElement?s.sourceElement:s.sourceElement instanceof HTMLElement&&"form"in s.sourceElement?s.sourceElement.form:s.sourceElement?.closest("form");u.body=d?.attributes.getNamedItem("enctype")?.value==="application/x-www-form-urlencoded"?new URLSearchParams(s.formData):s.formData}const h=await Se(m,u);if(h===null){s.preventDefault();return}if(h.redirected&&(s.to=new URL(h.redirected)),N??=new DOMParser,s.newDocument=N.parseFromString(h.html,h.mediaType),s.newDocument.querySelectorAll("noscript").forEach(d=>d.remove()),!s.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!s.formData){s.preventDefault();return}const a=ve(s.newDocument);a.length&&await Promise.all(a)}if(M=!1,q)b=document.startViewTransition(async()=>await O(c,o,r));else{const s=(async()=>{await new Promise(m=>setTimeout(m)),await O(c,o,r,Q())})();b={updateCallbackDone:s,ready:s,finished:new Promise(m=>V=m),skipTransition:()=>{M=!0}}}b.ready.then(async()=>{await Ae(),z(),Te()}),b.finished.then(()=>{document.documentElement.removeAttribute(G),document.documentElement.removeAttribute(J)}),await b.ready}async function $(t,e){await ee("forward",k,new URL(t,location.href),e??{})}function Le(t){if(!D()&&t.state){location.reload();return}if(t.state===null)return;const e=history.state,n=e.index,o=n>S?"forward":"back";S=n,ee(o,k,new URL(location.href),{},e)}const F=()=>{history.state&&(scrollX!==history.state.scrollX||scrollY!==history.state.scrollY)&&P({scrollX,scrollY})};{if(q||Q()!=="none")if(k=new URL(location.href),addEventListener("popstate",Le),addEventListener("load",z),"onscrollend"in window)addEventListener("scrollend",F);else{let t,e,n,o;const r=()=>{if(o!==history.state?.index){clearInterval(t),t=void 0;return}if(e===scrollY&&n===scrollX){clearInterval(t),t=void 0,F();return}else e=scrollY,n=scrollX};addEventListener("scroll",()=>{t===void 0&&(o=history.state.index,e=scrollY,n=scrollX,t=window.setInterval(r,50))},{passive:!0})}for(const t of document.scripts)t.dataset.astroExec=""}const Ie=t=>{[...t.scripts].forEach(e=>{e.dataset.astroExec="",!e.hasAttribute("data-astro-rerun")&&[...document.scripts].find(o=>o.isEqualNode(e))||delete e.dataset.astroExec})},Me=(t,e)=>{const n=r=>r.startsWith("data-astro-")||e.includes(r),o=document.documentElement;[...o.attributes].forEach(({name:r})=>n(r)||o.removeAttribute(r)),[...t.documentElement.attributes].forEach(({name:r,value:i})=>n(r)||o.setAttribute(r,i))},xe=t=>{[...document.head.children].forEach(e=>{e instanceof HTMLElement&&([...t.head.children].find(o=>o.isEqualNode(e))??e).remove()}),document.head.append(...t.head.children)},ke=()=>{const t=document.activeElement;if((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&t.ownerDocument.location.origin===document.location.origin){const e=t.selectionStart,n=t.selectionEnd;return{activeElement:t,start:e,end:n}}return{activeElement:t}},Re=({activeElement:t,start:e,end:n})=>{t&&(t.focus(),(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.selectionStart=e,t.selectionEnd=n))},Pe=(t,e=[],n)=>{Ie(t),Me(t,e),xe(t);const o=ke();n(t),Re(o)},qe="vtbot-replace-swap",De=()=>(document.querySelector(`meta[name="${qe}"]`)?.getAttribute("content")??"").split(",").map(t=>t.trim());document.addEventListener(x,t=>{if(K(t)){const e=t.swap;t.swap=()=>{const n=s=>{const m=s.body.querySelectorAll("[data-vtbot-replace]"),u=[...m].map(h=>h instanceof HTMLElement&&h.dataset.vtbotReplace);return{elements:[...m],names:new Set(u)}},{elements:o,names:r}=n(document),{elements:i,names:c}=n(t.newDocument),l=[...r].filter(s=>c.has(s));if(l.length===0){e();return}Pe(t.newDocument,De(),()=>{l.forEach(s=>{const m=o.find(h=>h.dataset.vtbotReplace===s),u=i.find(h=>h.dataset.vtbotReplace===s);m&&u&&He(m,u)}),[...document.querySelectorAll("[class*='astro-route-announcer']")].forEach(s=>s.remove())})}}});function He(t,e){const n="data-astro-transition-persist",o=r=>{const i=r.dataset.astroTransitionPersistProps;return i==null||i==="false"};t.replaceWith(e);for(const r of t.querySelectorAll(`[${n}]`)){const i=r.getAttribute(n),c=document.querySelector(`[${n}="${i}"]`);c&&(c.replaceWith(r),r.localName==="astro-island"&&o(r)&&(r.setAttribute("ssr",""),r.setAttribute("props",c.getAttribute("props"))))}}const H="div.main-frame",Ce=`${H} main`,_e="data-mobile-menu-expanded",Ne="starlight-menu-button",v="nav.sidebar",A=`${v} .sidebar-content`;function te(t){const e=c(t.href),n=e.split(""),o=document.querySelectorAll(`${A} a`);if(o.length===0)return null;const r=[...o],i=r.map(l=>c(new URL(l.href,location.href).href));return r[i.map(l=>l.split("").findIndex((s,m)=>s!==n[m])).map((l,s)=>l!==-1?l:Math.min(e.length,i[s].length)+(e.length===i[s].length?1:0)).reduce((l,s,m,u)=>s>u[l]?m:l,0)];function c(l){return l.replace(/\/#/,"#").replace(/\/$/,"")}}function Oe(){document.querySelectorAll(`${A} [aria-current="page"]`)?.forEach(t=>t.removeAttribute("aria-current"))}function $e(t){Oe(),te(t)?.setAttribute("aria-current","page")}function ne(t){const e=t?te(t):document.querySelector(`${A} [aria-current="page"]`);let n=e?.closest("details");for(;n;)n.open=!0,n=n.parentElement?.closest("details");e?.scrollIntoView({block:"center",behavior:"instant"})}const Fe="vtbot-starlight-replace-sidebar-content",Be="vtbot-starlight-retain-current-page-marker",oe=()=>({replaceSidebarContent:document.querySelector(`head meta[name="${Fe}"]`),retainCurrentPageMarker:document.querySelector(`head meta[name="${Be}"]`),mainTransitionScope:document.querySelector('head meta[name="vtbot-main-transition-scope"]')?.content});let{replaceSidebarContent:C,retainCurrentPageMarker:_,mainTransitionScope:L}=oe();ne();function Ue(t){B(document),B(t.newDocument),Ye(),Ke(t),!C&&!_&&$e(t.to)}function Xe(t){We(t),!_&&ne()}function Ye(){document.body.hasAttribute(_e)&&document.body.querySelector(Ne)?.closest("nav")?.dispatchEvent(new KeyboardEvent("keyup",{key:"Escape",code:"Escape",charCode:27,keyCode:27,shiftKey:!1,ctrlKey:!1,altKey:!1,metaKey:!1}))}function B(t){t.body.querySelector(H)?.setAttribute("data-vtbot-replace","main")}function Ke(t){if(!L)return;e(document,L),e(t.newDocument,L);function e(n,o){const r=n.querySelector(Ce);r&&(r.dataset.astroTransitionScope=o)}}function We(t){const e=t.newDocument.querySelector(v);if(!e)document.querySelector(v)?.remove();else{const n=document.querySelector(v);if(!n)document.querySelector(H)?.insertAdjacentElement("beforebegin",e);else if(C){const o=n.querySelector(A),r=e.querySelector(A);o&&r?o.replaceWith(r):n.replaceWith(e)}}}document.addEventListener(R,t=>{if({replaceSidebarContent:C,retainCurrentPageMarker:_,mainTransitionScope:L}=oe(),pe(t)){const e=t.loader;t.loader=async()=>{await e(),Ue(t)}}});document.addEventListener(x,t=>{if(K(t)){const e=t.swap;t.swap=()=>{e(),Xe(t)}}});function Ve(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function U(t){return t.dataset.astroReload!==void 0}(q||Ve()!=="none")&&(document.addEventListener("click",t=>{let e=t.target;if(t.composed&&(e=t.composedPath()[0]),e instanceof Element&&(e=e.closest("a, area")),!(e instanceof HTMLAnchorElement)&&!(e instanceof SVGAElement)&&!(e instanceof HTMLAreaElement))return;const n=e instanceof HTMLElement?e.target:e.target.baseVal,o=e instanceof HTMLElement?e.href:e.href.baseVal,r=new URL(o,location.href).origin;U(e)||e.hasAttribute("download")||!e.href||n&&n!=="_self"||r!==location.origin||t.button!==0||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||(t.preventDefault(),$(o,{history:e.dataset.astroHistory==="replace"?"replace":"auto",sourceElement:e}))}),document.addEventListener("submit",t=>{let e=t.target;if(e.tagName!=="FORM"||t.defaultPrevented||U(e))return;const n=e,o=t.submitter,r=new FormData(n,o);let i=o?.getAttribute("formaction")??n.action??location.pathname;const c=o?.getAttribute("formmethod")??n.method;if(c==="dialog"||location.origin!==new URL(i,location.href).origin)return;const l={sourceElement:o??n};if(c==="get"){const s=new URLSearchParams(r),m=new URL(i);m.search=s.toString(),i=m.toString()}else l.formData=r;t.preventDefault(),$(i,l)}),se({prefetchAll:!0})); diff --git a/docs/advanced/technical-specifications/index.html b/docs/advanced/technical-specifications/index.html index 1a82be5ed7..269b9e71cb 100644 --- a/docs/advanced/technical-specifications/index.html +++ b/docs/advanced/technical-specifications/index.html @@ -29,7 +29,7 @@ + + +
Skip to content