c/assets/chunks/theme.DeJoNarU.js

5 lines
64 KiB
JavaScript
Raw Normal View History

const __vite__fileDeps=["assets/chunks/VPLocalSearchBox.OoJFdmgP.js","assets/chunks/framework.BE8if9e6.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{d as _,o as s,c as u,r as c,n as H,a as ee,t as z,b as y,w as v,e as f,T as He,_ as $,u as Qe,i as It,f as Et,g as Be,h as P,j as p,k as i,p as j,l as q,m as re,q as Ne,s as A,v as x,x as $e,y as te,z as Oe,A as xe,B as Nt,C as Ct,D as ie,F as B,E as K,G as et,H as ye,I as k,J as ue,K as tt,L as me,M as _e,N as Le,O as zt,P as ot,Q as Ce,R as De,S as nt,U as Pe,V as At,W as Mt,X as at,Y as st,Z as rt,$ as Ht,a0 as Bt,a1 as Ot,a2 as Dt,a3 as Ft,a4 as Ut}from"./framework.BE8if9e6.js";const Gt=_({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(s(),u("span",{class:H(["VPBadge",e.type])},[c(e.$slots,"default",{},()=>[ee(z(e.text),1)])],2))}}),jt={key:0,class:"VPBackdrop"},qt=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(s(),y(He,{name:"fade"},{default:v(()=>[e.show?(s(),u("div",jt)):f("",!0)]),_:1}))}}),Rt=$(qt,[["__scopeId","data-v-c79a1216"]]),w=Qe;function Wt(o,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(o,e):(o(),(n=!0)&&setTimeout(()=>n=!1,e))}}function ze(o){return/^\//.test(o)?o:`/${o}`}function Fe(o){const{pathname:e,search:t,hash:n,protocol:a}=new URL(o,"http://a.com");if(It(o)||o.startsWith("#")||!a.startsWith("http")||!Et(e))return o;const{site:r}=w(),l=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return Be(l)}function ve({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:n,theme:a,hash:r}=w(),l=P(()=>{var d,b;return{label:(d=e.value.locales[t.value])==null?void 0:d.label,link:((b=e.value.locales[t.value])==null?void 0:b.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:P(()=>Object.entries(e.value.locales).flatMap(([d,b])=>l.value.label===b.label?[]:{text:b.label,link:Kt(b.link||(d==="root"?"/":`/${d}/`),a.value.i18nRouting!==!1&&o,n.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+r.value})),currentLang:l}}function Kt(o,e,t,n){return e?o.replace(/\/$/,"")+ze(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):o}const Yt=o=>(j("data-v-d6be1790"),o=o(),q(),o),Xt={class:"NotFound"},Zt={class:"code"},Jt={class:"title"},Qt=Yt(()=>p("div",{class:"divider"},null,-1)),xt={class:"quote"},eo={class:"action"},to=["href","aria-label"],oo=_({__name:"NotFound",setup(o){const{theme:e}=w(),{currentLang:t}=ve();return(n,a)=>{var r,l,m,d,b;return s(),u("div",Xt,[p("p",Zt,z(((r=i(e).notFound)==null?void 0:r.code)??"404"),1),p("h1",Jt,z(((l=i(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),Qt,p("blockquote",xt,z(((m=i(e).notFound)==null?void 0:m.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),p("div",eo,[p("a",{class:"link",href:i(Be)(i(t).link),"aria-label":((d=i(e).notFound)==null?void 0:d.linkLabel)??"go to home"},z(((b=i(e).notFound)==null?void 0:b.linkText)??"Take me home"),9,to)])])}}}),no=$(oo,[["__scopeId","data-v-d6be1790"]]);function it(o,e){if(Array.isArray(o))return ge(o);if(o==null)return[];e=ze(e);const t=Object.keys(o).sort((a,r)=>r.split("/").length-a.split("/").length).find(a=>e.startsWith(ze(a))),n=t?o[t]:[];return Array.isArray(n)?ge(n):ge(n.items,n.base)}function ao(o){const e=[];let t=0;for(const n in o){const a=o[n];if(a.items){t=e.push(a);continue}e[t]||e.push({items:[]}),e[t].items.push(a)}return e}function so(o){const e=[];function t(n){for(const a of n)a.text&&a.link&&e.push({text:a.text,link:a.link,docFooterText:a.docFooterText}),a.items&&t(a.items)}return t(o),e}function Ae(o,e){return Array.isArray(e)?e.some(t=>Ae(o,t)):re(o,e.link)?!0:e.items?Ae(o,e.items):!1}function ge(o,e){return[...o].map(t=>{const n={...t},a=n.base||e;return a&&n.link&&(n.link=a+n.link),n.items&&(n.items=ge(n.items,a)),n})}function oe(){const{frontmatter:o,page:e,theme:t}=w(),n=Ne("(min-width: 960px)"),a=A(!1),r=P(()=>{const D=t.value.sidebar,C=e.value.relativePath;return D?it(D,C):[]}),l=A(r.value);x(r,(D,C)=>{JSON.stringify(D)!==JSON.stringify(C)&&(l.value=r.value)});const m=P(()=>o.value.sidebar!==!1&&l.value.length>0&&o.value
Expects a CSS selector, a Node element, a NodeList or an array.
See: https://github.com/francoischalifour/medium-zoom`)}},ti=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t},oi=function(e){var t=e.getBoundingClientRect(),n=t.top,a=t.left,r=t.width,l=t.height,m=e.cloneNode(),d=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,b=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return m.removeAttribute("id"),m.style.position="absolute",m.style.top=n+d+"px",m.style.left=a+b+"px",m.style.width=r+"px",m.style.height=l+"px",m.style.transform="",m},ce=function(e,t){var n=se({bubbles:!1,cancelable:!1,detail:void 0},t);if(typeof window.CustomEvent=="function")return new CustomEvent(e,n);var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),a},ni=function o(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=window.Promise||function(S){function T(){}S(T,T)},a=function(S){var T=S.target;if(T===pe){E();return}F.indexOf(T)!==-1&&D({target:T})},r=function(){if(!(J||!h.original)){var S=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(We-S)>M.scrollOffset&&setTimeout(E,150)}},l=function(S){var T=S.key||S.keyCode;(T==="Escape"||T==="Esc"||T===27)&&E()},m=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=S;if(S.background&&(pe.style.background=S.background),S.container&&S.container instanceof Object&&(T.container=se({},M.container,S.container)),S.template){var O=be(S.template)?S.template:document.querySelector(S.template);T.template=O}return M=se({},M,T),F.forEach(function(U){U.dispatchEvent(ce("medium-zoom:update",{detail:{zoom:G}}))}),G},d=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return o(se({},M,S))},b=function(){for(var S=arguments.length,T=Array(S),O=0;O<S;O++)T[O]=arguments[O];var U=T.reduce(function(I,W){return[].concat(I,Ze(W))},[]);return U.filter(function(I){return F.indexOf(I)===-1}).forEach(function(I){F.push(I),I.classList.add("medium-zoom-image")}),ne.forEach(function(I){var W=I.type,Y=I.listener,le=I.options;U.forEach(function(ae){ae.addEventListener(W,Y,le)})}),G},L=function(){for(var S=arguments.length,T=Array(S),O=0;O<S;O++)T[O]=arguments[O];h.zoomed&&E();var U=T.length>0?T.reduce(function(I,W){return[].concat(I,Ze(W))},[]):F;return U.forEach(function(I){I.classList.remove("medium-zoom-image"),I.dispatchEvent(ce("medium-zoom:detach",{detail:{zoom:G}}))}),F=F.filter(function(I){return U.indexOf(I)===-1}),G},g=function(S,T){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F.forEach(function(U){U.addEventListener("medium-zoom:"+S,T,O)}),ne.push({type:"medium-zoom:"+S,listener:T,options:O}),G},V=function(S,T){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F.forEach(function(U){U.removeEventListener("medium-zoom:"+S,T,O)}),ne=ne.filter(function(U){return!(U.type==="medium-zoom:"+S&&U.listener.toString()===T.toString())}),G},N=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=S.target,O=function(){var I={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},W=void 0,Y=void 0;if(M.container)if(M.container instanceof Object)I=se({},I,M.container),W=I.width-I.left-I.right-M.margin*2,Y=I.height-I.top-I.bottom-M.margin*2;else{var le=be(M.container)?M.container:document.querySelector(M.container),ae=le.getBoundingClientRect(),Ve=ae.width,gt=ae.height,bt=ae.left,kt=ae.top;I=se({},I,{width:Ve,height:gt,left:bt,top:kt})}W=W||I.width-M.margin*2,Y=Y||I.height-M.margin*2;var de=h.zoomedHd||h.original,$t=Xe(de)?W:de.naturalWidth||W,yt=Xe(de)?Y:de.naturalHeight||Y,he=de.getBoundingClientRect(),Lt=he.top,Pt=he.left,we=he.width,Te=he.height,St=Math.min(Math.max(we,$t),W)/we,Vt=Math.min(Math.max(Te,yt),Y)/Te,Ie=Math.min(St,Vt),wt=(-Pt+(W-we)/2+M.margin+I.left)/Ie,Tt=(-Lt+(Y-Te)/2+M.margin+I.top)/Ie,Ke="scale("+Ie+") translate3d("+wt+"px, "+Tt+"px, 0)";h.zoomed.style.tra