1import{ap as S,f as T,aq as D,g as H,ar as j,d as v,o as a,c as d,a as s,t as $,E as _,l as k,_ as V,F as M,j as R,k as O,B as x,n as q,D as z,aa as U,r as I,b as u,w as P,as as W,T as L,a8 as K,at as F,m as w,I as Y}from"./index-i7F6uv6M.js";import{_ as Q}from"./AppHeader.vue_vue_type_style_index_0_global_true_lang-BlfkrDx-.js";import{A as G}from"./BasicLayout-CWKostQQ.js";import{A as J}from"./AppRail-Bjh6iWGi.js";import"./tsparticles-B0W6J4Xn.js";import"./SvgFoundersBadge.vue_vue_type_script_setup_true_lang-D_URnADc.js";const N=`.${j}`,X=".toc-outline-link",A="!opacity-100",Z=`${N} .header-anchor`;function ee(){const l=N,e=document.querySelectorAll(`${l} h2, ${l} h3`),o=n=>n.trim().replaceAll("#",""),t=[];return e.forEach(n=>{var i;n.tagName==="H2"&&n instanceof HTMLElement&&t.push({text:o(n.innerText),link:`#${n.id}`,children:[]}),n.tagName==="H3"&&n instanceof HTMLElement&&((i=t[t.length-1])==null||i.children.push({text:o(n.innerText),link:`#${n.id}`,children:[]}))}),t}function te(l,e){const o=S("(min-width: 1280px)"),t=oe(i,100);let n=null;T(()=>{requestAnimationFrame(i),window.addEventListener("scroll",t)}),D(()=>{p(location.hash)}),H(()=>{window.addEventListener("scroll",t)});function i(){if(!o.value)return;const h=[].slice.call(l.querySelectorAll(X)),c=[].slice.call(document.querySelectorAll(Z)).filter(r=>h.some(m=>m.hash===r.hash&&r.offsetParent!==null)),f=window.scrollY+window.innerHeight>=document.body.offsetHeight-1;if(c.length&&f){p(c[c.length-1].hash);return}for(let r=0;r<c.length;r++){const m=c[r],g=c[r+1],[b,B]=ne(r,m,g);if(b){p(B);return}}}function p(h){n&&n.classList.remove(A);const c=n=h==null?null:l.querySelector(`a[href="${decodeURIComponent(h)}"]`);c?(c.classList.add(A),e.style.opacity="1",e.style.top=`${c.offsetTop+32}px`):(e.style.opacity="0",e.style.top="28px")}}function E(l){return l.parentElement.offsetTop-150}function ne(l,e,o){const t=window.scrollY;return l===0&&t===0?[!0,null]:t<E(e)?[!1,null]:!o||t<E(o)?[!0,e.hash]:[!1,null]}function oe(l,e){let o,t=!1;return()=>{o&&clearTimeout(o),t?o=setTimeout(l,e):(l(),t=!0,setTimeout(()=>{t=!1},e))}}const se=["href"],re=v({__name:"TocOutlineListItem",props:{header:{}},setup(l){return(e,o)=>{var t;return a(),d("li",null,[s("a",{class:"toc-outline-link",href:e.header.link},$(e.header.text),9,se),(t=e.header.children)!=null&&t.length?(a(),_(y,{key:0,headers:e.header.children,nested:!0},null,8,["headers"])):k("",!0)])}}}),le=V(re,[["__scopeId","data-v-4df56f0d"]]),y=v({__name:"TocOutlineList",props:{headers:{},nested:{type:Boolean},container:{},marker:{}},setup(l){const e=l;return e.container&&e.marker&&te(e.container,e.marker),(o,t)=>(a(),d("ul",{class:O(o.nested?"pl-4":"relative z-1")},[(a(!0),d(M,null,R(o.headers,n=>(a(),_(le,{key:n.link,header:n},null,8,["header"]))),128))],2))}}),ae={class:"hidden lg:block"},ie={class:"lg:hidden"},ce={class:"pl-4"},de=v({__name:"TocOutline",setup(l){const e=x([]),o=x(),t=x();return T(()=>{q(()=>{e.value=ee()})}),(n,i)=>z((a(),d("div",{ref_key:"container",ref:o},[s("div",ae,[s("div",{ref_key:"marker",ref:t,class:"absolute -left-3 top-7 h-5 w-[3px] bg-new-green-700 opacity-0 transition-[top]"},null,512),i[0]||(i[0]=s("div",{class:"mb-1 hidden font-semibold sm:block"},"On this page",-1)),e.value.length&&o.value?(a(),_(y,{key:0,headers:e.value,container:o.value,marker:t.value},null,8,["headers","container","marker"])):k("",!0)]),s("details",ie,[i[1]||(i[1]=s("summary",{class:"mb-1 cursor-pointer text-sm font-semibold"},"On this page",-1)),s("div",ce,[e.value.length&&o.value?(a(),_(y,{key:0,headers:e.value,container:o.value,marker:t.value},null,8,["headers","container","marker"])):k("",!0)])])],512)),[[U,e.value.length]])}}),C=v({__name:"DocsMainNav",setup(l){const e=[{title:"API Proxies and Secrets",name:"docs-api-proxies-and-secrets"},{title:"Project Versions",name:"docs-versions"},{title:"Private Projects",name:"docs-private-projects"},{title:"Creating a Progressive Web App",name:"docs-pwa"},{title:"Project Readme",name:"projects-readme"}];return(o,t)=>{const n=I("router-link");return a(),d("nav",null,[s("ul",null,[(a(),d(M,null,R(e,({title:i,name:p})=>s("li",{key:p},[u(n,{to:{name:p},class:"block"},{default:P(({isActive:h})=>[s("div",{class:O(["rounded px-2 py-1.5 font-medium",[h?"relative bg-new-gray-50 opacity-100 after:absolute after:-left-2 after:bottom-1 after:top-1 after:w-[3px] after:rounded after:bg-new-green-700 after:content-[''] dark:bg-new-slate-700":"opacity-75 hover:bg-new-gray-50 hover:font-medium hover:opacity-100 dark:hover:bg-new-slate-700"]])},$(i),3)]),_:2},1032,["to"])])),64))])])}}}),ue={viewBox:"0 0 16 16",width:"1.2em",height:"1.2em"};function pe(l,e){return a(),d("svg",ue,e[0]||(e[0]=[s("path",{fill:"currentColor",d:"M2 3.5a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 0 1h-8a.5.5 0 0 1-.5-.5m0 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5M2.5 7a.5.5 0 0 0 0 1h11a.5.5 0 0 0 0-1z"},null,-1)]))}const he={name:"fluent-list-16-regular",render:pe},me={class:"flex min-h-screen flex-nowrap"},fe={class:"flex min-h-screen min-w-0 flex-auto flex-col items-stretch"},_e={class:"sticky top-0 z-20 border-b border-new-gray-100/70 bg-white dark:border-new-gray-950/80 dark:bg-new-slate-700"},ve={class:"container-spacing"},ge={class:"flex items-center justify-between px-4 py-2 xl:hidden"},we={class:"relative flex min-h-screen bg-white/70 dark:bg-new-gray-950/60"},xe={key:0,class:"fixed left-0 top-0 z-30 h-screen w-72 overflow-auto bg-white px-4 py-10 dar
1k:bg-new-gray-950 xl:hidden",style:{"scrollbar-width":"thin"}},ke={key:1,class:"sticky top-[65px] hidden h-[calc(100svh-65px)] w-72 shrink-0 overflow-auto border-r border-new-gray-100/70 bg-white px-3 py-4 dark:border-new-gray-900 dark:bg-new-gray-950/60 xl:block",style:{"scrollbar-width":"thin"}},be={id:"main",class:"max-w-full px-4 py-6 lg:flex lg:px-5 xl:mx-auto xl:min-w-0 xl:max-w-6xl xl:flex-auto xl:px-10"},ye={class:"mb-4 w-full shrink-0 lg:order-2 lg:max-w-80 lg:pl-20"},Te={class:"lg:sticky lg:top-28 xl:top-24"},Le={class:"prose min-w-0 flex-initial dark:prose-invert lg:order-1"},Re=v({__name:"DocsLayout",setup(l){const e=W(),o=S("(max-width: 1280px)"),t=new WeakMap,n=x(!1);L(()=>e.fullPath,()=>n.value=!1),L(n,f=>{document.body.style.overflow=f?"hidden":""}),T(()=>{window.addEventListener("click",i)}),K(()=>{window.removeEventListener("click",i)});function i(f){var m;const r=f.target;if(r instanceof HTMLElement&&r.matches(".md-it-codeblock > button.copy")){const g=(m=r.nextElementSibling)==null?void 0:m.nextElementSibling;if(!g)return;F(g.textContent||"").then(()=>{r.classList.add("copied"),clearTimeout(t.get(r));const b=setTimeout(()=>{r.classList.remove("copied"),r.blur(),t.delete(r)},2e3);t.set(r,b)})}}function p(){window.scrollTo({top:0,behavior:"smooth"})}function h(){n.value=!0}function c(){n.value=!1}return(f,r)=>{const m=I("RouterView");return a(),d("div",me,[u(J),s("div",fe,[s("div",_e,[u(G),s("div",ve,[u(Q,null,{leftColumn:P(()=>r[0]||(r[0]=[s("div",{class:"text-lg font-semibold"},"PyScript Docs",-1)])),_:1})]),s("div",ge,[s("button",{class:"-m-1 flex items-center gap-2 rounded p-1 font-medium opacity-75 hover:bg-new-gray-50/50 hover:opacity-100",onClick:h},[u(w(he),{class:"shrink-0 text-base"}),r[1]||(r[1]=s("span",{class:"pr-1 text-sm"},"Menu",-1))]),s("button",{class:"-m-1 p-1 text-xs opacity-75 hover:opacity-100",onClick:p}," Return to top ")])]),w(o)&&n.value?(a(),d("div",{key:0,class:"fixed inset-0 z-20 bg-black/60",onClick:c})):k("",!0),s("div",we,[w(o)&&n.value?(a(),d("aside",xe,[s("button",{class:"absolute right-3 top-2",onClick:c},[u(w(Y),{class:"shrink-0 text-lg"})]),u(C,{class:"text-sm"})])):(a(),d("aside",ke,[u(C,{class:"text-sm"})])),s("main",be,[s("aside",ye,[s("div",Te,[(a(),_(de,{key:f.$route.path}))])]),s("div",Le,[u(m)])])])])])}}});export{Re as default}; 2//# sourceMappingURL=DocsLayout-DuH7s-Nq.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.