vitepress-theme-teek 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,16 +21,16 @@ declare const __VLS_component: DefineComponent<MessageProps, {
21
21
  }, string, PublicProps, Readonly<MessageProps> & Readonly<{
22
22
  onDestroy?: (() => any) | undefined;
23
23
  }>, {
24
+ icon: string | Object | Component | IconifyIcon;
25
+ zIndex: number;
24
26
  center: boolean;
25
27
  id: string;
26
28
  type: MessageType;
27
29
  offset: number;
28
- icon: string | Object | Component | IconifyIcon;
29
30
  onClose: () => void;
30
- zIndex: number;
31
+ duration: number;
31
32
  customClass: string;
32
33
  dangerouslyUseHTMLString: boolean;
33
- duration: number;
34
34
  message: string | VNode | (() => VNode);
35
35
  showClose: boolean;
36
36
  plain: boolean;
@@ -23,7 +23,7 @@ export declare function getTitle(post: RequiredKeyPartialOther<TkContentData, "f
23
23
  * @param srcDir 项目绝对路径
24
24
  * @param articleAnalyze 文章信息配置
25
25
  */
26
- export declare function getDate(post: RequiredKeyPartialOther<TkContentData, "frontmatter" | "relativePath">, srcDir: string, articleAnalyze: ArticleAnalyze): any;
26
+ export declare function getDate(post: RequiredKeyPartialOther<TkContentData, "frontmatter" | "relativePath">, srcDir: string, { dateFormat, dateUTC }: ArticleAnalyze): any;
27
27
  /**
28
28
  * 截取 markdown 文件前 count 数的内容
29
29
  *
@@ -9,14 +9,17 @@ const transformData = (data) => {
9
9
  const siteConfig = globalThis.VITEPRESS_CONFIG;
10
10
  const { themeConfig } = siteConfig.userConfig;
11
11
  const { frontmatter, url, relativePath, excerpt } = data;
12
- if (frontmatter.date) frontmatter.date = formatDate(frontmatter.date, "yyyy-MM-dd hh:mm:ss", true);
12
+ const { dateFormat = "yyyy-MM-dd hh:mm:ss", dateUTC = true } = themeConfig.articleAnalyze ?? {};
13
+ if (frontmatter.date) {
14
+ frontmatter.date = isFunction(dateFormat) ? dateFormat(frontmatter.date) : formatDate(frontmatter.date, dateFormat, dateUTC);
15
+ }
13
16
  return {
14
17
  url,
15
18
  relativePath,
16
19
  frontmatter,
17
20
  author: frontmatter.author || themeConfig.author,
18
21
  title: getTitle(data),
19
- date: getDate(data, siteConfig.srcDir, themeConfig.articleAnalyze),
22
+ date: getDate(data, siteConfig.srcDir, { dateFormat, dateUTC }),
20
23
  excerpt,
21
24
  capture: getCaptureText(data)
22
25
  };
@@ -64,7 +67,7 @@ function getTitle(post) {
64
67
  const name = splitName.length > 1 ? splitName[1] : splitName[0];
65
68
  return getTitleFromMarkdown(content) || name || "";
66
69
  }
67
- function getDate(post, srcDir, articleAnalyze) {
70
+ function getDate(post, srcDir, { dateFormat = "yyyy-MM-dd hh:mm:ss", dateUTC = true }) {
68
71
  const { frontmatter, relativePath } = post;
69
72
  if (frontmatter.date) return frontmatter.date;
70
73
  const filePath = join(
@@ -73,8 +76,7 @@ function getDate(post, srcDir, articleAnalyze) {
73
76
  );
74
77
  const stat = statSync(filePath);
75
78
  const originalDate = stat.birthtime || stat.atime;
76
- if (isFunction(articleAnalyze.dateFormat)) return articleAnalyze.dateFormat(String(originalDate));
77
- return formatDate(String(originalDate), articleAnalyze.dateFormat, !(articleAnalyze.dateUTC ?? true));
79
+ return isFunction(dateFormat) ? dateFormat(String(originalDate)) : formatDate(originalDate, dateFormat, !dateUTC);
78
80
  }
79
81
  const getCaptureText = (post, count = 300) => {
80
82
  const { content = "" } = matter(post.src || "", {});
package/es/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.6.1";
1
+ export declare const version = "1.6.2";
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "1.6.1";
1
+ const version = "1.6.2";
2
2
 
3
3
  export { version };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! vitepress-theme-teek v1.6.1 */
1
+ /*! vitepress-theme-teek v1.6.2 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vitepress/theme'), require('vue'), require('vitepress'), require('vitepress-theme-teek/theme-chalk/tk-copy-banner.css'), require('@iconify/vue')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vitepress/theme', 'vue', 'vitepress', 'vitepress-theme-teek/theme-chalk/tk-copy-banner.css', '@iconify/vue'], factory) :
@@ -25681,7 +25681,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
25681
25681
  };
25682
25682
  };
25683
25683
 
25684
- const version = "1.6.1";
25684
+ const version = "1.6.2";
25685
25685
 
25686
25686
  var index = {
25687
25687
  extends: DefaultTheme,
package/index.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! vitepress-theme-teek v1.6.1 */(function(C,Ct){typeof exports=="object"&&typeof module<"u"?Ct(exports,require("vitepress/theme"),require("vue"),require("vitepress"),require("vitepress-theme-teek/theme-chalk/tk-copy-banner.css"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["exports","vitepress/theme","vue","vitepress","vitepress-theme-teek/theme-chalk/tk-copy-banner.css","@iconify/vue"],Ct):(C=typeof globalThis<"u"?globalThis:C||self,Ct(C.Teek={},C.VitePressTheme,C.Vue,C.VitePress,null,C.IconifyVue))})(this,function(C,Ct,e,F,E8,An){"use strict";function Cd(t){var n=Object.create(null);return t&&Object.keys(t).forEach(function(o){if(o!=="default"){var r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}}),n.default=t,Object.freeze(n)}var bd=Cd(e);const Ao=t=>/^(http?:|https?:|mailto:|tel:)/.test(t),xn=t=>{try{return new URL(t),!0}catch{return!1}},Ed=t=>t===null?"null":typeof t!="object"?typeof t:Object.prototype.toString.call(t).slice(8,-1).toLocaleLowerCase(),Ge=(t,n)=>Object.prototype.toString.call(t)===`[object ${n}]`,wd=t=>Ge(t,"Function"),oe=t=>Ge(t,"Function")||ll(t),Bd=t=>t!==void 0,Sd=t=>t===void 0,lt=t=>t!==null&&Ge(t,"Object"),Td=t=>Ge(t,"Date"),Qt=t=>Ge(t,"Number")&&!Number.isNaN(t),al=t=>X(t)?!Number.isNaN(Number(t)):!1,ll=t=>Ge(t,"AsyncFunction"),Nd=t=>Ge(t,"Promise")&&lt(t)&&oe(t.then)&&oe(t.catch),X=t=>Ge(t,"String"),it=t=>Ge(t,"Boolean"),xo=t=>typeof Array.isArray>"u"?Object.prototype.toString.call(t)==="[object Array]":Array.isArray(t),Ln=t=>typeof Element>"u"?!1:t instanceof Element,Ad=t=>t===null,xd=t=>t===null&&t===void 0,Ld=t=>t==null,Fd=t=>/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(t),_d=t=>/(https?:\/\/|data:image\/).*?\.(png|jpg|jpeg|gif|svg|webp|ico)/gi.test(t),Id=t=>t&&["IMAGE","IMG"].includes(t.tagName),il=()=>D&&window?.navigator?.userAgent&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent)),Md=(t,n=!0)=>Qt(t)&&isNaN(t)||t===""||t===null||t===void 0?!0:n?!!(xo(t)&&!t.length||lt(t)&&!Object.keys(t).length):!1,sl=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.tabIndex<0||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true")return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},D=typeof window<"u"&&typeof document<"u",Dd=!D,Pd=D,Lo=(t="yyyy-MM-dd hh:mm:ss",n=!0)=>It(new Date,t,n),It=(t,n="yyyy-MM-dd hh:mm:ss",o=!0)=>{if(!t)return"";if(X(t)&&t?.length===n.length)return t;const r=new Date(t),a=o?r.getUTCFullYear():r.getFullYear(),i=String((o?r.getUTCMonth():r.getMonth())+1).padStart(2,"0"),l=String(o?r.getUTCDate():r.getDate()).padStart(2,"0"),s=String(o?r.getUTCHours():r.getHours()).padStart(2,"0"),c=String(o?r.getUTCMinutes():r.getMinutes()).padStart(2,"0"),d=String(o?r.getUTCSeconds():r.getSeconds()).padStart(2,"0");return n.replace("yyyy",a.toString()).replace("MM",i).replace("dd",l).replace("hh",s).replace("mm",c).replace("ss",d)},cl=(t,n)=>{const o=+new Date(t),r=n?+new Date(n):+new Date,a=Math.abs(r-o),i=1e3,l=i*60,s=l*60,c=s*24,d=c*7,u=c*30,m=u*12;return a<1?"\u521A\u521A":a<l?`${Math.floor(a/i)} \u79D2\u524D`:a<s?`${Math.floor(a/l)} \u5206\u524D`:a<c?`${Math.floor(a/s)} \u65F6\u524D`:a<d?`${Math.floor(a/c)} \u5929\u524D`:a<u?`${Math.floor(a/d)} \u5468\u524D`:a<m?`${Math.floor(a/u)} \u6708\u524D`:`${Math.floor(a/m)} \u5E74\u524D`},dl=(t,n)=>{const o=+new Date(t),r=n?+new Date(n):+new Date;return Math.floor(Math.abs(o-r)/(1e3*60*60*24))},$d=(t,n)=>{if(n)return/^(?:[a-z]+:|\/\/)/i.test(n)||!n.startsWith("/")?n:`${t}${n}`.replace(/\/+/g,"/")},Fo=t=>t.charAt(0).toUpperCase()+t.slice(1),Be=(t,n="px")=>t?Qt(t)||al(t)?`${t}${n}`:X(t)?t:"":"",ul=(t,n="px")=>{if(t){if(Qt(t))return t;if(X(t))return Number(t.replace(n,""))}},fl=(t,n,o)=>{let r={...t};return n.includes(".")?(n.split(".").forEach(a=>r=r[a]??""),r||o):r[n]||o},zd=(t,n,o=!1)=>{if(!o)return n.removeItem(t);const r=[];for(let a=0;a<n.length;a++){const i=n.key(a);i&&i.startsWith(i)&&r.push(i)}r.forEach(a=>n.removeItem(a))},_o=t=>{let n="";if(!/^\#?[0-9A-Fa-f]{6}$/.test(t))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex");t=t.replace("#",""),n=t.match(/../g);for(let r=0;r<3;r++)n[r]=parseInt(n[r],16);return n},Io=(t,n,o)=>{const r=/^\d{1,3}$/;if(!r.test(t)||!r.test(n)||!r.test(o))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 rgb \u989C\u8272\u503C");const a=[t.toString(16),n.toString(16),o.toString(16)];for(let i=0;i<3;i++)a[i].length===1&&(a[i]=`0${a[i]}`);return`#${a.join("")}`},De=(t,n)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(t))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex \u989C\u8272\u503C");const r=_o(t);for(let a=0;a<3;a++)r[a]=Math.round(20.5*n+r[a]*(1-n));return Io(r[0],r[1],r[2])},Pe=(t,n)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(t))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex \u989C\u8272\u503C");const r=_o(t);for(let a=0;a<3;a++)r[a]=Math.round(255*n+r[a]*(1-n));return Io(r[0],r[1],r[2])},ml=t=>{if(!D)return;const{id:n,production:o=!0}=t||{};if(!(o&&process.env.NODE_ENV!=="production")){if(!n)return console.warn("[Teek Warning] Baidu analytics id is empty");if(!document.querySelector(`#baidu-analytics-${n}`)){window._hmt=window._hmt||[];const r=document.createElement("script");r.id=`baidu-analytics-${n}`,r.async=!0,r.src=`https://hm.baidu.com/hm.js?${n}`,document.querySelector("head")?.appendChild(r)}}},pl=(t,n)=>{if(!D)return;const{id:o,production:r=!0}=t||{};if(!(r&&process.env.NODE_ENV!=="production")&&o){if((!n||!X(n))&&(n="/"),n.startsWith("http")){const a=n.split("/"),i=`${a[0]}//${a[2]}`;n=n.replace(i,"")}window._hmt&&(window._hmt.push(["_setAccount",o]),window._hmt.push(["_trackPageview",n]))}},hl=t=>{if(!D||window.dataLayer&&window.gtag)return;const{id:n,production:o=!0}=t||{};if(!(o&&process.env.NODE_ENV!=="production")){if(!n)return console.warn("[Teek Warning] Google analytics id is empty");if(!document.querySelector(`#google-analytics-${n}`)){const r=document.createElement("script");r.id=`google-analytics-${n}`,r.src=`https://www.googletagmanager.com/gtag/js?id=${n}`,r.async=!0,document.head.appendChild(r),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},gtag("js",new Date),gtag("config",n)}}},gl=(t,n=!0)=>{if(!D||n&&process.env.NODE_ENV!=="production")return;let o=[];if(Array.isArray(t)?o.push(...t):o.push(t),o=o.filter(r=>!!r.id),!!o.length)for(const r of o){const{id:a,src:i}=r;if(!document.querySelector(`#umami-analytics-${a}`)){const l=document.createElement("script");l.id=`umami-analytics-${a}`,l.async=!0,l.defer=!0,l.setAttribute("data-website-id",a),l.src=i,document.head.appendChild(l)}}},vl=t=>{if(!D||window.clarity&&window.clarity.q)return;const{id:n,production:o=!0}=t||{};if(!(o&&process.env.NODE_ENV!=="production")){if(!n)return console.warn("[Teek Warning] Microsoft Clarity analytics id is empty");if(!document.querySelector(`#clarity-analytics-${n}`)){const r=document.createElement("script");r.id=`clarity-analytics-${n}`,r.async=!0,r.src=`https://www.clarity.ms/tag/${n}`,document.head.appendChild(r),window.clarity??(window.clarity=function(){var a;((a=window.clarity).q??(a.q=[])).push(arguments)})}}},Ue=t=>e.getCurrentScope()?(e.onScopeDispose(t),!0):!1,K=(t,n,o,r)=>{const a=[],i=()=>{a.forEach(u=>u()),a.length=0},l=(u,m,f,p)=>(u.addEventListener(m,f,p),()=>u.removeEventListener(m,f,p)),s=e.computed(()=>{if(!D)return;const u=e.toValue(t)||window;return u?.$el??u}),c=e.watch(s,u=>{i(),u&&a.push(l(u,n,o,r))},{flush:"post",immediate:!0}),d=()=>{c(),i()};return Ue(i),d};let yl=!1;const kl=(t,n,o={})=>{const{ignore:r=[],capture:a=!0,detectIframe:i=!1,controls:l=!1}=o;if(!D)return l?{stop:()=>{},cancel:()=>{},trigger:()=>{}}:()=>{};if(il()&&!yl){yl=!0;const g={passive:!0};Array.from(window.document.body.children).forEach(v=>K(v,"click",()=>{},g)),K(window.document.documentElement,"click",()=>{},g)}let s=!0;const c=g=>e.toValue(r).some(v=>{if(typeof v=="string")return Array.from(window.document.querySelectorAll(v)).some(y=>y===g.target||g.composedPath().includes(y));{const y=e.toValue(v);return y&&(g.target===y||g.composedPath().includes(y))}});function d(g){const v=e.toValue(g);return v&&v.$.subTree.shapeFlag===16}function u(g,v){const y=e.toValue(g),k=y.$.subTree&&y.$.subTree.children;return k==null||!Array.isArray(k)?!1:k.some(b=>b.el===v.target||v.composedPath().includes(b.el))}const m=g=>{const v=e.toValue(t),y=v?.$el??v;if(g.target!=null&&!(!(y instanceof Element)&&d(t)&&u(t,g))&&!(!y||y===g.target||g.composedPath().includes(y))){if("detail"in g&&g.detail===0&&(s=!c(g)),!s){s=!0;return}n(g)}};let f=!1;const p=[K(window,"click",g=>{f||(f=!0,setTimeout(()=>{f=!1},0),m(g))},{passive:!0,capture:a}),K(window,"pointerdown",g=>{const v=e.toValue(t),y=v?.$el??v;s=!c(g)&&!!(y&&!g.composedPath().includes(y))},{passive:!0}),i&&K(window,"blur",g=>{setTimeout(()=>{const v=e.toValue(t),y=v?.$el??v;window.document.activeElement?.tagName==="IFRAME"&&!y?.contains(window.document.activeElement)&&n(g)},0)},{passive:!0})].filter(Boolean),h=()=>p.forEach(g=>g());return l?{stop:h,cancel:()=>{s=!1},trigger:g=>{s=!0,m(g),s=!1}}:h},bt=(t,n={})=>{const{sync:o=!1,nexTick:r=!0}=n,a=e.shallowRef(!1),i=e.getCurrentInstance();return i?e.onMounted(()=>{a.value=!0,t?.()},i):o?t?.():r&&e.nextTick(()=>t?.()),a},Cl=()=>{const{theme:t}=F.useData(),n=e.reactive({id:"",top:-1}),o=()=>{const a=document.querySelectorAll(".content-container .main :is(h1, h2, h3, h4, h5, h6)");for(let i=0;i<a.length;i++){const l=a[i];if(window.getComputedStyle(l).display==="none")break;const c=l.getBoundingClientRect();c.top<=150&&l.id!==n.id&&(n.id=l.id,n.top=c.top)}};return bt(()=>{K(window,"scroll",o)}),{startWatch:()=>{t.value.anchorScroll!==!1&&e.watch(()=>n.id,a=>{!D||!a||window.history.replaceState(history.state||null,"",`#${a}`)})}}},Mo=(t=1500)=>{const n=e.ref(!1),o=e.ref(""),r=e.ref(!1);D&&navigator.clipboard&&document.execCommand,r.value=!0;const a=async(l,s=-1)=>{if(!D)return;if(navigator.clipboard)return await navigator.clipboard.writeText(l).then(()=>{o.value=l,n.value=!0,i()});const c=document.createElement("input");c.setAttribute("readonly","readonly"),c.setAttribute("value",l),document.body.appendChild(c),c.select(),s>0&&c.setSelectionRange(0,s),document.execCommand("copy")&&(o.value=l,document.execCommand("copy"),n.value=!0,i()),document.body.removeChild(c)},i=()=>{setTimeout(()=>{n.value=!1},t)};return{copy:a,text:o,copied:n,isSupported:r}};var Do={namespace:"tk"};const I=(t="",n)=>{const o=n||Do.namespace,r=y=>f(o,t,y),a=y=>f(o,t,"",y),i=y=>f(o,t,"","",y),l=(y,k)=>f(o,t,y,k),s=(y,k)=>f(o,t,y,"",k),c=(y,k)=>f(o,t,"",y,k),d=(y,k,b)=>f(o,t,y,k,b),u=(y,k=!0)=>k?`is-${y}`:"",m=(y,k=!0)=>k?`has-${y}`:"",f=(y,k,b,w,A)=>{let N=`${y}-${k}`;return b&&(N+=`-${b}`),w&&(N+=`__${w}`),A&&(N+=`--${A}`),N},p=y=>`${o}-${y}`,h=y=>`var(--${o}-${y})`,g=y=>`--${o}-${y}`,v=(...y)=>`${o}:${y.join(":")}`;return{namespaceModule:Do,namespace:Do.namespace,b:r,e:a,m:i,be:l,bm:s,em:c,bem:d,is:u,has:m,createBem:f,join:p,cssVar:h,cssVarName:g,storageKey:v}},Od=(t="\u590D\u5236\u6210\u529F\uFF0C\u590D\u5236\u548C\u8F6C\u8F7D\u8BF7\u6807\u6CE8\u672C\u6587\u5730\u5740",n=3e3)=>{if(!D)return;const o=I("copy-banner"),r=()=>{if(!window.getSelection()?.toString().trim())return;a();const i=o.e("slide"),l=document.createElement("div"),s=document.createElement("div");l.className=o.b(),l.innerHTML=`
1
+ /*! vitepress-theme-teek v1.6.2 */(function(C,Ct){typeof exports=="object"&&typeof module<"u"?Ct(exports,require("vitepress/theme"),require("vue"),require("vitepress"),require("vitepress-theme-teek/theme-chalk/tk-copy-banner.css"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["exports","vitepress/theme","vue","vitepress","vitepress-theme-teek/theme-chalk/tk-copy-banner.css","@iconify/vue"],Ct):(C=typeof globalThis<"u"?globalThis:C||self,Ct(C.Teek={},C.VitePressTheme,C.Vue,C.VitePress,null,C.IconifyVue))})(this,function(C,Ct,e,F,E8,An){"use strict";function Cd(t){var n=Object.create(null);return t&&Object.keys(t).forEach(function(o){if(o!=="default"){var r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return t[o]}})}}),n.default=t,Object.freeze(n)}var bd=Cd(e);const Ao=t=>/^(http?:|https?:|mailto:|tel:)/.test(t),xn=t=>{try{return new URL(t),!0}catch{return!1}},Ed=t=>t===null?"null":typeof t!="object"?typeof t:Object.prototype.toString.call(t).slice(8,-1).toLocaleLowerCase(),Ge=(t,n)=>Object.prototype.toString.call(t)===`[object ${n}]`,wd=t=>Ge(t,"Function"),oe=t=>Ge(t,"Function")||ll(t),Bd=t=>t!==void 0,Sd=t=>t===void 0,lt=t=>t!==null&&Ge(t,"Object"),Td=t=>Ge(t,"Date"),Qt=t=>Ge(t,"Number")&&!Number.isNaN(t),al=t=>X(t)?!Number.isNaN(Number(t)):!1,ll=t=>Ge(t,"AsyncFunction"),Nd=t=>Ge(t,"Promise")&&lt(t)&&oe(t.then)&&oe(t.catch),X=t=>Ge(t,"String"),it=t=>Ge(t,"Boolean"),xo=t=>typeof Array.isArray>"u"?Object.prototype.toString.call(t)==="[object Array]":Array.isArray(t),Ln=t=>typeof Element>"u"?!1:t instanceof Element,Ad=t=>t===null,xd=t=>t===null&&t===void 0,Ld=t=>t==null,Fd=t=>/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(t),_d=t=>/(https?:\/\/|data:image\/).*?\.(png|jpg|jpeg|gif|svg|webp|ico)/gi.test(t),Id=t=>t&&["IMAGE","IMG"].includes(t.tagName),il=()=>D&&window?.navigator?.userAgent&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent)),Md=(t,n=!0)=>Qt(t)&&isNaN(t)||t===""||t===null||t===void 0?!0:n?!!(xo(t)&&!t.length||lt(t)&&!Object.keys(t).length):!1,sl=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.tabIndex<0||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true")return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},D=typeof window<"u"&&typeof document<"u",Dd=!D,Pd=D,Lo=(t="yyyy-MM-dd hh:mm:ss",n=!0)=>It(new Date,t,n),It=(t,n="yyyy-MM-dd hh:mm:ss",o=!0)=>{if(!t)return"";if(X(t)&&t?.length===n.length)return t;const r=new Date(t),a=o?r.getUTCFullYear():r.getFullYear(),i=String((o?r.getUTCMonth():r.getMonth())+1).padStart(2,"0"),l=String(o?r.getUTCDate():r.getDate()).padStart(2,"0"),s=String(o?r.getUTCHours():r.getHours()).padStart(2,"0"),c=String(o?r.getUTCMinutes():r.getMinutes()).padStart(2,"0"),d=String(o?r.getUTCSeconds():r.getSeconds()).padStart(2,"0");return n.replace("yyyy",a.toString()).replace("MM",i).replace("dd",l).replace("hh",s).replace("mm",c).replace("ss",d)},cl=(t,n)=>{const o=+new Date(t),r=n?+new Date(n):+new Date,a=Math.abs(r-o),i=1e3,l=i*60,s=l*60,c=s*24,d=c*7,u=c*30,m=u*12;return a<1?"\u521A\u521A":a<l?`${Math.floor(a/i)} \u79D2\u524D`:a<s?`${Math.floor(a/l)} \u5206\u524D`:a<c?`${Math.floor(a/s)} \u65F6\u524D`:a<d?`${Math.floor(a/c)} \u5929\u524D`:a<u?`${Math.floor(a/d)} \u5468\u524D`:a<m?`${Math.floor(a/u)} \u6708\u524D`:`${Math.floor(a/m)} \u5E74\u524D`},dl=(t,n)=>{const o=+new Date(t),r=n?+new Date(n):+new Date;return Math.floor(Math.abs(o-r)/(1e3*60*60*24))},$d=(t,n)=>{if(n)return/^(?:[a-z]+:|\/\/)/i.test(n)||!n.startsWith("/")?n:`${t}${n}`.replace(/\/+/g,"/")},Fo=t=>t.charAt(0).toUpperCase()+t.slice(1),Be=(t,n="px")=>t?Qt(t)||al(t)?`${t}${n}`:X(t)?t:"":"",ul=(t,n="px")=>{if(t){if(Qt(t))return t;if(X(t))return Number(t.replace(n,""))}},fl=(t,n,o)=>{let r={...t};return n.includes(".")?(n.split(".").forEach(a=>r=r[a]??""),r||o):r[n]||o},zd=(t,n,o=!1)=>{if(!o)return n.removeItem(t);const r=[];for(let a=0;a<n.length;a++){const i=n.key(a);i&&i.startsWith(i)&&r.push(i)}r.forEach(a=>n.removeItem(a))},_o=t=>{let n="";if(!/^\#?[0-9A-Fa-f]{6}$/.test(t))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex");t=t.replace("#",""),n=t.match(/../g);for(let r=0;r<3;r++)n[r]=parseInt(n[r],16);return n},Io=(t,n,o)=>{const r=/^\d{1,3}$/;if(!r.test(t)||!r.test(n)||!r.test(o))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 rgb \u989C\u8272\u503C");const a=[t.toString(16),n.toString(16),o.toString(16)];for(let i=0;i<3;i++)a[i].length===1&&(a[i]=`0${a[i]}`);return`#${a.join("")}`},De=(t,n)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(t))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex \u989C\u8272\u503C");const r=_o(t);for(let a=0;a<3;a++)r[a]=Math.round(20.5*n+r[a]*(1-n));return Io(r[0],r[1],r[2])},Pe=(t,n)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(t))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex \u989C\u8272\u503C");const r=_o(t);for(let a=0;a<3;a++)r[a]=Math.round(255*n+r[a]*(1-n));return Io(r[0],r[1],r[2])},ml=t=>{if(!D)return;const{id:n,production:o=!0}=t||{};if(!(o&&process.env.NODE_ENV!=="production")){if(!n)return console.warn("[Teek Warning] Baidu analytics id is empty");if(!document.querySelector(`#baidu-analytics-${n}`)){window._hmt=window._hmt||[];const r=document.createElement("script");r.id=`baidu-analytics-${n}`,r.async=!0,r.src=`https://hm.baidu.com/hm.js?${n}`,document.querySelector("head")?.appendChild(r)}}},pl=(t,n)=>{if(!D)return;const{id:o,production:r=!0}=t||{};if(!(r&&process.env.NODE_ENV!=="production")&&o){if((!n||!X(n))&&(n="/"),n.startsWith("http")){const a=n.split("/"),i=`${a[0]}//${a[2]}`;n=n.replace(i,"")}window._hmt&&(window._hmt.push(["_setAccount",o]),window._hmt.push(["_trackPageview",n]))}},hl=t=>{if(!D||window.dataLayer&&window.gtag)return;const{id:n,production:o=!0}=t||{};if(!(o&&process.env.NODE_ENV!=="production")){if(!n)return console.warn("[Teek Warning] Google analytics id is empty");if(!document.querySelector(`#google-analytics-${n}`)){const r=document.createElement("script");r.id=`google-analytics-${n}`,r.src=`https://www.googletagmanager.com/gtag/js?id=${n}`,r.async=!0,document.head.appendChild(r),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},gtag("js",new Date),gtag("config",n)}}},gl=(t,n=!0)=>{if(!D||n&&process.env.NODE_ENV!=="production")return;let o=[];if(Array.isArray(t)?o.push(...t):o.push(t),o=o.filter(r=>!!r.id),!!o.length)for(const r of o){const{id:a,src:i}=r;if(!document.querySelector(`#umami-analytics-${a}`)){const l=document.createElement("script");l.id=`umami-analytics-${a}`,l.async=!0,l.defer=!0,l.setAttribute("data-website-id",a),l.src=i,document.head.appendChild(l)}}},vl=t=>{if(!D||window.clarity&&window.clarity.q)return;const{id:n,production:o=!0}=t||{};if(!(o&&process.env.NODE_ENV!=="production")){if(!n)return console.warn("[Teek Warning] Microsoft Clarity analytics id is empty");if(!document.querySelector(`#clarity-analytics-${n}`)){const r=document.createElement("script");r.id=`clarity-analytics-${n}`,r.async=!0,r.src=`https://www.clarity.ms/tag/${n}`,document.head.appendChild(r),window.clarity??(window.clarity=function(){var a;((a=window.clarity).q??(a.q=[])).push(arguments)})}}},Ue=t=>e.getCurrentScope()?(e.onScopeDispose(t),!0):!1,K=(t,n,o,r)=>{const a=[],i=()=>{a.forEach(u=>u()),a.length=0},l=(u,m,f,p)=>(u.addEventListener(m,f,p),()=>u.removeEventListener(m,f,p)),s=e.computed(()=>{if(!D)return;const u=e.toValue(t)||window;return u?.$el??u}),c=e.watch(s,u=>{i(),u&&a.push(l(u,n,o,r))},{flush:"post",immediate:!0}),d=()=>{c(),i()};return Ue(i),d};let yl=!1;const kl=(t,n,o={})=>{const{ignore:r=[],capture:a=!0,detectIframe:i=!1,controls:l=!1}=o;if(!D)return l?{stop:()=>{},cancel:()=>{},trigger:()=>{}}:()=>{};if(il()&&!yl){yl=!0;const g={passive:!0};Array.from(window.document.body.children).forEach(v=>K(v,"click",()=>{},g)),K(window.document.documentElement,"click",()=>{},g)}let s=!0;const c=g=>e.toValue(r).some(v=>{if(typeof v=="string")return Array.from(window.document.querySelectorAll(v)).some(y=>y===g.target||g.composedPath().includes(y));{const y=e.toValue(v);return y&&(g.target===y||g.composedPath().includes(y))}});function d(g){const v=e.toValue(g);return v&&v.$.subTree.shapeFlag===16}function u(g,v){const y=e.toValue(g),k=y.$.subTree&&y.$.subTree.children;return k==null||!Array.isArray(k)?!1:k.some(b=>b.el===v.target||v.composedPath().includes(b.el))}const m=g=>{const v=e.toValue(t),y=v?.$el??v;if(g.target!=null&&!(!(y instanceof Element)&&d(t)&&u(t,g))&&!(!y||y===g.target||g.composedPath().includes(y))){if("detail"in g&&g.detail===0&&(s=!c(g)),!s){s=!0;return}n(g)}};let f=!1;const p=[K(window,"click",g=>{f||(f=!0,setTimeout(()=>{f=!1},0),m(g))},{passive:!0,capture:a}),K(window,"pointerdown",g=>{const v=e.toValue(t),y=v?.$el??v;s=!c(g)&&!!(y&&!g.composedPath().includes(y))},{passive:!0}),i&&K(window,"blur",g=>{setTimeout(()=>{const v=e.toValue(t),y=v?.$el??v;window.document.activeElement?.tagName==="IFRAME"&&!y?.contains(window.document.activeElement)&&n(g)},0)},{passive:!0})].filter(Boolean),h=()=>p.forEach(g=>g());return l?{stop:h,cancel:()=>{s=!1},trigger:g=>{s=!0,m(g),s=!1}}:h},bt=(t,n={})=>{const{sync:o=!1,nexTick:r=!0}=n,a=e.shallowRef(!1),i=e.getCurrentInstance();return i?e.onMounted(()=>{a.value=!0,t?.()},i):o?t?.():r&&e.nextTick(()=>t?.()),a},Cl=()=>{const{theme:t}=F.useData(),n=e.reactive({id:"",top:-1}),o=()=>{const a=document.querySelectorAll(".content-container .main :is(h1, h2, h3, h4, h5, h6)");for(let i=0;i<a.length;i++){const l=a[i];if(window.getComputedStyle(l).display==="none")break;const c=l.getBoundingClientRect();c.top<=150&&l.id!==n.id&&(n.id=l.id,n.top=c.top)}};return bt(()=>{K(window,"scroll",o)}),{startWatch:()=>{t.value.anchorScroll!==!1&&e.watch(()=>n.id,a=>{!D||!a||window.history.replaceState(history.state||null,"",`#${a}`)})}}},Mo=(t=1500)=>{const n=e.ref(!1),o=e.ref(""),r=e.ref(!1);D&&navigator.clipboard&&document.execCommand,r.value=!0;const a=async(l,s=-1)=>{if(!D)return;if(navigator.clipboard)return await navigator.clipboard.writeText(l).then(()=>{o.value=l,n.value=!0,i()});const c=document.createElement("input");c.setAttribute("readonly","readonly"),c.setAttribute("value",l),document.body.appendChild(c),c.select(),s>0&&c.setSelectionRange(0,s),document.execCommand("copy")&&(o.value=l,document.execCommand("copy"),n.value=!0,i()),document.body.removeChild(c)},i=()=>{setTimeout(()=>{n.value=!1},t)};return{copy:a,text:o,copied:n,isSupported:r}};var Do={namespace:"tk"};const I=(t="",n)=>{const o=n||Do.namespace,r=y=>f(o,t,y),a=y=>f(o,t,"",y),i=y=>f(o,t,"","",y),l=(y,k)=>f(o,t,y,k),s=(y,k)=>f(o,t,y,"",k),c=(y,k)=>f(o,t,"",y,k),d=(y,k,b)=>f(o,t,y,k,b),u=(y,k=!0)=>k?`is-${y}`:"",m=(y,k=!0)=>k?`has-${y}`:"",f=(y,k,b,w,A)=>{let N=`${y}-${k}`;return b&&(N+=`-${b}`),w&&(N+=`__${w}`),A&&(N+=`--${A}`),N},p=y=>`${o}-${y}`,h=y=>`var(--${o}-${y})`,g=y=>`--${o}-${y}`,v=(...y)=>`${o}:${y.join(":")}`;return{namespaceModule:Do,namespace:Do.namespace,b:r,e:a,m:i,be:l,bm:s,em:c,bem:d,is:u,has:m,createBem:f,join:p,cssVar:h,cssVarName:g,storageKey:v}},Od=(t="\u590D\u5236\u6210\u529F\uFF0C\u590D\u5236\u548C\u8F6C\u8F7D\u8BF7\u6807\u6CE8\u672C\u6587\u5730\u5740",n=3e3)=>{if(!D)return;const o=I("copy-banner"),r=()=>{if(!window.getSelection()?.toString().trim())return;a();const i=o.e("slide"),l=document.createElement("div"),s=document.createElement("div");l.className=o.b(),l.innerHTML=`
2
2
  <div class="${o.e("content")}">
3
3
  <p class="${o.e("desc")}">${t}</p>
4
4
  </div>
@@ -712,4 +712,4 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
712
712
  `+t.slice(a,i),a=i+1),l=s;return c+=`
713
713
  `,t.length-a>n&&l>a?c+=t.slice(a,l)+`
714
714
  `+t.slice(l+1):c+=t.slice(a),c.slice(1)}function Gh(t){for(var n="",o=0,r,a=0;a<t.length;o>=65536?a+=2:a++)o=Tn(t,a),r=Ce[o],!r&&Sn(o)?(n+=t[a],o>=65536&&(n+=t[a+1])):n+=r||Oh(o);return n}function Xh(t,n,o){var r="",a=t.tag,i,l,s;for(i=0,l=o.length;i<l;i+=1)s=o[i],t.replacer&&(s=t.replacer.call(o,String(i),s)),(rt(t,n,s,!1,!1)||typeof s>"u"&&rt(t,n,null,!1,!1))&&(r!==""&&(r+=","+(t.condenseFlow?"":" ")),r+=t.dump);t.tag=a,t.dump="["+r+"]"}function hd(t,n,o,r){var a="",i=t.tag,l,s,c;for(l=0,s=o.length;l<s;l+=1)c=o[l],t.replacer&&(c=t.replacer.call(o,String(l),c)),(rt(t,n+1,c,!0,!0,!1,!0)||typeof c>"u"&&rt(t,n+1,null,!0,!0,!1,!0))&&((!r||a!=="")&&(a+=el(t,n)),t.dump&&wn===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=i,t.dump=a||"[]"}function Jh(t,n,o){var r="",a=t.tag,i=Object.keys(o),l,s,c,d,u;for(l=0,s=i.length;l<s;l+=1)u="",r!==""&&(u+=", "),t.condenseFlow&&(u+='"'),c=i[l],d=o[c],t.replacer&&(d=t.replacer.call(o,c,d)),rt(t,n,c,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),rt(t,n,d,!1,!1)&&(u+=t.dump,r+=u));t.tag=a,t.dump="{"+r+"}"}function Qh(t,n,o,r){var a="",i=t.tag,l=Object.keys(o),s,c,d,u,m,f;if(t.sortKeys===!0)l.sort();else if(typeof t.sortKeys=="function")l.sort(t.sortKeys);else if(t.sortKeys)throw new Ee("sortKeys must be a boolean or a function");for(s=0,c=l.length;s<c;s+=1)f="",(!r||a!=="")&&(f+=el(t,n)),d=l[s],u=o[d],t.replacer&&(u=t.replacer.call(o,d,u)),rt(t,n+1,d,!0,!0,!0)&&(m=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,m&&(t.dump&&wn===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,m&&(f+=el(t,n)),rt(t,n+1,u,!0,m)&&(t.dump&&wn===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,a+=f));t.tag=i,t.dump=a||"{}"}function gd(t,n,o){var r,a,i,l,s,c;for(a=o?t.explicitTypes:t.implicitTypes,i=0,l=a.length;i<l;i+=1)if(s=a[i],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof n=="object"&&n instanceof s.instanceOf)&&(!s.predicate||s.predicate(n))){if(o?s.multi&&s.representName?t.tag=s.representName(n):t.tag=s.tag:t.tag="?",s.represent){if(c=t.styleMap[s.tag]||s.defaultStyle,Z1.call(s.represent)==="[object Function]")r=s.represent(n,c);else if(V1.call(s.represent,c))r=s.represent[c](n,c);else throw new Ee("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');t.dump=r}return!0}return!1}function rt(t,n,o,r,a,i,l){t.tag=null,t.dump=o,gd(t,o,!1)||gd(t,o,!0);var s=Z1.call(t.dump),c=r,d;r&&(r=t.flowLevel<0||t.flowLevel>n);var u=s==="[object Object]"||s==="[object Array]",m,f;if(u&&(m=t.duplicates.indexOf(o),f=m!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&n>0)&&(a=!1),f&&t.usedDuplicates[m])t.dump="*ref_"+m;else{if(u&&f&&!t.usedDuplicates[m]&&(t.usedDuplicates[m]=!0),s==="[object Object]")r&&Object.keys(t.dump).length!==0?(Qh(t,n,t.dump,a),f&&(t.dump="&ref_"+m+t.dump)):(Jh(t,n,t.dump),f&&(t.dump="&ref_"+m+" "+t.dump));else if(s==="[object Array]")r&&t.dump.length!==0?(t.noArrayIndent&&!l&&n>0?hd(t,n-1,t.dump,a):hd(t,n,t.dump,a),f&&(t.dump="&ref_"+m+t.dump)):(Xh(t,n,t.dump),f&&(t.dump="&ref_"+m+" "+t.dump));else if(s==="[object String]")t.tag!=="?"&&Kh(t,t.dump,n,i,c);else{if(s==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Ee("unacceptable kind of an object to dump "+s)}t.tag!==null&&t.tag!=="?"&&(d=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?d="!"+d:d.slice(0,18)==="tag:yaml.org,2002:"?d="!!"+d.slice(18):d="!<"+d+">",t.dump=d+" "+t.dump)}return!0}function Zh(t,n){var o=[],r=[],a,i;for(nl(t,o,r),a=0,i=r.length;a<i;a+=1)n.duplicates.push(o[r[a]]);n.usedDuplicates=new Array(i)}function nl(t,n,o){var r,a,i;if(t!==null&&typeof t=="object")if(a=n.indexOf(t),a!==-1)o.indexOf(a)===-1&&o.push(a);else if(n.push(t),Array.isArray(t))for(a=0,i=t.length;a<i;a+=1)nl(t[a],n,o);else for(r=Object.keys(t),a=0,i=r.length;a<i;a+=1)nl(t[r[a]],n,o)}function Vh(t,n){n=n||{};var o=new Hh(n);o.noRefs||Zh(t,o);var r=t;return o.replacer&&(r=o.replacer.call({"":r},"",r)),rt(o,0,r,!0,!0)?o.dump+`
715
- `:""}var e8=Vh,t8={dump:e8};function ol(t,n){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var n8=pe,o8=v1,r8=b1,a8=T1,l8=N1,i8=Ga,s8=Q1.load,c8=Q1.loadAll,d8=t8.dump,u8=Ee,f8={binary:_1,float:S1,map:C1,null:E1,pairs:M1,set:D1,timestamp:L1,bool:w1,int:B1,merge:F1,omap:I1,seq:k1,str:y1},m8=ol("safeLoad","load"),p8=ol("safeLoadAll","loadAll"),h8=ol("safeDump","dump"),g8={Type:n8,Schema:o8,FAILSAFE_SCHEMA:r8,JSON_SCHEMA:a8,CORE_SCHEMA:l8,DEFAULT_SCHEMA:i8,load:s8,loadAll:c8,dump:d8,YAMLException:u8,types:f8,safeLoad:m8,safeLoadAll:p8,safeDump:h8};const v8=(t,n)=>{n.forEach(o=>vd(t,o))},vd=(t,n)=>{const{type:o,className:r,beforeHtmlRender:a,htmlRender:i,afterHtmlRender:l,transformHtml:s}=n;t.use(m1,o,{}),t.renderer.rules[`container_${o}_open`]=(c,d)=>{const u=c[d];let m=`<div class="${r||`${o}-container`}">`;for(let f=d;f<c.length;f++){const p=c[f];if(p.type===`container_${o}_close`)break;if(!["yaml","yml"].includes(p.info))continue;const h=g8.load(p.content.trim());let g,v={};Array.isArray(h)?g=h:(g=h.data||[],v=h.config||{});const y=u.info.trim().slice(o.length).trim();a?.({data:g,config:v},y,c,f)!==!1&&(m+=i({data:g,config:v},y,c,f),l?.({data:g,config:v},y,c,f))}return m=s?.(m)??m,m}},y8="1.6.1";var k8={extends:Ct,Layout:Gi(f1),async enhanceApp({app:t,siteData:n,router:o}){if(t.component("TkCataloguePage",za),t.component("TkArchivesPage",$a),t.component("TkArticleOverviewPage",Oa),t.component("TkLoginPage",ja),t.component("TkRiskLinkPage",Ua),t.component("TkDemoCode",wc),t.component("TkTitleTag",rn),t.component("TkIcon",P),!D)return;const{themeConfig:r}=n.value;C8(r),r.permalinks&&await b8({siteData:n,router:o})}};const C8=t=>{const n=t.siteAnalytics||[],o={baidu:r=>{ml(r),D&&pl(r,window.location.href)},google:r=>hl(r),umami:r=>gl(r),clarity:r=>vl(r)};n.forEach(r=>{o[r.provider]?.(r.options)})},b8=async({siteData:t,router:n})=>{const{base:o,cleanUrls:r,themeConfig:a}=t.value;if(n.route.path===o&&n.route.data.isNotFound){const{pathname:i,search:l,hash:s}=new URL(location.href),c="/"+decodeURIComponent(i.slice(o.length)).replace(/\/$/,"").replace(/\.html/,""),d=r?c:c+".html",u=a.permalinks.inv[d];if(u){const m=o+u+l+s;await n.go(m)}}};Object.defineProperty(C,"addIcons",{enumerable:!0,get:function(){return An.addCollection}}),C.LayoutMode=Re,C.SpotlightStyle=vt,C.StorageSerializers=Sl,C.TeekConfigProvider=Gi,C.ThemeColorName=ke,C.TkArchivesPage=$a,C.TkArticleAnalyze=_r,C.TkArticleBreadcrumb=Fr,C.TkArticleCodeBlock=yc,C.TkArticleHeadingHighlight=Zi,C.TkArticleImagePreview=Vi,C.TkArticleInfo=Gn,C.TkArticleOverviewPage=Oa,C.TkArticlePage=Pn,C.TkArticlePageStyle=es,C.TkArticleShare=ts,C.TkArticleTitle=Ut,C.TkArticleUpdate=mc,C.TkAsideBottomAppreciation=Xi,C.TkAvatar=$n,C.TkBodyBgImage=pc,C.TkBreadcrumb=Rl,C.TkBreadcrumbItem=Vo,C.TkCatalogueItem=i1,C.TkCataloguePage=za,C.TkCommentArtalk=kc,C.TkCommentGiscus=Cc,C.TkCommentTwikoo=bc,C.TkCommentWaline=Ec,C.TkDemoCode=wc,C.TkDocAfterAppreciation=Ji,C.TkDocAfterAppreciationPopper=Qi,C.TkDocAsideOutline=zl,C.TkFocusTrap=rr,C.TkFooterGroup=Bc,C.TkFooterInfo=Sc,C.TkHomeBanner=Mc,C.TkHomeBannerBgImage=Aa,C.TkHomeBannerBgPure=Lc,C.TkHomeBannerContent=Fc,C.TkHomeBannerFeature=_c,C.TkHomeBannerWaves=xa,C.TkHomeCardCategory=zc,C.TkHomeCardDocAnalysis=jc,C.TkHomeCardFriendLink=Hc,C.TkHomeCardMain=Uc,C.TkHomeCardMy=Dc,C.TkHomeCardMyScreen=Pc,C.TkHomeCardTag=Oc,C.TkHomeCardTopArticle=$c,C.TkHomeFeature=qc,C.TkHomeFullscreenWallpaper=Tc,C.TkHomeMain=Wc,C.TkHomePost=xc,C.TkHomePostItemCard=Na,C.TkHomePostItemList=Ta,C.TkIcon=P,C.TkImageViewer=_i,C.TkInputSlide=Sr,C.TkLayout=f1,C.TkLoginPage=ja,C.TkMessage=de,C.TkNotice=l1,C.TkPageCard=At,C.TkPagination=ji,C.TkPopover=on,C.TkRightBottomButton=a1,C.TkRiskLinkPage=Ua,C.TkRouteLoading=u1,C.TkSegmented=qn,C.TkSegmentedItem=Ui,C.TkSidebarTrigger=d1,C.TkSwitch=e1,C.TkThemeEnhance=r1,C.TkThemeEnhanceBaseTemplate=Lt,C.TkTitleTag=rn,C.TkTransitionCollapse=Wi,C.TkVerifyCode=qi,C.TkVpContainer=Tr,C.WhatsApp=p0,C.Z_INDEX_INJECTION_KEY=Qo,C.activateMaxWidthSlideMedia=Ia,C.addUnit=Be,C.aliPayIcon=ar,C.alignLeftIcon=xi,C.alignTextLeftIcon=Li,C.arrowDownIcon=lr,C.arrowLeftIcon=Un,C.arrowRightIcon=Wn,C.artalkContext=Ca,C.autoWidthIcon=nn,C.baiduAnalytics=ml,C.bilibili=g0,C.calendarIcon=li,C.callBusuanzi=Jo,C.callVercount=Ll,C.caretTopIcon=fi,C.categoryIcon=en,C.circleCloseFilledIcon=Ci,C.clarityAnalytics=vl,C.clickIcon=wr,C.clockIcon=ni,C.closeIcon=jn,C.codeIcon=ui,C.collectionTagIcon=si,C.commentIcon=fr,C.copyIcon=di,C.copyrightIcon=Jl,C.createCardContainer=vd,C.createCardContainers=v8,C.createContainerThenGet=Co,C.createContainerThenUse=G4,C.createContainersThenGet=J4,C.createContainersThenUse=X4,C.createDynamicComponent=ka,C.createImageViewer=Mi,C.createScript=Mn,C.dArrowLeftIcon=hi,C.dArrowRightIcon=pi,C.default=k8,C.defaultInitialZIndex=Dl,C.defaultPrivateConfig=Ha,C.docAnalysisIcon=ir,C.docMaxWidthSlideStorageKey=Xc,C.docMaxWidthVar=Yc,C.editPenIcon=pr,C.email=m0,C.emptyIcon=Ql,C.en=Rd,C.externalLinkIcon=mi,C.folderOpenedIcon=ii,C.formatDate=It,C.formatDiffDate=cl,C.formatDiffDateToDay=dl,C.friendLinkIcon=sr,C.fullScreenOneIcon=Si,C.fullscreenIcon=kr,C.fullscreenTwoIcon=Ti,C.get=fl,C.getDarkColor=De,C.getInstance=Pi,C.getLastOffset=$i,C.getLightColor=Pe,C.getLoginStorageKey=Ra,C.getNowDate=Lo,C.getOffsetOrSpace=zi,C.giscusContext=Ea,C.gitee=f0,C.github=v0,C.githubIcon=ci,C.googleAnalytics=hl,C.guessSerializerType=Tl,C.hexToRgb=_o,C.houseIcon=ri,C.icpRecordIcon=Zl,C.inBrowser=Pd,C.infoFilledIcon=bi,C.instances=We,C.is=Ge,C.isArray=xo,C.isAsyncFunction=ll,C.isBoolean=it,C.isClient=D,C.isDate=Td,C.isDef=Bd,C.isElement=Ln,C.isEmpty=Md,C.isExternal=Ao,C.isFocusable=sl,C.isFunction=oe,C.isImageDom=Id,C.isImagePath=_d,C.isIos=il,C.isNull=Ad,C.isNullAndUnDef=xd,C.isNullOrUnDef=Ld,C.isNumber=Qt,C.isObject=lt,C.isPhone=Fd,C.isPlainFunction=wd,C.isPromise=Nd,C.isServer=Dd,C.isString=X,C.isStringNumber=al,C.isType=Ed,C.isUnDef=Sd,C.isValidURL=xn,C.layoutIcon=Ni,C.layoutModeAttribute=Cn,C.layoutModeStorageKey=ko,C.localeContextKey=Po,C.lockIcon=Bi,C.loginUrlKeyMap=Ft,C.magicIcon=ai,C.mobileMaxWidthMedia=xt,C.moblieQQ=y0,C.moreFilledIcon=yr,C.music=k0,C.noticeIcon=Vl,C.ns=Y,C.onClickOutside=kl,C.overallReductionIcon=Ai,C.pageMaxWidthSlideStorageKey=Gc,C.pageMaxWidthVar=Kc,C.pageNumKey=gt,C.playgroundIcon=ei,C.postDataUpdateSymbol=ho,C.postsContext=Ki,C.questionFilledIcon=Ei,C.readingIcon=ur,C.refreshLeftIcon=gi,C.refreshRightIcon=Cr,C.removeStorageItem=zd,C.removeUnit=ul,C.rgbToHex=Io,C.rocketIcon=cr,C.scaleIcon=Br,C.scaleToOriginalIcon=vi,C.shareIcon=gr,C.sizeIcon=$0,C.spotlightStorageKey=Fa,C.spotlightStyleStorageKey=_a,C.successFilledIcon=br,C.tagIcon=tn,C.teekConfigContext=Yi,C.telegram=h0,C.themeBgColorStorageKey=Jc,C.themeColorAttribute=bn,C.themeColorList=kn,C.themeColorStorageKey=La,C.themeIcon=ti,C.thumbsIcon=vr,C.topArticleIcon=dr,C.topIcon=wi,C.touchMedia=Ma,C.trackPageview=pl,C.transitionName=yo,C.twikooContext=wa,C.umamiAnalytics=gl,C.upperFirst=Fo,C.useAllPosts=Nr,C.useAnchorScroll=Cl,C.useClipboard=Mo,C.useCommon=xr,C.useCopyBanner=Od,C.useDebounce=Xe,C.useElementHover=Fn,C.useEventListener=K,C.useIntersectionObserver=_l,C.useLocale=O,C.useMediaQuery=be,C.useMounted=bt,C.useNamespace=I,C.usePagePath=Dt,C.usePageState=Yn,C.usePopoverSize=wl,C.usePosts=ze,C.useRiskLink=c1,C.useScopeDispose=Ue,C.useScrollData=Bl,C.useScrollbarSize=El,C.useSidebar=Lr,C.useStorage=Fe,C.useSwitchData=In,C.useTagColor=Ar,C.useTeekConfig=M,C.useTextTypes=Nl,C.useThemeColor=Go,C.useThemeColorList=Pa,C.useUvPv=Xo,C.useViewTransition=Fl,C.useVpRouter=Ve,C.useWatchLogin=s1,C.useWindowSize=_n,C.useWindowTransition=Zt,C.useWindowTransitionConfig=an,C.useZIndex=Dn,C.userIcon=mr,C.varNameList=Se,C.verifyModeMap=ot,C.version=y8,C.viewIcon=oi,C.walineContext=Ba,C.warningFilledIcon=Er,C.waterIcon=Fi,C.weChatPayIcon=hr,C.withBase=$d,C.zIndexContextKey=Pl,C.zhCn=bl,C.zoomInIcon=yi,C.zoomOutIcon=ki,Object.defineProperty(C,"__esModule",{value:!0})});
715
+ `:""}var e8=Vh,t8={dump:e8};function ol(t,n){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var n8=pe,o8=v1,r8=b1,a8=T1,l8=N1,i8=Ga,s8=Q1.load,c8=Q1.loadAll,d8=t8.dump,u8=Ee,f8={binary:_1,float:S1,map:C1,null:E1,pairs:M1,set:D1,timestamp:L1,bool:w1,int:B1,merge:F1,omap:I1,seq:k1,str:y1},m8=ol("safeLoad","load"),p8=ol("safeLoadAll","loadAll"),h8=ol("safeDump","dump"),g8={Type:n8,Schema:o8,FAILSAFE_SCHEMA:r8,JSON_SCHEMA:a8,CORE_SCHEMA:l8,DEFAULT_SCHEMA:i8,load:s8,loadAll:c8,dump:d8,YAMLException:u8,types:f8,safeLoad:m8,safeLoadAll:p8,safeDump:h8};const v8=(t,n)=>{n.forEach(o=>vd(t,o))},vd=(t,n)=>{const{type:o,className:r,beforeHtmlRender:a,htmlRender:i,afterHtmlRender:l,transformHtml:s}=n;t.use(m1,o,{}),t.renderer.rules[`container_${o}_open`]=(c,d)=>{const u=c[d];let m=`<div class="${r||`${o}-container`}">`;for(let f=d;f<c.length;f++){const p=c[f];if(p.type===`container_${o}_close`)break;if(!["yaml","yml"].includes(p.info))continue;const h=g8.load(p.content.trim());let g,v={};Array.isArray(h)?g=h:(g=h.data||[],v=h.config||{});const y=u.info.trim().slice(o.length).trim();a?.({data:g,config:v},y,c,f)!==!1&&(m+=i({data:g,config:v},y,c,f),l?.({data:g,config:v},y,c,f))}return m=s?.(m)??m,m}},y8="1.6.2";var k8={extends:Ct,Layout:Gi(f1),async enhanceApp({app:t,siteData:n,router:o}){if(t.component("TkCataloguePage",za),t.component("TkArchivesPage",$a),t.component("TkArticleOverviewPage",Oa),t.component("TkLoginPage",ja),t.component("TkRiskLinkPage",Ua),t.component("TkDemoCode",wc),t.component("TkTitleTag",rn),t.component("TkIcon",P),!D)return;const{themeConfig:r}=n.value;C8(r),r.permalinks&&await b8({siteData:n,router:o})}};const C8=t=>{const n=t.siteAnalytics||[],o={baidu:r=>{ml(r),D&&pl(r,window.location.href)},google:r=>hl(r),umami:r=>gl(r),clarity:r=>vl(r)};n.forEach(r=>{o[r.provider]?.(r.options)})},b8=async({siteData:t,router:n})=>{const{base:o,cleanUrls:r,themeConfig:a}=t.value;if(n.route.path===o&&n.route.data.isNotFound){const{pathname:i,search:l,hash:s}=new URL(location.href),c="/"+decodeURIComponent(i.slice(o.length)).replace(/\/$/,"").replace(/\.html/,""),d=r?c:c+".html",u=a.permalinks.inv[d];if(u){const m=o+u+l+s;await n.go(m)}}};Object.defineProperty(C,"addIcons",{enumerable:!0,get:function(){return An.addCollection}}),C.LayoutMode=Re,C.SpotlightStyle=vt,C.StorageSerializers=Sl,C.TeekConfigProvider=Gi,C.ThemeColorName=ke,C.TkArchivesPage=$a,C.TkArticleAnalyze=_r,C.TkArticleBreadcrumb=Fr,C.TkArticleCodeBlock=yc,C.TkArticleHeadingHighlight=Zi,C.TkArticleImagePreview=Vi,C.TkArticleInfo=Gn,C.TkArticleOverviewPage=Oa,C.TkArticlePage=Pn,C.TkArticlePageStyle=es,C.TkArticleShare=ts,C.TkArticleTitle=Ut,C.TkArticleUpdate=mc,C.TkAsideBottomAppreciation=Xi,C.TkAvatar=$n,C.TkBodyBgImage=pc,C.TkBreadcrumb=Rl,C.TkBreadcrumbItem=Vo,C.TkCatalogueItem=i1,C.TkCataloguePage=za,C.TkCommentArtalk=kc,C.TkCommentGiscus=Cc,C.TkCommentTwikoo=bc,C.TkCommentWaline=Ec,C.TkDemoCode=wc,C.TkDocAfterAppreciation=Ji,C.TkDocAfterAppreciationPopper=Qi,C.TkDocAsideOutline=zl,C.TkFocusTrap=rr,C.TkFooterGroup=Bc,C.TkFooterInfo=Sc,C.TkHomeBanner=Mc,C.TkHomeBannerBgImage=Aa,C.TkHomeBannerBgPure=Lc,C.TkHomeBannerContent=Fc,C.TkHomeBannerFeature=_c,C.TkHomeBannerWaves=xa,C.TkHomeCardCategory=zc,C.TkHomeCardDocAnalysis=jc,C.TkHomeCardFriendLink=Hc,C.TkHomeCardMain=Uc,C.TkHomeCardMy=Dc,C.TkHomeCardMyScreen=Pc,C.TkHomeCardTag=Oc,C.TkHomeCardTopArticle=$c,C.TkHomeFeature=qc,C.TkHomeFullscreenWallpaper=Tc,C.TkHomeMain=Wc,C.TkHomePost=xc,C.TkHomePostItemCard=Na,C.TkHomePostItemList=Ta,C.TkIcon=P,C.TkImageViewer=_i,C.TkInputSlide=Sr,C.TkLayout=f1,C.TkLoginPage=ja,C.TkMessage=de,C.TkNotice=l1,C.TkPageCard=At,C.TkPagination=ji,C.TkPopover=on,C.TkRightBottomButton=a1,C.TkRiskLinkPage=Ua,C.TkRouteLoading=u1,C.TkSegmented=qn,C.TkSegmentedItem=Ui,C.TkSidebarTrigger=d1,C.TkSwitch=e1,C.TkThemeEnhance=r1,C.TkThemeEnhanceBaseTemplate=Lt,C.TkTitleTag=rn,C.TkTransitionCollapse=Wi,C.TkVerifyCode=qi,C.TkVpContainer=Tr,C.WhatsApp=p0,C.Z_INDEX_INJECTION_KEY=Qo,C.activateMaxWidthSlideMedia=Ia,C.addUnit=Be,C.aliPayIcon=ar,C.alignLeftIcon=xi,C.alignTextLeftIcon=Li,C.arrowDownIcon=lr,C.arrowLeftIcon=Un,C.arrowRightIcon=Wn,C.artalkContext=Ca,C.autoWidthIcon=nn,C.baiduAnalytics=ml,C.bilibili=g0,C.calendarIcon=li,C.callBusuanzi=Jo,C.callVercount=Ll,C.caretTopIcon=fi,C.categoryIcon=en,C.circleCloseFilledIcon=Ci,C.clarityAnalytics=vl,C.clickIcon=wr,C.clockIcon=ni,C.closeIcon=jn,C.codeIcon=ui,C.collectionTagIcon=si,C.commentIcon=fr,C.copyIcon=di,C.copyrightIcon=Jl,C.createCardContainer=vd,C.createCardContainers=v8,C.createContainerThenGet=Co,C.createContainerThenUse=G4,C.createContainersThenGet=J4,C.createContainersThenUse=X4,C.createDynamicComponent=ka,C.createImageViewer=Mi,C.createScript=Mn,C.dArrowLeftIcon=hi,C.dArrowRightIcon=pi,C.default=k8,C.defaultInitialZIndex=Dl,C.defaultPrivateConfig=Ha,C.docAnalysisIcon=ir,C.docMaxWidthSlideStorageKey=Xc,C.docMaxWidthVar=Yc,C.editPenIcon=pr,C.email=m0,C.emptyIcon=Ql,C.en=Rd,C.externalLinkIcon=mi,C.folderOpenedIcon=ii,C.formatDate=It,C.formatDiffDate=cl,C.formatDiffDateToDay=dl,C.friendLinkIcon=sr,C.fullScreenOneIcon=Si,C.fullscreenIcon=kr,C.fullscreenTwoIcon=Ti,C.get=fl,C.getDarkColor=De,C.getInstance=Pi,C.getLastOffset=$i,C.getLightColor=Pe,C.getLoginStorageKey=Ra,C.getNowDate=Lo,C.getOffsetOrSpace=zi,C.giscusContext=Ea,C.gitee=f0,C.github=v0,C.githubIcon=ci,C.googleAnalytics=hl,C.guessSerializerType=Tl,C.hexToRgb=_o,C.houseIcon=ri,C.icpRecordIcon=Zl,C.inBrowser=Pd,C.infoFilledIcon=bi,C.instances=We,C.is=Ge,C.isArray=xo,C.isAsyncFunction=ll,C.isBoolean=it,C.isClient=D,C.isDate=Td,C.isDef=Bd,C.isElement=Ln,C.isEmpty=Md,C.isExternal=Ao,C.isFocusable=sl,C.isFunction=oe,C.isImageDom=Id,C.isImagePath=_d,C.isIos=il,C.isNull=Ad,C.isNullAndUnDef=xd,C.isNullOrUnDef=Ld,C.isNumber=Qt,C.isObject=lt,C.isPhone=Fd,C.isPlainFunction=wd,C.isPromise=Nd,C.isServer=Dd,C.isString=X,C.isStringNumber=al,C.isType=Ed,C.isUnDef=Sd,C.isValidURL=xn,C.layoutIcon=Ni,C.layoutModeAttribute=Cn,C.layoutModeStorageKey=ko,C.localeContextKey=Po,C.lockIcon=Bi,C.loginUrlKeyMap=Ft,C.magicIcon=ai,C.mobileMaxWidthMedia=xt,C.moblieQQ=y0,C.moreFilledIcon=yr,C.music=k0,C.noticeIcon=Vl,C.ns=Y,C.onClickOutside=kl,C.overallReductionIcon=Ai,C.pageMaxWidthSlideStorageKey=Gc,C.pageMaxWidthVar=Kc,C.pageNumKey=gt,C.playgroundIcon=ei,C.postDataUpdateSymbol=ho,C.postsContext=Ki,C.questionFilledIcon=Ei,C.readingIcon=ur,C.refreshLeftIcon=gi,C.refreshRightIcon=Cr,C.removeStorageItem=zd,C.removeUnit=ul,C.rgbToHex=Io,C.rocketIcon=cr,C.scaleIcon=Br,C.scaleToOriginalIcon=vi,C.shareIcon=gr,C.sizeIcon=$0,C.spotlightStorageKey=Fa,C.spotlightStyleStorageKey=_a,C.successFilledIcon=br,C.tagIcon=tn,C.teekConfigContext=Yi,C.telegram=h0,C.themeBgColorStorageKey=Jc,C.themeColorAttribute=bn,C.themeColorList=kn,C.themeColorStorageKey=La,C.themeIcon=ti,C.thumbsIcon=vr,C.topArticleIcon=dr,C.topIcon=wi,C.touchMedia=Ma,C.trackPageview=pl,C.transitionName=yo,C.twikooContext=wa,C.umamiAnalytics=gl,C.upperFirst=Fo,C.useAllPosts=Nr,C.useAnchorScroll=Cl,C.useClipboard=Mo,C.useCommon=xr,C.useCopyBanner=Od,C.useDebounce=Xe,C.useElementHover=Fn,C.useEventListener=K,C.useIntersectionObserver=_l,C.useLocale=O,C.useMediaQuery=be,C.useMounted=bt,C.useNamespace=I,C.usePagePath=Dt,C.usePageState=Yn,C.usePopoverSize=wl,C.usePosts=ze,C.useRiskLink=c1,C.useScopeDispose=Ue,C.useScrollData=Bl,C.useScrollbarSize=El,C.useSidebar=Lr,C.useStorage=Fe,C.useSwitchData=In,C.useTagColor=Ar,C.useTeekConfig=M,C.useTextTypes=Nl,C.useThemeColor=Go,C.useThemeColorList=Pa,C.useUvPv=Xo,C.useViewTransition=Fl,C.useVpRouter=Ve,C.useWatchLogin=s1,C.useWindowSize=_n,C.useWindowTransition=Zt,C.useWindowTransitionConfig=an,C.useZIndex=Dn,C.userIcon=mr,C.varNameList=Se,C.verifyModeMap=ot,C.version=y8,C.viewIcon=oi,C.walineContext=Ba,C.warningFilledIcon=Er,C.waterIcon=Fi,C.weChatPayIcon=hr,C.withBase=$d,C.zIndexContextKey=Pl,C.zhCn=bl,C.zoomInIcon=yi,C.zoomOutIcon=ki,Object.defineProperty(C,"__esModule",{value:!0})});
package/index.min.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! vitepress-theme-teek v1.6.1 */import ol,{VPBadge as w0}from"vitepress/theme";import*as E0 from"vue";import{getCurrentScope as T0,onScopeDispose as A0,computed as x,toValue as Be,watch as q,shallowRef as xt,getCurrentInstance as vi,onMounted as ae,nextTick as _e,reactive as yi,ref as D,inject as Oe,isRef as en,watchEffect as bi,readonly as Vt,provide as tn,unref as a,onUpdated as S0,onUnmounted as On,defineComponent as R,resolveComponent as Vn,openBlock as g,createElementBlock as C,normalizeClass as E,Fragment as j,renderList as J,createElementVNode as T,toDisplayString as O,createBlock as N,createCommentVNode as A,createVNode as H,renderSlot as M,useId as x0,createPropsRestProxy as _0,useSlots as ki,toRaw as L0,normalizeStyle as pe,resolveDynamicComponent as Te,onBeforeUnmount as vo,effectScope as F0,Teleport as Ci,Transition as Je,withCtx as z,withModifiers as yo,createTextVNode as Qe,withDirectives as ge,vShow as xe,useModel as lt,mergeProps as Ye,render as wi,vModelText as il,mergeModels as pt,shallowReactive as I0,mergeDefaults as $0,isVNode as al,withKeys as rl,h as nn,onBeforeMount as ll,vModelRadio as M0,toHandlers as B0,createApp as N0,useTemplateRef as Ei,defineAsyncComponent as P0,normalizeProps as ve,guardReactiveProps as we,TransitionGroup as kn,createStaticVNode as D0,createSlots as Ze,markRaw as O0,vModelDynamic as V0}from"vue";import{useData as le,useRouter as on,getScrollOffset as R0,onContentUpdated as Ti,useRoute as an,withBase as oe}from"vitepress";import"vitepress-theme-teek/theme-chalk/tk-copy-banner.css";import{addIcon as H0,Icon as sl}from"@iconify/vue";import{addCollection as Jm}from"@iconify/vue";const Ai=e=>/^(http?:|https?:|mailto:|tel:)/.test(e),bo=e=>{try{return new URL(e),!0}catch{return!1}},z0=e=>e===null?"null":typeof e!="object"?typeof e:Object.prototype.toString.call(e).slice(8,-1).toLocaleLowerCase(),_t=(e,t)=>Object.prototype.toString.call(e)===`[object ${t}]`,U0=e=>_t(e,"Function"),Ae=e=>_t(e,"Function")||ul(e),j0=e=>e!==void 0,W0=e=>e===void 0,Rt=e=>e!==null&&_t(e,"Object"),q0=e=>_t(e,"Date"),Rn=e=>_t(e,"Number")&&!Number.isNaN(e),cl=e=>fe(e)?!Number.isNaN(Number(e)):!1,ul=e=>_t(e,"AsyncFunction"),K0=e=>_t(e,"Promise")&&Rt(e)&&Ae(e.then)&&Ae(e.catch),fe=e=>_t(e,"String"),Ht=e=>_t(e,"Boolean"),Si=e=>typeof Array.isArray>"u"?Object.prototype.toString.call(e)==="[object Array]":Array.isArray(e),ko=e=>typeof Element>"u"?!1:e instanceof Element,Y0=e=>e===null,G0=e=>e===null&&e===void 0,X0=e=>e==null,J0=e=>/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(e),Q0=e=>/(https?:\/\/|data:image\/).*?\.(png|jpg|jpeg|gif|svg|webp|ico)/gi.test(e),Z0=e=>e&&["IMAGE","IMG"].includes(e.tagName),dl=()=>Y&&window?.navigator?.userAgent&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent)),e2=(e,t=!0)=>Rn(e)&&isNaN(e)||e===""||e===null||e===void 0?!0:t?!!(Si(e)&&!e.length||Rt(e)&&!Object.keys(e).length):!1,fl=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Y=typeof window<"u"&&typeof document<"u",t2=!Y,n2=Y,xi=(e="yyyy-MM-dd hh:mm:ss",t=!0)=>Cn(new Date,e,t),Cn=(e,t="yyyy-MM-dd hh:mm:ss",n=!0)=>{if(!e)return"";if(fe(e)&&e?.length===t.length)return e;const o=new Date(e),i=n?o.getUTCFullYear():o.getFullYear(),l=String((n?o.getUTCMonth():o.getMonth())+1).padStart(2,"0"),r=String(n?o.getUTCDate():o.getDate()).padStart(2,"0"),s=String(n?o.getUTCHours():o.getHours()).padStart(2,"0"),c=String(n?o.getUTCMinutes():o.getMinutes()).padStart(2,"0"),u=String(n?o.getUTCSeconds():o.getSeconds()).padStart(2,"0");return t.replace("yyyy",i.toString()).replace("MM",l).replace("dd",r).replace("hh",s).replace("mm",c).replace("ss",u)},pl=(e,t)=>{const n=+new Date(e),o=t?+new Date(t):+new Date,i=Math.abs(o-n),l=1e3,r=l*60,s=r*60,c=s*24,u=c*7,d=c*30,p=d*12;return i<1?"\u521A\u521A":i<r?`${Math.floor(i/l)} \u79D2\u524D`:i<s?`${Math.floor(i/r)} \u5206\u524D`:i<c?`${Math.floor(i/s)} \u65F6\u524D`:i<u?`${Math.floor(i/c)} \u5929\u524D`:i<d?`${Math.floor(i/u)} \u5468\u524D`:i<p?`${Math.floor(i/d)} \u6708\u524D`:`${Math.floor(i/p)} \u5E74\u524D`},hl=(e,t)=>{const n=+new Date(e),o=t?+new Date(t):+new Date;return Math.floor(Math.abs(n-o)/(1e3*60*60*24))},o2=(e,t)=>{if(t)return/^(?:[a-z]+:|\/\/)/i.test(t)||!t.startsWith("/")?t:`${e}${t}`.replace(/\/+/g,"/")},_i=e=>e.charAt(0).toUpperCase()+e.slice(1),et=(e,t="px")=>e?Rn(e)||cl(e)?`${e}${t}`:fe(e)?e:"":"",ml=(e,t="px")=>{if(e){if(Rn(e))return e;if(fe(e))return Number(e.replace(t,""))}},gl=(e,t,n)=>{let o={...e};return t.includes(".")?(t.split(".").forEach(i=>o=o[i]??""),o||n):o[t]||n},i2=(e,t,n=!1)=>{if(!n)return t.removeItem(e);const o=[];for(let i=0;i<t.length;i++){const l=t.key(i);l&&l.startsWith(l)&&o.push(l)}o.forEach(i=>t.removeItem(i))},Li=e=>{let t="";if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex");e=e.replace("#",""),t=e.match(/../g);for(let o=0;o<3;o++)t[o]=parseInt(t[o],16);return t},Fi=(e,t,n)=>{const o=/^\d{1,3}$/;if(!o.test(e)||!o.test(t)||!o.test(n))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 rgb \u989C\u8272\u503C");const i=[e.toString(16),t.toString(16),n.toString(16)];for(let l=0;l<3;l++)i[l].length===1&&(i[l]=`0${i[l]}`);return`#${i.join("")}`},ht=(e,t)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex \u989C\u8272\u503C");const o=Li(e);for(let i=0;i<3;i++)o[i]=Math.round(20.5*t+o[i]*(1-t));return Fi(o[0],o[1],o[2])},mt=(e,t)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex \u989C\u8272\u503C");const o=Li(e);for(let i=0;i<3;i++)o[i]=Math.round(255*t+o[i]*(1-t));return Fi(o[0],o[1],o[2])},vl=e=>{if(!Y)return;const{id:t,production:n=!0}=e||{};if(!(n&&process.env.NODE_ENV!=="production")){if(!t)return console.warn("[Teek Warning] Baidu analytics id is empty");if(!document.querySelector(`#baidu-analytics-${t}`)){window._hmt=window._hmt||[];const o=document.createElement("script");o.id=`baidu-analytics-${t}`,o.async=!0,o.src=`https://hm.baidu.com/hm.js?${t}`,document.querySelector("head")?.appendChild(o)}}},yl=(e,t)=>{if(!Y)return;const{id:n,production:o=!0}=e||{};if(!(o&&process.env.NODE_ENV!=="production")&&n){if((!t||!fe(t))&&(t="/"),t.startsWith("http")){const i=t.split("/"),l=`${i[0]}//${i[2]}`;t=t.replace(l,"")}window._hmt&&(window._hmt.push(["_setAccount",n]),window._hmt.push(["_trackPageview",t]))}},bl=e=>{if(!Y||window.dataLayer&&window.gtag)return;const{id:t,production:n=!0}=e||{};if(!(n&&process.env.NODE_ENV!=="production")){if(!t)return console.warn("[Teek Warning] Google analytics id is empty");if(!document.querySelector(`#google-analytics-${t}`)){const o=document.createElement("script");o.id=`google-analytics-${t}`,o.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,o.async=!0,document.head.appendChild(o),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},gtag("js",new Date),gtag("config",t)}}},kl=(e,t=!0)=>{if(!Y||t&&process.env.NODE_ENV!=="production")return;let n=[];if(Array.isArray(e)?n.push(...e):n.push(e),n=n.filter(o=>!!o.id),!!n.length)for(const o of n){const{id:i,src:l}=o;if(!document.querySelector(`#umami-analytics-${i}`)){const r=document.createElement("script");r.id=`umami-analytics-${i}`,r.async=!0,r.defer=!0,r.setAttribute("data-website-id",i),r.src=l,document.head.appendChild(r)}}},Cl=e=>{if(!Y||window.clarity&&window.clarity.q)return;const{id:t,production:n=!0}=e||{};if(!(n&&process.env.NODE_ENV!=="production")){if(!t)return console.warn("[Teek Warning] Microsoft Clarity analytics id is empty");if(!document.querySelector(`#clarity-analytics-${t}`)){const o=document.createElement("script");o.id=`clarity-analytics-${t}`,o.async=!0,o.src=`https://www.clarity.ms/tag/${t}`,document.head.appendChild(o),window.clarity??(window.clarity=function(){var i;((i=window.clarity).q??(i.q=[])).push(arguments)})}}},wt=e=>T0()?(A0(e),!0):!1,ce=(e,t,n,o)=>{const i=[],l=()=>{i.forEach(d=>d()),i.length=0},r=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),s=x(()=>{if(!Y)return;const d=Be(e)||window;return d?.$el??d}),c=q(s,d=>{l(),d&&i.push(r(d,t,n,o))},{flush:"post",immediate:!0}),u=()=>{c(),l()};return wt(l),u};let wl=!1;const El=(e,t,n={})=>{const{ignore:o=[],capture:i=!0,detectIframe:l=!1,controls:r=!1}=n;if(!Y)return r?{stop:()=>{},cancel:()=>{},trigger:()=>{}}:()=>{};if(dl()&&!wl){wl=!0;const v={passive:!0};Array.from(window.document.body.children).forEach(y=>ce(y,"click",()=>{},v)),ce(window.document.documentElement,"click",()=>{},v)}let s=!0;const c=v=>Be(o).some(y=>{if(typeof y=="string")return Array.from(window.document.querySelectorAll(y)).some(b=>b===v.target||v.composedPath().includes(b));{const b=Be(y);return b&&(v.target===b||v.composedPath().includes(b))}});function u(v){const y=Be(v);return y&&y.$.subTree.shapeFlag===16}function d(v,y){const b=Be(v),k=b.$.subTree&&b.$.subTree.children;return k==null||!Array.isArray(k)?!1:k.some(w=>w.el===y.target||y.composedPath().includes(w.el))}const p=v=>{const y=Be(e),b=y?.$el??y;if(v.target!=null&&!(!(b instanceof Element)&&u(e)&&d(e,v))&&!(!b||b===v.target||v.composedPath().includes(b))){if("detail"in v&&v.detail===0&&(s=!c(v)),!s){s=!0;return}t(v)}};let f=!1;const h=[ce(window,"click",v=>{f||(f=!0,setTimeout(()=>{f=!1},0),p(v))},{passive:!0,capture:i}),ce(window,"pointerdown",v=>{const y=Be(e),b=y?.$el??y;s=!c(v)&&!!(b&&!v.composedPath().includes(b))},{passive:!0}),l&&ce(window,"blur",v=>{setTimeout(()=>{const y=Be(e),b=y?.$el??y;window.document.activeElement?.tagName==="IFRAME"&&!b?.contains(window.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),m=()=>h.forEach(v=>v());return r?{stop:m,cancel:()=>{s=!1},trigger:v=>{s=!0,p(v),s=!1}}:m},rn=(e,t={})=>{const{sync:n=!1,nexTick:o=!0}=t,i=xt(!1),l=vi();return l?ae(()=>{i.value=!0,e?.()},l):n?e?.():o&&_e(()=>e?.()),i},Tl=()=>{const{theme:e}=le(),t=yi({id:"",top:-1}),n=()=>{const i=document.querySelectorAll(".content-container .main :is(h1, h2, h3, h4, h5, h6)");for(let l=0;l<i.length;l++){const r=i[l];if(window.getComputedStyle(r).display==="none")break;const c=r.getBoundingClientRect();c.top<=150&&r.id!==t.id&&(t.id=r.id,t.top=c.top)}};return rn(()=>{ce(window,"scroll",n)}),{startWatch:()=>{e.value.anchorScroll!==!1&&q(()=>t.id,i=>{!Y||!i||window.history.replaceState(history.state||null,"",`#${i}`)})}}},Ii=(e=1500)=>{const t=D(!1),n=D(""),o=D(!1);Y&&navigator.clipboard&&document.execCommand,o.value=!0;const i=async(r,s=-1)=>{if(!Y)return;if(navigator.clipboard)return await navigator.clipboard.writeText(r).then(()=>{n.value=r,t.value=!0,l()});const c=document.createElement("input");c.setAttribute("readonly","readonly"),c.setAttribute("value",r),document.body.appendChild(c),c.select(),s>0&&c.setSelectionRange(0,s),document.execCommand("copy")&&(n.value=r,document.execCommand("copy"),t.value=!0,l()),document.body.removeChild(c)},l=()=>{setTimeout(()=>{t.value=!1},e)};return{copy:i,text:n,copied:t,isSupported:o}};var $i={namespace:"tk"};const W=(e="",t)=>{const n=t||$i.namespace,o=b=>f(n,e,b),i=b=>f(n,e,"",b),l=b=>f(n,e,"","",b),r=(b,k)=>f(n,e,b,k),s=(b,k)=>f(n,e,b,"",k),c=(b,k)=>f(n,e,"",b,k),u=(b,k,w)=>f(n,e,b,k,w),d=(b,k=!0)=>k?`is-${b}`:"",p=(b,k=!0)=>k?`has-${b}`:"",f=(b,k,w,_,B)=>{let $=`${b}-${k}`;return w&&($+=`-${w}`),_&&($+=`__${_}`),B&&($+=`--${B}`),$},h=b=>`${n}-${b}`,m=b=>`var(--${n}-${b})`,v=b=>`--${n}-${b}`,y=(...b)=>`${n}:${b.join(":")}`;return{namespaceModule:$i,namespace:$i.namespace,b:o,e:i,m:l,be:r,bm:s,em:c,bem:u,is:d,has:p,createBem:f,join:h,cssVar:m,cssVarName:v,storageKey:y}},a2=(e="\u590D\u5236\u6210\u529F\uFF0C\u590D\u5236\u548C\u8F6C\u8F7D\u8BF7\u6807\u6CE8\u672C\u6587\u5730\u5740",t=3e3)=>{if(!Y)return;const n=W("copy-banner"),o=()=>{if(!window.getSelection()?.toString().trim())return;i();const l=n.e("slide"),r=document.createElement("div"),s=document.createElement("div");r.className=n.b(),r.innerHTML=`
1
+ /*! vitepress-theme-teek v1.6.2 */import ol,{VPBadge as w0}from"vitepress/theme";import*as E0 from"vue";import{getCurrentScope as T0,onScopeDispose as A0,computed as x,toValue as Be,watch as q,shallowRef as xt,getCurrentInstance as vi,onMounted as ae,nextTick as _e,reactive as yi,ref as D,inject as Oe,isRef as en,watchEffect as bi,readonly as Vt,provide as tn,unref as a,onUpdated as S0,onUnmounted as On,defineComponent as R,resolveComponent as Vn,openBlock as g,createElementBlock as C,normalizeClass as E,Fragment as j,renderList as J,createElementVNode as T,toDisplayString as O,createBlock as N,createCommentVNode as A,createVNode as H,renderSlot as M,useId as x0,createPropsRestProxy as _0,useSlots as ki,toRaw as L0,normalizeStyle as pe,resolveDynamicComponent as Te,onBeforeUnmount as vo,effectScope as F0,Teleport as Ci,Transition as Je,withCtx as z,withModifiers as yo,createTextVNode as Qe,withDirectives as ge,vShow as xe,useModel as lt,mergeProps as Ye,render as wi,vModelText as il,mergeModels as pt,shallowReactive as I0,mergeDefaults as $0,isVNode as al,withKeys as rl,h as nn,onBeforeMount as ll,vModelRadio as M0,toHandlers as B0,createApp as N0,useTemplateRef as Ei,defineAsyncComponent as P0,normalizeProps as ve,guardReactiveProps as we,TransitionGroup as kn,createStaticVNode as D0,createSlots as Ze,markRaw as O0,vModelDynamic as V0}from"vue";import{useData as le,useRouter as on,getScrollOffset as R0,onContentUpdated as Ti,useRoute as an,withBase as oe}from"vitepress";import"vitepress-theme-teek/theme-chalk/tk-copy-banner.css";import{addIcon as H0,Icon as sl}from"@iconify/vue";import{addCollection as Jm}from"@iconify/vue";const Ai=e=>/^(http?:|https?:|mailto:|tel:)/.test(e),bo=e=>{try{return new URL(e),!0}catch{return!1}},z0=e=>e===null?"null":typeof e!="object"?typeof e:Object.prototype.toString.call(e).slice(8,-1).toLocaleLowerCase(),_t=(e,t)=>Object.prototype.toString.call(e)===`[object ${t}]`,U0=e=>_t(e,"Function"),Ae=e=>_t(e,"Function")||ul(e),j0=e=>e!==void 0,W0=e=>e===void 0,Rt=e=>e!==null&&_t(e,"Object"),q0=e=>_t(e,"Date"),Rn=e=>_t(e,"Number")&&!Number.isNaN(e),cl=e=>fe(e)?!Number.isNaN(Number(e)):!1,ul=e=>_t(e,"AsyncFunction"),K0=e=>_t(e,"Promise")&&Rt(e)&&Ae(e.then)&&Ae(e.catch),fe=e=>_t(e,"String"),Ht=e=>_t(e,"Boolean"),Si=e=>typeof Array.isArray>"u"?Object.prototype.toString.call(e)==="[object Array]":Array.isArray(e),ko=e=>typeof Element>"u"?!1:e instanceof Element,Y0=e=>e===null,G0=e=>e===null&&e===void 0,X0=e=>e==null,J0=e=>/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(e),Q0=e=>/(https?:\/\/|data:image\/).*?\.(png|jpg|jpeg|gif|svg|webp|ico)/gi.test(e),Z0=e=>e&&["IMAGE","IMG"].includes(e.tagName),dl=()=>Y&&window?.navigator?.userAgent&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent)),e2=(e,t=!0)=>Rn(e)&&isNaN(e)||e===""||e===null||e===void 0?!0:t?!!(Si(e)&&!e.length||Rt(e)&&!Object.keys(e).length):!1,fl=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Y=typeof window<"u"&&typeof document<"u",t2=!Y,n2=Y,xi=(e="yyyy-MM-dd hh:mm:ss",t=!0)=>Cn(new Date,e,t),Cn=(e,t="yyyy-MM-dd hh:mm:ss",n=!0)=>{if(!e)return"";if(fe(e)&&e?.length===t.length)return e;const o=new Date(e),i=n?o.getUTCFullYear():o.getFullYear(),l=String((n?o.getUTCMonth():o.getMonth())+1).padStart(2,"0"),r=String(n?o.getUTCDate():o.getDate()).padStart(2,"0"),s=String(n?o.getUTCHours():o.getHours()).padStart(2,"0"),c=String(n?o.getUTCMinutes():o.getMinutes()).padStart(2,"0"),u=String(n?o.getUTCSeconds():o.getSeconds()).padStart(2,"0");return t.replace("yyyy",i.toString()).replace("MM",l).replace("dd",r).replace("hh",s).replace("mm",c).replace("ss",u)},pl=(e,t)=>{const n=+new Date(e),o=t?+new Date(t):+new Date,i=Math.abs(o-n),l=1e3,r=l*60,s=r*60,c=s*24,u=c*7,d=c*30,p=d*12;return i<1?"\u521A\u521A":i<r?`${Math.floor(i/l)} \u79D2\u524D`:i<s?`${Math.floor(i/r)} \u5206\u524D`:i<c?`${Math.floor(i/s)} \u65F6\u524D`:i<u?`${Math.floor(i/c)} \u5929\u524D`:i<d?`${Math.floor(i/u)} \u5468\u524D`:i<p?`${Math.floor(i/d)} \u6708\u524D`:`${Math.floor(i/p)} \u5E74\u524D`},hl=(e,t)=>{const n=+new Date(e),o=t?+new Date(t):+new Date;return Math.floor(Math.abs(n-o)/(1e3*60*60*24))},o2=(e,t)=>{if(t)return/^(?:[a-z]+:|\/\/)/i.test(t)||!t.startsWith("/")?t:`${e}${t}`.replace(/\/+/g,"/")},_i=e=>e.charAt(0).toUpperCase()+e.slice(1),et=(e,t="px")=>e?Rn(e)||cl(e)?`${e}${t}`:fe(e)?e:"":"",ml=(e,t="px")=>{if(e){if(Rn(e))return e;if(fe(e))return Number(e.replace(t,""))}},gl=(e,t,n)=>{let o={...e};return t.includes(".")?(t.split(".").forEach(i=>o=o[i]??""),o||n):o[t]||n},i2=(e,t,n=!1)=>{if(!n)return t.removeItem(e);const o=[];for(let i=0;i<t.length;i++){const l=t.key(i);l&&l.startsWith(l)&&o.push(l)}o.forEach(i=>t.removeItem(i))},Li=e=>{let t="";if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex");e=e.replace("#",""),t=e.match(/../g);for(let o=0;o<3;o++)t[o]=parseInt(t[o],16);return t},Fi=(e,t,n)=>{const o=/^\d{1,3}$/;if(!o.test(e)||!o.test(t)||!o.test(n))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 rgb \u989C\u8272\u503C");const i=[e.toString(16),t.toString(16),n.toString(16)];for(let l=0;l<3;l++)i[l].length===1&&(i[l]=`0${i[l]}`);return`#${i.join("")}`},ht=(e,t)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex \u989C\u8272\u503C");const o=Li(e);for(let i=0;i<3;i++)o[i]=Math.round(20.5*t+o[i]*(1-t));return Fi(o[0],o[1],o[2])},mt=(e,t)=>{if(!/^\#?[0-9A-Fa-f]{6}$/.test(e))return console.error("[Teek Error] \u8F93\u5165\u9519\u8BEF\u7684 hex \u989C\u8272\u503C");const o=Li(e);for(let i=0;i<3;i++)o[i]=Math.round(255*t+o[i]*(1-t));return Fi(o[0],o[1],o[2])},vl=e=>{if(!Y)return;const{id:t,production:n=!0}=e||{};if(!(n&&process.env.NODE_ENV!=="production")){if(!t)return console.warn("[Teek Warning] Baidu analytics id is empty");if(!document.querySelector(`#baidu-analytics-${t}`)){window._hmt=window._hmt||[];const o=document.createElement("script");o.id=`baidu-analytics-${t}`,o.async=!0,o.src=`https://hm.baidu.com/hm.js?${t}`,document.querySelector("head")?.appendChild(o)}}},yl=(e,t)=>{if(!Y)return;const{id:n,production:o=!0}=e||{};if(!(o&&process.env.NODE_ENV!=="production")&&n){if((!t||!fe(t))&&(t="/"),t.startsWith("http")){const i=t.split("/"),l=`${i[0]}//${i[2]}`;t=t.replace(l,"")}window._hmt&&(window._hmt.push(["_setAccount",n]),window._hmt.push(["_trackPageview",t]))}},bl=e=>{if(!Y||window.dataLayer&&window.gtag)return;const{id:t,production:n=!0}=e||{};if(!(n&&process.env.NODE_ENV!=="production")){if(!t)return console.warn("[Teek Warning] Google analytics id is empty");if(!document.querySelector(`#google-analytics-${t}`)){const o=document.createElement("script");o.id=`google-analytics-${t}`,o.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,o.async=!0,document.head.appendChild(o),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},gtag("js",new Date),gtag("config",t)}}},kl=(e,t=!0)=>{if(!Y||t&&process.env.NODE_ENV!=="production")return;let n=[];if(Array.isArray(e)?n.push(...e):n.push(e),n=n.filter(o=>!!o.id),!!n.length)for(const o of n){const{id:i,src:l}=o;if(!document.querySelector(`#umami-analytics-${i}`)){const r=document.createElement("script");r.id=`umami-analytics-${i}`,r.async=!0,r.defer=!0,r.setAttribute("data-website-id",i),r.src=l,document.head.appendChild(r)}}},Cl=e=>{if(!Y||window.clarity&&window.clarity.q)return;const{id:t,production:n=!0}=e||{};if(!(n&&process.env.NODE_ENV!=="production")){if(!t)return console.warn("[Teek Warning] Microsoft Clarity analytics id is empty");if(!document.querySelector(`#clarity-analytics-${t}`)){const o=document.createElement("script");o.id=`clarity-analytics-${t}`,o.async=!0,o.src=`https://www.clarity.ms/tag/${t}`,document.head.appendChild(o),window.clarity??(window.clarity=function(){var i;((i=window.clarity).q??(i.q=[])).push(arguments)})}}},wt=e=>T0()?(A0(e),!0):!1,ce=(e,t,n,o)=>{const i=[],l=()=>{i.forEach(d=>d()),i.length=0},r=(d,p,f,h)=>(d.addEventListener(p,f,h),()=>d.removeEventListener(p,f,h)),s=x(()=>{if(!Y)return;const d=Be(e)||window;return d?.$el??d}),c=q(s,d=>{l(),d&&i.push(r(d,t,n,o))},{flush:"post",immediate:!0}),u=()=>{c(),l()};return wt(l),u};let wl=!1;const El=(e,t,n={})=>{const{ignore:o=[],capture:i=!0,detectIframe:l=!1,controls:r=!1}=n;if(!Y)return r?{stop:()=>{},cancel:()=>{},trigger:()=>{}}:()=>{};if(dl()&&!wl){wl=!0;const v={passive:!0};Array.from(window.document.body.children).forEach(y=>ce(y,"click",()=>{},v)),ce(window.document.documentElement,"click",()=>{},v)}let s=!0;const c=v=>Be(o).some(y=>{if(typeof y=="string")return Array.from(window.document.querySelectorAll(y)).some(b=>b===v.target||v.composedPath().includes(b));{const b=Be(y);return b&&(v.target===b||v.composedPath().includes(b))}});function u(v){const y=Be(v);return y&&y.$.subTree.shapeFlag===16}function d(v,y){const b=Be(v),k=b.$.subTree&&b.$.subTree.children;return k==null||!Array.isArray(k)?!1:k.some(w=>w.el===y.target||y.composedPath().includes(w.el))}const p=v=>{const y=Be(e),b=y?.$el??y;if(v.target!=null&&!(!(b instanceof Element)&&u(e)&&d(e,v))&&!(!b||b===v.target||v.composedPath().includes(b))){if("detail"in v&&v.detail===0&&(s=!c(v)),!s){s=!0;return}t(v)}};let f=!1;const h=[ce(window,"click",v=>{f||(f=!0,setTimeout(()=>{f=!1},0),p(v))},{passive:!0,capture:i}),ce(window,"pointerdown",v=>{const y=Be(e),b=y?.$el??y;s=!c(v)&&!!(b&&!v.composedPath().includes(b))},{passive:!0}),l&&ce(window,"blur",v=>{setTimeout(()=>{const y=Be(e),b=y?.$el??y;window.document.activeElement?.tagName==="IFRAME"&&!b?.contains(window.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),m=()=>h.forEach(v=>v());return r?{stop:m,cancel:()=>{s=!1},trigger:v=>{s=!0,p(v),s=!1}}:m},rn=(e,t={})=>{const{sync:n=!1,nexTick:o=!0}=t,i=xt(!1),l=vi();return l?ae(()=>{i.value=!0,e?.()},l):n?e?.():o&&_e(()=>e?.()),i},Tl=()=>{const{theme:e}=le(),t=yi({id:"",top:-1}),n=()=>{const i=document.querySelectorAll(".content-container .main :is(h1, h2, h3, h4, h5, h6)");for(let l=0;l<i.length;l++){const r=i[l];if(window.getComputedStyle(r).display==="none")break;const c=r.getBoundingClientRect();c.top<=150&&r.id!==t.id&&(t.id=r.id,t.top=c.top)}};return rn(()=>{ce(window,"scroll",n)}),{startWatch:()=>{e.value.anchorScroll!==!1&&q(()=>t.id,i=>{!Y||!i||window.history.replaceState(history.state||null,"",`#${i}`)})}}},Ii=(e=1500)=>{const t=D(!1),n=D(""),o=D(!1);Y&&navigator.clipboard&&document.execCommand,o.value=!0;const i=async(r,s=-1)=>{if(!Y)return;if(navigator.clipboard)return await navigator.clipboard.writeText(r).then(()=>{n.value=r,t.value=!0,l()});const c=document.createElement("input");c.setAttribute("readonly","readonly"),c.setAttribute("value",r),document.body.appendChild(c),c.select(),s>0&&c.setSelectionRange(0,s),document.execCommand("copy")&&(n.value=r,document.execCommand("copy"),t.value=!0,l()),document.body.removeChild(c)},l=()=>{setTimeout(()=>{t.value=!1},e)};return{copy:i,text:n,copied:t,isSupported:o}};var $i={namespace:"tk"};const W=(e="",t)=>{const n=t||$i.namespace,o=b=>f(n,e,b),i=b=>f(n,e,"",b),l=b=>f(n,e,"","",b),r=(b,k)=>f(n,e,b,k),s=(b,k)=>f(n,e,b,"",k),c=(b,k)=>f(n,e,"",b,k),u=(b,k,w)=>f(n,e,b,k,w),d=(b,k=!0)=>k?`is-${b}`:"",p=(b,k=!0)=>k?`has-${b}`:"",f=(b,k,w,_,B)=>{let $=`${b}-${k}`;return w&&($+=`-${w}`),_&&($+=`__${_}`),B&&($+=`--${B}`),$},h=b=>`${n}-${b}`,m=b=>`var(--${n}-${b})`,v=b=>`--${n}-${b}`,y=(...b)=>`${n}:${b.join(":")}`;return{namespaceModule:$i,namespace:$i.namespace,b:o,e:i,m:l,be:r,bm:s,em:c,bem:u,is:d,has:p,createBem:f,join:h,cssVar:m,cssVarName:v,storageKey:y}},a2=(e="\u590D\u5236\u6210\u529F\uFF0C\u590D\u5236\u548C\u8F6C\u8F7D\u8BF7\u6807\u6CE8\u672C\u6587\u5730\u5740",t=3e3)=>{if(!Y)return;const n=W("copy-banner"),o=()=>{if(!window.getSelection()?.toString().trim())return;i();const l=n.e("slide"),r=document.createElement("div"),s=document.createElement("div");r.className=n.b(),r.innerHTML=`
2
2
  <div class="${n.e("content")}">
3
3
  <p class="${n.e("desc")}">${e}</p>
4
4
  </div>
@@ -712,4 +712,4 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
712
712
  `+e.slice(i,l),i=l+1),r=s;return c+=`
713
713
  `,e.length-i>t&&r>i?c+=e.slice(i,r)+`
714
714
  `+e.slice(r+1):c+=e.slice(i),c.slice(1)}function gm(e){for(var t="",n=0,o,i=0;i<e.length;n>=65536?i+=2:i++)n=mo(e,i),o=qe[n],!o&&ho(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=o||lm(n);return t}function vm(e,t,n){var o="",i=e.tag,l,r,s;for(l=0,r=n.length;l<r;l+=1)s=n[l],e.replacer&&(s=e.replacer.call(n,String(l),s)),(Ot(e,t,s,!1,!1)||typeof s>"u"&&Ot(e,t,null,!1,!1))&&(o!==""&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=i,e.dump="["+o+"]"}function b0(e,t,n,o){var i="",l=e.tag,r,s,c;for(r=0,s=n.length;r<s;r+=1)c=n[r],e.replacer&&(c=e.replacer.call(n,String(r),c)),(Ot(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&Ot(e,t+1,null,!0,!0,!1,!0))&&((!o||i!=="")&&(i+=Jr(e,t)),e.dump&&fo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=l,e.dump=i||"[]"}function ym(e,t,n){var o="",i=e.tag,l=Object.keys(n),r,s,c,u,d;for(r=0,s=l.length;r<s;r+=1)d="",o!==""&&(d+=", "),e.condenseFlow&&(d+='"'),c=l[r],u=n[c],e.replacer&&(u=e.replacer.call(n,c,u)),Ot(e,t,c,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ot(e,t,u,!1,!1)&&(d+=e.dump,o+=d));e.tag=i,e.dump="{"+o+"}"}function bm(e,t,n,o){var i="",l=e.tag,r=Object.keys(n),s,c,u,d,p,f;if(e.sortKeys===!0)r.sort();else if(typeof e.sortKeys=="function")r.sort(e.sortKeys);else if(e.sortKeys)throw new Xe("sortKeys must be a boolean or a function");for(s=0,c=r.length;s<c;s+=1)f="",(!o||i!=="")&&(f+=Jr(e,t)),u=r[s],d=n[u],e.replacer&&(d=e.replacer.call(n,u,d)),Ot(e,t+1,u,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&fo===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,p&&(f+=Jr(e,t)),Ot(e,t+1,d,!0,p)&&(e.dump&&fo===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,i+=f));e.tag=l,e.dump=i||"{}"}function k0(e,t,n){var o,i,l,r,s,c;for(i=n?e.explicitTypes:e.implicitTypes,l=0,r=i.length;l<r;l+=1)if(s=i[l],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,n0.call(s.represent)==="[object Function]")o=s.represent(t,c);else if(o0.call(s.represent,c))o=s.represent[c](t,c);else throw new Xe("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');e.dump=o}return!0}return!1}function Ot(e,t,n,o,i,l,r){e.tag=null,e.dump=n,k0(e,n,!1)||k0(e,n,!0);var s=n0.call(e.dump),c=o,u;o&&(o=e.flowLevel<0||e.flowLevel>t);var d=s==="[object Object]"||s==="[object Array]",p,f;if(d&&(p=e.duplicates.indexOf(n),f=p!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),s==="[object Object]")o&&Object.keys(e.dump).length!==0?(bm(e,t,e.dump,i),f&&(e.dump="&ref_"+p+e.dump)):(ym(e,t,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if(s==="[object Array]")o&&e.dump.length!==0?(e.noArrayIndent&&!r&&t>0?b0(e,t-1,e.dump,i):b0(e,t,e.dump,i),f&&(e.dump="&ref_"+p+e.dump)):(vm(e,t,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&hm(e,e.dump,t,l,c);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Xe("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function km(e,t){var n=[],o=[],i,l;for(Zr(e,n,o),i=0,l=o.length;i<l;i+=1)t.duplicates.push(n[o[i]]);t.usedDuplicates=new Array(l)}function Zr(e,t,n){var o,i,l;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,l=e.length;i<l;i+=1)Zr(e[i],t,n);else for(o=Object.keys(e),i=0,l=o.length;i<l;i+=1)Zr(e[o[i]],t,n)}function Cm(e,t){t=t||{};var n=new cm(t);n.noRefs||km(e,n);var o=e;return n.replacer&&(o=n.replacer.call({"":o},"",o)),Ot(n,0,o,!0,!0)?n.dump+`
715
- `:""}var wm=Cm,Em={dump:wm};function el(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Tm=He,Am=C1,Sm=A1,xm=F1,_m=I1,Lm=Wr,Fm=t0.load,Im=t0.loadAll,$m=Em.dump,Mm=Xe,Bm={binary:P1,float:L1,map:T1,null:S1,pairs:O1,set:V1,timestamp:B1,bool:x1,int:_1,merge:N1,omap:D1,seq:E1,str:w1},Nm=el("safeLoad","load"),Pm=el("safeLoadAll","loadAll"),Dm=el("safeDump","dump"),Om={Type:Tm,Schema:Am,FAILSAFE_SCHEMA:Sm,JSON_SCHEMA:xm,CORE_SCHEMA:_m,DEFAULT_SCHEMA:Lm,load:Fm,loadAll:Im,dump:$m,YAMLException:Mm,types:Bm,safeLoad:Nm,safeLoadAll:Pm,safeDump:Dm};const Vm=(e,t)=>{t.forEach(n=>C0(e,n))},C0=(e,t)=>{const{type:n,className:o,beforeHtmlRender:i,htmlRender:l,afterHtmlRender:r,transformHtml:s}=t;e.use(v1,n,{}),e.renderer.rules[`container_${n}_open`]=(c,u)=>{const d=c[u];let p=`<div class="${o||`${n}-container`}">`;for(let f=u;f<c.length;f++){const h=c[f];if(h.type===`container_${n}_close`)break;if(!["yaml","yml"].includes(h.info))continue;const m=Om.load(h.content.trim());let v,y={};Array.isArray(m)?v=m:(v=m.data||[],y=m.config||{});const b=d.info.trim().slice(n.length).trim();i?.({data:v,config:y},b,c,f)!==!1&&(p+=l({data:v,config:y},b,c,f),r?.({data:v,config:y},b,c,f))}return p=s?.(p)??p,p}},Rm="1.6.1";var Hm={extends:ol,Layout:Qs(g1),async enhanceApp({app:e,siteData:t,router:n}){if(e.component("TkCataloguePage",Nr),e.component("TkArchivesPage",Br),e.component("TkArticleOverviewPage",Pr),e.component("TkLoginPage",Vr),e.component("TkRiskLinkPage",Rr),e.component("TkDemoCode",xu),e.component("TkTitleTag",Kn),e.component("TkIcon",X),!Y)return;const{themeConfig:o}=t.value;zm(o),o.permalinks&&await Um({siteData:t,router:n})}};const zm=e=>{const t=e.siteAnalytics||[],n={baidu:o=>{vl(o),Y&&yl(o,window.location.href)},google:o=>bl(o),umami:o=>kl(o),clarity:o=>Cl(o)};t.forEach(o=>{n[o.provider]?.(o.options)})},Um=async({siteData:e,router:t})=>{const{base:n,cleanUrls:o,themeConfig:i}=e.value;if(t.route.path===n&&t.route.data.isNotFound){const{pathname:l,search:r,hash:s}=new URL(location.href),c="/"+decodeURIComponent(l.slice(n.length)).replace(/\/$/,"").replace(/\.html/,""),u=o?c:c+".html",d=i.permalinks.inv[u];if(d){const p=n+d+r+s;await t.go(p)}}};export{bt as LayoutMode,Jt as SpotlightStyle,Ll as StorageSerializers,Qs as TeekConfigProvider,We as ThemeColorName,Br as TkArchivesPage,La as TkArticleAnalyze,_a as TkArticleBreadcrumb,wu as TkArticleCodeBlock,nc as TkArticleHeadingHighlight,oc as TkArticleImagePreview,Oo as TkArticleInfo,Pr as TkArticleOverviewPage,So as TkArticlePage,ic as TkArticlePageStyle,ac as TkArticleShare,In as TkArticleTitle,vu as TkArticleUpdate,Zs as TkAsideBottomAppreciation,xo as TkAvatar,yu as TkBodyBgImage,jl as TkBreadcrumb,Xi as TkBreadcrumbItem,d1 as TkCatalogueItem,Nr as TkCataloguePage,Eu as TkCommentArtalk,Tu as TkCommentGiscus,Au as TkCommentTwikoo,Su as TkCommentWaline,xu as TkDemoCode,ec as TkDocAfterAppreciation,tc as TkDocAfterAppreciationPopper,zl as TkDocAsideOutline,ta as TkFocusTrap,_u as TkFooterGroup,Lu as TkFooterInfo,Ou as TkHomeBanner,Ar as TkHomeBannerBgImage,Bu as TkHomeBannerBgPure,Nu as TkHomeBannerContent,Pu as TkHomeBannerFeature,Sr as TkHomeBannerWaves,zu as TkHomeCardCategory,qu as TkHomeCardDocAnalysis,Wu as TkHomeCardFriendLink,Ku as TkHomeCardMain,Vu as TkHomeCardMy,Ru as TkHomeCardMyScreen,Uu as TkHomeCardTag,Hu as TkHomeCardTopArticle,Gu as TkHomeFeature,Fu as TkHomeFullscreenWallpaper,Yu as TkHomeMain,Mu as TkHomePost,Tr as TkHomePostItemCard,Er as TkHomePostItemList,X as TkIcon,Ps as TkImageViewer,wa as TkInputSlide,g1 as TkLayout,Vr as TkLoginPage,Ne as TkMessage,u1 as TkNotice,pn as TkPageCard,qs as TkPagination,qn as TkPopover,c1 as TkRightBottomButton,Rr as TkRiskLinkPage,m1 as TkRouteLoading,No as TkSegmented,Ks as TkSegmentedItem,h1 as TkSidebarTrigger,i1 as TkSwitch,s1 as TkThemeEnhance,mn as TkThemeEnhanceBaseTemplate,Kn as TkTitleTag,Ys as TkTransitionCollapse,Gs as TkVerifyCode,Ea as TkVpContainer,B2 as WhatsApp,Yi as Z_INDEX_INJECTION_KEY,Fr as activateMaxWidthSlideMedia,Jm as addIcons,et as addUnit,na as aliPayIcon,Ms as alignLeftIcon,Bs as alignTextLeftIcon,oa as arrowDownIcon,Mo as arrowLeftIcon,Bo as arrowRightIcon,vr as artalkContext,Wn as autoWidthIcon,vl as baiduAnalytics,P2 as bilibili,us as calendarIcon,Ki as callBusuanzi,Bl as callVercount,gs as caretTopIcon,Un as categoryIcon,Ts as circleCloseFilledIcon,Cl as clarityAnalytics,ka as clickIcon,rs as clockIcon,$o as closeIcon,ms as codeIcon,fs as collectionTagIcon,ca as commentIcon,hs as copyIcon,es as copyrightIcon,C0 as createCardContainer,Vm as createCardContainers,ci as createContainerThenGet,g8 as createContainerThenUse,y8 as createContainersThenGet,v8 as createContainersThenUse,gr as createDynamicComponent,Os as createImageViewer,To as createScript,bs as dArrowLeftIcon,ys as dArrowRightIcon,Hm as default,Vl as defaultInitialZIndex,Or as defaultPrivateConfig,ia as docAnalysisIcon,Zu as docMaxWidthSlideStorageKey,Ju as docMaxWidthVar,da as editPenIcon,M2 as email,ts as emptyIcon,r2 as en,vs as externalLinkIcon,ds as folderOpenedIcon,Cn as formatDate,pl as formatDiffDate,hl as formatDiffDateToDay,aa as friendLinkIcon,Ls as fullScreenOneIcon,ga as fullscreenIcon,Fs as fullscreenTwoIcon,gl as get,ht as getDarkColor,Rs as getInstance,Hs as getLastOffset,mt as getLightColor,Dr as getLoginStorageKey,xi as getNowDate,zs as getOffsetOrSpace,br as giscusContext,$2 as gitee,D2 as github,ps as githubIcon,bl as googleAnalytics,Fl as guessSerializerType,Li as hexToRgb,ss as houseIcon,ns as icpRecordIcon,n2 as inBrowser,As as infoFilledIcon,Et as instances,_t as is,Si as isArray,ul as isAsyncFunction,Ht as isBoolean,Y as isClient,q0 as isDate,j0 as isDef,ko as isElement,e2 as isEmpty,Ai as isExternal,fl as isFocusable,Ae as isFunction,Z0 as isImageDom,Q0 as isImagePath,dl as isIos,Y0 as isNull,G0 as isNullAndUnDef,X0 as isNullOrUnDef,Rn as isNumber,Rt as isObject,J0 as isPhone,U0 as isPlainFunction,K0 as isPromise,t2 as isServer,fe as isString,cl as isStringNumber,z0 as isType,W0 as isUnDef,bo as isValidURL,Is as layoutIcon,so as layoutModeAttribute,si as layoutModeStorageKey,Mi as localeContextKey,_s as lockIcon,gn as loginUrlKeyMap,cs as magicIcon,hn as mobileMaxWidthMedia,O2 as moblieQQ,ma as moreFilledIcon,V2 as music,os as noticeIcon,ue as ns,El as onClickOutside,$s as overallReductionIcon,Qu as pageMaxWidthSlideStorageKey,Xu as pageMaxWidthVar,Xt as pageNumKey,is as playgroundIcon,ii as postDataUpdateSymbol,Xs as postsContext,Ss as questionFilledIcon,sa as readingIcon,ks as refreshLeftIcon,va as refreshRightIcon,i2 as removeStorageItem,ml as removeUnit,Fi as rgbToHex,ra as rocketIcon,Ca as scaleIcon,Cs as scaleToOriginalIcon,pa as shareIcon,od as sizeIcon,_r as spotlightStorageKey,Lr as spotlightStyleStorageKey,ya as successFilledIcon,jn as tagIcon,Js as teekConfigContext,N2 as telegram,e1 as themeBgColorStorageKey,co as themeColorAttribute,lo as themeColorList,xr as themeColorStorageKey,as as themeIcon,ha as thumbsIcon,la as topArticleIcon,xs as topIcon,Ir as touchMedia,yl as trackPageview,li as transitionName,kr as twikooContext,kl as umamiAnalytics,_i as upperFirst,Ta as useAllPosts,Tl as useAnchorScroll,Ii as useClipboard,Sa as useCommon,a2 as useCopyBanner,Lt as useDebounce,Co as useElementHover,ce as useEventListener,Pl as useIntersectionObserver,Z as useLocale,Ge as useMediaQuery,rn as useMounted,W as useNamespace,En as usePagePath,Do as usePageState,xl as usePopoverSize,vt as usePosts,p1 as useRiskLink,wt as useScopeDispose,_l as useScrollData,Sl as useScrollbarSize,xa as useSidebar,st as useStorage,Eo as useSwitchData,Aa as useTagColor,K as useTeekConfig,Il as useTextTypes,Wi as useThemeColor,Mr as useThemeColorList,qi as useUvPv,Nl as useViewTransition,Mt as useVpRouter,f1 as useWatchLogin,wo as useWindowSize,Hn as useWindowTransition,Yn as useWindowTransitionConfig,Ao as useZIndex,ua as userIcon,tt as varNameList,Dt as verifyModeMap,Rm as version,ls as viewIcon,Cr as walineContext,ba as warningFilledIcon,Ns as waterIcon,fa as weChatPayIcon,o2 as withBase,Rl as zIndexContextKey,Al as zhCn,ws as zoomInIcon,Es as zoomOutIcon};
715
+ `:""}var wm=Cm,Em={dump:wm};function el(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Tm=He,Am=C1,Sm=A1,xm=F1,_m=I1,Lm=Wr,Fm=t0.load,Im=t0.loadAll,$m=Em.dump,Mm=Xe,Bm={binary:P1,float:L1,map:T1,null:S1,pairs:O1,set:V1,timestamp:B1,bool:x1,int:_1,merge:N1,omap:D1,seq:E1,str:w1},Nm=el("safeLoad","load"),Pm=el("safeLoadAll","loadAll"),Dm=el("safeDump","dump"),Om={Type:Tm,Schema:Am,FAILSAFE_SCHEMA:Sm,JSON_SCHEMA:xm,CORE_SCHEMA:_m,DEFAULT_SCHEMA:Lm,load:Fm,loadAll:Im,dump:$m,YAMLException:Mm,types:Bm,safeLoad:Nm,safeLoadAll:Pm,safeDump:Dm};const Vm=(e,t)=>{t.forEach(n=>C0(e,n))},C0=(e,t)=>{const{type:n,className:o,beforeHtmlRender:i,htmlRender:l,afterHtmlRender:r,transformHtml:s}=t;e.use(v1,n,{}),e.renderer.rules[`container_${n}_open`]=(c,u)=>{const d=c[u];let p=`<div class="${o||`${n}-container`}">`;for(let f=u;f<c.length;f++){const h=c[f];if(h.type===`container_${n}_close`)break;if(!["yaml","yml"].includes(h.info))continue;const m=Om.load(h.content.trim());let v,y={};Array.isArray(m)?v=m:(v=m.data||[],y=m.config||{});const b=d.info.trim().slice(n.length).trim();i?.({data:v,config:y},b,c,f)!==!1&&(p+=l({data:v,config:y},b,c,f),r?.({data:v,config:y},b,c,f))}return p=s?.(p)??p,p}},Rm="1.6.2";var Hm={extends:ol,Layout:Qs(g1),async enhanceApp({app:e,siteData:t,router:n}){if(e.component("TkCataloguePage",Nr),e.component("TkArchivesPage",Br),e.component("TkArticleOverviewPage",Pr),e.component("TkLoginPage",Vr),e.component("TkRiskLinkPage",Rr),e.component("TkDemoCode",xu),e.component("TkTitleTag",Kn),e.component("TkIcon",X),!Y)return;const{themeConfig:o}=t.value;zm(o),o.permalinks&&await Um({siteData:t,router:n})}};const zm=e=>{const t=e.siteAnalytics||[],n={baidu:o=>{vl(o),Y&&yl(o,window.location.href)},google:o=>bl(o),umami:o=>kl(o),clarity:o=>Cl(o)};t.forEach(o=>{n[o.provider]?.(o.options)})},Um=async({siteData:e,router:t})=>{const{base:n,cleanUrls:o,themeConfig:i}=e.value;if(t.route.path===n&&t.route.data.isNotFound){const{pathname:l,search:r,hash:s}=new URL(location.href),c="/"+decodeURIComponent(l.slice(n.length)).replace(/\/$/,"").replace(/\.html/,""),u=o?c:c+".html",d=i.permalinks.inv[u];if(d){const p=n+d+r+s;await t.go(p)}}};export{bt as LayoutMode,Jt as SpotlightStyle,Ll as StorageSerializers,Qs as TeekConfigProvider,We as ThemeColorName,Br as TkArchivesPage,La as TkArticleAnalyze,_a as TkArticleBreadcrumb,wu as TkArticleCodeBlock,nc as TkArticleHeadingHighlight,oc as TkArticleImagePreview,Oo as TkArticleInfo,Pr as TkArticleOverviewPage,So as TkArticlePage,ic as TkArticlePageStyle,ac as TkArticleShare,In as TkArticleTitle,vu as TkArticleUpdate,Zs as TkAsideBottomAppreciation,xo as TkAvatar,yu as TkBodyBgImage,jl as TkBreadcrumb,Xi as TkBreadcrumbItem,d1 as TkCatalogueItem,Nr as TkCataloguePage,Eu as TkCommentArtalk,Tu as TkCommentGiscus,Au as TkCommentTwikoo,Su as TkCommentWaline,xu as TkDemoCode,ec as TkDocAfterAppreciation,tc as TkDocAfterAppreciationPopper,zl as TkDocAsideOutline,ta as TkFocusTrap,_u as TkFooterGroup,Lu as TkFooterInfo,Ou as TkHomeBanner,Ar as TkHomeBannerBgImage,Bu as TkHomeBannerBgPure,Nu as TkHomeBannerContent,Pu as TkHomeBannerFeature,Sr as TkHomeBannerWaves,zu as TkHomeCardCategory,qu as TkHomeCardDocAnalysis,Wu as TkHomeCardFriendLink,Ku as TkHomeCardMain,Vu as TkHomeCardMy,Ru as TkHomeCardMyScreen,Uu as TkHomeCardTag,Hu as TkHomeCardTopArticle,Gu as TkHomeFeature,Fu as TkHomeFullscreenWallpaper,Yu as TkHomeMain,Mu as TkHomePost,Tr as TkHomePostItemCard,Er as TkHomePostItemList,X as TkIcon,Ps as TkImageViewer,wa as TkInputSlide,g1 as TkLayout,Vr as TkLoginPage,Ne as TkMessage,u1 as TkNotice,pn as TkPageCard,qs as TkPagination,qn as TkPopover,c1 as TkRightBottomButton,Rr as TkRiskLinkPage,m1 as TkRouteLoading,No as TkSegmented,Ks as TkSegmentedItem,h1 as TkSidebarTrigger,i1 as TkSwitch,s1 as TkThemeEnhance,mn as TkThemeEnhanceBaseTemplate,Kn as TkTitleTag,Ys as TkTransitionCollapse,Gs as TkVerifyCode,Ea as TkVpContainer,B2 as WhatsApp,Yi as Z_INDEX_INJECTION_KEY,Fr as activateMaxWidthSlideMedia,Jm as addIcons,et as addUnit,na as aliPayIcon,Ms as alignLeftIcon,Bs as alignTextLeftIcon,oa as arrowDownIcon,Mo as arrowLeftIcon,Bo as arrowRightIcon,vr as artalkContext,Wn as autoWidthIcon,vl as baiduAnalytics,P2 as bilibili,us as calendarIcon,Ki as callBusuanzi,Bl as callVercount,gs as caretTopIcon,Un as categoryIcon,Ts as circleCloseFilledIcon,Cl as clarityAnalytics,ka as clickIcon,rs as clockIcon,$o as closeIcon,ms as codeIcon,fs as collectionTagIcon,ca as commentIcon,hs as copyIcon,es as copyrightIcon,C0 as createCardContainer,Vm as createCardContainers,ci as createContainerThenGet,g8 as createContainerThenUse,y8 as createContainersThenGet,v8 as createContainersThenUse,gr as createDynamicComponent,Os as createImageViewer,To as createScript,bs as dArrowLeftIcon,ys as dArrowRightIcon,Hm as default,Vl as defaultInitialZIndex,Or as defaultPrivateConfig,ia as docAnalysisIcon,Zu as docMaxWidthSlideStorageKey,Ju as docMaxWidthVar,da as editPenIcon,M2 as email,ts as emptyIcon,r2 as en,vs as externalLinkIcon,ds as folderOpenedIcon,Cn as formatDate,pl as formatDiffDate,hl as formatDiffDateToDay,aa as friendLinkIcon,Ls as fullScreenOneIcon,ga as fullscreenIcon,Fs as fullscreenTwoIcon,gl as get,ht as getDarkColor,Rs as getInstance,Hs as getLastOffset,mt as getLightColor,Dr as getLoginStorageKey,xi as getNowDate,zs as getOffsetOrSpace,br as giscusContext,$2 as gitee,D2 as github,ps as githubIcon,bl as googleAnalytics,Fl as guessSerializerType,Li as hexToRgb,ss as houseIcon,ns as icpRecordIcon,n2 as inBrowser,As as infoFilledIcon,Et as instances,_t as is,Si as isArray,ul as isAsyncFunction,Ht as isBoolean,Y as isClient,q0 as isDate,j0 as isDef,ko as isElement,e2 as isEmpty,Ai as isExternal,fl as isFocusable,Ae as isFunction,Z0 as isImageDom,Q0 as isImagePath,dl as isIos,Y0 as isNull,G0 as isNullAndUnDef,X0 as isNullOrUnDef,Rn as isNumber,Rt as isObject,J0 as isPhone,U0 as isPlainFunction,K0 as isPromise,t2 as isServer,fe as isString,cl as isStringNumber,z0 as isType,W0 as isUnDef,bo as isValidURL,Is as layoutIcon,so as layoutModeAttribute,si as layoutModeStorageKey,Mi as localeContextKey,_s as lockIcon,gn as loginUrlKeyMap,cs as magicIcon,hn as mobileMaxWidthMedia,O2 as moblieQQ,ma as moreFilledIcon,V2 as music,os as noticeIcon,ue as ns,El as onClickOutside,$s as overallReductionIcon,Qu as pageMaxWidthSlideStorageKey,Xu as pageMaxWidthVar,Xt as pageNumKey,is as playgroundIcon,ii as postDataUpdateSymbol,Xs as postsContext,Ss as questionFilledIcon,sa as readingIcon,ks as refreshLeftIcon,va as refreshRightIcon,i2 as removeStorageItem,ml as removeUnit,Fi as rgbToHex,ra as rocketIcon,Ca as scaleIcon,Cs as scaleToOriginalIcon,pa as shareIcon,od as sizeIcon,_r as spotlightStorageKey,Lr as spotlightStyleStorageKey,ya as successFilledIcon,jn as tagIcon,Js as teekConfigContext,N2 as telegram,e1 as themeBgColorStorageKey,co as themeColorAttribute,lo as themeColorList,xr as themeColorStorageKey,as as themeIcon,ha as thumbsIcon,la as topArticleIcon,xs as topIcon,Ir as touchMedia,yl as trackPageview,li as transitionName,kr as twikooContext,kl as umamiAnalytics,_i as upperFirst,Ta as useAllPosts,Tl as useAnchorScroll,Ii as useClipboard,Sa as useCommon,a2 as useCopyBanner,Lt as useDebounce,Co as useElementHover,ce as useEventListener,Pl as useIntersectionObserver,Z as useLocale,Ge as useMediaQuery,rn as useMounted,W as useNamespace,En as usePagePath,Do as usePageState,xl as usePopoverSize,vt as usePosts,p1 as useRiskLink,wt as useScopeDispose,_l as useScrollData,Sl as useScrollbarSize,xa as useSidebar,st as useStorage,Eo as useSwitchData,Aa as useTagColor,K as useTeekConfig,Il as useTextTypes,Wi as useThemeColor,Mr as useThemeColorList,qi as useUvPv,Nl as useViewTransition,Mt as useVpRouter,f1 as useWatchLogin,wo as useWindowSize,Hn as useWindowTransition,Yn as useWindowTransitionConfig,Ao as useZIndex,ua as userIcon,tt as varNameList,Dt as verifyModeMap,Rm as version,ls as viewIcon,Cr as walineContext,ba as warningFilledIcon,Ns as waterIcon,fa as weChatPayIcon,o2 as withBase,Rl as zIndexContextKey,Al as zhCn,ws as zoomInIcon,Es as zoomOutIcon};
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! vitepress-theme-teek v1.6.1 */
1
+ /*! vitepress-theme-teek v1.6.2 */
2
2
  import DefaultTheme, { VPBadge } from 'vitepress/theme';
3
3
  import * as Vue from 'vue';
4
4
  import { getCurrentScope, onScopeDispose, computed, toValue, watch, shallowRef, getCurrentInstance, onMounted, nextTick, reactive, ref, inject, isRef, watchEffect, readonly, provide, unref, onUpdated, onUnmounted, defineComponent, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createElementVNode, toDisplayString, createBlock, createCommentVNode, createVNode, renderSlot, useId, createPropsRestProxy, useSlots, toRaw, normalizeStyle, resolveDynamicComponent, onBeforeUnmount, effectScope, Teleport, Transition, withCtx, withModifiers, createTextVNode, withDirectives, vShow, useModel, mergeProps, render, vModelText, mergeModels, shallowReactive, mergeDefaults, isVNode, withKeys, h, onBeforeMount, vModelRadio, toHandlers, createApp, useTemplateRef, defineAsyncComponent, normalizeProps, guardReactiveProps, TransitionGroup, createStaticVNode, createSlots, markRaw, vModelDynamic } from 'vue';
@@ -25664,7 +25664,7 @@ const createCardContainer = (md, option) => {
25664
25664
  };
25665
25665
  };
25666
25666
 
25667
- const version = "1.6.1";
25667
+ const version = "1.6.2";
25668
25668
 
25669
25669
  var index = {
25670
25670
  extends: DefaultTheme,
@@ -21,16 +21,16 @@ declare const __VLS_component: DefineComponent<MessageProps, {
21
21
  }, string, PublicProps, Readonly<MessageProps> & Readonly<{
22
22
  onDestroy?: (() => any) | undefined;
23
23
  }>, {
24
+ icon: string | Object | Component | IconifyIcon;
25
+ zIndex: number;
24
26
  center: boolean;
25
27
  id: string;
26
28
  type: MessageType;
27
29
  offset: number;
28
- icon: string | Object | Component | IconifyIcon;
29
30
  onClose: () => void;
30
- zIndex: number;
31
+ duration: number;
31
32
  customClass: string;
32
33
  dangerouslyUseHTMLString: boolean;
33
- duration: number;
34
34
  message: string | VNode | (() => VNode);
35
35
  showClose: boolean;
36
36
  plain: boolean;
@@ -23,7 +23,7 @@ export declare function getTitle(post: RequiredKeyPartialOther<TkContentData, "f
23
23
  * @param srcDir 项目绝对路径
24
24
  * @param articleAnalyze 文章信息配置
25
25
  */
26
- export declare function getDate(post: RequiredKeyPartialOther<TkContentData, "frontmatter" | "relativePath">, srcDir: string, articleAnalyze: ArticleAnalyze): any;
26
+ export declare function getDate(post: RequiredKeyPartialOther<TkContentData, "frontmatter" | "relativePath">, srcDir: string, { dateFormat, dateUTC }: ArticleAnalyze): any;
27
27
  /**
28
28
  * 截取 markdown 文件前 count 数的内容
29
29
  *
@@ -11,14 +11,17 @@ const transformData = (data) => {
11
11
  const siteConfig = globalThis.VITEPRESS_CONFIG;
12
12
  const { themeConfig } = siteConfig.userConfig;
13
13
  const { frontmatter, url, relativePath, excerpt } = data;
14
- if (frontmatter.date) frontmatter.date = index.formatDate(frontmatter.date, "yyyy-MM-dd hh:mm:ss", true);
14
+ const { dateFormat = "yyyy-MM-dd hh:mm:ss", dateUTC = true } = themeConfig.articleAnalyze ?? {};
15
+ if (frontmatter.date) {
16
+ frontmatter.date = index.isFunction(dateFormat) ? dateFormat(frontmatter.date) : index.formatDate(frontmatter.date, dateFormat, dateUTC);
17
+ }
15
18
  return {
16
19
  url,
17
20
  relativePath,
18
21
  frontmatter,
19
22
  author: frontmatter.author || themeConfig.author,
20
23
  title: getTitle(data),
21
- date: getDate(data, siteConfig.srcDir, themeConfig.articleAnalyze),
24
+ date: getDate(data, siteConfig.srcDir, { dateFormat, dateUTC }),
22
25
  excerpt,
23
26
  capture: getCaptureText(data)
24
27
  };
@@ -66,7 +69,7 @@ function getTitle(post) {
66
69
  const name = splitName.length > 1 ? splitName[1] : splitName[0];
67
70
  return Sidebar.getTitleFromMarkdown(content) || name || "";
68
71
  }
69
- function getDate(post, srcDir, articleAnalyze) {
72
+ function getDate(post, srcDir, { dateFormat = "yyyy-MM-dd hh:mm:ss", dateUTC = true }) {
70
73
  const { frontmatter, relativePath } = post;
71
74
  if (frontmatter.date) return frontmatter.date;
72
75
  const filePath = node_path.join(
@@ -75,8 +78,7 @@ function getDate(post, srcDir, articleAnalyze) {
75
78
  );
76
79
  const stat = node_fs.statSync(filePath);
77
80
  const originalDate = stat.birthtime || stat.atime;
78
- if (index.isFunction(articleAnalyze.dateFormat)) return articleAnalyze.dateFormat(String(originalDate));
79
- return index.formatDate(String(originalDate), articleAnalyze.dateFormat, !(articleAnalyze.dateUTC ?? true));
81
+ return index.isFunction(dateFormat) ? dateFormat(String(originalDate)) : index.formatDate(originalDate, dateFormat, !dateUTC);
80
82
  }
81
83
  const getCaptureText = (post, count = 300) => {
82
84
  const { content = "" } = matter(post.src || "", {});
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.6.1";
1
+ export declare const version = "1.6.2";
package/lib/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const version = "1.6.1";
3
+ const version = "1.6.2";
4
4
 
5
5
  exports.version = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitepress-theme-teek",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "vitepress-theme-teek",
5
5
  "type": "module",
6
6
  "author": {
@@ -1 +1 @@
1
- :root{--tk-custom-block-tip-bg:#e6f6e6;--tk-custom-block-warning-bg:#fff8e6;--tk-custom-block-danger-bg:#ffebec;--tk-custom-block-note-bg:#e8f5fa;--tk-custom-block-important-bg:#f4eefe;--tk-custom-block-caution-bg:#fde4e8;--tk-custom-block-title-size:15px}:root.dark{--tk-custom-block-info-bg:#474748;--tk-custom-block-tip-bg:#003100;--tk-custom-block-warning-bg:#4d3800;--tk-custom-block-danger-bg:#4b1113;--tk-custom-block-note-bg:#003a4d;--tk-custom-block-important-bg:#230555;--tk-custom-block-caution-bg:#391c22}:root{--tk-custom-block-info-left:#ccc;--tk-custom-block-tip-left:#009400;--tk-custom-block-warning-left:#e6a700;--tk-custom-block-info-bg:#fafafa;--tk-custom-block-danger-left:#e13238;--tk-custom-block-note-left:#4cb3d4;--tk-custom-block-important-left:#a371f7;--tk-custom-block-caution-left:#e0575b}.custom-block-title{font-size:getCssVar(custom-block-title-size)}.custom-block.info{background-color:var(--tk-custom-block-info-bg)}.custom-block.tip{background-color:var(--tk-custom-block-tip-bg)}.custom-block.warning{background-color:var(--tk-custom-block-warning-bg)}.custom-block.danger{background-color:var(--tk-custom-block-danger-bg)}.custom-block.note{background-color:var(--tk-custom-block-note-bg)}.custom-block.important{background-color:var(--tk-custom-block-important-bg)}.custom-block.caution{background-color:var(--tk-custom-block-caution-bg)}.custom-block.info [class*=custom-block-title]:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z' fill='%23ccc'/%3E%3C/svg%3E");top:-1px}.custom-block.info [class*=custom-block-title]:before,.custom-block.tip [class*=custom-block-title]:before{content:"";display:inline-block;height:20px;left:-5px;margin-right:4px;position:relative;vertical-align:middle;width:20px}.custom-block.tip [class*=custom-block-title]:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23009400' d='M7.941 18c-.297-1.273-1.637-2.314-2.187-3a8 8 0 1 1 12.49.002c-.55.685-1.888 1.726-2.185 2.998H7.94zM16 20v1a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-1h8zm-3-9.995V6l-4.5 6.005H11v4l4.5-6H13z'/%3E%3C/svg%3E");top:-2px}.custom-block.warning [class*=custom-block-title]:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M576.286 752.57v-95.425q0-7.031-4.771-11.802t-11.3-4.772h-96.43q-6.528 0-11.3 4.772t-4.77 11.802v95.424q0 7.031 4.77 11.803t11.3 4.77h96.43q6.528 0 11.3-4.77t4.77-11.803zm-1.005-187.836 9.04-230.524q0-6.027-5.022-9.543-6.529-5.524-12.053-5.524H456.754q-5.524 0-12.053 5.524-5.022 3.516-5.022 10.547l8.538 229.52q0 5.023 5.022 8.287t12.053 3.265h92.913q7.032 0 11.803-3.265t5.273-8.287zM568.25 95.65l385.714 707.142q17.578 31.641-1.004 63.282-8.538 14.564-23.354 23.102t-31.892 8.538H126.286q-17.076 0-31.892-8.538T71.04 866.074q-18.582-31.641-1.004-63.282L455.75 95.65q8.538-15.57 23.605-24.61T512 62t32.645 9.04 23.605 24.61z' fill='%23e6a700'/%3E%3C/svg%3E");content:"";display:inline-block;height:20px;left:-5px;margin-right:4px;position:relative;vertical-align:middle;width:20px}.custom-block.danger [class*=custom-block-title]:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c5.523 0 10 4.477 10 10v3.764a2 2 0 0 1-1.106 1.789L18 19v1a3 3 0 0 1-2.824 2.995L14.95 23a2.5 2.5 0 0 0 .044-.33L15 22.5V22a2 2 0 0 0-1.85-1.995L13 20h-2a2 2 0 0 0-1.995 1.85L9 22v.5c0 .171.017.339.05.5H9a3 3 0 0 1-3-3v-1l-2.894-1.447A2 2 0 0 1 2 15.763V12C2 6.477 6.477 2 12 2zm-4 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z' fill='%23e13238'/%3E%3C/svg%3E")}.custom-block.danger [class*=custom-block-title]:before,.custom-block.note [class*=custom-block-title]:before{content:"";display:inline-block;height:20px;left:-5px;margin-right:4px;position:relative;top:-1px;vertical-align:middle;width:20px}.custom-block.note [class*=custom-block-title]:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z' fill='%234cb3d4'/%3E%3C/svg%3E")}.custom-block.important [class*=custom-block-title]:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M512 981.333a84.992 84.992 0 0 1-84.907-84.906h169.814A84.992 84.992 0 0 1 512 981.333zm384-128H128v-42.666l85.333-85.334v-256A298.325 298.325 0 0 1 448 177.92V128a64 64 0 0 1 128 0v49.92a298.325 298.325 0 0 1 234.667 291.413v256L896 810.667v42.666zm-426.667-256v85.334h85.334v-85.334h-85.334zm0-256V512h85.334V341.333h-85.334z' fill='%23a371f7'/%3E%3C/svg%3E")}.custom-block.caution [class*=custom-block-title]:before,.custom-block.important [class*=custom-block-title]:before{content:"";display:inline-block;height:20px;left:-5px;margin-right:4px;position:relative;top:-1px;vertical-align:middle;width:20px}.custom-block.caution [class*=custom-block-title]:before{background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c5.523 0 10 4.477 10 10v3.764a2 2 0 0 1-1.106 1.789L18 19v1a3 3 0 0 1-2.824 2.995L14.95 23a2.5 2.5 0 0 0 .044-.33L15 22.5V22a2 2 0 0 0-1.85-1.995L13 20h-2a2 2 0 0 0-1.995 1.85L9 22v.5c0 .171.017.339.05.5H9a3 3 0 0 1-3-3v-1l-2.894-1.447A2 2 0 0 1 2 15.763V12C2 6.477 6.477 2 12 2zm-4 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z' fill='%23e13238'/%3E%3C/svg%3E")}
1
+ .tk-center-container{text-align:center}.tk-right-container{text-align:right}.custom-block .tk-right-container{font-size:14px;margin:-8px 0 0}:root{--tk-custom-block-note-bg:#e8f5fa}:root.dark{--tk-custom-block-note-bg:#003a4d}.custom-block.note{background-color:var(--tk-custom-block-note-bg)}