blog-hexo/themes/hexo-theme-cosy/source/js/a02fa72b.js

1 line
10 KiB
JavaScript
Raw Normal View History

2023-10-21 17:55:14 +08:00
(()=>{var e,t,n={59:(e,t,n)=>{var r={"./prism-atom-dark.less":[271,271],"./prism-duotone-sea.less":[922,922],"./prism-laserwave.less":[796,21],"./prism-line-number.less":[206,206],"./prism-material-dark.less":[429,429],"./prism-night-owl.less":[291,291],"./prism-one-dark.less":[766,766],"./prism-one-light.less":[618,618],"./prism-vsc-dark-plus.less":[945,945]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=59,e.exports=o},837:()=>{"use strict";document.addEventListener("DOMContentLoaded",(function(){!function(e,t){const n=document.querySelector(e);n&&document.addEventListener("selectionchange",(()=>{const e=window.getSelection();if(e&&e.rangeCount>0&&!e.isCollapsed){const r=e.getRangeAt(0);if(n.contains(r.startContainer)&&n.contains(r.endContainer)){const o=e.toString(),s=[],a=document.createNodeIterator(r.commonAncestorContainer,NodeFilter.SHOW_ELEMENT);let i;for(;i=a.nextNode();)r.intersectsNode(i)&&s.push(i);const l=s.filter((e=>n!==e));t({selectedElements:l,selectedText:o})}}}))}(".article-container article",(e=>{}))}))}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={exports:{}};return n[e](s,s.exports,o),s.exports}o.m=n,o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"js/"+e+"."+{21:"282c05e7",206:"759361ed",271:"ee88a6de",291:"4ac6984b",429:"bc4769cb",618:"1a58fba9",766:"9503a62c",922:"689e0633",945:"0313a94c"}[e]+".js",o.miniCssF=e=>"css/"+e+"."+{21:"88950121",206:"a3a4e130",271:"54fa1675",291:"a8323266",429:"fb1dabcb",618:"6513d67e",766:"64ad3c35",922:"9efa0b6b",945:"fdf98cb0"}[e]+".css",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@ornn/dockyard:",o.l=(n,r,s,a)=>{if(e[n])e[n].push(r);else{var i,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+s){i=u;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.setAttribute("data-webpack",t+s),i.src=n),e[n]=[r];var p=(t,r)=>{i.onerror=i.onload=null,clearTimeout(m);var o=e[n];if(delete e[n],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(r))),t)return t(r)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e+"../"})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,n)=>{var r=o.miniCssF(e),s=o.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var s=document.getElementsByTagName("style");for(r=0;r<s.length;r++){var a;if((o=(a=s[r]).getAttribute("data-href"))===e||o===t)return a}})(r,s))return t();((e,t,n,r,o)=>{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onerror=s.onload=n=>{if(s.onerror=s.onload=null,"load"===n.type)r();else{var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=i,s.parentNode&&s.parentNode