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vD,IAGI5S,EAAUm8B,GAHTlB,EAAU6D,EAAaC,GAAWnsB,EAGhB/N,EAAI,EAC3B,GAAGo2B,EAASnU,MAAM3mB,GAAgC,IAAxBq+B,EAAgBr+B,KAAa,CACtD,IAAIH,KAAY8+B,EACZjE,EAAoBpc,EAAEqgB,EAAa9+B,KACrC66B,EAAoBv6B,EAAEN,GAAY8+B,EAAY9+B,IAGhD,GAAG++B,EAAS,IAAI7zB,EAAS6zB,EAAQlE,EAClC,CAEA,IADGgE,GAA4BA,EAA2BjsB,GACrD/N,EAAIo2B,EAASn2B,OAAQD,IACzBs3B,EAAUlB,EAASp2B,GAChBg2B,EAAoBpc,EAAE+f,EAAiBrC,IAAYqC,EAAgBrC,IACrEqC,EAAgBrC,GAAS,KAE1BqC,EAAgBrC,GAAW,EAE5B,OAAOtB,EAAoBG,EAAE9vB,EAAO,EAGjC8zB,EAAqBzC,WAA0C,8BAAIA,WAA0C,+BAAK,GACtHyC,EAAmB54B,QAAQw4B,EAAqBxF,KAAK,KAAM,IAC3D4F,EAAmBv2B,KAAOm2B,EAAqBxF,KAAK,KAAM4F,EAAmBv2B,KAAK2wB,KAAK4F,QClFvF,IAAIC,EAAsBpE,EAAoBG,OAAEjmB,EAAW,CAAC,OAAO,IAAO8lB,EAAoB,QAC9FoE,EAAsBpE,EAAoBG,EAAEiE","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/activate-power-mode@git+ssh+++git@github.com+Fuukei+activate-power-mode.git\u0000#af3f686f10267f8ec_xa76km7eox4vi7payqxroumraa/node_modules/activate-power-mode/dist/activate-power-mode.js","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/post_list.ts","webpack://sakurairo-scripts/./src/app/animations/show_up.ts","webpack://sakurairo-scripts/./src/app/showcard.ts","webpack://sakurairo-scripts/./node_modules/.pnpm/@kotorik+promise-worker@0.1.0/node_modules/@kotorik/promise-worker/dist/index.mjs","webpack://sakurairo-scripts/./node_modules/.pnpm/color-space@2.0.1/node_modules/color-space/hsl.js","webpack://sakurairo-scripts/./src/app/theme-color/index.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/./node_modules/.pnpm/lazyload@https+++codeload.github.com+KotoriK+lazyload+tar.gz+82d55720d3076d66f0efa3ee44505a00_zlmltryyoiytzoax633icq5k7m/node_modules/lazyload/src/lazyload.ts","webpack://sakurairo-scripts/./src/common/lazyload.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/./src/app/effect.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/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/@kotorik+palette@3.0.4/node_modules/@kotorik/palette/dist/index.js","webpack://sakurairo-scripts/./node_modules/.pnpm/color-space@2.0.1/node_modules/color-space/lab.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/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};","(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;","/**\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","/**\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(navigator.userAgent.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 `ref(APA): ${_iro.author_name}.${_iro.site_name}.${_iro.site_url}. Retrieved ${new Date().toLocaleDateString()}.`,\n];\nfunction setClipboardText(event, selectionTxt) {\n event.preventDefault();\n const htmlData = selectionTxt.replace(/\\r\\n/g, \"<br>\") + \"<br><br>\" + txt.join('<br>'), textData = selectionTxt.toString().replace(/\\r\\n/g, \"\\n\") + \"\\n\\n\" + txt.join('\\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 }\n createButterbar(__(\"复制成功!\"), 1000);\n }\n}\n/**\n * 添加复制时的版权提示\n */\nexport default function add_copyright() {\n if (_iro.clipboardRef) {\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","import { onlyOnceATime } from \"../common/util\";\nimport lazyload from \"../common/lazyload\";\nimport { __ } from '../common/sakurairo_global';\n// @ts-ignore\nimport { code_highlight_style } from '../common/code-highlight';\nimport { getForeground, getHighlight, getThemeColorFromImageElement } from \"./theme-color\";\nimport applyShowUpAnimation from \"./animations/show_up\";\nconst hslaCSSText = ([h, s, l, a]) => {\n const hsl = `${h}deg,${s}%,${l}%`;\n return a && a !== 1 ? `hsla(${hsl},${a})` : `hsl(${hsl})`;\n};\nlet load_post_timer;\nconst load_post = onlyOnceATime(async 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\"))\n return;\n pagination_a.classList.add(\"loading\");\n pagination_a.innerText = \"\";\n // $('#pagination a').addClass(\"loading\").text(\"\");\n const resp = await fetch(pagination_a.getAttribute(\"href\") + \"#main\");\n const text = await resp.text();\n //在进行DOM操作前检查页面是否已经变化,防止错误加载到其他页面上\n if (now_href != document.location.href)\n return; /**如果页面状态发生了变化,那么也应该不用理加载提示符 */\n const parser = new DOMParser(), DOM = parser.parseFromString(text, \"text/html\"), result = DOM.querySelectorAll(\"#main .post, #main .shuoshuo-item\"), paga = DOM.querySelector(\"#pagination a\"), paga_innerText = paga && paga.innerText, nextHref = paga && paga.getAttribute(\"href\"), 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\"), 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 }\n else {\n document.getElementById(\"pagination\").innerHTML = \"<span>\" + __(\"很高兴你翻到这里,但是真的没有了...\") + \"</span>\";\n // $(\"#pagination\").html(\"<span>很高兴你翻到这里,但是真的没有了...</span>\");\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 applyShowUpAnimation(document.querySelectorAll('article.post-list-thumb,article.shuoshuo-item'), target => {\n const thumbImage = target.querySelector('.post-thumb img');\n if (thumbImage) {\n let finalImageElement = thumbImage;\n if (thumbImage.classList.contains('lazyload')) {\n finalImageElement = document.createElement('img');\n finalImageElement.src = thumbImage.getAttribute('data-src');\n finalImageElement.crossOrigin = \"anonymous\";\n }\n getThemeColorFromImageElement(finalImageElement)\n .then(rgba => {\n if (!rgba)\n return;\n const style = target.style;\n style.setProperty('--article-theme', `rgba(${rgba[0]},${rgba[1]},${rgba[2]},${rgba[3] / 255})`);\n style.setProperty('--article-theme-highlight', hslaCSSText(getHighlight(rgba)));\n style.setProperty('--article-theme-foreground', hslaCSSText(getForeground(rgba)));\n });\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)\n 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\"), 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, parseInt(load_time, 10) * 1000);\n }\n }\n }\n });\n intersectionObserver.observe(document.querySelector('.footer-device'));\n document.body.removeEventListener('click', XLS_Listener);\n document.body.addEventListener(\"click\", XLS_Listener);\n}\n","export default function applyShowUpAnimation(elements, callback) {\n if (!elements)\n return;\n const io = new IntersectionObserver((entries) => {\n for (const entry of entries) {\n if (entry.isIntersecting) {\n entry.target.classList.add(\"post-list-show\");\n }\n else {\n continue;\n }\n const target = entry.target;\n io.unobserve(target);\n callback?.(target);\n }\n }, {\n threshold: [0.42]\n });\n for (const article of elements) {\n io.observe(article);\n }\n}\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","let lastMsgId = 0;\nexport default class PromiseWorker {\n w;\n cb = {};\n [Symbol.dispose];\n constructor(worker) {\n this.w = worker;\n const callback = (e) => {\n const payload = e.data;\n const messageId = payload[0];\n const callback = this.cb[messageId];\n if (!callback)\n return;\n delete this.cb[messageId];\n callback(payload[1], payload[2]);\n };\n worker.addEventListener('message', callback);\n this.postMessage = (message, ...extraArgs) => {\n const messageId = lastMsgId++;\n const messageToSend = [messageId, message];\n return new Promise((resolve, reject) => {\n this.cb[messageId] = (error, result) => {\n if (error) {\n return reject(new Error(error.message));\n }\n resolve(result);\n };\n this.w.postMessage(messageToSend, ...extraArgs);\n });\n };\n this[Symbol.dispose] = () => {\n worker.removeEventListener('message', callback);\n };\n }\n postMessage;\n}\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","import PromiseWorker from '@kotorik/promise-worker';\nimport { isInDarkMode } from '../darkmode';\n//@ts-ignore\nimport 'color-space/hsl';\n//@ts-ignore\nimport rgb from 'color-space/rgb';\nimport { awaitImage, readImageDownsampling } from '@kotorik/palette';\nconst originalThemeSkinMatcing = getComputedStyle(document.documentElement).getPropertyValue('--theme-skin-matching');\nconst proc = (async () => {\n try {\n const worker = new PromiseWorker(new Worker(new URL('./worker.ts', import.meta.url)));\n return worker.postMessage;\n }\n catch (error) {\n console.warn('主题色计算已回退到主线程进行,性能可能会有轻微影响');\n const module = import('./calc');\n return async (data, options) => {\n const { default: calc } = await module;\n return calc(data);\n };\n }\n})();\nlet currentColor = [0, 0, 0, 0];\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 getThemeColorFromImageElement(imgElement) {\n try {\n await awaitImage(imgElement);\n const imageData = readImageDownsampling(imgElement, 10000);\n const result = await (await proc)(imageData.data, { transfer: [imageData.data.buffer] });\n return result;\n }\n catch (e) {\n console.error(e);\n return null;\n }\n}\nfunction _updateThemeColorMeta(color_css) {\n const meta = document.querySelector('meta[name=theme-color]');\n meta && (meta.content = color_css);\n}\nexport async function updateThemeSkin(coverBGUrl) {\n const imgElement = document.createElement('img');\n imgElement.src = coverBGUrl;\n imgElement.crossOrigin = \"anonymous\";\n const rgba = await getThemeColorFromImageElement(imgElement);\n if (rgba) {\n currentColor = rgba;\n _setColor();\n }\n else {\n _updateThemeColorMeta(originalThemeSkinMatcing); //回滚\n }\n}\nfunction _setColor(darkmode) {\n let hsla = rgb.hsl(currentColor);\n const darkmodeColor = [...hsla];\n darkmodeColor[2] *= 0.5;\n if (typeof darkmode == 'undefined' ? isInDarkMode() : darkmode) {\n hsla = darkmodeColor;\n }\n _updateThemeColorMeta(hslaCSSText(hsla));\n if (_iro.extract_theme_skin) {\n document.documentElement.style.setProperty('--theme-skin-matching', hslaCSSText(hsla));\n document.documentElement.style.setProperty('--theme-skin-dark', hslaCSSText(darkmodeColor));\n }\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}\nexport function initThemeColor() {\n document.addEventListener('coverBG_change', (({ detail: coverBGUrl }) => updateThemeSkin(coverBGUrl)));\n document.addEventListener('darkmode', (({ detail: next }) => _setColor(next)));\n}\nexport function getForeground(rgba) {\n const hsla = rgb.hsl(rgba);\n if (hsla[2] > 40) {\n return [0, 0, 0, 1];\n }\n return [0, 100, 100, 1];\n}\nexport function getHighlight(rgba) {\n const hsla = rgb.hsl(rgba);\n hsla[2] = Math.min(100, hsla[2] * 1.1);\n return hsla;\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 disableTypedJsIfExist(); // Fix mirai-mamori/Sakurairo #810\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 { getBaseName } 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\", getBaseName(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 const o = 1;\n const t = getSheet();\n const selects = document.querySelectorAll(\".site-title, #moblieGoTop, .site-branding, .searchbox, .changeSkin-gear, .menu-list li\");\n const notes = \"♪♩♫♬♭€§¶♯\";\n const gainValueMax = sakurairoGlobal.opt.web_audio?.main_gain || 1;\n const ctx = new AudioContext;\n const l = ctx.createGain();\n const c = ctx.createOscillator();\n l.connect(ctx.destination);\n c.connect(l);\n c.type = \"sine\";\n c.start(ctx.currentTime);\n let _t;\n function suspendContextWhenIdle() {\n clearTimeout(_t);\n _t = setTimeout(() => {\n ctx.suspend();\n _t = undefined;\n }, 1000);\n }\n let lastTarget = null;\n const listener = (e) => {\n if (e.currentTarget === lastTarget)\n return;\n ctx.resume();\n lastTarget = e.currentTarget;\n const d = Math.round(notes.length * Math.random());\n const h = e.pageX;\n const p = e.pageY - 5;\n const 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 dom.style.pointerEvents = \"none\";\n document.body.appendChild(dom);\n dom.animate([\n { top: p + \"px\" },\n { opacity: 0 }\n ], {\n duration: 500\n });\n const r = t[i] || t[i = 0];\n i += o;\n l.gain.cancelScheduledValues(ctx.currentTime);\n c.frequency.setValueAtTime(r, ctx.currentTime);\n l.gain.exponentialRampToValueAtTime(gainValueMax, ctx.currentTime + .01);\n l.gain.exponentialRampToValueAtTime(.001, ctx.currentTime + 2);\n l.gain.setValueAtTime(0, ctx.currentTime + 2.1);\n setTimeout(() => {\n dom.remove();\n if (lastTarget === e.currentTarget)\n lastTarget = null;\n suspendContextWhenIdle();\n }, 500);\n };\n selects.forEach(s => s.addEventListener('pointerenter', listener));\n }\n}\nfunction getSheet() {\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 else {\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 //天空之城\n return \"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(\" \");\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 * 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.opts = { ...defaults, ...options };\n this.elms = elms || document.querySelectorAll(this.opts.selector);\n this.init();\n }\n elms;\n obs = null;\n opts;\n init() {\n /* Without observers load everything and bail out early. */\n if (!IntersectionObserver) {\n this.load();\n return;\n }\n this.obs = new IntersectionObserver((entries) => {\n for (const entry of entries) {\n if (entry.isIntersecting) {\n this.obs.unobserve(entry.target);\n this.doLoad(entry.target);\n }\n }\n }, {\n root: this.opts.root,\n rootMargin: this.opts.rootMargin,\n threshold: [this.opts.threshold]\n });\n this.elms.forEach((image) => {\n this.obs.observe(image);\n });\n }\n load() {\n if (!this.opts) {\n return;\n }\n this.elms.forEach(this.doLoad);\n }\n doLoad = (element) => {\n const src = element.getAttribute(this.opts.src);\n const srcset = element.getAttribute(this.opts.srcset);\n const tagName = element.tagName.toLowerCase();\n if (src) {\n if (element.src === src || element.style.backgroundImage.includes(src)) {\n return;\n }\n if (tagName === 'video' || tagName === 'img') {\n element.src = src;\n }\n else {\n element.style.backgroundImage = \"url('\" + src + \"')\";\n }\n }\n if (tagName === 'img' && srcset) {\n element.srcset = srcset;\n }\n };\n /**\n * Destroy Lazyload Instance\n * @returns\n */\n destroy() {\n if (!this.opts) {\n return;\n }\n this.obs.disconnect();\n this.opts = null;\n }\n}\nexport const lazyload = (images, options) => new LazyLoad(images, options);\n","import Lazyload from 'lazyload';\nlet instance;\nexport default function lazyload() {\n if (instance) {\n instance.destroy();\n }\n instance = new Lazyload();\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包版本,默认从package.json中获取依赖版本(注意package_info.js中有限定哪些包的信息会被带到运行时),若无相关信息则为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 : ''}${path}`;\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 getBaseName = (fileName) => fileName.replace(/\\.\\w+$/, '');\n// TODO: 使用现代CSS替代实现\nexport function slideToggle(el, duration = 1000, mode = '') {\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}\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 \"../common/lazyload\"\nimport { slideToggle } from \"../common/util\";\nimport { changeCoverBG, getCoverPath, getCurrentBG, nextBG, preBG } from \"./coverBackground\";\nimport { isMobile } from \"./mobile\";\nimport { open, close } from './mobile_nav'\n\nvar _mashiro_global_skin_secter = true\n\nexport function checkSkinSecter() {\n if (_mashiro_global_skin_secter === false) {\n const pattern = document.querySelector(\".pattern-center\"),\n headertop = document.querySelector(\".headertop-bar\");\n if (pattern) {\n pattern.classList.remove(\"pattern-center\");\n pattern.classList.add(\"pattern-center-sakura\");\n }\n if (headertop) {\n headertop.classList.remove(\"headertop-bar\");\n headertop.classList.add(\"headertop-bar-sakura\");\n }\n } else {\n const pattern = document.querySelector(\".pattern-center-sakura\"),\n headertop = document.querySelector(\".headertop-bar-sakura\");\n if (pattern) {\n pattern.classList.remove(\"pattern-center-sakura\");\n pattern.classList.add(\"pattern-center\");\n }\n if (headertop) {\n headertop.classList.remove(\"headertop-bar-sakura\");\n headertop.classList.add(\"headertop-bar\");\n }\n }\n}\n/**\n * 设置前台背景\n * @param {string} tagId 前台背景ID\n * @returns \n */\nexport async function changeSkin(tagId) {\n //@sideeffect\n _mashiro_global_skin_secter = tagId == \"white-bg\" || tagId == \"dark-bg\";\n checkSkinSecter();\n let bg_url;\n switch (tagId) {\n case \"white-bg\":\n if (_iro.site_bg_as_cover) {\n changeCoverBG(await getCoverPath())//为触发封面背景相关事件 调用函数而不是走下方流程\n return\n } else {\n bg_url = _iro.skin_bg0;\n }\n break;\n case \"diy1-bg\":\n bg_url = _iro.skin_bg1;\n break;\n case \"diy2-bg\":\n bg_url = _iro.skin_bg2;\n break;\n case \"diy3-bg\":\n bg_url = _iro.skin_bg3;\n break;\n case \"diy4-bg\":\n bg_url = _iro.skin_bg4;\n break;\n }\n document.body.style.backgroundImage = bg_url ? `url(${bg_url})` : '';\n}\n\nexport function bgButtonAddListener() {\n const next = document.getElementById(\"bg-next\"),\n pre = document.getElementById(\"bg-pre\");\n if (next) { next.onclick = nextBG }\n if (pre) { pre.onclick = preBG }\n}\n\nexport function timeSeriesReload(flag) {\n const archives = document.getElementById('archives');\n if (!archives) return;\n const al_li = archives.getElementsByClassName('al_mon');\n\n if (flag) {\n archives.addEventListener(\"click\", (e) => {\n if (e.target.classList.contains(\"al_mon\")) {\n e.preventDefault();\n slideToggle(e.target.nextElementSibling, 500);\n }\n })\n lazyload();\n } else {\n let al_expand_collapse = document.getElementById('al_expand_collapse');\n al_expand_collapse.style.cursor = \"s-resize\";\n for (let i = 0; i < al_li.length; i++) {\n let a = al_li[i],\n num = a.nextElementSibling.getElementsByTagName('li').length;\n a.style.cursor = \"s-resize\";\n a.querySelector('#post-num').textContent = num;\n }\n const al_post_list = archives.getElementsByClassName(\"al_post_list\")\n const al_post_list_first = al_post_list[0];\n for (const child of al_post_list) {\n slideToggle(child, 500, 'hide')\n }\n slideToggle(al_post_list_first, 500, 'show');\n\n archives.addEventListener(\"click\", (e) => {\n if (e.target.classList.contains(\"al_mon\")) {\n slideToggle(e.target.nextElementSibling, 500);\n e.preventDefault();\n }\n })\n if (!isMobile()) {\n for (let i = 0; i < al_post_list.length; i++) {\n let el = al_post_list[i];\n el.parentNode.addEventListener('mouseover', () => {\n slideToggle(el, 500, 'show');\n return false;\n })\n }\n if (false) {\n for (let i = 0; i < al_post_list.length; i++) {\n let el = al_post_list[i];\n el.parentNode.addEventListener('mouseover', function () {\n slideToggle(el, 500, 'hide');\n return false;\n })\n }\n }\n }\n let expanded = false;\n al_expand_collapse.addEventListener('click', () => {\n for (const el of al_post_list) {\n slideToggle(el, 500, expanded ? 'hide' : 'show');\n }\n expanded = !expanded;\n });\n }\n}\n//#region Siren\nimport { liveplay, livepause, } from './video'\nexport function MN() {\n const iconflat = document.querySelector(\".iconflat\");\n iconflat && iconflat.addEventListener(\"click\", (e) => {\n e.stopPropagation()\n if (document.body.classList.contains(\"navOpen\")) {\n close()\n } else {\n open()\n }\n });\n}\n\nexport function MNH() {\n if (document.body.classList.contains(\"navOpen\")) {\n close()\n }\n}\n/**\n * @has-dom-modify\n */\nexport function auto_height() {\n if (_iro.windowheight == 'auto') {\n if (document.querySelector(\"h1.main-title\")) {\n //let _height = document.documentElement.clientHeight + \"px\";\n const centerbg = document.getElementById(\"centerbg\")\n const bgvideo = document.getElementById(\"bgvideo\")\n if (centerbg) centerbg.style.height = \"100vh\";\n if (bgvideo) bgvideo.style.minHeight = \"100vh\";\n }\n } else {\n const headertop = document.querySelector(\".headertop\")\n headertop && headertop.classList.add(\"headertop-bar\");\n }\n}\n/**\n * @has-dom-modify\n */\nexport function PE() {\n const headertop = document.querySelector(\".headertop\")\n if (headertop) {\n let blank = document.querySelector(\".blank\");\n if (document.querySelector(\".main-title\")) {\n try {\n blank.style.paddingTop = \"0px\";\n } catch (e) { }\n headertop.style.height = \"auto\";\n headertop.style.display = \"\";\n if (_iro.movies.live) liveplay();\n } else {\n try {\n blank.style.paddingTop = \"75px\";\n } catch (e) { }\n headertop.style.height = \"0px\";\n headertop.style.display = \"none\";\n livepause();\n }\n }\n}\nimport { jsSearchCallback } from './search'\nimport { turnOnDarkMode, turnOffDarkMode } from './darkmode';\n/**\n * @has-dom-modify\n */\nexport function CE() {\n let comments_fold = document.querySelector(\".comments-fold\");\n let comments_main = document.querySelector(\".comments-main\");\n if (comments_fold != null) {\n comments_fold.style.display = \"block\";\n comments_main.style.display = \"none\";\n comments_fold.addEventListener(\"click\", () => {\n slideToggle(comments_main, 500, 'show');\n comments_fold.style.display = \"none\";\n });\n }\n let archives = document.getElementsByClassName(\"archives\");\n if (archives.length > 0) {\n for (let i = 1; i < archives.length; i++) {\n archives[i].style.display = \"none\";\n }\n archives[0].style.display = \"\";\n let h3 = document.getElementById(\"archives-temp\").getElementsByTagName(\"h3\");\n const handler = (e) => {\n e.preventDefault();\n e.stopPropagation();\n slideToggle(e.target.nextElementSibling, 300);\n }\n for (let i = 0; i < h3.length; i++) {\n h3[i].addEventListener(\"click\", handler)\n }\n }\n // $('.comments-hidden').show();\n // $('.comments-main').hide();\n // $('.comments-hidden').click(function () {\n // $('.comments-main').slideDown(500);\n // $('.comments-hidden').hide();\n // });\n // $('.archives').hide();\n // $('.archives:first').show();\n // $('#archives-temp h3').click(function () {\n // $(this).next().slideToggle('fast');\n // return false;\n // });\n /*if (_iro.baguetteBoxON) {\n baguetteBox.run('.entry-content', {\n captions: function (element) {\n return element.getElementsByTagName('img')[0].alt;\n },\n ignoreClass: 'fancybox',\n });\n }*/\n\n for (const ele of document.getElementsByClassName('js-toggle-search')) {\n ele.addEventListener('click', jsSearchCallback);\n }\n\n const sc = document.querySelector(\".search_close\");\n sc && sc.addEventListener(\"click\", () => {\n let js_search = document.getElementsByClassName(\"js-search\")[0];\n if (js_search.classList.contains(\"is-visible\")) {\n document.getElementsByClassName(\"js-toggle-search\")[0].classList.toggle(\"is-active\");\n js_search.classList.toggle(\"is-visible\");\n document.documentElement.style.overflowY = \"unset\";\n }\n });\n try {\n const loading = document.getElementById(\"loading\");\n loading.addEventListener(\"click\", () => {\n loading.classList.add(\"hide\");\n loading.classList.remove(\"show\");\n });\n } catch (e) { }\n}\nexport function collapseMenu() {\n const show_Nav = document.getElementById(\"show-nav\");\n show_Nav && show_Nav.addEventListener(\"click\", () => {\n const sln = document.querySelector(\".site-top .lower nav\");\n if (show_Nav.classList.contains(\"showNav\")) {\n show_Nav.classList.remove(\"showNav\");\n show_Nav.classList.add(\"hideNav\");\n sln && sln.classList.add(\"navbar\");\n } else {\n show_Nav.classList.remove(\"hideNav\");\n show_Nav.classList.add(\"showNav\");\n sln && sln.classList.remove(\"navbar\");\n }\n });\n}\n//#endregion Siren\nexport function addSkinMenuListener() {\n const cached = document.querySelectorAll(\".menu-list li\");\n const handler = (e) => {\n const tagid = e.target.id || e.target.parentElement.id;\n if (tagid == \"dark-bg\") {\n turnOnDarkMode(true)\n } else {\n turnOffDarkMode(true)\n changeSkin(tagid)\n localStorage.setItem(\"bgImgSetting\", tagid)\n }\n closeSkinMenu();\n }\n for (const e of cached) {\n e.addEventListener(\"click\", handler);\n }\n}\n/**\n * 根据设置初始化前台背景。启用前台背景与站点封面背景一体化以后封面背景在此设置\n * @returns 一个Promise。Promise resolved 时封面背景应当已经加载完毕\n */\nexport function checkBgImgSetting() {\n return changeSkin(localStorage.getItem(\"bgImgSetting\") || 'white-bg');\n}\nexport async function checkCoverBackground() {\n if (_iro.site_bg_as_cover) {\n return //交给checkBgImgSetting处理\n }\n if (!_iro.land_at_home) return//进入非主页 \n if (getCurrentBG()) {//进入主页且已经加载了封面背景\n return\n }\n changeCoverBG(await getCoverPath())\n}\nexport function closeSkinMenu() {\n document.querySelector(\".skin-menu\").classList.remove(\"show\");\n setTimeout(() => {\n const changeSkin = document.querySelector(\".changeSkin-gear\")\n if (changeSkin != null) {\n changeSkin.style.visibility = \"visible\";\n }\n }, 300);\n}","function imgError(ele, type) {\n switch (type) {\n case 1:\n ele.src = 'https://s.nmxc.ltd/sakurairo_vision/@2.7/basic/friendlink.jpg';\n break;\n case 2:\n ele.src = 'https://weavatar.com/avatar/?s=80&d=mm&r=g';\n break;\n default:\n ele.src = 'https://s.nmxc.ltd/sakurairo_vision/@2.7/basic/image-404.png';\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.coverVideo = coverVideo\nwindow.coverVideoMute = coverVideoMute\nwindow.killCoverVideo = killCoverVideo\nwindow.mail_me = mail_me\nwindow.headertop_down = headertop_down","async function initParticle() {\n const cfg = document.getElementById('particles-js-cfg')\n if (cfg) {\n try {\n //particles.js的npm包内没有预置minify版本,与unpkg不兼容\n //@ts-ignore\n await import('particles.js')\n //@ts-ignore\n particlesJS('particles-js', JSON.parse(cfg.innerHTML))\n } catch (error) {\n console.error(error)\n }\n }\n}\nexport default function initEffect() {\n const { effect } = _iro\n if (effect) {\n if (effect.type == 'yuki') {\n import('./falling_effect/yuki/start')\n } else import('./falling_effect/sakura/start')\n }\n initParticle()\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 \"../common/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 (_iro.extract_theme_skin || 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 b = \"background:linear-gradient(to bottom right,#212349,#2f459d,#6486c7,#a1aec9);\";\n const c = b + 'color:#fff;font-size:16px;font-family:sans-serif;font-size: 12px;border-radius: 8px; padding: 4px; box-shadow:aliceblue 0 20px;border:#6486c7 solid 1px;font-weight:bold';\n console.log('%cNon, le grand amour ne suffit pas.\\n' +\n 'Seul un adieu fleurira.\\n' +\n 'C\\'est notre histoire de vie, douce et amère.\\n' +\n '⌜La vaguelette⌟ ', b + 'color:#0000;background:linear-gradient(to bottom right,#6486c7,#a1aec9) text;font-size:14px;font-family:sans-serif');\n console.log('%c Sakurairo %c https://github.com/mirai-mamori/Sakurairo', c, '');\n}\n","import { isInDarkMode } from '../app/darkmode'\nimport { loadCSS } from 'fg-loadcss'\nimport { importExternal, resolvePath } from '../common/npmLib';\nimport { __ } from './sakurairo_global';\n\nconst PRISM_VERSION = PKG_INFO['prismjs']\nconst attributes = {\n 'autocomplete': 'off',\n 'autocorrect': 'off',\n 'autocapitalize': 'off',\n 'spellcheck': 'false',\n 'contenteditable': 'false',\n 'design': 'by Mashiro'\n}\nfunction gen_top_bar(pre, code_a) {\n if (!pre.children[0]) return\n let lang = 'text'\n const className = pre.children[0].className\n const matchResult = className.match(/language-(\\w+)/i)\n if (matchResult) {\n lang = matchResult[1]\n }\n pre.classList.add(\"highlight-wrap\");\n for (const t in attributes) {\n pre.setAttribute(t, attributes[t]);\n }\n code_a.setAttribute('data-rel', lang.toUpperCase());\n}\nasync function importHighlightjs() {\n try {\n if (!window.hljs) {\n window.hljs = (await import('highlight.js')).default\n await import('highlightjs-line-numbers.js')\n }\n } catch (e) {\n console.warn(e)\n }\n}\nconst hljs_click_callback = (e) => {\n const element = e.target\n if (!element.classList.contains(\"highlight-wrap\")) return;\n if (element.classList.contains('code-block-fullscreen')) {\n element.remove()\n } else {\n const cloneElement = element.cloneNode(true)\n cloneElement.classList.toggle(\"code-block-fullscreen\")\n document.body.append(cloneElement)\n }\n document.documentElement.classList.toggle('code-block-fullscreen-html-scroll');\n}\nexport function deattachHljsCallback() {\n document.body.removeEventListener(\"click\", hljs_click_callback)\n}\nexport async function hljs_process(pre, code) {\n try {\n await importHighlightjs()\n for (let i = 0; i < code.length; i++) {\n if (!code[i].classList.contains(\"hljs\")) {\n hljs.highlightElement(code[i]);\n }\n }\n for (let i = 0; i < pre.length; i++) {\n if (!pre[i].classList.contains(\"highlight-wrap\")) {\n gen_top_bar(pre[i], code[i]);\n }\n }\n hljs.initLineNumbersOnLoad();\n document.body.addEventListener(\"click\", hljs_click_callback)\n } catch (e) {\n console.warn(e)\n }\n}\n//Prism\nconst PrismBaseUrl = _iro.code_highlight_prism?.autoload_path || resolvePath('', 'prismjs', PRISM_VERSION)\nlet currentPrismThemeCSS = undefined\nconst themeCSS = (() => {\n const { light, dark } = _iro.code_highlight_prism?.theme || {}\n const theme = {\n light: light || 'themes/prism.min.css',\n dark: dark || 'themes/prism-tomorrow.min.css',\n }\n for (const theme_name in theme) {\n theme[theme_name] = new URL(theme[theme_name], PrismBaseUrl).toString()\n }\n return theme\n})()\n\nfunction loadPrismCSS(darkmodeOn) {\n const nextCSSHref = darkmodeOn ? themeCSS.dark : themeCSS.light\n if (currentPrismThemeCSS) {\n if (currentPrismThemeCSS.href !== nextCSSHref) {\n const nextCSSElement = loadCSS(nextCSSHref)\n nextCSSElement.addEventListener('load', () => {\n currentPrismThemeCSS.remove()\n currentPrismThemeCSS = nextCSSElement\n })\n }\n } else {\n currentPrismThemeCSS = loadCSS(nextCSSHref)\n }\n}\n\nconst prism_darkmode_callback = (e) => {\n loadPrismCSS(e.detail)\n}\nexport const deattachPrismCallback = () => document.removeEventListener('darkmode', prism_darkmode_callback)\nasync function importPrismJS() {\n try {\n if (!window.Prism) {\n loadPrismCSS(isInDarkMode())\n document.addEventListener('darkmode', prism_darkmode_callback)\n //必备插件全家桶\n loadCSS(new URL('plugins/toolbar/prism-toolbar.min.css', PrismBaseUrl).toString())\n loadCSS(new URL('plugins/previewers/prism-previewers.min.css', PrismBaseUrl).toString())\n if (_iro.ext_shared_lib) {\n await Promise.all([importExternal('components/prism-core.min.js', 'prismjs', PRISM_VERSION),\n importExternal('plugins/autoloader/prism-autoloader.min.js', 'prismjs', PRISM_VERSION),\n importExternal('plugins/toolbar/prism-toolbar.min.js', 'prismjs', PRISM_VERSION),\n importExternal('plugins/previewers/prism-previewers.min.js', 'prismjs', PRISM_VERSION),\n importExternal('plugins/show-language/prism-show-language.min.js', 'prismjs', PRISM_VERSION)])\n } else await import('./prism_pack')\n Prism.plugins.autoloader.languages_path = new URL('components/', PrismBaseUrl).toString()\n }\n } catch (reason) {\n console.warn(reason)\n }\n}\nfunction loadPrismPluginLineNumbers() {\n loadCSS(new URL('plugins/line-numbers/prism-line-numbers.min.css', PrismBaseUrl).toString())\n if (_iro.ext_shared_lib) {\n return importExternal('plugins/line-numbers/prism-line-numbers.min.js', 'prismjs', PRISM_VERSION)\n } else {\n return import('prismjs/plugins/line-numbers/prism-line-numbers')\n }\n}\nfunction loadPrismMatchBraces() {\n loadCSS(new URL('plugins/match-braces/prism-match-braces.min.css', PrismBaseUrl).toString())\n if (_iro.ext_shared_lib) {\n return importExternal('plugins/match-braces/prism-match-braces.min.js', 'prismjs', PRISM_VERSION)\n } else {\n return import('prismjs/plugins/match-braces/prism-match-braces')\n }\n}\nfunction loadPrismCommandLine() {\n loadCSS(new URL('plugins/command-line/prism-command-line.css', PrismBaseUrl).toString())\n if (_iro.ext_shared_lib) {\n return importExternal('plugins/command-line/prism-command-line.min.js', 'prismjs', PRISM_VERSION)\n } else {\n return import('prismjs/plugins/command-line/prism-command-line')\n }\n}\n/**\n * \n * @param {NodeListOf<HTMLElement>} code document.querySelectorAll(\"pre code\")\n */\nexport async function prism_process(code) {\n try {\n let loadLineNumber = false\n let loadMatchBraces = false\n let loadCommandLine = false\n if (_iro.code_highlight_prism.line_number_all) {\n document.querySelector('.entry-content').classList.add('line-numbers')\n loadLineNumber = true\n }\n for (const ele of code) {\n if (ele.parentElement.classList.contains('line-numbers')) {\n loadLineNumber = true\n }\n if (ele.classList.contains('match-braces')) {\n loadMatchBraces = true\n }\n if (ele.dataset.prompt || ele.dataset.host || ele.dataset.user) {\n //cli\n loadCommandLine = true\n }\n }\n await Promise.all([\n importPrismJS(),\n loadLineNumber && loadPrismPluginLineNumbers(),\n loadMatchBraces && loadPrismMatchBraces(),\n loadCommandLine && loadPrismCommandLine()\n ])\n for (const ele of code) {\n if (!ele.firstChild?.classList?.contains('token')) {\n Prism.highlightElement(ele);\n }\n }\n Prism.plugins.fileHighlight && Prism.plugins.fileHighlight.highlight()\n } catch (error) {\n console.warn(error)\n }\n}\n\nexport async function code_highlight_style() {\n const pre = document.getElementsByTagName(\"pre\"),\n code = document.querySelectorAll(\"pre code\");\n if (!pre.length) {\n switch (_iro.code_highlight) {\n case 'hljs':\n deattachHljsCallback()\n return\n case 'prism':\n deattachPrismCallback()\n return\n default:\n }\n }\n switch (_iro.code_highlight) {\n case 'hljs':\n await hljs_process(pre, code)\n break\n case 'prism':\n await prism_process(code)\n break\n case 'custom': return\n default:\n console.warn(`_iro.code_highlight这咋填的是个${_iro.code_highlight}啊🤔`)\n }\n //copy_code_block\n if (code.length > 0) {\n for (let j = 0; j < code.length; j++) {\n const pre_a = code[j].parentElement.querySelectorAll(\"a\");\n for (const ele of pre_a) {\n if (ele.classList.contains(\"copy-code\")) {\n ele.remove(); //如果已经存在复制按钮,需将其移除后再重新添加\n }\n }\n code[j].setAttribute('id', 'code-block-' + j);\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>');\n }\n if (_iro.ext_shared_lib) {\n await importExternal('dist/clipboard.min.js', 'clipboard')\n new ClipboardJS('.copy-code')\n } else {\n const ClipboardJS = (await import('clipboard')).default\n new ClipboardJS('.copy-code');\n }\n }\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","import rgb from 'color-space/rgb.js';\nimport xyz from 'color-space/xyz.js';\nimport lab from 'color-space/lab.js';\n\nfunction _filled_array(fillWith, count) {\n const array = [];\n for (let i = 0; i < count; i++) {\n array.push(fillWith);\n }\n return array;\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 const _b = a[a_start++] - b[2];\n return r ** 2 + g ** 2 + _b ** 2;\n}\nfunction kmeans(data, k, maxAttempt, thresold = 2, clipAlpha = false) {\n const cluster_sum = [];\n const thresold_squared = thresold ** 2;\n let pixelCount = data.length / 4;\n let cluster_centers = [];\n let new_cluster_centers = [];\n let iteration = 0;\n const isDataTypedArray = data instanceof Uint8ClampedArray;\n const PIXEL_LEN = clipAlpha ? 3 : 4;\n if (clipAlpha) {\n let j = 0;\n const dataNoAlpha = isDataTypedArray ? new Uint8ClampedArray(pixelCount * 3) : [];\n for (let i = 0; i < data.length; ) {\n if (data[i + 3] == 0) {\n i += 4;\n continue;\n }\n dataNoAlpha[j++] = data[i++];\n dataNoAlpha[j++] = data[i++];\n dataNoAlpha[j++] = data[i++];\n i++;\n }\n data = dataNoAlpha.slice(0, j);\n pixelCount = j / 3;\n }\n for (let i = 0; i < k; i++) {\n const start = Math.floor(1 * (pixelCount - 1)) * PIXEL_LEN;\n cluster_centers.push(\n /* Array.from */\n data.slice(start, start + 3)\n );\n new_cluster_centers.push(isDataTypedArray ? new Uint8ClampedArray(3) : _filled_array(0, 3));\n cluster_sum.push(_filled_array(0, 4));\n }\n while (iteration < maxAttempt) {\n for (let i = 0; i < data.length; ) {\n let cluster_index = 0;\n let _min_distance = euclidean_distance_squared_index(data, i, cluster_centers[0]);\n for (let j = 1; j < k; j++) {\n const distance = euclidean_distance_squared_index(data, i, cluster_centers[j]);\n if (distance < _min_distance) {\n _min_distance = distance;\n cluster_index = j;\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]++;\n if (PIXEL_LEN === 4) i++;\n }\n let allStabled = true;\n for (let i = 0; i < k; i++) {\n const rgbc = cluster_sum[i];\n const count = rgbc[3];\n if (count == 0) {\n const start = Math.floor(Math.random() * (pixelCount - 1)) * PIXEL_LEN;\n new_cluster_centers[i] = /* Array.from */\n data.slice(start, start + 3);\n allStabled = false;\n } else {\n let new_center = new_cluster_centers[i];\n let diffSquared = 0;\n for (let j = 0; j < 3; j++) {\n new_center[j] = rgbc[j] / count;\n diffSquared += (new_center[j] - cluster_centers[i][j]) ** 2;\n }\n if (diffSquared > thresold_squared) {\n allStabled = false;\n }\n }\n }\n if (allStabled) {\n return {\n centroid: new_cluster_centers,\n iteration,\n fit: true,\n label: cluster_sum.map((v) => v[3]),\n size: pixelCount\n };\n }\n const medium = cluster_centers;\n cluster_centers = new_cluster_centers;\n new_cluster_centers = medium;\n iteration++;\n for (let i = 0; i < k; i++) {\n cluster_sum[i].fill(0);\n }\n }\n return {\n centroid: cluster_centers,\n iteration,\n fit: false,\n label: cluster_sum.map((v) => v[3]),\n size: pixelCount\n };\n}\n\n/**\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\nconst prime1 = 499;\nconst prime2 = 491;\nconst prime3 = 487;\nconst prime4 = 503;\n\nconst maxprime = Math.max(prime1, prime2, prime3, prime4);\nconst minpicturebytes = (3 * maxprime);\n\nconst defaults = {\n ncycles: 100,\n netsize: 256,\n samplefac: 10\n};\n\nconst assign = function (target) {\n for (let i = 1, l = arguments.length; i < l; i++) {\n const nextSource = arguments[i];\n if (nextSource != null) {\n for (const nextKey in nextSource) {\n if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {\n target[nextKey] = nextSource[nextKey];\n }\n }\n }\n }\n return target\n};\n\nclass NeuQuant {\n constructor (pixels, options) {\n assign(this, defaults, {pixels}, options);\n\n if (this.netsize < 4 || this.netsize > 256) {\n throw new Error('Color count must be between 4 and 256')\n }\n\n if (this.samplefac < 1 || this.samplefac > 30) {\n throw new Error('Sampling factor must be between 1 and 30')\n }\n\n this.maxnetpos = this.netsize - 1;\n\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\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\n this.alphabiasshift = 10;\n this.initalpha = (1 << this.alphabiasshift);\n\n this.radbiasshift = 8;\n this.radbias = (1 << this.radbiasshift);\n this.alpharadbshift = (this.alphabiasshift + this.radbiasshift);\n this.alpharadbias = (1 << this.alpharadbshift);\n\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\n for (let i = 0, l = this.netsize; i < l; i++) {\n let 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\n unbiasnet () {\n for (let 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\n 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\n alterneigh (radius, i, b, g, r) {\n const lo = Math.abs(i - radius);\n const hi = Math.min(i + radius, this.netsize);\n\n let j = i + 1;\n let k = i - 1;\n let m = 1;\n\n while ((j < hi) || (k > lo)) {\n const a = this.radpower[m++];\n\n if (j < hi) {\n const 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\n if (k > lo) {\n const 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\n contest (b, g, r) {\n let bestd = ~(1 << 31);\n let bestbiasd = bestd;\n let bestpos = -1;\n let bestbiaspos = bestpos;\n\n for (let i = 0, l = this.netsize; i < l; i++) {\n let n = this.network[i];\n\n let 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\n let biasdist = dist - ((this.bias[i]) >> (this.intbiasshift - this.netbiasshift));\n if (biasdist < bestbiasd) {\n bestbiasd = biasdist;\n bestbiaspos = i;\n }\n\n let betafreq = (this.freq[i] >> this.betashift);\n this.freq[i] -= betafreq;\n this.bias[i] += (betafreq << this.gammashift);\n }\n\n this.freq[bestpos] += this.beta;\n this.bias[bestpos] -= this.betagamma;\n\n return bestbiaspos\n }\n\n inxbuild () {\n let previouscol = 0;\n let startpos = 0;\n\n for (let i = 0, l = this.netsize; i < l; i++) {\n let p = this.network[i];\n let q = null;\n let smallpos = i;\n let smallval = p[1];\n\n for (let 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\n if (i !== smallpos) {\n [p[0], q[0]] = [q[0], p[0]];\n [p[1], q[1]] = [q[1], p[1]];\n [p[2], q[2]] = [q[2], p[2]];\n [p[3], q[3]] = [q[3], p[3]];\n }\n\n if (smallval !== previouscol) {\n this.netindex[previouscol] = (startpos + i) >> 1;\n for (let j = previouscol + 1; j < smallval; j++) {\n this.netindex[j] = i;\n }\n previouscol = smallval;\n startpos = i;\n }\n }\n\n this.netindex[previouscol] = (startpos + this.maxnetpos) >> 1;\n for (let i = previouscol + 1; i < 256; i++) {\n this.netindex[i] = this.maxnetpos;\n }\n }\n\n learn () {\n const lengthcount = this.pixels.length;\n const alphadec = 30 + ((this.samplefac - 1) / 3);\n const samplepixels = lengthcount / (3 * this.samplefac);\n\n let delta = samplepixels / this.ncycles | 0;\n let alpha = this.initalpha;\n let radius = this.initradius;\n\n let rad = radius >> this.radiusbiasshift;\n\n if (rad <= 1) {\n rad = 0;\n }\n\n for (let i = 0; i < rad; i++) {\n this.radpower[i] = alpha * (((rad * rad - i * i) * this.radbias) / (rad * rad));\n }\n\n let 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\n let pix = 0;\n\n for (let i = 0; i < samplepixels;) {\n let b = (this.pixels[pix] & 0xff) << this.netbiasshift;\n let g = (this.pixels[pix + 1] & 0xff) << this.netbiasshift;\n let r = (this.pixels[pix + 2] & 0xff) << this.netbiasshift;\n\n let 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\n pix += step;\n if (pix >= lengthcount) {\n pix -= lengthcount;\n }\n\n if (delta === 0) {\n delta = 1;\n }\n\n if (++i % delta === 0) {\n alpha -= alpha / alphadec;\n radius -= radius / this.radiusdec;\n rad = radius >> this.radiusbiasshift;\n\n if (rad <= 1) {\n rad = 0;\n }\n\n for (let k = 0; k < rad; k++) {\n this.radpower[k] = alpha * (((rad * rad - k * k) * this.radbias) / (rad * rad));\n }\n }\n }\n }\n\n buildColorMap () {\n this.learn();\n this.unbiasnet();\n this.inxbuild();\n }\n\n getColorMap () {\n const map = new Uint8Array(this.netsize * 3);\n const index = new Uint8Array(this.netsize);\n\n for (let i = 0, l = this.netsize; i < l; i++) {\n index[this.network[i][3]] = i;\n }\n\n for (let i = 0, j = 0, k = 0, l = this.netsize; i < l; i++) {\n k = index[i];\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\n return map\n }\n}\n\nfunction findClosest (palette, r, g, b) {\n let minpos = 0;\n let mind = 256 * 256 * 256;\n\n for (let i = 0, l = palette.length; i < l;) {\n const dr = r - palette[i++];\n const dg = g - palette[i++];\n const db = b - palette[i];\n const d = dr * dr + dg * dg + db * db;\n const pos = i / 3 | 0;\n\n if (d < mind) {\n mind = d;\n minpos = pos;\n }\n\n i++;\n }\n\n return minpos\n}\n\nfunction palette (pixels, options) {\n const nq = new NeuQuant(pixels, options);\n nq.buildColorMap();\n return nq.getColorMap()\n}\n\nfunction indexed (pixels, palette) {\n const indexed = new Uint8Array(pixels.length / 3);\n const memo = {};\n\n for (let i = 0, j = 0, l = pixels.length; i < l;) {\n const r = pixels[i++];\n const g = pixels[i++];\n const b = pixels[i++];\n const k = r << 16 | g << 8 | b;\n\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\n return indexed\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 for (let i = 0; i < len; ) {\n for (let j = 0; j < 3; j++) {\n rgb[rgb_i++] = data[i++];\n }\n i++;\n }\n return rgb;\n}\nfunction neuquant(img, k, samplefac = 1) {\n const img_rgb = rgba2Rgb(img);\n const palette$1 = palette(img_rgb, { netsize: k, samplefac });\n const indexed_pixel = indexed(img_rgb, palette$1);\n const pixel = [];\n const len = palette$1.length;\n for (let i = 0; i < len; ) {\n pixel.push([palette$1[i++], palette$1[i++], palette$1[i++], 255]);\n }\n return { centroid: pixel, label: count(k, indexed_pixel) };\n}\nfunction count(k, index) {\n const counts = new Array(k).fill(0);\n for (const i of index) {\n counts[i]++;\n }\n return counts;\n}\n\nfunction _prepare2DContext(width, height) {\n const canvas = document.createElement(\"canvas\");\n const ctx = canvas.getContext(\"2d\");\n canvas.height = height;\n canvas.width = width;\n return ctx;\n}\nfunction _prepare2DContextAsync(width, height) {\n const canvas = new OffscreenCanvas(width, height);\n const ctx = canvas.getContext(\"2d\");\n return ctx;\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}\nfunction _readImage(prepareCtx, imgSource) {\n const { naturalWidth, naturalHeight } = imgSource;\n const ctx = prepareCtx(naturalWidth, naturalHeight);\n ctx.drawImage(imgSource, 0, 0, naturalWidth, naturalHeight);\n return ctx.getImageData(0, 0, naturalWidth, naturalHeight);\n}\nconst readImage = _readImage.bind(void 0, _prepare2DContext);\nconst readImageOffscreen = _readImage.bind(void 0, _prepare2DContextAsync);\nfunction _readImageDownsampling(prepareCtx, imgSource, maxSample) {\n let { naturalWidth: width, naturalHeight: height } = imgSource;\n const scale = width * height / maxSample;\n if (scale > 1) {\n const scaleSqrt = Math.sqrt(scale);\n width = width / scaleSqrt | 0;\n height = height / scaleSqrt | 0;\n }\n const ctx = prepareCtx(width, height);\n ctx.drawImage(imgSource, 0, 0, width, height);\n return ctx.getImageData(0, 0, width, height);\n}\nconst readImageDownsampling = _readImageDownsampling.bind(void 0, _prepare2DContext);\nconst readImageDownsamplingOffscreen = _readImageDownsampling.bind(void 0, _prepare2DContextAsync);\n\nfunction convertToLab(source) {\n const array = [];\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 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\nfunction max_min_of_three([a, b, c]) {\n if (a > b) {\n if (b > c) {\n return [a, c];\n } else {\n if (a > c) {\n return [a, b];\n } else {\n return [c, b];\n }\n }\n } else {\n if (b > c) {\n if (c > a) {\n return [b, a];\n } else {\n return [b, c];\n }\n } else {\n return [c, a];\n }\n }\n}\n\nfunction normalizeRGBA(rgba) {\n return rgba.map((v) => v / 255);\n}\nfunction rgbaToHSLA(rgba) {\n let h, s;\n const [max, min] = max_min_of_three(rgba);\n const diff = max - min;\n const light_2x = max + min;\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 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 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 return [h, s, light_2x / 2, rgba[3]];\n}\nconst getVector4Comparer = (sort = [0, 1, 2, 3]) => (a, b) => {\n let result;\n for (const s of sort) {\n result = a[s] - b[s];\n if (result != 0) {\n return result;\n }\n }\n return result;\n};\nconst hslaCSSText = ([h, s, l, a]) => `hsla(${h}deg,${s * 100}%,${l * 100}%,${a})`;\nconst rgbaCSSText = (pixel) => `rgba(${pixel.map((v) => Math.floor(v)).join(\",\")})`;\n\nexport { awaitImage, convertToLab, getVector4Comparer, hslaCSSText, kmeans, labaToRGBA, neuquant, normalizeRGBA, readImage, readImageDownsampling, readImageDownsamplingOffscreen, readImageOffscreen, rgbaCSSText, rgbaToHSLA };\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","/**\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","// 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 \"\" + ({\"2065\":\"lg-2\",\"2236\":\"lg-12\",\"2661\":\"lg-6\",\"3042\":\"lg-9\",\"5459\":\"lg-0\",\"5470\":\"lg-5\",\"6458\":\"lg-1\",\"7435\":\"lg-8\",\"8268\":\"lg-7\",\"8279\":\"lg-4\",\"8599\":\"lg-11\",\"9256\":\"lg-3\",\"9438\":\"lg-10\"}[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 && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\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 || !/^http(s?):/.test(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\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\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;\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(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\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\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\t3524: 0\n};\n\n__webpack_require__.f.miniCss = (chunkId, promises) => {\n\tvar cssChunks = {\"2563\":1,\"9160\":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\n\n// no prefetching\n\n// no preloaded","__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\t3524: 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(9160 != 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, [8538], () => (__webpack_require__(5679)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","leafPrototypes","getProto","inProgress","dataWebpackPrefix","factory","modules","installedModules","moduleId","exports","module","id","loaded","call","m","c","p","canvas","document","createElement","width","window","innerWidth","height","innerHeight","style","cssText","addEventListener","body","appendChild","context","getContext","particles","particlePointer","rendering","getRandom","min","max","Math","random","getColor","el","POWERMODE","colorful","u","getComputedStyle","color","createParticle","x","y","alpha","velocity","caret","bcr","activeElement","tagName","getAttribute","offset","selectionEnd","getBoundingClientRect","left","top","selection","getSelection","rangeCount","range","getRangeAt","startNode","startContainer","nodeType","TEXT_NODE","parentNode","getCaret","numParticles","round","shake","intensity","marginLeft","marginTop","setTimeout","requestAnimationFrame","loop","clearRect","rendered","rect","i","length","particle","globalAlpha","fillStyle","fillRect","properties","isFirefox","mozInnerScreenX","getCaretCoordinates","element","position","options","debug","querySelector","removeChild","div","computed","currentStyle","whiteSpace","nodeName","wordWrap","visibility","forEach","prop","scrollHeight","parseInt","overflowY","overflow","textContent","value","substring","replace","span","coordinates","offsetTop","offsetLeft","backgroundColor","_version_ctrl","_iro","cookie_version_control","uaMatches","Array","from","navigator","userAgent","matchAll","isSupported","checkList","_","name","version","parseFloat","Accept_Image","acceptList","Chrome","OPR","Firefox","Edg","Version","push","key","days","expires","Date","now","toUTCString","cookie","setCookie","reverse","join","getSupportedImageMimeList","txt","author_name","site_name","site_url","toLocaleDateString","copytext","e","selectionText","toString","event","selectionTxt","preventDefault","htmlData","textData","clipboardData","setData","setClipboardText","createButterbar","__","add_copyright","clipboardRef","removeEventListener","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","site_bg_as_cover","url","backgroundImage","dispatchEvent","CustomEvent","detail","noop","parseCSSUrl","match","getCurrentBG","getAPIPath","useBGN","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","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","hslaCSSText","h","s","l","a","hsl","load_post_timer","load_post","onlyOnceATime","now_href","location","href","pagination_a","contains","text","DOM","DOMParser","parseFromString","querySelectorAll","paga","paga_innerText","nextHref","main","append","dpga","addps","lazyload","code_highlight_style","post_list_show_animation","undefined","setAttribute","tempScrollTop","scrollTop","pageYOffset","scrollTo","behavior","innerHTML","elements","io","IntersectionObserver","entries","entry","isIntersecting","target","unobserve","threshold","article","observe","applyShowUpAnimation","thumbImage","finalImageElement","src","crossOrigin","getThemeColorFromImageElement","rgba","setProperty","getHighlight","getForeground","XLS_Listener","parentElement","stopPropagation","clearTimeout","XLS","intersectionRatio","_page_next","href_page_next","load_key","load_time","title","log","showcard","img","button","Error","lastMsgId","PromiseWorker","w","cb","Symbol","dispose","constructor","worker","this","payload","messageId","postMessage","extraArgs","messageToSend","rgb","r","g","b","delta","originalThemeSkinMatcing","getPropertyValue","proc","Worker","default","calc","currentColor","imgElement","awaitImage","imageData","readImageDownsampling","transfer","buffer","_updateThemeColorMeta","color_css","meta","content","updateThemeSkin","coverBGUrl","_setColor","hsla","darkmodeColor","extract_theme_skin","initThemeColor","next","typedInstance","disableTypedJsIfExist","destroy","initTypedJs","JSON","parse","ext_shared_lib","Typed","importExternal","bgvideo","videoList","movies","split","unplayedIndex","fill","map","index","aplayersToResume","_getNextRandomVideo","nextIndex","floor","splice","getVideo","video_stu","fileName","bottom","origin","getBaseName","splay","video_btn","display","float_player_on","pauseAllPlayer","play","spause","pause","player","liveplay","oncanplay","livepause","coverVideo","onended","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","o","t","sheet","sakurairoGlobal","opt","getSheet","selects","notes","gainValueMax","main_gain","ctx","createGain","createOscillator","_t","connect","destination","type","start","currentTime","lastTarget","listener","currentTarget","resume","d","pageX","pageY","dom","zIndex","pointerEvents","animate","opacity","duration","gain","cancelScheduledValues","frequency","setValueAtTime","exponentialRampToValueAtTime","suspend","clearButterbar","butterBar","keep","defaults","srcset","selector","root","rootMargin","LazyLoad","elms","opts","init","obs","doLoad","image","load","toLowerCase","includes","disconnect","instance","Lazyload","STORAGE_KEY","CDN_LIST","currentCDNIndex","config","num","isNaN","getPreferCDNIndex","currentCDN","raw","resolvePath","relativePath","packageName","String","PKG_INFO","path","script","onload","defaultStr","_sakurairoi18n","_$","replacements","template","build","BUILD_INFO","registerOnGlobal","Object","defineProperty","writable","enumerable","_sakurairo","readyFunctionList","func","isRunning","args","whileReady","fn","ready","readyState","slideToggle","mode","flag","transition","tagTimer","tagHeight","clientHeight","buildAPI","apiPath","params","nonce","mainContainer","toggle","close","QueryStorage","renderSearchResult","keyword","link","fa","iconfont","comments","trim","indexOf","slice","toUpperCase","query","B","F","G","D","E","queries","array","filter","v","values","some","RegExp","test","Cx","div_href","search_close","Ty","ele","jsSearchCallback","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","pre","onclick","timeSeriesReload","archives","al_li","nextElementSibling","al_expand_collapse","cursor","getElementsByTagName","al_post_list","al_post_list_first","child","expanded","MN","iconflat","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","closeSkinMenu","checkBgImgSetting","checkCoverBackground","land_at_home","imgError","btn_playControl","paused","coverVideoMute","btn_volumeControl","muted","killCoverVideo","mail_me","email_name","email_domain","headertop_down","coverOffset","initEffect","effect","cfg","particlesJS","initParticle","pjax","initPjax","secondary","show_hide","activate_widget","hash","tabIndex","focus","aplayerInit","all","bgUrl","changskin","close_SkinMenu","siteHeader","skinMenu","mb_to_top","common","transform","smallScreenHandler","recalcuScrollbar","largeScreenHandler","scrollHandler","preload","removed","removeScreen","preload_blur","backdropFilter","easing","onfinish","once","preload_screen","about_us","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","before","media","ref","doc","ss","refs","childNodes","sheets","styleSheets","attributeName","hasOwnProperty","rel","insertBefore","nextSibling","onloadcssdefined","resolvedHref","loadCB","minpicturebytes","ncycles","netsize","samplefac","NeuQuant","pixels","arguments","nextSource","nextKey","prototype","assign","maxnetpos","netbiasshift","intbiasshift","intbias","gammashift","gamma","betashift","beta","betagamma","initrad","radiusbiasshift","radiusbias","initradius","radiusdec","alphabiasshift","initalpha","radbiasshift","radbias","alpharadbshift","alpharadbias","network","netindex","Uint32Array","bias","freq","radpower","Float64Array","unbiasnet","altersingle","alterneigh","radius","lo","abs","hi","k","contest","bestd","bestbiasd","bestpos","bestbiaspos","n","dist","biasdist","betafreq","inxbuild","previouscol","startpos","q","smallpos","smallval","learn","lengthcount","alphadec","samplepixels","step","rad","pix","buildColorMap","getColorMap","Uint8Array","findClosest","palette","minpos","mind","dr","dg","neuquant","img_rgb","Uint8ClampedArray","len","rgb_i","rgba2Rgb","palette$1","nq","indexed_pixel","indexed","memo","pixel","centroid","label","count","counts","_prepare2DContext","_prepare2DContextAsync","OffscreenCanvas","complete","_readImage","prepareCtx","imgSource","naturalWidth","naturalHeight","drawImage","getImageData","bind","_readImageDownsampling","maxSample","scale","scaleSqrt","sqrt","lab","xyz","z","pow","channel","alias","A","C","D50","D55","D65","D75","F2","F7","F11","whitepoint","_xyz","white","__webpack_module_cache__","__webpack_require__","cachedModule","__webpack_modules__","O","chunkIds","priority","notFulfilled","Infinity","fulfilled","keys","every","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","toStringTag","scriptUrl","importScripts","currentScript","loadStylesheet","fullhref","existingLinkTags","dataHref","tag","existingStyleTags","findStylesheet","oldTag","linkTag","errorType","realHref","err","createStylesheet","installedCssChunks","miniCss","baseURI","self","installedChunks","installedChunkData","promise","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}
|