let hasClickedPrintButton;function printPage(){hasClickedPrintButton||("fr"===document.documentElement.lang?alert('Dans la prochaine fenêtre, sélectionnez l\'imprimante "Enregistrer au format PDF" pour exporter une version PDF de cette page.'):alert('In the next window, select the "Save as PDF" printer to export a PDF version of this page.'),hasClickedPrintButton=!0),window.print()}!function(){if(document.querySelector(".doc h1, .api h1")){!function(e){const t=document.createElement("p");let o="Retrieved from";"fr"===document.documentElement.lang&&(o="Récupéré depuis"),t.classList.add("print-only"),t.append(o," ",e," (",(new Date).toISOString(),")");let n=document.querySelector(".doc h1");n?n.after(t):(n=document.querySelector(".api h1 + .heading-description"),n&&n.prepend(t))}(function(){if("file:"===document.location.protocol){const e=(document.location.pathname+window.location.search).split("build/site/").pop();return decodeURI(e)}{const e=document.createElement("a"),t=document.location.origin+document.location.pathname+window.location.search;return e.href=t,e.textContent=decodeURI(t),e}}())}window.addEventListener("beforeprint",function(){const e=document.querySelector("head [rel=canonical]").href.split("/").slice(0,-1).join("/")+"/",t=document.querySelectorAll(".article a:not([href^=http]):not([href^='file:']):not([href^='mailto:']):not([href^='#'])");for(const o of t)o.href&&(o.setAttribute("hrefOld",o.getAttribute("href")),o.href=e+o.getAttribute("href").normalize("NFC"));const o=document.getElementsByClassName("tooltiptext");for(const e of o){let t="or";"fr"===document.documentElement.lang&&(t="ou"),e.textContent=e.textContent.replace(/\((.+?)\)/g,t+" $1")}const n=document.querySelector(".logo img");n.src=n.src.replace("/logo.svg","/logo-darkblue.svg")}),window.addEventListener("afterprint",function(){const e=document.querySelectorAll(".article a[hrefOld]");for(const t of e)t.href=t.getAttribute("hrefOld"),t.removeAttribute("hrefOld");const t=document.getElementsByClassName("tooltiptext");for(const e of t)e.textContent=e.textContent.replace(/\b(or|ou) (.+?)\b/g,"($2)");const o=document.querySelector(".logo img");o.src=o.src.replace("/logo-darkblue.svg","/logo.svg")})}();