mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 09:16:45 +00:00
5 lines
21 KiB
JavaScript
5 lines
21 KiB
JavaScript
import{d as ee,o as de,A as le,b as J,u as te,h as Ce,B as Se,G as Le,z as f,t as oe,O as Te,Q as xe,a as re,_ as Ae,a4 as q,p as ce,M as Q,a5 as Oe,k as He,a6 as ke,a7 as Me,a8 as Fe,a9 as Ne,aa as Pe,ab as Ie,ac as Be,ad as Re,ae as je,af as Ue,ag as We,ah as qe,J as De}from"./chunks/framework.f61376b9.js";import{_ as Ye,t as ae}from"./chunks/theme.4243f77f.js";/*! medium-zoom 1.0.8 | MIT License | https://github.com/francoischalifour/medium-zoom */var H=Object.assign||function(o){for(var n=1;n<arguments.length;n++){var d=arguments[n];for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(o[u]=d[u])}return o},W=function(n){return n.tagName==="IMG"},$e=function(n){return NodeList.prototype.isPrototypeOf(n)},D=function(n){return n&&n.nodeType===1},ie=function(n){var d=n.currentSrc||n.src;return d.substr(-4).toLowerCase()===".svg"},se=function(n){try{return Array.isArray(n)?n.filter(W):$e(n)?[].slice.call(n).filter(W):D(n)?[n].filter(W):typeof n=="string"?[].slice.call(document.querySelectorAll(n)).filter(W):[]}catch{throw new TypeError(`The provided selector is invalid.
|
|
Expects a CSS selector, a Node element, a NodeList or an array.
|
|
See: https://github.com/francoischalifour/medium-zoom`)}},Ve=function(n){var d=document.createElement("div");return d.classList.add("medium-zoom-overlay"),d.style.background=n,d},Ze=function(n){var d=n.getBoundingClientRect(),u=d.top,z=d.left,T=d.width,S=d.height,r=n.cloneNode(),g=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,E=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return r.removeAttribute("id"),r.style.position="absolute",r.style.top=u+g+"px",r.style.left=z+E+"px",r.style.width=T+"px",r.style.height=S+"px",r.style.transform="",r},M=function(n,d){var u=H({bubbles:!1,cancelable:!1,detail:void 0},d);if(typeof window.CustomEvent=="function")return new CustomEvent(n,u);var z=document.createEvent("CustomEvent");return z.initCustomEvent(n,u.bubbles,u.cancelable,u.detail),z},Ge=function o(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=window.Promise||function(i){function s(){}i(s,s)},z=function(i){var s=i.target;if(s===h){C();return}t.indexOf(s)!==-1&&N({target:s})},T=function(){if(!(l||!e.original)){var i=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(b-i)>c.scrollOffset&&setTimeout(C,150)}},S=function(i){var s=i.key||i.keyCode;(s==="Escape"||s==="Esc"||s===27)&&C()},r=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=i;if(i.background&&(h.style.background=i.background),i.container&&i.container instanceof Object&&(s.container=H({},c.container,i.container)),i.template){var y=D(i.template)?i.template:document.querySelector(i.template);s.template=y}return c=H({},c,s),t.forEach(function(w){w.dispatchEvent(M("medium-zoom:update",{detail:{zoom:p}}))}),p},g=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return o(H({},c,i))},E=function(){for(var i=arguments.length,s=Array(i),y=0;y<i;y++)s[y]=arguments[y];var w=s.reduce(function(m,_){return[].concat(m,se(_))},[]);return w.filter(function(m){return t.indexOf(m)===-1}).forEach(function(m){t.push(m),m.classList.add("medium-zoom-image")}),a.forEach(function(m){var _=m.type,L=m.listener,k=m.options;w.forEach(function(A){A.addEventListener(_,L,k)})}),p},x=function(){for(var i=arguments.length,s=Array(i),y=0;y<i;y++)s[y]=arguments[y];e.zoomed&&C();var w=s.length>0?s.reduce(function(m,_){return[].concat(m,se(_))},[]):t;return w.forEach(function(m){m.classList.remove("medium-zoom-image"),m.dispatchEvent(M("medium-zoom:detach",{detail:{zoom:p}}))}),t=t.filter(function(m){return w.indexOf(m)===-1}),p},Y=function(i,s){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.forEach(function(w){w.addEventListener("medium-zoom:"+i,s,y)}),a.push({type:"medium-zoom:"+i,listener:s,options:y}),p},$=function(i,s){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.forEach(function(w){w.removeEventListener("medium-zoom:"+i,s,y)}),a=a.filter(function(w){return!(w.type==="medium-zoom:"+i&&w.listener.toString()===s.toString())}),p},O=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=i.target,y=function(){var m={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},_=void 0,L=void 0;if(c.container)if(c.container instanceof Object)m=H({},m,c.container),_=m.width-m.left-m.right-c.margin*2,L=m.height-m.top-m.bottom-c.margin*2;else{var k=D(c.container)?c.container:document.querySelector(c.container),A=k.getBoundingClientRect(),V=A.width,pe=A.height,fe=A.left,ge=A.top;m=H({},m,{width:V,height:pe,left:fe,top:ge})}_=_||m.width-c.margin*2,L=L||m.height-c.margin*2;var I=e.zoomedHd||e.original,he=ie(I)?_:I.naturalWidth||_,ve=ie(I)?L:I.naturalHeight||L,U=I.getBoundingClientRect(),ye=U.top,ze=U.left,Z=U.width,G=U.height,be=Math.min(Math.max(Z,he),_)/Z,we=Math.min(Math.max(G,ve),L)/G,X=Math.min(be,we),_e=(-ze+(_-Z)/2+c.margin+m.left)/X,Ee=(-ye+(L-G)/2+c.margin+m.top)/X,ne="scale("+X+") translate3d("+_e+"px, "+Ee+"px, 0)";e.zoomed.style.transform=ne,e.zoomedHd&&(e.zoomedHd.style.transform=ne)};return new u(function(w){if(s&&t.indexOf(s)===-1){w(p);return}var m=function V(){l=!1,e.zoomed.removeEventListener("transitionend",V),e.original.dispatchEvent(M("medium-zoom:opened",{detail:{zoom:p}})),w(p)};if(e.zoomed){w(p);return}if(s)e.original=s;else if(t.length>0){var _=t;e.original=_[0]}else{w(p);return}if(e.original.dispatchEvent(M("medium-zoom:open",{detail:{zoom:p}})),b=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,l=!0,e.zoomed=Ze(e.original),document.body.appendChild(h),c.template){var L=D(c.template)?c.template:document.querySelector(c.template);e.template=document.createElement("div"),e.template.appendChild(L.content.cloneNode(!0)),document.body.appendChild(e.template)}if(e.original.parentElement&&e.original.parentElement.tagName==="PICTURE"&&e.original.currentSrc&&(e.zoomed.src=e.original.currentSrc),document.body.appendChild(e.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),e.original.classList.add("medium-zoom-image--hidden"),e.zoomed.classList.add("medium-zoom-image--opened"),e.zoomed.addEventListener("click",C),e.zoomed.addEventListener("transitionend",m),e.original.getAttribute("data-zoom-src")){e.zoomedHd=e.zoomed.cloneNode(),e.zoomedHd.removeAttribute("srcset"),e.zoomedHd.removeAttribute("sizes"),e.zoomedHd.removeAttribute("loading"),e.zoomedHd.src=e.zoomed.getAttribute("data-zoom-src"),e.zoomedHd.onerror=function(){clearInterval(k),console.warn("Unable to reach the zoom image target "+e.zoomedHd.src),e.zoomedHd=null,y()};var k=setInterval(function(){e.zoomedHd.complete&&(clearInterval(k),e.zoomedHd.classList.add("medium-zoom-image--opened"),e.zoomedHd.addEventListener("click",C),document.body.appendChild(e.zoomedHd),y())},10)}else if(e.original.hasAttribute("srcset")){e.zoomedHd=e.zoomed.cloneNode(),e.zoomedHd.removeAttribute("sizes"),e.zoomedHd.removeAttribute("loading");var A=e.zoomedHd.addEventListener("load",function(){e.zoomedHd.removeEventListener("load",A),e.zoomedHd.classList.add("medium-zoom-image--opened"),e.zoomedHd.addEventListener("click",C),document.body.appendChild(e.zoomedHd),y()})}else y()})},C=function(){return new u(function(i){if(l||!e.original){i(p);return}var s=function y(){e.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(e.zoomed),e.zoomedHd&&document.body.removeChild(e.zoomedHd),document.body.removeChild(h),e.zoomed.classList.remove("medium-zoom-image--opened"),e.template&&document.body.removeChild(e.template),l=!1,e.zoomed.removeEventListener("transitionend",y),e.original.dispatchEvent(M("medium-zoom:closed",{detail:{zoom:p}})),e.original=null,e.zoomed=null,e.zoomedHd=null,e.template=null,i(p)};l=!0,document.body.classList.remove("medium-zoom--opened"),e.zoomed.style.transform="",e.zoomedHd&&(e.zoomedHd.style.transform=""),e.template&&(e.template.style.transition="opacity 150ms",e.template.style.opacity=0),e.original.dispatchEvent(M("medium-zoom:close",{detail:{zoom:p}})),e.zoomed.addEventListener("transitionend",s)})},N=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=i.target;return e.original?C():O({target:s})},R=function(){return c},P=function(){return t},j=function(){return e.original},t=[],a=[],l=!1,b=0,c=d,e={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(n)==="[object Object]"?c=n:(n||typeof n=="string")&&E(n),c=H({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},c);var h=Ve(c.background);document.addEventListener("click",z),document.addEventListener("keyup",S),document.addEventListener("scroll",T),window.addEventListener("resize",C);var p={open:O,close:C,toggle:N,update:r,clone:g,attach:E,detach:x,on:Y,off:$,getOptions:R,getImages:P,getZoomedImage:j};return p};function Xe(o,n){n===void 0&&(n={});var d=n.insertAt;if(!(!o||typeof document>"u")){var u=document.head||document.getElementsByTagName("head")[0],z=document.createElement("style");z.type="text/css",d==="top"&&u.firstChild?u.insertBefore(z,u.firstChild):u.appendChild(z),z.styleSheet?z.styleSheet.cssText=o:z.appendChild(document.createTextNode(o))}}var Ke=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Xe(Ke);const Je=Ge;var K=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qe(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ue={exports:{}};(function(o,n){(function(d,u){o.exports=u()})(K,function(){var d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof K<"u"?K:typeof self<"u"?self:{},u={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
* @license MIT */(function(T,S){(function(r,g){T.exports=g()})(d,function(){var r={};r.version="0.2.0";var g=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};r.configure=function(t){var a,l;for(a in t)l=t[a],l!==void 0&&t.hasOwnProperty(a)&&(g[a]=l);return this},r.status=null,r.set=function(t){var a=r.isStarted();t=E(t,g.minimum,1),r.status=t===1?null:t;var l=r.render(!a),b=l.querySelector(g.barSelector),c=g.speed,e=g.easing;return l.offsetWidth,$(function(h){g.positionUsing===""&&(g.positionUsing=r.getPositioningCSS()),O(b,Y(t,c,e)),t===1?(O(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout(function(){O(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),h()},c)},c)):setTimeout(h,c)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var t=function(){setTimeout(function(){!r.status||(r.trickle(),t())},g.trickleSpeed)};return g.trickle&&t(),this},r.done=function(t){return!t&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(t){var a=r.status;return a?(typeof t!="number"&&(t=(1-a)*E(Math.random()*a,.1,.95)),a=E(a+t,0,.994),r.set(a)):r.start()},r.trickle=function(){return r.inc(Math.random()*g.trickleRate)},function(){var t=0,a=0;r.promise=function(l){return!l||l.state()==="resolved"?this:(a===0&&r.start(),t++,a++,l.always(function(){a--,a===0?(t=0,r.done()):r.set((t-a)/t)}),this)}}(),r.render=function(t){if(r.isRendered())return document.getElementById("nprogress");N(document.documentElement,"nprogress-busy");var a=document.createElement("div");a.id="nprogress",a.innerHTML=g.template;var l=a.querySelector(g.barSelector),b=t?"-100":x(r.status||0),c=document.querySelector(g.parent),e;return O(l,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),g.showSpinner||(e=a.querySelector(g.spinnerSelector),e&&j(e)),c!=document.body&&N(c,"nprogress-custom-parent"),c.appendChild(a),a},r.remove=function(){R(document.documentElement,"nprogress-busy"),R(document.querySelector(g.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&j(t)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var t=document.body.style,a="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return a+"Perspective"in t?"translate3d":a+"Transform"in t?"translate":"margin"};function E(t,a,l){return t<a?a:t>l?l:t}function x(t){return(-1+t)*100}function Y(t,a,l){var b;return g.positionUsing==="translate3d"?b={transform:"translate3d("+x(t)+"%,0,0)"}:g.positionUsing==="translate"?b={transform:"translate("+x(t)+"%,0)"}:b={"margin-left":x(t)+"%"},b.transition="all "+a+"ms "+l,b}var $=function(){var t=[];function a(){var l=t.shift();l&&l(a)}return function(l){t.push(l),t.length==1&&a()}}(),O=function(){var t=["Webkit","O","Moz","ms"],a={};function l(h){return h.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(p,v){return v.toUpperCase()})}function b(h){var p=document.body.style;if(h in p)return h;for(var v=t.length,i=h.charAt(0).toUpperCase()+h.slice(1),s;v--;)if(s=t[v]+i,s in p)return s;return h}function c(h){return h=l(h),a[h]||(a[h]=b(h))}function e(h,p,v){p=c(p),h.style[p]=v}return function(h,p){var v=arguments,i,s;if(v.length==2)for(i in p)s=p[i],s!==void 0&&p.hasOwnProperty(i)&&e(h,i,s);else e(h,v[1],v[2])}}();function C(t,a){var l=typeof t=="string"?t:P(t);return l.indexOf(" "+a+" ")>=0}function N(t,a){var l=P(t),b=l+a;C(l,a)||(t.className=b.substring(1))}function R(t,a){var l=P(t),b;!C(t,a)||(b=l.replace(" "+a+" "," "),t.className=b.substring(1,b.length-1))}function P(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function j(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return r})})(u);const z=u.exports;return T=>{if(typeof window>"u")return;const{router:S}=T;return setTimeout(()=>{z.configure({showSpinner:!1});const r=S.onBeforeRouteChange,g=S.onAfterRouteChanged;S.onBeforeRouteChange=E=>{z.start(),r==null||r(E)},S.onAfterRouteChanged=E=>{z.done(),g==null||g(E)}}),z}})})(ue);var et=ue.exports;const tt=Qe(et);const nt=ee({__name:"AsideSponsors",setup(o){const n=[{items:[{img:"https://cdn.jsdelivr.net/gh/maomao1996/picture/sponsor/wechat-color.jpg"}]},{items:[{img:"https://cdn.jsdelivr.net/gh/maomao1996/picture/sponsor/alipay-color.jpg"}]}];return(d,u)=>(de(),le(J(Ye),{data:n}))}});const B=o=>(Te("data-v-ddda9334"),o=o(),xe(),o),ot={class:"copyright"},rt={class:"content"},at={class:"item"},it=B(()=>f("svg",{class:"icon",width:"20",height:"20",viewBox:"0 0 1024 1024"},[f("title",null,"original author"),f("path",{d:"M614.72 554.538c-49.086-6.399-100.27-2.1-149.256-2.1-119.465 0-209.04 95.972-206.84 215.437 0 17.095 8.498 31.99 23.493 40.488 14.896 10.697 34.09 14.896 53.285 17.095 61.882 6.398 123.664 6.398 198.342 6.398 40.488 0 93.872-2.1 142.858-4.298 27.692 0 53.284-4.3 78.877-14.896 19.194-8.498 29.89-19.194 31.99-40.488 8.498-104.57-72.478-204.84-172.75-217.636zM680.8 375.39c0-87.474-74.678-162.053-164.251-162.053-89.574 0-162.053 74.679-162.053 162.053-2.1 87.474 74.678 164.252 162.053 164.252 89.673 0 164.252-74.678 164.252-164.252z",fill:"#FFF"}),f("path",{d:"M512.35 0C228.733 0 .5 228.233.5 511.85s228.233 511.85 511.85 511.85 511.85-228.233 511.85-511.85S795.967 0 512.35 0zm275.12 772.074c-2.1 21.294-12.797 31.99-31.991 40.488-25.593 10.697-51.185 14.896-78.877 14.896-49.086 2.099-102.37 4.298-142.858 4.298-74.678 0-136.46 0-198.342-6.398-19.195-2.1-38.389-6.398-53.285-17.095-14.895-8.497-23.493-23.493-23.493-40.488-2.1-119.465 87.475-215.437 206.84-215.437 49.085 0 100.27-4.299 149.256 2.1 100.27 12.896 181.247 113.166 172.75 217.636zM354.495 375.39c0-87.474 72.479-162.053 162.053-162.053S680.8 288.016 680.8 375.39c0 89.574-74.679 164.252-164.252 164.252-87.375 0-164.152-76.778-162.053-164.252z",fill:"#249FF8"})],-1)),st=B(()=>f("span",{class:"copyrightText"},"Author: ",-1)),dt={class:"item"},lt=B(()=>f("svg",{class:"icon",width:"20",height:"20",viewBox:"0 0 1024 1024"},[f("title",null,"Original Link"),f("path",{d:"M511.854 0A511.854 511.854 0 1 0 1024 511.854 511.854 511.854 0 0 0 511.854 0z",fill:"#39B54A"}),f("path",{d:"M576.491 630.355L460.028 746.818a129.565 129.565 0 0 1-182.555 0l-2.038-2.038a128.983 128.983 0 0 1 0-182.264l81.233-81.233a179.644 179.644 0 0 0 13.102 70.46l-52.7 52.408a69.878 69.878 0 0 0 0 98.703l2.038 2.038a70.169 70.169 0 0 0 98.703 0l116.463-116.463a69.878 69.878 0 0 0 0-98.703l-2.039-2.038a69.587 69.587 0 0 0-13.975-10.772l42.509-42.51a128.11 128.11 0 0 1 13.102 11.356l2.038 2.038a129.274 129.274 0 0 1 0 182.264z",fill:"#FFF"}),f("path",{d:"M746.236 460.902l-81.233 81.233a179.353 179.353 0 0 0-13.102-70.46l52.7-52.409a69.878 69.878 0 0 0 0-98.702l-2.039-2.038a69.878 69.878 0 0 0-98.702 0L487.397 434.989a69.878 69.878 0 0 0 0 98.702l2.038 2.038a68.422 68.422 0 0 0 13.976 10.773l-42.51 42.51a136.553 136.553 0 0 1-13.101-11.356l-2.038-2.038a128.983 128.983 0 0 1 0-182.265l116.463-116.462a129.565 129.565 0 0 1 182.555 0l2.038 2.038a128.983 128.983 0 0 1 0 182.264z",fill:"#FFF"})],-1)),ct=B(()=>f("span",{class:"copyrightText"},"Link: ",-1)),ut=["href"],mt=B(()=>f("div",{class:"item"},[f("svg",{class:"icon",width:"20",height:"20",viewBox:"0 0 1024 1024"},[f("title",null,"documentation license"),f("path",{d:"M0 512a512 512 0 1 0 1024 0A512 512 0 1 0 0 512z",fill:"#F3B243"}),f("path",{d:"M540.672 323.584a90.112 90.112 0 1 0 180.224 0 90.112 90.112 0 1 0-180.224 0zM540.672 688.128a90.112 90.112 0 1 0 180.224 0 90.112 90.112 0 1 0-180.224 0zM229.376 512a90.112 90.112 0 1 0 180.224 0 90.112 90.112 0 1 0-180.224 0z",fill:"#FFF"}),f("path",{d:"M341.037 480.37l257.344-175.718 27.713 40.592-257.34 175.718z",fill:"#FFF"}),f("path",{d:"M349.053 488.452L601.907 670.56l-28.725 39.887L320.307 528.34z",fill:"#FFF"})]),f("span",{class:"copyrightText"},"Licensing: "),f("span",null,[re(" This documentation and all content contained herein, including but not limited to text, graphics, images, and logos, are licensed under "),f("a",{href:"https://creativecommons.org/licenses/by-nc-sa/4.0/",rel:"noreferrer",target:"_blank"},"CC BY-NC 4.0"),re(", unless specifically noted, attribute the source when reprint. ")])],-1)),pt=ee({__name:"Copyright",setup(o){var S,r;const n="Anda Toshiki (安田俊樹)",{frontmatter:d}=te(),u=Ce(n);(S=d.value)!=null&&S.author&&(u.value=(r=d.value)==null?void 0:r.author);const z=location.href,T="https://www.toshiki.dev";return(g,E)=>{const x=Le("ClientOnly");return de(),le(x,null,{default:Se(()=>[f("div",ot,[f("div",rt,[f("div",at,[it,st,f("span",null,[f("a",{href:T,rel:"noreferrer",target:"_blank"},oe(u.value),1)])]),f("div",dt,[lt,ct,f("span",null,[f("a",{href:J(z),rel:"noreferrer",target:"_blank"},oe(J(z)),9,ut)])]),mt])])]),_:1})}}});const ft=Ae(pt,[["__scopeId","data-v-ddda9334"]]);typeof window<"u"&&(window.navigator&&navigator.serviceWorker&&navigator.serviceWorker.getRegistrations().then(function(o){for(let n of o)n.unregister()}),"caches"in window&&caches.keys().then(function(o){return Promise.all(o.map(function(n){return caches.delete(n)}))}));const gt={...ae,Layout:()=>{var d;const o={},{frontmatter:n}=te();return(d=n.value)!=null&&d.layoutClass&&(o.class=n.value.layoutClass),q(ae.Layout,o,{"aside-bottom":()=>q(nt),"doc-footer-before":()=>q(ft)})},setup(){ce(()=>{Je(".main img",{background:"var(--vp-c-bg)"})})},enhanceApp(o){tt(o)}};function me(o){if(o.extends){const n=me(o.extends);return{...n,...o,async enhanceApp(d){n.enhanceApp&&await n.enhanceApp(d),o.enhanceApp&&await o.enhanceApp(d)}}}return o}const F=me(gt),ht=ee({name:"VitePressApp",setup(){const{site:o}=te();return ce(()=>{He(()=>{document.documentElement.lang=o.value.lang,document.documentElement.dir=o.value.dir})}),ke(),Me(),Fe(),F.setup&&F.setup(),()=>q(F.Layout)}});async function vt(){const o=zt(),n=yt();n.provide(Ne,o);const d=Pe(o.route);return n.provide(Ie,d),n.component("Content",Be),n.component("ClientOnly",Re),Object.defineProperties(n.config.globalProperties,{$frontmatter:{get(){return d.frontmatter.value}},$params:{get(){return d.page.value.params}}}),F.enhanceApp&&await F.enhanceApp({app:n,router:o,siteData:je}),{app:n,router:o,data:d}}function yt(){return Ue(ht)}function zt(){let o=Q,n;return We(d=>{let u=qe(d);return o&&(n=u),(o||n===u)&&(u=u.replace(/\.js$/,".lean.js")),Q&&(o=!1),De(()=>import(u),[])},F.NotFound)}Q&&vt().then(({app:o,router:n,data:d})=>{n.go().then(()=>{Oe(n.route,d.site),o.mount("#app")})});export{vt as createApp};
|