Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vuepress-shared

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuepress-shared - npm Package Compare versions

Comparing version 2.0.0-rc.25 to 2.0.0-rc.26

2

lib/client/index.js

@@ -1,2 +0,2 @@

import{h as s,computed as h,ref as L,getCurrentInstance as A,onMounted as N}from"vue";import{keys as u,isDef as S,isLinkHttp as g}from"@vuepress/helper/client";const r=({name:e="",color:n="currentColor"},{slots:t})=>s("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${e}-icon`],viewBox:"0 0 1024 1024",fill:n,"aria-label":`${e} icon`},t.default?.());r.displayName="IconBase";const w=({size:e=48,stroke:n=4,wrapper:t=!0,height:i=2*e})=>{const o=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,preserveAspectRatio:"xMidYMid",viewBox:"25 25 50 50"},[s("animateTransform",{attributeName:"transform",type:"rotate",dur:"2s",keyTimes:"0;1",repeatCount:"indefinite",values:"0;360"}),s("circle",{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round"},[s("animate",{attributeName:"stroke-dasharray",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"1,200;90,200;1,200"}),s("animate",{attributeName:"stroke-dashoffset",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"0;-35px;-125px"})])]);return t?s("div",{class:"loading-icon-wrapper",style:`display:flex;align-items:center;justify-content:center;height:${i}px`},o):o};w.displayName="LoadingIcon";const $=(e,{slots:n})=>n.default?.(),v=()=>s(r,{name:"github"},()=>s("path",{d:"M511.957 21.333C241.024 21.333 21.333 240.981 21.333 512c0 216.832 140.544 400.725 335.574 465.664 24.49 4.395 32.256-10.07 32.256-23.083 0-11.69.256-44.245 0-85.205-136.448 29.61-164.736-64.64-164.736-64.64-22.315-56.704-54.4-71.765-54.4-71.765-44.587-30.464 3.285-29.824 3.285-29.824 49.195 3.413 75.179 50.517 75.179 50.517 43.776 75.008 114.816 53.333 142.762 40.79 4.523-31.66 17.152-53.377 31.19-65.537-108.971-12.458-223.488-54.485-223.488-242.602 0-53.547 19.114-97.323 50.517-131.67-5.035-12.33-21.93-62.293 4.779-129.834 0 0 41.258-13.184 134.912 50.346a469.803 469.803 0 0 1 122.88-16.554c41.642.213 83.626 5.632 122.88 16.554 93.653-63.488 134.784-50.346 134.784-50.346 26.752 67.541 9.898 117.504 4.864 129.834 31.402 34.347 50.474 78.123 50.474 131.67 0 188.586-114.73 230.016-224.042 242.09 17.578 15.232 33.578 44.672 33.578 90.454v135.85c0 13.142 7.936 27.606 32.854 22.87C862.25 912.597 1002.667 728.747 1002.667 512c0-271.019-219.648-490.667-490.71-490.667z"}));v.displayName="GitHubIcon";const b=()=>s(r,{name:"gitlab"},()=>s("path",{d:"M229.333 78.688C223.52 62 199.895 62 193.895 78.688L87.958 406.438h247.5c-.188 0-106.125-327.75-106.125-327.75zM33.77 571.438c-4.875 15 .563 31.687 13.313 41.25l464.812 345L87.77 406.438zm301.5-165 176.813 551.25 176.812-551.25zm655.125 165-54-165-424.312 551.25 464.812-345c12.938-9.563 18.188-26.25 13.5-41.25zM830.27 78.688c-5.812-16.688-29.437-16.688-35.437 0l-106.125 327.75h247.5z"}));b.displayName="GitLabIcon";const f=()=>s(r,{name:"gitee"},()=>s("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm242.97-533.34H482.39a23.7 23.7 0 0 0-23.7 23.7l-.03 59.28c0 13.08 10.59 23.7 23.7 23.7h165.96a23.7 23.7 0 0 1 23.7 23.7v11.85a71.1 71.1 0 0 1-71.1 71.1H375.71a23.7 23.7 0 0 1-23.7-23.7V423.11a71.1 71.1 0 0 1 71.1-71.1h331.8a23.7 23.7 0 0 0 23.7-23.7l.06-59.25a23.73 23.73 0 0 0-23.7-23.73H423.11a177.78 177.78 0 0 0-177.78 177.75v331.83c0 13.08 10.62 23.7 23.7 23.7h349.62a159.99 159.99 0 0 0 159.99-159.99V482.33a23.7 23.7 0 0 0-23.7-23.7z"}));f.displayName="GiteeIcon";const E=()=>s(r,{name:"bitbucket"},()=>s("path",{d:"M575.256 490.862c6.29 47.981-52.005 85.723-92.563 61.147-45.714-20.004-45.714-92.562-1.133-113.152 38.29-23.442 93.696 7.424 93.696 52.005zm63.451-11.996c-10.276-81.152-102.29-134.839-177.152-101.156-47.433 21.138-79.433 71.424-77.129 124.562 2.853 69.705 69.157 126.866 138.862 120.576S647.3 548.571 638.708 478.83zm136.558-309.723c-25.161-33.134-67.986-38.839-105.728-45.13-106.862-17.151-216.576-17.7-323.438 1.134-35.438 5.706-75.447 11.996-97.719 43.996 36.572 34.304 88.576 39.424 135.424 45.129 84.553 10.862 171.447 11.447 256 .585 47.433-5.705 99.987-10.276 135.424-45.714zm32.585 591.433c-16.018 55.99-6.839 131.438-66.304 163.986-102.29 56.576-226.304 62.867-338.87 42.862-59.43-10.862-129.135-29.696-161.72-85.723-14.3-54.858-23.442-110.848-32.585-166.84l3.438-9.142 10.276-5.157c170.277 112.567 408.576 112.567 579.438 0 26.844 8.01 6.84 40.558 6.29 60.014zm103.424-549.157c-19.42 125.148-41.728 249.71-63.415 374.272-6.29 36.572-41.728 57.162-71.424 72.558-106.862 53.724-231.424 62.866-348.562 50.286-79.433-8.558-160.585-29.696-225.134-79.433-30.28-23.443-30.28-63.415-35.986-97.134-20.005-117.138-42.862-234.277-57.161-352.585 6.839-51.42 64.585-73.728 107.447-89.71 57.16-21.138 118.272-30.866 178.87-36.571 129.134-12.58 261.157-8.01 386.304 28.562 44.581 13.13 92.563 31.415 122.844 69.705 13.714 17.7 9.143 40.01 6.29 60.014z"}));E.displayName="BitbucketIcon";const y=()=>s(r,{name:"source"},()=>s("path",{d:"M601.92 475.2c0 76.428-8.91 83.754-28.512 99.594-14.652 11.88-43.956 14.058-78.012 16.434-18.81 1.386-40.392 2.97-62.172 6.534-18.612 2.97-36.432 9.306-53.064 17.424V299.772c37.818-21.978 63.36-62.766 63.36-109.692 0-69.894-56.826-126.72-126.72-126.72S190.08 120.186 190.08 190.08c0 46.926 25.542 87.714 63.36 109.692v414.216c-37.818 21.978-63.36 62.766-63.36 109.692 0 69.894 56.826 126.72 126.72 126.72s126.72-56.826 126.72-126.72c0-31.086-11.286-59.598-29.7-81.576 13.266-9.504 27.522-17.226 39.996-19.206 16.038-2.574 32.868-3.762 50.688-5.148 48.312-3.366 103.158-7.326 148.896-44.55 61.182-49.698 74.25-103.158 75.24-187.902V475.2h-126.72zM316.8 126.72c34.848 0 63.36 28.512 63.36 63.36s-28.512 63.36-63.36 63.36-63.36-28.512-63.36-63.36 28.512-63.36 63.36-63.36zm0 760.32c-34.848 0-63.36-28.512-63.36-63.36s28.512-63.36 63.36-63.36 63.36 28.512 63.36 63.36-28.512 63.36-63.36 63.36zM823.68 158.4h-95.04V63.36h-126.72v95.04h-95.04v126.72h95.04v95.04h126.72v-95.04h95.04z"}));y.displayName="SourceIcon";function H(){const e=L(!1);return A()&&N(()=>{e.value=!0}),e}function T(e){return H(),h(()=>!!e())}const k=()=>T(()=>typeof window<"u"&&window.navigator&&"userAgent"in window.navigator),B=()=>{const e=k();return h(()=>e.value&&/\b(?:Android|iPhone)/i.test(navigator.userAgent))},G=e=>/\b(?:Android|iPhone)/i.test(e),P=e=>/ wv\).+(chrome)\/([\w.]+)/i.test(e),j=e=>/version\/([\w.]+) .*mobile\/\w+ (safari)/i.test(e),R=e=>/version\/([\w.]+) .*(mobile ?safari|safari)/i.test(e),V=e=>/\((ip(?:hone|od)[\w ]*);/i.test(e),D=e=>[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i].some(n=>n.test(e)),O=e=>[/microsoft (windows) (vista|xp)/i,/(win(?=3|9|n)|win 9x )([nt\d.]+)/i,/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[/ ]?([\d.\w ]*)/i,/(windows)[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i].some(n=>n.test(e)),W=e=>[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i].some(n=>n.test(e)),U=e=>[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i].some(n=>n.test(e)),_=(e,n)=>{let t=1;for(let i=0;i<e.length;i++)t+=e.charCodeAt(i),t+=t<<10,t^=t>>6;return t+=t<<3,t^=t>>11,t%n};class F{constructor(){this.messageElements={};const n="message-container",t=document.getElementById(n);t?this.containerElement=t:(this.containerElement=document.createElement("div"),this.containerElement.id=n,document.body.appendChild(this.containerElement))}pop(n,t=2e3){const i=document.createElement("div"),o=Date.now();return i.className="message move-in",i.innerHTML=n,this.containerElement.appendChild(i),this.messageElements[o]=i,t>0&&setTimeout(()=>{this.close(o)},t),o}close(n){if(n){const t=this.messageElements[n];t.classList.remove("move-in"),t.classList.add("move-out"),t.addEventListener("animationend",()=>{t.remove(),delete this.messageElements[n]})}else u(this.messageElements).forEach(t=>this.close(Number(t)))}destroy(){document.body.removeChild(this.containerElement)}}const I=/#.*$/u,x=e=>{const n=I.exec(e);return n?n[0]:""},m=e=>decodeURI(e).replace(I,"").replace(/\/index\.html$/iu,"/").replace(/\.html$/iu,"").replace(/(README|index)?\.md$/iu,""),Y=(e,n)=>{if(!S(n))return!1;const t=m(e.path),i=m(n),o=x(n);return o?o===e.hash&&(!i||t===i):t===i};class q{constructor(){this.popupElements={};const n="popup-container",t=document.getElementById(n);t?this.containerElement=t:(this.containerElement=document.createElement("div"),this.containerElement.id=n,document.body.appendChild(this.containerElement))}emit(n,t){const i=document.createElement("div"),o=document.createElement("div"),a=Date.now();return this.containerElement.appendChild(i),this.popupElements[a]=i,i.className="popup-wrapper appear",i.appendChild(o),i.addEventListener("click",()=>this.close(a)),o.className="popup-container",o.innerHTML=n,typeof t=="number"&&setTimeout(()=>{this.close(a)},t),a}close(n){if(n){const t=this.popupElements[n];t.classList.replace("appear","disappear"),t.children[0].addEventListener("animationend",()=>{t.remove(),delete this.popupElements[n]})}else u(this.popupElements).forEach(t=>this.close(Number(t)))}destroy(){document.body.removeChild(this.containerElement)}}const J=e=>g(e)?e:`https://github.com/${e}`,K=e=>!g(e)||/github\.com/.test(e)?"GitHub":/bitbucket\.org/.test(e)?"Bitbucket":/gitlab\.com/.test(e)?"GitLab":/gitee\.com/.test(e)?"Gitee":null,M=()=>{const{availWidth:e,availHeight:n}=screen,{screenLeft:t,screenTop:i,innerWidth:o,innerHeight:a}=window,l=Math.max(e/2,600),p=Math.max(n/2,400);return{width:l,height:p,left:t+o/2-l/2,top:i+a/2-p/2}},Q=(e,n="_blank",t=["resizable","status"])=>{const{width:i,height:o,left:a,top:l}=M();window.open(e,n,`width=${i},height=${o},left=${a},top=${l},${t.join(",")}`)?.focus?.()};var X=e=>Object.prototype.toString.call(e)==="[object Object]",c=e=>typeof e=="string";const z=Array.isArray,C=e=>X(e)&&c(e.name),Z=(e,n=!1)=>e?z(e)?e.map(t=>c(t)?{name:t}:C(t)?t:null).filter(t=>t!==null):c(e)?[{name:e}]:C(e)?[e]:(console.error(`Expect "author" to be \`AuthorInfo[] | AuthorInfo | string[] | string ${n?"":"| false"} | undefined\`, but got`,e),[]):[],d=(e,n)=>{if(e){if(z(e)&&e.every(c))return e;if(c(e))return[e];console.error(`Expect ${n||"value"} to be \`string[] | string | undefined\`, but got`,e)}return[]},ee=e=>d(e,"category"),te=e=>d(e,"tag");export{E as BitbucketIcon,v as GitHubIcon,b as GitLabIcon,f as GiteeIcon,r as IconBase,w as LoadingIcon,F as Message,q as Popup,$ as RenderDefault,y as SourceIcon,P as checkIsChromeWebView,W as checkIsIOS,U as checkIsMacOS,G as checkIsMobile,R as checkIsSafari,j as checkIsSafariMobile,O as checkIsWindows,D as checkIsiPad,V as checkIsiPhone,_ as generateIndexFromHash,Z as getAuthor,ee as getCategory,x as getHash,M as getSize,d as getStringArray,te as getTag,Y as isActiveLink,m as normalizePath,Q as openPopupWindow,J as resolveRepoLink,K as resolveRepoType,B as useIsMobile,k as useSupportUserAgent};
import{h as s,computed as h,ref as L,getCurrentInstance as A,onMounted as N}from"vue";import{keys as u,isDef as S,isLinkHttp as g}from"@vuepress/helper/client";const r=({name:e="",color:n="currentColor"},{slots:t})=>s("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${e}-icon`],viewBox:"0 0 1024 1024",fill:n,"aria-label":`${e} icon`},t.default?.());r.displayName="IconBase";const w=({size:e=48,stroke:n=4,wrapper:t=!0,height:i=2*e})=>{const o=s("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,preserveAspectRatio:"xMidYMid",viewBox:"25 25 50 50"},[s("animateTransform",{attributeName:"transform",type:"rotate",dur:"2s",keyTimes:"0;1",repeatCount:"indefinite",values:"0;360"}),s("circle",{cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round"},[s("animate",{attributeName:"stroke-dasharray",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"1,200;90,200;1,200"}),s("animate",{attributeName:"stroke-dashoffset",dur:"1.5s",keyTimes:"0;0.5;1",repeatCount:"indefinite",values:"0;-35px;-125px"})])]);return t?s("div",{class:"loading-icon-wrapper",style:`display:flex;align-items:center;justify-content:center;height:${i}px`},o):o};w.displayName="LoadingIcon";const $=(e,{slots:n})=>n.default?.(),v=()=>s(r,{name:"github"},()=>s("path",{d:"M511.957 21.333C241.024 21.333 21.333 240.981 21.333 512c0 216.832 140.544 400.725 335.574 465.664 24.49 4.395 32.256-10.07 32.256-23.083 0-11.69.256-44.245 0-85.205-136.448 29.61-164.736-64.64-164.736-64.64-22.315-56.704-54.4-71.765-54.4-71.765-44.587-30.464 3.285-29.824 3.285-29.824 49.195 3.413 75.179 50.517 75.179 50.517 43.776 75.008 114.816 53.333 142.762 40.79 4.523-31.66 17.152-53.377 31.19-65.537-108.971-12.458-223.488-54.485-223.488-242.602 0-53.547 19.114-97.323 50.517-131.67-5.035-12.33-21.93-62.293 4.779-129.834 0 0 41.258-13.184 134.912 50.346a469.803 469.803 0 0 1 122.88-16.554c41.642.213 83.626 5.632 122.88 16.554 93.653-63.488 134.784-50.346 134.784-50.346 26.752 67.541 9.898 117.504 4.864 129.834 31.402 34.347 50.474 78.123 50.474 131.67 0 188.586-114.73 230.016-224.042 242.09 17.578 15.232 33.578 44.672 33.578 90.454v135.85c0 13.142 7.936 27.606 32.854 22.87C862.25 912.597 1002.667 728.747 1002.667 512c0-271.019-219.648-490.667-490.71-490.667z"}));v.displayName="GitHubIcon";const b=()=>s(r,{name:"gitlab"},()=>s("path",{d:"M229.333 78.688C223.52 62 199.895 62 193.895 78.688L87.958 406.438h247.5c-.188 0-106.125-327.75-106.125-327.75zM33.77 571.438c-4.875 15 .563 31.687 13.313 41.25l464.812 345L87.77 406.438zm301.5-165 176.813 551.25 176.812-551.25zm655.125 165-54-165-424.312 551.25 464.812-345c12.938-9.563 18.188-26.25 13.5-41.25zM830.27 78.688c-5.812-16.688-29.437-16.688-35.437 0l-106.125 327.75h247.5z"}));b.displayName="GitLabIcon";const f=()=>s(r,{name:"gitee"},()=>s("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm242.97-533.34H482.39a23.7 23.7 0 0 0-23.7 23.7l-.03 59.28c0 13.08 10.59 23.7 23.7 23.7h165.96a23.7 23.7 0 0 1 23.7 23.7v11.85a71.1 71.1 0 0 1-71.1 71.1H375.71a23.7 23.7 0 0 1-23.7-23.7V423.11a71.1 71.1 0 0 1 71.1-71.1h331.8a23.7 23.7 0 0 0 23.7-23.7l.06-59.25a23.73 23.73 0 0 0-23.7-23.73H423.11a177.78 177.78 0 0 0-177.78 177.75v331.83c0 13.08 10.62 23.7 23.7 23.7h349.62a159.99 159.99 0 0 0 159.99-159.99V482.33a23.7 23.7 0 0 0-23.7-23.7z"}));f.displayName="GiteeIcon";const E=()=>s(r,{name:"bitbucket"},()=>s("path",{d:"M575.256 490.862c6.29 47.981-52.005 85.723-92.563 61.147-45.714-20.004-45.714-92.562-1.133-113.152 38.29-23.442 93.696 7.424 93.696 52.005zm63.451-11.996c-10.276-81.152-102.29-134.839-177.152-101.156-47.433 21.138-79.433 71.424-77.129 124.562 2.853 69.705 69.157 126.866 138.862 120.576S647.3 548.571 638.708 478.83zm136.558-309.723c-25.161-33.134-67.986-38.839-105.728-45.13-106.862-17.151-216.576-17.7-323.438 1.134-35.438 5.706-75.447 11.996-97.719 43.996 36.572 34.304 88.576 39.424 135.424 45.129 84.553 10.862 171.447 11.447 256 .585 47.433-5.705 99.987-10.276 135.424-45.714zm32.585 591.433c-16.018 55.99-6.839 131.438-66.304 163.986-102.29 56.576-226.304 62.867-338.87 42.862-59.43-10.862-129.135-29.696-161.72-85.723-14.3-54.858-23.442-110.848-32.585-166.84l3.438-9.142 10.276-5.157c170.277 112.567 408.576 112.567 579.438 0 26.844 8.01 6.84 40.558 6.29 60.014zm103.424-549.157c-19.42 125.148-41.728 249.71-63.415 374.272-6.29 36.572-41.728 57.162-71.424 72.558-106.862 53.724-231.424 62.866-348.562 50.286-79.433-8.558-160.585-29.696-225.134-79.433-30.28-23.443-30.28-63.415-35.986-97.134-20.005-117.138-42.862-234.277-57.161-352.585 6.839-51.42 64.585-73.728 107.447-89.71 57.16-21.138 118.272-30.866 178.87-36.571 129.134-12.58 261.157-8.01 386.304 28.562 44.581 13.13 92.563 31.415 122.844 69.705 13.714 17.7 9.143 40.01 6.29 60.014z"}));E.displayName="BitbucketIcon";const y=()=>s(r,{name:"source"},()=>s("path",{d:"M601.92 475.2c0 76.428-8.91 83.754-28.512 99.594-14.652 11.88-43.956 14.058-78.012 16.434-18.81 1.386-40.392 2.97-62.172 6.534-18.612 2.97-36.432 9.306-53.064 17.424V299.772c37.818-21.978 63.36-62.766 63.36-109.692 0-69.894-56.826-126.72-126.72-126.72S190.08 120.186 190.08 190.08c0 46.926 25.542 87.714 63.36 109.692v414.216c-37.818 21.978-63.36 62.766-63.36 109.692 0 69.894 56.826 126.72 126.72 126.72s126.72-56.826 126.72-126.72c0-31.086-11.286-59.598-29.7-81.576 13.266-9.504 27.522-17.226 39.996-19.206 16.038-2.574 32.868-3.762 50.688-5.148 48.312-3.366 103.158-7.326 148.896-44.55 61.182-49.698 74.25-103.158 75.24-187.902V475.2h-126.72zM316.8 126.72c34.848 0 63.36 28.512 63.36 63.36s-28.512 63.36-63.36 63.36-63.36-28.512-63.36-63.36 28.512-63.36 63.36-63.36zm0 760.32c-34.848 0-63.36-28.512-63.36-63.36s28.512-63.36 63.36-63.36 63.36 28.512 63.36 63.36-28.512 63.36-63.36 63.36zM823.68 158.4h-95.04V63.36h-126.72v95.04h-95.04v126.72h95.04v95.04h126.72v-95.04h95.04z"}));y.displayName="SourceIcon";function H(){const e=L(!1),n=A();return n&&N(()=>{e.value=!0},n),e}function T(e){return H(),h(()=>!!e())}const k=()=>T(()=>typeof window<"u"&&window.navigator&&"userAgent"in window.navigator),B=()=>{const e=k();return h(()=>e.value&&/\b(?:Android|iPhone)/i.test(navigator.userAgent))},G=e=>/\b(?:Android|iPhone)/i.test(e),P=e=>/ wv\).+(chrome)\/([\w.]+)/i.test(e),j=e=>/version\/([\w.]+) .*mobile\/\w+ (safari)/i.test(e),R=e=>/version\/([\w.]+) .*(mobile ?safari|safari)/i.test(e),V=e=>/\((ip(?:hone|od)[\w ]*);/i.test(e),D=e=>[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i].some(n=>n.test(e)),O=e=>[/microsoft (windows) (vista|xp)/i,/(win(?=3|9|n)|win 9x )([nt\d.]+)/i,/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[/ ]?([\d.\w ]*)/i,/(windows)[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i].some(n=>n.test(e)),W=e=>[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i].some(n=>n.test(e)),U=e=>[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i].some(n=>n.test(e)),_=(e,n)=>{let t=1;for(let i=0;i<e.length;i++)t+=e.charCodeAt(i),t+=t<<10,t^=t>>6;return t+=t<<3,t^=t>>11,t%n};class F{constructor(){this.messageElements={};const n="message-container",t=document.getElementById(n);t?this.containerElement=t:(this.containerElement=document.createElement("div"),this.containerElement.id=n,document.body.appendChild(this.containerElement))}pop(n,t=2e3){const i=document.createElement("div"),o=Date.now();return i.className="message move-in",i.innerHTML=n,this.containerElement.appendChild(i),this.messageElements[o]=i,t>0&&setTimeout(()=>{this.close(o)},t),o}close(n){if(n){const t=this.messageElements[n];t.classList.remove("move-in"),t.classList.add("move-out"),t.addEventListener("animationend",()=>{t.remove(),delete this.messageElements[n]})}else u(this.messageElements).forEach(t=>this.close(Number(t)))}destroy(){document.body.removeChild(this.containerElement)}}const I=/#.*$/u,x=e=>{const n=I.exec(e);return n?n[0]:""},m=e=>decodeURI(e).replace(I,"").replace(/\/index\.html$/iu,"/").replace(/\.html$/iu,"").replace(/(README|index)?\.md$/iu,""),Y=(e,n)=>{if(!S(n))return!1;const t=m(e.path),i=m(n),o=x(n);return o?o===e.hash&&(!i||t===i):t===i};class q{constructor(){this.popupElements={};const n="popup-container",t=document.getElementById(n);t?this.containerElement=t:(this.containerElement=document.createElement("div"),this.containerElement.id=n,document.body.appendChild(this.containerElement))}emit(n,t){const i=document.createElement("div"),o=document.createElement("div"),a=Date.now();return this.containerElement.appendChild(i),this.popupElements[a]=i,i.className="popup-wrapper appear",i.appendChild(o),i.addEventListener("click",()=>this.close(a)),o.className="popup-container",o.innerHTML=n,typeof t=="number"&&setTimeout(()=>{this.close(a)},t),a}close(n){if(n){const t=this.popupElements[n];t.classList.replace("appear","disappear"),t.children[0].addEventListener("animationend",()=>{t.remove(),delete this.popupElements[n]})}else u(this.popupElements).forEach(t=>this.close(Number(t)))}destroy(){document.body.removeChild(this.containerElement)}}const J=e=>g(e)?e:`https://github.com/${e}`,K=e=>!g(e)||/github\.com/.test(e)?"GitHub":/bitbucket\.org/.test(e)?"Bitbucket":/gitlab\.com/.test(e)?"GitLab":/gitee\.com/.test(e)?"Gitee":null,M=()=>{const{availWidth:e,availHeight:n}=screen,{screenLeft:t,screenTop:i,innerWidth:o,innerHeight:a}=window,l=Math.max(e/2,600),p=Math.max(n/2,400);return{width:l,height:p,left:t+o/2-l/2,top:i+a/2-p/2}},Q=(e,n="_blank",t=["resizable","status"])=>{const{width:i,height:o,left:a,top:l}=M();window.open(e,n,`width=${i},height=${o},left=${a},top=${l},${t.join(",")}`)?.focus?.()};var X=e=>Object.prototype.toString.call(e)==="[object Object]",c=e=>typeof e=="string";const z=Array.isArray,C=e=>X(e)&&c(e.name),Z=(e,n=!1)=>e?z(e)?e.map(t=>c(t)?{name:t}:C(t)?t:null).filter(t=>t!==null):c(e)?[{name:e}]:C(e)?[e]:(console.error(`Expect "author" to be \`AuthorInfo[] | AuthorInfo | string[] | string ${n?"":"| false"} | undefined\`, but got`,e),[]):[],d=(e,n)=>{if(e){if(z(e)&&e.every(c))return e;if(c(e))return[e];console.error(`Expect ${n||"value"} to be \`string[] | string | undefined\`, but got`,e)}return[]},ee=e=>d(e,"category"),te=e=>d(e,"tag");export{E as BitbucketIcon,v as GitHubIcon,b as GitLabIcon,f as GiteeIcon,r as IconBase,w as LoadingIcon,F as Message,q as Popup,$ as RenderDefault,y as SourceIcon,P as checkIsChromeWebView,W as checkIsIOS,U as checkIsMacOS,G as checkIsMobile,R as checkIsSafari,j as checkIsSafariMobile,O as checkIsWindows,D as checkIsiPad,V as checkIsiPhone,_ as generateIndexFromHash,Z as getAuthor,ee as getCategory,x as getHash,M as getSize,d as getStringArray,te as getTag,Y as isActiveLink,m as normalizePath,Q as openPopupWindow,J as resolveRepoLink,K as resolveRepoType,B as useIsMobile,k as useSupportUserAgent};
//# sourceMappingURL=index.js.map
{
"name": "vuepress-shared",
"version": "2.0.0-rc.25",
"version": "2.0.0-rc.26",
"description": "Shared files for vuepress2",

@@ -41,4 +41,4 @@ "keywords": [

"dependencies": {
"@vuepress/helper": "2.0.0-rc.15",
"@vueuse/core": "^10.7.2",
"@vuepress/helper": "2.0.0-rc.17",
"@vueuse/core": "^10.8.0",
"cheerio": "1.0.0-rc.12",

@@ -59,3 +59,3 @@ "dayjs": "^1.11.10",

"ora": "8.0.1",
"vite": "5.1.3"
"vite": "5.1.4"
},

@@ -62,0 +62,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc