vuepress-plugin-components
Advanced tools
Comparing version 2.0.0-rc.2 to 2.0.0-rc.3
@@ -1,2 +0,2 @@ | ||
import{defineComponent as p,shallowRef as n,computed as s,onMounted as u,onBeforeMount as d,h as o}from"vue";import"plyr/dist/plyr.css";import"../styles/audio-player.scss";import{g as e}from"../getLink-E24rbGij.js";import"@vuepress/client";import"@vuepress/shared";var y=p({name:"AudioPlayer",props:{options:{type:Object,default:()=>({})},src:{type:String,required:!0},title:{type:String,default:""},type:{type:String,default:""},poster:{type:String,default:""},width:{type:[String,Number],default:"100%"},loop:Boolean},setup(t){let r=null;const i=n(),l=s(()=>({hideYouTubeDOMError:!0,...t.options}));return u(async()=>{const{default:a}=await import("plyr");r=new a(i.value,l.value)}),d(()=>{try{r?.destroy()}catch{}}),()=>o("div",{class:"vp-audio-player",style:{width:t.width}},[o("a",{class:"sr-only",href:e(t.src),innerHTML:t.title||"An audio"}),t.poster?o("img",{class:"vp-audio-player-poster",src:e(t.poster),loading:"lazy","no-view":""}):null,o("div",{class:"vp-audio-player-info"},[t.title?o("div",{class:"vp-audio-player-title",innerHTML:t.title}):null,o("audio",{ref:i,crossorigin:"anonymous",preload:"metadata",controls:"",...t.loop?{loop:""}:{}},o("source",{src:e(t.src),type:t.type}))])])}});export{y as default}; | ||
import{defineComponent as a,shallowRef as p,onMounted as n,onBeforeMount as s,h as o}from"vue";import"plyr/dist/plyr.css";import"../styles/audio-player.scss";import{g as r}from"../getLink-E24rbGij.js";import"@vuepress/client";import"@vuepress/shared";var d=a({name:"AudioPlayer",props:{options:{type:Object,default:()=>({})},src:{type:String,required:!0},title:{type:String,default:""},type:{type:String,default:""},poster:{type:String,default:""},width:{type:[String,Number],default:"100%"},loop:Boolean},setup(t){let e=null;const i=p();return n(async()=>{const{default:l}=await import("plyr");e=new l(i.value,{hideYouTubeDOMError:!0,...t.options})}),s(()=>{try{e?.destroy()}catch{}}),()=>o("div",{class:"vp-audio-player",style:{width:t.width}},[o("a",{class:"sr-only",href:r(t.src),innerHTML:t.title||"An audio"}),t.poster?o("img",{class:"vp-audio-player-poster",src:r(t.poster),loading:"lazy","no-view":""}):null,o("div",{class:"vp-audio-player-info"},[t.title?o("div",{class:"vp-audio-player-title",innerHTML:t.title}):null,o("audio",{ref:i,crossorigin:"anonymous",preload:"metadata",controls:"",...t.loop?{loop:""}:{}},o("source",{src:r(t.src),type:t.type}))])])}});export{d as default}; | ||
//# sourceMappingURL=AudioPlayer.js.map |
@@ -183,4 +183,5 @@ import * as vue from 'vue'; | ||
width: string | number; | ||
autoplay: boolean; | ||
ratio: string | number; | ||
time: string | number; | ||
autoplay: boolean; | ||
height: string | number; | ||
@@ -191,5 +192,4 @@ bvid: string; | ||
page: string | number; | ||
ratio: string | number; | ||
}, {}>; | ||
export { _default as default }; |
@@ -155,6 +155,6 @@ import * as vue from 'vue'; | ||
width: string | number; | ||
ratio: string | number; | ||
height: string | number; | ||
noToolbar: boolean; | ||
page: string | number; | ||
ratio: string | number; | ||
zoom: string | number; | ||
@@ -161,0 +161,0 @@ }, {}>; |
@@ -182,6 +182,6 @@ import * as vue from 'vue'; | ||
width: string | number; | ||
ratio: string | number; | ||
link: string; | ||
text: string; | ||
height: string | number; | ||
ratio: string | number; | ||
theme: string; | ||
@@ -188,0 +188,0 @@ user: string; |
@@ -286,2 +286,3 @@ import * as vue from 'vue'; | ||
width: string | number; | ||
ratio: string | number; | ||
embed: boolean; | ||
@@ -292,3 +293,2 @@ text: string; | ||
height: string | number; | ||
ratio: string | number; | ||
theme: UiThemeOption; | ||
@@ -295,0 +295,0 @@ file: string | string[]; |
@@ -129,8 +129,8 @@ import * as vue from 'vue'; | ||
width: string | number; | ||
autoplay: boolean; | ||
ratio: string | number; | ||
time: string | number; | ||
autoplay: boolean; | ||
height: string | number; | ||
ratio: string | number; | ||
}, {}>; | ||
export { _default as default }; |
@@ -310,7 +310,7 @@ import * as vue from 'vue'; | ||
loop: boolean; | ||
autoplay: boolean; | ||
ratio: string | number; | ||
id: string; | ||
autoplay: boolean; | ||
height: string | number; | ||
end: string | number; | ||
ratio: string | number; | ||
showCc: boolean; | ||
@@ -317,0 +317,0 @@ showAnnotations: boolean; |
@@ -1,5 +0,54 @@ | ||
import { RequiredLocaleConfig } from 'vuepress-shared'; | ||
import { Option } from 'artplayer/types/option.js'; | ||
import { LocaleConfig, PluginFunction } from '@vuepress/core'; | ||
import { RequiredLocaleConfig } from 'vuepress-shared'; | ||
interface BackToTopOptions { | ||
/** | ||
* Scroll threshold distance to display back to top button (in pixels) | ||
* | ||
* 滚动距离阈值,用于显示返回顶部按钮 (单位: 像素) | ||
* | ||
* @default 100 | ||
*/ | ||
threshold?: number; | ||
/** | ||
* Whether display scroll progress | ||
* | ||
* 是否显示滚动进度 | ||
* | ||
* @default true | ||
*/ | ||
progress?: boolean; | ||
} | ||
type Link = `/${string}` | `//${string}` | `http://${string}` | `https://${string}`; | ||
type BuiltInFontIcon = "iconify" | "iconfont" | "fontawesome" | "fontawesome-with-brands"; | ||
type FontIconAssets = BuiltInFontIcon | Link | (BuiltInFontIcon | Link)[]; | ||
interface FontIconOptions { | ||
/** | ||
* Link of font icon asset | ||
* | ||
* 字体图标资源链接 | ||
* | ||
* @description `"iconify"`, `"iconfont"`, `"fontawesome"` and `"fontawesome-with-brands"` keywords are supported | ||
*/ | ||
assets?: FontIconAssets; | ||
/** | ||
* Class prefix of font icon | ||
* | ||
* 字体图标的 Class 前缀 | ||
* | ||
* @default "" | ||
*/ | ||
prefix?: string; | ||
} | ||
type AvailableComponent = "ArtPlayer" | ||
/** @deprecated */ | ||
| "AudioPlayer" | "Badge" | "BiliBili" | "CodePen" | "FontIcon" | "PDF" | "Replit" | "Share" | "StackBlitz" | "SiteInfo" | "VPBanner" | "VPCard" | "VidStack" | ||
/** @deprecated */ | ||
| "VideoPlayer" | "XiGua" | ||
/** @deprecated */ | ||
| "YouTube"; | ||
type ArtPlayerOptions = Partial<Omit<Option, "container" | "url" | "type" | "customType" | "plugins" | "contextmenu" | "controls" | "layers" | "settings">>; | ||
@@ -147,3 +196,3 @@ | ||
type ShareAction = "open" | "navigate" | "popup" | "qrcode"; | ||
type BuiltInShareService = "buffer" | "douban" | "email" | "evernote" | "facebook" | "flipboard" | "line" | "qq" | "qrcode" | "reddit" | "skype" | "telegram" | "twitter" | "whatsapp" | "weibo"; | ||
type BuiltInShareService = "buffer" | "douban" | "email" | "evernote" | "facebook" | "flipboard" | "line" | "linkedin" | "messenger" | "pinterest" | "qq" | "qrcode" | "qzone" | "reddit" | "skype" | "sms" | "snapchat" | "telegram" | "tumblr" | "twitter" | "vk" | "weibo" | "whatsapp" | "wordpress"; | ||
type ShareServiceVariableName = "title" | "description" | "url" | "excerpt" | "summary" | "tags" | "cover" | "image" | "twitterUserName"; | ||
@@ -228,57 +277,2 @@ interface ShareServiceConfig { | ||
declare const backToTopLocales: BackToTopLocaleConfig; | ||
declare const pdfLocaleConfig: PDFLocaleConfig; | ||
declare const siteInfoLocaleConfig: SiteInfoLocaleConfig; | ||
interface BackToTopOptions { | ||
/** | ||
* Scroll threshold distance to display back to top button (in pixels) | ||
* | ||
* 滚动距离阈值,用于显示返回顶部按钮 (单位: 像素) | ||
* | ||
* @default 100 | ||
*/ | ||
threshold?: number; | ||
/** | ||
* Whether display scroll progress | ||
* | ||
* 是否显示滚动进度 | ||
* | ||
* @default true | ||
*/ | ||
progress?: boolean; | ||
} | ||
type Link = `/${string}` | `//${string}` | `http://${string}` | `https://${string}`; | ||
type BuiltInFontIcon = "iconify" | "iconfont" | "fontawesome" | "fontawesome-with-brands"; | ||
type FontIconAssets = BuiltInFontIcon | Link | (BuiltInFontIcon | Link)[]; | ||
interface FontIconOptions { | ||
/** | ||
* Link of font icon asset | ||
* | ||
* 字体图标资源链接 | ||
* | ||
* @description `"iconify"`, `"iconfont"`, `"fontawesome"` and `"fontawesome-with-brands"` keywords are supported | ||
*/ | ||
assets?: FontIconAssets; | ||
/** | ||
* Class prefix of font icon | ||
* | ||
* 字体图标的 Class 前缀 | ||
* | ||
* @default "" | ||
*/ | ||
prefix?: string; | ||
} | ||
type AvailableComponent = "ArtPlayer" | ||
/** @deprecated */ | ||
| "AudioPlayer" | "Badge" | "BiliBili" | "CodePen" | "FontIcon" | "PDF" | "Replit" | "Share" | "StackBlitz" | "SiteInfo" | "VPBanner" | "VPCard" | "VidStack" | ||
/** @deprecated */ | ||
| "VideoPlayer" | "XiGua" | ||
/** @deprecated */ | ||
| "YouTube"; | ||
interface ShareOptions { | ||
@@ -422,4 +416,13 @@ /** | ||
declare const SHARE_CONFIG: Record<BuiltInShareService, ShareServiceConfig>; | ||
declare const AVAILABLE_SERVICES: BuiltInShareService[]; | ||
declare const backToTopLocales: BackToTopLocaleConfig; | ||
declare const pdfLocaleConfig: PDFLocaleConfig; | ||
declare const siteInfoLocaleConfig: SiteInfoLocaleConfig; | ||
declare const componentsPlugin: (options: ComponentOptions, legacy?: boolean) => PluginFunction; | ||
export { type ArtPlayerOptions, type AvailableComponent, type BackToTopLocaleConfig, type BackToTopLocaleData, type BackToTopOptions, type BuiltInFontIcon, type BuiltInShareService, type CatalogLocaleConfig, type CatalogLocaleData, type ComponentOptions, type FontIconAssets, type FontIconOptions, type NoticeActionOption, type NoticeClientOptions, type NoticeItemOptions, type NoticeOptions, type PDFLocaleConfig, type PDFLocaleData, type ShareAction, type ShareService, type ShareServiceConfig, type ShareServiceOptions, type ShareServiceVariableName, type SiteInfoLocaleConfig, type SiteInfoLocaleData, backToTopLocales, componentsPlugin, pdfLocaleConfig, siteInfoLocaleConfig }; | ||
export { AVAILABLE_SERVICES, type ArtPlayerOptions, type AvailableComponent, type BackToTopLocaleConfig, type BackToTopLocaleData, type BackToTopOptions, type BuiltInFontIcon, type BuiltInShareService, type CatalogLocaleConfig, type CatalogLocaleData, type ComponentOptions, type FontIconAssets, type FontIconOptions, type NoticeActionOption, type NoticeClientOptions, type NoticeItemOptions, type NoticeOptions, type PDFLocaleConfig, type PDFLocaleData, SHARE_CONFIG, type ShareAction, type ShareService, type ShareServiceConfig, type ShareServiceOptions, type ShareServiceVariableName, type SiteInfoLocaleConfig, type SiteInfoLocaleData, backToTopLocales, componentsPlugin, pdfLocaleConfig, siteInfoLocaleConfig }; |
@@ -1,2 +0,2 @@ | ||
import{useSassPalettePlugin as B}from"vuepress-plugin-sass-palette";import{ensureEndingSlash as I,Logger as M,checkInstalled as H,createConverter as N,isPlainObject as h,isNumber as C,isArray as d,isString as b,isLinkHttp as q,isAbsoluteUrl as R,endsWith as S,keys as K,getLocales as g,getRealPath as P,checkVersion as G,addCustomElement as J,addViteSsrNoExternal as U}from"vuepress-shared/node";import{getDirname as X,path as Y,colors as r}from"@vuepress/utils";const x={"/en/":{backToTop:"Back to top"},"/zh/":{backToTop:"返回顶部"},"/zh-tw/":{backToTop:"返回頂部"},"/de/":{backToTop:"Zurück nach oben."},"/de-at/":{backToTop:"Zurück nach oben."},"/vi/":{backToTop:"Trở lại đầu trang"},"/uk/":{backToTop:"Повернутися до початку"},"/ru/":{backToTop:"Вернуться к началу"},"/br/":{backToTop:"Volta ao topo"},"/pl/":{backToTop:"Wróć na górę"},"/sk/":{backToTop:"Back to top"},"/fr/":{backToTop:"Retour en haut"},"/es/":{backToTop:"Volver arriba"},"/ja/":{backToTop:"このページのトップへ戻る"},"/tr/":{backToTop:"En başa dön"},"/ko/":{backToTop:"맨 위로"},"/fi/":{backToTop:"Takaisin ylös"},"/hu/":{backToTop:"Vissza a tetejére"},"/id/":{backToTop:"Kembali ke atas"},"/nl/":{backToTop:"Ga terug naar boven"}},L={"/en/":{hint:"<p>This browser does not support embedding PDFs. Please download the PDF to view it: <a href='[url]' target='_blank'>Download PDF</a></p>"},"/zh/":{hint:"<p>此浏览器不支持嵌入式 PDF。请下载 PDF 查看:<a href='[url]' target='_blank'>下载 PDF</a></p>"},"/zh-tw/":{hint:"<p>此瀏覽器不支援嵌入式 PDF。請下載 PDF 查看:<a href='[url]' target='_blank'>下載 PDF</a></p>"},"/de/":{hint:"<p>Dieser Browser unterstützt das Einbetten von PDFs nicht. Laden Sie die PDF herunter, um sie anzuzeigen: <a href='[url]' target='_blank'>PDF herunterladen</a></p>"},"/de-at/":{hint:"<p>Dieser Browser unterstützt das Einbetten von PDFs nicht. Laden Sie die PDF herunter, um sie anzuzeigen: <a href='[url]' target='_blank'>PDF herunterladen</a></p>"},"/vi/":{hint:"<p>Trình duyệt này không hỗ trợ nhúng tệp PDF. Vui lòng tải xuống tệp PDF để xem: <a href='[url]' target='_blank'>Tải xuống PDF</a></p>"},"/uk/":{hint:"<p>Цей браузер не підтримує вбудовування PDF. Будь ласка, завантажте PDF, щоб переглянути його: <a href='[url]' target='_blank'>Завантажити PDF</a></p>"},"/ru/":{hint:"<p>Этот браузер не поддерживает встроенные PDF. Пожалуйста, загрузите PDF, чтобы просмотреть его: <a href='[url]' target='_blank'>Загрузить PDF</a></p>"},"/br/":{hint:"<p>Este navegador não suporta incorporação de PDF. Faça o download do PDF para visualizá-lo: <a href='[url]' target='_blank'>Baixar PDF</a></p>"},"/pl/":{hint:"<p>Ten przeglądarka nie obsługuje osadzania plików PDF. Pobierz plik PDF, aby go wyświetlić: <a href='[url]' target='_blank'>Pobierz PDF</a></p>"},"/sk/":{hint:"<p>Tento prehliadač nepodporuje vkladanie PDF. Stiahnite si PDF, aby ste ho mohli zobraziť: <a href='[url]' target='_blank'>Stiahnuť PDF</a></p>"},"/fr/":{hint:"<p>Ce navigateur ne prend pas en charge l'intégration de fichiers PDF. Téléchargez le PDF pour le visualiser: <a href='[url]' target='_blank'>Télécharger le PDF</a></p>"},"/es/":{hint:"<p>Este navegador no admite la incorporación de archivos PDF. Descargue el PDF para verlo: <a href='[url]' target='_blank'>Descargar PDF</a></p>"},"/ja/":{hint:"<p>このブラウザは PDF の埋め込みをサポートしていません。 PDF をダウンロードして表示してください: <a href='[url]' target='_blank'>PDF をダウンロード</a></p>"},"/tr/":{hint:"<p>Bu tarayıcı PDF'leri gömme özelliğini desteklemiyor. Lütfen PDF'i görüntülemek için indirin: <a href='[url]' target='_blank'>PDF'i İndir</a></p>"},"/ko/":{hint:"<p>이 브라우저는 PDF를 포함할 수 없습니다. PDF를 보려면 다운로드하십시오: <a href='[url]' target='_blank'>PDF 다운로드</a></p>"},"/fi/":{hint:"<p>Tämä selain ei tue PDF-tiedostojen upottamista. Lataa PDF-tiedosto nähdäksesi sen: <a href='[url]' target='_blank'>Lataa PDF</a></p>"},"/hu/":{hint:"<p>Ez a böngésző nem támogatja a PDF beágyazását. Kérlek töltsd le a PDF-et megtekintéshez: <a href='[url]' target='_blank'>PDF letöltése</a></p>"},"/id/":{hint:"<p>Browser ini tidak mendukung penyematan PDF. Silakan unduh PDF untuk melihatnya: <a href='[url]' target='_blank'>Unduh PDF</a></p>"},"/nl/":{hint:"<p>Deze browser ondersteunt geen embedded PDFs. Gelieve de PDF te downloaden om ze te bekjken: <a href='[url]' target='_blank'>Download PDF</a></p>"}},_={"/en/":{source:"Source"},"/zh/":{source:"源代码"},"/zh-tw/":{source:"源代碼"},"/de-at/":{source:"Quellcode"},"/vi/":{source:"Mã nguồn"},"/uk/":{source:"Джерело"},"/ru/":{source:"Исходный код"},"/br/":{source:"Código fonte"},"/pl/":{source:"Źródło"},"/sk/":{source:"Zdrojový kód"},"/fr/":{source:"Code source"},"/es/":{source:"Código fuente"},"/ja/":{source:"ソースコード"},"/tr/":{source:"Kaynak kodu"},"/ko/":{source:"소스 코드"},"/fi/":{source:"Lähdekoodi"},"/hu/":{source:"Forrás"},"/id/":{source:"Sumber"},"/nl/":{source:"Bron"}},W=X(import.meta.url),Z=["ArtPlayer","AudioPlayer","Badge","BiliBili","CodePen","FontIcon","PDF","Replit","Share","SiteInfo","StackBlitz","VPBanner","VPCard","VidStack","VideoPlayer","XiGua","YouTube"],V={ArtPlayer:["artplayer"],AudioPlayer:["plyr"],VidStack:["vidstack"],VideoPlayer:["plyr"]},m=I(Y.resolve(W,"../client")),D="vuepress-plugin-components",c=new M(D),f=(e,t=!0)=>{const n=H(e,import.meta.url);return t&&!n&&c.error(`Package ${e} is not installed, please install it manually!`),n},Q=e=>{const{deprecatedLogger:t,droppedLogger:n}=N("components");t({options:e,old:"iconAssets",new:"componentOptions.fontIcon.assets"}),t({options:e,old:"iconPrefix",new:"componentOptions.fontIcon.prefix"}),t({options:e,old:"backToTop",new:"rootComponents.backToTop"}),t({options:e,old:"backToTopLocales",new:"locales.backToTop"}),n({options:e,old:"notice",new:"rootComponents.notice"}),n({options:e,old:"addThis"}),h(e.rootComponents)&&(n({options:e.rootComponents,old:"addThis"}),C(e.rootComponents.backToTop)&&(c.error(`"${r.magenta("rootComponents.backToTop")}" no longer support number, please check the docs at https://plugin-components.vuejs.press/guide/backtotop.html.`),e.rootComponents.backToTop={threshold:e.rootComponents.backToTop}),h(e.rootComponents.notice)&&(c.error(`"${r.magenta("rootComponents.notice")}" no longer support object config, please check the docs at https://plugin-components.vuejs.press/guide/notice.html.`),delete e.rootComponents.notice)),e.components?.includes("Catalog")&&c.warn(`${r.cyan("Catalog")} component is deprecated, please use ${r.cyan("AutoCatalog")} component with ${r.magenta("vuepress-plugin-auto-catalog")} instead.`),["VideoPlayer","AudioPlayer","YouTube"].forEach(o=>{e.components?.includes(o)&&c.warn(`${r.cyan(o)} component is deprecated, please use ${r.cyan("VidStack")} component instead.`)})},e1={"/en/":{title:"Catalog"},"/zh/":{title:"目录"},"/zh-tw/":{title:"目錄"},"/de/":{title:"Katalog"},"/de-at/":{title:"Katalog"},"/vi/":{title:"Danh mục"},"/uk/":{title:"Каталог"},"/ru/":{title:"Каталог"},"/br/":{title:"Catálogo"},"/pl/":{title:"Katalog"},"/sk/":{title:"Katalóg"},"/fr/":{title:"Catalogue"},"/es/":{title:"Catálogo"},"/ja/":{title:"カタログ"},"/tr/":{title:"Katalog"},"/ko/":{title:"목차"},"/fi/":{title:"Luettelo"},"/hu/":{title:"Katalógus"},"/id/":{title:"Katalog"},"/nl/":{title:"Catalogus"}},t1="fas fa-",o1="iconfont icon-",n1=e=>/^(?:https:)?\/\/kit\.fontawesome\.com\//.test(e)||/\/iconify-icon(?:[@/]|$)/.test(e),A=e=>/^(?:https:)?\/\/kit\.fontawesome\.com\//.test(e)||e.includes("/@fortawesome/fontawesome-free/"),E=e=>/^(?:https:)?\/\/at\.alicdn\.com\/t\//.test(e),a1=e=>d(e)?e.every(A):e==="fontawesome"||e==="fontawesome-with-brands"||A(e),s1=e=>d(e)?e.every(E):e==="iconfont"||E(e),r1=e=>b(e)&&(n1(e)||e==="iconify"),c1=(e,t)=>{if(e){if(a1(e))return{type:"fontawesome",prefix:t??t1};if(s1(e))return{type:"iconfont",prefix:t??o1};if(r1(e))return{type:"iconify",prefix:t??""}}return{type:"custom",prefix:t??""}},O=e=>e.map(t=>({type:"script",content:`useScriptTag( | ||
import{useSassPalettePlugin as $}from"vuepress-plugin-sass-palette";import{ensureEndingSlash as H,Logger as j,checkInstalled as I,isArray as d,isString as b,isLinkHttp as q,isAbsoluteUrl as N,endsWith as C,keys as R,isPlainObject as h,createConverter as K,isNumber as x,getLocales as w,getRealPath as P,checkVersion as G,addCustomElement as J,addViteSsrNoExternal as U}from"vuepress-shared/node";import{getDirname as X,path as Y,colors as c}from"@vuepress/utils";const W=X(import.meta.url),Z=["ArtPlayer","AudioPlayer","Badge","BiliBili","CodePen","FontIcon","PDF","Replit","Share","SiteInfo","StackBlitz","VPBanner","VPCard","VidStack","VideoPlayer","XiGua","YouTube"],L={ArtPlayer:["artplayer"],AudioPlayer:["plyr"],VidStack:["vidstack"],VideoPlayer:["plyr"]},m=H(Y.resolve(W,"../client")),D="vuepress-plugin-components",r=new j(D),v=(e,t=!0)=>{const a=I(e,import.meta.url);return t&&!a&&r.error(`Package ${e} is not installed, please install it manually!`),a},Q="fas fa-",e1="iconfont icon-",t1=e=>/^(?:https:)?\/\/kit\.fontawesome\.com\//.test(e)||/\/iconify-icon(?:[@/]|$)/.test(e),S=e=>/^(?:https:)?\/\/kit\.fontawesome\.com\//.test(e)||e.includes("/@fortawesome/fontawesome-free/"),_=e=>/^(?:https:)?\/\/at\.alicdn\.com\/t\//.test(e),o1=e=>d(e)?e.every(S):e==="fontawesome"||e==="fontawesome-with-brands"||S(e),a1=e=>d(e)?e.every(_):e==="iconfont"||_(e),n1=e=>b(e)&&(t1(e)||e==="iconify"),s1=(e,t)=>{if(e){if(o1(e))return{type:"fontawesome",prefix:t??Q};if(a1(e))return{type:"iconfont",prefix:t??e1};if(n1(e))return{type:"iconify",prefix:t??""}}return{type:"custom",prefix:t??""}},A=e=>e.map(t=>({type:"script",content:`useScriptTag( | ||
\`https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/js/${t}.min.js\`, | ||
@@ -6,13 +6,13 @@ () => {}, | ||
); | ||
`})),i1=e=>{if(b(e)){if(e==="fontawesome")return O(["solid","fontawesome"]);if(e==="fontawesome-with-brands")return O(["brands","solid","fontawesome"]);if(e==="iconfont")return[{type:"style",content:' useStyleTag(`\\\n @import url("https://at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css");\n `);'}];if(e==="iconify")return[{type:"script",content:"useScriptTag(\n `https://cdn.jsdelivr.net/npm/iconify-icon@1`\n);"}];const t=q(e)||R(e)?e:`//${e}`;if(S(t,".css"))return[{type:"style",content:`useStyleTag(\`\\ | ||
`})),c1=e=>{if(b(e)){if(e==="fontawesome")return A(["solid","fontawesome"]);if(e==="fontawesome-with-brands")return A(["brands","solid","fontawesome"]);if(e==="iconfont")return[{type:"style",content:' useStyleTag(`\\\n @import url("https://at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css");\n `);'}];if(e==="iconify")return[{type:"script",content:"useScriptTag(\n `https://cdn.jsdelivr.net/npm/iconify-icon@1`\n);"}];const t=q(e)||N(e)?e:`//${e}`;if(C(t,".css"))return[{type:"style",content:`useStyleTag(\`\\ | ||
@import url("${t}"); | ||
\`);`}];if(S(t,".js"))return[{type:"script",content:`useScriptTag(\`${t}\`);`}];c.error(`Can not recognize icon link: "${e}"`)}return[]},l1=e=>(d(e)?e:[e]).map(t=>i1(t)).flat(),p1=e=>e.map(({key:t,...n})=>{if("match"in n){const o=n.match.toString();return{noticeKey:t,...n,match:o.slice(1,o.length-1)}}return{noticeKey:t,...n}}).sort((t,n)=>"match"in t?"match"in n?n.match.localeCompare(t.match):-1:"match"in n?1:(n.path||"").localeCompare(t.path||"")),h1={link:"https://bufferapp.com/add?text=[title]&url=[url]",color:"#333",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="m942.837 500.76-84.36-41.48a43.84 43.84 0 0 0-38.6-.12L531.2 598.919a43.8 43.8 0 0 1-38.4 0l-288.638-139.76a43.84 43.84 0 0 0-38.6.12l-84.399 41.48c-12.24 6-12.2 24.4.08 30.32L492.84 730.318c12.16 5.92 26.2 5.92 38.36 0l411.557-199.239c12.28-5.96 12.32-24.32.08-30.32zm0 239.998-84.36-41.48a43.84 43.84 0 0 0-38.6-.12L531.2 838.917a43.8 43.8 0 0 1-38.4 0l-288.638-139.76a43.84 43.84 0 0 0-38.6.12l-84.399 41.48c-12.24 6-12.2 24.4.08 30.32L492.84 970.316c12.16 5.92 26.2 5.92 38.36 0l411.557-199.239c12.28-5.96 12.32-24.32.08-30.32zM489.6 59.963 81.163 260.76c-12.24 6-12.2 24.4.08 30.32L492.84 490.319c12.16 5.92 26.16 5.92 38.32 0l411.597-199.238c12.28-5.96 12.32-24.32.08-30.32L534.44 59.963a50.68 50.68 0 0 0-44.84 0z"/></svg>'},m1={link:"https://shuo.douban.com/!service/share?href=[url]&name=[title]&text=[description|summary]&image=[cover|image]&starid=0&aid=0&style=11",color:"#00b51d",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M943.4 65.7H81.6c-8.8 0-16 7.1-16 16v63.8c0 8.8 7.1 16 16 16h861.7c8.8 0 16-7.1 16-16V81.6c0-8.8-7.1-15.9-15.9-15.9zm0 797.9h-233l83-207.5h70.2c8.8 0 16-7.1 16-16v-367c0-8.8-7.1-16-16-16H161.4c-8.8 0-16 7.1-16 16v367c0 8.8 7.1 16 16 16h504.3l-83 207.5H426.3L368.9 720c0-8.8-7.1-16-16-16h-95.7c-8.8 0-16 7.1-16 16l57.4 143.6h-217c-8.8 0-16 7.1-16 16v63.8c0 8.8 7.1 16 16 16h861.7c8.8 0 16-7.1 16-16v-63.8c0-8.9-7.1-16-15.9-16zM289.1 560.4V352.9h446.8v207.5H289.1z"/></svg>'},u1={link:"mailto:?subject=[title]&body=[url]%0D%0A%0D%0A[description|summary]",color:"#1384FF",action:"open",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M146.375 174.5C99.793 174.5 62 212.293 62 258.875c0 26.543 12.48 51.504 33.75 67.5l382.5 286.875c20.04 14.941 47.46 14.941 67.5 0l382.5-286.875c21.27-15.996 33.75-40.957 33.75-67.5 0-46.582-37.793-84.375-84.375-84.375h-731.25zM62 371.375V737c0 62.05 50.45 112.5 112.5 112.5h675c62.05 0 112.5-50.45 112.5-112.5V371.375L579.5 658.25a112.324 112.324 0 0 1-135 0L62 371.375z"/></svg>'},d1={link:"https://www.evernote.com/clip.action?url=[url]&title=[title]",color:"#3c599b",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M369.64 264.42c3.2 44.62-35.1 43.18-43.22 43.18-137.86 0-147.28-2-167.16 6.68-1.12.44-1.48 0-.74-.74L375.58 92.9c.76-.74 1.2-.44.76.74-8.7 19.98-6.7 30.18-6.7 170.78zm158 616c-29.36-74.16 26-153.86 105.04-153.24 34.98 0 45.2 46.42 15.9 62.84-12.38 6.6-49.9 3.48-50.28 38.4-.1 34.18 39.34 50 62.4 49.78a91.28 91.28 0 0 0 91.3-91.3v-.16c0-23.26-15.58-94.44-95.08-110.68-15.44-3.08-130-12.7-136.7-101.04C512.74 608.88 485.42 702 434 713.2c-17.48 3.88-139.36 15.28-225.84-73.54 0 0-37.14-30.46-56.46-115.9-6.76-31.5-18.56-79.4-22.28-124 0-36 22.28-60.9 50.14-64.4 162 0 180 4.64 202-15.6 19.64-18.48 15.6-31 15.6-205.56 2-16.6 15.58-61.62 106.82-48.28 12 1.72 63.82 8.36 74.96 61.28l128.52 22.3c40.86 7.42 141.88 14 161.2 115.88 45.32 242.18 17.82 476.92 15.6 476.92C852.3 971.06 662.12 960 662.12 960c-37.9-.46-108.5-18.8-134.54-79.66zm161.88-409.68c-2 3.84-4.4 12 1.7 14 28.18 9.86 79.5 13.68 91.76 11.06 6.22-.5 6.1-8.86 4.96-13.3-7.06-43.7-81.66-53-98.48-11.84z"/></svg>',icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><circle cx="512" cy="512" r="512" fill="#14cc45"/><path fill="#595757" d="M347.671 193.259v87.51h-87.51z"/><path fill="#595757" d="M788.047 323.645s3.65-77.491-73.84-103.02c0 0-89.479-12.867-151.41-11.91 0 0-8.595-53.23-103.33-53.23 0 0-89.556-1.244-89.892 70.526v61.671s2.848 14.991-27.833 14.991h-81.581s-34.28 5.282-34.28 72.934c0 0 3.133 120.082 41.322 200.24 0 0 9.398 34.667 58.228 46.577 0 0 95.822 25.477 123.991 21.722 0 0 58.228 22.137 62.008-111.874 0 0 3.755-19.935 6.266 11.392 0 0-1.89 68.948 57.607 72.702 0 0 45.723 12.557 73.892 10.045 0 0 37.568 2.15 37.568 64.158 0 0 13.152 71.665-34.435 71.665h-65.763s-18.149 4.428-18.149-21.877c0 0-4.997-21.878 26.305-21.878h15.534v-43.756h-43.082s-66.332-6.317-66.332 50.047v75.135s9.347 49.866 66.332 49.866h121.273s48.441.44 76.61-90.359c0-.078 48.52-182.323 22.991-435.767zM625.272 486.523c0-21.877 18.02-51.16 39.432-51.16s36.48 36.118 36.48 58.022c-28.79-7.897-45.827-9.606-75.912-6.862z"/></svg>'},g1={link:"https://www.facebook.com/sharer/sharer.php?u=[url]&title=[title]&description=[description]"e=[summary]&hashtag=[tags]",color:"#3c599b",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M960 113.4v797c0 27.4-22.2 49.4-49.4 49.4H682.2V613h116.4L816 477.8H682v-86.4c0-39.2 10.8-65.8 67-65.8h71.6v-121c-12.4-1.6-54.8-5.4-104.4-5.4-103.2 0-174 63-174 178.8v99.8H425.4V613h116.8v347H113.4C86.2 960 64 937.8 64 910.6V113.4C64 86.2 86.2 64 113.4 64h797c27.4 0 49.6 22.2 49.6 49.4z"/></svg>',icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path fill="#537bbc" d="M512.298 1021.22c281.23 0 509.235-227.973 509.235-509.22 0-281.218-228.005-509.22-509.235-509.22C231.066 2.78 3.078 230.782 3.078 512c0 281.247 227.986 509.22 509.22 509.22"/><path fill="#fff" d="M353.357 400.378h68.151v-66.235c0-29.206.737-74.247 21.952-102.142 22.348-29.542 53.026-49.622 105.794-49.622 85.976 0 122.18 12.263 122.18 12.263L654.4 295.61s-28.407-8.213-54.903-8.213c-26.512 0-50.243 9.5-50.243 35.995v76.988h108.687L650.352 499H549.254v342.602H421.508V499h-68.15v-98.622z"/></svg>'},f1={link:"https://share.flipboard.com/bookmarklet/popout?v=2&url=[url]&title=[title]",color:"#e12828",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M90.125 90.125h270.703v843.75H90.125V90.125zm298.828 298.828h274.219v274.219H388.953V388.953zm0-298.828h544.922v270.703H388.953V90.125z"/></svg>',icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><circle cx="512" cy="512" r="512" fill="#e12828"/><path fill="#fff" d="M263.487 261.893H445.92V809.17H263.487V261.893z"/><path fill="#fce9e9" d="M445.92 261.893h364.842v182.435H445.92V261.893z"/><path fill="#f6bebe" d="M445.92 444.328h182.435v182.435H445.92V444.328z"/></svg>'},v1={link:"https://line.me/R/msg/text/?[title]%0D%0A[url]%0D%0A[description|summary]",color:"#00b902",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M806.6 426.52a25.24 25.24 0 0 1 0 50.44h-70.2v45h70.2a25.2 25.2 0 1 1 0 50.36h-95.44a25.24 25.24 0 0 1-25.08-25.16V356.32c0-13.8 11.28-25.2 25.2-25.2h95.44a25.2 25.2 0 0 1-.12 50.4h-70.2v45h70.2zM652.4 547.16a25.2 25.2 0 0 1-25.24 25.08 24.72 24.72 0 0 1-20.4-10l-97.72-132.68v117.6a25.2 25.2 0 0 1-50.28 0V356.32a25.08 25.08 0 0 1 24.96-25.12c7.8 0 15 4.16 19.8 10.16L602 474.56V356.32c0-13.8 11.28-25.2 25.2-25.2 13.8 0 25.2 11.4 25.2 25.2v190.84zm-229.64 0a25.28 25.28 0 0 1-25.24 25.16 25.24 25.24 0 0 1-25.08-25.16V356.32c0-13.8 11.28-25.2 25.2-25.2 13.84 0 25.12 11.4 25.12 25.2v190.84zm-98.64 25.16h-95.44a25.36 25.36 0 0 1-25.2-25.16V356.32c0-13.8 11.4-25.2 25.2-25.2 13.92 0 25.2 11.4 25.2 25.2v165.64h70.24a25.2 25.2 0 0 1 0 50.36M992 444.56c0-214.84-215.4-389.68-480-389.68S32 229.72 32 444.56C32 637 202.8 798.24 433.4 828.88c15.64 3.28 36.92 10.32 42.32 23.6 4.8 12.04 3.16 30.64 1.52 43.2l-6.56 40.8c-1.8 12.04-9.6 47.44 41.96 25.8 51.64-21.56 276.64-163.12 377.44-279C959.04 607.72 992 530.32 992 444.56"/></svg>'},w1={link:'https://connect.qq.com/widget/shareqq/index.html?url=[url]&title=[title]&source=[title]&desc=[description]&pics=[cover]&summary="[summary]"',color:"#5eaade",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M867.897 627.143c-18.205-58.482-39.14-107.634-71.339-188.075 5.006-211.285-82.83-382.18-285.127-382.18-204.572 0-290.475 174.308-285.013 382.18-32.313 80.555-53.134 129.366-71.339 188.075-38.684 124.587-26.169 176.128-16.611 177.266 20.48 2.503 79.758-93.753 79.758-93.753 0 55.751 28.672 128.455 90.794 180.907-30.037 9.216-97.507 34.02-81.464 61.212 12.97 21.96 223.232 13.995 283.875 7.168 60.644 6.827 270.905 14.791 283.876-7.168 16.042-27.079-51.542-51.996-81.465-61.212 62.122-52.566 90.794-125.27 90.794-180.907 0 0 59.279 96.256 79.759 93.753 9.67-1.252 22.186-52.793-16.498-177.266z"/></svg>'},k1={action:"qrcode",link:"[url]",color:"#999",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M409.6 68H136.533c-37.5 0-68 31-68 68v273.6c0 37.547 31 68 68 68H409.6c37.547 0 68-31 68-68V136.533c0-37.5-31-68-68-68zm-68 256c0 9-8 17-17 17H222.2c-9 0-17-8-17-17V221.6c0-9 8-17 17-17h102.4c9 0 17 8 17 17V324zM887.734 68H614.4c-37.547 0-68 31-68 68v273.6c0 37.547 31 68 68 68h273c37.5 0 68-31 68-68V136.533c0-37.5-31-68-68-68zm-68 256c0 9-8 17-17 17h-102.4c-9 0-17-8-17-17V221.6c0-9 8-17 17-17h102.4c9 0 17 8 17 17V324zM409.6 546.133H136.533c-37.5 0-68 31-68 68v273c0 37.5 31 68 68 68H409.6c37.547 0 68-31 68-68V614.4c0-37.547-31-68-68-68zm-68 256c0 9-8 17-17 17H222.2c-9 0-17-8-17-17v-102.4c0-9 8-17 17-17h102.4c9 0 17 8 17 17v102.4zm580-86.4H785V768c0 9.5-8 17-17 17h-52v137.6c0 18.8 15 34 34.134 34.133H921.6c18.8 0 34.133-15 34.133-34.133V749.8c0-18.774-15-34.134-34.133-34.134zm-204.8-137.6c0-18.8-15-34.133-34.133-34.133H579.2c-18.8 0-34 15-34 34.133v104.534c0 18.8 15 34 34 34.133h103.467c18.8 0 34.133-15 34.133-34.133V578.133zm-85.333 275.2H563.2c-9.5 0-17 8-17 17v68c0 9.5 8 17 17 17h68c9.5 0 17-8 17-17V870.4c0-9.5-8-17-17-17zm307.2-307.2H870.4c-9.5 0-17 8-17 17v68c0 9.5 8 17 17 17h68c9.5 0 17-8 17-17V563.2c0-9.5-8-17-17-17z"/></svg>'},T1={link:"https://www.reddit.com/submit?title=[title]&url=[url]",color:"#ff4501",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M967.111 531.911a114 114 0 0 0-114-114 111.957 111.957 0 0 0-68.266 24.121A518.827 518.827 0 0 0 554.103 372.4l28.217-161.564a10.923 10.923 0 0 1 10.923-9.558h3.186l142.905 43.691a91 91 0 1 0 19.114-65.536l-143.815-41.87a91 91 0 0 0-22.3-3.186 79.644 79.644 0 0 0-78.28 65.991L484.926 372.4a524.288 524.288 0 0 0-246.215 69.632 111.957 111.957 0 0 0-68.266-24.12 113.323 113.323 0 0 0-69 205.71 176.583 176.583 0 0 0 0 21.845c0 150.642 182.044 273.067 409.6 273.067S921.6 796.33 921.6 645.689a176.583 176.583 0 0 0 0-21.845 114 114 0 0 0 45.511-91.933zm-682.667 45.511a69 69 0 1 1 69 69 69 69 0 0 1-69-69zm373.647 202.07a23.21 23.21 0 0 1-11.378 14.563 286.265 286.265 0 0 1-269.426 0 23.21 23.21 0 0 1-11.378-14.563 23.666 23.666 0 0 1 3.641-18.205l13.198-18.66a22.3 22.3 0 0 1 29.128-5.916 230.741 230.741 0 0 0 200.248 0 22.3 22.3 0 0 1 29.128 7.282l13.198 18.66a23.666 23.666 0 0 1 3.64 16.839zm13.198-133.803a69 69 0 1 1 69-69 69 69 0 0 1-69 69z"/></svg>'},b1={link:"https://web.skype.com/share?url=[title]%0D%0A[url]%0D%0A[description|summary]",color:"#00aff0",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M743.429 607.429q0-28.572-11.143-52.286T704.57 516t-41.714-28-47.143-19.429-50-13.142l-59.428-13.715q-17.143-4-25.143-6t-20-6.571T444 420t-9.429-12-4.285-17.143q0-44 82.285-44 24.572 0 44 6.857T587.43 370t21.714 19.143T632 405.714t27.429 6.857q26.857 0 43.142-18.285t16.286-44q0-31.429-32-56.857t-81.143-38.572-104-13.143q-38.857 0-75.428 8.857T358 277.43t-50.857 49.714T288 400.57q0 34.858 10.857 60.858t32 43.142 45.714 27.715 58.858 18.571l83.428 20.572q51.429 12.571 64 20.571 18.286 11.429 18.286 34.286 0 22.285-22.857 36.857t-60 14.571q-29.143 0-52.286-9.143t-37.143-22-26-25.714-26.286-22-30.857-9.143q-28.571 0-43.143 17.143T288 649.714q0 52.572 69.714 90T524 777.143q41.714 0 80-10.572T674 736t50.571-53.429 18.858-75.142zm207.428 124q0 90.857-64.286 155.142T731.43 950.857q-74.286 0-133.715-45.714-44 9.143-85.714 9.143-81.714 0-156.286-31.715t-128.571-85.714-85.714-128.571T109.714 512q0-41.714 9.143-85.714-45.714-59.429-45.714-133.715 0-90.857 64.286-155.142T292.57 73.143q74.286 0 133.715 45.714 44-9.143 85.714-9.143 81.714 0 156.286 31.715t128.571 85.714 85.714 128.571T914.286 512q0 41.714-9.143 85.714 45.714 59.429 45.714 133.715z"/></svg>'},P1={link:"https://t.me/share/url?url=[url]&text=[title]%0D%0A[description|summary]",color:"#158cc7",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="m410.965 814.649 12.743-192.512L773.234 307.2c15.474-14.108-3.186-20.935-23.666-8.647L318.123 571.164 131.527 512c-40.05-11.378-40.505-39.14 9.102-59.164l726.813-280.349c33.223-15.019 65.08 8.192 52.338 59.165L795.99 814.649c-8.648 41.415-33.679 51.427-68.267 32.313L539.307 707.698l-90.567 87.836c-10.468 10.468-19.115 19.115-37.775 19.115z"/></svg>'},D1={link:"https://twitter.com/intent/tweet?text=[title]&url=[url]&hashtags=[tags][title][twitter-user]",color:"#3397db",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M921.177 283.063c-25.031 23.062-35.437 34.875-35.437 34.875s9 179.718-85.22 318.093-216 221.344-392.905 239.063c-176.907 17.718-292.22-54.282-292.22-54.282s77.345-4.5 126.845-23.343c49.218-19.125 120.093-68.906 120.093-68.906s-100.687-31.22-136.968-66.094c-36.282-35.157-45.282-55.969-45.282-55.969l99.563-1.406S175.02 549.125 145.208 505.25s-33.75-87.187-33.75-87.187l76.5 30.937s-63.562-86.906-72.562-154.406 11.531-103.782 11.531-103.782 32.344 61.032 165.656 128.532 245.813 63.562 245.813 63.562-43.031-149.344 88.875-215.437S849.74 213.03 849.74 213.03s23.062-6.187 40.218-12.656c17.157-6.187 41.907-17.719 41.907-17.719l-40.5 72.844 62.718-6.75s-7.875 11.25-32.906 34.313z"/></svg>'},z1={link:"http://service.weibo.com/share/share.php?url=[url]&title=[title]&pic=[cover|image]",color:"#e6162d",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109-27.6-30.6-68.4-42.3-106-34.3-15.4 3.3-25.2 18.4-21.9 33.8 3.3 15.3 18.4 25.2 33.8 21.8 18.4-3.9 38.3 1.8 51.9 16.7 13.5 15 17.2 35.4 11.3 53.3-4.9 15.1 3.2 31.1 18.2 36z"/><path d="M885.1 237.5c-56.7-62.9-140.4-86.9-217.7-70.5-17.9 3.8-29.3 21.4-25.4 39.3 3.8 17.9 21.4 29.3 39.3 25.5 55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z"/></svg>'},F1={link:"https://api.whatsapp.com/send?text=[title]%0D%0A[url]%0D%0A[description|summary]",color:"#25d366",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M511.895 90.125h.21c232.63 0 421.77 189.246 421.77 421.875S744.7 933.875 512.105 933.875c-85.78 0-165.374-25.559-232.03-69.68l-162.176 51.82 52.558-156.761A418.781 418.781 0 0 1 90.125 512c0-232.629 189.176-421.875 421.77-421.875zm-120.692 231.89c-8.05-19.23-14.167-19.968-26.367-20.46a235.266 235.266 0 0 0-13.922-.493c-15.89 0-32.484 4.641-42.539 14.872-12.129 12.41-42.468 41.379-42.468 100.898 0 59.45 43.488 116.965 49.324 125.016 6.117 8.015 84.797 131.836 206.894 182.285 95.52 39.48 123.856 35.824 145.618 31.183 31.746-6.82 71.543-30.234 81.562-58.464 10.02-28.301 10.02-52.418 7.102-57.551-2.954-5.098-11.004-8.016-23.204-14.133-12.234-6.082-71.578-35.332-82.828-39.234-11.004-4.114-21.48-2.672-29.777 9.035-11.742 16.312-23.203 32.906-32.52 42.89-7.312 7.805-19.3 8.79-29.285 4.641-13.43-5.625-51.047-18.773-97.488-59.977-35.894-31.921-60.328-71.648-67.394-83.566-7.102-12.2-.739-19.266 4.886-25.84 6.082-7.558 11.953-12.902 18.07-19.969 6.118-7.066 9.493-10.722 13.43-19.02 4.149-8.05 1.23-16.347-1.722-22.429-2.918-6.082-27.352-65.566-37.372-89.648z"/></svg>'},v={buffer:h1,douban:m1,email:u1,evernote:d1,facebook:g1,flipboard:f1,line:v1,qq:w1,qrcode:k1,reddit:T1,skype:b1,telegram:P1,twitter:D1,weibo:z1,whatsapp:F1},$=K(v),y1=e=>{const t=e.componentOptions?.share?.services??$,n=[];return t.forEach(o=>{b(o)?o==="twitter"?n.push({name:o,...v[o],link:v[o].link.replace("[twitter-user]",e.componentOptions?.share?.twitterUserName??"")}):$.includes(o)&&n.push({name:o,...v[o]}):h(o)&&o.name&&o.link&&o.shape&&n.push(o)}),n},C1=(e,t)=>n=>{const{assets:o,prefix:i}=e.componentOptions?.fontIcon||{},a={};if(t&&e.components?.includes("Catalog")&&(a.CATALOG_LOCALES=g({app:n,name:"catalog",default:e1,config:e.locales?.catalog})),e.components?.includes("FontIcon")){const{type:l,prefix:u}=c1(o,i);a.FONT_ICON_TYPE=l,a.FONT_ICON_PREFIX=u}return e.components?.includes("ArtPlayer")&&(a.ART_PLAYER_OPTIONS={fullscreen:!0,playbackRate:!0,setting:!0,...e.componentOptions?.artPlayer||{}},a.DASHJS_INSTALLED=f("dashjs"),a.HLS_JS_INSTALLED=f("hls.js"),a.MPEGTS_JS_INSTALLED=f("mpegts.js")),e.components?.includes("PDF")&&(a.PDF_LOCALES=g({app:n,name:"pdf",default:L,config:e.locales?.pdf}),a.PDFJS_URL=e.componentOptions?.pdf?.pdfjs||null),e.components?.includes("Share")&&(a.SHARE_CONTENT_SELECTOR=e.componentOptions?.share?.contentSelector??".theme-default-content",a.SHARE_SERVICES=y1(e)),e.components?.includes("SiteInfo")&&(a.SITE_INFO_LOCALES=g({app:n,name:"siteInfo",default:_,config:e.locales?.siteInfo})),e.rootComponents?.backToTop&&(a.BACK_TO_TOP_LOCALES=g({app:n,name:"backToTop",default:x,config:e.locales?.backToTop})),a},{url:z}=import.meta,S1=(e,{components:t=[],componentOptions:n={},rootComponents:o={}},i)=>{const a=[];let l="";const u=[],w=[];let k=!1,F=!1,y=!1;if(t.forEach(s=>{Z.includes(s)&&(!V[s]||V[s].every(p=>f(p,!0)))&&(a.push(`import ${s} from "${m}components/${s}.js";`),l+=`if(!hasGlobalComponent("${s}")) app.component("${s}", ${s}); | ||
`),s==="FontIcon"&&l1(n.fontIcon?.assets).forEach(p=>{const{type:T,content:j}=p;T==="script"?F=!0:y=!0,u.push(j)}),i&&s==="Catalog"&&(a.push(`import Catalog from "${m}compact/components/Catalog.js";`),l+=`if(!hasGlobalComponent("Catalog")) app.component("Catalog", Catalog); | ||
`)}),o.backToTop){const{threshold:s,progress:p}=h(o.backToTop)?o.backToTop:{};k=!0,a.push(`import BackToTop from "${m}components/BackToTop.js";`);const T=h(o.backToTop)?{...C(s)?{threshold:s}:{},...p===!1?{noProgress:!0}:{}}:{};w.push(`() => h(BackToTop, ${JSON.stringify(T)}),`)}return d(o.notice)&&(k=!0,a.push(`import Notice from "${m}components/Notice.js";`),w.push(`() => h(Notice, { config: ${JSON.stringify(p1(o.notice))} }),`)),e.writeTemp("components/config.js",`import { defineClientConfig } from "@vuepress/client"; | ||
import { hasGlobalComponent } from "${P("vuepress-shared/client",z)}"; | ||
\`);`}];if(C(t,".js"))return[{type:"script",content:`useScriptTag(\`${t}\`);`}];r.error(`Can not recognize icon link: "${e}"`)}return[]},r1=e=>(d(e)?e:[e]).map(t=>c1(t)).flat(),i1=e=>e.map(({key:t,...a})=>{if("match"in a){const o=a.match.toString();return{noticeKey:t,...a,match:o.slice(1,o.length-1)}}return{noticeKey:t,...a}}).sort((t,a)=>"match"in t?"match"in a?a.match.localeCompare(t.match):-1:"match"in a?1:(a.path||"").localeCompare(t.path||"")),l1={link:"https://bufferapp.com/add?text=[title]&url=[url]",color:"#333",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="m942.837 500.76-84.36-41.48a43.84 43.84 0 0 0-38.6-.12L531.2 598.919a43.8 43.8 0 0 1-38.4 0l-288.638-139.76a43.84 43.84 0 0 0-38.6.12l-84.399 41.48c-12.24 6-12.2 24.4.08 30.32L492.84 730.318c12.16 5.92 26.2 5.92 38.36 0l411.557-199.239c12.28-5.96 12.32-24.32.08-30.32zm0 239.998-84.36-41.48a43.84 43.84 0 0 0-38.6-.12L531.2 838.917a43.8 43.8 0 0 1-38.4 0l-288.638-139.76a43.84 43.84 0 0 0-38.6.12l-84.399 41.48c-12.24 6-12.2 24.4.08 30.32L492.84 970.316c12.16 5.92 26.2 5.92 38.36 0l411.557-199.239c12.28-5.96 12.32-24.32.08-30.32zM489.6 59.963 81.163 260.76c-12.24 6-12.2 24.4.08 30.32L492.84 490.319c12.16 5.92 26.16 5.92 38.32 0l411.597-199.238c12.28-5.96 12.32-24.32.08-30.32L534.44 59.963a50.68 50.68 0 0 0-44.84 0z"/></svg>'},p1={link:"https://shuo.douban.com/!service/share?href=[url]&name=[title]&text=[description|summary]&image=[cover|image]&starid=0&aid=0&style=11",color:"#30c171",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M897 113H126c-8 0-14 7-14 13v58c0 7 6 13 14 13h771c6 0 13-6 13-13v-58a13 13 0 0 0-14-14zm0 715H689l74-186h63c7 0 13-7 13-15V299c0-8-5-15-13-15H197c-7 0-14 6-14 13v329c0 7 7 15 14 15h452l-75 186H434l-51-129c0-7-8-13-14-13h-85c-8 0-14 6-14 13l51 129H127c-6 0-13 6-13 14v58c0 7 7 13 13 13h771c8 0 14-6 14-13v-58c0-8-6-14-14-14zM311 556V370h400v186z"/></svg>'},h1={link:"mailto:?subject=[title]&body=[url]%0D%0A%0D%0A[description|summary]",color:"#1384FF",action:"open",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M152 177h720c49 0 89 37 90 83L512 494 63 260c0-46 40-83 89-83M62 349v414c0 46 41 84 90 84h720c49 0 90-38 90-84V349L523 572a24 24 0 0 1-22 0z"/></svg>'},m1={link:"https://www.evernote.com/clip.action?url=[url]&title=[title]",color:"#14cc45",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M300 111v113H187z"/><path d="M872 280s5-100-96-134c0 0-116-16-196-15 0 0-11-69-135-69 0 0-116-2-116 91v80s3 20-36 20H187s-45 7-45 94c0 0 4 156 54 260 0 0 12 45 75 60 0 0 125 33 161 28 0 0 76 29 81-145 0 0 5-25 8 15 0 0-2 90 75 94 0 0 59 17 96 13 0 0 49 3 49 84 0 0 17 93-45 93h-85s-24 5-24-29c0 0-6-28 34-28h20v-57h-56s-86-8-86 65v97s12 65 86 65h158s63 1 99-117c0 0 64-236 30-565M661 491c0-28 23-66 51-66s48 47 48 75c-38-10-60-12-99-9"/></svg>'},u1={link:"https://www.facebook.com/sharer/sharer.php?u=[url]&title=[title]&description=[description]"e=[summary]&hashtag=[tags]",color:"#3c599b",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M295 360h93v-91c0-40 1-101 30-139 30-41 72-68 144-68 118 0 168 17 168 17l-24 138s-39-12-75-12-69 13-69 50v105h149l-10 134H562v468H388V494h-93z"/></svg>'},g1={link:"https://share.flipboard.com/bookmarklet/popout?v=2&url=[url]&title=[title]",color:"#e12828",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M122 122h257v800H122zm284 284h259v259H406zm0-284h516v257H406z"/></svg>'},d1={link:"https://line.me/R/msg/text/?[title]%0D%0A[url]%0D%0A[description|summary]",color:"#00C300",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M962 447c0-201-203-365-450-365S62 246 62 447c0 178 160 332 377 363 14 3 34 10 39 22a91 91 0 0 1 0 41l-7 38c0 11-9 45 39 25a1422 1422 0 0 0 354-261c60-59 95-140 96-225zM336 567h-89c-13 0-23-10-23-23V365a23 23 0 0 1 23-24c13 0 23 11 23 24v154h66c13 1 23 12 23 25s-11 23-23 23m93-23a23 23 0 0 1-47 0V365a23 23 0 0 1 47 0zm215 0c0 10-7 19-16 22h-8a23 23 0 0 1-18-9l-90-124v111a23 23 0 0 1-47 0V365c0-11 6-20 16-23h8a23 23 0 0 1 18 9l92 124V364a23 23 0 0 1 47 0zm144-113a23 23 0 1 1 0 46h-65v42h65c13 1 24 11 23 24 0 13-10 23-23 23h-91c-12 0-23-10-23-23V364c0-13 10-23 23-23h89c13 0 24 10 24 23a23 23 0 0 1-24 24h-63v42z"/></svg>'},w1={link:"https://www.linkedin.com/sharing/share-offsite/?url=[url]",color:"#4376B1",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M912 598v297H740V618c0-69-24-117-86-117-48 0-76 32-89 63-4 11-5 27-5 42v289H388s3-469 0-517h172v72l-1 3h1v-3c23-35 63-84 155-84 113 0 197 74 197 232M209 130c-59 0-97 37-97 88 0 50 37 90 95 90h1c60 0 97-40 97-90-1-51-37-88-96-88m-87 765h171V378H122z"/></svg>'},v1={link:"fb-messenger://share/?link=[url]",color:"#0183FF",action:"open",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M512 62C266 62 68 248 68 478c0 121 56 235 155 315v169l165-87c42 12 82 15 124 15 246 0 444-184 444-414 0-228-198-414-444-414m45 552L445 494 236 613l231-246 114 114 204-114z"/></svg>'},f1={link:"https://pinterest.com/pin/create/button/?description=[title]&media=[cover|image]&url=[url]",color:"#CA242D",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M157 385c0 89 34 168 108 198 12 4 23 0 26-13l11-42c4-13 2-17-8-29-21-24-34-56-34-101 0-131 99-248 259-248 142 0 219 85 219 198 0 149-67 275-167 275-55 0-96-45-83-99 16-66 47-137 47-184 0-42-24-78-71-78-57 0-102 58-102 134 0 49 17 82 17 82l-68 282c-20 84-3 186-1 196 0 6 8 8 12 3 5-6 72-88 95-169l37-142c18 34 72 65 129 65 169 0 284-152 284-355 0-153-132-296-333-296-251 0-377 176-377 323"/></svg>'},k1={link:'https://connect.qq.com/widget/shareqq/index.html?url=[url]&title=[title]&source=[title]&desc=[description]&pics=[cover]&summary="[summary]"',color:"#5eaade",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M863 626c-17-58-38-107-70-186 5-209-82-378-281-378-202 0-286 172-281 378-32 80-52 128-70 186-39 123-26 174-17 175 20 3 79-93 79-93 0 56 28 127 89 179-29 9-96 34-80 61 13 21 220 14 280 7 60 7 267 14 280-7 16-27-51-52-80-61 61-52 89-124 89-179 0 0 59 96 79 93 9-1 22-52-17-175"/></svg>'},T1={action:"qrcode",link:"[url]",color:"#999",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M409.6 68H136.533c-37.5 0-68 31-68 68v273.6c0 37.547 31 68 68 68H409.6c37.547 0 68-31 68-68V136.533c0-37.5-31-68-68-68zm-68 256c0 9-8 17-17 17H222.2c-9 0-17-8-17-17V221.6c0-9 8-17 17-17h102.4c9 0 17 8 17 17V324zM887.734 68H614.4c-37.547 0-68 31-68 68v273.6c0 37.547 31 68 68 68h273c37.5 0 68-31 68-68V136.533c0-37.5-31-68-68-68zm-68 256c0 9-8 17-17 17h-102.4c-9 0-17-8-17-17V221.6c0-9 8-17 17-17h102.4c9 0 17 8 17 17V324zM409.6 546.133H136.533c-37.5 0-68 31-68 68v273c0 37.5 31 68 68 68H409.6c37.547 0 68-31 68-68V614.4c0-37.547-31-68-68-68zm-68 256c0 9-8 17-17 17H222.2c-9 0-17-8-17-17v-102.4c0-9 8-17 17-17h102.4c9 0 17 8 17 17v102.4zm580-86.4H785V768c0 9.5-8 17-17 17h-52v137.6c0 18.8 15 34 34.134 34.133H921.6c18.8 0 34.133-15 34.133-34.133V749.8c0-18.774-15-34.134-34.133-34.134zm-204.8-137.6c0-18.8-15-34.133-34.133-34.133H579.2c-18.8 0-34 15-34 34.133v104.534c0 18.8 15 34 34 34.133h103.467c18.8 0 34.133-15 34.133-34.133V578.133zm-85.333 275.2H563.2c-9.5 0-17 8-17 17v68c0 9.5 8 17 17 17h68c9.5 0 17-8 17-17V870.4c0-9.5-8-17-17-17zm307.2-307.2H870.4c-9.5 0-17 8-17 17v68c0 9.5 8 17 17 17h68c9.5 0 17-8 17-17V563.2c0-9.5-8-17-17-17z"/></svg>'},b1={link:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=[url]",color:"#0985DD",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M852 688c36-6 18-19 3-18-26 3-64 3-106 2l5 29a1047 1047 0 0 0 98-13m110-278a8 8 0 0 0-7-6l-301-44L520 89c-3-6-13-6-16 0L370 360 69 404a9 9 0 0 0-7 6 9 9 0 0 0 3 9l217 211-51 299a8 8 0 0 0 3 8c3 3 6 3 10 1l268-141 269 141 4 1 5-1c3-2 4-5 3-9l-39-228c-43 3-86 5-122 5-123 0-215-6-216-6-11-1-21-8-24-19a26 26 0 0 1 10-28l247-180c-159-13-293-10-294-10-21 1-41-6 1-23 7-3 174-38 367-12 11 1 19 9 22 19a26 26 0 0 1-10 28L493 651c44 9 160 19 256 21l-7-42 217-211a8 8 0 0 0 3-9"/></svg>'},P1={link:"https://www.reddit.com/submit?title=[title]&url=[url]",color:"#ff4501",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M678 779c9 9 9 18 0 27-34 37-90 55-166 55s-132-18-166-55c-9-9-9-18 0-27a17 17 0 0 1 12-6c5 0 9 2 13 6 26 29 74 43 141 43s114-14 141-43a17 17 0 0 1 13-6c5 0 9 2 12 6M400 562a82 82 0 0 1 0 112 70 70 0 0 1-53 23c-20 0-38-8-53-23a78 78 0 0 1-22-56c0-22 7-41 22-56a71 71 0 0 1 106 0m352 56c0 22-7 41-22 56a71 71 0 0 1-53 23c-21 0-38-8-53-23a78 78 0 0 1-22-56c0-22 8-40 22-56 15-16 32-23 53-23 20 0 38 7 53 23 15 15 22 34 22 56m210-106c0-29-10-54-29-74a94 94 0 0 0-71-31c-28 0-52 10-72 31-73-53-160-81-260-85l52-250 168 40c0 21 7 40 21 55 15 16 32 23 53 23s38-7 53-23 22-34 22-56-7-41-22-57a71 71 0 0 0-53-23c-30 0-52 15-67 44L572 63c-10-3-17 2-21 14l-57 276c-101 5-187 33-259 86a94 94 0 0 0-73-32c-28 0-51 10-71 31a105 105 0 0 0-29 74 108 108 0 0 0 57 96 241 241 0 0 0-5 49c0 84 39 156 117 216 78 59 172 89 282 89s205-30 283-89c78-60 117-132 117-216 0-19-2-35-6-50a108 108 0 0 0 55-95"/></svg>'},D1={link:"https://web.skype.com/share?url=[title]%0D%0A[url]%0D%0A[description|summary]",color:"#00aff0",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M743.429 607.429q0-28.572-11.143-52.286T704.57 516t-41.714-28-47.143-19.429-50-13.142l-59.428-13.715q-17.143-4-25.143-6t-20-6.571T444 420t-9.429-12-4.285-17.143q0-44 82.285-44 24.572 0 44 6.857T587.43 370t21.714 19.143T632 405.714t27.429 6.857q26.857 0 43.142-18.285t16.286-44q0-31.429-32-56.857t-81.143-38.572-104-13.143q-38.857 0-75.428 8.857T358 277.43t-50.857 49.714T288 400.57q0 34.858 10.857 60.858t32 43.142 45.714 27.715 58.858 18.571l83.428 20.572q51.429 12.571 64 20.571 18.286 11.429 18.286 34.286 0 22.285-22.857 36.857t-60 14.571q-29.143 0-52.286-9.143t-37.143-22-26-25.714-26.286-22-30.857-9.143q-28.571 0-43.143 17.143T288 649.714q0 52.572 69.714 90T524 777.143q41.714 0 80-10.572T674 736t50.571-53.429 18.858-75.142zm207.428 124q0 90.857-64.286 155.142T731.43 950.857q-74.286 0-133.715-45.714-44 9.143-85.714 9.143-81.714 0-156.286-31.715t-128.571-85.714-85.714-128.571T109.714 512q0-41.714 9.143-85.714-45.714-59.429-45.714-133.715 0-90.857 64.286-155.142T292.57 73.143q74.286 0 133.715 45.714 44-9.143 85.714-9.143 81.714 0 156.286 31.715t128.571 85.714 85.714 128.571T914.286 512q0 41.714-9.143 85.714 45.714 59.429 45.714 133.715z"/></svg>'},F1={link:"sms:?body=[title]%0D%0A[url]%0D%0A[description|summary]",color:"#ffbd00",action:"open",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M512 811c220 0 400-145 400-324S732 162 512 162c-221 0-400 146-400 325 0 70 27 135 74 188-3 39-18 73-33 99l-24 33-8 9-2 2v1c-7 7-9 18-6 27 4 9 13 16 24 16 44 0 90-14 127-31 36-15 66-34 85-47 50 18 105 28 163 28zM262 445c0-32 25-58 57-58h30a25 25 0 1 1 0 50h-30a7 7 0 0 0-4 14l46 31a58 58 0 0 1-32 104h-42a25 25 0 1 1 0-50h42c4 0 8-3 8-7 0-3-2-5-4-6l-46-30a58 58 0 0 1-25-48m432-58h30a25 25 0 1 1 0 50h-30a7 7 0 0 0-4 14l46 31a57 57 0 0 1-32 104h-42a25 25 0 1 1 0-50h42c4 0 8-3 8-7 0-3-2-5-4-6l-46-30a58 58 0 0 1 32-106m-237 10 55 74 55-74a25 25 0 0 1 45 15v149a25 25 0 0 1-50 0v-74l-30 39c-5 7-13 10-20 10s-16-3-20-10l-30-39v74a25 25 0 0 1-50 0V412a25 25 0 0 1 45-15"/></svg>'},y1={link:"https://snapchat.com/scan?attachmentUrl=[url]",color:"#FFFC00",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M961 740c-4-13-23-22-23-22l-5-3a343 343 0 0 1-130-108c-15-24-23-43-26-54-2-7-1-10 0-13s5-6 7-8a1380 1380 0 0 1 38-25l21-14c15-10 25-21 31-32 7-15 8-31 2-46-8-22-28-34-53-34l-17 1-40 13-1-1c1-28 2-67-1-103a221 221 0 0 0-58-140c-10-12-29-30-58-47-40-23-86-34-136-34s-96 11-136 34a232 232 0 0 0-95 102c-11 24-18 52-21 85a807 807 0 0 0-2 104c-12-4-25-10-40-13a77 77 0 0 0-17-2c-25 0-45 13-53 35-6 15-5 31 2 46 6 11 16 22 31 32l21 14 38 25c1 1 6 4 7 8 2 3 2 6 0 13a245 245 0 0 1-74 108c-23 21-51 39-82 54a50 50 0 0 0-6 3c-2 1-18 10-22 22-5 18 9 35 23 44a241 241 0 0 0 80 31c3 1 8 3 11 6 3 4 4 10 5 15 2 10 6 22 17 30 13 9 30 9 51 10 22 1 49 2 81 12 14 5 27 13 42 23 32 19 72 43 139 43 68 0 108-24 140-43 15-10 28-18 42-22 31-11 58-12 80-13 21 0 38-1 51-10s16-22 18-32l4-13c3-3 8-5 11-6a485 485 0 0 1 13-3c16-5 36-10 61-24 30-17 32-38 29-48"/></svg>'},z1={link:"https://t.me/share/url?url=[url]&text=[title]%0D%0A[description|summary]",color:"#158cc7",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="m413 807 13-187 340-307c15-14-3-21-23-8L323 570l-183-58c-39-11-39-38 9-57l709-274c33-14 64 8 51 58L788 807c-8 40-33 50-66 31L538 703l-88 85c-10 10-19 19-37 19"/></svg>'},C1={link:"https://www.tumblr.com/share/link?url=[url]&name=[title]&description=[description]",color:"#001935",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M787 912V767c-47 32-92 44-139 44-21 0-40-3-66-16-17-12-26-19-29-37-9-12-13-45-13-99V431h209V294H540V62H415c-8 54-20 91-29 115-12 30-33 54-62 80-30 21-58 37-87 49v125h95v315c0 32 4 65 17 91a213 213 0 0 0 120 108 389 389 0 0 0 213 4c34-9 70-21 105-37"/></svg>'},x1={link:"https://twitter.com/intent/tweet?text=[title]&url=[url]&hashtags=[tags][title][twitter-user]",color:"#000",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="m587 451 291-339h-69L555 407 354 112H120l305 446-305 354h68l268-310 213 310h235zM214 163h107l488 699H702z"/></svg>'},L1={link:"https://vk.com/share.php?url=[url]&title=[title]&description=[description]&image=[cover|image]&noparse=true",color:"#07F",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M62 252c8 351 192 562 495 562h18V612c111 12 194 94 228 201h159a447 447 0 0 0-225-282c69-42 168-143 192-281H784c-32 113-122 213-209 224V252H428v388c-90-22-207-132-211-388z"/></svg>'},S1={link:"http://service.weibo.com/share/share.php?url=[url]&title=[title]&pic=[cover|image]",color:"#D52C2B",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M440 817c-148 13-277-53-286-148-11-96 102-185 252-200 148-15 277 52 286 148 11 96-103 185-252 200m299-319c-14-3-23-6-15-23 13-34 15-66 0-87-29-40-110-39-201-1 0 0-29 12-21-11 13-43 12-81-11-102-49-50-181 1-294 113-85 82-135 171-135 248 0 146 191 235 378 235 245 0 407-140 407-252 0-66-57-103-108-120m162-266c-59-65-147-89-227-72-19 4-30 21-27 40 5 18 23 29 41 26 58-12 120 4 162 51 40 43 54 105 36 162-6 18 3 36 20 42h1c18 6 37-4 43-21 27-79 8-168-49-228"/><path d="M811 311c-29-30-71-43-111-34-17 3-26 18-23 33v1c3 16 18 26 35 23 19-4 40 2 54 17 15 15 18 36 12 54a29 29 0 0 0 19 37c15 5 32-4 38-19 12-39 3-82-24-112M449 642c-6 9-18 14-27 9-9-3-10-12-6-21 5-9 17-13 26-9 9 3 12 12 7 21m-48 61a57 57 0 0 1-69 22 39 39 0 0 1-15-59c15-22 44-31 68-22 22 10 30 36 16 59m54-160c-70-18-151 17-181 78-32 62-2 131 70 154 74 24 162-12 192-80 30-66-7-134-81-152"/></svg>'},_1={link:"https://api.whatsapp.com/send?text=[title]%0D%0A[url]%0D%0A[description|summary]",color:"#31B84C",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="m62 962 64-231a444 444 0 0 1-60-223 448 448 0 0 1 765-315 442 442 0 0 1 131 315c0 246-201 446-448 446a449 449 0 0 1-214-54zm340-640c-9-22-18-19-25-20h-22a41 41 0 0 0-30 14c-10 11-39 38-39 93s40 108 46 115c6 8 79 120 191 168 27 12 48 19 64 24 27 8 51 7 71 4 21-3 66-27 75-53s9-48 7-53c-3-4-11-7-22-13l-76-36c-11-4-18-5-26 6-7 11-28 36-35 43-6 8-13 9-24 3-11-5-47-17-90-55-34-30-56-66-63-77-6-12 0-18 5-23l17-20c6-6 8-11 11-18 4-8 2-14-1-20l-34-83z"/></svg>'},A1={link:"https://wordpress.com/press-this.php?u=[url]&t=[title]&s=[description|summary]&i=[cover|image]",color:"#23282d",shape:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><path d="M512 112a400 400 0 1 0 0 800 400 400 0 0 0 0-800M172 512c0-49 10-96 30-138l162 444a340 340 0 0 1-192-306m340 340c-33 0-65-5-96-14l102-296 104 286 3 5c-36 13-75 19-113 19m47-500c20 0 39-3 39-3 18-2 16-29-2-28 0 0-56 5-91 5-33 0-89-4-89-4-19-2-21 26-3 28l36 2 53 146-74 223-124-368c20-1 39-4 39-4 18-2 16-29-3-28 0 0-55 5-90 5h-22a340 340 0 0 1 514-65h-5c-33 0-57 29-57 60 0 28 16 52 34 80 12 23 28 52 28 94 0 29-12 63-26 110l-34 113-123-365zm124 454 104-300c21-50 29-104 23-157a338 338 0 0 1-127 457"/></svg>'},u={buffer:l1,douban:p1,email:h1,evernote:m1,facebook:u1,flipboard:g1,line:d1,linkedin:w1,messenger:v1,pinterest:f1,qq:k1,qrcode:T1,qzone:b1,reddit:P1,skype:D1,sms:F1,snapchat:y1,telegram:z1,tumblr:C1,twitter:x1,vk:L1,weibo:S1,whatsapp:_1,wordpress:A1},V=R(u),V1=e=>{const t=e.componentOptions?.share?.services??["twitter","facebook","reddit","telegram","whatsapp","email"],a=[];return t.forEach(o=>{b(o)?o==="twitter"?a.push({name:o,...u[o],link:u[o].link.replace("[twitter-user]",e.componentOptions?.share?.twitterUserName??"")}):V.includes(o)&&a.push({name:o,...u[o]}):h(o)&&o.name&&o.link&&o.shape&&a.push(o)}),a},B={"/en/":{backToTop:"Back to top"},"/zh/":{backToTop:"返回顶部"},"/zh-tw/":{backToTop:"返回頂部"},"/de/":{backToTop:"Zurück nach oben."},"/de-at/":{backToTop:"Zurück nach oben."},"/vi/":{backToTop:"Trở lại đầu trang"},"/uk/":{backToTop:"Повернутися до початку"},"/ru/":{backToTop:"Вернуться к началу"},"/br/":{backToTop:"Volta ao topo"},"/pl/":{backToTop:"Wróć na górę"},"/sk/":{backToTop:"Back to top"},"/fr/":{backToTop:"Retour en haut"},"/es/":{backToTop:"Volver arriba"},"/ja/":{backToTop:"このページのトップへ戻る"},"/tr/":{backToTop:"En başa dön"},"/ko/":{backToTop:"맨 위로"},"/fi/":{backToTop:"Takaisin ylös"},"/hu/":{backToTop:"Vissza a tetejére"},"/id/":{backToTop:"Kembali ke atas"},"/nl/":{backToTop:"Ga terug naar boven"}},E={"/en/":{hint:"<p>This browser does not support embedding PDFs. Please download the PDF to view it: <a href='[url]' target='_blank'>Download PDF</a></p>"},"/zh/":{hint:"<p>此浏览器不支持嵌入式 PDF。请下载 PDF 查看:<a href='[url]' target='_blank'>下载 PDF</a></p>"},"/zh-tw/":{hint:"<p>此瀏覽器不支援嵌入式 PDF。請下載 PDF 查看:<a href='[url]' target='_blank'>下載 PDF</a></p>"},"/de/":{hint:"<p>Dieser Browser unterstützt das Einbetten von PDFs nicht. Laden Sie die PDF herunter, um sie anzuzeigen: <a href='[url]' target='_blank'>PDF herunterladen</a></p>"},"/de-at/":{hint:"<p>Dieser Browser unterstützt das Einbetten von PDFs nicht. Laden Sie die PDF herunter, um sie anzuzeigen: <a href='[url]' target='_blank'>PDF herunterladen</a></p>"},"/vi/":{hint:"<p>Trình duyệt này không hỗ trợ nhúng tệp PDF. Vui lòng tải xuống tệp PDF để xem: <a href='[url]' target='_blank'>Tải xuống PDF</a></p>"},"/uk/":{hint:"<p>Цей браузер не підтримує вбудовування PDF. Будь ласка, завантажте PDF, щоб переглянути його: <a href='[url]' target='_blank'>Завантажити PDF</a></p>"},"/ru/":{hint:"<p>Этот браузер не поддерживает встроенные PDF. Пожалуйста, загрузите PDF, чтобы просмотреть его: <a href='[url]' target='_blank'>Загрузить PDF</a></p>"},"/br/":{hint:"<p>Este navegador não suporta incorporação de PDF. Faça o download do PDF para visualizá-lo: <a href='[url]' target='_blank'>Baixar PDF</a></p>"},"/pl/":{hint:"<p>Ten przeglądarka nie obsługuje osadzania plików PDF. Pobierz plik PDF, aby go wyświetlić: <a href='[url]' target='_blank'>Pobierz PDF</a></p>"},"/sk/":{hint:"<p>Tento prehliadač nepodporuje vkladanie PDF. Stiahnite si PDF, aby ste ho mohli zobraziť: <a href='[url]' target='_blank'>Stiahnuť PDF</a></p>"},"/fr/":{hint:"<p>Ce navigateur ne prend pas en charge l'intégration de fichiers PDF. Téléchargez le PDF pour le visualiser: <a href='[url]' target='_blank'>Télécharger le PDF</a></p>"},"/es/":{hint:"<p>Este navegador no admite la incorporación de archivos PDF. Descargue el PDF para verlo: <a href='[url]' target='_blank'>Descargar PDF</a></p>"},"/ja/":{hint:"<p>このブラウザは PDF の埋め込みをサポートしていません。 PDF をダウンロードして表示してください: <a href='[url]' target='_blank'>PDF をダウンロード</a></p>"},"/tr/":{hint:"<p>Bu tarayıcı PDF'leri gömme özelliğini desteklemiyor. Lütfen PDF'i görüntülemek için indirin: <a href='[url]' target='_blank'>PDF'i İndir</a></p>"},"/ko/":{hint:"<p>이 브라우저는 PDF를 포함할 수 없습니다. PDF를 보려면 다운로드하십시오: <a href='[url]' target='_blank'>PDF 다운로드</a></p>"},"/fi/":{hint:"<p>Tämä selain ei tue PDF-tiedostojen upottamista. Lataa PDF-tiedosto nähdäksesi sen: <a href='[url]' target='_blank'>Lataa PDF</a></p>"},"/hu/":{hint:"<p>Ez a böngésző nem támogatja a PDF beágyazását. Kérlek töltsd le a PDF-et megtekintéshez: <a href='[url]' target='_blank'>PDF letöltése</a></p>"},"/id/":{hint:"<p>Browser ini tidak mendukung penyematan PDF. Silakan unduh PDF untuk melihatnya: <a href='[url]' target='_blank'>Unduh PDF</a></p>"},"/nl/":{hint:"<p>Deze browser ondersteunt geen embedded PDFs. Gelieve de PDF te downloaden om ze te bekjken: <a href='[url]' target='_blank'>Download PDF</a></p>"}},O={"/en/":{source:"Source"},"/zh/":{source:"源代码"},"/zh-tw/":{source:"源代碼"},"/de-at/":{source:"Quellcode"},"/vi/":{source:"Mã nguồn"},"/uk/":{source:"Джерело"},"/ru/":{source:"Исходный код"},"/br/":{source:"Código fonte"},"/pl/":{source:"Źródło"},"/sk/":{source:"Zdrojový kód"},"/fr/":{source:"Code source"},"/es/":{source:"Código fuente"},"/ja/":{source:"ソースコード"},"/tr/":{source:"Kaynak kodu"},"/ko/":{source:"소스 코드"},"/fi/":{source:"Lähdekoodi"},"/hu/":{source:"Forrás"},"/id/":{source:"Sumber"},"/nl/":{source:"Bron"}},B1=e=>{const{deprecatedLogger:t,droppedLogger:a}=K("components");t({options:e,old:"iconAssets",new:"componentOptions.fontIcon.assets"}),t({options:e,old:"iconPrefix",new:"componentOptions.fontIcon.prefix"}),t({options:e,old:"backToTop",new:"rootComponents.backToTop"}),t({options:e,old:"backToTopLocales",new:"locales.backToTop"}),a({options:e,old:"notice",new:"rootComponents.notice"}),a({options:e,old:"addThis"}),h(e.rootComponents)&&(a({options:e.rootComponents,old:"addThis"}),x(e.rootComponents.backToTop)&&(r.error(`"${c.magenta("rootComponents.backToTop")}" no longer support number, please check the docs at https://plugin-components.vuejs.press/guide/backtotop.html.`),e.rootComponents.backToTop={threshold:e.rootComponents.backToTop}),h(e.rootComponents.notice)&&(r.error(`"${c.magenta("rootComponents.notice")}" no longer support object config, please check the docs at https://plugin-components.vuejs.press/guide/notice.html.`),delete e.rootComponents.notice)),e.components?.includes("Catalog")&&r.warn(`${c.cyan("Catalog")} component is deprecated, please use ${c.cyan("AutoCatalog")} component with ${c.magenta("vuepress-plugin-auto-catalog")} instead.`),["VideoPlayer","AudioPlayer","YouTube"].forEach(o=>{e.components?.includes(o)&&r.warn(`${c.cyan(o)} component is deprecated, please use ${c.cyan("VidStack")} component instead.`)})},E1={"/en/":{title:"Catalog"},"/zh/":{title:"目录"},"/zh-tw/":{title:"目錄"},"/de/":{title:"Katalog"},"/de-at/":{title:"Katalog"},"/vi/":{title:"Danh mục"},"/uk/":{title:"Каталог"},"/ru/":{title:"Каталог"},"/br/":{title:"Catálogo"},"/pl/":{title:"Katalog"},"/sk/":{title:"Katalóg"},"/fr/":{title:"Catalogue"},"/es/":{title:"Catálogo"},"/ja/":{title:"カタログ"},"/tr/":{title:"Katalog"},"/ko/":{title:"목차"},"/fi/":{title:"Luettelo"},"/hu/":{title:"Katalógus"},"/id/":{title:"Katalog"},"/nl/":{title:"Catalogus"}},O1=(e,t)=>a=>{const{assets:o,prefix:i}=e.componentOptions?.fontIcon||{},n={};if(t&&e.components?.includes("Catalog")&&(n.CATALOG_LOCALES=w({app:a,name:"catalog",default:E1,config:e.locales?.catalog})),e.components?.includes("FontIcon")){const{type:l,prefix:g}=s1(o,i);n.FONT_ICON_TYPE=l,n.FONT_ICON_PREFIX=g}return e.components?.includes("ArtPlayer")&&(n.ART_PLAYER_OPTIONS={fullscreen:!0,playbackRate:!0,setting:!0,...e.componentOptions?.artPlayer||{}},n.DASHJS_INSTALLED=v("dashjs"),n.HLS_JS_INSTALLED=v("hls.js"),n.MPEGTS_JS_INSTALLED=v("mpegts.js")),e.components?.includes("PDF")&&(n.PDF_LOCALES=w({app:a,name:"pdf",default:E,config:e.locales?.pdf}),n.PDFJS_URL=e.componentOptions?.pdf?.pdfjs||null),e.components?.includes("Share")&&(n.SHARE_CONTENT_SELECTOR=e.componentOptions?.share?.contentSelector??".theme-default-content",n.SHARE_SERVICES=V1(e)),e.components?.includes("SiteInfo")&&(n.SITE_INFO_LOCALES=w({app:a,name:"siteInfo",default:O,config:e.locales?.siteInfo})),e.rootComponents?.backToTop&&(n.BACK_TO_TOP_LOCALES=w({app:a,name:"backToTop",default:B,config:e.locales?.backToTop})),n},{url:F}=import.meta,M1=(e,{components:t=[],componentOptions:a={},rootComponents:o={}},i)=>{const n=[];let l="";const g=[],f=[];let k=!1,y=!1,z=!1;if(t.forEach(s=>{Z.includes(s)&&(!L[s]||L[s].every(p=>v(p,!0)))&&(n.push(`import ${s} from "${m}components/${s}.js";`),l+=`if(!hasGlobalComponent("${s}")) app.component("${s}", ${s}); | ||
`),s==="FontIcon"&&r1(a.fontIcon?.assets).forEach(p=>{const{type:T,content:M}=p;T==="script"?y=!0:z=!0,g.push(M)}),i&&s==="Catalog"&&(n.push(`import Catalog from "${m}compact/components/Catalog.js";`),l+=`if(!hasGlobalComponent("Catalog")) app.component("Catalog", Catalog); | ||
`)}),o.backToTop){const{threshold:s,progress:p}=h(o.backToTop)?o.backToTop:{};k=!0,n.push(`import BackToTop from "${m}components/BackToTop.js";`);const T=h(o.backToTop)?{...x(s)?{threshold:s}:{},...p===!1?{noProgress:!0}:{}}:{};f.push(`() => h(BackToTop, ${JSON.stringify(T)}),`)}return d(o.notice)&&(k=!0,n.push(`import Notice from "${m}components/Notice.js";`),f.push(`() => h(Notice, { config: ${JSON.stringify(i1(o.notice))} }),`)),e.writeTemp("components/config.js",`import { defineClientConfig } from "@vuepress/client"; | ||
import { hasGlobalComponent } from "${P("vuepress-shared/client",F)}"; | ||
${k?`import { h } from "vue"; | ||
`:""} | ||
${F?`import { useScriptTag } from "${P("@vueuse/core/index.mjs",z)}"; | ||
`:""}${y?`import { useStyleTag } from "${P("@vueuse/core/index.mjs",z)}"; | ||
`:""}${a.join(` | ||
${y?`import { useScriptTag } from "${P("@vueuse/core/index.mjs",F)}"; | ||
`:""}${z?`import { useStyleTag } from "${P("@vueuse/core/index.mjs",F)}"; | ||
`:""}${n.join(` | ||
`)} | ||
@@ -29,11 +29,11 @@ | ||
setup: () => { | ||
${u.map(s=>` ${s}`).join(` | ||
${g.map(s=>` ${s}`).join(` | ||
`)} | ||
}, | ||
rootComponents: [ | ||
${w.map(s=>` ${s}`).join(` | ||
${f.map(s=>` ${s}`).join(` | ||
`)} | ||
], | ||
}); | ||
`)},x1=(e,t=!0)=>n=>(t&&Q(e),G(n,D,"2.0.0-rc.0"),n.env.isDebug&&c.info("Options:",e),B(n,{id:"hope"}),{name:D,define:C1(e,t),extendsBundlerOptions:(o,i)=>{e?.components?.includes("VidStack")&&J(o,i,/^media-/),U(o,i,"vuepress-shared")},clientConfigFile:o=>S1(o,e,t)});export{x as backToTopLocales,x1 as componentsPlugin,L as pdfLocaleConfig,_ as siteInfoLocaleConfig}; | ||
`)},$1=(e,t=!0)=>a=>(t&&B1(e),G(a,D,"2.0.0-rc.0"),a.env.isDebug&&r.info("Options:",e),$(a,{id:"hope"}),{name:D,define:O1(e,t),extendsBundlerOptions:(o,i)=>{e?.components?.includes("VidStack")&&J(o,i,/^media-/),U(o,i,"vuepress-shared")},clientConfigFile:o=>M1(o,e,t)});export{V as AVAILABLE_SERVICES,u as SHARE_CONFIG,B as backToTopLocales,$1 as componentsPlugin,E as pdfLocaleConfig,O as siteInfoLocaleConfig}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "vuepress-plugin-components", | ||
"version": "2.0.0-rc.2", | ||
"version": "2.0.0-rc.3", | ||
"description": "Components collection plugin for VuePress2", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"@vuepress/utils": "2.0.0-rc.0", | ||
"@vueuse/core": "^10.6.1", | ||
"@vueuse/core": "^10.7.0", | ||
"artplayer": "^5.0.9", | ||
@@ -54,7 +54,7 @@ "balloon-css": "^1.2.0", | ||
"qrcode": "^1.5.3", | ||
"vue": "^3.3.9", | ||
"vue": "^3.3.11", | ||
"vue-router": "^4.2.5", | ||
"vuepress-shared": "2.0.0-rc.2", | ||
"vuepress-plugin-sass-palette": "2.0.0-rc.2", | ||
"vuepress-plugin-reading-time2": "2.0.0-rc.2" | ||
"vuepress-plugin-reading-time2": "2.0.0-rc.3", | ||
"vuepress-plugin-sass-palette": "2.0.0-rc.3", | ||
"vuepress-shared": "2.0.0-rc.3" | ||
}, | ||
@@ -67,3 +67,3 @@ "devDependencies": { | ||
"peerDependencies": { | ||
"dashjs": "^4.7.2", | ||
"dashjs": "4.7.2", | ||
"hls.js": "^1.4.12", | ||
@@ -73,3 +73,3 @@ "mpegts.js": "^1.7.3", | ||
"sass-loader": "^13.3.2", | ||
"vidstack": "^1.8.1", | ||
"vidstack": "^1.9.2", | ||
"vuepress": "2.0.0-rc.0", | ||
@@ -76,0 +76,0 @@ "vuepress-vite": "2.0.0-rc.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
353773
2
+ Addeddashjs@4.7.2(transitive)
+ Addedvuepress-plugin-reading-time2@2.0.0-rc.3(transitive)
+ Addedvuepress-plugin-sass-palette@2.0.0-rc.3(transitive)
+ Addedvuepress-shared@2.0.0-rc.3(transitive)
- Removeddashjs@4.7.4(transitive)
- Removedvuepress-plugin-reading-time2@2.0.0-rc.2(transitive)
- Removedvuepress-plugin-sass-palette@2.0.0-rc.2(transitive)
- Removedvuepress-shared@2.0.0-rc.2(transitive)
Updated@vueuse/core@^10.7.0
Updatedvue@^3.3.11
Updatedvuepress-shared@2.0.0-rc.3