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B,CAACC,EAA4BnqB,KACvD,IAGI2hB,EAAU8F,GAHTnB,EAAU8D,EAAaC,GAAWrqB,EAGhBoF,EAAI,EAC3B,GAAGkhB,EAASnY,MAAM5E,GAAgC,IAAxBugB,EAAgBvgB,KAAa,CACtD,IAAIoY,KAAYyI,EACZlE,EAAoB7gB,EAAE+kB,EAAazI,KACrCuE,EAAoBpE,EAAEH,GAAYyI,EAAYzI,IAGhD,GAAG0I,EAAS,IAAInyB,EAASmyB,EAAQnE,EAClC,CAEA,IADGiE,GAA4BA,EAA2BnqB,GACrDoF,EAAIkhB,EAAS5vB,OAAQ0O,IACzBqiB,EAAUnB,EAASlhB,GAChB8gB,EAAoB7gB,EAAEykB,EAAiBrC,IAAYqC,EAAgBrC,IACrEqC,EAAgBrC,GAAS,KAE1BqC,EAAgBrC,GAAW,EAE5B,OAAOvB,EAAoBG,EAAEnuB,EAAO,EAGjCoyB,EAAqBzC,WAA0C,8BAAIA,WAA0C,+BAAK,GACtHyC,EAAmB/3B,QAAQ23B,EAAqBhU,KAAK,KAAM,IAC3DoU,EAAmBr1B,KAAOi1B,EAAqBhU,KAAK,KAAMoU,EAAmBr1B,KAAKihB,KAAKoU,QClFvF,IAAIC,EAAsBrE,EAAoBG,OAAE1rB,EAAW,CAAC,OAAO,IAAOurB,EAAoB,QAC9FqE,EAAsBrE,EAAoBG,EAAEkE","sources":["webpack://sakurairo-scripts/webpack/runtime/chunk loaded","webpack://sakurairo-scripts/webpack/runtime/create fake namespace object","webpack://sakurairo-scripts/webpack/runtime/load script","webpack://sakurairo-scripts/./node_modules/.pnpm/github.com+KotoriK+lazyload@efc7a1b081d4b865788600a7403126564247dfbd_znd7m7brs4mfqc4nqv46yhqepq/node_modules/lazyload/src/lazyload.ts","webpack://sakurairo-scripts/./src/common/cookie.ts","webpack://sakurairo-scripts/./src/app/compatibility.ts","webpack://sakurairo-scripts/./src/app/copyright.ts","webpack://sakurairo-scripts/./node_modules/.pnpm/idb-keyval@6.2.1/node_modules/idb-keyval/dist/index.js","webpack://sakurairo-scripts/./src/app/cache.ts","webpack://sakurairo-scripts/./src/app/coverBackground.ts","webpack://sakurairo-scripts/./src/app/darkmode.ts","webpack://sakurairo-scripts/./src/app/font_control.ts","webpack://sakurairo-scripts/./src/app/hitokoto.ts","webpack://sakurairo-scripts/./src/app/mobile.ts","webpack://sakurairo-scripts/./src/app/showcard.ts","webpack://sakurairo-scripts/./src/app/typed.ts","webpack://sakurairo-scripts/./src/app/video.ts","webpack://sakurairo-scripts/./src/app/web_audio.ts","webpack://sakurairo-scripts/./src/common/butterbar.ts","webpack://sakurairo-scripts/./src/common/npmLib.ts","webpack://sakurairo-scripts/./src/common/sakurairo_global.ts","webpack://sakurairo-scripts/./src/common/util.ts","webpack://sakurairo-scripts/./src/app/mobile_nav.ts","webpack://sakurairo-scripts/./src/app/search.ts","webpack://sakurairo-scripts/./src/app/func.js","webpack://sakurairo-scripts/./src/app/global-func.js","webpack://sakurairo-scripts/./node_modules/.pnpm/github.com+KotoriK+neuquant-js@d27fa2f1a7a966e8dcacd0d610ab3ab798f946ca_hfp7f4nnfdzbrzea7hubd7iapq/node_modules/neuquant-js/dist/index.js","webpack://sakurairo-scripts/./node_modules/.pnpm/color-space@2.0.1/node_modules/color-space/rgb.js","webpack://sakurairo-scripts/./node_modules/.pnpm/color-space@2.0.1/node_modules/color-space/xyz.js","webpack://sakurairo-scripts/./node_modules/.pnpm/@kotorik+palette@2.1.0/node_modules/@kotorik/palette/dist/index.modern.js","webpack://sakurairo-scripts/./node_modules/.pnpm/color-space@2.0.1/node_modules/color-space/lab.js","webpack://sakurairo-scripts/./src/app/theme-color/index.ts","webpack://sakurairo-scripts/./src/app/effect.js","webpack://sakurairo-scripts/./node_modules/.pnpm/color-space@2.0.1/node_modules/color-space/hsl.js","webpack://sakurairo-scripts/./src/app/index.js","webpack://sakurairo-scripts/./src/app/scroll_handler.ts","webpack://sakurairo-scripts/./src/app/preload_screen.ts","webpack://sakurairo-scripts/./src/app/about_us.ts","webpack://sakurairo-scripts/./src/app/post_list.js","webpack://sakurairo-scripts/./src/common/code-highlight.js","webpack://sakurairo-scripts/./node_modules/.pnpm/fg-loadcss@3.1.0/node_modules/fg-loadcss/src/loadCSS.js","webpack://sakurairo-scripts/./node_modules/.pnpm/github.com+Fuukei+activate-power-mode@af3f686f10267f8ec50e15e997ea619aae9a90b5_ojsind3jzigwl7qponpcuqlase/node_modules/activate-power-mode/dist/activate-power-mode.js","webpack://sakurairo-scripts/./node_modules/.pnpm/promise-worker@2.0.1/node_modules/promise-worker/index.js","webpack://sakurairo-scripts/webpack/bootstrap","webpack://sakurairo-scripts/webpack/runtime/compat get default export","webpack://sakurairo-scripts/webpack/runtime/define property getters","webpack://sakurairo-scripts/webpack/runtime/ensure chunk","webpack://sakurairo-scripts/webpack/runtime/get javascript chunk filename","webpack://sakurairo-scripts/webpack/runtime/get mini-css chunk filename","webpack://sakurairo-scripts/webpack/runtime/global","webpack://sakurairo-scripts/webpack/runtime/hasOwnProperty shorthand","webpack://sakurairo-scripts/webpack/runtime/make namespace object","webpack://sakurairo-scripts/webpack/runtime/publicPath","webpack://sakurairo-scripts/webpack/runtime/css loading","webpack://sakurairo-scripts/webpack/runtime/jsonp chunk loading","webpack://sakurairo-scripts/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"sakurairo-scripts:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","/**\n * default option\n */\nconst defaults = {\n src: \"data-src\",\n srcset: \"data-srcset\",\n selector: \".lazyload\",\n root: null,\n rootMargin: \"0px\",\n threshold: 0\n};\n/**\n * @class LazyLoad\n */\nexport default class LazyLoad {\n constructor(elms, options) {\n this.settings = { ...defaults, ...options };\n this.elms = elms || document.querySelectorAll(this.settings.selector);\n this.init();\n }\n elms;\n obs = null;\n settings;\n init() {\n /* Without observers load everything and bail out early. */\n if (!IntersectionObserver) {\n this.load();\n return;\n }\n const self = this;\n this.obs = new IntersectionObserver(function (entries) {\n Array.prototype.forEach.call(entries, function (entry) {\n if (entry.isIntersecting) {\n self.obs.unobserve(entry.target);\n self.doLoad(entry.target);\n }\n });\n }, {\n root: this.settings.root,\n rootMargin: this.settings.rootMargin,\n threshold: [this.settings.threshold]\n });\n this.elms.forEach((image) => {\n self.obs.observe(image);\n });\n }\n loadAndDestroy() {\n if (!this.settings) {\n return;\n }\n this.load();\n this.destroy();\n }\n load() {\n if (!this.settings) {\n return;\n }\n const { settings } = this;\n Array.prototype.forEach.call(this.elms, this.doLoad);\n }\n doLoad = (element) => {\n const { settings } = this;\n const src = element.getAttribute(settings.src);\n const srcset = element.getAttribute(settings.srcset);\n const tagName = element.tagName.toLowerCase();\n if (tagName === 'video') {\n if (src) {\n element.src = src;\n }\n }\n else if (tagName === 'img') {\n if (src) {\n element.src = src;\n }\n if (srcset) {\n //@ts-ignore\n element.srcset = srcset;\n }\n }\n else {\n element.style.backgroundImage = \"url('\" + src + \"')\";\n }\n };\n /**\n * Destroy Lazyload Instance\n * @returns\n */\n destroy() {\n if (!this.settings) {\n return;\n }\n this.obs.disconnect();\n this.settings = null;\n }\n}\nexport const lazyload = (images, options) => new LazyLoad(images, options);\n","/**\n * Cookie\n * from github.com/mirai-mamori/Sakurairo ./js/sakura-app.js ,commit 71f5a0c\n * @license GPL-v2\n * @date 2021.03\n */\nconst _version_ctrl = _iro.cookie_version_control || '';\nexport function setCookie(key, value, days) {\n const expires = days ? \"; expires=\" + new Date(Date.now() + (days * 24 * 60 * 60 * 1000)).toUTCString() : \"\";\n document.cookie = key + _version_ctrl + \"=\" + (value || \"\") + expires + \"; path=/\";\n}\nexport function getCookie(key) {\n const nameEQ = key + _version_ctrl + \"=\", ca = document.cookie.split(';');\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i];\n while (c.charAt(0) == ' ')\n c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) == 0)\n return c.substring(nameEQ.length, c.length);\n }\n return null;\n}\nexport function removeCookie(key) {\n document.cookie = key + _version_ctrl + '=; Max-Age=-99999999;';\n}\n","const UA = navigator.userAgent;\n/**\n * 关于AppleWebkit与Safari版本的对应,参考:\n * @seealso https://gist.github.com/jakub-g/48a16195280a7023f570ffa5c8a4eae5\n * @seealso https://en.wikipedia.org/wiki/Safari_version_history\n *\n * Opera浏览器自15以来更换了User Agent\n * OPR/*\n */\nconst uaMatches = Array.from(UA.matchAll(/(Firefox|Chrome|Version|OPR|Edg)\\/(\\d+)/ig));\nimport { setCookie } from '../common/cookie';\nfunction getSupportedImageMimeList() {\n const acceptList = ['image/*,*/*;q=0.8'];\n if (isSupported({ Chrome: 59, OPR: 46, Firefox: 3, Edg: 79, Version: 8 /**Safari 8 */ })) {\n acceptList.push('image/apng');\n if (isSupported({ Chrome: 32, OPR: 19, Firefox: 65, Edg: 18, Version: 14 /**Safari 14 */ })) {\n setCookie('su_webp', '1', 114514);\n acceptList.push('image/webp');\n if (isSupported({ Chrome: 85, OPR: 71, Firefox: 93 })) {\n acceptList.push('image/avif');\n }\n }\n }\n return acceptList.reverse().join(',');\n}\nexport function isSupported(checkList) {\n for (const [_, name, version] of uaMatches) {\n if (parseFloat(version) >= checkList[name]) {\n return true;\n }\n }\n return false;\n}\nexport const Accept_Image = getSupportedImageMimeList();\n","import { createButterbar } from \"../common/butterbar\";\nimport { __ } from \"../common/sakurairo_global\";\nconst txt = [\n \"# 商业转载请联系作者获得授权,非商业转载请注明出处。\",\n \"# For commercial use, please contact the author for authorization. For non-commercial use, please indicate the source.\",\n \"# 协议(License):署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)\",\n \"# 作者(Author):\" + _iro.author_name,\n \"# 链接(URL):\" + window.location.href,\n \"# 来源(Source):\" + _iro.site_name,\n];\nfunction setClipboardText(event, selectionTxt) {\n event.preventDefault();\n const htmlData = txt.join('<br>') + \"<br><br>\" + selectionTxt.replace(/\\r\\n/g, \"<br>\"), textData = txt.join('\\n') + \"\\n\\n\" + selectionTxt.toString().replace(/\\r\\n/g, \"\\n\");\n if (event.clipboardData) {\n event.clipboardData.setData(\"text/html\", htmlData);\n event.clipboardData.setData(\"text/plain\", textData);\n }\n else if (window.clipboardData) {\n //deprecate?\n return window.clipboardData.setData(\"text\", textData);\n }\n}\nfunction copytext(e) {\n const selection = window.getSelection();\n if (selection) {\n const selectionText = selection.toString();\n if (selectionText.length > 30) {\n setClipboardText(e, selectionText);\n createButterbar(__(\"复制成功!\"), 1000);\n }\n }\n}\n/**\n * 添加复制时的版权提示\n */\nexport default function add_copyright() {\n if (_iro.clipboardCopyright) {\n document.body.removeEventListener(\"copy\", copytext);\n document.body.addEventListener(\"copy\", copytext);\n }\n}\n","function promisifyRequest(request) {\n return new Promise((resolve, reject) => {\n // @ts-ignore - file size hacks\n request.oncomplete = request.onsuccess = () => resolve(request.result);\n // @ts-ignore - file size hacks\n request.onabort = request.onerror = () => reject(request.error);\n });\n}\nfunction createStore(dbName, storeName) {\n const request = indexedDB.open(dbName);\n request.onupgradeneeded = () => request.result.createObjectStore(storeName);\n const dbp = promisifyRequest(request);\n return (txMode, callback) => dbp.then((db) => callback(db.transaction(storeName, txMode).objectStore(storeName)));\n}\nlet defaultGetStoreFunc;\nfunction defaultGetStore() {\n if (!defaultGetStoreFunc) {\n defaultGetStoreFunc = createStore('keyval-store', 'keyval');\n }\n return defaultGetStoreFunc;\n}\n/**\n * Get a value by its key.\n *\n * @param key\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction get(key, customStore = defaultGetStore()) {\n return customStore('readonly', (store) => promisifyRequest(store.get(key)));\n}\n/**\n * Set a value with a key.\n *\n * @param key\n * @param value\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction set(key, value, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n store.put(value, key);\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Set multiple values at once. This is faster than calling set() multiple times.\n * It's also atomic – if one of the pairs can't be added, none will be added.\n *\n * @param entries Array of entries, where each entry is an array of `[key, value]`.\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction setMany(entries, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n entries.forEach((entry) => store.put(entry[1], entry[0]));\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Get multiple values by their keys\n *\n * @param keys\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction getMany(keys, customStore = defaultGetStore()) {\n return customStore('readonly', (store) => Promise.all(keys.map((key) => promisifyRequest(store.get(key)))));\n}\n/**\n * Update a value. This lets you see the old value and update it as an atomic operation.\n *\n * @param key\n * @param updater A callback that takes the old value and returns a new value.\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction update(key, updater, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => \n // Need to create the promise manually.\n // If I try to chain promises, the transaction closes in browsers\n // that use a promise polyfill (IE10/11).\n new Promise((resolve, reject) => {\n store.get(key).onsuccess = function () {\n try {\n store.put(updater(this.result), key);\n resolve(promisifyRequest(store.transaction));\n }\n catch (err) {\n reject(err);\n }\n };\n }));\n}\n/**\n * Delete a particular key from the store.\n *\n * @param key\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction del(key, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n store.delete(key);\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Delete multiple keys at once.\n *\n * @param keys List of keys to delete.\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction delMany(keys, customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n keys.forEach((key) => store.delete(key));\n return promisifyRequest(store.transaction);\n });\n}\n/**\n * Clear all values in the store.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction clear(customStore = defaultGetStore()) {\n return customStore('readwrite', (store) => {\n store.clear();\n return promisifyRequest(store.transaction);\n });\n}\nfunction eachCursor(store, callback) {\n store.openCursor().onsuccess = function () {\n if (!this.result)\n return;\n callback(this.result);\n this.result.continue();\n };\n return promisifyRequest(store.transaction);\n}\n/**\n * Get all keys in the store.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction keys(customStore = defaultGetStore()) {\n return customStore('readonly', (store) => {\n // Fast path for modern browsers\n if (store.getAllKeys) {\n return promisifyRequest(store.getAllKeys());\n }\n const items = [];\n return eachCursor(store, (cursor) => items.push(cursor.key)).then(() => items);\n });\n}\n/**\n * Get all values in the store.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction values(customStore = defaultGetStore()) {\n return customStore('readonly', (store) => {\n // Fast path for modern browsers\n if (store.getAll) {\n return promisifyRequest(store.getAll());\n }\n const items = [];\n return eachCursor(store, (cursor) => items.push(cursor.value)).then(() => items);\n });\n}\n/**\n * Get all entries in the store. Each entry is an array of `[key, value]`.\n *\n * @param customStore Method to get a custom store. Use with caution (see the docs).\n */\nfunction entries(customStore = defaultGetStore()) {\n return customStore('readonly', (store) => {\n // Fast path for modern browsers\n // (although, hopefully we'll get a simpler path some day)\n if (store.getAll && store.getAllKeys) {\n return Promise.all([\n promisifyRequest(store.getAllKeys()),\n promisifyRequest(store.getAll()),\n ]).then(([keys, values]) => keys.map((key, i) => [key, values[i]]));\n }\n const items = [];\n return customStore('readonly', (store) => eachCursor(store, (cursor) => items.push([cursor.key, cursor.value])).then(() => items));\n });\n}\n\nexport { clear, createStore, del, delMany, entries, get, getMany, keys, promisifyRequest, set, setMany, update, values };\n","import { createStore, promisifyRequest } from 'idb-keyval';\nconst store = createStore('sakurairo', 'cache');\nconst get = (key) => store('readonly', (store) => promisifyRequest(store.get(key)));\nconst set = (key, value) => store('readwrite', (store) => {\n store.put(value, key);\n return promisifyRequest(store.transaction);\n});\nconst del = (key) => store('readwrite', (store) => {\n store.delete(key);\n return promisifyRequest(store.transaction);\n});\nexport { get, set, del };\n","import { get, set, del } from './cache';\nimport { Accept_Image } from './compatibility';\nimport { __ } from '../common/sakurairo_global';\nimport { isMobile } from './mobile';\nimport { createButterbar } from '../common/butterbar';\nimport { noop } from '../common/util';\nlet bgn = 1;\nlet blob_url = '';\nexport async function nextBG() {\n changeCoverBG(await getCoverPath(true));\n bgn++;\n}\nexport async function preBG() {\n bgn--;\n changeCoverBG(await getCoverPath(true));\n}\nconst centerbg = document.querySelector(\".centerbg\");\n/**\n * 更改封面背景\n */\nexport const changeCoverBG = _iro.site_bg_as_cover ? (url) => {\n document.body.style.backgroundImage = `url(${url})`;\n document.dispatchEvent(new CustomEvent('coverBG_change', { detail: url }));\n} :\n centerbg ? (url) => {\n centerbg.style.backgroundImage = `url(${url})`;\n document.dispatchEvent(new CustomEvent('coverBG_change', { detail: url }));\n } : noop;\nfunction parseCSSUrl(cssText) {\n const result = cssText?.match(/^url\\(\"(.+)\"\\)$/);\n if (result) {\n return result[1];\n }\n}\n/**\n * 返回当前封面背景的URL\n */\nexport const getCurrentBG = _iro.site_bg_as_cover ? () => parseCSSUrl(document.body.style.backgroundImage) :\n (centerbg ? () => parseCSSUrl(centerbg.style.backgroundImage) : noop);\nfunction getAPIPath(useBGN = false) {\n const cover_api_url = new URL(_iro.cover_api);\n if (isMobile() && _iro.random_graphs_mts == true) {\n cover_api_url.searchParams.set('type', 'mobile');\n return cover_api_url.toString() + (useBGN ? \"&\" + bgn : '');\n }\n else {\n return cover_api_url.toString() + (useBGN ? (cover_api_url.search === '' ? \"?\" : '&') + bgn : '');\n }\n}\nexport const getCoverPath = _iro.cache_cover ? (useBGN = false) => get('cover').then(coverBG => {\n if (coverBG && coverBG instanceof ArrayBuffer) {\n cleanBlobUrl();\n blob_url = URL.createObjectURL(new Blob([coverBG]));\n return blob_url;\n }\n else {\n //fallback\n return getAPIPath(useBGN);\n }\n}).finally(() => {\n fetchThenCache(useBGN);\n})\n : getAPIPath;\nasync function fetchThenCache(useBGN = false) {\n try {\n const resp = await fetch(getAPIPath(useBGN), { headers: { Accept: Accept_Image } });\n if (resp.status == 500) {\n const result = await resp.json();\n createButterbar(result.message);\n console.warn(result.message);\n }\n else if (resp.ok) {\n const buf = await resp.arrayBuffer();\n try {\n set('cover', buf);\n /**\n * @problem Safari暂时不支持indexdb存储blob\n * DataCloneError: Failed to store record in an IDBObjectStore: BlobURLs are not yet supported.\n * @seealso https://developers.google.com/web/fundamentals/instant-and-offline/web-storage/indexeddb-best-practices#keeping_your_app_predictable\n */\n }\n catch (e) {\n //catch: FireFox无痕模式下数据库不允许修改\n /**\n * @problem FireFox无痕模式下数据库不允许修改\n * DOMException: A mutation operation was attempted on a database that did not allow mutations\n * Chrome不会报错\n * 像是火狐的设计 https://wiki.mozilla.org/Private_Browsing#Persistent_Storage\n * 变通方法 https://bugzilla.mozilla.org/show_bug.cgi?id=1639542#c9\n */\n console.warn(e);\n }\n }\n }\n catch (e) {\n if (e instanceof TypeError) {\n console.warn(__('你的封面API好像不支持跨域调用,这种情况下缓存是不会生效的哦'));\n del('cover');\n }\n }\n}\nfunction cleanBlobUrl() {\n URL.revokeObjectURL(blob_url);\n blob_url = '';\n}\n/* export function initCoverBG() {\n if (_iro.site_bg_as_cover) {\n if (centerbg) centerbg.style.background = '#0000'\n }\n} */ \n","const mediaQuery = window.matchMedia('(prefers-color-scheme:dark)');\nlet inDarkMode = false;\nexport const isInDarkMode = () => inDarkMode;\nfunction informDarkModeChange(nextValue) {\n if (nextValue !== inDarkMode) {\n document.dispatchEvent(new CustomEvent(\"darkmode\", { detail: nextValue }));\n inDarkMode = nextValue;\n }\n}\nfunction mediaQueryCallback() {\n const dark = localStorage.getItem(\"dark\");\n //仅在深色模式不是用户主动设置时触发\n if (!dark) {\n if (mediaQuery.matches && _iro.darkmode) {\n turnOnDarkMode();\n }\n else {\n turnOffDarkMode();\n }\n }\n}\nif (_iro.dm_strategy === 'client') {\n mediaQuery.removeEventListener ? mediaQuery.removeEventListener('change', mediaQueryCallback) : mediaQuery.removeListener(mediaQueryCallback);\n mediaQuery.addEventListener ? mediaQuery.addEventListener('change', mediaQueryCallback) : mediaQuery.addListener(mediaQueryCallback);\n}\nfunction saveUserSetting(value) {\n if (value == ifDarkmodeShouldOn()) {\n //用户设置与自动切换深色模式判断一致时,恢复自动切换\n localStorage.removeItem('dark');\n }\n else {\n if (value == true) {\n localStorage.setItem(\"dark\", \"1\");\n }\n else {\n localStorage.setItem(\"dark\", \"0\");\n }\n }\n //localStorage.setItem(\"bgImgSetting\", \"white-bg\");\n}\nexport function turnOnDarkMode(userTriggered) {\n document.documentElement.style.backgroundColor = \"#333\";\n document.getElementsByClassName(\"site-content\")[0].style.backgroundColor = \"#333\";\n document.body.classList.add(\"dark\");\n if (userTriggered)\n saveUserSetting(true);\n informDarkModeChange(true);\n}\nexport function turnOffDarkMode(userTriggered) {\n document.documentElement.style.backgroundColor = \"\";\n document.getElementsByClassName(\"site-content\")[0].style.backgroundColor = \"rgba(255, 255, 255, .8)\";\n document.body.classList.remove(\"dark\");\n document.body.classList.remove(\"dynamic\");\n informDarkModeChange(false);\n if (userTriggered) {\n saveUserSetting(false);\n //document.body.style.backgroundImage = `url(${_iro.skin_bg0})`;\n }\n}\n/**\n * 检查是否在深色模式时间\n * @returns {boolean}\n */\nfunction checkTime() {\n const today = new Date();\n return (today.getHours() > 21 || today.getHours() < 7);\n}\nexport function ifDarkmodeShouldOn() {\n switch (_iro.dm_strategy) {\n case 'client':\n return mediaQuery.matches;\n case 'eien':\n return true;\n default: /**case time */\n return checkTime();\n }\n}\nexport function checkDarkModeSetting() {\n const dark = localStorage.getItem(\"dark\");\n if (!dark) {\n //无用户设置时,自动切换深色模式\n if (ifDarkmodeShouldOn() && _iro.darkmode) {\n turnOnDarkMode();\n }\n else {\n turnOffDarkMode();\n }\n }\n else {\n if (dark == '1') {\n turnOnDarkMode();\n }\n else {\n turnOffDarkMode();\n }\n }\n}\n/* function mobile_dark_light() {\n if (document.body.classList.contains(\"dark\")) {\n document.documentElement.style.background = \"unset\";\n document.body.classList.remove(\"dark\");\n document.getElementById(\"moblieDarkLight\").innerHTML = '<i class=\"fa fa-moon-o\" aria-hidden=\"true\"></i>';\n setCookie(\"dark\", \"0\", 0.33);\n } else {\n document.documentElement.style.background = \"#333333\";\n document.getElementById(\"moblieDarkLight\").innerHTML = '<i class=\"fa fa-sun-o\" aria-hidden=\"true\"></i>';\n document.body.classList.add(\"dark\");\n setCookie(\"dark\", \"1\", 0.33);\n }\n} */ \n","import { createButterbar } from \"../common/butterbar\";\nimport { __ } from \"../common/sakurairo_global\";\nimport { isMobile } from \"./mobile\";\nlet btnSerif, btnSansSerif;\nfunction Serif() {\n if (isMobile()) {\n createButterbar(__(\"将从网络加载字体,流量请注意\"));\n }\n document.body.classList.add(\"serif\");\n localStorage.setItem(\"font_family\", \"serif\");\n setButtonState('serif');\n}\nfunction SansSerif() {\n document.body.classList.remove(\"serif\");\n localStorage.setItem(\"font_family\", \"sans-serif\");\n setButtonState('sans-serif');\n}\nfunction change_font_listener(btn) {\n return () => {\n const { name } = btn.dataset;\n const nowFont = localStorage.getItem(\"font_family\");\n if (name == nowFont) {\n return;\n }\n else {\n (name == 'serif') ? Serif() : SansSerif();\n }\n };\n}\nexport function loadFontSetting() {\n const nowFont = localStorage.getItem(\"font_family\");\n if (!nowFont || nowFont == \"serif\") {\n document.body.classList.add(\"serif\");\n }\n}\nfunction setButtonState(font_name) {\n if (font_name === 'sans-serif' || localStorage.getItem(\"font_family\") == 'sans-serif') {\n btnSerif.classList.remove(\"selected\");\n btnSansSerif.classList.add(\"selected\");\n }\n else {\n btnSansSerif.classList.remove(\"selected\");\n btnSerif.classList.add(\"selected\");\n }\n}\nfunction initDOMCache() {\n btnSerif = document.getElementsByClassName(\"control-btn-serif\")[0];\n btnSansSerif = document.getElementsByClassName(\"control-btn-sans-serif\")[0];\n return btnSansSerif && btnSerif;\n}\nfunction initListener() {\n btnSerif.addEventListener('click', change_font_listener(btnSerif));\n btnSansSerif.addEventListener('click', change_font_listener(btnSansSerif));\n}\nexport function initFontControl() {\n const result = initDOMCache();\n if (!result)\n localStorage.removeItem('font_family'); //样式菜单“简单”时,使用默认字体 “A”\n loadFontSetting();\n if (result) {\n setButtonState();\n initListener();\n }\n}\n","export default async function hitokoto() {\n const yiyan = document.getElementById(\"footer_yiyan\");\n if (yiyan) {\n const api_group = _iro.yiyan_api || [\"https://api.maho.cc/yiyan/\"];\n if (api_group.length == 0) {\n console.warn('一言API: 路径为空');\n }\n for (const api_path of api_group) {\n try {\n const txt = await request(api_path);\n yiyan.innerText = txt;\n break;\n }\n catch (e) {\n console.warn(`一言API: 尝试联系\"${api_path}\"时出错。 `, e);\n continue;\n }\n }\n }\n}\nconst request = async (api) => {\n const res = await fetch(api, { headers: { Accept: \"application/json\" } });\n if (res.ok) {\n const data = await res.json();\n const from_who = (data.from_who == 'null' ? null : data.from_who) || '';\n const from = data.from != data.from_who ? `「${data['from']}」` : '';\n const hitokoto = data.hitokoto;\n return hitokoto + '——' + from_who + from;\n }\n else {\n throw res.status;\n }\n};\n","let cache_is_mobile = false;\nexport function initIsMobileCache() {\n const mediaQuery = window.matchMedia('(max-width:860px)');\n cache_is_mobile = mediaQuery.matches;\n mediaQuery.addEventListener ? mediaQuery.addEventListener('change', refreshIsMobileCache) : mediaQuery.addListener(refreshIsMobileCache);\n}\nfunction refreshIsMobileCache(ev) {\n cache_is_mobile = ev.matches;\n}\n/**\n *\n * @returns 返回document.body.clientWidth <= 860的结果。这个结果是缓存的\n */\nexport const isMobile = () => cache_is_mobile;\n","export default function showcard() {\n for (const showcard of document.querySelectorAll('.showcard')) {\n const img = showcard.querySelector('.img');\n const button = showcard.querySelector('.showcard-button');\n if (!img || !button) {\n throw new Error('invalid structure for .showcard');\n }\n img.addEventListener('mouseover', function () {\n button.classList.add('hover');\n });\n img.addEventListener('mouseout', function () {\n button.classList.remove('hover');\n });\n }\n}\n","import { importExternal } from '../common/npmLib';\nlet typedInstance;\nexport function disableTypedJsIfExist() {\n if (typedInstance) {\n typedInstance.destroy();\n typedInstance = null;\n }\n}\nexport default async function initTypedJs() {\n const json = document.getElementById('typed-js-initial');\n if (json) {\n try {\n const options = JSON.parse(json.innerHTML);\n const element = document.querySelector('.element');\n element.innerText = '';\n if (_iro.ext_shared_lib) {\n if (!window.Typed)\n await importExternal('dist/typed.umd.js', 'typed.js');\n typedInstance = new window.Typed(element, options);\n }\n else {\n const { default: Typed } = await import('typed.js');\n typedInstance = new Typed(element, options);\n }\n }\n catch (e) {\n console.error(\"请检查typed.js设置\", e);\n }\n }\n}\n","import { getFileNameMain } from '../common/util';\nimport { __ } from '../common/sakurairo_global';\nimport { importExternal } from '../common/npmLib';\nconst bgvideo = document.getElementById(\"bgvideo\");\nconst videoList = _iro.movies.name?.split(\",\") || []; // 视频列表\nlet unplayedIndex = new Array(videoList.length).fill(0).map((_, index) => index);\nlet aplayersToResume = [];\n//#region 背景视频\nconst _getNextRandomVideo = () => {\n if (unplayedIndex.length == 0) {\n unplayedIndex = new Array(videoList.length).fill(0).map((_, index) => index);\n }\n const nextIndex = Math.floor(Math.random() * unplayedIndex.length);\n return videoList[unplayedIndex.splice(nextIndex, 1)[0]];\n};\nfunction getVideo() {\n const video_stu = document.getElementsByClassName(\"video-stu\")[0];\n const fileName = _getNextRandomVideo(); // 随机抽取视频\n video_stu.innerHTML = __(\"正在载入视频 ...\");\n video_stu.style.bottom = \"0px\";\n //这里不需要检验_iro.movies是不是字符串,因为应该在前边检查\n bgvideo.setAttribute(\"src\", new URL(fileName, _iro.movies.url || location.origin).toString());\n bgvideo.setAttribute(\"video-name\", getFileNameMain(fileName));\n}\n/**\n * 播放\n */\nfunction splay() {\n const video_btn = document.getElementById(\"video-btn\");\n if (video_btn) {\n video_btn.classList.add(\"video-pause\");\n video_btn.classList.remove(\"video-play\");\n video_btn.style.display = \"\";\n }\n try {\n document.querySelector(\".video-stu\").style.bottom = \"-100px\";\n document.querySelector(\".focusinfo\").style.top = \"-999px\";\n if (_iro.float_player_on) {\n import('./aplayer').then(({ pauseAllPlayer }) => {\n aplayersToResume = pauseAllPlayer();\n bgvideo.play();\n });\n return;\n }\n }\n catch (e) {\n console.warn(e);\n }\n bgvideo.play();\n}\n/**\n * 暂停\n */\nfunction spause() {\n const video_btn = document.getElementById(\"video-btn\");\n if (video_btn) {\n video_btn.classList.add(\"video-play\");\n video_btn.classList.remove(\"video-pause\");\n }\n try {\n document.querySelector(\".focusinfo\").style.top = \"49.3%\";\n }\n catch { }\n bgvideo.pause();\n for (const player of aplayersToResume) {\n player.play();\n }\n}\n/**\n * 自动续播 - 播放\n */\nexport function liveplay() {\n if (bgvideo && bgvideo.oncanplay != undefined && document.querySelector(\".haslive\")) { // 检查视频数据\n if (document.querySelector(\".videolive\")) { // 检查播放状态\n splay();\n }\n }\n}\nexport function livepause() {\n if (bgvideo && bgvideo.oncanplay != undefined && document.querySelector(\".haslive\")) { // 检查视频数据\n spause();\n const video_stu = document.getElementsByClassName(\"video-stu\")[0];\n video_stu.style.bottom = \"0px\";\n video_stu.innerHTML = __(\"已暂停...\");\n }\n}\nexport function coverVideo() {\n const video_btn = document.getElementById(\"video-btn\");\n if (video_btn)\n video_btn.addEventListener(\"click\", function () {\n if (this.classList.contains(\"loadvideo\")) {\n this.classList.add(\"video-pause\");\n this.classList.remove(\"loadvideo\");\n getVideo();\n bgvideo.oncanplay = () => {\n splay();\n document.getElementById(\"video-add\").style.display = \"block\";\n video_btn.classList.add(\"videolive\", \"haslive\"); // MDZZ\n };\n }\n else {\n if (this.classList.contains(\"video-pause\")) {\n spause();\n video_btn.classList.remove(\"videolive\");\n document.getElementsByClassName(\"video-stu\")[0].style.bottom = \"0px\";\n document.getElementsByClassName(\"video-stu\")[0].innerHTML = __(\"已暂停...\");\n }\n else {\n splay();\n video_btn.classList.add(\"videolive\"); // 用于判断切换页面时的状态\n }\n }\n bgvideo.onended = function () {\n bgvideo.setAttribute(\"src\", \"\");\n document.getElementById(\"video-add\").style.display = \"none\";\n document.querySelector(\".focusinfo\").style.top = \"49.3%\";\n if (video_btn) {\n video_btn.classList.add(\"loadvideo\");\n video_btn.classList.remove(\"video-pause\", \"videolive\", \"haslive\");\n if (_iro.movies.loop) {\n video_btn.click();\n }\n }\n };\n });\n const video_add = document.getElementById(\"video-add\");\n if (video_add)\n video_add.addEventListener(\"click\", getVideo);\n}\n//#endregion\nexport async function coverVideoIni() {\n initHLS();\n lazyloadPatch();\n}\nfunction canPlayHandler() {\n this.poster = '';\n}\n/**\n * 用户代理可能会禁止自动播放,此时需要撤掉poster\n */\nasync function lazyloadPatch() {\n document.querySelectorAll('video.lazyload')\n .forEach(video => video.addEventListener('canplay', canPlayHandler));\n}\nasync function initHLS() {\n const videos = document.querySelectorAll('video.hls');\n if (videos.length == 0)\n return;\n //检查浏览器是否原生支持\n if (videos[0].canPlayType('application/vnd.apple.mpegurl')) {\n for (const video of videos) {\n video.src = video.dataset.src || video.src;\n video.autoplay = true;\n }\n }\n else {\n if (!window.Hls) {\n try {\n if (_iro.ext_shared_lib) {\n await importExternal('dist/hls.light.min.js', 'hls.js');\n }\n else {\n //@ts-ignore\n const { default: Hls } = await import('hls.js/dist/hls.light.js');\n window.Hls = Hls;\n }\n }\n catch (reason) {\n console.warn('Hls load failed: ', reason);\n }\n }\n if (!Hls.isSupported())\n console.error('Hls: Media Source Extensions is unsupported.');\n for (const video of videos) {\n const hls = new Hls();\n hls.loadSource(video.dataset.src || video.src);\n hls.attachMedia(video);\n hls.on(Hls.Events.MANIFEST_PARSED, () => {\n video.play();\n });\n }\n }\n}\n","import { sakurairoGlobal } from \"../common/sakurairo_global\";\nexport function web_audio() {\n if (!_iro.audio)\n return;\n //@ts-ignore\n const AudioContext = window.AudioContext || window.webkitAudioContext;\n if (AudioContext) {\n let i = 0;\n let dom;\n const o = 1;\n const t = readSheetOption() || sheet;\n const selects = document.querySelectorAll(\".site-title, #moblieGoTop, .site-branding, .searchbox, .changeSkin-gear, .menu-list li\");\n const notes = \"♪ ♩ ♫ ♬ ♭ € § ¶ ♯\".split(\" \");\n const ctx = new AudioContext;\n const listener = (e) => {\n if (dom)\n return;\n let r = t[i];\n if (!r) {\n (i = 0, r = t[i]);\n }\n i += o;\n const c = ctx.createOscillator(), l = ctx.createGain(), mainGain = ctx.createGain();\n c.connect(l);\n l.connect(mainGain);\n mainGain.connect(ctx.destination);\n mainGain.gain.setValueAtTime(sakurairoGlobal.opt.web_audio?.main_gain || 1, ctx.currentTime);\n c.type = \"sine\";\n c.frequency.value = r;\n l.gain.setValueAtTime(0, ctx.currentTime);\n l.gain.linearRampToValueAtTime(1, ctx.currentTime + .01);\n c.start(ctx.currentTime);\n l.gain.exponentialRampToValueAtTime(.001, ctx.currentTime + 1);\n c.stop(ctx.currentTime + 1);\n const d = Math.round(7 * Math.random());\n const h = e.pageX;\n const p = e.pageY - 5;\n dom = document.createElement(\"b\");\n dom.textContent = notes[d];\n dom.style.zIndex = \"99999\";\n dom.style.top = p - 100 + \"px\";\n dom.style.left = h + \"px\";\n dom.style.position = \"absolute\";\n dom.style.color = \"#FF6EB4\";\n document.body.appendChild(dom);\n dom.animate([\n { top: p + \"px\" },\n { opacity: 0 }\n ], {\n duration: 500\n });\n setTimeout(() => {\n dom.remove();\n dom = null;\n }, 500);\n };\n selects.forEach((select) => {\n select.addEventListener(\"mouseenter\", listener);\n });\n }\n}\n//欢乐颂\n/*t = \"329.628 329.628 349.228 391.995 391.995 349.228 329.628 293.665 261.626 261.626 293.665 329.628 329.628 293.665 293.665 329.628 329.628 349.228 391.995 391.995 349.228 329.628 293.665 261.626 261.626 293.665 329.628 293.665 261.626 261.626 293.665 293.665 329.628 261.626 293.665 329.628 349.228 329.628 261.626 293.665 329.628 349.228 329.628 293.665 261.626 293.665 195.998 329.628 329.628 349.228 391.995 391.995 349.228 329.628 293.665 261.626 261.626 293.665 329.628 293.665 261.626 261.626\".split(\" \")*/\n//天空之城\nconst sheet = \"880 987 1046 987 1046 1318 987 659 659 880 784 880 1046 784 659 659 698 659 698 1046 659 1046 1046 1046 987 698 698 987 987 880 987 1046 987 1046 1318 987 659 659 880 784 880 1046 784 659 698 1046 987 1046 1174 1174 1174 1046 1046 880 987 784 880 1046 1174 1318 1174 1318 1567 1046 987 1046 1318 1318 1174 784 784 880 1046 987 1174 1046 784 784 1396 1318 1174 659 1318 1046 1318 1760 1567 1567 1318 1174 1046 1046 1174 1046 1174 1567 1318 1318 1760 1567 1318 1174 1046 1046 1174 1046 1174 987 880 880 987 880\".split(\" \");\nfunction readSheetOption() {\n const sheet = sakurairoGlobal.opt.web_audio?.sheet;\n if (typeof sheet == 'string') {\n return sheet.split(' ');\n }\n else if (sheet instanceof Array) {\n return sheet;\n }\n}\n","export function clearButterbar() {\n const butterBar = document.getElementsByClassName(\"butterBar\");\n if (butterBar.length > 0) {\n for (let i = 0; i < butterBar.length; i++) {\n butterBar[i].remove();\n }\n }\n}\nexport function createButterbar(message, keep) {\n clearButterbar();\n /* document.body.insertAdjacentHTML('beforeend', '<div class=\"butterBar butterBar--center\"><p class=\"butterBar-message\">' + message + '</p></div>');\n */\n const div = document.createElement('div');\n const p = document.createElement('p');\n div.classList.add('butterBar', 'butterBar--center');\n p.classList.add('butterBar-message');\n p.innerHTML = message;\n div.appendChild(p);\n document.body.appendChild(div);\n if (keep !== true)\n setTimeout(() => { clearButterbar(); }, typeof keep == 'number' ? keep : 6000);\n return div;\n}\n","/**\n * 收集资源的下载情况,自动切换cdn\n * 策略:\n * 1.如果发现大量资源无法下载(cdn down),尝试切换cdn\n * 2.切换cdn时测试对同一个资源访问的表现(未实现)\n * 3.\n * 暂不根据加载速度动态调整cdn\n * TODO: 使用内置依赖的fallback\n */\nconst STORAGE_KEY = 'sakurairo_prefer_cdn';\nconst CDN_LIST = [\n /* [\"https://jscdn.host/release/ucode/\", \"/\", \"/\", \"\"],\n [\"https://cdnjs.cloudflare.com/ajax/libs/\", \"/\", \"/\", \"\"],\n */\n [\"https://jsd.nmxc.ltd/npm/\", \"@\", \"/\", \"\"],\n [\"https://cdn.jsdelivr.net/npm/\", \"@\", \"/\", \"\"],\n [\"https://unpkg.com/\", \"@\", \"/\", \"\"],\n //TODO:自定cdn\n];\nfunction getPreferCDNIndex() {\n const config = localStorage.getItem(STORAGE_KEY);\n if (config) {\n const num = parseInt(config);\n if (isNaN(num) || num >= CDN_LIST.length) {\n //回归初始值\n localStorage.removeItem(STORAGE_KEY);\n return 0;\n }\n return num;\n }\n else {\n return 0;\n }\n}\nconst currentCDNIndex = getPreferCDNIndex();\nconst currentCDN = { raw: CDN_LIST[currentCDNIndex] };\n/**\n * 从当前的CDN中获取指定npm包中的指定文件\n * @author KotoriK\n * @param relativePath 文件在npm包中的路径\n * @param packageName npm包名\n * @param version npm包版本,默认为latest\n * @returns 从当前cdn访问该文件的url\n */\nexport const resolvePath = (relativePath, packageName, version) => String.raw(currentCDN, packageName, version || PKG_INFO[packageName] || 'latest', relativePath);\nconst resolvePathByCDN = (cdn, relativePath, moduleName, version) => String.raw({ raw: cdn }, moduleName, version, relativePath);\nfunction isServedByCurrentCDN(path) {\n const cdnMatchKey = CDN_LIST[currentCDNIndex][0];\n if (path.match(cdnMatchKey)) {\n return true;\n }\n}\nfunction analyze(time = 30000) {\n let failedCounts = 0;\n let totalCounts = 0;\n const observer = new PerformanceObserver((list, observer) => {\n for (const entry of list.getEntries()) {\n if (isServedByCurrentCDN(entry.name)) {\n totalCounts++;\n const { transferSize } = entry;\n if (transferSize == 0) {\n //可能是资源未能成功下载\n failedCounts++;\n }\n }\n }\n });\n observer.observe({ entryTypes: ['resource'] });\n setTimeout(() => {\n observer.disconnect();\n if (failedCounts / totalCounts > 0.7) {\n //切换cdn\n const nextCDN = currentCDNIndex + 1;\n localStorage.setItem(STORAGE_KEY, (nextCDN >= CDN_LIST.length ? 0 : nextCDN).toString());\n }\n }, time);\n}\n/* ready(analyze)\n */\n//TODO\n//测试cdn对实例资源的访问表现\nasync function testCDN() {\n await Promise.allSettled(CDN_LIST.map((cdn) => \n //baguettebox.js@1.11.1/dist/baguetteBox.min.css\n fetch(resolvePathByCDN(cdn, 'dist/baguetteBox.min.css', 'baguettebox.js', '1.11.1'))));\n}\nexport const importExternal = (path, packageName, version) => {\n const id = `${packageName}${version ? '@' + version : ''}`;\n if (document.getElementById(id)) { // 避免重复加载\n return Promise.resolve();\n }\n const script = document.createElement('script');\n script.id = id;\n script.src = resolvePath(path, packageName, version);\n script.async = true;\n //TODO: 超时处理\n return new Promise((resolve, reject) => {\n script.onload = () => resolve();\n script.onerror = () => {\n script.remove(); // 允许下次尝试\n reject(new Error(packageName + \"加载失败\"));\n };\n document.body.append(script);\n }).finally(() => {\n script.onload = script.onerror = null; //据说ie上会内存泄露\n });\n};\n","/**\n *\n * @param key 这段句子的中文表述(默认语言)\n */\n//@ts-ignore\nexport const __ = (defaultStr) => (window._sakurairoi18n && _sakurairoi18n[defaultStr]) || defaultStr;\n/**\n *\n * 占位符格式 {index} ex.{0}\n * @param defaultStr 这段句子的中文表述(默认语言)\n * @param replacements 句子中占位符的替代元素\n */\nexport const _$ = (defaultStr, ...replacements) => {\n let template = __(defaultStr);\n for (const index in replacements) {\n template = template.replace('{' + index + '}', replacements[index]);\n }\n return template;\n};\nexport const sakurairoGlobal = {\n opt: {},\n /* _sys_call:sys_call\n */\n build: BUILD_INFO\n};\n/**\n * 在sakurairoGlobal注册一个对象\n * @param key\n * @param value\n * @returns\n */\nexport const registerOnGlobal = (key, value) => Object.defineProperty(sakurairoGlobal, key, {\n value: value,\n writable: false,\n enumerable: true,\n});\nif ('_sakurairo' in window) {\n //@ts-ignore\n const _sakurairo = window._sakurairo;\n //@ts-ignore\n if ('opt' in _sakurairo) {\n sakurairoGlobal.opt = _sakurairo.opt;\n }\n}\n//@ts-ignore\nwindow._sakurairo = sakurairoGlobal;\n","let readyFunctionList = [];\n/**\n * 传入的函数同时间只能运行一个\n * @param func 要包装的函数\n * @returns 包装后的函数\n */\nexport const onlyOnceATime = (func) => {\n let isRunning = false;\n return (...args) => {\n if (!isRunning) {\n isRunning = true;\n try {\n const result = func(...args);\n if (result instanceof Promise) {\n result.finally(() => isRunning = false);\n }\n else {\n isRunning = false;\n }\n return result;\n }\n catch (e) {\n console.warn(e);\n isRunning = false;\n }\n }\n };\n};\nconst whileReady = () => {\n document.removeEventListener('DOMContentLoaded', whileReady);\n for (const fn of readyFunctionList) {\n fn();\n }\n readyFunctionList = [];\n};\n/**\n * 延迟函数到DOM树加载完成后执行\n * @seealso https://developer.mozilla.org/zh-CN/docs/Web/API/Document/readyState\n * @param fn 要延迟执行的函数\n */\nexport const ready = function (fn) {\n //interactive:等价于事件DOMContentLoaded\n //complete:等价于事件load\n if (document.readyState !== 'loading') {\n return fn();\n }\n if (readyFunctionList.length == 0) {\n document.addEventListener('DOMContentLoaded', whileReady, false);\n }\n readyFunctionList.push(fn);\n};\n/**\n * 获取文件名的主名部分(即去除扩展名)\n * @param fileName 文件名\n * @returns 主名\n */\nexport const getFileNameMain = (fileName) => fileName.replace(/\\.\\w+$/, '');\nexport function slideToggle(el, duration = 1000, mode = '', callback) {\n const dom = el;\n dom.status = dom.status || getComputedStyle(dom, null)['display'];\n const flag = dom.status != 'none';\n if ((flag == true && mode == \"show\") || (flag == false && mode == \"hide\"))\n return;\n dom.status = flag ? 'none' : 'block';\n dom.style.transition = 'height ' + duration / 1000 + 's';\n dom.style.overflow = 'hidden';\n clearTimeout(dom.tagTimer);\n dom.tagTimer = dom.tagTimer || null;\n dom.style.display = 'block';\n dom.tagHeight = dom.tagHeight || dom.clientHeight + 'px';\n dom.style.display = '';\n dom.style.height = flag ? dom.tagHeight : \"0px\";\n setTimeout(() => {\n dom.style.height = flag ? \"0px\" : dom.tagHeight;\n }, 0);\n dom.tagTimer = setTimeout(() => {\n dom.style.display = flag ? 'none' : 'block';\n dom.style.transition = '';\n dom.style.overflow = '';\n dom.style.height = '';\n dom.status = dom.tagHeight = null;\n }, duration);\n if (callback)\n callback();\n}\nexport function buildAPI(apiPath, params = {}, nonce = true) {\n const path = new URL(apiPath);\n const { searchParams } = path;\n for (const [key, value] of Object.entries(params)) {\n searchParams.set(key, value);\n }\n if (nonce)\n searchParams.set(\"_wpnonce\", _iro.nonce);\n return path.toString();\n}\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nexport function noop() { }\n","const mainContainer = document.getElementById(\"main-container\");\nfunction toggle() {\n document.body.classList.toggle(\"navOpen\");\n mainContainer.classList.toggle(\"open\");\n document.getElementById(\"mo-nav\").classList.toggle(\"open\");\n document.querySelector(\".openNav\").classList.toggle(\"open\");\n document.querySelector(\".site-header\").classList.toggle(\"open\");\n}\nexport function open() {\n toggle();\n document.documentElement.style.overflow = \"hidden\";\n mainContainer.addEventListener('click', close);\n}\nexport function close() {\n toggle();\n document.documentElement.style.overflow = \"unset\";\n mainContainer.removeEventListener('click', close);\n}\n","import { buildAPI } from '../common/util';\nimport { __ } from '../common/sakurairo_global';\nlet QueryStorage;\nfunction renderSearchResult(keyword, link, fa, title, iconfont, comments, text) {\n if (keyword) {\n const s = keyword.trim().split(\" \"), a = title.indexOf(s[s.length - 1]), b = text.indexOf(s[s.length - 1]);\n title = a < 60 ? title.slice(0, 80) : title.slice(a - 30, a + 30);\n title = title.replace(s[s.length - 1], '<mark class=\"search-keyword\"> ' + s[s.length - 1].toUpperCase() + ' </mark>');\n text = b < 60 ? text.slice(0, 80) : text.slice(b - 30, b + 30);\n text = text.replace(s[s.length - 1], '<mark class=\"search-keyword\"> ' + s[s.length - 1].toUpperCase() + ' </mark>');\n }\n return `<div class=\"ins-selectable ins-search-item\" href=\"${link}\"><header><i class=\"fa-solid ${fa}\" aria-hidden=\"true\"></i>${title}<i class=\"fa-solid ${iconfont}\">${comments}</i></header><p class=\"ins-search-preview\">${text}</p></div>`;\n}\nfunction Cx(array, query) {\n for (let s = 0; s < query.length; s++) {\n if (['.', '?', '*'].indexOf(query[s]) != -1) {\n query = query.slice(0, s) + \"\\\\\" + query.slice(s);\n s++;\n }\n }\n query = query.replace(query, \"^(?=.*?\" + query + \").+$\").replace(/\\s/g, \")(?=.*?\");\n return array.filter(v => Object.values(v)\n .some(v => new RegExp(query + '').test(v)));\n}\nfunction query(B, keyword) {\n let y = \"\", w = \"\", u = \"\", r = \"\", p = \"\", F = \"\";\n const G = '<section class=\"ins-section\"><header class=\"ins-section-header\">', D = \"</section>\", E = \"</header>\", queries = Cx(B, keyword.trim());\n for (const query of queries) {\n switch (query.type) {\n case \"post\":\n w = w + renderSearchResult(keyword, query.link, \"fa-inbox\", query.title, \"fa-comments\", query.comments, query.text);\n break;\n case \"tag\":\n p = p + renderSearchResult(\"\", query.link, \"fa-tag\", query.title, \"none\", \"\", \"\");\n break;\n case \"category\":\n r = r + renderSearchResult(\"\", query.link, \"fa-folder\", query.title, \"none\", \"\", \"\");\n break;\n case \"page\":\n u = u + renderSearchResult(keyword, query.link, \"fa-file\", query.title, \"fa-comments\", query.comments, query.text);\n break;\n case \"comment\":\n F = F + renderSearchResult(keyword, query.link, \"fa-comment\", query.title, \"none\", \"\", query.text);\n break;\n }\n }\n w && (y = y + G + __(\"文章\") + E + w + D);\n u && (y = y + G + __(\"页面\") + E + u + D);\n r && (y = y + G + __(\"分类\") + E + r + D);\n p && (y = y + G + __(\"标签\") + E + p + D);\n F && (y = y + G + __(\"评论\") + E + F + D);\n document.getElementById(\"PostlistBox\").innerHTML = y;\n}\nfunction search_a(val) {\n const otxt = document.getElementById(\"search-input\");\n if (sessionStorage.getItem('search') != null) {\n QueryStorage = JSON.parse(sessionStorage.getItem('search'));\n query(QueryStorage, otxt.value);\n div_href();\n }\n else {\n fetch(val)\n .then(async (resp) => {\n if (resp.ok) {\n const json = await resp.text();\n if (json != \"\") {\n sessionStorage.setItem('search', json);\n QueryStorage = JSON.parse(json);\n query(QueryStorage, otxt.value);\n div_href();\n }\n }\n else {\n console.warn('HTTP ' + resp.status);\n }\n })\n .catch(reason => console.warn(reason));\n }\n}\n/* if (!Object.values) Object.values = function (obj) {\n if (obj !== Object(obj))\n throw new TypeError('Object.values called on a non-object');\n var val = [],\n key;\n for (key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n val.push(obj[key]);\n }\n }\n return val;\n } */\nfunction div_href() {\n const search_close = document.querySelector(\".search_close\");\n const Ty = document.getElementById('Ty');\n for (const ele of document.getElementsByClassName('ins-selectable')) {\n ele.addEventListener(\"click\", () => {\n Ty.href = ele.getAttribute('href');\n Ty.click();\n search_close.click();\n });\n }\n /* $(\".ins-selectable\").each(function () {\n $(this).click(function () {\n $(\"#Ty\").attr('href', $(this).attr('href'));\n $(\"#Ty\").click();\n $(\".search_close\").click();\n });\n }); */\n}\nexport function jsSearchCallback() {\n //$('.js-toggle-search').toggleClass('is-active');\n document.getElementsByClassName('js-toggle-search')[0].classList.toggle('is-active');\n //$('.js-search').toggleClass('is-visible');\n document.getElementsByClassName('js-search')[0].classList.toggle('is-visible');\n //$('html').css('overflow-y', 'hidden');\n document.documentElement.style.overflowY = 'hidden';\n if (_iro.live_search) {\n QueryStorage = [];\n search_a(buildAPI(_iro.api + \"sakura/v1/cache_search/json\"));\n let otxt = document.getElementById(\"search-input\"), \n //list = document.getElementById(\"PostlistBox\"),\n //Record = list.innerHTML,\n searchFlag = null;\n otxt.oninput = function () {\n if (searchFlag != null) {\n clearTimeout(searchFlag);\n }\n searchFlag = setTimeout(function () {\n query(QueryStorage, otxt.value);\n div_href();\n }, 250);\n };\n }\n}\n","import { lazyload } from 'lazyload'\r\nimport { slideToggle } from \"../common/util\";\r\nimport { changeCoverBG, getCoverPath, getCurrentBG, nextBG, preBG } from \"./coverBackground\";\r\nimport { isMobile } from \"./mobile\";\r\nimport { open, close } from './mobile_nav'\r\n\r\nvar _mashiro_global_skin_secter = true\r\n\r\nexport function checkSkinSecter() {\r\n if (_mashiro_global_skin_secter === false) {\r\n const pattern = document.querySelector(\".pattern-center\"),\r\n headertop = document.querySelector(\".headertop-bar\");\r\n if (pattern) {\r\n pattern.classList.remove(\"pattern-center\");\r\n pattern.classList.add(\"pattern-center-sakura\");\r\n }\r\n if (headertop) {\r\n headertop.classList.remove(\"headertop-bar\");\r\n headertop.classList.add(\"headertop-bar-sakura\");\r\n }\r\n } else {\r\n const pattern = document.querySelector(\".pattern-center-sakura\"),\r\n headertop = document.querySelector(\".headertop-bar-sakura\");\r\n if (pattern) {\r\n pattern.classList.remove(\"pattern-center-sakura\");\r\n pattern.classList.add(\"pattern-center\");\r\n }\r\n if (headertop) {\r\n headertop.classList.remove(\"headertop-bar-sakura\");\r\n headertop.classList.add(\"headertop-bar\");\r\n }\r\n }\r\n}\r\n/**\r\n * 设置前台背景\r\n * @param {string} tagId 前台背景ID\r\n * @returns \r\n */\r\nexport async function changeSkin(tagId) {\r\n //@sideeffect\r\n _mashiro_global_skin_secter = tagId == \"white-bg\" || tagId == \"dark-bg\";\r\n checkSkinSecter();\r\n let bg_url;\r\n switch (tagId) {\r\n case \"white-bg\":\r\n if (_iro.site_bg_as_cover) {\r\n changeCoverBG(await getCoverPath())//为触发封面背景相关事件 调用函数而不是走下方流程\r\n return\r\n } else {\r\n bg_url = _iro.skin_bg0;\r\n }\r\n break;\r\n case \"diy1-bg\":\r\n bg_url = _iro.skin_bg1;\r\n break;\r\n case \"diy2-bg\":\r\n bg_url = _iro.skin_bg2;\r\n break;\r\n case \"diy3-bg\":\r\n bg_url = _iro.skin_bg3;\r\n break;\r\n case \"diy4-bg\":\r\n bg_url = _iro.skin_bg4;\r\n break;\r\n }\r\n document.body.style.backgroundImage = bg_url ? `url(${bg_url})` : '';\r\n}\r\n\r\nexport function bgButtonAddListener() {\r\n const next = document.getElementById(\"bg-next\"),\r\n pre = document.getElementById(\"bg-pre\");\r\n if (next) { next.onclick = nextBG }\r\n if (pre) { pre.onclick = preBG }\r\n}\r\n\r\nexport function timeSeriesReload(flag) {\r\n let archives = document.getElementById('archives');\r\n if (archives == null) return;\r\n let al_li = archives.getElementsByClassName('al_mon');\r\n if (flag == true) {\r\n archives.addEventListener(\"click\", (e) => {\r\n if (e.target.classList.contains(\"al_mon\")) {\r\n e.preventDefault();\r\n slideToggle(e.target.nextElementSibling, 500);\r\n }\r\n })\r\n lazyload();\r\n } else {\r\n let al_expand_collapse = document.getElementById('al_expand_collapse');\r\n al_expand_collapse.style.cursor = \"s-resize\";\r\n for (let i = 0; i < al_li.length; i++) {\r\n let a = al_li[i],\r\n num = a.nextElementSibling.getElementsByTagName('li').length;\r\n a.style.cursor = \"s-resize\";\r\n a.querySelector('#post-num').textContent = num;\r\n }\r\n const al_post_list = archives.getElementsByClassName(\"al_post_list\")\r\n const al_post_list_first = al_post_list[0];\r\n const cb = () => {\r\n slideToggle(al_post_list_first, 500, 'show');\r\n }\r\n for (const child of al_post_list) {\r\n slideToggle(child, 500, 'hide', cb)\r\n }\r\n archives.addEventListener(\"click\", (e) => {\r\n if (e.target.classList.contains(\"al_mon\")) {\r\n slideToggle(e.target.nextElementSibling, 500);\r\n e.preventDefault();\r\n }\r\n })\r\n if (!isMobile()) {\r\n for (let i = 0; i < al_post_list.length; i++) {\r\n let el = al_post_list[i];\r\n el.parentNode.addEventListener('mouseover', () => {\r\n slideToggle(el, 500, 'show');\r\n return false;\r\n })\r\n }\r\n if (false) {\r\n for (let i = 0; i < al_post_list.length; i++) {\r\n let el = al_post_list[i];\r\n el.parentNode.addEventListener('mouseover', function () {\r\n slideToggle(el, 500, 'hide');\r\n return false;\r\n })\r\n }\r\n }\r\n let al_expand_collapse_click = 0;\r\n al_expand_collapse.addEventListener('click', () => {\r\n if (al_expand_collapse_click == 0) {\r\n for (let i = 0; i < al_post_list.length; i++) {\r\n let el = al_post_list[i];\r\n slideToggle(el, 500, 'show');\r\n }\r\n al_expand_collapse_click++;\r\n } else if (al_expand_collapse_click == 1) {\r\n for (let i = 0; i < al_post_list.length; i++) {\r\n let el = al_post_list[i];\r\n slideToggle(el, 500, 'hide');\r\n }\r\n al_expand_collapse_click--;\r\n }\r\n });\r\n }\r\n }\r\n}\r\n//#region Siren\r\nimport { liveplay, livepause, } from './video'\r\nexport function MN() {\r\n const iconflat = document.querySelector(\".iconflat\");\r\n iconflat && iconflat.addEventListener(\"click\", (e) => {\r\n e.stopPropagation()\r\n if (document.body.classList.contains(\"navOpen\")) {\r\n close()\r\n } else {\r\n open()\r\n }\r\n });\r\n}\r\n\r\nexport function MNH() {\r\n if (document.body.classList.contains(\"navOpen\")) {\r\n close()\r\n }\r\n}\r\n/**\r\n * @has-dom-modify\r\n */\r\nexport function auto_height() {\r\n if (_iro.windowheight == 'auto') {\r\n if (document.querySelector(\"h1.main-title\")) {\r\n //let _height = document.documentElement.clientHeight + \"px\";\r\n const centerbg = document.getElementById(\"centerbg\")\r\n const bgvideo = document.getElementById(\"bgvideo\")\r\n if (centerbg) centerbg.style.height = \"100vh\";\r\n if (bgvideo) bgvideo.style.minHeight = \"100vh\";\r\n }\r\n } else {\r\n const headertop = document.querySelector(\".headertop\")\r\n headertop && headertop.classList.add(\"headertop-bar\");\r\n }\r\n}\r\n/**\r\n * @has-dom-modify\r\n */\r\nexport function PE() {\r\n const headertop = document.querySelector(\".headertop\")\r\n if (headertop) {\r\n let blank = document.querySelector(\".blank\");\r\n if (document.querySelector(\".main-title\")) {\r\n try {\r\n blank.style.paddingTop = \"0px\";\r\n } catch (e) { }\r\n headertop.style.height = \"auto\";\r\n headertop.style.display = \"\";\r\n if (_iro.movies.live) liveplay();\r\n } else {\r\n try {\r\n blank.style.paddingTop = \"75px\";\r\n } catch (e) { }\r\n headertop.style.height = \"0px\";\r\n headertop.style.display = \"none\";\r\n livepause();\r\n }\r\n }\r\n}\r\nimport { jsSearchCallback } from './search'\r\nimport { turnOnDarkMode, turnOffDarkMode } from './darkmode';\r\n/**\r\n * @has-dom-modify\r\n */\r\nexport function CE() {\r\n let comments_fold = document.querySelector(\".comments-fold\");\r\n let comments_main = document.querySelector(\".comments-main\");\r\n if (comments_fold != null) {\r\n comments_fold.style.display = \"block\";\r\n comments_main.style.display = \"none\";\r\n comments_fold.addEventListener(\"click\", () => {\r\n slideToggle(comments_main, 500, 'show');\r\n comments_fold.style.display = \"none\";\r\n });\r\n }\r\n let archives = document.getElementsByClassName(\"archives\");\r\n if (archives.length > 0) {\r\n for (let i = 1; i < archives.length; i++) {\r\n archives[i].style.display = \"none\";\r\n }\r\n archives[0].style.display = \"\";\r\n let h3 = document.getElementById(\"archives-temp\").getElementsByTagName(\"h3\");\r\n const handler = (e) => {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n slideToggle(e.target.nextElementSibling, 300);\r\n }\r\n for (let i = 0; i < h3.length; i++) {\r\n h3[i].addEventListener(\"click\", handler)\r\n }\r\n }\r\n // $('.comments-hidden').show();\r\n // $('.comments-main').hide();\r\n // $('.comments-hidden').click(function () {\r\n // $('.comments-main').slideDown(500);\r\n // $('.comments-hidden').hide();\r\n // });\r\n // $('.archives').hide();\r\n // $('.archives:first').show();\r\n // $('#archives-temp h3').click(function () {\r\n // $(this).next().slideToggle('fast');\r\n // return false;\r\n // });\r\n /*if (_iro.baguetteBoxON) {\r\n baguetteBox.run('.entry-content', {\r\n captions: function (element) {\r\n return element.getElementsByTagName('img')[0].alt;\r\n },\r\n ignoreClass: 'fancybox',\r\n });\r\n }*/\r\n\r\n for (const ele of document.getElementsByClassName('js-toggle-search')) {\r\n ele.addEventListener('click', jsSearchCallback);\r\n }\r\n\r\n const sc = document.querySelector(\".search_close\");\r\n sc && sc.addEventListener(\"click\", () => {\r\n let js_search = document.getElementsByClassName(\"js-search\")[0];\r\n if (js_search.classList.contains(\"is-visible\")) {\r\n document.getElementsByClassName(\"js-toggle-search\")[0].classList.toggle(\"is-active\");\r\n js_search.classList.toggle(\"is-visible\");\r\n document.documentElement.style.overflowY = \"unset\";\r\n }\r\n });\r\n try {\r\n const loading = document.getElementById(\"loading\");\r\n loading.addEventListener(\"click\", () => {\r\n loading.classList.add(\"hide\");\r\n loading.classList.remove(\"show\");\r\n });\r\n } catch (e) { }\r\n}\r\nexport function collapseMenu() {\r\n const show_Nav = document.getElementById(\"show-nav\");\r\n show_Nav && show_Nav.addEventListener(\"click\", () => {\r\n const sln = document.querySelector(\".site-top .lower nav\");\r\n if (show_Nav.classList.contains(\"showNav\")) {\r\n show_Nav.classList.remove(\"showNav\");\r\n show_Nav.classList.add(\"hideNav\");\r\n sln && sln.classList.add(\"navbar\");\r\n } else {\r\n show_Nav.classList.remove(\"hideNav\");\r\n show_Nav.classList.add(\"showNav\");\r\n sln && sln.classList.remove(\"navbar\");\r\n }\r\n });\r\n}\r\n//#endregion Siren\r\nexport function addSkinMenuListener() {\r\n const cached = document.querySelectorAll(\".menu-list li\");\r\n const handler = (e) => {\r\n const tagid = e.target.id || e.target.parentElement.id;\r\n if (tagid == \"dark-bg\") {\r\n turnOnDarkMode(true)\r\n } else {\r\n turnOffDarkMode(true)\r\n changeSkin(tagid)\r\n localStorage.setItem(\"bgImgSetting\", tagid)\r\n }\r\n closeSkinMenu();\r\n }\r\n for (const e of cached) {\r\n e.addEventListener(\"click\", handler);\r\n }\r\n}\r\n/**\r\n * 根据设置初始化前台背景。启用前台背景与站点封面背景一体化以后封面背景在此设置\r\n * @returns 一个Promise。Promise resolved 时封面背景应当已经加载完毕\r\n */\r\nexport function checkBgImgSetting() {\r\n return changeSkin(localStorage.getItem(\"bgImgSetting\") || 'white-bg');\r\n}\r\nexport async function checkCoverBackground() {\r\n if (_iro.site_bg_as_cover) {\r\n return //交给checkBgImgSetting处理\r\n }\r\n if (!_iro.land_at_home) return//进入非主页 \r\n if (getCurrentBG()) {//进入主页且已经加载了封面背景\r\n return\r\n }\r\n changeCoverBG(await getCoverPath())\r\n}\r\nexport function closeSkinMenu() {\r\n document.querySelector(\".skin-menu\").classList.remove(\"show\");\r\n setTimeout(() => {\r\n const changeSkin = document.querySelector(\".changeSkin-gear\")\r\n if (changeSkin != null) {\r\n changeSkin.style.visibility = \"visible\";\r\n }\r\n }, 300);\r\n}","function imgError(ele, type) {\n switch (type) {\n case 1:\n ele.src = 'https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/friendlink.jpg';\n break;\n case 2:\n ele.src = 'https://sdn.geekzu.org/avatar/?s=80&d=mm&r=g';\n break;\n default:\n ele.src = 'https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/image-404.png';\n }\n}\nfunction cmt_showPopup(ele) {\n let popup = ele.querySelector(\"#thePopup\");\n popup.classList.add(\"show\");\n ele.querySelector(\"input\").onblur = () => {\n popup.classList.remove(\"show\");\n }\n}\n/*视频feature*/\nfunction coverVideo() {\n let video = document.getElementById(\"coverVideo\"),\n btn_playControl = document.getElementById(\"cv-pc\");\n\n if (video.paused) {\n video.play();\n try {\n btn_playControl.innerHTML = '<i class=\"fa-solid fa-pause\"></i>';\n } catch { }\n //console.info('play:coverVideo()');\n } else {\n video.pause();\n try {\n btn_playControl.innerHTML = '<i class=\"fa-solid fa-play\"></i>';\n } catch { }\n //console.info('pause:coverVideo()');\n }\n}\nfunction coverVideoMute() {\n const video = document.getElementById(\"coverVideo\")\n const btn_volumeControl = document.getElementById(\"cv-vc\");\n if (video.muted) {\n video.muted = false\n btn_volumeControl.innerHTML = '<i class=\"fa-solid fa-volume-high\"></i>'\n } else {\n video.muted = true\n btn_volumeControl.innerHTML = '<i class=\"fa-solid fa-volume-off\"></i>'\n }\n}\nfunction killCoverVideo() {\n var video = document.getElementById(\"coverVideo\");\n var btn_playControl = document.getElementById(\"cv-pc\");\n\n if (video.paused) {\n //console.info('none:killCoverVideo()');\n } else {\n video.pause();\n try {\n btn_playControl.innerHTML = '<i class=\"fa-solid fa-play\"></i>';\n } catch (e) { }\n //console.info('pause:killCoverVideo()');\n }\n}\n\nfunction mail_me() {\n window.open(\"mailto:\" + _iro.email_name + \"@\" + _iro.email_domain);\n}\n/* 首页下拉箭头 */\nfunction headertop_down() {\n let coverOffset = document.getElementById(\"content\").getBoundingClientRect().top + window.pageYOffset;\n window.scrollTo({\n top: coverOffset,\n behavior: \"smooth\"\n });\n}\nwindow.imgError = imgError\nwindow.cmt_showPopup = cmt_showPopup\nwindow.coverVideo = coverVideo\nwindow.coverVideoMute = coverVideoMute\nwindow.killCoverVideo = killCoverVideo\nwindow.mail_me = mail_me\nwindow.headertop_down = headertop_down","/**\n * NeuQuant Neural-Network Quantization Algorithm\n *\n * Copyright (c) 1994 Anthony Dekker\n *\n * See \"Kohonen neural networks for optimal colour quantization\" in \"Network:\n * Computation in Neural Systems\" Vol. 5 (1994) pp 351-367. for a discussion of\n * the algorithm.\n *\n * See also http://members.ozemail.com.au/~dekker/NEUQUANT.HTML\n *\n * Any party obtaining a copy of these files from the author, directly or\n * indirectly, is granted, free of charge, a full and unrestricted irrevocable,\n * world-wide, paid up, royalty-free, nonexclusive right and license to deal in\n * this software and documentation files (the \"Software\"), including without\n * limitation the rights to use, copy, modify, merge, publish, distribute,\n * sublicense, and/or sell copies of the Software, and to permit persons who\n * receive copies from any such party to do so, with the only requirement being\n * that this copyright notice remain intact.\n *\n * Copyright (c) 2012 Johan Nordberg (JavaScript port)\n * Copyright (c) 2014 Devon Govett (JavaScript port)\n */\n\nvar prime1 = 499;\nvar prime2 = 491;\nvar prime3 = 487;\nvar prime4 = 503;\nvar maxprime = Math.max(prime1, prime2, prime3, prime4);\nvar minpicturebytes = 3 * maxprime;\nvar defaults = {\n ncycles: 100,\n netsize: 256,\n samplefac: 10\n};\nvar assign = function assign(target) {\n for (var i = 1, l = arguments.length; i < l; i++) {\n var nextSource = arguments[i];\n if (nextSource != null) {\n for (var nextKey in nextSource) {\n if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {\n target[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n return target;\n};\nvar NeuQuant = /*#__PURE__*/function () {\n function NeuQuant(pixels, options) {\n assign(this, defaults, {\n pixels: pixels\n }, options);\n if (this.netsize < 4 || this.netsize > 256) {\n throw new Error('Color count must be between 4 and 256');\n }\n if (this.samplefac < 1 || this.samplefac > 30) {\n throw new Error('Sampling factor must be between 1 and 30');\n }\n this.maxnetpos = this.netsize - 1;\n this.netbiasshift = 4;\n this.intbiasshift = 16;\n this.intbias = 1 << this.intbiasshift;\n this.gammashift = 10;\n this.gamma = 1 << this.gammashift;\n this.betashift = 10;\n this.beta = this.intbias >> this.betashift;\n this.betagamma = this.beta * this.gamma;\n this.initrad = this.netsize >> 3;\n this.radiusbiasshift = 6;\n this.radiusbias = 1 << this.radiusbiasshift;\n this.initradius = this.initrad * this.radiusbias;\n this.radiusdec = 30;\n this.alphabiasshift = 10;\n this.initalpha = 1 << this.alphabiasshift;\n this.radbiasshift = 8;\n this.radbias = 1 << this.radbiasshift;\n this.alpharadbshift = this.alphabiasshift + this.radbiasshift;\n this.alpharadbias = 1 << this.alpharadbshift;\n this.network = [];\n this.netindex = new Uint32Array(256);\n this.bias = new Uint32Array(this.netsize);\n this.freq = new Uint32Array(this.netsize);\n this.radpower = new Uint32Array(this.netsize >> 3);\n for (var i = 0, l = this.netsize; i < l; i++) {\n var v = (i << this.netbiasshift + 8) / this.netsize;\n this.network[i] = new Float64Array([v, v, v, 0]);\n this.freq[i] = this.intbias / this.netsize;\n this.bias[i] = 0;\n }\n }\n var _proto = NeuQuant.prototype;\n _proto.unbiasnet = function unbiasnet() {\n for (var i = 0, l = this.netsize; i < l; i++) {\n this.network[i][0] >>= this.netbiasshift;\n this.network[i][1] >>= this.netbiasshift;\n this.network[i][2] >>= this.netbiasshift;\n this.network[i][3] = i;\n }\n };\n _proto.altersingle = function altersingle(alpha, i, b, g, r) {\n this.network[i][0] -= alpha * (this.network[i][0] - b) / this.initalpha;\n this.network[i][1] -= alpha * (this.network[i][1] - g) / this.initalpha;\n this.network[i][2] -= alpha * (this.network[i][2] - r) / this.initalpha;\n };\n _proto.alterneigh = function alterneigh(radius, i, b, g, r) {\n var lo = Math.abs(i - radius);\n var hi = Math.min(i + radius, this.netsize);\n var j = i + 1;\n var k = i - 1;\n var m = 1;\n while (j < hi || k > lo) {\n var a = this.radpower[m++];\n if (j < hi) {\n var p = this.network[j++];\n p[0] -= a * (p[0] - b) / this.alpharadbias;\n p[1] -= a * (p[1] - g) / this.alpharadbias;\n p[2] -= a * (p[2] - r) / this.alpharadbias;\n }\n if (k > lo) {\n var _p = this.network[k--];\n _p[0] -= a * (_p[0] - b) / this.alpharadbias;\n _p[1] -= a * (_p[1] - g) / this.alpharadbias;\n _p[2] -= a * (_p[2] - r) / this.alpharadbias;\n }\n }\n };\n _proto.contest = function contest(b, g, r) {\n var bestd = ~(1 << 31);\n var bestbiasd = bestd;\n var bestpos = -1;\n var bestbiaspos = bestpos;\n for (var i = 0, l = this.netsize; i < l; i++) {\n var n = this.network[i];\n var dist = Math.abs(n[0] - b) + Math.abs(n[1] - g) + Math.abs(n[2] - r);\n if (dist < bestd) {\n bestd = dist;\n bestpos = i;\n }\n var biasdist = dist - (this.bias[i] >> this.intbiasshift - this.netbiasshift);\n if (biasdist < bestbiasd) {\n bestbiasd = biasdist;\n bestbiaspos = i;\n }\n var betafreq = this.freq[i] >> this.betashift;\n this.freq[i] -= betafreq;\n this.bias[i] += betafreq << this.gammashift;\n }\n this.freq[bestpos] += this.beta;\n this.bias[bestpos] -= this.betagamma;\n return bestbiaspos;\n };\n _proto.inxbuild = function inxbuild() {\n var previouscol = 0;\n var startpos = 0;\n for (var i = 0, l = this.netsize; i < l; i++) {\n var p = this.network[i];\n var q = null;\n var smallpos = i;\n var smallval = p[1];\n for (var j = i + 1; j < l; j++) {\n q = this.network[j];\n if (q[1] < smallval) {\n smallpos = j;\n smallval = q[1];\n }\n }\n q = this.network[smallpos];\n if (i !== smallpos) {\n var _ref = [q[0], p[0]];\n p[0] = _ref[0];\n q[0] = _ref[1];\n var _ref2 = [q[1], p[1]];\n p[1] = _ref2[0];\n q[1] = _ref2[1];\n var _ref3 = [q[2], p[2]];\n p[2] = _ref3[0];\n q[2] = _ref3[1];\n var _ref4 = [q[3], p[3]];\n p[3] = _ref4[0];\n q[3] = _ref4[1];\n }\n if (smallval !== previouscol) {\n this.netindex[previouscol] = startpos + i >> 1;\n for (var _j = previouscol + 1; _j < smallval; _j++) {\n this.netindex[_j] = i;\n }\n previouscol = smallval;\n startpos = i;\n }\n }\n this.netindex[previouscol] = startpos + this.maxnetpos >> 1;\n for (var _i = previouscol + 1; _i < 256; _i++) {\n this.netindex[_i] = this.maxnetpos;\n }\n };\n _proto.learn = function learn() {\n var lengthcount = this.pixels.length;\n var alphadec = 30 + (this.samplefac - 1) / 3;\n var samplepixels = lengthcount / (3 * this.samplefac);\n var delta = samplepixels / this.ncycles | 0;\n var alpha = this.initalpha;\n var radius = this.initradius;\n var rad = radius >> this.radiusbiasshift;\n if (rad <= 1) {\n rad = 0;\n }\n for (var i = 0; i < rad; i++) {\n this.radpower[i] = alpha * ((rad * rad - i * i) * this.radbias / (rad * rad));\n }\n var step;\n if (lengthcount < minpicturebytes) {\n this.samplefac = 1;\n step = 3;\n } else if (lengthcount % prime1 !== 0) {\n step = 3 * prime1;\n } else if (lengthcount % prime2 !== 0) {\n step = 3 * prime2;\n } else if (lengthcount % prime3 !== 0) {\n step = 3 * prime3;\n } else {\n step = 3 * prime4;\n }\n var pix = 0;\n for (var _i2 = 0; _i2 < samplepixels;) {\n var b = (this.pixels[pix] & 0xff) << this.netbiasshift;\n var g = (this.pixels[pix + 1] & 0xff) << this.netbiasshift;\n var r = (this.pixels[pix + 2] & 0xff) << this.netbiasshift;\n var j = this.contest(b, g, r);\n this.altersingle(alpha, j, b, g, r);\n if (rad !== 0) {\n this.alterneigh(rad, j, b, g, r);\n }\n pix += step;\n if (pix >= lengthcount) {\n pix -= lengthcount;\n }\n if (delta === 0) {\n delta = 1;\n }\n if (++_i2 % delta === 0) {\n alpha -= alpha / alphadec;\n radius -= radius / this.radiusdec;\n rad = radius >> this.radiusbiasshift;\n if (rad <= 1) {\n rad = 0;\n }\n for (var k = 0; k < rad; k++) {\n this.radpower[k] = alpha * ((rad * rad - k * k) * this.radbias / (rad * rad));\n }\n }\n }\n };\n _proto.buildColorMap = function buildColorMap() {\n this.learn();\n this.unbiasnet();\n this.inxbuild();\n };\n _proto.getColorMap = function getColorMap() {\n var map = new Buffer(this.netsize * 3);\n var index = new Buffer(this.netsize);\n for (var i = 0, l = this.netsize; i < l; i++) {\n index[this.network[i][3]] = i;\n }\n for (var _i3 = 0, j = 0, k = 0, _l = this.netsize; _i3 < _l; _i3++) {\n k = index[_i3];\n map[j++] = this.network[k][0] & 0xff;\n map[j++] = this.network[k][1] & 0xff;\n map[j++] = this.network[k][2] & 0xff;\n }\n return map;\n };\n return NeuQuant;\n}();\n\nfunction findClosest(palette, r, g, b) {\n var minpos = 0;\n var mind = 256 * 256 * 256;\n for (var i = 0, l = palette.length; i < l;) {\n var dr = r - palette[i++];\n var dg = g - palette[i++];\n var db = b - palette[i];\n var d = dr * dr + dg * dg + db * db;\n var pos = i / 3 | 0;\n if (d < mind) {\n mind = d;\n minpos = pos;\n }\n i++;\n }\n return minpos;\n}\nfunction palette(pixels, options) {\n var nq = new NeuQuant(pixels, options);\n nq.buildColorMap();\n return nq.getColorMap();\n}\nfunction indexed(pixels, palette) {\n var indexed = []; /* new Buffer(pixels.length / 3) */\n var memo = {};\n for (var i = 0, j = 0, l = pixels.length; i < l;) {\n var r = pixels[i++];\n var g = pixels[i++];\n var b = pixels[i++];\n var k = r << 16 | g << 8 | b;\n if (k in memo) {\n indexed[j++] = memo[k];\n } else {\n indexed[j++] = memo[k] = findClosest(palette, r, g, b);\n }\n }\n return indexed;\n}\nfunction quantize(pixels, options) {\n var p = palette(pixels, options);\n var i = indexed(pixels, p);\n return {\n palette: p,\n indexed: i\n };\n}\n\nexport { indexed, palette, quantize };\n//# sourceMappingURL=index.js.map\n","/**\n * RGB space.\n *\n * @module color-space/rgb\n */\n\nexport default {\n\tname: 'rgb',\n\tmin: [0,0,0],\n\tmax: [255,255,255],\n\tchannel: ['red', 'green', 'blue'],\n\talias: ['RGB']\n};\n","/**\n * CIE XYZ\n *\n * @module color-space/xyz\n */\nimport rgb from './rgb.js';\n\nvar xyz = {\n\tname: 'xyz',\n\tmin: [0,0,0],\n\tchannel: ['X','Y','Z'],\n\talias: ['XYZ', 'ciexyz', 'cie1931']\n};\n\n\n/**\n * Whitepoint reference values with observer/illuminant\n *\n * http://en.wikipedia.org/wiki/Standard_illuminant\n */\nxyz.whitepoint = {\n\t//1931 2°\n\t2: {\n\t\t//incadescent\n\t\tA:[109.85, 100, 35.585],\n\t\t// B:[],\n\t\tC: [98.074, 100, 118.232],\n\t\tD50: [96.422, 100, 82.521],\n\t\tD55: [95.682, 100, 92.149],\n\t\t//daylight\n\t\tD65: [95.045592705167, 100, 108.9057750759878],\n\t\tD75: [94.972, 100, 122.638],\n\t\t//flourescent\n\t\t// F1: [],\n\t\tF2: [99.187, 100, 67.395],\n\t\t// F3: [],\n\t\t// F4: [],\n\t\t// F5: [],\n\t\t// F6:[],\n\t\tF7: [95.044, 100, 108.755],\n\t\t// F8: [],\n\t\t// F9: [],\n\t\t// F10: [],\n\t\tF11: [100.966, 100, 64.370],\n\t\t// F12: [],\n\t\tE: [100,100,100]\n\t},\n\n\t//1964 10°\n\t10: {\n\t\t//incadescent\n\t\tA:[111.144, 100, 35.200],\n\t\tC: [97.285, 100, 116.145],\n\t\tD50: [96.720, 100, 81.427],\n\t\tD55: [95.799, 100, 90.926],\n\t\t//daylight\n\t\tD65: [94.811, 100, 107.304],\n\t\tD75: [94.416, 100, 120.641],\n\t\t//flourescent\n\t\tF2: [103.280, 100, 69.026],\n\t\tF7: [95.792, 100, 107.687],\n\t\tF11: [103.866, 100, 65.627],\n\t\tE: [100,100,100]\n\t}\n};\n\n\n/**\n * Top values are the whitepoint’s top values, default are D65\n */\nxyz.max = xyz.whitepoint[2].D65;\n\n\n/**\n * Transform xyz to rgb\n *\n * @param {Array} xyz Array of xyz values\n *\n * @return {Array} RGB values\n */\nxyz.rgb = function (_xyz, white) {\n\t//FIXME: make sure we have to divide like this. Probably we have to replace matrix as well then\n\twhite = white || xyz.whitepoint[2].E;\n\n\tvar x = _xyz[0] / white[0],\n\t\ty = _xyz[1] / white[1],\n\t\tz = _xyz[2] / white[2],\n\t\tr, g, b;\n\n\t// assume sRGB\n\t// http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html\n\tr = (x * 3.240969941904521) + (y * -1.537383177570093) + (z * -0.498610760293);\n\tg = (x * -0.96924363628087) + (y * 1.87596750150772) + (z * 0.041555057407175);\n\tb = (x * 0.055630079696993) + (y * -0.20397695888897) + (z * 1.056971514242878);\n\n\tr = r > 0.0031308 ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)\n\t\t: r = (r * 12.92);\n\n\tg = g > 0.0031308 ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)\n\t\t: g = (g * 12.92);\n\n\tb = b > 0.0031308 ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)\n\t\t: b = (b * 12.92);\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n}\n\n\n\n/**\n * RGB to XYZ\n *\n * @param {Array} rgb RGB channels\n *\n * @return {Array} XYZ channels\n */\nrgb.xyz = function(rgb, white) {\n\tvar r = rgb[0] / 255,\n\t\t\tg = rgb[1] / 255,\n\t\t\tb = rgb[2] / 255;\n\n\t// assume sRGB\n\tr = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);\n\n\tvar x = (r * 0.41239079926595) + (g * 0.35758433938387) + (b * 0.18048078840183);\n\tvar y = (r * 0.21263900587151) + (g * 0.71516867876775) + (b * 0.072192315360733);\n\tvar z = (r * 0.019330818715591) + (g * 0.11919477979462) + (b * 0.95053215224966);\n\n\twhite = white || xyz.whitepoint[2].E;\n\n\treturn [x * white[0], y * white[1], z * white[2]];\n};\n\n\n\nexport default xyz;\n","import { palette, indexed } from 'neuquant-js';\nimport rgb from 'color-space/rgb.js';\nimport xyz from 'color-space/xyz.js';\nimport lab from 'color-space/lab.js';\n\n/**\r\n * 返回两个四维坐标间的欧几里得距离\r\n * @param a\r\n * @param b\r\n * @returns\r\n */\nfunction euclidean_distance_squared(a, b) {\n const r = a[0] - b[0];\n const g = a[1] - b[1];\n\n const _b = a[2] - b[2];\n\n const _a = a[3] - b[3];\n\n return r ** 2 + g ** 2 + _b ** 2 + _a ** 2;\n}\nfunction euclidean_distance_squared_index(a, a_start, b) {\n const r = a[a_start++] - b[0];\n const g = a[a_start++] - b[1];\n\n const _b = a[a_start++] - b[2];\n\n const _a = a[a_start++] - b[3];\n\n return r ** 2 + g ** 2 + _b ** 2 + _a ** 2;\n}\n/**\r\n * 以数组形式返回三个数字中的最大值与最小值\r\n * @param param0 一个包含三个数字的数组\r\n * @returns [max,min]\r\n */\n\nfunction max_min_of_three([a, b, c]) {\n if (a > b) {\n if (b > c) {\n //abc\n return [a, c];\n } else {\n if (a > c) {\n //acb\n return [a, b];\n } else {\n //cab\n return [c, b];\n }\n }\n } else {\n //a<b\n if (b > c) {\n if (c > a) {\n //bca\n return [b, a];\n } else {\n //bac\n return [b, c];\n }\n } else {\n //cba\n return [c, a];\n }\n }\n}\n\nfunction kmeans(data, k, attempt, thresold = 1) {\n const cluster_sum\n /*[r,g,b,a,c]*/\n = [];\n let cluster_centers = [];\n let new_cluster_centers = [];\n let iteration = 0;\n\n for (let i = 0; i < k; i++) {\n const start = Math.floor(Math.random() * data.length);\n cluster_centers.push(Array.from(data.slice(start, start + 4))); //随机选点\n\n new_cluster_centers.push(_filled_array(0, 4));\n cluster_sum.push(_filled_array(0, 5));\n }\n\n while (iteration < attempt) {\n //准备坐标和\n //计算每个点与中心的距离\n for (let i = 0; i < data.length;) {\n let cluster_index = 0;\n\n let _min_distance = euclidean_distance_squared_index(data, i, cluster_centers[0]);\n\n for (let j = 1; j < k; j++) {\n const distance = euclidean_distance_squared_index(data, i, cluster_centers[j]);\n\n if (distance < _min_distance) {\n _min_distance = distance;\n cluster_index = j;\n }\n }\n\n const sum = cluster_sum[cluster_index];\n sum[0] += data[i++];\n sum[1] += data[i++];\n sum[2] += data[i++];\n sum[3] += data[i++];\n sum[4]++;\n }\n\n let diff = 0; //重新计算中心点\n\n for (let i = 0; i < k; i++) {\n const rgbac = cluster_sum[i];\n const count = rgbac[4];\n\n if (count == 0) {\n //空类 重新选中心点\n const start = Math.floor(Math.random() * data.length);\n new_cluster_centers[i] = Array.from(data.slice(start, start + 4));\n diff += thresold;\n } else {\n const new_center = new_cluster_centers[i];\n\n for (let j = 0; j < 4; j++) {\n new_center[j] = rgbac[j] / count;\n }\n\n diff += Math.sqrt(euclidean_distance_squared(cluster_centers[i], new_cluster_centers[i]));\n }\n }\n\n if (diff <= thresold) {\n return {\n centroid: new_cluster_centers,\n iteration,\n fit: true,\n label: cluster_sum.map(v => v[4]),\n size: data.length\n };\n }\n\n const medium = cluster_centers;\n cluster_centers = new_cluster_centers;\n new_cluster_centers = medium;\n iteration++; //清空累加\n\n for (let i = 0; i < k; i++) {\n const sum_array = cluster_sum[i];\n sum_array[0] = 0;\n sum_array[1] = 0;\n sum_array[2] = 0;\n sum_array[3] = 0;\n sum_array[4] = 0;\n }\n }\n\n return {\n centroid: cluster_centers,\n iteration,\n fit: false,\n label: cluster_sum.map(v => v[4]),\n size: data.length\n };\n}\n\nfunction _filled_array(fillWith, count) {\n const array = [];\n\n for (let i = 0; i < count; i++) {\n array.push(fillWith);\n }\n\n return array;\n}\n\nfunction rgba2Rgb(data) {\n const rgb = new Uint8ClampedArray(data.length / 4 * 3);\n const len = data.length;\n let rgb_i = 0;\n\n for (let i = 0; i < len;) {\n for (let j = 0; j < 3; j++) {\n rgb[rgb_i++] = data[i++];\n }\n\n i++;\n }\n\n return rgb;\n}\n/**\r\n * @param samplefac Sampling factor, which can be changed to increase or decrease quality at the expense of performance. The lower the number, the higher the quality.\r\n * based on 'neuquant-js'\r\n */\n\n\nfunction neuquant(img, k, samplefac = 1) {\n const img_rgb = rgba2Rgb(img);\n const palette$1 = palette(img_rgb, {\n netsize: k,\n samplefac\n });\n const indexed_pixel = indexed(img_rgb, palette$1);\n const pixel = [];\n const len = palette$1.length;\n\n for (let i = 0; i < len;) {\n pixel.push([palette$1[i++], palette$1[i++], palette$1[i++], 255]);\n }\n\n return {\n centroid: pixel,\n label: count(k, indexed_pixel)\n };\n}\n\nfunction count(k, index) {\n const counts = new Array(k).fill(0);\n\n for (const i of index) {\n counts[i]++;\n }\n\n return counts;\n}\n\nfunction _prepare2DContext(width, height) {\n const canvas = document.createElement('canvas');\n const ctx = canvas.getContext('2d'); //contextType 是存在的\n\n canvas.height = height;\n canvas.width = width;\n return ctx;\n}\n/**\r\n * Use OffscreenCanvas\r\n */\n\n\nfunction _prepare2DContextAsync(width, height) {\n const canvas = new OffscreenCanvas(width, height);\n const ctx = canvas.getContext('2d');\n return ctx;\n}\n/**\r\n * a Promise resolved when <img> is loaded\r\n * @param imgElement\r\n * @returns Event, undefined when Image is already loaded\r\n */\n\n\nfunction awaitImage(imgElement) {\n return new Promise((resolve, reject) => {\n if (imgElement.complete) {\n resolve();\n } else {\n imgElement.addEventListener('load', e => {\n resolve(e);\n });\n imgElement.addEventListener('error', reason => {\n reject(reason);\n });\n }\n });\n}\nconst readImage = _readImage.bind(undefined, _prepare2DContext);\n/**\r\n * read image using OffscreenCanvas\r\n */\n\nconst readImageOffscreen = _readImage.bind(undefined, _prepare2DContextAsync);\n\nfunction _readImage(prepareCtx, imgSource) {\n const {\n naturalWidth,\n naturalHeight\n } = imgSource;\n const ctx = prepareCtx(naturalWidth, naturalHeight);\n ctx.drawImage(imgSource, 0, 0, naturalWidth, naturalHeight);\n return ctx.getImageData(0, 0, naturalWidth, naturalHeight);\n}\n/**\r\n * 降采样后读取图片\r\n * @param imgSource\r\n * @param maxSample\r\n * @returns\r\n */\n\n\nconst readImageDownsampling = _readImageDownsampling.bind(undefined, _prepare2DContext);\nconst readImageDownsamplingOffscreen = _readImageDownsampling.bind(undefined, _prepare2DContextAsync);\n\nfunction _readImageDownsampling(prepareCtx, imgSource, maxSample) {\n const {\n naturalWidth: width,\n naturalHeight: height\n } = imgSource;\n const scale = width * height / maxSample;\n\n if (scale > 1) {\n const n_width = width / Math.sqrt(scale);\n const n_height = height / Math.sqrt(scale);\n const ctx = prepareCtx(n_width, n_height);\n ctx.drawImage(imgSource, 0, 0, n_width, n_height);\n return ctx.getImageData(0, 0, n_width, n_height);\n } else {\n const ctx = prepareCtx(width, height);\n ctx.drawImage(imgSource, 0, 0);\n return ctx.getImageData(0, 0, width, height);\n }\n}\n\nfunction normalizeRGBA(rgba) {\n return rgba.map(v => v / 255);\n}\nfunction rgbaToHSLA(rgba) {\n let h, s; //@ts-ignore\n\n const [max, min] = max_min_of_three(rgba);\n const diff = max - min;\n const light_2x = max + min; //h\n\n if (diff == 0) {\n h = 0;\n s = 0;\n } else {\n if (max == rgba[0]) {\n const temp_h = 60 * (rgba[1] - rgba[2]) / diff;\n\n if (temp_h < 0) {\n h = temp_h + 360;\n } else {\n h = temp_h;\n }\n } else if (max == rgba[1]) {\n h = 60 * (rgba[2] - rgba[0]) / diff + 120;\n } else {\n h = 60 * (rgba[0] - rgba[1]) / diff + 240;\n }\n\n if (light_2x == 0) {\n s = 0;\n } else if (light_2x <= 1) {\n s = diff / light_2x;\n } else {\n s = diff / (2 - light_2x);\n }\n }\n\n return [h, s, light_2x / 2, rgba[3]];\n}\n/**\r\n * 返回一个排序HSLA颜色的函数\r\n * @param sort\r\n * @returns\r\n */\n\n\nconst getHSLAComparer = (sort = [0, 1, 2, 3]) => (a, b) => {\n let result;\n\n for (const s of sort) {\n result = a[s] - b[s];\n\n if (result != 0) {\n return result;\n }\n } //其实是赋了值的,但是ts没猜出来\n //@ts-ignore\n\n\n return result;\n};\n/**\r\n * 将颜色转换成对应的CSS文本\r\n * @param param0 像素\r\n * @returns hsla(${h}deg,${s}%,${l}%,${a})\r\n */\n\nconst hslaCSSText = ([h, s, l, a]) => `hsla(${h}deg,${s * 100}%,${l * 100}%,${a})`;\n/**\r\n * 将颜色转换成对应的CSS文本\r\n * @param pixel 像素\r\n * @returns rgba(r,g,b,a)\r\n */\n\nconst rgbaCSSText = pixel => `rgba(${pixel.map(v => Math.floor(v)).join(',')})`;\n\nfunction convertToLab(source) {\n //CIE Lab包含浮点表示,不能使用Uint8ClampedArray\n const array = [];\n\n for (let i = 0; i < source.length; i += 4) {\n const pixel = source.slice(i, i + 4);\n const alpha = pixel[3];\n const pixel_rgb = pixel.slice(0, 3);\n const pixel_xyz = rgb.xyz(pixel_rgb);\n const pixel_lab = xyz.lab(pixel_xyz);\n array.push(...pixel_lab, alpha);\n }\n\n return array;\n}\nfunction labaToRGBA(laba) {\n const pixel_lab = laba.slice(0, 3);\n const alpha = laba[3];\n const pixel_xyz = lab.xyz(pixel_lab);\n const pixel_rgb = xyz.rgb(pixel_xyz);\n pixel_rgb.push(alpha);\n return pixel_rgb;\n}\n\nexport { awaitImage, convertToLab, getHSLAComparer, hslaCSSText, kmeans, labaToRGBA, neuquant, normalizeRGBA, readImage, readImageDownsampling, readImageDownsamplingOffscreen, readImageOffscreen, rgbaCSSText, rgbaToHSLA };\n//# sourceMappingURL=index.modern.js.map\n","/**\n * CIE LAB space model\n *\n * @module color-space/lab\n */\n\nimport xyz from './xyz.js';\n\nexport default {\n\tname: 'lab',\n\tmin: [0,-100,-100],\n\tmax: [100,100,100],\n\tchannel: ['lightness', 'a', 'b'],\n\talias: ['LAB', 'cielab'],\n\n\txyz: function(lab) {\n\t\tvar l = lab[0],\n\t\t\t\ta = lab[1],\n\t\t\t\tb = lab[2],\n\t\t\t\tx, y, z, y2;\n\n\t\tif (l <= 8) {\n\t\t\ty = (l * 100) / 903.3;\n\t\t\ty2 = (7.787 * (y / 100)) + (16 / 116);\n\t\t} else {\n\t\t\ty = 100 * Math.pow((l + 16) / 116, 3);\n\t\t\ty2 = Math.pow(y / 100, 1/3);\n\t\t}\n\n\t\tx = x / 95.047 <= 0.008856 ? x = (95.047 * ((a / 500) + y2 - (16 / 116))) / 7.787 : 95.047 * Math.pow((a / 500) + y2, 3);\n\n\t\tz = z / 108.883 <= 0.008859 ? z = (108.883 * (y2 - (b / 200) - (16 / 116))) / 7.787 : 108.883 * Math.pow(y2 - (b / 200), 3);\n\n\t\treturn [x, y, z];\n\t}\n};\n\n\n//extend xyz\nxyz.lab = function(xyz){\n\tvar x = xyz[0],\n\t\t\ty = xyz[1],\n\t\t\tz = xyz[2],\n\t\t\tl, a, b;\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? Math.pow(x, 1/3) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? Math.pow(y, 1/3) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? Math.pow(z, 1/3) : (7.787 * z) + (16 / 116);\n\n\tl = (116 * y) - 16;\n\ta = 500 * (x - y);\n\tb = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n","import { awaitImage, readImageDownsampling, } from '@kotorik/palette';\nimport PromiseWorker from 'promise-worker';\nimport { isInDarkMode } from '../darkmode';\n//@ts-ignore\nimport 'color-space/hsl';\n//@ts-ignore\nimport rgb from 'color-space/rgb';\nlet worker;\nlet currentColor;\nfunction hslaCSSText([h, s, l, a]) {\n if (a) {\n return \"hsla(\" + h + \"deg,\" + s + \"%,\" + l + \"%,\" + a + \")\";\n }\n else {\n return \"hsl(\" + h + \"deg,\" + s + \"%,\" + l + \"%)\";\n }\n}\nexport async function updateThemeSkin(coverBGUrl) {\n try {\n const imgElement = document.createElement('img');\n imgElement.src = coverBGUrl;\n imgElement.crossOrigin = \"anonymous\";\n await awaitImage(imgElement);\n const data = readImageDownsampling(imgElement, 10000);\n const result = await worker.postMessage({\n k: 8,\n //iteration: 20,\n img: data\n });\n const { label, centroid } = result;\n const max = Math.max(...label);\n const index = label.findIndex(value => value == max);\n currentColor = centroid[index];\n _setColor();\n }\n catch (error) {\n console.error(error);\n _updateThemeColor(getComputedStyle(document.documentElement).getPropertyValue('--theme-skin-matching')); //回滚\n }\n}\nfunction _setColor(darkmode) {\n const hsla = rgb.hsl(currentColor);\n if (typeof darkmode == 'undefined' ? isInDarkMode() : darkmode)\n hsla[2] *= 0.5;\n /* const textColor = [0, 0, 0] as [number, number, number]\n \n if (hsla[2] > 40) {\n textColor[2] = 0.314\n } else {\n textColor[2] = 1 - 0.314\n }\n \n const style = document.documentElement.style\n const [h, s, l] = hsla\n style.setProperty('--header-color-h', h + 'deg')\n style.setProperty('--header-color-s', s + '%')\n style.setProperty('--header-color-l', l + '%')\n \n const siteHeader = document.querySelector<HTMLDivElement>('.site-header')\n siteHeader.style.color = hslaCSSText(textColor)\n */\n _updateThemeColor(hslaCSSText(hsla));\n}\nfunction _updateThemeColor(color_css) {\n const meta = document.querySelector('meta[name=theme-color]');\n meta && (meta.content = color_css);\n}\nexport function initThemeColor() {\n if (!worker)\n worker = new PromiseWorker(new Worker(new URL('./worker.ts', import.meta.url)));\n document.addEventListener('coverBG_change', (({ detail: coverBGUrl }) => updateThemeSkin(coverBGUrl)));\n document.addEventListener('darkmode', (({ detail: next }) => _setColor(next)));\n}\n","async function initParticle() {\r\n const cfg = document.getElementById('particles-js-cfg')\r\n if (cfg) {\r\n try {\r\n //particles.js的npm包内没有预置minify版本,与unpkg不兼容\r\n //@ts-ignore\r\n await import('particles.js')\r\n //@ts-ignore\r\n particlesJS('particles-js', JSON.parse(cfg.innerHTML))\r\n } catch (error) {\r\n console.error(error)\r\n }\r\n }\r\n}\r\nexport default function initEffect() {\r\n const { effect } = _iro\r\n if (effect) {\r\n if (effect.type == 'yuki') {\r\n import('./falling_effect/yuki/start')\r\n } else import('./falling_effect/sakura/start')\r\n }\r\n initParticle()\r\n}","/**\n * @module color-space/hsl\n */\nimport rgb from './rgb.js';\n\nexport default {\n\tname: 'hsl',\n\tmin: [0,0,0],\n\tmax: [360,100,100],\n\tchannel: ['hue', 'saturation', 'lightness'],\n\talias: ['HSL'],\n\n\trgb: function(hsl) {\n\t\tvar h = hsl[0]/360, s = hsl[1]/100, l = hsl[2]/100, t1, t2, t3, rgb, val, i=0;\n\n\t\tif (s === 0) return val = l * 255, [val, val, val];\n\n\t\tt2 = l < 0.5 ? l * (1 + s) : l + s - l * s;\n\t\tt1 = 2 * l - t2;\n\n\t\trgb = [0, 0, 0];\n\t\tfor (;i<3;) {\n\t\t\tt3 = h + 1 / 3 * - (i - 1);\n\t\t\tt3 < 0 ? t3++ : t3 > 1 && t3--;\n\t\t\tval = 6 * t3 < 1 ? t1 + (t2 - t1) * 6 * t3 :\n\t\t\t2 * t3 < 1 ? t2 :\n\t\t\t3 * t3 < 2 ? t1 + (t2 - t1) * (2 / 3 - t3) * 6 :\n\t\t\tt1;\n\t\t\trgb[i++] = val * 255;\n\t\t}\n\n\t\treturn rgb;\n\t}\n};\n\n\n//extend rgb\nrgb.hsl = function(rgb) {\n\tvar r = rgb[0]/255,\n\t\t\tg = rgb[1]/255,\n\t\t\tb = rgb[2]/255,\n\t\t\tmin = Math.min(r, g, b),\n\t\t\tmax = Math.max(r, g, b),\n\t\t\tdelta = max - min,\n\t\t\th, s, l;\n\n\tif (max === min) {\n\t\th = 0;\n\t}\n\telse if (r === max) {\n\t\th = (g - b) / delta;\n\t}\n\telse if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t}\n\telse if (b === max) {\n\t\th = 4 + (r - g)/ delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tl = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t}\n\telse if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t}\n\telse {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n","/**\n * app.js - Client script bundle for Sakurairo, a WordPress theme.\n * @author bymoye \n * @author KotoriK\n * @license GPL-v2\n * @date 2021.3.21\n * Github Repository:\n * @url https://github.com/Fuukei/Sakurairo_Scripts\n * @url https://github.com/mirai-mamori/Sakurairo/blob/f7db3c5c73d70a6a3f845844a44f279d540a7b6c/js/sakura-app.js\n * \n * *** ACKNOWLEDGEMENT *** \n * \n * *** modified on mashirozx/Sakura/js/sakura-app.js ***\n * Sakura theme application bundle\n * @author Mashiro\n * @url https://2heng.xin\n * @date 2019.8.3\n * *** ***\n * \n * *** inherited from louie-senpai/Siren/js/app.js ***\n * Siren application js\n * @author Louie\n * @url http://i94.me\n * @date 2016.11.19\n * *** ***\n * \n * *** inherited from Xoin-Yang/Akina/js/global.js ***\n * @author Xoin-Yang\n * @date 2017.04.25\n * @url http://www.akina.pw/\n * *** END OF ACKNOWLEDGEMENT *** \n * \n * Press 'F' to pay respects.\n * \n */\n\nimport { getCurrentBG, } from './coverBackground'\nimport add_copyright from './copyright'\nimport { loadCSS } from 'fg-loadcss'\nimport { lazyload } from 'lazyload'\nimport './global-func'\nimport { ready } from '../common/util'\nimport about_us from './about_us'\nimport preload_screen from './preload_screen'\nimport { isSupported } from './compatibility'\nimport hitokoto from './hitokoto'\nimport { web_audio } from './web_audio'\nimport { XLS, post_list_show_animation } from './post_list'\nimport { initThemeColor, updateThemeSkin } from './theme-color'\nimport initEffect from './effect'\nimport { initIsMobileCache, isMobile } from './mobile'\nimport { initFontControl } from './font_control'\nimport scrollHandler from './scroll_handler'\nimport { checkDarkModeSetting, } from './darkmode'\nimport { addSkinMenuListener, auto_height, bgButtonAddListener, CE, checkBgImgSetting, checkCoverBackground, checkSkinSecter, closeSkinMenu, MN, PE, timeSeriesReload, collapseMenu } from './func'\nimport initTypedJs from './typed'\nimport showcard from './showcard'\n\ninitIsMobileCache()\n/**\n * 检查是否应当开启_iro.pjax\n * @seealso https://github.com/PaperStrike/Pjax#compatibility\n */\n_iro.pjax = _iro.pjax && isSupported({ Firefox: 60, Edg: 79, Chrome: 66, OPR: 53, Version: 12/**Safari 12 */ });\n_iro.pjax && import('./pjax').then(({ default: initPjax }) => initPjax())\n\ntimeSeriesReload();\nadd_copyright()\nfunction activate_widget() {\n let secondary = document.getElementById(\"secondary\");\n if (!isMobile()) {\n let show_hide = document.querySelector(\".show-hide\");\n show_hide && show_hide.addEventListener(\"click\", () => {\n secondary && secondary.classList.toggle(\"active\");\n });\n } else {\n secondary && secondary.remove();\n }\n}\nsetTimeout(function () {\n activate_widget();\n}, 100);\n\n/* let isWebkit = navigator.userAgent.toLowerCase().indexOf('webkit') > -1,\n isOpera = navigator.userAgent.toLowerCase().indexOf('opera') > -1,\n isIe = navigator.userAgent.toLowerCase().indexOf('msie') > -1;\nif ((isWebkit || isOpera || isIe) && document.getElementById && window.addEventListener) { */\nwindow.addEventListener('hashchange', () => {\n const id = location.hash.substring(1)\n if (!(/^[A-z0-9_-]+$/.test(id))) {\n return;\n }\n const element = document.getElementById(id);\n if (element) {\n if (!(/^(?:a|select|input|button|textarea)$/i.test(element.tagName))) {\n element.tabIndex = -1;\n }\n element.focus();\n }\n}, false);\n/* } */\n\ncheckDarkModeSetting();\n\nimport POWERMODE from 'activate-power-mode'\nimport { coverVideoIni, coverVideo } from './video'\n\nfunction powermode() {\n POWERMODE.colorful = true;\n POWERMODE.shake = false;\n document.body.addEventListener('input', POWERMODE)\n}\n//afterDOMContentLoaded\n\nready(function () {\n if (_iro.float_player_on) {\n if (!isMobile()) {\n import('./aplayer').then(({ aplayerInit }) => aplayerInit())\n }\n }\n if (_iro.land_at_home) initTypedJs()\n Promise.all([checkCoverBackground(), checkBgImgSetting()])\n .then(() => {\n if (isSupported({ Version: 15/**Safari 15 */ })) {\n initThemeColor()\n const bgUrl = getCurrentBG()\n if (bgUrl) updateThemeSkin(bgUrl)\n }\n })\n addSkinMenuListener();\n //let checkskin_bg = (a) => a == \"none\" ? \"\" : a;\n let changskin = document.querySelector(\"#changskin\"),\n close_SkinMenu = document.querySelector(\".skin-menu #close-skinMenu\");\n changskin && changskin.addEventListener(\"click\", function () {\n document.querySelector(\".skin-menu\").classList.toggle(\"show\");\n })\n close_SkinMenu && close_SkinMenu.addEventListener(\"click\", closeSkinMenu)\n scrollHandler();\n /*GT()*/\n const mb_to_top = document.querySelector(\"#moblieGoTop\")\n if (mb_to_top) {\n mb_to_top.onclick = () => {\n window.scrollTo({\n top: 0,\n behavior: \"smooth\"\n });\n }\n }\n /*GT end;*/\n XLS();\n MN();\n coverVideo();\n hitokoto()\n bgButtonAddListener()\n //#region has-dom-modify\n initFontControl()\n auto_height();\n PE();\n CE();\n collapseMenu()\n //#endregion\n web_audio()\n preload_screen()\n lazyload();\n showcard()\n powermode()\n //#region mashiro_global.ini.normalize();\n post_list_show_animation();\n coverVideoIni();\n checkSkinSecter();\n //#endregion\n initEffect()\n about_us()\n});\n","import { isMobile } from \"./mobile\";\nexport default function scrollHandler() {\n const header_thresold = 0;\n const siteHeader = document.querySelector(\".site-header\");\n const skinMenu = document.querySelector(\".skin-menu\");\n const changskin = document.querySelector(\"#changskin\");\n const mb_to_top = document.querySelector(\"#moblieGoTop\");\n const common = (scrollTop) => {\n //NH\n if (scrollTop > header_thresold) {\n siteHeader.classList.add(\"yya\");\n }\n else {\n siteHeader.classList.remove(\"yya\");\n }\n const cssText = scrollTop > 20 ? \"scale(1)\" : \"scale(0)\";\n mb_to_top.style.transform = cssText;\n changskin.style.transform = cssText;\n };\n if (isMobile()) {\n const smallScreenHandler = () => {\n const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;\n skinMenu && skinMenu.classList.remove(\"show\");\n common(scrollTop);\n };\n window.addEventListener(\"scroll\", smallScreenHandler);\n }\n else {\n const cached = document.getElementById('bar');\n const recalcuScrollbar = (scrollTop) => {\n const scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight;\n const result = Math.round(scrollTop / (scrollHeight - window.innerHeight) * 100);\n cached.style.width = result + '%';\n /* switch (true) {\n case (result <= 19): c = '#cccccc'; break;\n case (result <= 39): c = '#50bcb6'; break;\n case (result <= 59): c = '#85c440'; break;\n case (result <= 79): c = '#f2b63c'; break;\n case (result <= 99): c = '#FF0000'; break;\n case (result == 100): c = '#5aaadb'; break;\n default: c = \"orange\";\n }\n cached.style.background = c; */\n //炫彩scrollbar好像不是很好看,又被php那边的样式强制覆盖了,就先注释掉\n skinMenu && skinMenu.classList.remove(\"show\");\n };\n const largeScreenHandler = () => {\n const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;\n recalcuScrollbar(scrollTop);\n common(scrollTop);\n };\n window.addEventListener(\"scroll\", largeScreenHandler);\n }\n}\n//pjax.complete ready\n/* function NH() {\n const header_thresold = 0,\n siteHeader = document.querySelector(\".site-header\")\n window.addEventListener(\"scroll\", () => {\n const scrollTop = document.documentElement.scrollTop || window.pageYOffset;\n if (scrollTop > header_thresold) {\n siteHeader.classList.add(\"yya\");\n } else {\n siteHeader.classList.remove(\"yya\");\n }\n })\n // $(window).scroll(function () {\n // var s = $(document).scrollTop(),\n // cached = $('.site-header');\n // if (s == h1) {\n // cached.removeClass('yya');\n // }\n // if (s > h1) {\n // cached.addClass('yya');\n // }\n // });\n} */\n//ready\n/* function GT() {\n const mb_to_top = document.querySelector(\"#moblieGoTop\"),\n changskin = document.querySelector(\"#changskin\");\n window.addEventListener(\"scroll\", debounce(() => {\n const scroll = document.documentElement.scrollTop || document.body.scrollTop;\n const cssText = scroll > 20 ? \"scale(1)\" : \"scale(0)\"\n mb_to_top.style.transform = cssText;\n changskin.style.transform = cssText;\n }))\n mb_to_top.onclick = topFunction\n}\n\nfunction topFunction() {\n window.scrollTo({\n top: 0,\n behavior: \"smooth\"\n });\n} */\n","export default function () {\n const preload = document.getElementById(\"preload\");\n if (preload) {\n let removed = false;\n const removeScreen = () => {\n if (removed)\n return;\n document.documentElement.style.overflowY = 'unset';\n if (_iro.preload_blur != 0) {\n try {\n preload\n .animate([\n { filter: \"blur(0px)\", backdropFilter: \"blur(10px)\", opacity: 1 },\n { backdropFilter: \"blur(0px)grayscale(0)\", opacity: 0.1 },\n { opacity: 0, filter: \"blur(100px)\", }\n ], { duration: _iro.preload_blur, fill: \"forwards\", easing: \"ease\" })\n .onfinish = () => {\n preload.remove();\n };\n return;\n }\n catch (error) {\n console.warn(error);\n }\n }\n preload.classList.add('hide');\n preload.classList.remove('show');\n removed = true;\n setTimeout(() => preload.remove(), 233);\n };\n if (document.readyState === 'complete')\n return removeScreen();\n window.addEventListener('load', removeScreen, { once: true });\n setTimeout(removeScreen, 3000);\n }\n}\n","export default function about_us() {\n const c = 'background: linear-gradient(to bottom right, #7b2a52, #36307f,#272151);color:#fff';\n console.log('%c Sakurairo %c https://github.com/mirai-mamori/Sakurairo', c, '');\n console.log('誰もが信じ崇めてる\\n' +\n 'まさに最強で無敵のアイドル\\n' +\n '弱点なんて見当たらない\\n' +\n '一番星を宿している\\n' +\n '弱いとこなんて見せちゃダメダメ\\n' +\n '知りたくないとこは見せずに\\n' +\n '唯一無二じゃなくちゃイヤイヤ\\n' +\n 'それこそ%c本物のアイ%c\\n' +\n '%c ⌜IDOL⌟ ', 'color:#b424b8', '', c);\n}\n","import { onlyOnceATime } from \"../common/util\";\nimport { lazyload } from 'lazyload'\nimport { __ } from '../common/sakurairo_global'\nimport { code_highlight_style } from '../common/code-highlight'\n\nlet load_post_timer;\nconst load_post = onlyOnceATime(function load_post() {\n const now_href = document.location.href\n const pagination_a = document.querySelector('#pagination a');\n if (pagination_a.classList.contains(\"loading\")) return;\n pagination_a.classList.add(\"loading\");\n pagination_a.innerText = \"\";\n\n // $('#pagination a').addClass(\"loading\").text(\"\");\n fetch(pagination_a.getAttribute(\"href\") + \"#main\")\n .then(async resp => {\n const text = await resp.text()\n //在进行DOM操作前检查页面是否已经变化,防止错误加载到其他页面上\n if (now_href != document.location.href) return /**如果页面状态发生了变化,那么也应该不用理加载提示符 */\n const parser = new DOMParser(),\n DOM = parser.parseFromString(text, \"text/html\"),\n result = DOM.querySelectorAll(\"#main .post, #shuoshuo_post\"),\n paga = DOM.querySelector(\"#pagination a\"),\n paga_innerText = paga && paga.innerText,\n nextHref = paga && paga.getAttribute(\"href\"),\n main = document.getElementById(\"main\")\n for (let i = 0; i < result.length; i++) {\n main.append(result[i])\n }\n //if (resp.ok) {\n // result = $(data).find(\"#main .post\");\n // nextHref = $(data).find(\"#pagination a\").attr(\"href\");\n // $(\"#main\").append(result.fadeIn(500));\n const dpga = document.querySelector(\"#pagination a\"),\n addps = document.querySelector(\"#add_post span\");\n if (dpga) {\n dpga.classList.remove(\"loading\");\n dpga.innerText = paga_innerText;\n }\n if (addps) {\n addps.classList.remove(\"loading\");\n addps.innerText = \"\";\n }\n // $(\"#pagination a\").removeClass(\"loading\").text(\"Previous\");\n // $('#add_post span').removeClass(\"loading\").text(\"\");\n lazyload();\n code_highlight_style();\n post_list_show_animation();\n document.dispatchEvent(new CustomEvent('ajax_post_loaded',))\n if (nextHref != undefined) {\n pagination_a.setAttribute(\"href\", nextHref);\n // $(\"#pagination a\").attr(\"href\", nextHref);\n //加载完成上滑\n let tempScrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;\n // window.scrollTo(tempScrollTop);\n // $(window).scrollTop(tempScrollTop);\n window.scrollTo({\n top: tempScrollTop + 300,\n behavior: 'smooth'\n })\n // $body.animate({\n // scrollTop: tempScrollTop + 300\n //\n // }, 666)\n } else {\n document.getElementById(\"pagination\").innerHTML = \"<span>\" + __(\"很高兴你翻到这里,但是真的没有了...\") + \"</span>\";\n // $(\"#pagination\").html(\"<span>很高兴你翻到这里,但是真的没有了...</span>\");\n }\n //}\n\n })\n /* $.ajax({\n type: \"POST\",\n url: $('#pagination a').attr(\"href\") + \"#main\",\n success: function (data) {\n result = $(data).find(\"#main .post\");\n nextHref = $(data).find(\"#pagination a\").attr(\"href\");\n $(\"#main\").append(result.fadeIn(500));\n $(\"#pagination a\").removeClass(\"loading\").text(\"Previous\");\n $('#add_post span').removeClass(\"loading\").text(\"\");\n lazyload();\n post_list_show_animation();\n if (nextHref != undefined) {\n $(\"#pagination a\").attr(\"href\", nextHref);\n //加载完成上滑\n var tempScrollTop = $(window).scrollTop();\n $(window).scrollTop(tempScrollTop);\n $body.animate({\n scrollTop: tempScrollTop + 300\n\n }, 666)\n } else {\n $(\"#pagination\").html(\"<span>很高兴你翻到这里,但是真的没有了...</span>\");\n }\n }\n }); */\n})\nexport function post_list_show_animation() {\n const articles = document.querySelectorAll('article.post-list-thumb')\n if (articles) {\n const options = {\n root: null,\n threshold: [0.66]\n }\n const callback = (entries) => {\n entries.forEach((article) => {\n if (article.target.classList.contains(\"post-list-show\")) {\n article.target.style.willChange = 'auto';\n io.unobserve(article.target)\n } else if (article.isIntersecting) {\n article.target.classList.add(\"post-list-show\");\n article.target.style.willChange = 'auto';\n io.unobserve(article.target)\n }\n })\n }\n const io = new IntersectionObserver(callback, options)\n for (const article of articles) {\n io.observe(article)\n }\n }\n}\nfunction XLS_Listener(e) {\n //要求是#pagination只有anchor一个直接子后代\n if (e.target.parentElement.id == 'pagination') {\n e.preventDefault();\n e.stopPropagation();\n clearTimeout(load_post_timer);\n load_post();\n }\n}\nexport function XLS() {\n const intersectionObserver = new IntersectionObserver((entries) => {\n if (entries[0].intersectionRatio <= 0) return;\n // var page_next = $('#pagination a').attr(\"href\");\n const _page_next = document.querySelector('#pagination a')\n if (_page_next) {\n const href_page_next = _page_next.getAttribute(\"href\"),\n load_key = document.getElementById(\"add_post_time\");\n if (href_page_next != undefined && load_key) {\n const load_time = load_key.title;\n if (load_time != \"233\") {\n console.log(\"%c 自动加载时倒计时 %c\", \"background:#9a9da2; color:#ffffff; border-radius:4px;\", \"\", \"\", load_time);\n load_post_timer = setTimeout(load_post, load_time * 1000);\n }\n }\n }\n });\n intersectionObserver.observe(\n document.querySelector('.footer-device')\n );\n document.body.removeEventListener('click', XLS_Listener)\n document.body.addEventListener(\"click\", XLS_Listener)\n}","import { isInDarkMode } from '../app/darkmode'\r\nimport { loadCSS } from 'fg-loadcss'\r\nimport { importExternal, resolvePath } from '../common/npmLib';\r\n\r\nconst PRISM_VERSION = PKG_INFO['prismjs']\r\nconst attributes = {\r\n 'autocomplete': 'off',\r\n 'autocorrect': 'off',\r\n 'autocapitalize': 'off',\r\n 'spellcheck': 'false',\r\n 'contenteditable': 'false',\r\n 'design': 'by Mashiro'\r\n}\r\nfunction gen_top_bar(pre, code_a) {\r\n if (!pre.children[0]) return\r\n let lang = 'text'\r\n const className = pre.children[0].className\r\n const matchResult = className.match(/language-(\\w+)/i)\r\n if (matchResult) {\r\n lang = matchResult[1]\r\n }\r\n pre.classList.add(\"highlight-wrap\");\r\n for (const t in attributes) {\r\n pre.setAttribute(t, attributes[t]);\r\n }\r\n code_a.setAttribute('data-rel', lang.toUpperCase());\r\n}\r\nasync function importHighlightjs() {\r\n try {\r\n if (!window.hljs) {\r\n window.hljs = (await import('highlight.js')).default\r\n await import('highlightjs-line-numbers.js')\r\n }\r\n } catch (e) {\r\n console.warn(e)\r\n }\r\n}\r\nconst hljs_click_callback = (e) => {\r\n const element = e.target\r\n if (!element.classList.contains(\"highlight-wrap\")) return;\r\n if (element.classList.contains('code-block-fullscreen')) {\r\n element.remove()\r\n } else {\r\n const cloneElement = element.cloneNode(true)\r\n cloneElement.classList.toggle(\"code-block-fullscreen\")\r\n document.body.append(cloneElement)\r\n }\r\n document.documentElement.classList.toggle('code-block-fullscreen-html-scroll');\r\n}\r\nexport function deattachHljsCallback() {\r\n document.body.removeEventListener(\"click\", hljs_click_callback)\r\n}\r\nexport async function hljs_process(pre, code) {\r\n try {\r\n await importHighlightjs()\r\n for (let i = 0; i < code.length; i++) {\r\n if (!code[i].classList.contains(\"hljs\")) {\r\n hljs.highlightElement(code[i]);\r\n }\r\n }\r\n for (let i = 0; i < pre.length; i++) {\r\n if (!pre[i].classList.contains(\"highlight-wrap\")) {\r\n gen_top_bar(pre[i], code[i]);\r\n }\r\n }\r\n hljs.initLineNumbersOnLoad();\r\n document.body.addEventListener(\"click\", hljs_click_callback)\r\n } catch (e) {\r\n console.warn(e)\r\n }\r\n}\r\n//Prism\r\nconst PrismBaseUrl = _iro.code_highlight_prism?.autoload_path || resolvePath('', 'prismjs', PRISM_VERSION)\r\nlet currentPrismThemeCSS = undefined\r\nconst themeCSS = (() => {\r\n const { light, dark } = _iro.code_highlight_prism?.theme || {}\r\n const theme = {\r\n light: light || 'themes/prism.min.css',\r\n dark: dark || 'themes/prism-tomorrow.min.css',\r\n }\r\n for (const theme_name in theme) {\r\n theme[theme_name] = new URL(theme[theme_name], PrismBaseUrl).toString()\r\n }\r\n return theme\r\n})()\r\n\r\nfunction loadPrismCSS(darkmodeOn) {\r\n const nextCSSHref = darkmodeOn ? themeCSS.dark : themeCSS.light\r\n if (currentPrismThemeCSS) {\r\n if (currentPrismThemeCSS.href !== nextCSSHref) {\r\n const nextCSSElement = loadCSS(nextCSSHref)\r\n nextCSSElement.addEventListener('load', () => {\r\n currentPrismThemeCSS.remove()\r\n currentPrismThemeCSS = nextCSSElement\r\n })\r\n }\r\n } else {\r\n currentPrismThemeCSS = loadCSS(nextCSSHref)\r\n }\r\n}\r\n\r\nconst prism_darkmode_callback = (e) => {\r\n loadPrismCSS(e.detail)\r\n}\r\nexport const deattachPrismCallback = () => document.removeEventListener('darkmode', prism_darkmode_callback)\r\nasync function importPrismJS() {\r\n try {\r\n if (!window.Prism) {\r\n loadPrismCSS(isInDarkMode())\r\n document.addEventListener('darkmode', prism_darkmode_callback)\r\n //必备插件全家桶\r\n loadCSS(new URL('plugins/toolbar/prism-toolbar.min.css', PrismBaseUrl).toString())\r\n loadCSS(new URL('plugins/previewers/prism-previewers.min.css', PrismBaseUrl).toString())\r\n if (_iro.ext_shared_lib) {\r\n await Promise.all([importExternal('components/prism-core.min.js', 'prismjs', PRISM_VERSION),\r\n importExternal('plugins/autoloader/prism-autoloader.min.js', 'prismjs', PRISM_VERSION),\r\n importExternal('plugins/toolbar/prism-toolbar.min.js', 'prismjs', PRISM_VERSION),\r\n importExternal('plugins/previewers/prism-previewers.min.js', 'prismjs', PRISM_VERSION),\r\n importExternal('plugins/show-language/prism-show-language.min.js', 'prismjs', PRISM_VERSION)])\r\n } else await import('./prism_pack')\r\n Prism.plugins.autoloader.languages_path = new URL('components/', PrismBaseUrl).toString()\r\n }\r\n } catch (reason) {\r\n console.warn(reason)\r\n }\r\n}\r\nfunction loadPrismPluginLineNumbers() {\r\n loadCSS(new URL('plugins/line-numbers/prism-line-numbers.min.css', PrismBaseUrl).toString())\r\n if (_iro.ext_shared_lib) {\r\n return importExternal('plugins/line-numbers/prism-line-numbers.min.js', 'prismjs', PRISM_VERSION)\r\n } else {\r\n return import('prismjs/plugins/line-numbers/prism-line-numbers')\r\n }\r\n}\r\nfunction loadPrismMatchBraces() {\r\n loadCSS(new URL('plugins/match-braces/prism-match-braces.min.css', PrismBaseUrl).toString())\r\n if (_iro.ext_shared_lib) {\r\n return importExternal('plugins/match-braces/prism-match-braces.min.js', 'prismjs', PRISM_VERSION)\r\n } else {\r\n return import('prismjs/plugins/match-braces/prism-match-braces')\r\n }\r\n}\r\nfunction loadPrismCommandLine() {\r\n loadCSS(new URL('plugins/command-line/prism-command-line.css', PrismBaseUrl).toString())\r\n if (_iro.ext_shared_lib) {\r\n return importExternal('plugins/command-line/prism-command-line.min.js', 'prismjs', PRISM_VERSION)\r\n } else {\r\n return import('prismjs/plugins/command-line/prism-command-line')\r\n }\r\n}\r\n/**\r\n * \r\n * @param {NodeListOf<HTMLElement>} code document.querySelectorAll(\"pre code\")\r\n */\r\nexport async function prism_process(code) {\r\n try {\r\n let loadLineNumber = false\r\n let loadMatchBraces = false\r\n let loadCommandLine = false\r\n if (_iro.code_highlight_prism.line_number_all) {\r\n document.querySelector('.entry-content').classList.add('line-numbers')\r\n loadLineNumber = true\r\n }\r\n for (const ele of code) {\r\n if (ele.parentElement.classList.contains('line-numbers')) {\r\n loadLineNumber = true\r\n }\r\n if (ele.classList.contains('match-braces')) {\r\n loadMatchBraces = true\r\n }\r\n if (ele.dataset.prompt || ele.dataset.host || ele.dataset.user) {\r\n //cli\r\n loadCommandLine = true\r\n }\r\n }\r\n await Promise.all([\r\n importPrismJS(),\r\n loadLineNumber && loadPrismPluginLineNumbers(),\r\n loadMatchBraces && loadPrismMatchBraces(),\r\n loadCommandLine && loadPrismCommandLine()\r\n ])\r\n for (const ele of code) {\r\n if (!ele.firstChild?.classList?.contains('token')) {\r\n Prism.highlightElement(ele);\r\n }\r\n }\r\n Prism.plugins.fileHighlight && Prism.plugins.fileHighlight.highlight()\r\n } catch (error) {\r\n console.warn(error)\r\n }\r\n}\r\n\r\nexport async function code_highlight_style() {\r\n const pre = document.getElementsByTagName(\"pre\"),\r\n code = document.querySelectorAll(\"pre code\");\r\n if (!pre.length) {\r\n switch (_iro.code_highlight) {\r\n case 'hljs':\r\n deattachHljsCallback()\r\n return\r\n case 'prism':\r\n deattachPrismCallback()\r\n return\r\n default:\r\n }\r\n }\r\n switch (_iro.code_highlight) {\r\n case 'hljs':\r\n await hljs_process(pre, code)\r\n break\r\n case 'prism':\r\n await prism_process(code)\r\n break\r\n case 'custom': return\r\n default:\r\n console.warn(`_iro.code_highlight这咋填的是个${_iro.code_highlight}啊🤔`)\r\n }\r\n //copy_code_block\r\n if (code.length > 0) {\r\n for (let j = 0; j < code.length; j++) {\r\n const pre_a = code[j].parentElement.querySelectorAll(\"a\");\r\n for (const ele of pre_a) {\r\n if (ele.classList.contains(\"copy-code\")) {\r\n ele.remove(); //如果已经存在复制按钮,需将其移除后再重新添加\r\n }\r\n }\r\n code[j].setAttribute('id', 'code-block-' + j);\r\n code[j].insertAdjacentHTML('afterend', '<a class=\"copy-code\" href=\"javascript:\" data-clipboard-target=\"#code-block-' + j + '\" title=\"' + __(\"拷贝代码\") + '\"><i class=\"fa-regular fa-clipboard\"></i>');\r\n }\r\n if (_iro.ext_shared_lib) {\r\n await importExternal('dist/clipboard.min.js', 'clipboard')\r\n new ClipboardJS('.copy-code')\r\n } else {\r\n const ClipboardJS = (await import('clipboard')).default\r\n new ClipboardJS('.copy-code');\r\n }\r\n }\r\n}","/*! loadCSS. [c]2020 Filament Group, Inc. MIT License */\n(function(w){\n\t\"use strict\";\n\t/* exported loadCSS */\n\tvar loadCSS = function( href, before, media, attributes ){\n\t\t// Arguments explained:\n\t\t// `href` [REQUIRED] is the URL for your CSS file.\n\t\t// `before` [OPTIONAL] is the element the script should use as a reference for injecting our stylesheet <link> before\n\t\t// By default, loadCSS attempts to inject the link after the last stylesheet or script in the DOM. However, you might desire a more specific location in your document.\n\t\t// `media` [OPTIONAL] is the media type or query of the stylesheet. By default it will be 'all'\n\t\t// `attributes` [OPTIONAL] is the Object of attribute name/attribute value pairs to set on the stylesheet's DOM Element.\n\t\tvar doc = w.document;\n\t\tvar ss = doc.createElement( \"link\" );\n\t\tvar ref;\n\t\tif( before ){\n\t\t\tref = before;\n\t\t}\n\t\telse {\n\t\t\tvar refs = ( doc.body || doc.getElementsByTagName( \"head\" )[ 0 ] ).childNodes;\n\t\t\tref = refs[ refs.length - 1];\n\t\t}\n\n\t\tvar sheets = doc.styleSheets;\n\t\t// Set any of the provided attributes to the stylesheet DOM Element.\n\t\tif( attributes ){\n\t\t\tfor( var attributeName in attributes ){\n\t\t\t\tif( attributes.hasOwnProperty( attributeName ) ){\n\t\t\t\t\tss.setAttribute( attributeName, attributes[attributeName] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tss.rel = \"stylesheet\";\n\t\tss.href = href;\n\t\t// temporarily set media to something inapplicable to ensure it'll fetch without blocking render\n\t\tss.media = \"only x\";\n\n\t\t// wait until body is defined before injecting link. This ensures a non-blocking load in IE11.\n\t\tfunction ready( cb ){\n\t\t\tif( doc.body ){\n\t\t\t\treturn cb();\n\t\t\t}\n\t\t\tsetTimeout(function(){\n\t\t\t\tready( cb );\n\t\t\t});\n\t\t}\n\t\t// Inject link\n\t\t\t// Note: the ternary preserves the existing behavior of \"before\" argument, but we could choose to change the argument to \"after\" in a later release and standardize on ref.nextSibling for all refs\n\t\t\t// Note: `insertBefore` is used instead of `appendChild`, for safety re: http://www.paulirish.com/2011/surefire-dom-element-insertion/\n\t\tready( function(){\n\t\t\tref.parentNode.insertBefore( ss, ( before ? ref : ref.nextSibling ) );\n\t\t});\n\t\t// A method (exposed on return object for external use) that mimics onload by polling document.styleSheets until it includes the new sheet.\n\t\tvar onloadcssdefined = function( cb ){\n\t\t\tvar resolvedHref = ss.href;\n\t\t\tvar i = sheets.length;\n\t\t\twhile( i-- ){\n\t\t\t\tif( sheets[ i ].href === resolvedHref ){\n\t\t\t\t\treturn cb();\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetTimeout(function() {\n\t\t\t\tonloadcssdefined( cb );\n\t\t\t});\n\t\t};\n\n\t\tfunction loadCB(){\n\t\t\tif( ss.addEventListener ){\n\t\t\t\tss.removeEventListener( \"load\", loadCB );\n\t\t\t}\n\t\t\tss.media = media || \"all\";\n\t\t}\n\n\t\t// once loaded, set link's media back to `all` so that the stylesheet applies once it loads\n\t\tif( ss.addEventListener ){\n\t\t\tss.addEventListener( \"load\", loadCB);\n\t\t}\n\t\tss.onloadcssdefined = onloadcssdefined;\n\t\tonloadcssdefined( loadCB );\n\t\treturn ss;\n\t};\n\t// commonjs\n\tif( typeof exports !== \"undefined\" ){\n\t\texports.loadCSS = loadCSS;\n\t}\n\telse {\n\t\tw.loadCSS = loadCSS;\n\t}\n}( typeof global !== \"undefined\" ? global : this ));\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"POWERMODE\"] = factory();\n\telse\n\t\troot[\"POWERMODE\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\n\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar canvas = document.createElement('canvas');\n\tcanvas.width = window.innerWidth;\n\tcanvas.height = window.innerHeight;\n\tcanvas.style.cssText = 'position:fixed;top:0;left:0;pointer-events:none;z-index:999999';\n\twindow.addEventListener('resize', function () {\n\t canvas.width = window.innerWidth;\n\t canvas.height = window.innerHeight;\n\t});\n\tdocument.body.appendChild(canvas);\n\tvar context = canvas.getContext('2d');\n\tvar particles = [];\n\tvar particlePointer = 0;\n\tvar rendering = false;\n\n\tPOWERMODE.shake = true;\n\n\tfunction getRandom(min, max) {\n\t return Math.random() * (max - min) + min;\n\t}\n\n\tfunction getColor(el) {\n\t if (POWERMODE.colorful) {\n\t var u = getRandom(0, 360);\n\t return 'hsla(' + getRandom(u - 10, u + 10) + ', 100%, ' + getRandom(50, 80) + '%, ' + 1 + ')';\n\t } else {\n\t return window.getComputedStyle(el).color;\n\t }\n\t}\n\n\tfunction getCaret() {\n\t var el = document.activeElement;\n\t var bcr;\n\t if (el.tagName === 'TEXTAREA' ||\n\t (el.tagName === 'INPUT' && el.getAttribute('type') === 'text')) {\n\t var offset = __webpack_require__(1)(el, el.selectionEnd);\n\t bcr = el.getBoundingClientRect();\n\t return {\n\t x: offset.left + bcr.left,\n\t y: offset.top + bcr.top,\n\t color: getColor(el)\n\t };\n\t }\n\t var selection = window.getSelection();\n\t if (selection.rangeCount) {\n\t var range = selection.getRangeAt(0);\n\t var startNode = range.startContainer;\n\t if (startNode.nodeType === document.TEXT_NODE) {\n\t startNode = startNode.parentNode;\n\t }\n\t bcr = range.getBoundingClientRect();\n\t return {\n\t x: bcr.left,\n\t y: bcr.top,\n\t color: getColor(startNode)\n\t };\n\t }\n\t return { x: 0, y: 0, color: 'transparent' };\n\t}\n\n\tfunction createParticle(x, y, color) {\n\t return {\n\t x: x,\n\t y: y,\n\t alpha: 1,\n\t color: color,\n\t velocity: {\n\t x: -1 + Math.random() * 2,\n\t y: -3.5 + Math.random() * 2\n\t }\n\t };\n\t}\n\n\tfunction POWERMODE() {\n\t { // spawn particles\n\t var caret = getCaret();\n\t var numParticles = 5 + Math.round(Math.random() * 10);\n\t while (numParticles--) {\n\t particles[particlePointer] = createParticle(caret.x, caret.y, caret.color);\n\t particlePointer = (particlePointer + 1) % 500;\n\t }\n\t }\n\t { // shake screen\n\t if (POWERMODE.shake) {\n\t var intensity = 1 + 2 * Math.random();\n\t var x = intensity * (Math.random() > 0.5 ? -1 : 1);\n\t var y = intensity * (Math.random() > 0.5 ? -1 : 1);\n\t document.body.style.marginLeft = x + 'px';\n\t document.body.style.marginTop = y + 'px';\n\t setTimeout(function() {\n\t document.body.style.marginLeft = '';\n\t document.body.style.marginTop = '';\n\t }, 75);\n\t }\n\t }\n\t if(!rendering){\n\t requestAnimationFrame(loop);\n\t }\n\t};\n\tPOWERMODE.colorful = false;\n\n\tfunction loop() {\n\t rendering = true;\n\t context.clearRect(0, 0, canvas.width, canvas.height);\n\t var rendered = false;\n\t var rect = canvas.getBoundingClientRect();\n\t for (var i = 0; i < particles.length; ++i) {\n\t var particle = particles[i];\n\t if (particle.alpha <= 0.1) continue;\n\t particle.velocity.y += 0.075;\n\t particle.x += particle.velocity.x;\n\t particle.y += particle.velocity.y;\n\t particle.alpha *= 0.96;\n\t context.globalAlpha = particle.alpha;\n\t context.fillStyle = particle.color;\n\t context.fillRect(\n\t Math.round(particle.x - 1.5) - rect.left,\n\t Math.round(particle.y - 1.5) - rect.top,\n\t 3, 3\n\t );\n\t rendered = true;\n\t }\n\t if(rendered){\n\t requestAnimationFrame(loop);\n\t }else{\n\t rendering = false;\n\t }\n\t}\n\n\tmodule.exports = POWERMODE;\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\n\t/* jshint browser: true */\n\n\t(function () {\n\n\t// The properties that we copy into a mirrored div.\n\t// Note that some browsers, such as Firefox,\n\t// do not concatenate properties, i.e. padding-top, bottom etc. -> padding,\n\t// so we have to do every single property specifically.\n\tvar properties = [\n\t 'direction', // RTL support\n\t 'boxSizing',\n\t 'width', // on Chrome and IE, exclude the scrollbar, so the mirror div wraps exactly as the textarea does\n\t 'height',\n\t 'overflowX',\n\t 'overflowY', // copy the scrollbar for IE\n\n\t 'borderTopWidth',\n\t 'borderRightWidth',\n\t 'borderBottomWidth',\n\t 'borderLeftWidth',\n\t 'borderStyle',\n\n\t 'paddingTop',\n\t 'paddingRight',\n\t 'paddingBottom',\n\t 'paddingLeft',\n\n\t // https://developer.mozilla.org/en-US/docs/Web/CSS/font\n\t 'fontStyle',\n\t 'fontVariant',\n\t 'fontWeight',\n\t 'fontStretch',\n\t 'fontSize',\n\t 'fontSizeAdjust',\n\t 'lineHeight',\n\t 'fontFamily',\n\n\t 'textAlign',\n\t 'textTransform',\n\t 'textIndent',\n\t 'textDecoration', // might not make a difference, but better be safe\n\n\t 'letterSpacing',\n\t 'wordSpacing',\n\n\t 'tabSize',\n\t 'MozTabSize'\n\n\t];\n\n\tvar isFirefox = window.mozInnerScreenX != null;\n\n\tfunction getCaretCoordinates(element, position, options) {\n\n\t var debug = options && options.debug || false;\n\t if (debug) {\n\t var el = document.querySelector('#input-textarea-caret-position-mirror-div');\n\t if ( el ) { el.parentNode.removeChild(el); }\n\t }\n\n\t // mirrored div\n\t var div = document.createElement('div');\n\t div.id = 'input-textarea-caret-position-mirror-div';\n\t document.body.appendChild(div);\n\n\t var style = div.style;\n\t var computed = window.getComputedStyle? getComputedStyle(element) : element.currentStyle; // currentStyle for IE < 9\n\n\t // default textarea styles\n\t style.whiteSpace = 'pre-wrap';\n\t if (element.nodeName !== 'INPUT')\n\t style.wordWrap = 'break-word'; // only for textarea-s\n\n\t // position off-screen\n\t style.position = 'absolute'; // required to return coordinates properly\n\t if (!debug)\n\t style.visibility = 'hidden'; // not 'display: none' because we want rendering\n\n\t // transfer the element's properties to the div\n\t properties.forEach(function (prop) {\n\t style[prop] = computed[prop];\n\t });\n\n\t if (isFirefox) {\n\t // Firefox lies about the overflow property for textareas: https://bugzilla.mozilla.org/show_bug.cgi?id=984275\n\t if (element.scrollHeight > parseInt(computed.height))\n\t style.overflowY = 'scroll';\n\t } else {\n\t style.overflow = 'hidden'; // for Chrome to not render a scrollbar; IE keeps overflowY = 'scroll'\n\t }\n\n\t div.textContent = element.value.substring(0, position);\n\t // the second special handling for input type=\"text\" vs textarea: spaces need to be replaced with non-breaking spaces - http://stackoverflow.com/a/13402035/1269037\n\t if (element.nodeName === 'INPUT')\n\t div.textContent = div.textContent.replace(/\\s/g, \"\\u00a0\");\n\n\t var span = document.createElement('span');\n\t // Wrapping must be replicated *exactly*, including when a long word gets\n\t // onto the next line, with whitespace at the end of the line before (#7).\n\t // The *only* reliable way to do that is to copy the *entire* rest of the\n\t // textarea's content into the <span> created at the caret position.\n\t // for inputs, just '.' would be enough, but why bother?\n\t span.textContent = element.value.substring(position) || '.'; // || because a completely empty faux span doesn't render at all\n\t div.appendChild(span);\n\n\t var coordinates = {\n\t top: span.offsetTop + parseInt(computed['borderTopWidth']),\n\t left: span.offsetLeft + parseInt(computed['borderLeftWidth'])\n\t };\n\n\t if (debug) {\n\t span.style.backgroundColor = '#aaa';\n\t } else {\n\t document.body.removeChild(div);\n\t }\n\n\t return coordinates;\n\t}\n\n\tif (typeof module != \"undefined\" && typeof module.exports != \"undefined\") {\n\t module.exports = getCaretCoordinates;\n\t} else {\n\t window.getCaretCoordinates = getCaretCoordinates;\n\t}\n\n\t}());\n\n/***/ })\n/******/ ])\n});\n;","'use strict'\n\nvar messageIds = 0\n\nfunction onMessage (self, e) {\n var message = e.data\n if (!Array.isArray(message) || message.length < 2) {\n // Ignore - this message is not for us.\n return\n }\n var messageId = message[0]\n var error = message[1]\n var result = message[2]\n\n var callback = self._callbacks[messageId]\n\n if (!callback) {\n // Ignore - user might have created multiple PromiseWorkers.\n // This message is not for us.\n return\n }\n\n delete self._callbacks[messageId]\n callback(error, result)\n}\n\nfunction PromiseWorker (worker) {\n var self = this\n self._worker = worker\n self._callbacks = {}\n\n worker.addEventListener('message', function (e) {\n onMessage(self, e)\n })\n}\n\nPromiseWorker.prototype.postMessage = function (userMessage) {\n var self = this\n var messageId = messageIds++\n\n var messageToSend = [messageId, userMessage]\n\n return new Promise(function (resolve, reject) {\n self._callbacks[messageId] = function (error, result) {\n if (error) {\n return reject(new Error(error.message))\n }\n resolve(result)\n }\n\n /* istanbul ignore if */\n if (typeof self._worker.controller !== 'undefined') {\n // service worker, use MessageChannels because e.source is broken in Chrome < 51:\n // https://bugs.chromium.org/p/chromium/issues/detail?id=543198\n var channel = new MessageChannel()\n channel.port1.onmessage = function (e) {\n onMessage(self, e)\n }\n self._worker.controller.postMessage(messageToSend, [channel.port2])\n } else {\n // web worker\n self._worker.postMessage(messageToSend)\n }\n })\n}\n\nmodule.exports = PromiseWorker\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + ({\"173\":\"lg-3\",\"558\":\"lg-8\",\"2018\":\"lg-2\",\"2453\":\"lg-11\",\"2478\":\"lg-6\",\"3321\":\"lg-12\",\"3388\":\"lg-1\",\"3637\":\"lg-5\",\"3730\":\"lg-9\",\"3963\":\"lg-0\",\"4441\":\"lg-10\",\"6440\":\"lg-4\",\"9868\":\"lg-7\"}[chunkId] || chunkId) + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","if (typeof document === \"undefined\") return;\nvar createStylesheet = (chunkId, fullhref, oldTag, resolve, reject) => {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = (event) => {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = (href, fullhref) => {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = (chunkId) => {\n\treturn new Promise((resolve, reject) => {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t2143: 0\n};\n\n__webpack_require__.f.miniCss = (chunkId, promises) => {\n\tvar cssChunks = {\"519\":1,\"9088\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(() => {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, (e) => {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","__webpack_require__.b = document.baseURI || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t2143: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(519|9088)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunksakurairo_scripts\"] = globalThis[\"webpackChunksakurairo_scripts\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [1920], () => (__webpack_require__(3197)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","leafPrototypes","getProto","inProgress","dataWebpackPrefix","defaults","src","srcset","selector","root","rootMargin","threshold","LazyLoad","constructor","elms","options","this","settings","document","querySelectorAll","init","obs","IntersectionObserver","load","self","entries","Array","prototype","forEach","call","entry","isIntersecting","unobserve","target","doLoad","image","observe","loadAndDestroy","destroy","element","getAttribute","tagName","toLowerCase","style","backgroundImage","disconnect","lazyload","images","_version_ctrl","_iro","cookie_version_control","UA","navigator","userAgent","uaMatches","from","matchAll","isSupported","checkList","_","name","version","parseFloat","Accept_Image","acceptList","Chrome","OPR","Firefox","Edg","Version","push","key","value","days","expires","Date","now","toUTCString","cookie","setCookie","reverse","join","getSupportedImageMimeList","txt","author_name","window","location","href","site_name","copytext","e","selection","getSelection","selectionText","toString","length","event","selectionTxt","preventDefault","htmlData","replace","textData","clipboardData","setData","setClipboardText","createButterbar","__","add_copyright","clipboardCopyright","body","removeEventListener","addEventListener","promisifyRequest","request","Promise","resolve","reject","oncomplete","onsuccess","result","onabort","onerror","error","createStore","dbName","storeName","indexedDB","open","onupgradeneeded","createObjectStore","dbp","txMode","callback","then","db","transaction","objectStore","store","bgn","blob_url","async","nextBG","changeCoverBG","getCoverPath","preBG","centerbg","querySelector","site_bg_as_cover","url","dispatchEvent","CustomEvent","detail","noop","parseCSSUrl","cssText","match","getCurrentBG","getAPIPath","useBGN","arguments","undefined","cover_api_url","URL","cover_api","isMobile","random_graphs_mts","searchParams","set","search","cache_cover","get","coverBG","ArrayBuffer","revokeObjectURL","createObjectURL","Blob","finally","resp","fetch","headers","Accept","status","json","message","console","warn","ok","buf","arrayBuffer","put","TypeError","delete","del","fetchThenCache","mediaQuery","matchMedia","inDarkMode","isInDarkMode","informDarkModeChange","nextValue","mediaQueryCallback","localStorage","getItem","matches","darkmode","turnOnDarkMode","turnOffDarkMode","saveUserSetting","ifDarkmodeShouldOn","removeItem","setItem","userTriggered","documentElement","backgroundColor","getElementsByClassName","classList","add","remove","dm_strategy","today","getHours","checkTime","checkDarkModeSetting","dark","removeListener","addListener","btnSerif","btnSansSerif","change_font_listener","btn","dataset","setButtonState","loadFontSetting","nowFont","font_name","initFontControl","hitokoto","yiyan","getElementById","api_group","yiyan_api","api_path","innerText","res","api","data","from_who","cache_is_mobile","initIsMobileCache","refreshIsMobileCache","ev","showcard","img","button","Error","typedInstance","disableTypedJsIfExist","initTypedJs","JSON","parse","innerHTML","ext_shared_lib","Typed","importExternal","default","bgvideo","videoList","movies","split","unplayedIndex","fill","map","index","aplayersToResume","_getNextRandomVideo","nextIndex","Math","floor","random","splice","getVideo","video_stu","fileName","bottom","setAttribute","origin","getFileNameMain","splay","video_btn","display","top","float_player_on","_ref","pauseAllPlayer","play","spause","pause","player","liveplay","oncanplay","livepause","coverVideo","contains","onended","loop","click","video_add","coverVideoIni","videos","canPlayType","video","autoplay","Hls","reason","hls","loadSource","attachMedia","on","Events","MANIFEST_PARSED","initHLS","canPlayHandler","lazyloadPatch","poster","web_audio","audio","AudioContext","webkitAudioContext","dom","i","o","t","sheet","sakurairoGlobal","opt","readSheetOption","selects","notes","ctx","listener","r","c","createOscillator","l","createGain","mainGain","connect","destination","gain","setValueAtTime","main_gain","currentTime","type","frequency","linearRampToValueAtTime","start","exponentialRampToValueAtTime","stop","d","round","h","pageX","p","pageY","createElement","textContent","zIndex","left","position","color","appendChild","animate","opacity","duration","setTimeout","select","clearButterbar","butterBar","keep","div","STORAGE_KEY","CDN_LIST","currentCDNIndex","config","num","parseInt","isNaN","getPreferCDNIndex","currentCDN","raw","resolvePath","relativePath","packageName","String","PKG_INFO","path","id","script","onload","append","defaultStr","_sakurairoi18n","_$","template","_len","replacements","_key","build","BUILD_INFO","registerOnGlobal","Object","defineProperty","writable","enumerable","_sakurairo","readyFunctionList","onlyOnceATime","func","isRunning","whileReady","fn","ready","readyState","slideToggle","el","mode","getComputedStyle","flag","transition","overflow","clearTimeout","tagTimer","tagHeight","clientHeight","height","buildAPI","apiPath","params","nonce","mainContainer","toggle","close","QueryStorage","renderSearchResult","keyword","link","fa","title","iconfont","comments","text","s","trim","a","indexOf","b","slice","toUpperCase","query","B","y","w","u","F","G","D","E","queries","array","filter","v","values","some","RegExp","test","Cx","div_href","search_close","Ty","ele","jsSearchCallback","overflowY","live_search","val","otxt","sessionStorage","catch","search_a","searchFlag","oninput","_mashiro_global_skin_secter","checkSkinSecter","pattern","headertop","changeSkin","tagId","bg_url","skin_bg0","skin_bg1","skin_bg2","skin_bg3","skin_bg4","bgButtonAddListener","next","pre","onclick","timeSeriesReload","archives","al_li","nextElementSibling","al_expand_collapse","cursor","getElementsByTagName","al_post_list","al_post_list_first","cb","child","parentNode","al_expand_collapse_click","MN","iconflat","stopPropagation","MNH","auto_height","windowheight","minHeight","PE","blank","paddingTop","live","CE","comments_fold","comments_main","h3","handler","sc","js_search","loading","collapseMenu","show_Nav","sln","addSkinMenuListener","cached","tagid","parentElement","closeSkinMenu","checkBgImgSetting","checkCoverBackground","land_at_home","visibility","imgError","cmt_showPopup","popup","onblur","btn_playControl","paused","coverVideoMute","btn_volumeControl","muted","killCoverVideo","mail_me","email_name","email_domain","headertop_down","coverOffset","getBoundingClientRect","pageYOffset","scrollTo","behavior","max","min","channel","alias","A","C","D50","D55","D65","D75","F2","F7","F11","whitepoint","rgb","_xyz","white","g","x","z","pow","xyz","_prepare2DContext","width","canvas","getContext","_prepare2DContextAsync","OffscreenCanvas","lab","_readImage","bind","prepareCtx","imgSource","naturalWidth","naturalHeight","drawImage","getImageData","readImageDownsampling","_readImageDownsampling","maxSample","scale","n_width","sqrt","n_height","worker","currentColor","updateThemeSkin","coverBGUrl","imgElement","crossOrigin","complete","awaitImage","postMessage","k","label","centroid","findIndex","_setColor","_updateThemeColor","getPropertyValue","hsla","hsl","hslaCSSText","color_css","meta","content","initEffect","effect","cfg","particlesJS","initParticle","delta","pjax","initPjax","secondary","show_hide","activate_widget","hash","substring","tabIndex","focus","_ref2","aplayerInit","all","PromiseWorker","Worker","_ref3","bgUrl","changskin","close_SkinMenu","siteHeader","skinMenu","mb_to_top","common","scrollTop","transform","smallScreenHandler","recalcuScrollbar","scrollHeight","innerHeight","largeScreenHandler","scrollHandler","XLS","preload","removed","removeScreen","preload_blur","backdropFilter","easing","onfinish","once","preload_screen","POWERMODE","post_list_show_animation","log","about_us","load_post_timer","load_post","now_href","pagination_a","DOM","DOMParser","parseFromString","paga","paga_innerText","nextHref","main","dpga","addps","code_highlight_style","tempScrollTop","articles","io","article","willChange","XLS_Listener","intersectionRatio","_page_next","href_page_next","load_key","load_time","PRISM_VERSION","attributes","gen_top_bar","code_a","children","lang","matchResult","className","hljs_click_callback","cloneElement","cloneNode","hljs_process","code","hljs","importHighlightjs","highlightElement","initLineNumbersOnLoad","PrismBaseUrl","code_highlight_prism","autoload_path","currentPrismThemeCSS","themeCSS","light","theme","theme_name","loadPrismCSS","darkmodeOn","nextCSSHref","nextCSSElement","loadCSS","prism_darkmode_callback","deattachPrismCallback","importPrismJS","Prism","plugins","autoloader","languages_path","code_highlight","loadLineNumber","loadMatchBraces","loadCommandLine","line_number_all","prompt","host","user","firstChild","fileHighlight","highlight","prism_process","j","pre_a","insertAdjacentHTML","ClipboardJS","exports","before","media","ref","doc","ss","refs","childNodes","sheets","styleSheets","attributeName","hasOwnProperty","rel","insertBefore","nextSibling","onloadcssdefined","resolvedHref","loadCB","factory","modules","installedModules","moduleId","module","loaded","m","innerWidth","context","particles","particlePointer","rendering","getRandom","getColor","colorful","createParticle","alpha","velocity","caret","bcr","activeElement","offset","selectionEnd","rangeCount","range","getRangeAt","startNode","startContainer","nodeType","TEXT_NODE","getCaret","numParticles","shake","intensity","marginLeft","marginTop","requestAnimationFrame","clearRect","rendered","rect","particle","globalAlpha","fillStyle","fillRect","properties","isFirefox","mozInnerScreenX","getCaretCoordinates","debug","removeChild","computed","currentStyle","whiteSpace","nodeName","wordWrap","prop","span","coordinates","offsetTop","offsetLeft","messageIds","onMessage","isArray","messageId","_callbacks","_worker","userMessage","messageToSend","controller","MessageChannel","port1","onmessage","port2","__webpack_module_cache__","__webpack_require__","cachedModule","__webpack_modules__","O","chunkIds","priority","notFulfilled","Infinity","fulfilled","keys","every","n","getter","__esModule","getPrototypeOf","obj","ns","create","def","current","getOwnPropertyNames","definition","f","chunkId","reduce","promises","miniCssF","globalThis","Function","done","needAttach","scripts","charset","timeout","nc","onScriptComplete","prev","doneFns","head","Symbol","toStringTag","scriptUrl","importScripts","currentScript","loadStylesheet","fullhref","existingLinkTags","dataHref","tag","existingStyleTags","findStylesheet","oldTag","linkTag","errorType","realHref","err","createStylesheet","installedCssChunks","miniCss","baseURI","installedChunks","installedChunkData","promise","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}
|